]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: armada388-clearfog: move rear button
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 2 Jan 2017 14:59:12 +0000 (14:59 +0000)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 4 Jan 2017 10:39:01 +0000 (11:39 +0100)
Move the rear button support into the clearfog pro support file.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/armada-388-clearfog.dts
arch/arm/boot/dts/armada-388-clearfog.dtsi

index 72fd80e209cec68684223429c9cac1707bf5be82..7aca6c130f69c7479756992a0670ef16de9eb5de 100644 (file)
                        };
                };
        };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+               pinctrl-0 = <&rear_button_pins>;
+               pinctrl-names = "default";
+
+               button_0 {
+                       /* The rear SW3 button */
+                       label = "Rear Button";
+                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
+                       linux,can-disable;
+                       linux,code = <BTN_0>;
+               };
+       };
 };
 
 &eth1 {
                marvell,pins = "mpp55";
                marvell,function = "spi1";
        };
+       rear_button_pins: rear-button-pins {
+               marvell,pins = "mpp34";
+               marvell,function = "gpio";
+       };
 };
 
 &spi1 {
index 30b75379377a057afc815593a6e1ddc5f58264e2..770d4bff6884a1c6b0f95cbb099213389a7797cd 100644 (file)
                                        marvell,pins = "mpp24", "mpp25";
                                        marvell,function = "ua1";
                                };
-                               rear_button_pins: rear-button-pins {
-                                       marvell,pins = "mpp34";
-                                       marvell,function = "gpio";
-                               };
                        };
 
                        sata@a8000 {
                        };
                };
        };
-
-       gpio-keys {
-               compatible = "gpio-keys";
-               pinctrl-0 = <&rear_button_pins>;
-               pinctrl-names = "default";
-
-               button_0 {
-                       /* The rear SW3 button */
-                       label = "Rear Button";
-                       gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
-                       linux,can-disable;
-                       linux,code = <BTN_0>;
-               };
-       };
 };
 
 &spi1 {