]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx6sx-udoo-neo: Properly configure ENET_REF
authorFabio Estevam <festevam@denx.de>
Sat, 29 Jun 2024 02:18:27 +0000 (23:18 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 5 Aug 2024 07:11:33 +0000 (15:11 +0800)
By default, the ENET_REF is configured at 125MHz on i.MX6SX, which works
well for boards that operate in RGMII mode.

The imx6sx-udoo-neo has a KSZ8091 Ethernet PHY that is connected via
RMII interface, so a 50MHz ENET_REF clock is expected.

Describe the IMX6SX_CLK_ENET_REF accordingly.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi

index 725d0b5cb55f6a4e3fd50bb1d7ca521dfb3039cb..bbf792ac4896a7dbc21f39f99488b39b64fb741c 100644 (file)
        };
 };
 
+&clks {
+       assigned-clocks = <&clks IMX6SX_CLK_ENET_REF>;
+       assigned-clock-rates = <50000000>;
+};
+
 &fec1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet1>;