All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sre@kernel.org>
To: "Sebastian Reichel" <sre@kernel.org>,
	"Tony Lindgren" <tony@atomide.com>,
	"Benoît Cousson" <bcousson@baylibre.com>
Cc: Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/8] ARM: dts: omap4-droid4: Add gpio-keys
Date: Thu,  2 Mar 2017 02:08:53 +0100	[thread overview]
Message-ID: <20170302010900.28532-2-sre@kernel.org> (raw)
In-Reply-To: <20170302010900.28532-1-sre@kernel.org>

On Droid 4 "Volume Down" and "Keypad Slide" keys are
connected via SoC GPIOs, "Power Key" via CPCAP and
all other keys via SoC keypad Matrix. This adds the
GPIO keys.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/boot/dts/omap4-droid4-xt894.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
index f3ccb4ceed9e..89f5f17cda7a 100644
--- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
+++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
@@ -6,6 +6,7 @@
 /dts-v1/;
 
 #include "omap443x.dtsi"
+#include <dt-bindings/input/input.h>
 
 / {
 	model = "Motorola Droid 4 XT894";
@@ -53,6 +54,26 @@
 		startup-delay-us = <70000>;
 		enable-active-high;
 	};
+
+	gpio_keys {
+		compatible = "gpio-keys";
+
+		volume_down {
+			label = "Volume Down";
+			gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */
+			linux,code = <KEY_VOLUMEDOWN>;
+			linux,can-disable;
+		};
+
+		slider {
+			label = "Keypad Slide";
+			gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>; /* gpio122 */
+			linux,input-type = <EV_SW>;
+			linux,code = <SW_KEYPAD_SLIDE>;
+			linux,can-disable;
+
+		};
+	};
 };
 
 /* L3_2 interconnect is unused, SRAM, GPMC and L3_ICLK2 disabled */
-- 
2.11.0

  reply	other threads:[~2017-03-02  1:08 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02  1:08 [PATCH 0/8] Droid4 DTS update Sebastian Reichel
2017-03-02  1:08 ` Sebastian Reichel [this message]
2017-03-02  1:08 ` [PATCH 2/8] ARM: dts: omap4-droid4: Configure regulators Sebastian Reichel
2017-03-02  1:08 ` [PATCH 3/8] ARM: dts: motorola-cpcap-mapphone: add rtc Sebastian Reichel
2017-03-02  1:08 ` [PATCH 4/8] ARM: dts: motorola-cpcap-mapphone: add pwrbutton Sebastian Reichel
2017-03-02  1:08 ` [PATCH 5/8] ARM: dts: omap4-droid4: Add compass Sebastian Reichel
2017-03-02  1:08 ` [PATCH 6/8] ARM: dts: omap4-droid4: Add accelerometer Sebastian Reichel
2017-03-02  1:08 ` [PATCH 7/8] ARM: dts: omap4-droid4: Add touchscreen Sebastian Reichel
2017-03-02  1:09 ` [PATCH 8/8] ARM: dts: omap4-droid4: Add keypad support Sebastian Reichel
     [not found]   ` <20170302010900.28532-9-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-03-02  1:41     ` Tony Lindgren
2017-03-02  1:41       ` Tony Lindgren
     [not found] ` <20170302010900.28532-1-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-03-02  1:37   ` [PATCH 0/8] Droid4 DTS update Tony Lindgren
2017-03-02  1:37     ` Tony Lindgren
2017-03-02  1:49     ` Tony Lindgren
     [not found]       ` <20170302014910.GM20572-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-03 11:01         ` Sebastian Reichel
2017-03-03 11:01           ` Sebastian Reichel
2017-03-03 16:28           ` Tony Lindgren
2017-03-03 16:28             ` Tony Lindgren
     [not found]             ` <20170303162824.GW20572-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-04 16:26               ` Tony Lindgren
2017-03-04 16:26                 ` Tony Lindgren
     [not found]                 ` <20170304162655.GZ20572-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-04 23:50                   ` Sebastian Reichel
2017-03-04 23:50                     ` Sebastian Reichel
     [not found]     ` <20170302013707.GK20572-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-03-03 11:17       ` Sebastian Reichel
2017-03-03 11:17         ` Sebastian Reichel
2017-03-03 16:31         ` Tony Lindgren
2017-03-03 16:31           ` Tony Lindgren
2017-03-17 11:48   ` Pavel Machek
2017-03-17 11:48     ` Pavel Machek
2017-03-17 14:00     ` Tony Lindgren

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=20170302010900.28532-2-sre@kernel.org \
    --to=sre@kernel.org \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.