[openwrt/openwrt] realtek: switch RTL8231 driver for HPE 1920-8G
LEDE Commits
lede-commits at lists.infradead.org
Sun Jan 12 08:33:05 PST 2025
svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e5d1a501cbd0fdda47d9169e9f669c7fb4813f2a
commit e5d1a501cbd0fdda47d9169e9f669c7fb4813f2a
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Tue Jan 7 14:55:24 2025 +0100
realtek: switch RTL8231 driver for HPE 1920-8G
Update the base DTS file for the 8 port HPE 1920 devices (JG920A,
JG921A, JG922A), causing the new RTL8231 MFD driver to be loaded at
start-up.
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi | 25 ++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi b/target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi
index 262dd83d21..ddd46c4cf6 100644
--- a/target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi
+++ b/target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi
@@ -4,13 +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";
sda-gpios = <&gpio1 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
@@ -46,6 +39,24 @@
};
};
+&mdio_aux {
+ status = "okay";
+
+ gpio1: expander at 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";
+ };
+ };
+};
+
ðernet0 {
mdio: mdio-bus {
compatible = "realtek,rtl838x-mdio";
More information about the lede-commits
mailing list