[openwrt/openwrt] realtek: rtl931x: Readd MAC_L2_GLOBAL_CTRL2 pinmux

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 3 00:54:57 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/93113a745a24c114b9994b680ca290a00b0a7c1d

commit 93113a745a24c114b9994b680ca290a00b0a7c1d
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Wed Aug 20 05:37:37 2025 +0200

    realtek: rtl931x: Readd MAC_L2_GLOBAL_CTRL2 pinmux
    
    The MAC_L2_GLOBAL_CTRL2 register is primarily used for pin configuration.
    It is necessary to select specific modes for pins or to free them for use
    as GPIOs.
    
    Fixes: 9dbc04785c4e ("realtek: add rtl8231-aux to rtl931x.dtsi")
    Signed-off-by: Sven Eckelmann <sven at narfation.org>
    Link: https://github.com/openwrt/openwrt/pull/19815
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/dts/rtl931x.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/target/linux/realtek/dts/rtl931x.dtsi b/target/linux/realtek/dts/rtl931x.dtsi
index 2335d33932..54a304019c 100644
--- a/target/linux/realtek/dts/rtl931x.dtsi
+++ b/target/linux/realtek/dts/rtl931x.dtsi
@@ -222,6 +222,26 @@
 		};
 	};
 
+	pinmux at 1b001358 {
+		compatible = "pinctrl-single";
+		reg = <0x1b001358 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 at 1b0007d4 {
 		compatible = "pinctrl-single";
 		reg = <0x1b0007d4 0x4>;




More information about the lede-commits mailing list