1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Touchscreen driver DMI based configuration code
5 * Copyright (c) 2017 Red Hat Inc.
11 #include <linux/acpi.h>
12 #include <linux/ctype.h>
13 #include <linux/device.h>
14 #include <linux/dmi.h>
15 #include <linux/efi_embedded_fw.h>
16 #include <linux/i2c.h>
17 #include <linux/init.h>
18 #include <linux/kstrtox.h>
19 #include <linux/notifier.h>
20 #include <linux/property.h>
21 #include <linux/string.h>
24 /* The EFI embedded-fw code expects this to be the first member! */
25 struct efi_embedded_fw_desc embedded_fw;
26 const char *acpi_name;
27 const struct property_entry *properties;
30 /* NOTE: Please keep all entries sorted alphabetically */
32 static const struct property_entry archos_101_cesium_educ_props[] = {
33 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
34 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
35 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
36 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
37 PROPERTY_ENTRY_BOOL("silead,home-button"),
38 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"),
42 static const struct ts_dmi_data archos_101_cesium_educ_data = {
43 .acpi_name = "MSSL1680:00",
44 .properties = archos_101_cesium_educ_props,
47 static const struct property_entry bush_bush_windows_tablet_props[] = {
48 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
49 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
50 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
51 PROPERTY_ENTRY_BOOL("silead,home-button"),
52 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-bush-bush-windows-tablet.fw"),
56 static const struct ts_dmi_data bush_bush_windows_tablet_data = {
57 .acpi_name = "MSSL1680:00",
58 .properties = bush_bush_windows_tablet_props,
61 static const struct property_entry chuwi_hi8_props[] = {
62 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
63 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
64 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
65 PROPERTY_ENTRY_BOOL("silead,home-button"),
66 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
70 static const struct ts_dmi_data chuwi_hi8_data = {
71 .acpi_name = "MSSL0001:00",
72 .properties = chuwi_hi8_props,
75 static const struct property_entry chuwi_hi8_air_props[] = {
76 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
77 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
78 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
79 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"),
83 static const struct ts_dmi_data chuwi_hi8_air_data = {
84 .acpi_name = "MSSL1680",
85 .properties = chuwi_hi8_air_props,
88 static const struct property_entry chuwi_hi8_pro_props[] = {
89 PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
90 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
91 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
92 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
93 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
94 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
95 PROPERTY_ENTRY_BOOL("silead,home-button"),
99 static const struct ts_dmi_data chuwi_hi8_pro_data = {
101 .name = "silead/gsl3680-chuwi-hi8-pro.fw",
102 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
104 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
105 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95,
106 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92,
107 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff },
109 .acpi_name = "MSSL1680:00",
110 .properties = chuwi_hi8_pro_props,
113 static const struct property_entry chuwi_hi10_air_props[] = {
114 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
115 PROPERTY_ENTRY_U32("touchscreen-size-y", 1271),
116 PROPERTY_ENTRY_U32("touchscreen-min-x", 99),
117 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
118 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
119 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5),
120 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4),
121 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"),
122 PROPERTY_ENTRY_BOOL("silead,home-button"),
126 static const struct ts_dmi_data chuwi_hi10_air_data = {
127 .acpi_name = "MSSL1680:00",
128 .properties = chuwi_hi10_air_props,
131 static const struct property_entry chuwi_hi10_plus_props[] = {
132 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
133 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
134 PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
135 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
136 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
137 PROPERTY_ENTRY_BOOL("silead,home-button"),
138 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
139 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
140 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
144 static const struct ts_dmi_data chuwi_hi10_plus_data = {
146 .name = "silead/gsl1680-chuwi-hi10plus.fw",
147 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
149 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
150 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
151 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
152 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
154 .acpi_name = "MSSL0017:00",
155 .properties = chuwi_hi10_plus_props,
158 static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 };
160 static const struct property_entry chuwi_hi10_pro_props[] = {
161 PROPERTY_ENTRY_U32("touchscreen-min-x", 80),
162 PROPERTY_ENTRY_U32("touchscreen-min-y", 26),
163 PROPERTY_ENTRY_U32("touchscreen-size-x", 1962),
164 PROPERTY_ENTRY_U32("touchscreen-size-y", 1254),
165 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
166 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
167 PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
168 PROPERTY_ENTRY_BOOL("silead,home-button"),
169 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
170 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
171 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
175 static const struct ts_dmi_data chuwi_hi10_pro_data = {
177 .name = "silead/gsl1680-chuwi-hi10-pro.fw",
178 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
180 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
181 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
182 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
183 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
185 .acpi_name = "MSSL1680:00",
186 .properties = chuwi_hi10_pro_props,
189 static const struct property_entry chuwi_hibook_props[] = {
190 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
191 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
192 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
193 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
194 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
195 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
196 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
197 PROPERTY_ENTRY_BOOL("silead,home-button"),
201 static const struct ts_dmi_data chuwi_hibook_data = {
203 .name = "silead/gsl1680-chuwi-hibook.fw",
204 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
206 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
207 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
208 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
209 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
211 .acpi_name = "MSSL0017:00",
212 .properties = chuwi_hibook_props,
215 static const struct property_entry chuwi_vi8_props[] = {
216 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
217 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
218 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
219 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
220 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
221 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
222 PROPERTY_ENTRY_BOOL("silead,home-button"),
226 static const struct ts_dmi_data chuwi_vi8_data = {
227 .acpi_name = "MSSL1680:00",
228 .properties = chuwi_vi8_props,
231 static const struct ts_dmi_data chuwi_vi8_plus_data = {
233 .name = "chipone/icn8505-HAMP0002.fw",
234 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
236 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
237 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
238 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
239 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
243 static const struct property_entry chuwi_vi10_props[] = {
244 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
245 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
246 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
247 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
248 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
249 PROPERTY_ENTRY_BOOL("silead,home-button"),
253 static const struct ts_dmi_data chuwi_vi10_data = {
254 .acpi_name = "MSSL0002:00",
255 .properties = chuwi_vi10_props,
258 static const struct property_entry chuwi_surbook_mini_props[] = {
259 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
260 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
261 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
262 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
263 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
264 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
268 static const struct ts_dmi_data chuwi_surbook_mini_data = {
269 .acpi_name = "MSSL1680:00",
270 .properties = chuwi_surbook_mini_props,
273 static const struct property_entry connect_tablet9_props[] = {
274 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
275 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
276 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
277 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
278 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
279 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
280 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
284 static const struct ts_dmi_data connect_tablet9_data = {
285 .acpi_name = "MSSL1680:00",
286 .properties = connect_tablet9_props,
289 static const struct property_entry csl_panther_tab_hd_props[] = {
290 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
291 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
292 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
293 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
294 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
295 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
296 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-csl-panther-tab-hd.fw"),
300 static const struct ts_dmi_data csl_panther_tab_hd_data = {
301 .acpi_name = "MSSL1680:00",
302 .properties = csl_panther_tab_hd_props,
305 static const struct property_entry cube_iwork8_air_props[] = {
306 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
307 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
308 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
309 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
310 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
311 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
315 static const struct ts_dmi_data cube_iwork8_air_data = {
317 .name = "silead/gsl3670-cube-iwork8-air.fw",
318 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
320 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
321 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
322 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
323 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
325 .acpi_name = "MSSL1680:00",
326 .properties = cube_iwork8_air_props,
329 static const struct property_entry cube_knote_i1101_props[] = {
330 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
331 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
332 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
333 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
334 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
335 PROPERTY_ENTRY_BOOL("silead,home-button"),
339 static const struct ts_dmi_data cube_knote_i1101_data = {
340 .acpi_name = "MSSL1680:00",
341 .properties = cube_knote_i1101_props,
344 static const struct property_entry dexp_ursus_7w_props[] = {
345 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
346 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
347 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
348 PROPERTY_ENTRY_BOOL("silead,home-button"),
352 static const struct ts_dmi_data dexp_ursus_7w_data = {
353 .acpi_name = "MSSL1680:00",
354 .properties = dexp_ursus_7w_props,
357 static const struct property_entry dexp_ursus_kx210i_props[] = {
358 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
359 PROPERTY_ENTRY_U32("touchscreen-min-y", 2),
360 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
361 PROPERTY_ENTRY_U32("touchscreen-size-y", 1137),
362 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-dexp-ursus-kx210i.fw"),
363 PROPERTY_ENTRY_BOOL("silead,home-button"),
367 static const struct ts_dmi_data dexp_ursus_kx210i_data = {
368 .acpi_name = "MSSL1680:00",
369 .properties = dexp_ursus_kx210i_props,
372 static const struct property_entry digma_citi_e200_props[] = {
373 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
374 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
375 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
376 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
377 PROPERTY_ENTRY_BOOL("silead,home-button"),
381 static const struct ts_dmi_data digma_citi_e200_data = {
382 .acpi_name = "MSSL1680:00",
383 .properties = digma_citi_e200_props,
386 static const struct property_entry estar_beauty_hd_props[] = {
387 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
391 static const struct ts_dmi_data estar_beauty_hd_data = {
392 .acpi_name = "GDIX1001:00",
393 .properties = estar_beauty_hd_props,
396 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
397 static const struct property_entry gdix1001_upside_down_props[] = {
398 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
399 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
403 static const struct ts_dmi_data gdix1001_upside_down_data = {
404 .acpi_name = "GDIX1001",
405 .properties = gdix1001_upside_down_props,
408 static const struct ts_dmi_data gdix1002_upside_down_data = {
409 .acpi_name = "GDIX1002",
410 .properties = gdix1001_upside_down_props,
413 static const struct property_entry gp_electronic_t701_props[] = {
414 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
415 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
416 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
417 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
418 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
422 static const struct ts_dmi_data gp_electronic_t701_data = {
423 .acpi_name = "MSSL1680:00",
424 .properties = gp_electronic_t701_props,
427 static const struct property_entry irbis_tw90_props[] = {
428 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
429 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
430 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
431 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
432 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
433 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
434 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
435 PROPERTY_ENTRY_BOOL("silead,home-button"),
439 static const struct ts_dmi_data irbis_tw90_data = {
440 .acpi_name = "MSSL1680:00",
441 .properties = irbis_tw90_props,
444 static const struct property_entry irbis_tw118_props[] = {
445 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
446 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
447 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
448 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
449 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
453 static const struct ts_dmi_data irbis_tw118_data = {
454 .acpi_name = "MSSL1680:00",
455 .properties = irbis_tw118_props,
458 static const struct property_entry itworks_tw891_props[] = {
459 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
460 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
461 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
462 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
463 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
464 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
465 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
469 static const struct ts_dmi_data itworks_tw891_data = {
470 .acpi_name = "MSSL1680:00",
471 .properties = itworks_tw891_props,
474 static const struct property_entry jumper_ezpad_6_pro_props[] = {
475 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
476 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
477 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
478 PROPERTY_ENTRY_BOOL("silead,home-button"),
482 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
483 .acpi_name = "MSSL1680:00",
484 .properties = jumper_ezpad_6_pro_props,
487 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
488 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
489 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
490 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
491 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
492 PROPERTY_ENTRY_BOOL("silead,home-button"),
496 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
497 .acpi_name = "MSSL1680:00",
498 .properties = jumper_ezpad_6_pro_b_props,
501 static const struct property_entry jumper_ezpad_6_m4_props[] = {
502 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
503 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
504 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
505 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
506 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
507 PROPERTY_ENTRY_BOOL("silead,home-button"),
511 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
512 .acpi_name = "MSSL1680:00",
513 .properties = jumper_ezpad_6_m4_props,
516 static const struct property_entry jumper_ezpad_7_props[] = {
517 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
518 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
519 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
520 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
521 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
522 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
523 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
527 static const struct ts_dmi_data jumper_ezpad_7_data = {
528 .acpi_name = "MSSL1680:00",
529 .properties = jumper_ezpad_7_props,
532 static const struct property_entry jumper_ezpad_mini3_props[] = {
533 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
534 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
535 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
536 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
537 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
538 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
542 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
543 .acpi_name = "MSSL1680:00",
544 .properties = jumper_ezpad_mini3_props,
547 static const struct property_entry mpman_converter9_props[] = {
548 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
549 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
550 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
551 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
552 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
553 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
554 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
558 static const struct ts_dmi_data mpman_converter9_data = {
559 .acpi_name = "MSSL1680:00",
560 .properties = mpman_converter9_props,
563 static const struct property_entry mpman_mpwin895cl_props[] = {
564 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
565 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
566 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
567 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
568 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
569 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
570 PROPERTY_ENTRY_BOOL("silead,home-button"),
574 static const struct ts_dmi_data mpman_mpwin895cl_data = {
575 .acpi_name = "MSSL1680:00",
576 .properties = mpman_mpwin895cl_props,
579 static const struct property_entry myria_my8307_props[] = {
580 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
581 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
582 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
583 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
584 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
585 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
586 PROPERTY_ENTRY_BOOL("silead,home-button"),
590 static const struct ts_dmi_data myria_my8307_data = {
591 .acpi_name = "MSSL1680:00",
592 .properties = myria_my8307_props,
595 static const struct property_entry onda_obook_20_plus_props[] = {
596 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
597 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
598 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
599 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
600 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
601 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
602 PROPERTY_ENTRY_BOOL("silead,home-button"),
606 static const struct ts_dmi_data onda_obook_20_plus_data = {
607 .acpi_name = "MSSL1680:00",
608 .properties = onda_obook_20_plus_props,
611 static const struct property_entry onda_v80_plus_v3_props[] = {
612 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
613 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
614 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
615 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
616 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
617 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
618 PROPERTY_ENTRY_BOOL("silead,home-button"),
622 static const struct ts_dmi_data onda_v80_plus_v3_data = {
624 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
625 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
627 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
628 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
629 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
630 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
632 .acpi_name = "MSSL1680:00",
633 .properties = onda_v80_plus_v3_props,
636 static const struct property_entry onda_v820w_32g_props[] = {
637 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
638 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
639 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
640 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
641 PROPERTY_ENTRY_BOOL("silead,home-button"),
645 static const struct ts_dmi_data onda_v820w_32g_data = {
646 .acpi_name = "MSSL1680:00",
647 .properties = onda_v820w_32g_props,
650 static const struct property_entry onda_v891_v5_props[] = {
651 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
652 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
653 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
654 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
655 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
656 PROPERTY_ENTRY_STRING("firmware-name",
657 "gsl3676-onda-v891-v5.fw"),
658 PROPERTY_ENTRY_BOOL("silead,home-button"),
662 static const struct ts_dmi_data onda_v891_v5_data = {
663 .acpi_name = "MSSL1680:00",
664 .properties = onda_v891_v5_props,
667 static const struct property_entry onda_v891w_v1_props[] = {
668 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
669 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
670 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
671 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
672 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
673 PROPERTY_ENTRY_BOOL("silead,home-button"),
677 static const struct ts_dmi_data onda_v891w_v1_data = {
678 .acpi_name = "MSSL1680:00",
679 .properties = onda_v891w_v1_props,
682 static const struct property_entry onda_v891w_v3_props[] = {
683 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
684 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
685 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
686 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
687 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
688 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
689 PROPERTY_ENTRY_BOOL("silead,home-button"),
693 static const struct ts_dmi_data onda_v891w_v3_data = {
694 .acpi_name = "MSSL1680:00",
695 .properties = onda_v891w_v3_props,
698 static const struct property_entry pipo_w2s_props[] = {
699 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
700 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
701 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
702 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
703 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
707 static const struct ts_dmi_data pipo_w2s_data = {
709 .name = "silead/gsl1680-pipo-w2s.fw",
710 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
712 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
713 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
714 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
715 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
717 .acpi_name = "MSSL1680:00",
718 .properties = pipo_w2s_props,
721 static const struct property_entry pipo_w11_props[] = {
722 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
723 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
724 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
725 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
726 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
727 PROPERTY_ENTRY_BOOL("silead,home-button"),
731 static const struct ts_dmi_data pipo_w11_data = {
732 .acpi_name = "MSSL1680:00",
733 .properties = pipo_w11_props,
736 static const struct property_entry positivo_c4128b_props[] = {
737 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
738 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
739 PROPERTY_ENTRY_U32("touchscreen-size-x", 1915),
740 PROPERTY_ENTRY_U32("touchscreen-size-y", 1269),
741 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-positivo-c4128b.fw"),
745 static const struct ts_dmi_data positivo_c4128b_data = {
746 .acpi_name = "MSSL1680:00",
747 .properties = positivo_c4128b_props,
750 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
751 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
752 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
753 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
754 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
755 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
756 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
757 PROPERTY_ENTRY_BOOL("silead,home-button"),
761 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
762 .acpi_name = "MSSL1680:00",
763 .properties = pov_mobii_wintab_p800w_v20_props,
766 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
767 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
768 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
769 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
770 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
771 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
772 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
773 PROPERTY_ENTRY_BOOL("silead,home-button"),
777 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
778 .acpi_name = "MSSL1680:00",
779 .properties = pov_mobii_wintab_p800w_v21_props,
782 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
783 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
784 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
785 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
786 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
787 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
788 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
789 PROPERTY_ENTRY_BOOL("silead,home-button"),
793 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
794 .acpi_name = "MSSL1680:00",
795 .properties = pov_mobii_wintab_p1006w_v10_props,
798 static const struct property_entry predia_basic_props[] = {
799 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
800 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
801 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
802 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
803 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
804 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
805 PROPERTY_ENTRY_BOOL("silead,home-button"),
809 static const struct ts_dmi_data predia_basic_data = {
810 .acpi_name = "MSSL1680:00",
811 .properties = predia_basic_props,
814 static const struct property_entry rca_cambio_w101_v2_props[] = {
815 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
816 PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
817 PROPERTY_ENTRY_U32("touchscreen-size-x", 1644),
818 PROPERTY_ENTRY_U32("touchscreen-size-y", 874),
819 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
820 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rca-cambio-w101-v2.fw"),
824 static const struct ts_dmi_data rca_cambio_w101_v2_data = {
825 .acpi_name = "MSSL1680:00",
826 .properties = rca_cambio_w101_v2_props,
829 static const struct property_entry rwc_nanote_p8_props[] = {
830 PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
831 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
832 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
833 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
834 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"),
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", "gsl1680-schneider-sct101ctm.fw"),
850 PROPERTY_ENTRY_BOOL("silead,home-button"),
854 static const struct ts_dmi_data schneider_sct101ctm_data = {
855 .acpi_name = "MSSL1680:00",
856 .properties = schneider_sct101ctm_props,
859 static const struct property_entry globalspace_solt_ivw116_props[] = {
860 PROPERTY_ENTRY_U32("touchscreen-min-x", 7),
861 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
862 PROPERTY_ENTRY_U32("touchscreen-size-x", 1723),
863 PROPERTY_ENTRY_U32("touchscreen-size-y", 1077),
864 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-globalspace-solt-ivw116.fw"),
865 PROPERTY_ENTRY_BOOL("silead,home-button"),
869 static const struct ts_dmi_data globalspace_solt_ivw116_data = {
870 .acpi_name = "MSSL1680:00",
871 .properties = globalspace_solt_ivw116_props,
874 static const struct property_entry techbite_arc_11_6_props[] = {
875 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
876 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
877 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
878 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
879 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
880 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
884 static const struct ts_dmi_data techbite_arc_11_6_data = {
885 .acpi_name = "MSSL1680:00",
886 .properties = techbite_arc_11_6_props,
889 static const struct property_entry teclast_tbook11_props[] = {
890 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
891 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
892 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
893 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
894 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
895 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
896 PROPERTY_ENTRY_BOOL("silead,home-button"),
900 static const struct ts_dmi_data teclast_tbook11_data = {
902 .name = "silead/gsl3692-teclast-tbook11.fw",
903 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
905 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
906 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
907 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
908 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
910 .acpi_name = "MSSL1680:00",
911 .properties = teclast_tbook11_props,
914 static const struct property_entry teclast_x16_plus_props[] = {
915 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
916 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
917 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
918 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
919 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
920 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-x16-plus.fw"),
921 PROPERTY_ENTRY_BOOL("silead,home-button"),
925 static const struct ts_dmi_data teclast_x16_plus_data = {
927 .name = "silead/gsl3692-teclast-x16-plus.fw",
928 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
930 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
931 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
932 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
933 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
935 .acpi_name = "MSSL1680:00",
936 .properties = teclast_x16_plus_props,
939 static const struct property_entry teclast_x3_plus_props[] = {
940 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
941 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
942 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
943 PROPERTY_ENTRY_BOOL("silead,home-button"),
947 static const struct ts_dmi_data teclast_x3_plus_data = {
948 .acpi_name = "MSSL1680:00",
949 .properties = teclast_x3_plus_props,
952 static const struct property_entry teclast_x98plus2_props[] = {
953 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
954 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
955 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
956 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
957 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
961 static const struct ts_dmi_data teclast_x98plus2_data = {
962 .acpi_name = "MSSL1680:00",
963 .properties = teclast_x98plus2_props,
966 static const struct property_entry trekstor_primebook_c11_props[] = {
967 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
968 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
969 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
970 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
971 PROPERTY_ENTRY_BOOL("silead,home-button"),
975 static const struct ts_dmi_data trekstor_primebook_c11_data = {
976 .acpi_name = "MSSL1680:00",
977 .properties = trekstor_primebook_c11_props,
980 static const struct property_entry trekstor_primebook_c13_props[] = {
981 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
982 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
983 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
984 PROPERTY_ENTRY_BOOL("silead,home-button"),
988 static const struct ts_dmi_data trekstor_primebook_c13_data = {
989 .acpi_name = "MSSL1680:00",
990 .properties = trekstor_primebook_c13_props,
993 static const struct property_entry trekstor_primetab_t13b_props[] = {
994 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
995 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
996 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
997 PROPERTY_ENTRY_BOOL("silead,home-button"),
998 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
1002 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
1003 .acpi_name = "MSSL1680:00",
1004 .properties = trekstor_primetab_t13b_props,
1007 static const struct property_entry trekstor_surftab_duo_w1_props[] = {
1008 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
1012 static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
1013 .acpi_name = "GDIX1001:00",
1014 .properties = trekstor_surftab_duo_w1_props,
1017 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
1018 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
1019 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
1020 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
1021 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1022 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
1023 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
1024 PROPERTY_ENTRY_BOOL("silead,home-button"),
1028 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
1029 .acpi_name = "MSSL1680:00",
1030 .properties = trekstor_surftab_twin_10_1_props,
1033 static const struct property_entry trekstor_surftab_wintron70_props[] = {
1034 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
1035 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
1036 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
1037 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
1038 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
1039 PROPERTY_ENTRY_BOOL("silead,home-button"),
1043 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
1044 .acpi_name = "MSSL1680:00",
1045 .properties = trekstor_surftab_wintron70_props,
1048 static const struct property_entry viglen_connect_10_props[] = {
1049 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
1050 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1051 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6),
1052 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
1053 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
1054 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"),
1055 PROPERTY_ENTRY_BOOL("silead,home-button"),
1059 static const struct ts_dmi_data viglen_connect_10_data = {
1060 .acpi_name = "MSSL1680:00",
1061 .properties = viglen_connect_10_props,
1064 static const struct property_entry vinga_twizzle_j116_props[] = {
1065 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
1066 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1067 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
1068 PROPERTY_ENTRY_BOOL("silead,home-button"),
1072 static const struct ts_dmi_data vinga_twizzle_j116_data = {
1073 .acpi_name = "MSSL1680:00",
1074 .properties = vinga_twizzle_j116_props,
1077 /* NOTE: Please keep this table sorted alphabetically */
1078 const struct dmi_system_id touchscreen_dmi_table[] = {
1080 /* Archos 101 Cesium Educ */
1081 .driver_data = (void *)&archos_101_cesium_educ_data,
1083 DMI_MATCH(DMI_PRODUCT_NAME, "ARCHOS 101 Cesium Educ"),
1087 /* Bush Windows tablet */
1088 .driver_data = (void *)&bush_bush_windows_tablet_data,
1090 DMI_MATCH(DMI_PRODUCT_NAME, "Bush Windows tablet"),
1095 .driver_data = (void *)&chuwi_hi8_data,
1097 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1098 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
1102 /* Chuwi Hi8 (H1D_S806_206) */
1103 .driver_data = (void *)&chuwi_hi8_data,
1105 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1106 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1107 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
1111 /* Chuwi Hi8 Air (CWI543) */
1112 .driver_data = (void *)&chuwi_hi8_air_data,
1114 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1115 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1116 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1120 /* Chuwi Hi8 Pro (CWI513) */
1121 .driver_data = (void *)&chuwi_hi8_pro_data,
1123 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1124 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1128 /* Chuwi Hi10 Air */
1129 .driver_data = (void *)&chuwi_hi10_air_data,
1131 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1132 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1133 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1137 /* Chuwi Hi10 Plus (CWI527) */
1138 .driver_data = (void *)&chuwi_hi10_plus_data,
1140 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1141 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1142 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1146 /* Chuwi Hi10 Pro (CWI529) */
1147 .driver_data = (void *)&chuwi_hi10_pro_data,
1149 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1150 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1151 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1155 /* Chuwi HiBook (CWI514) */
1156 .driver_data = (void *)&chuwi_hibook_data,
1158 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1159 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1160 /* Above matches are too generic, add bios-date match */
1161 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1165 /* Chuwi Vi8 (CWI501) */
1166 .driver_data = (void *)&chuwi_vi8_data,
1168 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1169 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1170 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.W86JLBNR01"),
1174 /* Chuwi Vi8 (CWI506) */
1175 .driver_data = (void *)&chuwi_vi8_data,
1177 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1178 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1179 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1183 /* Chuwi Vi8 dual-boot (CWI506) */
1184 .driver_data = (void *)&chuwi_vi8_data,
1186 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1187 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1188 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI2.D86JHBNR02"),
1192 /* Chuwi Vi8 Plus (CWI519) */
1193 .driver_data = (void *)&chuwi_vi8_plus_data,
1195 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1196 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1197 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1201 /* Chuwi Vi10 (CWI505) */
1202 .driver_data = (void *)&chuwi_vi10_data,
1204 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1205 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1206 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1207 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1211 /* Chuwi Surbook Mini (CWI540) */
1212 .driver_data = (void *)&chuwi_surbook_mini_data,
1214 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1215 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1219 /* Connect Tablet 9 */
1220 .driver_data = (void *)&connect_tablet9_data,
1222 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1223 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1227 /* CSL Panther Tab HD */
1228 .driver_data = (void *)&csl_panther_tab_hd_data,
1230 DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"),
1231 DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"),
1235 /* CUBE iwork8 Air */
1236 .driver_data = (void *)&cube_iwork8_air_data,
1238 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1239 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1240 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1244 /* Cube KNote i1101 */
1245 .driver_data = (void *)&cube_knote_i1101_data,
1247 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1248 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1249 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1250 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1255 .driver_data = (void *)&dexp_ursus_7w_data,
1257 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1258 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1262 /* DEXP Ursus KX210i */
1263 .driver_data = (void *)&dexp_ursus_kx210i_data,
1265 DMI_MATCH(DMI_SYS_VENDOR, "INSYDE Corp."),
1266 DMI_MATCH(DMI_PRODUCT_NAME, "S107I"),
1270 /* Digma Citi E200 */
1271 .driver_data = (void *)&digma_citi_e200_data,
1273 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1274 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1275 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1279 /* Estar Beauty HD (MID 7316R) */
1280 .driver_data = (void *)&estar_beauty_hd_data,
1282 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1283 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1287 /* GP-electronic T701 */
1288 .driver_data = (void *)&gp_electronic_t701_data,
1290 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1291 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1292 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1296 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1297 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1299 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1300 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1301 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1306 .driver_data = (void *)&irbis_tw90_data,
1308 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1309 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1314 .driver_data = (void *)&irbis_tw118_data,
1316 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1317 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1321 /* I.T.Works TW891 */
1322 .driver_data = (void *)&itworks_tw891_data,
1324 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1325 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1329 /* Jumper EZpad 6 Pro */
1330 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1332 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1333 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1334 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1335 /* Above matches are too generic, add bios-date match */
1336 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1340 /* Jumper EZpad 6 Pro B */
1341 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1343 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1344 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1345 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1346 /* Above matches are too generic, add bios-date match */
1347 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1351 /* Jumper EZpad 6s Pro */
1352 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1354 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1355 DMI_MATCH(DMI_PRODUCT_NAME, "Ezpad"),
1356 /* Above matches are too generic, add bios match */
1357 DMI_MATCH(DMI_BIOS_VERSION, "E.WSA116_8.E1.042.bin"),
1358 DMI_MATCH(DMI_BIOS_DATE, "01/08/2020"),
1362 /* Jumper EZpad 6 m4 */
1363 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1365 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1366 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1367 /* Jumper8.S106x.A00C.1066 with the version dropped */
1368 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1372 /* Jumper EZpad 7 */
1373 .driver_data = (void *)&jumper_ezpad_7_data,
1375 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1376 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1377 /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
1378 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1382 /* Jumper EZpad mini3 */
1383 .driver_data = (void *)&jumper_ezpad_mini3_data,
1385 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1386 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1387 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1392 .driver_data = (void *)&gdix1002_upside_down_data,
1394 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1395 /* Both product- and board-name being "Default string" is somewhat rare */
1396 DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1397 DMI_MATCH(DMI_BOARD_NAME, "Default string"),
1398 /* Above matches are too generic, add partial bios-version match */
1399 DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
1403 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1404 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1406 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1407 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1411 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1412 .driver_data = (void *)&trekstor_primebook_c11_data,
1414 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1415 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1419 /* MP Man Converter 9 */
1420 .driver_data = (void *)&mpman_converter9_data,
1422 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1423 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1427 /* MP Man MPWIN895CL */
1428 .driver_data = (void *)&mpman_mpwin895cl_data,
1430 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1431 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1436 .driver_data = (void *)&myria_my8307_data,
1438 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1439 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1443 /* Onda oBook 20 Plus */
1444 .driver_data = (void *)&onda_obook_20_plus_data,
1446 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1447 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1451 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1452 .driver_data = (void *)&onda_v80_plus_v3_data,
1454 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1455 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1459 /* ONDA V820w DualOS */
1460 .driver_data = (void *)&onda_v820w_32g_data,
1462 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1463 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1468 .driver_data = (void *)&onda_v891_v5_data,
1470 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1471 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1472 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1476 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1477 .driver_data = (void *)&onda_v891w_v1_data,
1479 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1480 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1481 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1482 /* Exact match, different versions need different fw */
1483 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1487 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1488 .driver_data = (void *)&onda_v891w_v3_data,
1490 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1491 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1492 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1497 .driver_data = (void *)&pipo_w2s_data,
1499 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1500 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1505 .driver_data = (void *)&pipo_w11_data,
1507 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1508 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1509 /* Above matches are too generic, add bios-ver match */
1510 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1514 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1515 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1517 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1518 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1519 /* Exact match, different versions need different fw */
1520 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1524 /* Positivo C4128B */
1525 .driver_data = (void *)&positivo_c4128b_data,
1527 DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"),
1528 DMI_MATCH(DMI_PRODUCT_NAME, "C4128B-1"),
1532 /* Point of View mobii wintab p800w (v2.0) */
1533 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1535 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1536 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1537 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1538 /* Above matches are too generic, add bios-date match */
1539 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1543 /* Predia Basic tablet) */
1544 .driver_data = (void *)&predia_basic_data,
1546 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1547 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1548 /* Above matches are too generic, add bios-version match */
1549 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1553 /* Point of View mobii wintab p800w (v2.1) */
1554 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1556 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1557 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1558 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1559 /* Above matches are too generic, add bios-date match */
1560 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1564 /* Point of View mobii wintab p1006w (v1.0) */
1565 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1567 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1568 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1569 /* Note 105b is Foxcon's USB/PCI vendor id */
1570 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1571 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1575 /* RCA Cambio W101 v2 */
1576 /* https://github.com/onitake/gsl-firmware/discussions/193 */
1577 .driver_data = (void *)&rca_cambio_w101_v2_data,
1579 DMI_MATCH(DMI_SYS_VENDOR, "RCA"),
1580 DMI_MATCH(DMI_PRODUCT_NAME, "W101SA23T1"),
1585 .driver_data = (void *)&rwc_nanote_p8_data,
1587 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1588 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1589 DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1593 /* Schneider SCT101CTM */
1594 .driver_data = (void *)&schneider_sct101ctm_data,
1596 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1597 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1601 /* GlobalSpace SoLT IVW 11.6" */
1602 .driver_data = (void *)&globalspace_solt_ivw116_data,
1604 DMI_MATCH(DMI_SYS_VENDOR, "Globalspace Tech Pvt Ltd"),
1605 DMI_MATCH(DMI_PRODUCT_NAME, "SolTIVW"),
1606 DMI_MATCH(DMI_PRODUCT_SKU, "PN20170413488"),
1610 /* Techbite Arc 11.6 */
1611 .driver_data = (void *)&techbite_arc_11_6_data,
1613 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1614 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1615 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1619 /* Teclast Tbook 11 */
1620 .driver_data = (void *)&teclast_tbook11_data,
1622 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1623 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1624 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1628 /* Teclast X16 Plus */
1629 .driver_data = (void *)&teclast_x16_plus_data,
1631 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1632 DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1633 DMI_MATCH(DMI_PRODUCT_SKU, "D3A5_A1"),
1637 /* Teclast X3 Plus */
1638 .driver_data = (void *)&teclast_x3_plus_data,
1640 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1641 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1642 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1646 /* Teclast X89 (Android version / BIOS) */
1647 .driver_data = (void *)&gdix1001_upside_down_data,
1649 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1650 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1654 /* Teclast X89 (Windows version / BIOS) */
1655 .driver_data = (void *)&gdix1001_upside_down_data,
1657 /* tPAD is too generic, also match on bios date */
1658 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1659 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1660 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1664 /* Teclast X98 Plus II */
1665 .driver_data = (void *)&teclast_x98plus2_data,
1667 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1668 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1672 /* Teclast X98 Pro */
1673 .driver_data = (void *)&gdix1001_upside_down_data,
1676 * Only match BIOS date, because the manufacturers
1677 * BIOS does not report the board name at all
1680 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1681 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1685 /* Trekstor Primebook C11 */
1686 .driver_data = (void *)&trekstor_primebook_c11_data,
1688 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1689 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1693 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1694 .driver_data = (void *)&trekstor_primebook_c11_data,
1696 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1697 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1701 /* Trekstor Primebook C13 */
1702 .driver_data = (void *)&trekstor_primebook_c13_data,
1704 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1705 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1709 /* Trekstor Primetab T13B */
1710 .driver_data = (void *)&trekstor_primetab_t13b_data,
1712 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1713 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1717 /* TrekStor SurfTab duo W1 10.1 ST10432-10b */
1718 .driver_data = (void *)&trekstor_surftab_duo_w1_data,
1720 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1721 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1725 /* TrekStor SurfTab twin 10.1 ST10432-8 */
1726 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1728 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1729 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1733 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
1734 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1736 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1737 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1738 /* Exact match, different versions need different fw */
1739 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1743 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
1744 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1746 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1747 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1748 /* Exact match, different versions need different fw */
1749 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1753 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1754 .driver_data = (void *)&trekstor_primebook_c11_data,
1756 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1757 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1761 /* Viglen Connect 10 */
1762 .driver_data = (void *)&viglen_connect_10_data,
1764 DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
1765 DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"),
1769 /* Vinga Twizzle J116 */
1770 .driver_data = (void *)&vinga_twizzle_j116_data,
1772 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1776 /* "WinBook TW100" */
1777 .driver_data = (void *)&gdix1001_upside_down_data,
1779 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1780 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1785 .driver_data = (void *)&gdix1001_upside_down_data,
1787 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1788 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1792 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1793 .driver_data = (void *)&chuwi_vi8_data,
1795 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1796 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1802 static struct ts_dmi_data *ts_data;
1804 static void ts_dmi_add_props(struct i2c_client *client)
1806 struct device *dev = &client->dev;
1809 if (has_acpi_companion(dev) &&
1810 strstarts(client->name, ts_data->acpi_name)) {
1811 error = device_create_managed_software_node(dev, ts_data->properties, NULL);
1813 dev_err(dev, "failed to add properties: %d\n", error);
1817 static int ts_dmi_notifier_call(struct notifier_block *nb,
1818 unsigned long action, void *data)
1820 struct device *dev = data;
1821 struct i2c_client *client;
1824 case BUS_NOTIFY_ADD_DEVICE:
1825 client = i2c_verify_client(dev);
1827 ts_dmi_add_props(client);
1837 #define MAX_CMDLINE_PROPS 16
1839 static struct property_entry ts_cmdline_props[MAX_CMDLINE_PROPS + 1];
1841 static struct ts_dmi_data ts_cmdline_data = {
1842 .properties = ts_cmdline_props,
1845 static int __init ts_parse_props(char *str)
1847 /* Save the original str to show it on syntax errors */
1853 strscpy(orig_str, str);
1856 * str is part of the static_command_line from init/main.c and poking
1857 * holes in that by writing 0 to it is allowed, as is taking long
1858 * lasting references to it.
1860 ts_cmdline_data.acpi_name = strsep(&str, ":");
1862 for (i = 0; i < MAX_CMDLINE_PROPS; i++) {
1863 name = strsep(&str, ":");
1864 if (!name || !name[0])
1867 /* Replace '=' with 0 and make value point past '=' or NULL */
1869 strsep(&value, "=");
1871 ts_cmdline_props[i] = PROPERTY_ENTRY_BOOL(name);
1872 } else if (isdigit(value[0])) {
1873 ret = kstrtou32(value, 0, &u32val);
1877 ts_cmdline_props[i] = PROPERTY_ENTRY_U32(name, u32val);
1879 ts_cmdline_props[i] = PROPERTY_ENTRY_STRING(name, value);
1886 ts_data = &ts_cmdline_data;
1890 pr_err("Invalid '%s' value for 'i2c_touchscreen_props='\n", orig_str);
1891 return 1; /* "i2c_touchscreen_props=" is still a known parameter */
1893 __setup("i2c_touchscreen_props=", ts_parse_props);
1895 static struct notifier_block ts_dmi_notifier = {
1896 .notifier_call = ts_dmi_notifier_call,
1899 static int __init ts_dmi_init(void)
1901 const struct dmi_system_id *dmi_id;
1902 struct ts_dmi_data *ts_data_dmi;
1905 dmi_id = dmi_first_match(touchscreen_dmi_table);
1906 ts_data_dmi = dmi_id ? dmi_id->driver_data : NULL;
1910 * Kernel cmdline provided data takes precedence, copy over
1911 * DMI efi_embedded_fw info if available.
1914 ts_data->embedded_fw = ts_data_dmi->embedded_fw;
1915 } else if (ts_data_dmi) {
1916 ts_data = ts_data_dmi;
1918 return 0; /* Not an error */
1921 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1922 if (!ts_data->properties)
1925 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1927 pr_err("%s: failed to register i2c bus notifier: %d\n",
1934 * We are registering out notifier after i2c core is initialized and i2c bus
1935 * itself is ready (which happens at postcore initcall level), but before
1936 * ACPI starts enumerating devices (at subsys initcall level).
1938 arch_initcall(ts_dmi_init);