Skip to content

Commit 1abdf28

Browse files
Phoenix-TWjwrdegoede
authored andcommitted
platform/x86: touchscreen_dmi: Add info for the TECLAST X16 Plus tablet
Add touch screen info for TECLAST X16 Plus tablet. Signed-off-by: Phoenix Chen <asbeltogf@gmail.com> Link: https://lore.kernel.org/r/20240126095308.5042-1-asbeltogf@gmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 8c898ec commit 1abdf28

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,32 @@ static const struct ts_dmi_data teclast_tbook11_data = {
944944
.properties = teclast_tbook11_props,
945945
};
946946

947+
static const struct property_entry teclast_x16_plus_props[] = {
948+
PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
949+
PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
950+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
951+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
952+
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
953+
PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-x16-plus.fw"),
954+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
955+
PROPERTY_ENTRY_BOOL("silead,home-button"),
956+
{ }
957+
};
958+
959+
static const struct ts_dmi_data teclast_x16_plus_data = {
960+
.embedded_fw = {
961+
.name = "silead/gsl3692-teclast-x16-plus.fw",
962+
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
963+
.length = 43560,
964+
.sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
965+
0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
966+
0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
967+
0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
968+
},
969+
.acpi_name = "MSSL1680:00",
970+
.properties = teclast_x16_plus_props,
971+
};
972+
947973
static const struct property_entry teclast_x3_plus_props[] = {
948974
PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
949975
PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
@@ -1612,6 +1638,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
16121638
DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
16131639
},
16141640
},
1641+
{
1642+
/* Teclast X16 Plus */
1643+
.driver_data = (void *)&teclast_x16_plus_data,
1644+
.matches = {
1645+
DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1646+
DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1647+
DMI_MATCH(DMI_PRODUCT_SKU, "D3A5_A1"),
1648+
},
1649+
},
16151650
{
16161651
/* Teclast X3 Plus */
16171652
.driver_data = (void *)&teclast_x3_plus_data,

0 commit comments

Comments
 (0)