Skip to content

Commit 0f511ed

Browse files
committed
platform/x86: touchscreen_dmi: Add info for the Predia Basic tablet
Add touchscreen info for the Predia Basic tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20201015194949.50566-1-hdegoede@redhat.com
1 parent 8b205d3 commit 0f511ed

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,23 @@ static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
623623
.properties = pov_mobii_wintab_p1006w_v10_props,
624624
};
625625

626+
static const struct property_entry predia_basic_props[] = {
627+
PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
628+
PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
629+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
630+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
631+
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
632+
PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
633+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
634+
PROPERTY_ENTRY_BOOL("silead,home-button"),
635+
{ }
636+
};
637+
638+
static const struct ts_dmi_data predia_basic_data = {
639+
.acpi_name = "MSSL1680:00",
640+
.properties = predia_basic_props,
641+
};
642+
626643
static const struct property_entry schneider_sct101ctm_props[] = {
627644
PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
628645
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
@@ -1109,6 +1126,16 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
11091126
DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
11101127
},
11111128
},
1129+
{
1130+
/* Predia Basic tablet) */
1131+
.driver_data = (void *)&predia_basic_data,
1132+
.matches = {
1133+
DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1134+
DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1135+
/* Above matches are too generic, add bios-version match */
1136+
DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1137+
},
1138+
},
11121139
{
11131140
/* Point of View mobii wintab p800w (v2.1) */
11141141
.driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,

0 commit comments

Comments
 (0)