]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
a39dba80ca938703418a50788e3ee095aa633030
[thirdparty/kernel/stable-queue.git] /
1 From 6abfa99ce52f61a31bcfc2aaaae09006f5665495 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Fri, 5 May 2023 23:03:23 +0200
4 Subject: platform/x86: touchscreen_dmi: Add upside-down quirk for GDIX1002 ts on the Juno Tablet
5
6 From: Hans de Goede <hdegoede@redhat.com>
7
8 commit 6abfa99ce52f61a31bcfc2aaaae09006f5665495 upstream.
9
10 The Juno Computers Juno Tablet has an upside-down mounted Goodix
11 touchscreen. Add a quirk to invert both axis to correct for this.
12
13 Link: https://junocomputers.com/us/product/juno-tablet/
14 Cc: stable@vger.kernel.org
15 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
16 Link: https://lore.kernel.org/r/20230505210323.43177-1-hdegoede@redhat.com
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 ---
19 drivers/platform/x86/touchscreen_dmi.c | 17 +++++++++++++++++
20 1 file changed, 17 insertions(+)
21
22 --- a/drivers/platform/x86/touchscreen_dmi.c
23 +++ b/drivers/platform/x86/touchscreen_dmi.c
24 @@ -258,6 +258,11 @@ static const struct ts_dmi_data estar_be
25 .properties = estar_beauty_hd_props,
26 };
27
28 +static const struct ts_dmi_data gdix1002_00_upside_down_data = {
29 + .acpi_name = "GDIX1002:00",
30 + .properties = gdix1001_upside_down_props,
31 +};
32 +
33 static const struct property_entry gp_electronic_t701_props[] = {
34 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
35 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
36 @@ -864,6 +869,18 @@ static const struct dmi_system_id touchs
37 },
38 },
39 {
40 + /* Juno Tablet */
41 + .driver_data = (void *)&gdix1002_00_upside_down_data,
42 + .matches = {
43 + DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
44 + /* Both product- and board-name being "Default string" is somewhat rare */
45 + DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
46 + DMI_MATCH(DMI_BOARD_NAME, "Default string"),
47 + /* Above matches are too generic, add partial bios-version match */
48 + DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
49 + },
50 + },
51 + {
52 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
53 .driver_data = (void *)&trekstor_surftab_wintron70_data,
54 .matches = {