Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1681367 > unrolled thread
| Started by | Frank Wang <frank.wang@rock-chips.com> |
|---|---|
| First post | 2017-07-05 10:40 +0200 |
| Last post | 2017-07-13 02:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb Frank Wang <frank.wang@rock-chips.com> - 2017-07-05 10:40 +0200
Re: [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb Heiko Stuebner <heiko@sntech.de> - 2017-07-13 02:20 +0200
| From | Frank Wang <frank.wang@rock-chips.com> |
|---|---|
| Date | 2017-07-05 10:40 +0200 |
| Subject | [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb |
| Message-ID | <tZO0N-3SX-1@gated-at.bofh.it> |
This patch adds gpio power-key support for rk3229-evb board.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
---
arch/arm/boot/dts/rk3229-evb.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts
index cfcfe2a..a051708 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -139,6 +139,24 @@
regulator-boot-on;
pwm-supply = <&vcc_sys>;
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+
+ power_key: power-key {
+ label = "GPIO Key Power";
+ gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+ linux,code = <116>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+ };
};
&cpu0 {
@@ -177,6 +195,12 @@
};
&pinctrl {
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
+
usb {
host_vbus_drv: host-vbus-drv {
rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
--
2.0.0
[toc] | [next] | [standalone]
| From | Heiko Stuebner <heiko@sntech.de> |
|---|---|
| Date | 2017-07-13 02:20 +0200 |
| Message-ID | <u2A1k-6KY-3@gated-at.bofh.it> |
| In reply to | #1681367 |
Am Mittwoch, 5. Juli 2017, 16:33:10 CEST schrieb Frank Wang: > This patch adds gpio power-key support for rk3229-evb board. > > Signed-off-by: Frank Wang <frank.wang@rock-chips.com> applied for 4.14 with the following changes: - replaced keycode with KEY_POWER - and included dt-bindings/input/input.h - dropped address and size cells Heiko
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web