]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: mvebu: add button for OpenBlocks AX3-4
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 7 Jan 2013 16:29:58 +0000 (17:29 +0100)
committerJason Cooper <jason@lakedaemon.net>
Thu, 31 Jan 2013 20:44:08 +0000 (20:44 +0000)
The OpenBlocks AX3-4 board has one software-controlled button on the
front side, labeled "INIT", so we add minimal support for this button
in the kernel.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts

index b42652fd3d8c373f5ef14bcd3695e38799bcd1cc..ec368643e4786b5cd47b41dd482875db9da194bf 100644 (file)
                        };
                };
 
+               gpio_keys {
+                       compatible = "gpio-keys";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       button@1 {
+                               label = "Init Button";
+                               linux,code = <116>;
+                               gpios = <&gpio1 28 0>;
+                       };
+               };
+
                mdio {
                        phy0: ethernet-phy@0 {
                                reg = <0>;