All of lore.kernel.org
 help / color / mirror / Atom feed
* ARM: dts: motorola-mapphone-common: Add dts configureation for the android buttons beneath the screen
@ 2020-08-17 15:41 Dev Null
  0 siblings, 0 replies; only message in thread
From: Dev Null @ 2020-08-17 15:41 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-input

Uses the touchscreen-buttons driver for the android buttons on the droid 4

diff --git a/arch/arm/boot/dts/motorola-mapphone-common.dtsi b/arch/arm/boot/dts/motorola-mapphone-common.dtsi
index cef4d8abdaa1..455e6b624802 100644
--- a/arch/arm/boot/dts/motorola-mapphone-common.dtsi
+++ b/arch/arm/boot/dts/motorola-mapphone-common.dtsi
@@ -176,6 +176,40 @@ pwm9: dmtimer-pwm-9 {
 		ti,clock-source = <0x01>;
 	};
 
+	mapphone_touchscreen {
+			/* keycodes must be >255 or the kernel vt will hold the device open wasteing power */
+			compatible = "touchscreen-buttons";
+			touchscreen_phandle = <&touchscreen>;
+			menu {
+				x-position = <0>;
+				y-position = <950>;
+				x-size = <256>;
+				y-size = <74>;
+				keycode = <KEY_KBD_LCD_MENU1>;
+			};
+			home {
+				x-position = <256>;
+				y-position = <950>;
+				x-size = <256>;
+				y-size = <74>;
+				keycode = <KEY_KBD_LCD_MENU2>;
+			};
+			back {
+				x-position = <512>;
+				y-position = <950>;
+				x-size = <256>;
+				y-size = <74>;
+				keycode = <KEY_KBD_LCD_MENU3>;
+			};
+			search {
+				x-position = <768>;
+				y-position = <950>;
+				x-size = <256>;
+				y-size = <74>;
+				keycode = <KEY_KBD_LCD_MENU4>;
+			};
+	};
+
 	vibrator {
 		compatible = "pwm-vibrator";
 		pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
@@ -422,7 +456,7 @@ led@1 {
 };
 
 &i2c2 {
-	touchscreen@4a {
+	touchscreen: touchscreen@4a {
 		compatible = "atmel,maxtouch";
 		reg = <0x4a>;
 		pinctrl-names = "default";
diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index d397ad4006f2..bd15ad5278d9 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -249,6 +249,7 @@ CONFIG_TOUCHSCREEN_TSC2005=m
 CONFIG_TOUCHSCREEN_TSC2007=m
 CONFIG_INPUT_MISC=y
 CONFIG_INPUT_CPCAP_PWRBUTTON=m
+CONFIG_INPUT_TOUCHSCREEN_BUTTONS=m
 CONFIG_INPUT_TPS65218_PWRBUTTON=m
 CONFIG_INPUT_TWL4030_PWRBUTTON=m
 CONFIG_INPUT_UINPUT=m

-- 
Dev Null <devnull@uvos.xyz>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-17 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17 15:41 ARM: dts: motorola-mapphone-common: Add dts configureation for the android buttons beneath the screen Dev Null

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.