Skip to content

Commit df5b5e5

Browse files
jwrdegoededtor
authored andcommitted
Input: goodix - add upside-down quirk for Teclast X89 tablet
The touchscreen on the Teclast X89 is mounted upside down in relation to the display orientation (the touchscreen itself is mounted upright, but the display is mounted upside-down). Add a quirk for this so that we send coordinates which match the display orientation. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Bastien Nocera <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 25b2f1b commit df5b5e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/input/touchscreen/goodix.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ static const unsigned long goodix_irq_flags[] = {
128128
*/
129129
static const struct dmi_system_id rotated_screen[] = {
130130
#if defined(CONFIG_DMI) && defined(CONFIG_X86)
131+
{
132+
.ident = "Teclast X89",
133+
.matches = {
134+
/* tPAD is too generic, also match on bios date */
135+
DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
136+
DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
137+
DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
138+
},
139+
},
131140
{
132141
.ident = "WinBook TW100",
133142
.matches = {

0 commit comments

Comments
 (0)