[openwrt/openwrt] realtek: Switch RTL8231 driver on Zyxel GS1900-48

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 18 06:23:44 PST 2025


svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/45aafe67f385a2b6cf65894b2f46ee8e33d87f92

commit 45aafe67f385a2b6cf65894b2f46ee8e33d87f92
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Sat Jan 18 13:39:01 2025 +0100

    realtek: Switch RTL8231 driver on Zyxel GS1900-48
    
    Switch the Zyxel GS1900-48 over to the new MDIO-based driver for the
    RTL8231 GPIO expander.
    
    Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 .../linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts  | 25 ++++++++++++++++------
 1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
index a1e0a6d06d..6bb99b6137 100644
--- a/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
+++ b/target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
@@ -32,13 +32,6 @@
 		};
 	};
 
-	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>;
@@ -90,6 +83,24 @@
 	};
 };
 
+&mdio_aux {
+	status = "okay";
+
+	gpio1: expander at 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 at 0 {




More information about the lede-commits mailing list