From: Paul Kocialkowski <contact@paulk.fr>
To: linux-kernel@vger.kernel.org
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Pawel Moll" <pawel.moll@arm.com>,
"Mark Rutland" <mark.rutland@arm.com>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Kumar Gala" <galak@codeaurora.org>,
"Russell King" <linux@arm.linux.org.uk>,
"Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Javier Martinez Canillas" <javier@dowhile0.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-omap@vger.kernel.org,
"Paul Kocialkowski" <contact@paulk.fr>
Subject: [PATCH v3 3/4] ARM: dts: omap3-sniper: TWL4030 keypad support
Date: Sun, 28 Feb 2016 11:20:26 +0100 [thread overview]
Message-ID: <1456654827-11349-4-git-send-email-contact@paulk.fr> (raw)
In-Reply-To: <1456654827-11349-1-git-send-email-contact@paulk.fr>
This adds support for the volume and gesture keys, using TWL4030 keypad.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
arch/arm/boot/dts/omap3-sniper.dts | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index 21d6afa..7f38d58 100644
--- a/arch/arm/boot/dts/omap3-sniper.dts
+++ b/arch/arm/boot/dts/omap3-sniper.dts
@@ -8,6 +8,7 @@
/dts-v1/;
#include "omap36xx.dtsi"
+#include <dt-bindings/input/input.h>
/ {
model = "LG Optimus Black";
@@ -226,6 +227,14 @@
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
+&twl_keypad {
+ linux,keymap = <
+ MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
+ MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
+ MATRIX_KEY(0x02, 0x00, KEY_SELECT)
+ >;
+};
+
/*
* The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
* When not powered, these sensors cause the I2C3 clock to stay low at all times,
--
2.6.4
next prev parent reply other threads:[~2016-02-28 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 10:20 [PATCH v3 0/4] LG Optimus Black codename sniper support series Paul Kocialkowski
2016-02-28 10:20 ` [PATCH v3 1/4] ARM: dts: LG Optimus Black codename sniper basic support Paul Kocialkowski
2016-02-28 10:20 ` [PATCH v3 2/4] ARM: dts: omap3-sniper: USB OTG support Paul Kocialkowski
2016-02-28 10:20 ` Paul Kocialkowski [this message]
2016-02-28 10:20 ` [PATCH v3 4/4] ARM: multi_v7_defconfig: Enable LP872x regulator support Paul Kocialkowski
2016-02-28 12:38 ` [PATCH v3 0/4] LG Optimus Black codename sniper support series Paul Kocialkowski
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=1456654827-11349-4-git-send-email-contact@paulk.fr \
--to=contact@paulk.fr \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=javier@dowhile0.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@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 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®