]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: touchscreen_dmi: Add info for SARY Tab 3 tablet
authorHuy Minh <buingoc67@gmail.com>
Tue, 10 Dec 2024 15:45:00 +0000 (22:45 +0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 11 Dec 2024 13:58:35 +0000 (15:58 +0200)
There's no info about the OEM behind the tablet, only online stores
listing. This tablet uses an Intel Atom x5-Z8300, 4GB of RAM & 64GB
of storage.

Signed-off-by: Huy Minh <buingoc67@gmail.com>
Link: https://lore.kernel.org/r/20241210154500.32124-1-buingoc67@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/touchscreen_dmi.c

index 0a39f68c641d1529c17d2ec954644c2b0eae8ec6..bdc19cd8d3edf725412f7523c3a48279bf957cee 100644 (file)
@@ -855,6 +855,23 @@ static const struct ts_dmi_data rwc_nanote_next_data = {
        .properties = rwc_nanote_next_props,
 };
 
+static const struct property_entry sary_tab_3_props[] = {
+       PROPERTY_ENTRY_U32("touchscreen-size-x", 1730),
+       PROPERTY_ENTRY_U32("touchscreen-size-y", 1151),
+       PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
+       PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+       PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
+       PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-sary-tab-3.fw"),
+       PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+       PROPERTY_ENTRY_BOOL("silead,home-button"),
+       { }
+};
+
+static const struct ts_dmi_data sary_tab_3_data = {
+       .acpi_name      = "MSSL1680:00",
+       .properties     = sary_tab_3_props,
+};
+
 static const struct property_entry schneider_sct101ctm_props[] = {
        PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
        PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
@@ -1615,6 +1632,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
                        DMI_MATCH(DMI_BIOS_VERSION, "S8A70R100-V005"),
                },
        },
+       {
+               /* SARY Tab 3 */
+               .driver_data = (void *)&sary_tab_3_data,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "SARY"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "C210C"),
+                       DMI_MATCH(DMI_PRODUCT_SKU, "TAB3"),
+               },
+       },
        {
                /* Schneider SCT101CTM */
                .driver_data = (void *)&schneider_sct101ctm_data,