[openwrt/openwrt] realtek: hog the GS1900-24E external IC reset line

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 25 11:02:31 PST 2026


svanheule pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/a98f49b968a55d0a33e841259b76eb38b9396386

commit a98f49b968a55d0a33e841259b76eb38b9396386
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Sat Feb 21 15:00:39 2026 +0100

    realtek: hog the GS1900-24E external IC reset line
    
    The GPIO line connecting to the reset signals of the GS1900-24E(A1)'s
    external ICs (RTL8218B phys and RTL8231 expander) cannot be asserted by
    the MDIO subsystem, as the reset is shared between busses.
    
    To prevent users from accidentally asserting the reset line, a GPIO hog
    is created to permanently de-assert the signal, reliably keeping the
    phys and GPIO expanders on.
    
    Tested-by: Simon Fischer <simi.fischa at gmail.com>
    Signed-off-by: Sander Vanheule <sander at svanheule.net>
    (cherry picked from commit ba57225066243b28d2802ea5c47313c97767150e)
---
 target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e.dts b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e.dts
index 1eaf2090ab..8d1d2a2a48 100644
--- a/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e.dts
+++ b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e.dts
@@ -8,6 +8,16 @@
 	model = "Zyxel GS1900-24E";
 };
 
+&gpio0 {
+	/* Shared between the main and aux MDIO busses */
+	mdio_reset {
+		gpio-hog;
+		gpios = <1 GPIO_ACTIVE_LOW>;
+		output-low;
+		line-name = "mdio-reset";
+	};
+};
+
 &mdio {
 	EXTERNAL_PHY(0)
 	EXTERNAL_PHY(1)




More information about the lede-commits mailing list