Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 6abfa99

Browse files
committed
platform/x86: touchscreen_dmi: Add upside-down quirk for GDIX1002 ts on the Juno Tablet
The Juno Computers Juno Tablet has an upside-down mounted Goodix touchscreen. Add a quirk to invert both axis to correct for this. Link: https://junocomputers.com/us/product/juno-tablet/ Cc: [email protected] Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1684878 commit 6abfa99

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ static const struct ts_dmi_data gdix1001_01_upside_down_data = {
378378
.properties = gdix1001_upside_down_props,
379379
};
380380

381+
static const struct ts_dmi_data gdix1002_00_upside_down_data = {
382+
.acpi_name = "GDIX1002:00",
383+
.properties = gdix1001_upside_down_props,
384+
};
385+
381386
static const struct property_entry gp_electronic_t701_props[] = {
382387
PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
383388
PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
@@ -1295,6 +1300,18 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
12951300
DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
12961301
},
12971302
},
1303+
{
1304+
/* Juno Tablet */
1305+
.driver_data = (void *)&gdix1002_00_upside_down_data,
1306+
.matches = {
1307+
DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1308+
/* Both product- and board-name being "Default string" is somewhat rare */
1309+
DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1310+
DMI_MATCH(DMI_BOARD_NAME, "Default string"),
1311+
/* Above matches are too generic, add partial bios-version match */
1312+
DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
1313+
},
1314+
},
12981315
{
12991316
/* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
13001317
.driver_data = (void *)&trekstor_surftab_wintron70_data,

0 commit comments

Comments
 (0)