Commit 82a14b1e authored by Kefeng Wang's avatar Kefeng Wang Committed by Wei Xu

arm64: dts: hip05: Append power button node for D02 board

This patch adds poweroff button device node to support
poweroff feature on hip05 d02 board.
Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 8f41d122
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "hip05.dtsi" #include "hip05.dtsi"
/ { / {
...@@ -29,8 +30,25 @@ aliases { ...@@ -29,8 +30,25 @@ aliases {
chosen { chosen {
stdout-path = "serial0:115200n8"; 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 { &uart0 {
status = "ok"; status = "ok";
}; };
&peri_gpio0 {
status = "ok";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment