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: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", "/*(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 cube_iwork8_air_props[] = {
259 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
260 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
261 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
262 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
263 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
264 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
265 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
269 static const struct ts_dmi_data cube_iwork8_air_data = {
271 .name = "/*(DEBLOBBED)*/",
272 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
274 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
275 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
276 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
277 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
279 .acpi_name = "MSSL1680:00",
280 .properties = cube_iwork8_air_props,
283 static const struct property_entry cube_knote_i1101_props[] = {
284 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
285 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
286 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
287 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
288 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
289 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
290 PROPERTY_ENTRY_BOOL("silead,home-button"),
294 static const struct ts_dmi_data cube_knote_i1101_data = {
295 .acpi_name = "MSSL1680:00",
296 .properties = cube_knote_i1101_props,
299 static const struct property_entry dexp_ursus_7w_props[] = {
300 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
301 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
302 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
303 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
304 PROPERTY_ENTRY_BOOL("silead,home-button"),
308 static const struct ts_dmi_data dexp_ursus_7w_data = {
309 .acpi_name = "MSSL1680:00",
310 .properties = dexp_ursus_7w_props,
313 static const struct property_entry digma_citi_e200_props[] = {
314 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
315 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
316 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
317 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
318 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
319 PROPERTY_ENTRY_BOOL("silead,home-button"),
323 static const struct ts_dmi_data digma_citi_e200_data = {
324 .acpi_name = "MSSL1680:00",
325 .properties = digma_citi_e200_props,
328 static const struct property_entry estar_beauty_hd_props[] = {
329 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
333 static const struct ts_dmi_data estar_beauty_hd_data = {
334 .acpi_name = "GDIX1001:00",
335 .properties = estar_beauty_hd_props,
338 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
339 static const struct property_entry gdix1001_upside_down_props[] = {
340 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
341 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
345 static const struct ts_dmi_data gdix1001_00_upside_down_data = {
346 .acpi_name = "GDIX1001:00",
347 .properties = gdix1001_upside_down_props,
350 static const struct ts_dmi_data gdix1001_01_upside_down_data = {
351 .acpi_name = "GDIX1001:01",
352 .properties = gdix1001_upside_down_props,
355 static const struct property_entry glavey_tm800a550l_props[] = {
356 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
357 PROPERTY_ENTRY_STRING("goodix,config-name", "gt912-glavey-tm800a550l.cfg"),
358 PROPERTY_ENTRY_U32("goodix,main-clk", 54),
362 static const struct ts_dmi_data glavey_tm800a550l_data = {
363 .acpi_name = "GDIX1001:00",
364 .properties = glavey_tm800a550l_props,
367 static const struct property_entry gp_electronic_t701_props[] = {
368 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
369 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
370 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
371 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
372 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
376 static const struct ts_dmi_data gp_electronic_t701_data = {
377 .acpi_name = "MSSL1680:00",
378 .properties = gp_electronic_t701_props,
381 static const struct property_entry irbis_tw90_props[] = {
382 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
383 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
384 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
385 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
386 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
387 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
388 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
389 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
390 PROPERTY_ENTRY_BOOL("silead,home-button"),
394 static const struct ts_dmi_data irbis_tw90_data = {
395 .acpi_name = "MSSL1680:00",
396 .properties = irbis_tw90_props,
399 static const struct property_entry irbis_tw118_props[] = {
400 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
401 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
402 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
403 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
404 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
405 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
409 static const struct ts_dmi_data irbis_tw118_data = {
410 .acpi_name = "MSSL1680:00",
411 .properties = irbis_tw118_props,
414 static const struct property_entry itworks_tw891_props[] = {
415 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
416 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
417 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
418 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
419 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
420 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
421 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
422 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
426 static const struct ts_dmi_data itworks_tw891_data = {
427 .acpi_name = "MSSL1680:00",
428 .properties = itworks_tw891_props,
431 static const struct property_entry jumper_ezpad_6_pro_props[] = {
432 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
433 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
434 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
435 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
436 PROPERTY_ENTRY_BOOL("silead,home-button"),
440 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
441 .acpi_name = "MSSL1680:00",
442 .properties = jumper_ezpad_6_pro_props,
445 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
446 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
447 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
448 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
449 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
450 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
451 PROPERTY_ENTRY_BOOL("silead,home-button"),
455 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
456 .acpi_name = "MSSL1680:00",
457 .properties = jumper_ezpad_6_pro_b_props,
460 static const struct property_entry jumper_ezpad_6_m4_props[] = {
461 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
462 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
463 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
464 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
465 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
466 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
467 PROPERTY_ENTRY_BOOL("silead,home-button"),
471 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
472 .acpi_name = "MSSL1680:00",
473 .properties = jumper_ezpad_6_m4_props,
476 static const struct property_entry jumper_ezpad_mini3_props[] = {
477 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
478 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
479 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
480 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
481 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
482 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
483 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
487 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
488 .acpi_name = "MSSL1680:00",
489 .properties = jumper_ezpad_mini3_props,
492 static const struct property_entry mpman_converter9_props[] = {
493 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
494 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
495 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
496 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
497 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
498 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
499 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
500 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
504 static const struct ts_dmi_data mpman_converter9_data = {
505 .acpi_name = "MSSL1680:00",
506 .properties = mpman_converter9_props,
509 static const struct property_entry mpman_mpwin895cl_props[] = {
510 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
511 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
512 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
513 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
514 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
515 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
516 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
517 PROPERTY_ENTRY_BOOL("silead,home-button"),
521 static const struct ts_dmi_data mpman_mpwin895cl_data = {
522 .acpi_name = "MSSL1680:00",
523 .properties = mpman_mpwin895cl_props,
526 static const struct property_entry myria_my8307_props[] = {
527 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
528 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
529 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
530 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
531 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
532 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
533 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
534 PROPERTY_ENTRY_BOOL("silead,home-button"),
538 static const struct ts_dmi_data myria_my8307_data = {
539 .acpi_name = "MSSL1680:00",
540 .properties = myria_my8307_props,
543 static const struct property_entry onda_obook_20_plus_props[] = {
544 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
545 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
546 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
547 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
548 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
549 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
550 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
551 PROPERTY_ENTRY_BOOL("silead,home-button"),
555 static const struct ts_dmi_data onda_obook_20_plus_data = {
556 .acpi_name = "MSSL1680:00",
557 .properties = onda_obook_20_plus_props,
560 static const struct property_entry onda_v80_plus_v3_props[] = {
561 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
562 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
563 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
564 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
565 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
566 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
567 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
568 PROPERTY_ENTRY_BOOL("silead,home-button"),
572 static const struct ts_dmi_data onda_v80_plus_v3_data = {
574 .name = "/*(DEBLOBBED)*/",
575 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
577 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
578 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
579 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
580 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
582 .acpi_name = "MSSL1680:00",
583 .properties = onda_v80_plus_v3_props,
586 static const struct property_entry onda_v820w_32g_props[] = {
587 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
588 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
589 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
590 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
591 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
592 PROPERTY_ENTRY_BOOL("silead,home-button"),
596 static const struct ts_dmi_data onda_v820w_32g_data = {
597 .acpi_name = "MSSL1680:00",
598 .properties = onda_v820w_32g_props,
601 static const struct property_entry onda_v891_v5_props[] = {
602 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
603 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
604 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
605 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
606 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
607 PROPERTY_ENTRY_STRING("firmware-name",
609 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
610 PROPERTY_ENTRY_BOOL("silead,home-button"),
614 static const struct ts_dmi_data onda_v891_v5_data = {
615 .acpi_name = "MSSL1680:00",
616 .properties = onda_v891_v5_props,
619 static const struct property_entry onda_v891w_v1_props[] = {
620 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
621 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
622 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
623 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
624 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
625 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
626 PROPERTY_ENTRY_BOOL("silead,home-button"),
630 static const struct ts_dmi_data onda_v891w_v1_data = {
631 .acpi_name = "MSSL1680:00",
632 .properties = onda_v891w_v1_props,
635 static const struct property_entry onda_v891w_v3_props[] = {
636 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
637 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
638 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
639 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
640 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
641 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
642 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
643 PROPERTY_ENTRY_BOOL("silead,home-button"),
647 static const struct ts_dmi_data onda_v891w_v3_data = {
648 .acpi_name = "MSSL1680:00",
649 .properties = onda_v891w_v3_props,
652 static const struct property_entry pipo_w2s_props[] = {
653 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
654 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
655 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
656 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
657 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
661 static const struct ts_dmi_data pipo_w2s_data = {
663 .name = "/*(DEBLOBBED)*/",
664 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
666 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
667 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
668 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
669 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
671 .acpi_name = "MSSL1680:00",
672 .properties = pipo_w2s_props,
675 static const struct property_entry pipo_w11_props[] = {
676 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
677 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
678 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
679 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
680 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
681 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
682 PROPERTY_ENTRY_BOOL("silead,home-button"),
686 static const struct ts_dmi_data pipo_w11_data = {
687 .acpi_name = "MSSL1680:00",
688 .properties = pipo_w11_props,
691 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
692 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
693 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
694 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
695 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
696 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
697 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
698 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
699 PROPERTY_ENTRY_BOOL("silead,home-button"),
703 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
704 .acpi_name = "MSSL1680:00",
705 .properties = pov_mobii_wintab_p800w_v20_props,
708 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
709 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
710 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
711 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
712 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
713 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
714 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
715 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
716 PROPERTY_ENTRY_BOOL("silead,home-button"),
720 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
721 .acpi_name = "MSSL1680:00",
722 .properties = pov_mobii_wintab_p800w_v21_props,
725 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
726 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
727 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
728 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
729 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
730 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
731 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
732 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
733 PROPERTY_ENTRY_BOOL("silead,home-button"),
737 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
738 .acpi_name = "MSSL1680:00",
739 .properties = pov_mobii_wintab_p1006w_v10_props,
742 static const struct property_entry predia_basic_props[] = {
743 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
744 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
745 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
746 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
747 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
748 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
749 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
750 PROPERTY_ENTRY_BOOL("silead,home-button"),
754 static const struct ts_dmi_data predia_basic_data = {
755 .acpi_name = "MSSL1680:00",
756 .properties = predia_basic_props,
759 static const struct property_entry rwc_nanote_p8_props[] = {
760 PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
761 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
762 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
763 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
764 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
765 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
769 static const struct ts_dmi_data rwc_nanote_p8_data = {
770 .acpi_name = "MSSL1680:00",
771 .properties = rwc_nanote_p8_props,
774 static const struct property_entry schneider_sct101ctm_props[] = {
775 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
776 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
777 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
778 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
779 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
780 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
781 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
782 PROPERTY_ENTRY_BOOL("silead,home-button"),
786 static const struct ts_dmi_data schneider_sct101ctm_data = {
787 .acpi_name = "MSSL1680:00",
788 .properties = schneider_sct101ctm_props,
791 static const struct property_entry techbite_arc_11_6_props[] = {
792 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
793 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
794 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
795 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
796 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
797 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
798 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
802 static const struct ts_dmi_data techbite_arc_11_6_data = {
803 .acpi_name = "MSSL1680:00",
804 .properties = techbite_arc_11_6_props,
807 static const struct property_entry teclast_x3_plus_props[] = {
808 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
809 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
810 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
811 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
812 PROPERTY_ENTRY_BOOL("silead,home-button"),
816 static const struct ts_dmi_data teclast_x3_plus_data = {
817 .acpi_name = "MSSL1680:00",
818 .properties = teclast_x3_plus_props,
821 static const struct property_entry teclast_x98plus2_props[] = {
822 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
823 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
824 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
825 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
826 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
827 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
831 static const struct ts_dmi_data teclast_x98plus2_data = {
832 .acpi_name = "MSSL1680:00",
833 .properties = teclast_x98plus2_props,
836 static const struct property_entry trekstor_primebook_c11_props[] = {
837 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
838 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
839 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
840 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
841 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
842 PROPERTY_ENTRY_BOOL("silead,home-button"),
846 static const struct ts_dmi_data trekstor_primebook_c11_data = {
847 .acpi_name = "MSSL1680:00",
848 .properties = trekstor_primebook_c11_props,
851 static const struct property_entry trekstor_primebook_c13_props[] = {
852 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
853 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
854 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
855 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
856 PROPERTY_ENTRY_BOOL("silead,home-button"),
860 static const struct ts_dmi_data trekstor_primebook_c13_data = {
861 .acpi_name = "MSSL1680:00",
862 .properties = trekstor_primebook_c13_props,
865 static const struct property_entry trekstor_primetab_t13b_props[] = {
866 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
867 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
868 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
869 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
870 PROPERTY_ENTRY_BOOL("silead,home-button"),
871 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
875 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
876 .acpi_name = "MSSL1680:00",
877 .properties = trekstor_primetab_t13b_props,
880 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
881 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
882 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
883 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
884 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
885 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
886 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
887 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
888 PROPERTY_ENTRY_BOOL("silead,home-button"),
892 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
893 .acpi_name = "MSSL1680:00",
894 .properties = trekstor_surftab_twin_10_1_props,
897 static const struct property_entry trekstor_surftab_wintron70_props[] = {
898 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
899 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
900 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
901 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
902 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
903 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
904 PROPERTY_ENTRY_BOOL("silead,home-button"),
908 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
909 .acpi_name = "MSSL1680:00",
910 .properties = trekstor_surftab_wintron70_props,
913 static const struct property_entry vinga_twizzle_j116_props[] = {
914 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
915 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
916 PROPERTY_ENTRY_STRING("firmware-name", "/*(DEBLOBBED)*/"),
917 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
918 PROPERTY_ENTRY_BOOL("silead,home-button"),
922 static const struct ts_dmi_data vinga_twizzle_j116_data = {
923 .acpi_name = "MSSL1680:00",
924 .properties = vinga_twizzle_j116_props,
927 /* NOTE: Please keep this table sorted alphabetically */
928 const struct dmi_system_id touchscreen_dmi_table[] = {
931 .driver_data = (void *)&chuwi_hi8_data,
933 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
934 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
938 /* Chuwi Hi8 (H1D_S806_206) */
939 .driver_data = (void *)&chuwi_hi8_data,
941 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
942 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
943 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
947 /* Chuwi Hi8 Air (CWI543) */
948 .driver_data = (void *)&chuwi_hi8_air_data,
950 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
951 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
952 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
956 /* Chuwi Hi8 Pro (CWI513) */
957 .driver_data = (void *)&chuwi_hi8_pro_data,
959 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
960 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
965 .driver_data = (void *)&chuwi_hi10_air_data,
967 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
968 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
969 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
973 /* Chuwi Hi10 Plus (CWI527) */
974 .driver_data = (void *)&chuwi_hi10_plus_data,
976 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
977 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
978 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
982 /* Chuwi Hi10 Prus (CWI597) */
983 .driver_data = (void *)&chuwi_hi10_pro_data,
985 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
986 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
987 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
991 /* Chuwi HiBook (CWI514) */
992 .driver_data = (void *)&chuwi_hibook_data,
994 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
995 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
996 /* Above matches are too generic, add bios-date match */
997 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1001 /* Chuwi Vi8 (CWI506) */
1002 .driver_data = (void *)&chuwi_vi8_data,
1004 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1005 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1006 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1010 /* Chuwi Vi8 Plus (CWI519) */
1011 .driver_data = (void *)&chuwi_vi8_plus_data,
1013 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1014 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1015 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1019 /* Chuwi Vi10 (CWI505) */
1020 .driver_data = (void *)&chuwi_vi10_data,
1022 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1023 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1024 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1025 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1029 /* Chuwi Surbook Mini (CWI540) */
1030 .driver_data = (void *)&chuwi_surbook_mini_data,
1032 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1033 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1037 /* Connect Tablet 9 */
1038 .driver_data = (void *)&connect_tablet9_data,
1040 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1041 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1045 /* CUBE iwork8 Air */
1046 .driver_data = (void *)&cube_iwork8_air_data,
1048 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1049 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1050 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1054 /* Cube KNote i1101 */
1055 .driver_data = (void *)&cube_knote_i1101_data,
1057 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1058 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1059 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1060 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1065 .driver_data = (void *)&dexp_ursus_7w_data,
1067 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1068 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1072 /* Digma Citi E200 */
1073 .driver_data = (void *)&digma_citi_e200_data,
1075 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1076 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1077 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1081 /* Estar Beauty HD (MID 7316R) */
1082 .driver_data = (void *)&estar_beauty_hd_data,
1084 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1085 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1088 { /* Glavey TM800A550L */
1089 .driver_data = (void *)&glavey_tm800a550l_data,
1091 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1092 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1093 /* Above strings are too generic, also match on BIOS version */
1094 DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
1098 /* GP-electronic T701 */
1099 .driver_data = (void *)&gp_electronic_t701_data,
1101 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1102 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1103 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1107 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1108 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1110 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1111 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1112 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1117 .driver_data = (void *)&irbis_tw90_data,
1119 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1120 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1125 .driver_data = (void *)&irbis_tw118_data,
1127 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1128 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1132 /* I.T.Works TW891 */
1133 .driver_data = (void *)&itworks_tw891_data,
1135 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1136 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1140 /* Jumper EZpad 6 Pro */
1141 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1143 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1144 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1145 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1146 /* Above matches are too generic, add bios-date match */
1147 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1151 /* Jumper EZpad 6 Pro B */
1152 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1154 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1155 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1156 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1157 /* Above matches are too generic, add bios-date match */
1158 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1162 /* Jumper EZpad 6 m4 */
1163 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1165 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1166 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1167 /* Jumper8.S106x.A00C.1066 with the version dropped */
1168 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1172 /* Jumper EZpad mini3 */
1173 .driver_data = (void *)&jumper_ezpad_mini3_data,
1175 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1176 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1177 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1181 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1182 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1184 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1185 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1189 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1190 .driver_data = (void *)&trekstor_primebook_c11_data,
1192 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1193 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1197 /* MP Man Converter 9 */
1198 .driver_data = (void *)&mpman_converter9_data,
1200 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1201 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1205 /* MP Man MPWIN895CL */
1206 .driver_data = (void *)&mpman_mpwin895cl_data,
1208 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1209 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1214 .driver_data = (void *)&myria_my8307_data,
1216 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1217 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1221 /* Onda oBook 20 Plus */
1222 .driver_data = (void *)&onda_obook_20_plus_data,
1224 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1225 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1229 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1230 .driver_data = (void *)&onda_v80_plus_v3_data,
1232 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1233 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1237 /* ONDA V820w DualOS */
1238 .driver_data = (void *)&onda_v820w_32g_data,
1240 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1241 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1246 .driver_data = (void *)&onda_v891_v5_data,
1248 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1249 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1250 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1254 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1255 .driver_data = (void *)&onda_v891w_v1_data,
1257 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1258 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1259 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1260 /* Exact match, different versions need different fw */
1261 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1265 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1266 .driver_data = (void *)&onda_v891w_v3_data,
1268 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1269 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1270 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1275 .driver_data = (void *)&pipo_w2s_data,
1277 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1278 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1283 .driver_data = (void *)&pipo_w11_data,
1285 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1286 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1287 /* Above matches are too generic, add bios-ver match */
1288 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1292 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1293 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1295 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1296 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1297 /* Exact match, different versions need different fw */
1298 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1302 /* Point of View mobii wintab p800w (v2.0) */
1303 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1305 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1306 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1307 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1308 /* Above matches are too generic, add bios-date match */
1309 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1313 /* Predia Basic tablet) */
1314 .driver_data = (void *)&predia_basic_data,
1316 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1317 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1318 /* Above matches are too generic, add bios-version match */
1319 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1323 /* Point of View mobii wintab p800w (v2.1) */
1324 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1326 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1327 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1328 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1329 /* Above matches are too generic, add bios-date match */
1330 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1334 /* Point of View mobii wintab p1006w (v1.0) */
1335 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1337 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1338 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1339 /* Note 105b is Foxcon's USB/PCI vendor id */
1340 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1341 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1346 .driver_data = (void *)&rwc_nanote_p8_data,
1348 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1349 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1350 DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1354 /* Schneider SCT101CTM */
1355 .driver_data = (void *)&schneider_sct101ctm_data,
1357 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1358 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1362 /* Techbite Arc 11.6 */
1363 .driver_data = (void *)&techbite_arc_11_6_data,
1365 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1366 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1367 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1371 /* Teclast X3 Plus */
1372 .driver_data = (void *)&teclast_x3_plus_data,
1374 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1375 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1376 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1380 /* Teclast X89 (Android version / BIOS) */
1381 .driver_data = (void *)&gdix1001_00_upside_down_data,
1383 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1384 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1388 /* Teclast X89 (Windows version / BIOS) */
1389 .driver_data = (void *)&gdix1001_01_upside_down_data,
1391 /* tPAD is too generic, also match on bios date */
1392 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1393 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1394 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1398 /* Teclast X98 Plus II */
1399 .driver_data = (void *)&teclast_x98plus2_data,
1401 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1402 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1406 /* Teclast X98 Pro */
1407 .driver_data = (void *)&gdix1001_00_upside_down_data,
1410 * Only match BIOS date, because the manufacturers
1411 * BIOS does not report the board name at all
1414 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1415 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1419 /* Trekstor Primebook C11 */
1420 .driver_data = (void *)&trekstor_primebook_c11_data,
1422 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1423 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1427 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1428 .driver_data = (void *)&trekstor_primebook_c11_data,
1430 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1431 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1435 /* Trekstor Primebook C13 */
1436 .driver_data = (void *)&trekstor_primebook_c13_data,
1438 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1439 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1443 /* Trekstor Primetab T13B */
1444 .driver_data = (void *)&trekstor_primetab_t13b_data,
1446 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1447 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1451 /* TrekStor SurfTab twin 10.1 ST10432-8 */
1452 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1454 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1455 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1459 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
1460 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1462 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1463 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1464 /* Exact match, different versions need different fw */
1465 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1469 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
1470 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1472 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1473 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1474 /* Exact match, different versions need different fw */
1475 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1479 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1480 .driver_data = (void *)&trekstor_primebook_c11_data,
1482 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1483 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1487 /* Vinga Twizzle J116 */
1488 .driver_data = (void *)&vinga_twizzle_j116_data,
1490 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1494 /* "WinBook TW100" */
1495 .driver_data = (void *)&gdix1001_00_upside_down_data,
1497 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1498 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1503 .driver_data = (void *)&gdix1001_00_upside_down_data,
1505 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1506 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1510 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1511 .driver_data = (void *)&chuwi_vi8_data,
1513 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1514 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1520 static const struct ts_dmi_data *ts_data;
1522 static void ts_dmi_add_props(struct i2c_client *client)
1524 struct device *dev = &client->dev;
1527 if (has_acpi_companion(dev) &&
1528 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
1529 error = device_add_properties(dev, ts_data->properties);
1531 dev_err(dev, "failed to add properties: %d\n", error);
1535 static int ts_dmi_notifier_call(struct notifier_block *nb,
1536 unsigned long action, void *data)
1538 struct device *dev = data;
1539 struct i2c_client *client;
1542 case BUS_NOTIFY_ADD_DEVICE:
1543 client = i2c_verify_client(dev);
1545 ts_dmi_add_props(client);
1555 static struct notifier_block ts_dmi_notifier = {
1556 .notifier_call = ts_dmi_notifier_call,
1559 static int __init ts_dmi_init(void)
1561 const struct dmi_system_id *dmi_id;
1564 dmi_id = dmi_first_match(touchscreen_dmi_table);
1566 return 0; /* Not an error */
1568 ts_data = dmi_id->driver_data;
1569 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1570 if (!ts_data->properties)
1573 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1575 pr_err("%s: failed to register i2c bus notifier: %d\n",
1582 * We are registering out notifier after i2c core is initialized and i2c bus
1583 * itself is ready (which happens at postcore initcall level), but before
1584 * ACPI starts enumerating devices (at subsys initcall level).
1586 arch_initcall(ts_dmi_init);