summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule2025-01-07 13:59:20 +0000
committerSander Vanheule2025-02-22 11:32:34 +0000
commit88d7d0d9cc15e76318dc13415c8dce400eec9e3d (patch)
treebe97523d816ea4b6ad53d1983d719a74a01a6530
parent5b96d45474fe15397a4bc26f9013c433a1e59bd4 (diff)
downloadopenwrt-88d7d0d9cc15e76318dc13415c8dce400eec9e3d.tar.gz
realtek: switch RTL8231 driver for HPE 1920-16/24G
Update the base DTS file for the 16 and 24 port HPE 1920 devices (JG923A, JG924A, JG925A, JG926A), causing the new RTL8231 MFD driver to be loaded at start-up. Signed-off-by: Sander Vanheule <sander@svanheule.net> (cherry picked from commit 96850585e52dfff2c25d8b20b0b5cd192981ed4d)
-rw-r--r--target/linux/realtek/dts/rtl8382_hpe_1920.dtsi24
1 files changed, 18 insertions, 6 deletions
diff --git a/target/linux/realtek/dts/rtl8382_hpe_1920.dtsi b/target/linux/realtek/dts/rtl8382_hpe_1920.dtsi
index af168067d4..20d8693a3b 100644
--- a/target/linux/realtek/dts/rtl8382_hpe_1920.dtsi
+++ b/target/linux/realtek/dts/rtl8382_hpe_1920.dtsi
@@ -4,12 +4,6 @@
#include "rtl83xx_hpe_1920.dtsi"
/ {
- gpio1: rtl8231-gpio {
- compatible = "realtek,rtl8231-gpio";
- #gpio-cells = <2>;
- gpio-controller;
- indirect-access-bus-id = <0>;
- };
i2c0: i2c-gpio-0 {
compatible = "i2c-gpio";
@@ -84,6 +78,24 @@
};
};
+&mdio_aux {
+ status = "okay";
+
+ gpio1: expander@0 {
+ compatible = "realtek,rtl8231";
+ reg = <0>;
+
+ gpio-controller;
+ #gpio-cells = <2>;
+ gpio-ranges = <&gpio1 0 0 37>;
+
+ led-controller {
+ compatible = "realtek,rtl8231-leds";
+ status = "disabled";
+ };
+ };
+};
+
&ethernet0 {
mdio: mdio-bus {
compatible = "realtek,rtl838x-mdio";