1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Touchscreen driver DMI based configuration code
5 * Copyright (c) 2017 Red Hat Inc.
8 * Hans de Goede <hdegoede@redhat.com>
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", "/*(DEBLOBBED)*/"),
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", "/*(DEBLOBBED)*/"),
48 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
52 static const struct ts_dmi_data chuwi_hi8_air_data = {
53 .acpi_name = "MSSL1680",
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", "/*(DEBLOBBED)*/"),
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 = "/*(DEBLOBBED)*/",
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", "/*(DEBLOBBED)*/"),
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", "/*(DEBLOBBED)*/"),
108 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
109 PROPERTY_ENTRY_BOOL("silead,home-button"),
113 static const struct ts_dmi_data chuwi_hi10_plus_data = {
115 .name = "/*(DEBLOBBED)*/",
116 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
118 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
119 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
120 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
121 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
123 .acpi_name = "MSSL0017:00",
124 .properties = chuwi_hi10_plus_props,
127 static const struct property_entry chuwi_hi10_pro_props[] = {
128 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
129 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
130 PROPERTY_ENTRY_U32("touchscreen-size-x", 1912),
131 PROPERTY_ENTRY_U32("touchscreen-size-y", 1272),
132 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
133 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
134 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
135 PROPERTY_ENTRY_BOOL("silead,home-button"),
139 static const struct ts_dmi_data chuwi_hi10_pro_data = {
141 .name = "/*(DEBLOBBED)*/",
142 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
144 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
145 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
146 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
147 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
149 .acpi_name = "MSSL1680:00",
150 .properties = chuwi_hi10_pro_props,
153 static const struct property_entry chuwi_hibook_props[] = {
154 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
155 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
156 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
157 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
158 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
159 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
160 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
161 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
162 PROPERTY_ENTRY_BOOL("silead,home-button"),
166 static const struct ts_dmi_data chuwi_hibook_data = {
168 .name = "/*(DEBLOBBED)*/",
169 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
171 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
172 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
173 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
174 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
176 .acpi_name = "MSSL0017:00",
177 .properties = chuwi_hibook_props,
180 static const struct property_entry chuwi_vi8_props[] = {
181 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
182 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
183 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
184 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
185 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
186 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
187 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
188 PROPERTY_ENTRY_BOOL("silead,home-button"),
192 static const struct ts_dmi_data chuwi_vi8_data = {
193 .acpi_name = "MSSL1680:00",
194 .properties = chuwi_vi8_props,
197 static const struct ts_dmi_data chuwi_vi8_plus_data = {
199 .name = "/*(DEBLOBBED)*/",
200 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
202 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
203 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
204 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
205 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
209 static const struct property_entry chuwi_vi10_props[] = {
210 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
211 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
212 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
213 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
214 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
215 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
216 PROPERTY_ENTRY_BOOL("silead,home-button"),
220 static const struct ts_dmi_data chuwi_vi10_data = {
221 .acpi_name = "MSSL0002:00",
222 .properties = chuwi_vi10_props,
225 static const struct property_entry chuwi_surbook_mini_props[] = {
226 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
227 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
228 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
229 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
230 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
231 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
232 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
236 static const struct ts_dmi_data chuwi_surbook_mini_data = {
237 .acpi_name = "MSSL1680:00",
238 .properties = chuwi_surbook_mini_props,
241 static const struct property_entry connect_tablet9_props[] = {
242 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
243 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
244 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
245 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
246 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
247 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
248 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
249 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
253 static const struct ts_dmi_data connect_tablet9_data = {
254 .acpi_name = "MSSL1680:00",
255 .properties = connect_tablet9_props,
258 static const struct property_entry csl_panther_tab_hd_props[] = {
259 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
260 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
261 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
262 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
263 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
264 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
265 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
266 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
270 static const struct ts_dmi_data csl_panther_tab_hd_data = {
271 .acpi_name = "MSSL1680:00",
272 .properties = csl_panther_tab_hd_props,
275 static const struct property_entry cube_iwork8_air_props[] = {
276 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
277 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
278 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
279 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
280 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
281 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
282 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
286 static const struct ts_dmi_data cube_iwork8_air_data = {
288 .name = "/*(DEBLOBBED)*/",
289 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
291 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
292 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
293 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
294 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
296 .acpi_name = "MSSL1680:00",
297 .properties = cube_iwork8_air_props,
300 static const struct property_entry cube_knote_i1101_props[] = {
301 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
302 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
303 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
304 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
305 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
306 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
307 PROPERTY_ENTRY_BOOL("silead,home-button"),
311 static const struct ts_dmi_data cube_knote_i1101_data = {
312 .acpi_name = "MSSL1680:00",
313 .properties = cube_knote_i1101_props,
316 static const struct property_entry dexp_ursus_7w_props[] = {
317 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
318 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
319 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
320 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
321 PROPERTY_ENTRY_BOOL("silead,home-button"),
325 static const struct ts_dmi_data dexp_ursus_7w_data = {
326 .acpi_name = "MSSL1680:00",
327 .properties = dexp_ursus_7w_props,
330 static const struct property_entry dexp_ursus_kx210i_props[] = {
331 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
332 PROPERTY_ENTRY_U32("touchscreen-min-y", 2),
333 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
334 PROPERTY_ENTRY_U32("touchscreen-size-y", 1137),
335 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
336 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
337 PROPERTY_ENTRY_BOOL("silead,home-button"),
341 static const struct ts_dmi_data dexp_ursus_kx210i_data = {
342 .acpi_name = "MSSL1680:00",
343 .properties = dexp_ursus_kx210i_props,
346 static const struct property_entry digma_citi_e200_props[] = {
347 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
348 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
349 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
350 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
351 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
352 PROPERTY_ENTRY_BOOL("silead,home-button"),
356 static const struct ts_dmi_data digma_citi_e200_data = {
357 .acpi_name = "MSSL1680:00",
358 .properties = digma_citi_e200_props,
361 static const struct property_entry estar_beauty_hd_props[] = {
362 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
366 static const struct ts_dmi_data estar_beauty_hd_data = {
367 .acpi_name = "GDIX1001:00",
368 .properties = estar_beauty_hd_props,
371 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
372 static const struct property_entry gdix1001_upside_down_props[] = {
373 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
374 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
378 static const struct ts_dmi_data gdix1001_00_upside_down_data = {
379 .acpi_name = "GDIX1001:00",
380 .properties = gdix1001_upside_down_props,
383 static const struct ts_dmi_data gdix1001_01_upside_down_data = {
384 .acpi_name = "GDIX1001:01",
385 .properties = gdix1001_upside_down_props,
388 static const struct property_entry glavey_tm800a550l_props[] = {
389 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
390 PROPERTY_ENTRY_STRING("goodix,config-name", "gt912-glavey-tm800a550l.cfg"),
391 PROPERTY_ENTRY_U32("goodix,main-clk", 54),
395 static const struct ts_dmi_data glavey_tm800a550l_data = {
396 .acpi_name = "GDIX1001:00",
397 .properties = glavey_tm800a550l_props,
400 static const struct ts_dmi_data gdix1002_00_upside_down_data = {
401 .acpi_name = "GDIX1002:00",
402 .properties = gdix1001_upside_down_props,
405 static const struct property_entry gp_electronic_t701_props[] = {
406 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
407 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
408 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
409 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
410 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
414 static const struct ts_dmi_data gp_electronic_t701_data = {
415 .acpi_name = "MSSL1680:00",
416 .properties = gp_electronic_t701_props,
419 static const struct property_entry irbis_tw90_props[] = {
420 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
421 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
422 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
423 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
424 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
425 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
426 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
427 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
428 PROPERTY_ENTRY_BOOL("silead,home-button"),
432 static const struct ts_dmi_data irbis_tw90_data = {
433 .acpi_name = "MSSL1680:00",
434 .properties = irbis_tw90_props,
437 static const struct property_entry irbis_tw118_props[] = {
438 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
439 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
440 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
441 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
442 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
443 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
447 static const struct ts_dmi_data irbis_tw118_data = {
448 .acpi_name = "MSSL1680:00",
449 .properties = irbis_tw118_props,
452 static const struct property_entry itworks_tw891_props[] = {
453 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
454 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
455 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
456 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
457 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
458 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
459 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
460 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
464 static const struct ts_dmi_data itworks_tw891_data = {
465 .acpi_name = "MSSL1680:00",
466 .properties = itworks_tw891_props,
469 static const struct property_entry jumper_ezpad_6_pro_props[] = {
470 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
471 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
472 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
473 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
474 PROPERTY_ENTRY_BOOL("silead,home-button"),
478 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
479 .acpi_name = "MSSL1680:00",
480 .properties = jumper_ezpad_6_pro_props,
483 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
484 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
485 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
486 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
487 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
488 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
489 PROPERTY_ENTRY_BOOL("silead,home-button"),
493 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
494 .acpi_name = "MSSL1680:00",
495 .properties = jumper_ezpad_6_pro_b_props,
498 static const struct property_entry jumper_ezpad_6_m4_props[] = {
499 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
500 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
501 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
502 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
503 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
504 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
505 PROPERTY_ENTRY_BOOL("silead,home-button"),
509 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
510 .acpi_name = "MSSL1680:00",
511 .properties = jumper_ezpad_6_m4_props,
514 static const struct property_entry jumper_ezpad_mini3_props[] = {
515 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
516 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
517 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
518 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
519 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
520 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
521 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
525 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
526 .acpi_name = "MSSL1680:00",
527 .properties = jumper_ezpad_mini3_props,
530 static const struct property_entry mpman_converter9_props[] = {
531 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
532 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
533 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
534 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
535 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
536 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
537 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
538 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
542 static const struct ts_dmi_data mpman_converter9_data = {
543 .acpi_name = "MSSL1680:00",
544 .properties = mpman_converter9_props,
547 static const struct property_entry mpman_mpwin895cl_props[] = {
548 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
549 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
550 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
551 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
552 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
553 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
554 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
555 PROPERTY_ENTRY_BOOL("silead,home-button"),
559 static const struct ts_dmi_data mpman_mpwin895cl_data = {
560 .acpi_name = "MSSL1680:00",
561 .properties = mpman_mpwin895cl_props,
564 static const struct property_entry myria_my8307_props[] = {
565 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
566 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
567 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
568 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
569 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
570 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
571 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
572 PROPERTY_ENTRY_BOOL("silead,home-button"),
576 static const struct ts_dmi_data myria_my8307_data = {
577 .acpi_name = "MSSL1680:00",
578 .properties = myria_my8307_props,
581 static const struct property_entry onda_obook_20_plus_props[] = {
582 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
583 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
584 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
585 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
586 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
587 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
588 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
589 PROPERTY_ENTRY_BOOL("silead,home-button"),
593 static const struct ts_dmi_data onda_obook_20_plus_data = {
594 .acpi_name = "MSSL1680:00",
595 .properties = onda_obook_20_plus_props,
598 static const struct property_entry onda_v80_plus_v3_props[] = {
599 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
600 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
601 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
602 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
603 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
604 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
605 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
606 PROPERTY_ENTRY_BOOL("silead,home-button"),
610 static const struct ts_dmi_data onda_v80_plus_v3_data = {
612 .name = "/*(DEBLOBBED)*/",
613 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
615 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
616 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
617 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
618 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
620 .acpi_name = "MSSL1680:00",
621 .properties = onda_v80_plus_v3_props,
624 static const struct property_entry onda_v820w_32g_props[] = {
625 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
626 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
627 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
628 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
629 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
630 PROPERTY_ENTRY_BOOL("silead,home-button"),
634 static const struct ts_dmi_data onda_v820w_32g_data = {
635 .acpi_name = "MSSL1680:00",
636 .properties = onda_v820w_32g_props,
639 static const struct property_entry onda_v891_v5_props[] = {
640 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
641 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
642 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
643 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
644 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
645 PROPERTY_ENTRY_STRING("firmware-name",
647 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
648 PROPERTY_ENTRY_BOOL("silead,home-button"),
652 static const struct ts_dmi_data onda_v891_v5_data = {
653 .acpi_name = "MSSL1680:00",
654 .properties = onda_v891_v5_props,
657 static const struct property_entry onda_v891w_v1_props[] = {
658 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
659 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
660 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
661 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
662 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
663 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
664 PROPERTY_ENTRY_BOOL("silead,home-button"),
668 static const struct ts_dmi_data onda_v891w_v1_data = {
669 .acpi_name = "MSSL1680:00",
670 .properties = onda_v891w_v1_props,
673 static const struct property_entry onda_v891w_v3_props[] = {
674 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
675 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
676 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
677 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
678 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
679 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
680 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
681 PROPERTY_ENTRY_BOOL("silead,home-button"),
685 static const struct ts_dmi_data onda_v891w_v3_data = {
686 .acpi_name = "MSSL1680:00",
687 .properties = onda_v891w_v3_props,
690 static const struct property_entry pipo_w2s_props[] = {
691 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
692 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
693 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
694 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
695 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
699 static const struct ts_dmi_data pipo_w2s_data = {
701 .name = "/*(DEBLOBBED)*/",
702 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
704 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
705 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
706 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
707 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
709 .acpi_name = "MSSL1680:00",
710 .properties = pipo_w2s_props,
713 static const struct property_entry pipo_w11_props[] = {
714 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
715 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
716 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
717 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
718 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
719 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
720 PROPERTY_ENTRY_BOOL("silead,home-button"),
724 static const struct ts_dmi_data pipo_w11_data = {
725 .acpi_name = "MSSL1680:00",
726 .properties = pipo_w11_props,
729 static const struct property_entry positivo_c4128b_props[] = {
730 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
731 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
732 PROPERTY_ENTRY_U32("touchscreen-size-x", 1915),
733 PROPERTY_ENTRY_U32("touchscreen-size-y", 1269),
734 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
735 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
739 static const struct ts_dmi_data positivo_c4128b_data = {
740 .acpi_name = "MSSL1680:00",
741 .properties = positivo_c4128b_props,
744 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
745 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
746 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
747 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
748 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
749 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
750 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
751 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
752 PROPERTY_ENTRY_BOOL("silead,home-button"),
756 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
757 .acpi_name = "MSSL1680:00",
758 .properties = pov_mobii_wintab_p800w_v20_props,
761 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
762 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
763 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
764 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
765 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
766 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
767 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
768 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
769 PROPERTY_ENTRY_BOOL("silead,home-button"),
773 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
774 .acpi_name = "MSSL1680:00",
775 .properties = pov_mobii_wintab_p800w_v21_props,
778 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
779 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
780 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
781 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
782 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
783 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
784 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
785 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
786 PROPERTY_ENTRY_BOOL("silead,home-button"),
790 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
791 .acpi_name = "MSSL1680:00",
792 .properties = pov_mobii_wintab_p1006w_v10_props,
795 static const struct property_entry predia_basic_props[] = {
796 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
797 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
798 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
799 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
800 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
801 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
802 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
803 PROPERTY_ENTRY_BOOL("silead,home-button"),
807 static const struct ts_dmi_data predia_basic_data = {
808 .acpi_name = "MSSL1680:00",
809 .properties = predia_basic_props,
812 static const struct property_entry rca_cambio_w101_v2_props[] = {
813 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
814 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
815 PROPERTY_ENTRY_U32("touchscreen-size-x", 1644),
816 PROPERTY_ENTRY_U32("touchscreen-size-y", 874),
817 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
818 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
819 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
823 static const struct ts_dmi_data rca_cambio_w101_v2_data = {
824 .acpi_name = "MSSL1680:00",
825 .properties = rca_cambio_w101_v2_props,
828 static const struct property_entry rwc_nanote_p8_props[] = {
829 PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
830 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
831 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
832 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
833 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
834 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
838 static const struct ts_dmi_data rwc_nanote_p8_data = {
839 .acpi_name = "MSSL1680:00",
840 .properties = rwc_nanote_p8_props,
843 static const struct property_entry schneider_sct101ctm_props[] = {
844 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
845 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
846 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
847 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
848 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
849 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
850 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
851 PROPERTY_ENTRY_BOOL("silead,home-button"),
855 static const struct ts_dmi_data schneider_sct101ctm_data = {
856 .acpi_name = "MSSL1680:00",
857 .properties = schneider_sct101ctm_props,
860 static const struct property_entry techbite_arc_11_6_props[] = {
861 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
862 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
863 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
864 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
865 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
866 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
867 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
871 static const struct ts_dmi_data techbite_arc_11_6_data = {
872 .acpi_name = "MSSL1680:00",
873 .properties = techbite_arc_11_6_props,
876 static const struct property_entry teclast_x3_plus_props[] = {
877 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
878 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
879 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
880 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
881 PROPERTY_ENTRY_BOOL("silead,home-button"),
885 static const struct ts_dmi_data teclast_x3_plus_data = {
886 .acpi_name = "MSSL1680:00",
887 .properties = teclast_x3_plus_props,
890 static const struct property_entry teclast_x98plus2_props[] = {
891 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
892 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
893 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
894 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
895 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
896 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
900 static const struct ts_dmi_data teclast_x98plus2_data = {
901 .acpi_name = "MSSL1680:00",
902 .properties = teclast_x98plus2_props,
905 static const struct property_entry trekstor_primebook_c11_props[] = {
906 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
907 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
908 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
909 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
910 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
911 PROPERTY_ENTRY_BOOL("silead,home-button"),
915 static const struct ts_dmi_data trekstor_primebook_c11_data = {
916 .acpi_name = "MSSL1680:00",
917 .properties = trekstor_primebook_c11_props,
920 static const struct property_entry trekstor_primebook_c13_props[] = {
921 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
922 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
923 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
924 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
925 PROPERTY_ENTRY_BOOL("silead,home-button"),
929 static const struct ts_dmi_data trekstor_primebook_c13_data = {
930 .acpi_name = "MSSL1680:00",
931 .properties = trekstor_primebook_c13_props,
934 static const struct property_entry trekstor_primetab_t13b_props[] = {
935 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
936 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
937 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
938 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
939 PROPERTY_ENTRY_BOOL("silead,home-button"),
940 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
944 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
945 .acpi_name = "MSSL1680:00",
946 .properties = trekstor_primetab_t13b_props,
949 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
950 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
951 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
952 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
953 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
954 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
955 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
956 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
957 PROPERTY_ENTRY_BOOL("silead,home-button"),
961 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
962 .acpi_name = "MSSL1680:00",
963 .properties = trekstor_surftab_twin_10_1_props,
966 static const struct property_entry trekstor_surftab_wintron70_props[] = {
967 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
968 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
969 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
970 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
971 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
972 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
973 PROPERTY_ENTRY_BOOL("silead,home-button"),
977 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
978 .acpi_name = "MSSL1680:00",
979 .properties = trekstor_surftab_wintron70_props,
982 static const struct property_entry vinga_twizzle_j116_props[] = {
983 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
984 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
985 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
986 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
987 PROPERTY_ENTRY_BOOL("silead,home-button"),
991 static const struct ts_dmi_data vinga_twizzle_j116_data = {
992 .acpi_name = "MSSL1680:00",
993 .properties = vinga_twizzle_j116_props,
996 /* NOTE: Please keep this table sorted alphabetically */
997 const struct dmi_system_id touchscreen_dmi_table[] = {
1000 .driver_data = (void *)&chuwi_hi8_data,
1002 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1003 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
1007 /* Chuwi Hi8 (H1D_S806_206) */
1008 .driver_data = (void *)&chuwi_hi8_data,
1010 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1011 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1012 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
1016 /* Chuwi Hi8 Air (CWI543) */
1017 .driver_data = (void *)&chuwi_hi8_air_data,
1019 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1020 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1021 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1025 /* Chuwi Hi8 Pro (CWI513) */
1026 .driver_data = (void *)&chuwi_hi8_pro_data,
1028 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1029 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1033 /* Chuwi Hi10 Air */
1034 .driver_data = (void *)&chuwi_hi10_air_data,
1036 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1037 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1038 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1042 /* Chuwi Hi10 Plus (CWI527) */
1043 .driver_data = (void *)&chuwi_hi10_plus_data,
1045 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1046 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1047 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1051 /* Chuwi Hi10 Prus (CWI597) */
1052 .driver_data = (void *)&chuwi_hi10_pro_data,
1054 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1055 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1056 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1060 /* Chuwi HiBook (CWI514) */
1061 .driver_data = (void *)&chuwi_hibook_data,
1063 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1064 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1065 /* Above matches are too generic, add bios-date match */
1066 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1070 /* Chuwi Vi8 (CWI501) */
1071 .driver_data = (void *)&chuwi_vi8_data,
1073 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1074 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1075 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.W86JLBNR01"),
1079 /* Chuwi Vi8 (CWI506) */
1080 .driver_data = (void *)&chuwi_vi8_data,
1082 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1083 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1084 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1088 /* Chuwi Vi8 dual-boot (CWI506) */
1089 .driver_data = (void *)&chuwi_vi8_data,
1091 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1092 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1093 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI2.D86JHBNR02"),
1097 /* Chuwi Vi8 Plus (CWI519) */
1098 .driver_data = (void *)&chuwi_vi8_plus_data,
1100 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1101 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1102 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1106 /* Chuwi Vi10 (CWI505) */
1107 .driver_data = (void *)&chuwi_vi10_data,
1109 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1110 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1111 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1112 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1116 /* Chuwi Surbook Mini (CWI540) */
1117 .driver_data = (void *)&chuwi_surbook_mini_data,
1119 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1120 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1124 /* Connect Tablet 9 */
1125 .driver_data = (void *)&connect_tablet9_data,
1127 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1128 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1132 /* CSL Panther Tab HD */
1133 .driver_data = (void *)&csl_panther_tab_hd_data,
1135 DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"),
1136 DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"),
1140 /* CUBE iwork8 Air */
1141 .driver_data = (void *)&cube_iwork8_air_data,
1143 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1144 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1145 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1149 /* Cube KNote i1101 */
1150 .driver_data = (void *)&cube_knote_i1101_data,
1152 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1153 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1154 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1155 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1160 .driver_data = (void *)&dexp_ursus_7w_data,
1162 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1163 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1167 /* DEXP Ursus KX210i */
1168 .driver_data = (void *)&dexp_ursus_kx210i_data,
1170 DMI_MATCH(DMI_SYS_VENDOR, "INSYDE Corp."),
1171 DMI_MATCH(DMI_PRODUCT_NAME, "S107I"),
1175 /* Digma Citi E200 */
1176 .driver_data = (void *)&digma_citi_e200_data,
1178 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1179 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1180 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1184 /* Estar Beauty HD (MID 7316R) */
1185 .driver_data = (void *)&estar_beauty_hd_data,
1187 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1188 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1191 { /* Glavey TM800A550L */
1192 .driver_data = (void *)&glavey_tm800a550l_data,
1194 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1195 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1196 /* Above strings are too generic, also match on BIOS version */
1197 DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
1201 /* GP-electronic T701 */
1202 .driver_data = (void *)&gp_electronic_t701_data,
1204 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1205 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1206 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1210 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1211 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1213 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1214 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1215 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1220 .driver_data = (void *)&irbis_tw90_data,
1222 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1223 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1228 .driver_data = (void *)&irbis_tw118_data,
1230 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1231 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1235 /* I.T.Works TW891 */
1236 .driver_data = (void *)&itworks_tw891_data,
1238 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1239 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1243 /* Jumper EZpad 6 Pro */
1244 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1246 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1247 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1248 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1249 /* Above matches are too generic, add bios-date match */
1250 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1254 /* Jumper EZpad 6 Pro B */
1255 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1257 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1258 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1259 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1260 /* Above matches are too generic, add bios-date match */
1261 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1265 /* Jumper EZpad 6 m4 */
1266 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1268 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1269 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1270 /* Jumper8.S106x.A00C.1066 with the version dropped */
1271 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1275 /* Jumper EZpad mini3 */
1276 .driver_data = (void *)&jumper_ezpad_mini3_data,
1278 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1279 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1280 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1285 .driver_data = (void *)&gdix1002_00_upside_down_data,
1287 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1288 /* Both product- and board-name being "Default string" is somewhat rare */
1289 DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1290 DMI_MATCH(DMI_BOARD_NAME, "Default string"),
1291 /* Above matches are too generic, add partial bios-version match */
1292 DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
1296 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1297 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1299 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1300 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1304 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1305 .driver_data = (void *)&trekstor_primebook_c11_data,
1307 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1308 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1312 /* MP Man Converter 9 */
1313 .driver_data = (void *)&mpman_converter9_data,
1315 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1316 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1320 /* MP Man MPWIN895CL */
1321 .driver_data = (void *)&mpman_mpwin895cl_data,
1323 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1324 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1329 .driver_data = (void *)&myria_my8307_data,
1331 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1332 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1336 /* Onda oBook 20 Plus */
1337 .driver_data = (void *)&onda_obook_20_plus_data,
1339 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1340 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1344 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1345 .driver_data = (void *)&onda_v80_plus_v3_data,
1347 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1348 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1352 /* ONDA V820w DualOS */
1353 .driver_data = (void *)&onda_v820w_32g_data,
1355 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1356 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1361 .driver_data = (void *)&onda_v891_v5_data,
1363 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1364 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1365 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1369 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1370 .driver_data = (void *)&onda_v891w_v1_data,
1372 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1373 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1374 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1375 /* Exact match, different versions need different fw */
1376 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1380 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1381 .driver_data = (void *)&onda_v891w_v3_data,
1383 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1384 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1385 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1390 .driver_data = (void *)&pipo_w2s_data,
1392 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1393 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1398 .driver_data = (void *)&pipo_w11_data,
1400 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1401 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1402 /* Above matches are too generic, add bios-ver match */
1403 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1407 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1408 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1410 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1411 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1412 /* Exact match, different versions need different fw */
1413 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1417 /* Positivo C4128B */
1418 .driver_data = (void *)&positivo_c4128b_data,
1420 DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"),
1421 DMI_MATCH(DMI_PRODUCT_NAME, "C4128B-1"),
1425 /* Point of View mobii wintab p800w (v2.0) */
1426 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1428 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1429 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1430 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1431 /* Above matches are too generic, add bios-date match */
1432 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1436 /* Predia Basic tablet) */
1437 .driver_data = (void *)&predia_basic_data,
1439 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1440 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1441 /* Above matches are too generic, add bios-version match */
1442 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1446 /* Point of View mobii wintab p800w (v2.1) */
1447 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1449 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1450 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1451 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1452 /* Above matches are too generic, add bios-date match */
1453 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1457 /* Point of View mobii wintab p1006w (v1.0) */
1458 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1460 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1461 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1462 /* Note 105b is Foxcon's USB/PCI vendor id */
1463 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1464 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1468 /* RCA Cambio W101 v2 */
1469 /* https://github.com/onitake/gsl-firmware/discussions/193 */
1470 .driver_data = (void *)&rca_cambio_w101_v2_data,
1472 DMI_MATCH(DMI_SYS_VENDOR, "RCA"),
1473 DMI_MATCH(DMI_PRODUCT_NAME, "W101SA23T1"),
1478 .driver_data = (void *)&rwc_nanote_p8_data,
1480 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1481 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1482 DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1486 /* Schneider SCT101CTM */
1487 .driver_data = (void *)&schneider_sct101ctm_data,
1489 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1490 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1494 /* Techbite Arc 11.6 */
1495 .driver_data = (void *)&techbite_arc_11_6_data,
1497 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1498 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1499 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1503 /* Teclast X3 Plus */
1504 .driver_data = (void *)&teclast_x3_plus_data,
1506 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1507 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1508 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1512 /* Teclast X89 (Android version / BIOS) */
1513 .driver_data = (void *)&gdix1001_00_upside_down_data,
1515 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1516 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1520 /* Teclast X89 (Windows version / BIOS) */
1521 .driver_data = (void *)&gdix1001_01_upside_down_data,
1523 /* tPAD is too generic, also match on bios date */
1524 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1525 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1526 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1530 /* Teclast X98 Plus II */
1531 .driver_data = (void *)&teclast_x98plus2_data,
1533 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1534 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1538 /* Teclast X98 Pro */
1539 .driver_data = (void *)&gdix1001_00_upside_down_data,
1542 * Only match BIOS date, because the manufacturers
1543 * BIOS does not report the board name at all
1546 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1547 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1551 /* Trekstor Primebook C11 */
1552 .driver_data = (void *)&trekstor_primebook_c11_data,
1554 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1555 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1559 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1560 .driver_data = (void *)&trekstor_primebook_c11_data,
1562 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1563 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1567 /* Trekstor Primebook C13 */
1568 .driver_data = (void *)&trekstor_primebook_c13_data,
1570 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1571 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1575 /* Trekstor Primetab T13B */
1576 .driver_data = (void *)&trekstor_primetab_t13b_data,
1578 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1579 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1583 /* TrekStor SurfTab twin 10.1 ST10432-8 */
1584 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1586 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1587 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1591 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
1592 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1594 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1595 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1596 /* Exact match, different versions need different fw */
1597 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1601 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
1602 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1604 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1605 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1606 /* Exact match, different versions need different fw */
1607 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1611 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1612 .driver_data = (void *)&trekstor_primebook_c11_data,
1614 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1615 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1619 /* Vinga Twizzle J116 */
1620 .driver_data = (void *)&vinga_twizzle_j116_data,
1622 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1626 /* "WinBook TW100" */
1627 .driver_data = (void *)&gdix1001_00_upside_down_data,
1629 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1630 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1635 .driver_data = (void *)&gdix1001_00_upside_down_data,
1637 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1638 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1642 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1643 .driver_data = (void *)&chuwi_vi8_data,
1645 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1646 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1652 static const struct ts_dmi_data *ts_data;
1654 static void ts_dmi_add_props(struct i2c_client *client)
1656 struct device *dev = &client->dev;
1659 if (has_acpi_companion(dev) &&
1660 strstarts(client->name, ts_data->acpi_name)) {
1661 error = device_add_properties(dev, ts_data->properties);
1663 dev_err(dev, "failed to add properties: %d\n", error);
1667 static int ts_dmi_notifier_call(struct notifier_block *nb,
1668 unsigned long action, void *data)
1670 struct device *dev = data;
1671 struct i2c_client *client;
1674 case BUS_NOTIFY_ADD_DEVICE:
1675 client = i2c_verify_client(dev);
1677 ts_dmi_add_props(client);
1687 static struct notifier_block ts_dmi_notifier = {
1688 .notifier_call = ts_dmi_notifier_call,
1691 static int __init ts_dmi_init(void)
1693 const struct dmi_system_id *dmi_id;
1696 dmi_id = dmi_first_match(touchscreen_dmi_table);
1698 return 0; /* Not an error */
1700 ts_data = dmi_id->driver_data;
1701 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1702 if (!ts_data->properties)
1705 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1707 pr_err("%s: failed to register i2c bus notifier: %d\n",
1714 * We are registering out notifier after i2c core is initialized and i2c bus
1715 * itself is ready (which happens at postcore initcall level), but before
1716 * ACPI starts enumerating devices (at subsys initcall level).
1718 arch_initcall(ts_dmi_init);