Skip to contentSkip to conversation

Input: silead - Add support for capactive home button found on some x86 tablets

PATCH Superseded Hans de Goede 1 participant 1 message Nov 28, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 Input: silead - Add support for capactive home button found on some x86 tablets

On some x86 tablets with a silead touchscreen the windows logo on the front is a capacitive home button. Touching this button results in a touch with bits 12-15 of the Y coordinates set, while normally only the lower 12 are used.

Detect this and report a KEY_LEFTMETA press when this happens. Note for now we only respond to the Y coordinate bits 12-15 containing 0x01, on some tablets *without* a capacative button I've noticed these bits containing 0x04 when crossing the edges of the screen.

---
Changes in v2:
-Only enable support for the home-button if a "silead,home-button"
boolean device-property is set on the device

Changes in v3:
-Document the new silead,home-button property in:
Documentation/devicetree/bindings/input/touchscreen/goodix.txt

Changes in v4:
-Add Rob's Acked-by for the DT binding

---
 .../bindings/input/touchscreen/silead_gsl1680.txt  |  2 +
 drivers/input/touchscreen/silead.c                 | 46 ++++++++++++++++------
 2 files changed, 37 insertions(+), 11 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt +2 -0
index 6aa625e0cb8d..84752de12412 100644
@@ -23,6 +23,8 @@ Optional properties:
 - touchscreen-inverted-y  : See touchscreen.txt
 - touchscreen-swapped-x-y : See touchscreen.txt
 - silead,max-fingers	  : maximum number of fingers the touchscreen can detect
+- silead,home-button	  : Boolean, set to true on devices which have a
+			    capacitive home-button build into the touchscreen
 - vddio-supply		  : regulator phandle for controller VDDIO
 - avdd-supply		  : regulator phandle for controller AVDD
 
drivers/input/touchscreen/silead.c +35 -11

82 lines not on this page · raw message

Signature · 1 line
2.14.3