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>
Tue, 7 Jun 2022 19:03:36 +0000 (21:03 +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 312a36c1a844a04d8eaa69b27f31dcfd422fe1a4..219814eb4a58c339b7c10c07cf11b0b788c82ee7 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 {