[PATCH v1] arm64: dts: Add poweroff button device node for APM X-Gene platform

STALE4116d

2 messages, 1 author, 2015-06-26 · open the first message on its own page

[PATCH v1] arm64: dts: Add poweroff button device node for APM X-Gene platform

From: Y Vo <hidden>
Date: 2015-06-26 08:02:17

This patch adds poweroff button device node to support poweroff feature
on APM X-Gene Mustang platform.

V1 change:
	- Remove unused property.

Y Vo (1):
  arm64: dts: Add poweroff button device node for APM X-Gene platform

 arch/arm64/boot/dts/apm/apm-mustang.dts |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

[PATCH v1] arm64: dts: Add poweroff button device node for APM X-Gene platform

From: Y Vo <hidden>
Date: 2015-06-26 08:02:35

This patch adds poweroff button device node to support poweroff feature
on APM X-Gene Mustang platform.

Signed-off-by: Y Vo <redacted>
---
 arch/arm64/boot/dts/apm/apm-mustang.dts |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts
index 83578e7..4c55833 100644
--- a/arch/arm64/boot/dts/apm/apm-mustang.dts
+++ b/arch/arm64/boot/dts/apm/apm-mustang.dts
@@ -23,6 +23,16 @@
 		device_type = "memory";
 		reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */
 	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		button@1 {
+			label = "POWER";
+			linux,code = <116>;
+			linux,input-type = <0x1>;
+			interrupts = <0x0 0x2d 0x1>;
+		};
+	};
 };
 
 &pcie0clk {
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help