OSDN Git Service

arm64: dts: ls208xa: specify clock frequencies for the MDIO controllers
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 25 Oct 2022 14:41:17 +0000 (17:41 +0300)
committerShawn Guo <shawnguo@kernel.org>
Sat, 29 Oct 2022 12:31:24 +0000 (20:31 +0800)
Up until now, the external MDIO controller frequency values relied
either on the default ones out of reset or on those setup by u-boot.
Let's just properly specify the MDC frequency in the DTS so that even
without u-boot's intervention Linux can drive the MDIO bus.

Fixes: 0420dde30a90 ("arm64: dts: ls208xa: add the external MDIO nodes")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi

index f1b9cc8..348d9e3 100644 (file)
                        little-endian;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       clock-frequency = <2500000>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(2)>;
                        status = "disabled";
                };
 
                        little-endian;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       clock-frequency = <2500000>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(2)>;
                        status = "disabled";
                };