]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: gs1900-48: add RTL8231 resets
authorKlaus Rubenstein <klaus.rubenstein@gmail.com>
Wed, 1 Apr 2026 07:57:18 +0000 (09:57 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 11 Apr 2026 17:36:17 +0000 (19:36 +0200)
Add reset-gpios for both RTL8231 expanders and hog the PHY reset
line on expander@3.

Signed-off-by: Klaus Rubenstein <klaus.rubenstein@gmail.com>
Tested-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dtsi

index edbba5a40885f97d3e0d64ee861d881fc0896ec9..bd19062b54ab2ab94994437771b0b372dfdcee3d 100644 (file)
@@ -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>;
        gpio1: expander@3 {
                compatible = "realtek,rtl8231";
                reg = <3>;
+               reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
 
                gpio-controller;
                #gpio-cells = <2>;
                        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";
+               };
        };
 };