]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: hip05: Append power button node for D02 board
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 29 Jan 2016 08:39:05 +0000 (16:39 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 25 Feb 2016 13:15:58 +0000 (21:15 +0800)
This patch adds poweroff button device node to support
poweroff feature on hip05 d02 board.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hip05-d02.dts

index ae34e250456fe462bacfbd8daaf93ab84d71a884..e9436c0d81f7b484ef171a6c84e655a3765b0b92 100644 (file)
@@ -11,6 +11,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
 #include "hip05.dtsi"
 
 / {
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               pwrbutton {
+                       label = "Power Button";
+                       gpios = <&porta 8 GPIO_ACTIVE_LOW>;
+                       linux,code = <116>;
+                       debounce-interval = <0>;
+               };
+       };
 };
 
 &uart0 {
        status = "ok";
 };
+
+&peri_gpio0 {
+       status = "ok";
+};