Skip to content

Commit fcb2ff6

Browse files
ecsvrobimarko
authored andcommitted
realtek: rtl930x: mcx3: specify RTL8224 reset GPIO
The nRESET pins of the RTL8224 PHY on the MCX3 are wired to GPIO6 of the SoC, but this was never described in the devicetree. Commit c99a306 ("realtek: add RTL8224 initialization to Realtek driver") introduced support for reinitializing RTL8224 PHYs, and commit 084da38 ("realtek: mdio: activate multiple busses") allowed the MDIO bus provider load the devicetree properties to the bus, including reset descriptors. With both in place, a bus level PHY reset via the hardware pin is now correctly triggered before reinitialization. Add the missing reset-gpios property so the PHY can be reset via the hardware pin. Signed-off-by: Sven Eckelmann <sven@narfation.org> Link: openwrt/openwrt#22966 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 54cb211 commit fcb2ff6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

target/linux/realtek/dts/rtl9302_plasmacloud_mcx3.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@
151151
};
152152

153153
&mdio_bus0 {
154+
reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
155+
reset-assert-us = <100000>;
156+
reset-deassert-us = <100000>;
157+
154158
PHY_C45(0, 0)
155159
PHY_C45(1, 1)
156160
};

0 commit comments

Comments
 (0)