realtek: Switch RTL8231 driver on Zyxel GS1900-48
authorSander Vanheule <sander@svanheule.net>
Sat, 18 Jan 2025 12:39:01 +0000 (13:39 +0100)
committerSander Vanheule <sander@svanheule.net>
Sat, 18 Jan 2025 13:14:52 +0000 (14:14 +0100)
Switch the Zyxel GS1900-48 over to the new MDIO-based driver for the
RTL8231 GPIO expander.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts

index a1e0a6d06d82331cd380746c46c90c9c94021781..6bb99b6137f350aa0f789146e3308788a677f34a 100644 (file)
                };
        };
 
-       gpio1: rtl8231-gpio {
-               compatible = "realtek,rtl8231-gpio";
-               #gpio-cells = <2>;
-               indirect-access-bus-id = <3>;
-               gpio-controller;
-       };
-
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
        };
 };
 
+&mdio_aux {
+       status = "okay";
+
+       gpio1: expander@3 {
+               compatible = "realtek,rtl8231";
+               reg = <3>;
+
+               gpio-controller;
+               #gpio-cells = <2>;
+               gpio-ranges = <&gpio1 0 0 37>;
+
+               led-controller {
+                       compatible = "realtek,rtl8231-leds";
+                       status = "disabled";
+               };
+       };
+};
+
 &spi0 {
        status = "okay";
        flash@0 {