[openwrt/openwrt] realtek: add rtl8231-aux to rtl931x.dtsi

LEDE Commits lede-commits at lists.infradead.org
Sun Aug 17 08:32:23 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9dbc04785c4e13c2b7ceeaf00a5565d4d42f65d9

commit 9dbc04785c4e13c2b7ceeaf00a5565d4d42f65d9
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Thu Aug 14 07:18:22 2025 -0400

    realtek: add rtl8231-aux to rtl931x.dtsi
    
    The RTL8231 auxiliary controller is not defined in the rtl931x.dtsi.
    Additionally the pinmux is configured at the wrong address. Fix
    this.
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/19776
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/dts/rtl931x.dtsi | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi
index ff3d5c8f29..2335d33932 100644
--- a/target/linux/realtek/dts/rtl931x.dtsi
+++ b/target/linux/realtek/dts/rtl931x.dtsi
@@ -210,25 +210,29 @@
 
 			status = "disabled";
 		};
+
+		mdio_aux: mdio-aux {
+			compatible = "realtek,rtl9310-aux-mdio";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			pinctrl-0 = <&pinmux_gpio_mdio_en>;
+			pinctrl-names = "default";
+
+			status = "disabled";
+		};
 	};
 
-	pinmux: pinmux at 1b001358 {
+	pinmux at 1b0007d4 {
 		compatible = "pinctrl-single";
-		reg = <0x1b001358 0x4>;
+		reg = <0x1b0007d4 0x4>;
 
 		pinctrl-single,bit-per-mux;
 		pinctrl-single,register-width = <32>;
 		pinctrl-single,function-mask = <0x1>;
 		#pinctrl-cells = <2>;
 
-		/* Enable GPIO6 and GPIO7, possibly unknown others */
-		pinmux_disable_jtag: disable_jtag {
-			pinctrl-single,bits = <0x0 0x0 0x8000>;
-		};
-
-		/* Controls GPIO0 */
-		pinmux_disable_sys_led: disable_sys_led {
-			pinctrl-single,bits = <0x0 0x0 0x100>;
+		pinmux_gpio_mdio_en: gpio-mdio-en {
+			pinctrl-single,bits = <0x0 0x100 0x100>;
 		};
 	};
 




More information about the lede-commits mailing list