ARM: dts: imx6dl-eckelmann-ci4x10: configure ethernet reference clock parent
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 31 Jan 2023 08:46:36 +0000 (09:46 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 6 Mar 2023 02:01:46 +0000 (10:01 +0800)
On this board the PHY is the ref clock provider. So, configure ethernet
reference clock as input.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-eckelmann-ci4x10.dts

index 864dc50..33825b5 100644 (file)
@@ -28,6 +28,7 @@
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <50000000>;
+               clock-output-names = "enet_ref_pad";
        };
 
        reg_usb_h1_vbus: regulator-usb-h1-vbus {
        status = "okay";
 };
 
+&clks {
+       clocks = <&rmii_clk>;
+       clock-names = "enet_ref_pad";
+       assigned-clocks = <&clks IMX6QDL_CLK_ENET_REF_SEL>;
+       assigned-clock-parents = <&rmii_clk>;
+};
+
 &ecspi2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi2>;
        phy-mode = "rmii";
        phy-reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
        phy-handle = <&phy>;
-       clocks = <&clks IMX6QDL_CLK_ENET>,
-                <&clks IMX6QDL_CLK_ENET>,
-                <&rmii_clk>,
-                <&clks IMX6QDL_CLK_ENET_REF>;
-       clock-names = "ipg", "ahb", "ptp", "enet_out";
        status = "okay";
 
        mdio {