[PATCH] ARM: mvebu: Add gpio button to Mirabox board

Ezequiel Garcia ezequiel.garcia at free-electrons.com
Tue Mar 26 09:30:18 EDT 2013


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 at 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




More information about the linux-arm-kernel mailing list