Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1666416
| From | Guodong Xu <guodong.xu@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 10/20] arm64: dts: hi3660: add power key dts node |
| Date | 2017-06-15 05:10 +0200 |
| Message-ID | <tStku-5rK-29@gated-at.bofh.it> (permalink) |
| References | <tStkt-5rK-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Chen Jun <chenjun14@huawei.com>
We use gpio_034 as power key on hikey960, and set gpio with pull-up
state, when key press the voltage on the gpio will come to lower, and
power key event will be reported.
Signed-off-by: Chen Jun <chenjun14@huawei.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index c25fff9..7aac35b 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -10,6 +10,8 @@
#include "hi3660.dtsi"
#include "hikey960-pinctrl.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
/ {
model = "HiKey960";
@@ -34,6 +36,19 @@
/* rewrite this at bootloader */
reg = <0x0 0x0 0x0 0x0>;
};
+
+ keys {
+ compatible = "gpio-keys";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
+
+ power {
+ wakeup-source;
+ gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
+ label = "GPIO Power";
+ linux,code = <KEY_POWER>;
+ };
+ };
};
&i2c0 {
--
2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 00/20] arm64: dts: hi3660: add device nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 02/20] arm64: dts: hisilicon: update compatible string for hikey960 Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 20/20] arm64: dts: hi3660-hikey960: add nodes for WiFi Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 07/20] arm64: dts: hi3660: Add uarts nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 10/20] arm64: dts: hi3660: add power key dts node Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 11/20] arm64: dts: hikey960: add LED nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 15/20] arm64: dts: hisi: add kirin pcie node Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v5 15/20] arm64: dts: hisi: add kirin pcie node Guodong Xu <guodong.xu@linaro.org> - 2017-06-16 16:20 +0200
Re: [PATCH v5 15/20] arm64: dts: hisi: add kirin pcie node Wei Xu <xuwei5@hisilicon.com> - 2017-06-16 17:00 +0200
[PATCH v4 04/20] arm64: dts: hi3660: add resources for clock and reset Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 18/20] dt-bindings: mmc: dw_mmc-k3: add document of hi3660 mmc Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 14/20] dt-bindings: PCI: hisi: Add document for PCIe of Kirin SoCs Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 08/20] arm64: dts: hikey960: add WL1837 Bluetooth device node Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 01/20] dt-bindings: arm: hisilicon: add bindings for HiKey960 board Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 19/20] arm64: dts: hi3660: add sd/sdio device nodes Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:10 +0200
[PATCH v4 09/20] arm64: dts: hi3660: Add pl031 rtc node Guodong Xu <guodong.xu@linaro.org> - 2017-06-15 05:20 +0200
Re: [PATCH v4 00/20] arm64: dts: hi3660: add device nodes Wei Xu <xuwei5@hisilicon.com> - 2017-06-15 22:00 +0200
csiph-web