MIPS: dts: align gpio-key node names with dtschema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 24 Jun 2022 17:07:40 +0000 (19:07 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 14 Jul 2022 09:51:11 +0000 (11:51 +0200)
The node names should be generic and DT schema expects certain pattern
(e.g. with key/button/switch).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ingenic/ci20.dts
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts

index ab6e3dc0bc1d00a657d7182705f2b55821fc4075..37c46720c719a6fb528fc530a3a93b2d7c527677 100644 (file)
@@ -31,7 +31,7 @@
        gpio-keys {
                compatible = "gpio-keys";
 
-               sw1 {
+               switch {
                        label = "ci20:sw1";
                        linux,code = <KEY_F13>;
                        gpios = <&gpd 17 GPIO_ACTIVE_HIGH>;
index 826e91b840a3399a6152f7008222e5d0c58e4213..179558161f85c1a3fd50ac6e610051041d881da0 100644 (file)
@@ -26,7 +26,7 @@
                pinctrl-names = "default";
                pinctrl-0 = <&pinmux_gpio_gpio>;        /* GPIO11 */
 
-               user_btn1 {
+               button {
                        label = "USER_BTN1";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                        linux,code =<KEY_PROG1> ;
index 37037e4f3c3bc736fb4fc1c3a5d410e8a41b08e4..24eebc5a85b1dc6c3305a98b73e4a3dd19959cb1 100644 (file)
@@ -29,7 +29,7 @@
        gpio-keys {
                compatible = "gpio-keys";
 
-               reset {
+               key-reset {
                        label = "reset";
                        gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
index a6201a119a1f2674f2d1e4ada9b27518281d0f65..34006e6677806a4bd5dc1e4595a3c6bd52abe0e9 100644 (file)
@@ -29,7 +29,7 @@
        gpio-keys {
                compatible = "gpio-keys";
 
-               reset {
+               key-reset {
                        label = "reset";
                        gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;