Skip to content

Commit bbb9429

Browse files
committed
platform/x86: touchscreen_dmi: Add TrekStor SurfTab duo W1 touchscreen info
The TrekStor SurfTab duo W1 (ST10432-10b) has a Goodix touchscreen which has its x-axis mirrored. Add a quirk to fix this. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 48d5e83 commit bbb9429

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,16 @@ static const struct ts_dmi_data trekstor_primetab_t13b_data = {
905905
.properties = trekstor_primetab_t13b_props,
906906
};
907907

908+
static const struct property_entry trekstor_surftab_duo_w1_props[] = {
909+
PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
910+
{ }
911+
};
912+
913+
static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
914+
.acpi_name = "GDIX1001:00",
915+
.properties = trekstor_surftab_duo_w1_props,
916+
};
917+
908918
static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
909919
PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
910920
PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
@@ -1502,6 +1512,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
15021512
DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
15031513
},
15041514
},
1515+
{
1516+
/* TrekStor SurfTab duo W1 10.1 ST10432-10b */
1517+
.driver_data = (void *)&trekstor_surftab_duo_w1_data,
1518+
.matches = {
1519+
DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1520+
DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1521+
},
1522+
},
15051523
{
15061524
/* TrekStor SurfTab twin 10.1 ST10432-8 */
15071525
.driver_data = (void *)&trekstor_surftab_twin_10_1_data,

0 commit comments

Comments
 (0)