From 4f637a09b8e35fe68667c2bb21868eb04c906ff4 Mon Sep 17 00:00:00 2001 From: Klaus Rubenstein Date: Wed, 1 Apr 2026 09:57:18 +0200 Subject: [PATCH] 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 --- target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi index edbba5a408..bd19062b54 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"; + }; }; };