From: Klaus Rubenstein Date: Wed, 1 Apr 2026 07:57:18 +0000 (+0200) Subject: realtek: gs1900-48: add RTL8231 resets X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f637a09b8e35fe68667c2bb21868eb04c906ff4;p=thirdparty%2Fopenwrt.git realtek: gs1900-48: add RTL8231 resets Add reset-gpios for both RTL8231 expanders and hog the PHY reset line on expander@3. Signed-off-by: Klaus Rubenstein Tested-by: Sander Vanheule Signed-off-by: Sander Vanheule --- diff --git a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi index edbba5a4088..bd19062b54a 100644 --- a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi +++ b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi @@ -98,6 +98,7 @@ port_leds: expander@0 { compatible = "realtek,rtl8231"; reg = <0>; + reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; gpio-controller; #gpio-cells = <2>; @@ -179,6 +180,7 @@ gpio1: expander@3 { compatible = "realtek,rtl8231"; reg = <3>; + reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; gpio-controller; #gpio-cells = <2>; @@ -188,6 +190,14 @@ compatible = "realtek,rtl8231-leds"; status = "disabled"; }; + + /* PHY reset (active low), no driver support, keep deasserted */ + phy-reset { + gpio-hog; + gpios = <6 GPIO_ACTIVE_LOW>; + output-low; + line-name = "phy-reset"; + }; }; };