Like for RTL838x devices, add a pinctrl-single node to manage the
sys-led/gpio0 mux, and allow using the pin as GPIO.

Signed-off-by: Sander Vanheule <san...@svanheule.net>
---
 target/linux/realtek/dts-5.10/rtl931x.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/target/linux/realtek/dts-5.10/rtl931x.dtsi 
b/target/linux/realtek/dts-5.10/rtl931x.dtsi
index 29aee1f7b268..f4e2fd248f7e 100644
--- a/target/linux/realtek/dts-5.10/rtl931x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl931x.dtsi
@@ -155,6 +155,20 @@
                };
        };
 
+       pinmux_led: pinmux@1b000600 {
+               compatible = "pinctrl-single";
+               reg = <0x1b000600 0x4>;
+
+               pinctrl-single,bit-per-mux;
+               pinctrl-single,register-width = <32>;
+               pinctrl-single,function-mask = <0x1>;
+               #pinctrl-cells = <2>;
+
+               /* enable GPIO 0 */
+               pinmux_disable_sys_led: disable_sys_led {
+                       pinctrl-single,bits = <0x0 0x3000 0x3000>;
+               };
+       };
 
        ethernet0: ethernet@1b00a300 {
                status = "okay";
-- 
2.36.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to