diff mbox

[v4,3/5] ARM: dts: omap3-sniper: TWL4030 keypad support

Message ID 1456663185-14170-4-git-send-email-contact@paulk.fr (mailing list archive)
State New, archived
Headers show

Commit Message

Paul Kocialkowski Feb. 28, 2016, 12:39 p.m. UTC
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(+)

Comments

Paul Kocialkowski March 1, 2016, 7:19 p.m. UTC | #1
Hi,

Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> This adds support for the volume and gesture keys, using TWL4030 keypad.

I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/linux
/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt

Should I submit it somewhere else instead?

> 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 6e31daf..78a1184 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,
Tony Lindgren March 1, 2016, 8:59 p.m. UTC | #2
* Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> Hi,
> 
> Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> > This adds support for the volume and gesture keys, using TWL4030 keypad.
> 
> I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/linux
> /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> 
> Should I submit it somewhere else instead?

No sorry I missed it. I've now applied it to omap-for-v4.6/dt
and pushed out.

Regards,

Tony
Paul Kocialkowski March 1, 2016, 10:04 p.m. UTC | #3
Le mardi 01 mars 2016 à 12:59 -0800, Tony Lindgren a écrit :
> * Paul Kocialkowski <contact@paulk.fr> [160301 11:19]:
> > Hi,
> > 
> > Le dimanche 28 février 2016 à 13:39 +0100, Paul Kocialkowski a écrit :
> > > This adds support for the volume and gesture keys, using TWL4030 keypad.
> > 
> > I noticed this patch hadn't been picked up in: https://git.kernel.org/cgit/l
> > inux
> > /kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v4.6/dt
> > 
> > Should I submit it somewhere else instead?
> 
> No sorry I missed it. I've now applied it to omap-for-v4.6/dt
> and pushed out.

Great, thanks a lot!
diff mbox

Patch

diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts
index 6e31daf..78a1184 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,