linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jacob-chen@iotwrt.com (Jacob Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/5] ARM: dts: rockchip: enable adc key for rk3288-evb
Date: Sat,  1 Jul 2017 10:02:47 +0800	[thread overview]
Message-ID: <1498874567-11219-6-git-send-email-jacob-chen@iotwrt.com> (raw)
In-Reply-To: <1498874567-11219-1-git-send-email-jacob-chen@iotwrt.com>

rk3288-evb have many tablet-used adc buttons.

Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
---
 arch/arm/boot/dts/rk3288-evb.dtsi | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi b/arch/arm/boot/dts/rk3288-evb.dtsi
index 9cee856..835ddb8 100644
--- a/arch/arm/boot/dts/rk3288-evb.dtsi
+++ b/arch/arm/boot/dts/rk3288-evb.dtsi
@@ -48,6 +48,43 @@
 		reg = <0x0 0x80000000>;
 	};
 
+	adc-keys {
+		compatible = "adc-keys";
+		io-channels = <&saradc 1>;
+		io-channel-names = "buttons";
+		keyup-threshold-microvolt = <1800000>;
+
+		button-up {
+			label = "Volume Up";
+			linux,code = <KEY_VOLUMEUP>;
+			press-threshold-microvolt = <100000>;
+		};
+
+		button-down {
+			label = "Volume Down";
+			linux,code = <KEY_VOLUMEDOWN>;
+			press-threshold-microvolt = <300000>;
+		};
+
+		menu {
+			label = "Menu";
+			linux,code = <KEY_MENU>;
+			press-threshold-microvolt = <640000>;
+		};
+
+		esc {
+			label = "Esc";
+			linux,code = <KEY_ESC>;
+			press-threshold-microvolt = <1000000>;
+		};
+
+		home  {
+			label = "Home";
+			linux,code = <KEY_HOME>;
+			press-threshold-microvolt = <1300000>;
+		};
+	};
+
 	backlight: backlight {
 		compatible = "pwm-backlight";
 		brightness-levels = <
-- 
2.7.4

  parent reply	other threads:[~2017-07-01  2:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-01  2:02 [PATCH 0/5] some devicetree changes for rk3288 boards Jacob Chen
2017-07-01  2:02 ` [PATCH 1/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-tinker Jacob Chen
2017-07-01  2:02 ` [PATCH 2/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-evb Jacob Chen
2017-07-01  2:02 ` [PATCH 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-fennec Jacob Chen
2017-07-01  2:02 ` [PATCH 4/5] ARM: dts: rockchip: enable saradc for rk3288-evb Jacob Chen
2017-07-01 11:06   ` Heiko Stuebner
2017-07-01 12:55     ` chen
2017-07-01  2:02 ` Jacob Chen [this message]
2017-07-01 19:26 ` [PATCH 0/5] some devicetree changes for rk3288 boards Heiko Stuebner

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=1498874567-11219-6-git-send-email-jacob-chen@iotwrt.com \
    --to=jacob-chen@iotwrt.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).