]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl931x: Readd MAC_L2_GLOBAL_CTRL2 pinmux
authorSven Eckelmann <sven@narfation.org>
Wed, 20 Aug 2025 03:37:37 +0000 (05:37 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 3 Sep 2025 07:54:51 +0000 (09:54 +0200)
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@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/19815
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl931x.dtsi

index 2335d3393249ad0ffae905a823730b7a4e7aeca5..54a304019c2e992329d10a6ca048bc7d8682551a 100644 (file)
                };
        };
 
+       pinmux@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@1b0007d4 {
                compatible = "pinctrl-single";
                reg = <0x1b0007d4 0x4>;