Skip to contentSkip to conversation

Input: goodix - Add upside-down quirk for Teclast X89 tablet

PATCH Applied Hans de Goede 3 participants 3 messages Dec 2, 2019 – Dec 7, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/input/touchscreen/goodix.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/input/touchscreen/goodix.c +9 -0
index fb43aa708660..0403102e807e 100644
@@ -128,6 +128,15 @@ static const unsigned long goodix_irq_flags[] = {
  */
 static const struct dmi_system_id rotated_screen[] = {
 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
+	{
+		.ident = "Teclast X89",
+		.matches = {
+			/* tPAD is too generic, also match on bios date */
+			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+			DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
+			DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
+		},
+	},
 	{
 		.ident = "WinBook TW100",
 		.matches = {
Signature · 1 line
2.23.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Hans de Goede

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.

Looks good

Quoted 27 lines
---
 drivers/input/touchscreen/goodix.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/input/touchscreen/goodix.c +9 -0
index fb43aa708660..0403102e807e 100644
@@ -128,6 +128,15 @@ static const unsigned long goodix_irq_flags[] =
 {
  */
 static const struct dmi_system_id rotated_screen[] = {
 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
+	{
+		.ident = "Teclast X89",
+		.matches = {
+			/* tPAD is too generic, also match on bios date
 */
+			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+			DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
+			DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
+		},
+	},
 	{
drivers/input/touchscreen/goodix.c +0 -0
 		.ident = "WinBook TW100",
 		.matches = {
maintainer Applied
#2 lore raw
Quoted 8 lines · Bastien Nocera
Quoted 7 lines · Hans de Goede

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.

Quoted 5 lines
Quoted 1 line

Looks good

Applied, thank you.

Quoted 29 lines
Quoted 28 lines
---
 drivers/input/touchscreen/goodix.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/input/touchscreen/goodix.c +9 -0
index fb43aa708660..0403102e807e 100644
@@ -128,6 +128,15 @@ static const unsigned long goodix_irq_flags[] =
 {
  */
 static const struct dmi_system_id rotated_screen[] = {
 #if defined(CONFIG_DMI) && defined(CONFIG_X86)
+	{
+		.ident = "Teclast X89",
+		.matches = {
+			/* tPAD is too generic, also match on bios date
 */
+			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
+			DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
+			DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
+		},
+	},
 	{
drivers/input/touchscreen/goodix.c +0 -0
 		.ident = "WinBook TW100",
 		.matches = {
Signature · 1 line
Dmitry