Not all devices using the gpio0/sys-led pin as a GPIO, configure the
pinmux. Add the necessary pinctrl properties to these devices to ensure
the pin is set up for use as GPIO.

Co-developed-by: INAGAKI Hiroshi <[email protected]>
Signed-off-by: INAGAKI Hiroshi <[email protected]>
Signed-off-by: Sander Vanheule <[email protected]>
Tested-by: Bjørn Mork <[email protected]>
---
 target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 3 +++
 target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi | 3 +++
 target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts  | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi 
b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
index 078f8ff22892..5e587f278d6d 100644
--- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
@@ -14,6 +14,9 @@
        };
 
        keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-keys";
 
                mode {
diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi 
b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
index 312a36c1a844..219814eb4a58 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
@@ -19,6 +19,9 @@
        };
 
        leds {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-leds";
 
                led_power: power {
diff --git a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts 
b/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts
index 30960afff4d9..48081414941f 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts
+++ b/target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts
@@ -15,6 +15,9 @@
        };
 
        keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-keys";
 
                reset {
-- 
2.36.1


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to