realtek: add missing gpio0 pinctrl properties
authorSander Vanheule <sander@svanheule.net>
Fri, 26 Nov 2021 21:10:24 +0000 (22:10 +0100)
committerSander Vanheule <sander@svanheule.net>
Sun, 10 Jul 2022 07:54:35 +0000 (09:54 +0200)
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 <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Bjørn Mork <bjorn@mork.no>
target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
target/linux/realtek/dts-5.10/rtl8382_inaba_aml2-17gp.dts

index 078f8ff22892dd92f81a47d5714d4f2eab6f1e4b..5e587f278d6da375a533be3415d0ce4d00c76e13 100644 (file)
@@ -14,6 +14,9 @@
        };
 
        keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-keys";
 
                mode {
index aaaa872162a027854d61ff4b9e8a0f9d6e474799..09f5555307a39e5cd7109290d2a6d7e10da2f15b 100644 (file)
@@ -19,6 +19,9 @@
        };
 
        leds {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-leds";
 
                led_power: power {
index 30960afff4d9735a1e6495c8ff0bc4ec6b6d14ba..48081414941f2d36cdbafa65891b466817d528c8 100644 (file)
@@ -15,6 +15,9 @@
        };
 
        keys {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinmux_disable_sys_led>;
+
                compatible = "gpio-keys";
 
                reset {