aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/apm/apm-merlin.dts
diff options
context:
space:
mode:
authorDuc Dang <dhdang@apm.com>2015-09-01 13:42:16 -0700
committerDuc Dang <dhdang@apm.com>2015-09-16 12:04:25 -0700
commit1d8d53b62d80dc3a6ae1483891e7d840cd7a51bd (patch)
treea35352be45d4956adada2a2885fda7ac649fddca /arch/arm64/boot/dts/apm/apm-merlin.dts
parentarm64: dts: Add APM X-Gene 2 standby GPIO controller DTS entries (diff)
downloadlinux-dev-1d8d53b62d80dc3a6ae1483891e7d840cd7a51bd.tar.xz
linux-dev-1d8d53b62d80dc3a6ae1483891e7d840cd7a51bd.zip
arm64: dts: Add poweroff device nodes for APM X-Gene 2 platform
This patch adds: + poweroff button device node to support poweroff by power button on APM X-Gene 2 Merlin platform. + syscon poweroff device node to support poweroff feature on APM X-Gene 2 Merlin platform Signed-off-by: Duc Dang <dhdang@apm.com>
Diffstat (limited to 'arch/arm64/boot/dts/apm/apm-merlin.dts')
-rw-r--r--arch/arm64/boot/dts/apm/apm-merlin.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/apm/apm-merlin.dts b/arch/arm64/boot/dts/apm/apm-merlin.dts
index a20ef5b27c6d..119a469bd189 100644
--- a/arch/arm64/boot/dts/apm/apm-merlin.dts
+++ b/arch/arm64/boot/dts/apm/apm-merlin.dts
@@ -23,6 +23,28 @@
device_type = "memory";
reg = < 0x1 0x00000000 0x0 0x80000000 >;
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ button@1 {
+ label = "POWER";
+ linux,code = <116>;
+ linux,input-type = <0x1>;
+ interrupts = <0x0 0x28 0x1>;
+ };
+ };
+
+ poweroff_mbox: poweroff_mbox@10548000 {
+ compatible = "syscon";
+ reg = <0x0 0x10548000 0x0 0x30>;
+ };
+
+ poweroff: poweroff@10548010 {
+ compatible = "syscon-poweroff";
+ regmap = <&poweroff_mbox>;
+ offset = <0x10>;
+ mask = <0x1>;
+ };
};
&serial0 {