All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carl Philipp Klemm <philipp@uvos.xyz>
To: tony@atomide.com
Cc: linux-omap@vger.kernel.org, linux-input@vger.kernel.org
Subject: [PATCH v2] ARM: dts: motorola-mapphone-common: Add dts configureation for the android buttons beneath the screen
Date: Thu, 29 Oct 2020 18:07:40 +0100	[thread overview]
Message-ID: <20201029180740.2646dfd6b97fb14a48c309b0@uvos.xyz> (raw)

Uses the touchscreen-buttons driver for the android buttons on the droid 4 / XT894 and droid bionic / XT875

Signed-off-by: Carl Philipp Klemm <carl@uvos.xyz>

---

diff --git a/arch/arm/boot/dts/motorola-mapphone-common.dtsi b/arch/arm/boot/dts/motorola-mapphone-common.dtsi
index cef4d8abdaa1..2f78583619b1 100644
--- a/arch/arm/boot/dts/motorola-mapphone-common.dtsi
+++ b/arch/arm/boot/dts/motorola-mapphone-common.dtsi
@@ -176,6 +176,39 @@ pwm9: dmtimer-pwm-9 {
 		ti,clock-source = <0x01>;
 	};
 
+	mapphone_touchscreen {
+			compatible = "touchscreen-buttons";
+			touchscreen_phandle = <&touchscreen>;
+			menu {
+				x-position = <0>;
+				y-position = <959>;
+				x-size = <256>;
+				y-size = <65>;
+				keycode = <KEY_F9>;
+			};
+			home {
+				x-position = <256>;
+				y-position = <959>;
+				x-size = <256>;
+				y-size = <65>;
+				keycode = <KEY_F10>;
+			};
+			back {
+				x-position = <512>;
+				y-position = <959>;
+				x-size = <256>;
+				y-size = <65>;
+				keycode = <KEY_F11>;
+			};
+			search {
+				x-position = <768>;
+				y-position = <959>;
+				x-size = <256>;
+				y-size = <65>;
+				keycode = <KEY_SEARCH>;
+			};
+	};
+
 	vibrator {
 		compatible = "pwm-vibrator";
 		pwms = <&pwm9 0 10000000 0>, <&pwm8 0 10000000 0>;
@@ -422,7 +455,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 80926c919240..aeb79ade844c 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -248,6 +248,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


-- 
Carl Philipp Klemm <philipp@uvos.xyz> <carl@uvos.xyz>

                 reply	other threads:[~2020-10-29 17:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20201029180740.2646dfd6b97fb14a48c309b0@uvos.xyz \
    --to=philipp@uvos.xyz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-omap@vger.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.