platform/x86: touchscreen_dmi: Add info for the PoV Wintab P1006w (v1.0) tablet
authorHans de Goede <hdegoede@redhat.com>
Thu, 20 Dec 2018 21:21:50 +0000 (22:21 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 Feb 2019 17:38:20 +0000 (19:38 +0200)
Add touchscreen info for the Point of View Wintab P1006w (v1.0) tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/touchscreen_dmi.c

index 8c5d47c..ce8ebbb 100644 (file)
@@ -369,6 +369,24 @@ static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
        .properties     = pov_mobii_wintab_p800w_v21_props,
 };
 
+static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
+       PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
+       PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
+       PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
+       PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
+       PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+       PROPERTY_ENTRY_STRING("firmware-name",
+                             "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
+       PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+       PROPERTY_ENTRY_BOOL("silead,home-button"),
+       { }
+};
+
+static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
+       .acpi_name      = "MSSL1680:00",
+       .properties     = pov_mobii_wintab_p1006w_v10_props,
+};
+
 static const struct property_entry teclast_x3_plus_props[] = {
        PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
        PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
@@ -707,6 +725,17 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
                },
        },
        {
+               /* Point of View mobii wintab p1006w (v1.0) */
+               .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
+               .matches = {
+                       DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
+                       /* Note 105b is Foxcon's USB/PCI vendor id */
+                       DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
+                       DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
+               },
+       },
+       {
                /* Teclast X3 Plus */
                .driver_data = (void *)&teclast_x3_plus_data,
                .matches = {