Skip to content

Commit

Permalink
realtek: switch RTL8231 driver for HPE 1920-16/24G
Browse files Browse the repository at this point in the history
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 9685058)
  • Loading branch information
svanheule committed Jan 16, 2025
1 parent 0aad2dc commit 8e059f3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions target/linux/realtek/dts/rtl8382_hpe_1920.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 8e059f3

Please sign in to comment.