ARM: mvebu: Add button on Armada 370 Reference Design board
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 21 Mar 2013 19:43:08 +0000 (16:43 -0300)
committerJason Cooper <jason@lakedaemon.net>
Sat, 30 Mar 2013 20:33:44 +0000 (20:33 +0000)
The Marvell Armada 370 Reference Design board has a software-controlled
button on the front side, marked as "SW".
This patch adds minimal support for this button.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-rd.dts

index f8e4855bc9a536b34405dca9a8ff64a268542879..0656c815616efd8d074c8fb526fd5d96bb9ba02e 100644 (file)
                        /* No CD or WP GPIOs */
                };
        };
+
+       gpio-keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               button@1 {
+                       label = "Software Button";
+                       linux,code = <116>;
+                       gpios = <&gpio0 6 1>;
+               };
+       };
 };