linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mvebu: Add gpio button to Mirabox board
@ 2013-03-26 13:30 Ezequiel Garcia
  0 siblings, 0 replies; 6+ messages in thread
From: Ezequiel Garcia @ 2013-03-26 13:30 UTC (permalink / raw)
  To: linux-arm-kernel

The Globalscale Mirabox board has a little gpio button
placed just above the SD card slot; the board user guide labels
this button as "System reset button".

This patch adds support for this button in the device tree file.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 arch/arm/boot/dts/armada-370-mirabox.dts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/armada-370-mirabox.dts b/arch/arm/boot/dts/armada-370-mirabox.dts
index dd0c57d..8fb7590 100644
--- a/arch/arm/boot/dts/armada-370-mirabox.dts
+++ b/arch/arm/boot/dts/armada-370-mirabox.dts
@@ -70,5 +70,16 @@
 		usb at d0051000 {
 			status = "okay";
 		};
+
+		gpio-keys {
+			compatible = "gpio-keys";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reset at 1 {
+				label = "Reset Button";
+				linux,code = <116>;
+				gpios = <&gpio1 26 1>;
+			};
+		};
 	};
 };
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-29 18:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CABx3TkVyVAzEJ54FV70fK3BoULKCOkgNcw32_K3XT-oCUWjEfg@mail.gmail.com>
2013-03-28  3:38 ` [PATCH] ARM: mvebu: Add gpio button to Mirabox board Ezequiel Garcia
2013-03-29  4:13   ` Ryan Press
2013-03-29 16:50     ` Ezequiel Garcia
2013-03-29 17:30       ` Ryan Press
2013-03-29 18:13         ` Ezequiel Garcia
2013-03-26 13:30 Ezequiel Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).