diff mbox

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

Message ID 1435305707-22786-2-git-send-email-yvo@apm.com
State New
Headers show

Commit Message

Y Vo June 26, 2015, 8:01 a.m. UTC
This patch adds poweroff button device node to support poweroff feature
on APM X-Gene Mustang platform.

Signed-off-by: Y Vo <yvo@apm.com>
---
 arch/arm64/boot/dts/apm/apm-mustang.dts |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

Comments

Kevin Hilman July 8, 2015, 9:10 p.m. UTC | #1
Y Vo <yvo@apm.com> writes:

> This patch adds poweroff button device node to support poweroff feature
> on APM X-Gene Mustang platform.
>
> Signed-off-by: Y Vo <yvo@apm.com>

Picking this up for v4.2-rc.

Applied to fixes branch,

Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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 {