]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm64: dts: Add poweroff button device node for APM X-Gene platform
authorY Vo <yvo@apm.com>
Fri, 26 Jun 2015 08:01:47 +0000 (15:01 +0700)
committerKevin Hilman <khilman@linaro.org>
Wed, 8 Jul 2015 21:09:18 +0000 (14:09 -0700)
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>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm64/boot/dts/apm/apm-mustang.dts

index 83578e766b945ae2c35b41b93813a8c29ec15c1b..4c55833d8a41a0b361faaf66ad72dffcc6885f02 100644 (file)
@@ -23,6 +23,16 @@ memory {
                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 {