From: Frank Wang <frank.wang@rock-chips.com>
To: heiko@sntech.de
Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk,
linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, huangtao@rock-chips.com,
kever.yang@rock-chips.com, david.wu@rock-chips.com,
finley.xiao@rock-chips.com, wmc@rock-chips.com,
Frank Wang <frank.wang@rock-chips.com>
Subject: [PATCH 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb
Date: Tue, 4 Jul 2017 16:15:01 +0800 [thread overview]
Message-ID: <1499156101-26404-1-git-send-email-frank.wang@rock-chips.com> (raw)
In-Reply-To: <1499155967-26090-1-git-send-email-frank.wang@rock-chips.com>
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 43c3ad2..7cfe893 100644
--- a/arch/arm/boot/dts/rk3229-evb.dts
+++ b/arch/arm/boot/dts/rk3229-evb.dts
@@ -124,6 +124,24 @@
regulator-always-on;
};
};
+
+ 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 {
@@ -166,6 +184,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
prev parent reply other threads:[~2017-07-04 8:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 8:12 [PATCH 0/6] add and enable some device nodes for rk3229-evb board Frank Wang
2017-07-04 8:12 ` [PATCH 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang
2017-07-04 8:34 ` Heiko Stübner
2017-07-04 9:37 ` Frank Wang
2017-07-04 8:12 ` [PATCH 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang
2017-07-04 8:12 ` [PATCH 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang
2017-07-04 8:12 ` [PATCH 4/6] ARM: dts: rockchip: enable eMMC " Frank Wang
2017-07-04 8:35 ` Heiko Stübner
2017-07-04 8:14 ` [PATCH 5/6] ARM: dts: rockchip: enable tsadc " Frank Wang
2017-07-04 8:15 ` Frank Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1499156101-26404-1-git-send-email-frank.wang@rock-chips.com \
--to=frank.wang@rock-chips.com \
--cc=david.wu@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=finley.xiao@rock-chips.com \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=kever.yang@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=wmc@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®