Input: silead - Add support for capactive home button found on some x86 tablets
Subsystems (5)
PATCH v3 1/2 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
--- .../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
@@ -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.2
PATCH v3 2/2 platform/x86: silead_dmi: Add silead,home-button property to some tablets
Add "silead,home-button" property to entries for tablets which have a capacitive home button (typically a windows logo on the front).
This new property is checked for by the new capacitive home button support in the silead touchscreen driver.
--- drivers/platform/x86/silead_dmi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/platform/x86/silead_dmi.c +4 -0
@@ -58,6 +58,7 @@ static const struct property_entry dexp_ursus_7w_props[] = {PROPERTY_ENTRY_U32 ("touchscreen-size-y" ,630 ),PROPERTY_ENTRY_STRING ("firmware-name" ,"gsl1686-dexp-ursus-7w.fw" ),PROPERTY_ENTRY_U32 ("silead,max-fingers" ,10 ), + PROPERTY_ENTRY_BOOL("silead,home-button"), { } };
@@ -72,6 +73,7 @@ static const struct property_entry surftab_wintron70_st70416_6_props[] = {PROPERTY_ENTRY_STRING ("firmware-name" ,"gsl1686-surftab-wintron70-st70416-6.fw" ),PROPERTY_ENTRY_U32 ("silead,max-fingers" ,10 ), + PROPERTY_ENTRY_BOOL("silead,home-button"), { } };
@@ -116,6 +118,7 @@ static const struct property_entry pov_mobii_wintab_p800w_props[] = {PROPERTY_ENTRY_BOOL ("touchscreen-swapped-x-y" ),PROPERTY_ENTRY_STRING ("firmware-name" ,"gsl3692-pov-mobii-wintab-p800w.fw" ), + PROPERTY_ENTRY_BOOL("silead,home-button"), { } };
@@ -143,6 +146,7 @@ static const struct property_entry chuwi_hi8_pro_props[] = {PROPERTY_ENTRY_U32 ("touchscreen-size-y" ,1148 ),PROPERTY_ENTRY_BOOL ("touchscreen-swapped-x-y" ),PROPERTY_ENTRY_STRING ("firmware-name" ,"gsl3680-chuwi-hi8-pro.fw" ), + PROPERTY_ENTRY_BOOL("silead,home-button"), { } };
Signature · 1 line
2.14.2
Quoted 8 lines · Hans de Goede
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_LEFTMETApress when this happens. Note for now we only respond to the Y coordinate bits 12-15 containing0x01, on some tablets *without* a capacative button I've noticed these bits containing
capacitive
Quoted 9 lines
0x04when crossing the edges of the screen.Cc Rob Herring <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v2:
-Only enable support for the home-button if a "silead,home-button"
boolean device-property is set on the device
Quoted 5 lines
Changes in v3:
-Document the new silead,home-button property in:
Documentation/devicetree/bindings/input/touchscreen/goodix.txt--- .../bindings/input/touchscreen/silead_gsl1680.txt | 2 +
Quoted 2 lines
drivers/input/touchscreen/silead.c | 46 ++++++++++++++++------ 2 files changed, 37 insertions(+), 11 deletions(-)
Hi,
Quoted 21 lines · Rob Herring
Quoted 8 lines · Hans de Goede
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_LEFTMETApress when this happens. Note for now we only respond to the Y coordinate bits 12-15 containing0x01, on some tablets *without* a capacative button I've noticed these bits containingcapacitive
Quoted 9 lines
0x04when crossing the edges of the screen.Cc Rob Herring <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v2:
-Only enable support for the home-button if a "silead,home-button"
boolean device-property is set on the device
Quoted 7 lines
Quoted 5 lines
Changes in v3:
-Document the new silead,home-button property in:
Documentation/devicetree/bindings/input/touchscreen/goodix.txt--- .../bindings/input/touchscreen/silead_gsl1680.txt | 2 +Acked-by Rob Herring <[email protected]>
I believe this means this is ready to be merged now. It would be nice if we could still get this into 4.15 for rc2 (it is a fix in a way).
Regards,
Hans