mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 11:36:40 +07:00
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: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
This commit is contained in:
parent
8f41d122bf
commit
82a14b1e95
@ -11,6 +11,7 @@
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include "hip05.dtsi"
|
||||
|
||||
/ {
|
||||
@ -29,8 +30,25 @@ aliases {
|
||||
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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user