platform/x86: touchscreen_dmi: Add upside-down quirk for GDIX1002 ts on the Juno Tablet
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Hans de Goede <[email protected]>
--- drivers/platform/x86/touchscreen_dmi.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
drivers/platform/x86/touchscreen_dmi.c +17 -0
@@ -378,6 +378,11 @@ static const struct ts_dmi_data gdix1001_01_upside_down_data = { .properties = gdix1001_upside_down_props, }; +static const struct ts_dmi_data gdix1002_00_upside_down_data = { + .acpi_name ="GDIX1002:00" , + .properties = gdix1001_upside_down_props, +}; +static const struct property_entry gp_electronic_t701_props[] = {PROPERTY_ENTRY_U32 ("touchscreen-size-x" ,960 ),PROPERTY_ENTRY_U32 ("touchscreen-size-y" ,640 ),
@@ -1295,6 +1300,18 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), }, }, + { +/* Juno Tablet */ + .driver_data = (void *)&gdix1002_00_upside_down_data, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Default string" ), +/* Both product- and board-name being "Default string" is somewhat rare */ +DMI_MATCH (DMI_PRODUCT_NAME ,"Default string" ), +DMI_MATCH (DMI_BOARD_NAME ,"Default string" ), +/* Above matches are too generic, add partial bios-version match */ + DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."), + }, + }, {/* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */ .driver_data = (void *)&trekstor_surftab_wintron70_data,
Signature · 1 line
2.40.1
Hi,
Quoted 5 lines · Hans de Goede
The Juno Computers Juno Tablet has an upside-down mounted Goodix touchscreen. Add a quirk to invert both axis to correct for this.
I've added this to my review-hans (soon to be for-next) branch now.
Regards,
Hans
Quoted 39 lines
--- drivers/platform/x86/touchscreen_dmi.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)drivers/platform/x86/touchscreen_dmi.c +17
-0@@ -378,6 +378,11 @@ static const struct ts_dmi_data gdix1001_01_upside_down_data = { .properties = gdix1001_upside_down_props, }; +static const struct ts_dmi_data gdix1002_00_upside_down_data = { + .acpi_name ="GDIX1002:00" , + .properties = gdix1001_upside_down_props, +}; +static const struct property_entry gp_electronic_t701_props[] = {PROPERTY_ENTRY_U32 ("touchscreen-size-x" ,960 ),PROPERTY_ENTRY_U32 ("touchscreen-size-y" ,640 ),@@ -1295,6 +1300,18 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), }, }, + { +/* Juno Tablet */ + .driver_data = (void *)&gdix1002_00_upside_down_data, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Default string" ), +/* Both product- and board-name being "Default string" is somewhat rare */ +DMI_MATCH (DMI_PRODUCT_NAME ,"Default string" ), +DMI_MATCH (DMI_BOARD_NAME ,"Default string" ), +/* Above matches are too generic, add partial bios-version match */ + DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."), + }, + }, {/* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */ .driver_data = (void *)&trekstor_surftab_wintron70_data,