]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl930x: mcx3: specify RTL8224 reset GPIO 22966/head
authorSven Eckelmann <sven@narfation.org>
Fri, 17 Apr 2026 07:46:13 +0000 (09:46 +0200)
committerRobert Marko <robimarko@gmail.com>
Tue, 28 Apr 2026 09:24:28 +0000 (11:24 +0200)
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 c99a30668d5f ("realtek: add RTL8224 initialization to Realtek
driver") introduced support for reinitializing RTL8224 PHYs, and commit
084da38a2e74 ("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: https://github.com/openwrt/openwrt/pull/22966
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl9302_plasmacloud_mcx3.dts

index f6e1083162dfa3609823c9acab1f7babb1db470d..02ad74c8c4566b32dc8fa072dc7eb73e76837ad4 100644 (file)
 };
 
 &mdio_bus0 {
+       reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+       reset-assert-us = <100000>;
+       reset-deassert-us = <100000>;
+
        PHY_C45(0, 0)
        PHY_C45(1, 1)
 };