summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule2026-02-21 14:00:39 +0000
committerSander Vanheule2026-02-24 20:29:26 +0000
commitba57225066243b28d2802ea5c47313c97767150e (patch)
tree23bdb5ebab0b4915df2ca9fedfa97e2e135cbfc6
parentcdbd9eb448a8fa802cbc2b2f8a1dec93b3999a3b (diff)
downloadopenwrt-ba57225066243b28d2802ea5c47313c97767150e.tar.gz
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@gmail.com> Signed-off-by: Sander Vanheule <sander@svanheule.net>
-rw-r--r--target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e-a1.dts10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e-a1.dts b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e-a1.dts
index c54648cc32..4cffc040ed 100644
--- a/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e-a1.dts
+++ b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24e-a1.dts
@@ -8,6 +8,16 @@
model = "Zyxel GS1900-24E A1";
};
+&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_bus0 {
EXTERNAL_PHY(0)
EXTERNAL_PHY(1)