diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-01-29 11:39:05 +0300 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2016-02-25 16:15:58 +0300 |
commit | 82a14b1e95b4ce003bf8774861f631ea47e54975 (patch) | |
tree | 114551f03437e87cf6cf11a8964d17282a2abf77 /arch/arm64/boot/dts/hisilicon | |
parent | 8f41d122bfb64de9dcd6e5815ed08544905fa533 (diff) | |
download | linux-82a14b1e95b4ce003bf8774861f631ea47e54975.tar.xz |
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>
Diffstat (limited to 'arch/arm64/boot/dts/hisilicon')
-rw-r--r-- | arch/arm64/boot/dts/hisilicon/hip05-d02.dts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/hisilicon/hip05-d02.dts b/arch/arm64/boot/dts/hisilicon/hip05-d02.dts index ae34e250456f..e9436c0d81f7 100644 --- a/arch/arm64/boot/dts/hisilicon/hip05-d02.dts +++ b/arch/arm64/boot/dts/hisilicon/hip05-d02.dts @@ -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"; +}; |