ARM: dts: kirkwood: Remove button address and fixup names
authorAndrew Lunn <andrew@lunn.ch>
Sun, 3 Apr 2016 02:03:43 +0000 (04:03 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 14 Apr 2016 17:04:45 +0000 (19:04 +0200)
The DT compiler is now warning about unit names with addresses but not
reg property. Fix all the gpio-key buttons which causes warnings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
18 files changed:
arch/arm/boot/dts/kirkwood-blackarmor-nas220.dts
arch/arm/boot/dts/kirkwood-cloudbox.dts
arch/arm/boot/dts/kirkwood-dnskw.dtsi
arch/arm/boot/dts/kirkwood-ib62x0.dts
arch/arm/boot/dts/kirkwood-iconnect.dts
arch/arm/boot/dts/kirkwood-laplug.dts
arch/arm/boot/dts/kirkwood-lsxl.dtsi
arch/arm/boot/dts/kirkwood-mv88f6281gtw-ge.dts
arch/arm/boot/dts/kirkwood-netxbig.dtsi
arch/arm/boot/dts/kirkwood-ns2-common.dtsi
arch/arm/boot/dts/kirkwood-nsa3x0-common.dtsi
arch/arm/boot/dts/kirkwood-openblocks_a6.dts
arch/arm/boot/dts/kirkwood-openblocks_a7.dts
arch/arm/boot/dts/kirkwood-pogoplug-series-4.dts
arch/arm/boot/dts/kirkwood-t5325.dts
arch/arm/boot/dts/kirkwood-ts219-6281.dts
arch/arm/boot/dts/kirkwood-ts219-6282.dts
arch/arm/boot/dts/kirkwood-ts419.dtsi

index fa02a9aff05e1cdf447637850ba45c66ff370060..f16a73e49a88b444932d3aaeda75e61e5c3ca048 100644 (file)
        gpio_keys {
                compatible = "gpio-keys";
 
-               button@1{
+               reset {
                        label = "Reset";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
                };
 
-               button@2{
+               button {
                        label = "Power";
                        linux,code = <KEY_SLEEP>;
                        gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
index 7ec76566acf299e998ebd2207ea790ea71e78ba9..555b7e4c58a5750646515a30e72cb5f499a441d0 100644 (file)
@@ -60,7 +60,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               button@1 {
+               power {
                        label = "Power push button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
index 113dcf056dcfb792d4220ec089a9dae748e4a587..d8fca9db46d084efcc4e9e2506f4c93ab2c166bb 100644 (file)
                             &pmx_button_reset>;
                pinctrl-names = "default";
 
-               button@1 {
+               power {
                        label = "Power button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               eject {
                        label = "USB unmount button";
                        linux,code = <KEY_EJECTCD>;
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
-               button@3 {
+               reset {
                        label = "Reset button";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
index bfa5edde179c30d38d55cb80dd462dc6c3ee8084..ef84d8699a767ca1f5fbc72c88d5e49a03576c4d 100644 (file)
                pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
                pinctrl-names = "default";
 
-               button@1 {
+               copy {
                        label = "USB Copy";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               reset {
                        label = "Reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
index 38e31d15a62d3fc41d91425beba35a41c44fa7a1..674306746dec0400a2b8941f9f138af21ab04beb 100644 (file)
                pinctrl-0 = < &pmx_button_reset &pmx_button_otb >;
                pinctrl-names = "default";
 
-               button@1 {
+               otb {
                        label = "OTB Button";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                        debounce-interval = <100>;
                };
-               button@2 {
+               reset {
                        label = "Reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
index 24425660e973c47edf90087589cf62fcef324208..c39e17a89f4e9c5a584a9386d672e3c56576f27e 100644 (file)
@@ -62,7 +62,7 @@
        gpio_keys {
                compatible = "gpio-keys";
 
-               button@1{
+               power {
                        label = "Power push button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
index 1d6528d82969c3dbc8786d0b47a34168f2248315..2869c5dbc1ade91a6f4ac6a104ac30f8e4e979cc 100644 (file)
                             &pmx_power_auto_switch>;
                pinctrl-names = "default";
 
-               button@1 {
+               option {
                        label = "Function Button";
                        linux,code = <KEY_OPTION>;
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               reserved {
                        label = "Power-on Switch";
                        linux,code = <KEY_RESERVED>;
                        linux,input-type = <5>;
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
-               button@3 {
+               power {
                        label = "Power-auto Switch";
                        linux,code = <KEY_ESC>;
                        linux,input-type = <5>;
index b7e7d78c484e935d9548e8319e3a1b9c5bcdef20..6a8f59acb539b8f470b4174b8d061f8d9a829744 100644 (file)
                pinctrl-0 = <&pmx_keys>;
                pinctrl-names = "default";
 
-               button@1 {
+               restart {
                        label = "SWR Button";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               wps {
                        label = "WPS Button";
                        linux,code = <KEY_WPS_BUTTON>;
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
index 62515a8b99b995a4a7ae2f2e7d2a42149f99bec1..52b58fe0c4feeff2486d7d463ade23b5526b3e64 100644 (file)
                #size-cells = <0>;
 
                /*
-                * button@1 and button@2 represent a three position rocker
+                * esc and power represent a three position rocker
                 * switch. Thus the conventional KEY_POWER does not fit
                 */
-               button@1 {
+               exc {
                        label = "Back power switch (on|auto)";
                        linux,code = <KEY_ESC>;
                        linux,input-type = <5>;
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               power {
                        label = "Back power switch (auto|off)";
                        linux,code = <KEY_1>;
                        linux,input-type = <5>;
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
-               button@3 {
+               option {
                        label = "Function button";
                        linux,code = <KEY_OPTION>;
                        gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
index e832b63202640aef7b42667dbe59687c6a9cc662..b4d59261eddcf8aee3b9973be7bcb70142a061a3 100644 (file)
@@ -57,7 +57,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
 
-               button@1 {
+               power {
                        label = "Power push button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
index 2075a2e828f17b6623c71855da85573807fd33f5..5ccc46190079ef31141ac0c144b09ea4d202d197 100644 (file)
                pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
                pinctrl-names = "default";
 
-               button@1 {
+               power {
                        label = "Power Button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
-               button@2 {
+               copy {
                        label = "Copy Button";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
-               button@3 {
+               reset {
                        label = "Reset Button";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
index fb9dc227255d91a2a4bdb58a7adfac3072a80521..0db0e3edc88fc13f50b243af4012ed55aceb9b8f 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               button@1 {
+               power {
                        label = "Init Button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
index d5e3bc518968b4acf5e4b811d2944a84d12b79b8..cf2f5240e176d0b1d60f578db6028f143bfea97c 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
-               button@1 {
+               button {
                        label = "Init Button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
index 8082d64266a37c33c8fa2e7e722d3683519c3d0a..b2f26239d29822c975b8ffef5dc80aeb4f645f84 100644 (file)
@@ -33,7 +33,7 @@
                pinctrl-0 = <&pmx_button_eject>;
                pinctrl-names = "default";
 
-               button@1 {
+               eject {
                        debounce_interval = <50>;
                        wakeup-source;
                        linux,code = <KEY_EJECTCD>;
index ed956b849a71fcf3b2d8b6e1b65bc3ca931c0dde..af5ce85b2c38522c64c5d53281c84a9afa792079 100644 (file)
                pinctrl-0 = <&pmx_button_power>;
                pinctrl-names = "default";
 
-               button@1 {
+               power {
                        label = "Power Button";
                        linux,code = <KEY_POWER>;
                        gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
index 9767d73f3857f972798f22047e93391290034581..ee62204e4ecdfaa7a87293e3aea2c740ecc32e40 100644 (file)
                pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
                pinctrl-names = "default";
 
-               button@1 {
+               copy {
                        label = "USB Copy";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               reset {
                        label = "Reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
index bfc1a32d4e422d5ca25dc8e1def9d0f0f0209fce..1d291f620869323eb015abdd4457e177cfdcb927 100644 (file)
                pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
                pinctrl-names = "default";
 
-               button@1 {
+               copy {
                        label = "USB Copy";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               reset {
                        label = "Reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
index 30ab93bfb1e476d0722bdc17e1eb6b5ca43f353b..02bd5376270517314dd8dfaf138609a75aa120ab 100644 (file)
                pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
                pinctrl-names = "default";
 
-               button@1 {
+               copy {
                        label = "USB Copy";
                        linux,code = <KEY_COPY>;
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
-               button@2 {
+               reset {
                        label = "Reset";
                        linux,code = <KEY_RESTART>;
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;