ARM: dts: stm32: Add PTP clock to Ethernet controller
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 16 Mar 2021 08:06:44 +0000 (09:06 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 1 Apr 2021 09:41:00 +0000 (11:41 +0200)
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>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp151.dtsi

index 31b04485cbd729f93448a7dee21208c803fa0e05..fb80d53e6be252d5161976d932b2a6402133fad2 100644 (file)
                                      "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;