platform/x86: touchscreen_dmi: Add an extra entry for the upside down Goodix touchscr...
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 May 2021 18:57:44 +0000 (20:57 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 20 May 2021 13:17:15 +0000 (15:17 +0200)
Teclast X89 tablets come in 2 versions, with Windows pre-installed and with
Android pre-installed. These 2 versions have different DMI strings.

Add a match for the DMI strings used by the Android version BIOS.

Note the Android version BIOS has a bug in the DSDT where no IRQ is
provided, so for the touchscreen to work a DSDT override fixing this
is necessary as well.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210504185746.175461-4-hdegoede@redhat.com
drivers/platform/x86/touchscreen_dmi.c

index a53e176..08ec616 100644 (file)
@@ -1304,6 +1304,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
                        DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
                },
        },
+       {
+               /* Teclast X89 (Android version / BIOS) */
+               .driver_data = (void *)&gdix1001_00_upside_down_data,
+               .matches = {
+                       DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
+                       DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
+               },
+       },
        {
                /* Teclast X89 (Windows version / BIOS) */
                .driver_data = (void *)&gdix1001_01_upside_down_data,