* [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller
@ 2021-03-16 8:06 Kurt Kanzenbach
2021-04-01 9:43 ` Alexandre TORGUE
0 siblings, 1 reply; 2+ messages in thread
From: Kurt Kanzenbach @ 2021-03-16 8:06 UTC (permalink / raw)
To: Rob Herring, Maxime Coquelin, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel, Kurt Kanzenbach
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller
2021-03-16 8:06 [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller Kurt Kanzenbach
@ 2021-04-01 9:43 ` Alexandre TORGUE
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre TORGUE @ 2021-04-01 9:43 UTC (permalink / raw)
To: Kurt Kanzenbach, Rob Herring, Maxime Coquelin, Alexandre Torgue
Cc: devicetree, linux-stm32, linux-arm-kernel
Hi Kurt
On 3/16/21 9:06 AM, Kurt Kanzenbach wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-01 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 8:06 [PATCH] ARM: dts: stm32: Add PTP clock to Ethernet controller Kurt Kanzenbach
2021-04-01 9:43 ` Alexandre TORGUE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).