[PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller

Subsystems: the rest

STALE1948d

2 messages, 2 authors, 2021-04-01 · open the first message on its own page

[PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller

From: Kurt Kanzenbach <kurt@linutronix.de>
Date: 2021-03-16 08:07:42

Add the PTP clock to the Ethernet controller. Otherwise, the driver uses the
main clock to derive the PTP frequency which is not necessarily the correct one.

Tested with linuxptp on Olimex STMP1-OLinuXino-LIME2.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
 arch/arm/boot/dts/stm32mp151.dtsi | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 3c75abacb374..d1f596ea2fd5 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1421,11 +1421,13 @@
 				      "mac-clk-tx",
 				      "mac-clk-rx",
 				      "eth-ck",
+				      "ptp_ref",
 				      "ethstp";
 			clocks = <&rcc ETHMAC>,
 				 <&rcc ETHTX>,
 				 <&rcc ETHRX>,
 				 <&rcc ETHCK_K>,
+				 <&rcc ETHPTP_K>,
 				 <&rcc ETHSTP>;
 			st,syscon = <&syscfg 0x4>;
 			snps,mixed-burst;
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller

From: Alexandre TORGUE <alexandre.torgue@foss.st.com>
Date: 2021-04-01 09:44:34

Hi Kurt

On 3/16/21 9:06 AM, Kurt Kanzenbach wrote:
quoted hunk
Add the PTP clock to the Ethernet controller. Otherwise, the driver uses the
main clock to derive the PTP frequency which is not necessarily the correct one.

Tested with linuxptp on Olimex STMP1-OLinuXino-LIME2.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
  arch/arm/boot/dts/stm32mp151.dtsi | 2 ++
  1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 3c75abacb374..d1f596ea2fd5 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1421,11 +1421,13 @@
  				      "mac-clk-tx",
  				      "mac-clk-rx",
  				      "eth-ck",
+				      "ptp_ref",
  				      "ethstp";
  			clocks = <&rcc ETHMAC>,
  				 <&rcc ETHTX>,
  				 <&rcc ETHRX>,
  				 <&rcc ETHCK_K>,
+				 <&rcc ETHPTP_K>,
  				 <&rcc ETHSTP>;
  			st,syscon = <&syscfg 0x4>;
  			snps,mixed-burst;
Applied on stm32-next.

Thanks.
Alex

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help