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

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
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@

/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include "hip05.dtsi"

/ {
@@ -29,8 +30,25 @@
	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";
};