summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-03-21 19:43:08 (GMT)
committerJason Cooper <jason@lakedaemon.net>2013-03-30 20:33:44 (GMT)
commit8c75e7b3d2a63a43b791e2a13229ad5e048497ce (patch)
tree52261e85813bc5d7939295948212b40b024fca8f
parentc3117edec5f92cce39f2d220c62f76675397af8d (diff)
downloadlinux-8c75e7b3d2a63a43b791e2a13229ad5e048497ce.tar.xz
ARM: mvebu: Add button on Armada 370 Reference Design board
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>
-rw-r--r--arch/arm/boot/dts/armada-370-rd.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts
index f8e4855..0656c81 100644
--- a/arch/arm/boot/dts/armada-370-rd.dts
+++ b/arch/arm/boot/dts/armada-370-rd.dts
@@ -65,4 +65,15 @@
/* 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>;
+ };
+ };
};