1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Touchscreen driver DMI based configuration code
5 * Copyright (c) 2017 Red Hat Inc.
11 #include <linux/acpi.h>
12 #include <linux/device.h>
13 #include <linux/dmi.h>
14 #include <linux/efi_embedded_fw.h>
15 #include <linux/i2c.h>
16 #include <linux/notifier.h>
17 #include <linux/property.h>
18 #include <linux/string.h>
21 /* The EFI embedded-fw code expects this to be the first member! */
22 struct efi_embedded_fw_desc embedded_fw;
23 const char *acpi_name;
24 const struct property_entry *properties;
27 /* NOTE: Please keep all entries sorted alphabetically */
29 static const struct property_entry chuwi_hi8_props[] = {
30 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
31 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
32 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
33 PROPERTY_ENTRY_BOOL("silead,home-button"),
34 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
38 static const struct ts_dmi_data chuwi_hi8_data = {
39 .acpi_name = "MSSL0001:00",
40 .properties = chuwi_hi8_props,
43 static const struct property_entry chuwi_hi8_air_props[] = {
44 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
45 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
46 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
47 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"),
48 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
52 static const struct ts_dmi_data chuwi_hi8_air_data = {
53 .acpi_name = "MSSL1680:00",
54 .properties = chuwi_hi8_air_props,
57 static const struct property_entry chuwi_hi8_pro_props[] = {
58 PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
59 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
60 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
61 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
62 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
63 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
64 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
65 PROPERTY_ENTRY_BOOL("silead,home-button"),
69 static const struct ts_dmi_data chuwi_hi8_pro_data = {
71 .name = "silead/gsl3680-chuwi-hi8-pro.fw",
72 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
74 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
75 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95,
76 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92,
77 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff },
79 .acpi_name = "MSSL1680:00",
80 .properties = chuwi_hi8_pro_props,
83 static const struct property_entry chuwi_hi10_air_props[] = {
84 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
85 PROPERTY_ENTRY_U32("touchscreen-size-y", 1271),
86 PROPERTY_ENTRY_U32("touchscreen-min-x", 99),
87 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
88 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
89 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5),
90 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4),
91 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"),
92 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
93 PROPERTY_ENTRY_BOOL("silead,home-button"),
97 static const struct ts_dmi_data chuwi_hi10_air_data = {
98 .acpi_name = "MSSL1680:00",
99 .properties = chuwi_hi10_air_props,
102 static const struct property_entry chuwi_hi10_plus_props[] = {
103 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
104 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
105 PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
106 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
107 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
108 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
109 PROPERTY_ENTRY_BOOL("silead,home-button"),
110 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
111 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
112 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
116 static const struct ts_dmi_data chuwi_hi10_plus_data = {
118 .name = "silead/gsl1680-chuwi-hi10plus.fw",
119 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
121 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
122 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
123 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
124 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
126 .acpi_name = "MSSL0017:00",
127 .properties = chuwi_hi10_plus_props,
130 static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 };
132 static const struct property_entry chuwi_hi10_pro_props[] = {
133 PROPERTY_ENTRY_U32("touchscreen-min-x", 80),
134 PROPERTY_ENTRY_U32("touchscreen-min-y", 26),
135 PROPERTY_ENTRY_U32("touchscreen-size-x", 1962),
136 PROPERTY_ENTRY_U32("touchscreen-size-y", 1254),
137 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
138 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
139 PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
140 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
141 PROPERTY_ENTRY_BOOL("silead,home-button"),
142 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
143 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
144 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
148 static const struct ts_dmi_data chuwi_hi10_pro_data = {
150 .name = "silead/gsl1680-chuwi-hi10-pro.fw",
151 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
153 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
154 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
155 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
156 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
158 .acpi_name = "MSSL1680:00",
159 .properties = chuwi_hi10_pro_props,
162 static const struct property_entry chuwi_hibook_props[] = {
163 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
164 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
165 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
166 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
167 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
168 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
169 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
170 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
171 PROPERTY_ENTRY_BOOL("silead,home-button"),
175 static const struct ts_dmi_data chuwi_hibook_data = {
177 .name = "silead/gsl1680-chuwi-hibook.fw",
178 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
180 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
181 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
182 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
183 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
185 .acpi_name = "MSSL0017:00",
186 .properties = chuwi_hibook_props,
189 static const struct property_entry chuwi_vi8_props[] = {
190 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
191 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
192 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
193 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
194 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
195 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
196 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
197 PROPERTY_ENTRY_BOOL("silead,home-button"),
201 static const struct ts_dmi_data chuwi_vi8_data = {
202 .acpi_name = "MSSL1680:00",
203 .properties = chuwi_vi8_props,
206 static const struct ts_dmi_data chuwi_vi8_plus_data = {
208 .name = "chipone/icn8505-HAMP0002.fw",
209 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
211 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
212 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
213 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
214 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
218 static const struct property_entry chuwi_vi10_props[] = {
219 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
220 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
221 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
222 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
223 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
224 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
225 PROPERTY_ENTRY_BOOL("silead,home-button"),
229 static const struct ts_dmi_data chuwi_vi10_data = {
230 .acpi_name = "MSSL0002:00",
231 .properties = chuwi_vi10_props,
234 static const struct property_entry chuwi_surbook_mini_props[] = {
235 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
236 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
237 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
238 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
239 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
240 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
241 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
245 static const struct ts_dmi_data chuwi_surbook_mini_data = {
246 .acpi_name = "MSSL1680:00",
247 .properties = chuwi_surbook_mini_props,
250 static const struct property_entry connect_tablet9_props[] = {
251 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
252 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
253 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
254 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
255 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
256 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
257 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
258 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
262 static const struct ts_dmi_data connect_tablet9_data = {
263 .acpi_name = "MSSL1680:00",
264 .properties = connect_tablet9_props,
267 static const struct property_entry csl_panther_tab_hd_props[] = {
268 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
269 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
270 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
271 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
272 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
273 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
274 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-csl-panther-tab-hd.fw"),
275 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
279 static const struct ts_dmi_data csl_panther_tab_hd_data = {
280 .acpi_name = "MSSL1680:00",
281 .properties = csl_panther_tab_hd_props,
284 static const struct property_entry cube_iwork8_air_props[] = {
285 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
286 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
287 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
288 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
289 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
290 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
291 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
295 static const struct ts_dmi_data cube_iwork8_air_data = {
297 .name = "silead/gsl3670-cube-iwork8-air.fw",
298 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
300 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
301 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
302 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
303 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
305 .acpi_name = "MSSL1680:00",
306 .properties = cube_iwork8_air_props,
309 static const struct property_entry cube_knote_i1101_props[] = {
310 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
311 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
312 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
313 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
314 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
315 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
316 PROPERTY_ENTRY_BOOL("silead,home-button"),
320 static const struct ts_dmi_data cube_knote_i1101_data = {
321 .acpi_name = "MSSL1680:00",
322 .properties = cube_knote_i1101_props,
325 static const struct property_entry dexp_ursus_7w_props[] = {
326 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
327 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
328 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
329 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
330 PROPERTY_ENTRY_BOOL("silead,home-button"),
334 static const struct ts_dmi_data dexp_ursus_7w_data = {
335 .acpi_name = "MSSL1680:00",
336 .properties = dexp_ursus_7w_props,
339 static const struct property_entry dexp_ursus_kx210i_props[] = {
340 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
341 PROPERTY_ENTRY_U32("touchscreen-min-y", 2),
342 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
343 PROPERTY_ENTRY_U32("touchscreen-size-y", 1137),
344 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-dexp-ursus-kx210i.fw"),
345 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
346 PROPERTY_ENTRY_BOOL("silead,home-button"),
350 static const struct ts_dmi_data dexp_ursus_kx210i_data = {
351 .acpi_name = "MSSL1680:00",
352 .properties = dexp_ursus_kx210i_props,
355 static const struct property_entry digma_citi_e200_props[] = {
356 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
357 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
358 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
359 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
360 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
361 PROPERTY_ENTRY_BOOL("silead,home-button"),
365 static const struct ts_dmi_data digma_citi_e200_data = {
366 .acpi_name = "MSSL1680:00",
367 .properties = digma_citi_e200_props,
370 static const struct property_entry estar_beauty_hd_props[] = {
371 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
375 static const struct ts_dmi_data estar_beauty_hd_data = {
376 .acpi_name = "GDIX1001:00",
377 .properties = estar_beauty_hd_props,
380 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
381 static const struct property_entry gdix1001_upside_down_props[] = {
382 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
383 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
387 static const struct ts_dmi_data gdix1001_00_upside_down_data = {
388 .acpi_name = "GDIX1001:00",
389 .properties = gdix1001_upside_down_props,
392 static const struct ts_dmi_data gdix1001_01_upside_down_data = {
393 .acpi_name = "GDIX1001:01",
394 .properties = gdix1001_upside_down_props,
397 static const struct ts_dmi_data gdix1002_00_upside_down_data = {
398 .acpi_name = "GDIX1002:00",
399 .properties = gdix1001_upside_down_props,
402 static const struct property_entry gp_electronic_t701_props[] = {
403 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
404 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
405 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
406 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
407 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
411 static const struct ts_dmi_data gp_electronic_t701_data = {
412 .acpi_name = "MSSL1680:00",
413 .properties = gp_electronic_t701_props,
416 static const struct property_entry irbis_tw90_props[] = {
417 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
418 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
419 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
420 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
421 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
422 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
423 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
424 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
425 PROPERTY_ENTRY_BOOL("silead,home-button"),
429 static const struct ts_dmi_data irbis_tw90_data = {
430 .acpi_name = "MSSL1680:00",
431 .properties = irbis_tw90_props,
434 static const struct property_entry irbis_tw118_props[] = {
435 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
436 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
437 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
438 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
439 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
440 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
444 static const struct ts_dmi_data irbis_tw118_data = {
445 .acpi_name = "MSSL1680:00",
446 .properties = irbis_tw118_props,
449 static const struct property_entry itworks_tw891_props[] = {
450 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
451 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
452 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
453 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
454 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
455 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
456 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
457 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
461 static const struct ts_dmi_data itworks_tw891_data = {
462 .acpi_name = "MSSL1680:00",
463 .properties = itworks_tw891_props,
466 static const struct property_entry jumper_ezpad_6_pro_props[] = {
467 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
468 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
469 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
470 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
471 PROPERTY_ENTRY_BOOL("silead,home-button"),
475 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
476 .acpi_name = "MSSL1680:00",
477 .properties = jumper_ezpad_6_pro_props,
480 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
481 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
482 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
483 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
484 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
485 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
486 PROPERTY_ENTRY_BOOL("silead,home-button"),
490 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
491 .acpi_name = "MSSL1680:00",
492 .properties = jumper_ezpad_6_pro_b_props,
495 static const struct property_entry jumper_ezpad_6_m4_props[] = {
496 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
497 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
498 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
499 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
500 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
501 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
502 PROPERTY_ENTRY_BOOL("silead,home-button"),
506 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
507 .acpi_name = "MSSL1680:00",
508 .properties = jumper_ezpad_6_m4_props,
511 static const struct property_entry jumper_ezpad_7_props[] = {
512 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
513 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
514 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
515 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
516 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
517 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
518 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
519 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
523 static const struct ts_dmi_data jumper_ezpad_7_data = {
524 .acpi_name = "MSSL1680:00",
525 .properties = jumper_ezpad_7_props,
528 static const struct property_entry jumper_ezpad_mini3_props[] = {
529 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
530 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
531 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
532 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
533 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
534 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
535 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
539 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
540 .acpi_name = "MSSL1680:00",
541 .properties = jumper_ezpad_mini3_props,
544 static const struct property_entry mpman_converter9_props[] = {
545 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
546 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
547 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
548 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
549 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
550 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
551 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
552 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
556 static const struct ts_dmi_data mpman_converter9_data = {
557 .acpi_name = "MSSL1680:00",
558 .properties = mpman_converter9_props,
561 static const struct property_entry mpman_mpwin895cl_props[] = {
562 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
563 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
564 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
565 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
566 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
567 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
568 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
569 PROPERTY_ENTRY_BOOL("silead,home-button"),
573 static const struct ts_dmi_data mpman_mpwin895cl_data = {
574 .acpi_name = "MSSL1680:00",
575 .properties = mpman_mpwin895cl_props,
578 static const struct property_entry myria_my8307_props[] = {
579 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
580 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
581 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
582 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
583 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
584 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
585 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
586 PROPERTY_ENTRY_BOOL("silead,home-button"),
590 static const struct ts_dmi_data myria_my8307_data = {
591 .acpi_name = "MSSL1680:00",
592 .properties = myria_my8307_props,
595 static const struct property_entry onda_obook_20_plus_props[] = {
596 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
597 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
598 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
599 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
600 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
601 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
602 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
603 PROPERTY_ENTRY_BOOL("silead,home-button"),
607 static const struct ts_dmi_data onda_obook_20_plus_data = {
608 .acpi_name = "MSSL1680:00",
609 .properties = onda_obook_20_plus_props,
612 static const struct property_entry onda_v80_plus_v3_props[] = {
613 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
614 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
615 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
616 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
617 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
618 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
619 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
620 PROPERTY_ENTRY_BOOL("silead,home-button"),
624 static const struct ts_dmi_data onda_v80_plus_v3_data = {
626 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
627 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
629 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
630 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
631 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
632 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
634 .acpi_name = "MSSL1680:00",
635 .properties = onda_v80_plus_v3_props,
638 static const struct property_entry onda_v820w_32g_props[] = {
639 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
640 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
641 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
642 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
643 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
644 PROPERTY_ENTRY_BOOL("silead,home-button"),
648 static const struct ts_dmi_data onda_v820w_32g_data = {
649 .acpi_name = "MSSL1680:00",
650 .properties = onda_v820w_32g_props,
653 static const struct property_entry onda_v891_v5_props[] = {
654 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
655 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
656 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
657 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
658 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
659 PROPERTY_ENTRY_STRING("firmware-name",
660 "gsl3676-onda-v891-v5.fw"),
661 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
662 PROPERTY_ENTRY_BOOL("silead,home-button"),
666 static const struct ts_dmi_data onda_v891_v5_data = {
667 .acpi_name = "MSSL1680:00",
668 .properties = onda_v891_v5_props,
671 static const struct property_entry onda_v891w_v1_props[] = {
672 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
673 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
674 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
675 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
676 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
677 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
678 PROPERTY_ENTRY_BOOL("silead,home-button"),
682 static const struct ts_dmi_data onda_v891w_v1_data = {
683 .acpi_name = "MSSL1680:00",
684 .properties = onda_v891w_v1_props,
687 static const struct property_entry onda_v891w_v3_props[] = {
688 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
689 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
690 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
691 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
692 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
693 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
694 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
695 PROPERTY_ENTRY_BOOL("silead,home-button"),
699 static const struct ts_dmi_data onda_v891w_v3_data = {
700 .acpi_name = "MSSL1680:00",
701 .properties = onda_v891w_v3_props,
704 static const struct property_entry pipo_w2s_props[] = {
705 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
706 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
707 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
708 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
709 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
713 static const struct ts_dmi_data pipo_w2s_data = {
715 .name = "silead/gsl1680-pipo-w2s.fw",
716 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
718 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
719 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
720 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
721 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
723 .acpi_name = "MSSL1680:00",
724 .properties = pipo_w2s_props,
727 static const struct property_entry pipo_w11_props[] = {
728 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
729 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
730 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
731 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
732 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
733 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
734 PROPERTY_ENTRY_BOOL("silead,home-button"),
738 static const struct ts_dmi_data pipo_w11_data = {
739 .acpi_name = "MSSL1680:00",
740 .properties = pipo_w11_props,
743 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
744 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
745 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
746 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
747 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
748 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
749 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
750 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
751 PROPERTY_ENTRY_BOOL("silead,home-button"),
755 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
756 .acpi_name = "MSSL1680:00",
757 .properties = pov_mobii_wintab_p800w_v20_props,
760 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
761 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
762 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
763 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
764 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
765 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
766 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
767 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
768 PROPERTY_ENTRY_BOOL("silead,home-button"),
772 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
773 .acpi_name = "MSSL1680:00",
774 .properties = pov_mobii_wintab_p800w_v21_props,
777 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
778 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
779 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
780 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
781 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
782 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
783 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
784 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
785 PROPERTY_ENTRY_BOOL("silead,home-button"),
789 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
790 .acpi_name = "MSSL1680:00",
791 .properties = pov_mobii_wintab_p1006w_v10_props,
794 static const struct property_entry predia_basic_props[] = {
795 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
796 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
797 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
798 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
799 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
800 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
801 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
802 PROPERTY_ENTRY_BOOL("silead,home-button"),
806 static const struct ts_dmi_data predia_basic_data = {
807 .acpi_name = "MSSL1680:00",
808 .properties = predia_basic_props,
811 static const struct property_entry rca_cambio_w101_v2_props[] = {
812 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
813 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
814 PROPERTY_ENTRY_U32("touchscreen-size-x", 1644),
815 PROPERTY_ENTRY_U32("touchscreen-size-y", 874),
816 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
817 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rca-cambio-w101-v2.fw"),
818 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
822 static const struct ts_dmi_data rca_cambio_w101_v2_data = {
823 .acpi_name = "MSSL1680:00",
824 .properties = rca_cambio_w101_v2_props,
827 static const struct property_entry rwc_nanote_p8_props[] = {
828 PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
829 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
830 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
831 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
832 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"),
833 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
837 static const struct ts_dmi_data rwc_nanote_p8_data = {
838 .acpi_name = "MSSL1680:00",
839 .properties = rwc_nanote_p8_props,
842 static const struct property_entry schneider_sct101ctm_props[] = {
843 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
844 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
845 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
846 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
847 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
848 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
849 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
850 PROPERTY_ENTRY_BOOL("silead,home-button"),
854 static const struct ts_dmi_data schneider_sct101ctm_data = {
855 .acpi_name = "MSSL1680:00",
856 .properties = schneider_sct101ctm_props,
859 static const struct property_entry techbite_arc_11_6_props[] = {
860 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
861 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
862 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
863 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
864 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
865 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
866 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
870 static const struct ts_dmi_data techbite_arc_11_6_data = {
871 .acpi_name = "MSSL1680:00",
872 .properties = techbite_arc_11_6_props,
875 static const struct property_entry teclast_tbook11_props[] = {
876 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
877 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
878 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
879 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
880 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
881 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
882 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
883 PROPERTY_ENTRY_BOOL("silead,home-button"),
887 static const struct ts_dmi_data teclast_tbook11_data = {
889 .name = "silead/gsl3692-teclast-tbook11.fw",
890 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
892 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
893 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
894 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
895 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
897 .acpi_name = "MSSL1680:00",
898 .properties = teclast_tbook11_props,
901 static const struct property_entry teclast_x3_plus_props[] = {
902 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
903 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
904 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
905 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
906 PROPERTY_ENTRY_BOOL("silead,home-button"),
910 static const struct ts_dmi_data teclast_x3_plus_data = {
911 .acpi_name = "MSSL1680:00",
912 .properties = teclast_x3_plus_props,
915 static const struct property_entry teclast_x98plus2_props[] = {
916 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
917 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
918 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
919 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
920 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
921 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
925 static const struct ts_dmi_data teclast_x98plus2_data = {
926 .acpi_name = "MSSL1680:00",
927 .properties = teclast_x98plus2_props,
930 static const struct property_entry trekstor_primebook_c11_props[] = {
931 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
932 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
933 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
934 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
935 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
936 PROPERTY_ENTRY_BOOL("silead,home-button"),
940 static const struct ts_dmi_data trekstor_primebook_c11_data = {
941 .acpi_name = "MSSL1680:00",
942 .properties = trekstor_primebook_c11_props,
945 static const struct property_entry trekstor_primebook_c13_props[] = {
946 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
947 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
948 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
949 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
950 PROPERTY_ENTRY_BOOL("silead,home-button"),
954 static const struct ts_dmi_data trekstor_primebook_c13_data = {
955 .acpi_name = "MSSL1680:00",
956 .properties = trekstor_primebook_c13_props,
959 static const struct property_entry trekstor_primetab_t13b_props[] = {
960 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
961 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
962 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
963 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
964 PROPERTY_ENTRY_BOOL("silead,home-button"),
965 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
969 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
970 .acpi_name = "MSSL1680:00",
971 .properties = trekstor_primetab_t13b_props,
974 static const struct property_entry trekstor_surftab_duo_w1_props[] = {
975 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
979 static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
980 .acpi_name = "GDIX1001:00",
981 .properties = trekstor_surftab_duo_w1_props,
984 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
985 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
986 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
987 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
988 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
989 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
990 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
991 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
992 PROPERTY_ENTRY_BOOL("silead,home-button"),
996 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
997 .acpi_name = "MSSL1680:00",
998 .properties = trekstor_surftab_twin_10_1_props,
1001 static const struct property_entry trekstor_surftab_wintron70_props[] = {
1002 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
1003 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
1004 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
1005 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
1006 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
1007 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1008 PROPERTY_ENTRY_BOOL("silead,home-button"),
1012 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
1013 .acpi_name = "MSSL1680:00",
1014 .properties = trekstor_surftab_wintron70_props,
1017 static const struct property_entry viglen_connect_10_props[] = {
1018 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
1019 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1020 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6),
1021 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
1022 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
1023 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"),
1024 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1025 PROPERTY_ENTRY_BOOL("silead,home-button"),
1029 static const struct ts_dmi_data viglen_connect_10_data = {
1030 .acpi_name = "MSSL1680:00",
1031 .properties = viglen_connect_10_props,
1034 static const struct property_entry vinga_twizzle_j116_props[] = {
1035 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
1036 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1037 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
1038 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1039 PROPERTY_ENTRY_BOOL("silead,home-button"),
1043 static const struct ts_dmi_data vinga_twizzle_j116_data = {
1044 .acpi_name = "MSSL1680:00",
1045 .properties = vinga_twizzle_j116_props,
1048 /* NOTE: Please keep this table sorted alphabetically */
1049 const struct dmi_system_id touchscreen_dmi_table[] = {
1052 .driver_data = (void *)&chuwi_hi8_data,
1054 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1055 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
1059 /* Chuwi Hi8 (H1D_S806_206) */
1060 .driver_data = (void *)&chuwi_hi8_data,
1062 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1063 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1064 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
1068 /* Chuwi Hi8 Air (CWI543) */
1069 .driver_data = (void *)&chuwi_hi8_air_data,
1071 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1072 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1073 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1077 /* Chuwi Hi8 Pro (CWI513) */
1078 .driver_data = (void *)&chuwi_hi8_pro_data,
1080 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1081 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1085 /* Chuwi Hi10 Air */
1086 .driver_data = (void *)&chuwi_hi10_air_data,
1088 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1089 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1090 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1094 /* Chuwi Hi10 Plus (CWI527) */
1095 .driver_data = (void *)&chuwi_hi10_plus_data,
1097 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1098 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1099 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1103 /* Chuwi Hi10 Pro (CWI529) */
1104 .driver_data = (void *)&chuwi_hi10_pro_data,
1106 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1107 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1108 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1112 /* Chuwi HiBook (CWI514) */
1113 .driver_data = (void *)&chuwi_hibook_data,
1115 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1116 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1117 /* Above matches are too generic, add bios-date match */
1118 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1122 /* Chuwi Vi8 (CWI501) */
1123 .driver_data = (void *)&chuwi_vi8_data,
1125 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1126 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1127 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.W86JLBNR01"),
1131 /* Chuwi Vi8 (CWI506) */
1132 .driver_data = (void *)&chuwi_vi8_data,
1134 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1135 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1136 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1140 /* Chuwi Vi8 Plus (CWI519) */
1141 .driver_data = (void *)&chuwi_vi8_plus_data,
1143 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1144 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1145 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1149 /* Chuwi Vi10 (CWI505) */
1150 .driver_data = (void *)&chuwi_vi10_data,
1152 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1153 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1154 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1155 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1159 /* Chuwi Surbook Mini (CWI540) */
1160 .driver_data = (void *)&chuwi_surbook_mini_data,
1162 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1163 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1167 /* Connect Tablet 9 */
1168 .driver_data = (void *)&connect_tablet9_data,
1170 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1171 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1175 /* CSL Panther Tab HD */
1176 .driver_data = (void *)&csl_panther_tab_hd_data,
1178 DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"),
1179 DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"),
1183 /* CUBE iwork8 Air */
1184 .driver_data = (void *)&cube_iwork8_air_data,
1186 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1187 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1188 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1192 /* Cube KNote i1101 */
1193 .driver_data = (void *)&cube_knote_i1101_data,
1195 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1196 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1197 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1198 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1203 .driver_data = (void *)&dexp_ursus_7w_data,
1205 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1206 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1210 /* DEXP Ursus KX210i */
1211 .driver_data = (void *)&dexp_ursus_kx210i_data,
1213 DMI_MATCH(DMI_SYS_VENDOR, "INSYDE Corp."),
1214 DMI_MATCH(DMI_PRODUCT_NAME, "S107I"),
1218 /* Digma Citi E200 */
1219 .driver_data = (void *)&digma_citi_e200_data,
1221 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1222 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1223 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1227 /* Estar Beauty HD (MID 7316R) */
1228 .driver_data = (void *)&estar_beauty_hd_data,
1230 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1231 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1235 /* GP-electronic T701 */
1236 .driver_data = (void *)&gp_electronic_t701_data,
1238 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1239 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1240 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1244 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1245 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1247 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1248 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1249 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1254 .driver_data = (void *)&irbis_tw90_data,
1256 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1257 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1262 .driver_data = (void *)&irbis_tw118_data,
1264 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1265 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1269 /* I.T.Works TW891 */
1270 .driver_data = (void *)&itworks_tw891_data,
1272 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1273 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1277 /* Jumper EZpad 6 Pro */
1278 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1280 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1281 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1282 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1283 /* Above matches are too generic, add bios-date match */
1284 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1288 /* Jumper EZpad 6 Pro B */
1289 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1291 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1292 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1293 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1294 /* Above matches are too generic, add bios-date match */
1295 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1299 /* Jumper EZpad 6 m4 */
1300 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1302 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1303 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1304 /* Jumper8.S106x.A00C.1066 with the version dropped */
1305 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1309 /* Jumper EZpad 7 */
1310 .driver_data = (void *)&jumper_ezpad_7_data,
1312 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1313 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1314 /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
1315 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1319 /* Jumper EZpad mini3 */
1320 .driver_data = (void *)&jumper_ezpad_mini3_data,
1322 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1323 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1324 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1329 .driver_data = (void *)&gdix1002_00_upside_down_data,
1331 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1332 /* Both product- and board-name being "Default string" is somewhat rare */
1333 DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1334 DMI_MATCH(DMI_BOARD_NAME, "Default string"),
1335 /* Above matches are too generic, add partial bios-version match */
1336 DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
1340 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1341 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1343 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1344 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1348 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1349 .driver_data = (void *)&trekstor_primebook_c11_data,
1351 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1352 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1356 /* MP Man Converter 9 */
1357 .driver_data = (void *)&mpman_converter9_data,
1359 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1360 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1364 /* MP Man MPWIN895CL */
1365 .driver_data = (void *)&mpman_mpwin895cl_data,
1367 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1368 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1373 .driver_data = (void *)&myria_my8307_data,
1375 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1376 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1380 /* Onda oBook 20 Plus */
1381 .driver_data = (void *)&onda_obook_20_plus_data,
1383 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1384 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1388 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1389 .driver_data = (void *)&onda_v80_plus_v3_data,
1391 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1392 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1396 /* ONDA V820w DualOS */
1397 .driver_data = (void *)&onda_v820w_32g_data,
1399 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1400 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1405 .driver_data = (void *)&onda_v891_v5_data,
1407 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1408 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1409 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1413 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1414 .driver_data = (void *)&onda_v891w_v1_data,
1416 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1417 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1418 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1419 /* Exact match, different versions need different fw */
1420 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1424 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1425 .driver_data = (void *)&onda_v891w_v3_data,
1427 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1428 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1429 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1434 .driver_data = (void *)&pipo_w2s_data,
1436 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1437 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1442 .driver_data = (void *)&pipo_w11_data,
1444 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1445 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1446 /* Above matches are too generic, add bios-ver match */
1447 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1451 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1452 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1454 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1455 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1456 /* Exact match, different versions need different fw */
1457 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1461 /* Point of View mobii wintab p800w (v2.0) */
1462 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1464 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1465 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1466 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1467 /* Above matches are too generic, add bios-date match */
1468 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1472 /* Predia Basic tablet) */
1473 .driver_data = (void *)&predia_basic_data,
1475 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1476 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1477 /* Above matches are too generic, add bios-version match */
1478 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1482 /* Point of View mobii wintab p800w (v2.1) */
1483 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1485 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1486 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1487 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1488 /* Above matches are too generic, add bios-date match */
1489 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1493 /* Point of View mobii wintab p1006w (v1.0) */
1494 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1496 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1497 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1498 /* Note 105b is Foxcon's USB/PCI vendor id */
1499 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1500 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1504 /* RCA Cambio W101 v2 */
1505 /* https://github.com/onitake/gsl-firmware/discussions/193 */
1506 .driver_data = (void *)&rca_cambio_w101_v2_data,
1508 DMI_MATCH(DMI_SYS_VENDOR, "RCA"),
1509 DMI_MATCH(DMI_PRODUCT_NAME, "W101SA23T1"),
1514 .driver_data = (void *)&rwc_nanote_p8_data,
1516 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1517 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1518 DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1522 /* Schneider SCT101CTM */
1523 .driver_data = (void *)&schneider_sct101ctm_data,
1525 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1526 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1530 /* Techbite Arc 11.6 */
1531 .driver_data = (void *)&techbite_arc_11_6_data,
1533 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1534 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1535 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1539 /* Teclast Tbook 11 */
1540 .driver_data = (void *)&teclast_tbook11_data,
1542 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1543 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1544 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1548 /* Teclast X3 Plus */
1549 .driver_data = (void *)&teclast_x3_plus_data,
1551 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1552 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1553 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1557 /* Teclast X89 (Android version / BIOS) */
1558 .driver_data = (void *)&gdix1001_00_upside_down_data,
1560 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1561 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1565 /* Teclast X89 (Windows version / BIOS) */
1566 .driver_data = (void *)&gdix1001_01_upside_down_data,
1568 /* tPAD is too generic, also match on bios date */
1569 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1570 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1571 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1575 /* Teclast X98 Plus II */
1576 .driver_data = (void *)&teclast_x98plus2_data,
1578 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1579 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1583 /* Teclast X98 Pro */
1584 .driver_data = (void *)&gdix1001_00_upside_down_data,
1587 * Only match BIOS date, because the manufacturers
1588 * BIOS does not report the board name at all
1591 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1592 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1596 /* Trekstor Primebook C11 */
1597 .driver_data = (void *)&trekstor_primebook_c11_data,
1599 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1600 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1604 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1605 .driver_data = (void *)&trekstor_primebook_c11_data,
1607 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1608 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1612 /* Trekstor Primebook C13 */
1613 .driver_data = (void *)&trekstor_primebook_c13_data,
1615 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1616 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1620 /* Trekstor Primetab T13B */
1621 .driver_data = (void *)&trekstor_primetab_t13b_data,
1623 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1624 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1628 /* TrekStor SurfTab duo W1 10.1 ST10432-10b */
1629 .driver_data = (void *)&trekstor_surftab_duo_w1_data,
1631 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1632 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1636 /* TrekStor SurfTab twin 10.1 ST10432-8 */
1637 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1639 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1640 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1644 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
1645 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1647 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1648 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1649 /* Exact match, different versions need different fw */
1650 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1654 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
1655 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1657 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1658 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1659 /* Exact match, different versions need different fw */
1660 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1664 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1665 .driver_data = (void *)&trekstor_primebook_c11_data,
1667 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1668 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1672 /* Viglen Connect 10 */
1673 .driver_data = (void *)&viglen_connect_10_data,
1675 DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
1676 DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"),
1680 /* Vinga Twizzle J116 */
1681 .driver_data = (void *)&vinga_twizzle_j116_data,
1683 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1687 /* "WinBook TW100" */
1688 .driver_data = (void *)&gdix1001_00_upside_down_data,
1690 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1691 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1696 .driver_data = (void *)&gdix1001_00_upside_down_data,
1698 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1699 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1703 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1704 .driver_data = (void *)&chuwi_vi8_data,
1706 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1707 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1713 static const struct ts_dmi_data *ts_data;
1715 static void ts_dmi_add_props(struct i2c_client *client)
1717 struct device *dev = &client->dev;
1720 if (has_acpi_companion(dev) &&
1721 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
1722 error = device_create_managed_software_node(dev, ts_data->properties, NULL);
1724 dev_err(dev, "failed to add properties: %d\n", error);
1728 static int ts_dmi_notifier_call(struct notifier_block *nb,
1729 unsigned long action, void *data)
1731 struct device *dev = data;
1732 struct i2c_client *client;
1735 case BUS_NOTIFY_ADD_DEVICE:
1736 client = i2c_verify_client(dev);
1738 ts_dmi_add_props(client);
1748 static struct notifier_block ts_dmi_notifier = {
1749 .notifier_call = ts_dmi_notifier_call,
1752 static int __init ts_dmi_init(void)
1754 const struct dmi_system_id *dmi_id;
1757 dmi_id = dmi_first_match(touchscreen_dmi_table);
1759 return 0; /* Not an error */
1761 ts_data = dmi_id->driver_data;
1762 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1763 if (!ts_data->properties)
1766 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1768 pr_err("%s: failed to register i2c bus notifier: %d\n",
1775 * We are registering out notifier after i2c core is initialized and i2c bus
1776 * itself is ready (which happens at postcore initcall level), but before
1777 * ACPI starts enumerating devices (at subsys initcall level).
1779 arch_initcall(ts_dmi_init);