xref: /linux/drivers/platform/x86/touchscreen_dmi.c (revision 20dfee95936413708701eb151f419597fdd9d948)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Touchscreen driver DMI based configuration code
4  *
5  * Copyright (c) 2017 Red Hat Inc.
6  *
7  * Red Hat authors:
8  * Hans de Goede <hdegoede@redhat.com>
9  */
10 
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>
22 
23 struct ts_dmi_data {
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;
28 };
29 
30 /* NOTE: Please keep all entries sorted alphabetically */
31 
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_U32("silead,max-fingers", 10),
38 	PROPERTY_ENTRY_BOOL("silead,home-button"),
39 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"),
40 	{ }
41 };
42 
43 static const struct ts_dmi_data archos_101_cesium_educ_data = {
44 	.acpi_name      = "MSSL1680:00",
45 	.properties     = archos_101_cesium_educ_props,
46 };
47 
48 static const struct property_entry bush_bush_windows_tablet_props[] = {
49 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
50 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
51 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
52 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
53 	PROPERTY_ENTRY_BOOL("silead,home-button"),
54 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-bush-bush-windows-tablet.fw"),
55 	{ }
56 };
57 
58 static const struct ts_dmi_data bush_bush_windows_tablet_data = {
59 	.acpi_name      = "MSSL1680:00",
60 	.properties     = bush_bush_windows_tablet_props,
61 };
62 
63 static const struct property_entry chuwi_hi8_props[] = {
64 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
65 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
66 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
67 	PROPERTY_ENTRY_BOOL("silead,home-button"),
68 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
69 	{ }
70 };
71 
72 static const struct ts_dmi_data chuwi_hi8_data = {
73 	.acpi_name      = "MSSL0001:00",
74 	.properties     = chuwi_hi8_props,
75 };
76 
77 static const struct property_entry chuwi_hi8_air_props[] = {
78 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
79 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
80 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
81 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"),
82 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
83 	{ }
84 };
85 
86 static const struct ts_dmi_data chuwi_hi8_air_data = {
87 	.acpi_name	= "MSSL1680",
88 	.properties	= chuwi_hi8_air_props,
89 };
90 
91 static const struct property_entry chuwi_hi8_pro_props[] = {
92 	PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
93 	PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
94 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
95 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
96 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
97 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
98 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
99 	PROPERTY_ENTRY_BOOL("silead,home-button"),
100 	{ }
101 };
102 
103 static const struct ts_dmi_data chuwi_hi8_pro_data = {
104 	.embedded_fw = {
105 		.name	= "silead/gsl3680-chuwi-hi8-pro.fw",
106 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
107 		.length	= 39864,
108 		.sha256	= { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
109 			    0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95,
110 			    0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92,
111 			    0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff },
112 	},
113 	.acpi_name	= "MSSL1680:00",
114 	.properties	= chuwi_hi8_pro_props,
115 };
116 
117 static const struct property_entry chuwi_hi10_air_props[] = {
118 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
119 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1271),
120 	PROPERTY_ENTRY_U32("touchscreen-min-x", 99),
121 	PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
122 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
123 	PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5),
124 	PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4),
125 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"),
126 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
127 	PROPERTY_ENTRY_BOOL("silead,home-button"),
128 	{ }
129 };
130 
131 static const struct ts_dmi_data chuwi_hi10_air_data = {
132 	.acpi_name	= "MSSL1680:00",
133 	.properties	= chuwi_hi10_air_props,
134 };
135 
136 static const struct property_entry chuwi_hi10_plus_props[] = {
137 	PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
138 	PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
139 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
140 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
141 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
142 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
143 	PROPERTY_ENTRY_BOOL("silead,home-button"),
144 	PROPERTY_ENTRY_BOOL("silead,pen-supported"),
145 	PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
146 	PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
147 	{ }
148 };
149 
150 static const struct ts_dmi_data chuwi_hi10_plus_data = {
151 	.embedded_fw = {
152 		.name	= "silead/gsl1680-chuwi-hi10plus.fw",
153 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
154 		.length	= 34056,
155 		.sha256	= { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
156 			    0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
157 			    0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
158 			    0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
159 	},
160 	.acpi_name      = "MSSL0017:00",
161 	.properties     = chuwi_hi10_plus_props,
162 };
163 
164 static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 };
165 
166 static const struct property_entry chuwi_hi10_pro_props[] = {
167 	PROPERTY_ENTRY_U32("touchscreen-min-x", 80),
168 	PROPERTY_ENTRY_U32("touchscreen-min-y", 26),
169 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1962),
170 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1254),
171 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
172 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
173 	PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
174 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
175 	PROPERTY_ENTRY_BOOL("silead,home-button"),
176 	PROPERTY_ENTRY_BOOL("silead,pen-supported"),
177 	PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
178 	PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
179 	{ }
180 };
181 
182 static const struct ts_dmi_data chuwi_hi10_pro_data = {
183 	.embedded_fw = {
184 		.name	= "silead/gsl1680-chuwi-hi10-pro.fw",
185 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
186 		.length	= 42504,
187 		.sha256	= { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
188 			    0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
189 			    0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
190 			    0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
191 	},
192 	.acpi_name      = "MSSL1680:00",
193 	.properties     = chuwi_hi10_pro_props,
194 };
195 
196 static const struct property_entry chuwi_hibook_props[] = {
197 	PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
198 	PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
199 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
200 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
201 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
202 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
203 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
204 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
205 	PROPERTY_ENTRY_BOOL("silead,home-button"),
206 	{ }
207 };
208 
209 static const struct ts_dmi_data chuwi_hibook_data = {
210 	.embedded_fw = {
211 		.name	= "silead/gsl1680-chuwi-hibook.fw",
212 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
213 		.length	= 40392,
214 		.sha256	= { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
215 			    0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
216 			    0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
217 			    0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
218 	},
219 	.acpi_name      = "MSSL0017:00",
220 	.properties     = chuwi_hibook_props,
221 };
222 
223 static const struct property_entry chuwi_vi8_props[] = {
224 	PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
225 	PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
226 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
227 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
228 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
229 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
230 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
231 	PROPERTY_ENTRY_BOOL("silead,home-button"),
232 	{ }
233 };
234 
235 static const struct ts_dmi_data chuwi_vi8_data = {
236 	.acpi_name      = "MSSL1680:00",
237 	.properties     = chuwi_vi8_props,
238 };
239 
240 static const struct ts_dmi_data chuwi_vi8_plus_data = {
241 	.embedded_fw = {
242 		.name	= "chipone/icn8505-HAMP0002.fw",
243 		.prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
244 		.length	= 35012,
245 		.sha256	= { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
246 			    0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
247 			    0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
248 			    0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
249 	},
250 };
251 
252 static const struct property_entry chuwi_vi10_props[] = {
253 	PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
254 	PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
255 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
256 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
257 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
258 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
259 	PROPERTY_ENTRY_BOOL("silead,home-button"),
260 	{ }
261 };
262 
263 static const struct ts_dmi_data chuwi_vi10_data = {
264 	.acpi_name      = "MSSL0002:00",
265 	.properties     = chuwi_vi10_props,
266 };
267 
268 static const struct property_entry chuwi_surbook_mini_props[] = {
269 	PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
270 	PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
271 	PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
272 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
273 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
274 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
275 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
276 	{ }
277 };
278 
279 static const struct ts_dmi_data chuwi_surbook_mini_data = {
280 	.acpi_name      = "MSSL1680:00",
281 	.properties     = chuwi_surbook_mini_props,
282 };
283 
284 static const struct property_entry connect_tablet9_props[] = {
285 	PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
286 	PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
287 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
288 	PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
289 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
290 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
291 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
292 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
293 	{ }
294 };
295 
296 static const struct ts_dmi_data connect_tablet9_data = {
297 	.acpi_name      = "MSSL1680:00",
298 	.properties     = connect_tablet9_props,
299 };
300 
301 static const struct property_entry csl_panther_tab_hd_props[] = {
302 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
303 	PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
304 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
305 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
306 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
307 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
308 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-csl-panther-tab-hd.fw"),
309 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
310 	{ }
311 };
312 
313 static const struct ts_dmi_data csl_panther_tab_hd_data = {
314 	.acpi_name      = "MSSL1680:00",
315 	.properties     = csl_panther_tab_hd_props,
316 };
317 
318 static const struct property_entry cube_iwork8_air_props[] = {
319 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
320 	PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
321 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
322 	PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
323 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
324 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
325 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
326 	{ }
327 };
328 
329 static const struct ts_dmi_data cube_iwork8_air_data = {
330 	.embedded_fw = {
331 		.name	= "silead/gsl3670-cube-iwork8-air.fw",
332 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
333 		.length	= 38808,
334 		.sha256	= { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
335 			    0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
336 			    0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
337 			    0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
338 	},
339 	.acpi_name	= "MSSL1680:00",
340 	.properties	= cube_iwork8_air_props,
341 };
342 
343 static const struct property_entry cube_knote_i1101_props[] = {
344 	PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
345 	PROPERTY_ENTRY_U32("touchscreen-min-y",  22),
346 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
347 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
348 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
349 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
350 	PROPERTY_ENTRY_BOOL("silead,home-button"),
351 	{ }
352 };
353 
354 static const struct ts_dmi_data cube_knote_i1101_data = {
355 	.acpi_name	= "MSSL1680:00",
356 	.properties	= cube_knote_i1101_props,
357 };
358 
359 static const struct property_entry dexp_ursus_7w_props[] = {
360 	PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
361 	PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
362 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
363 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
364 	PROPERTY_ENTRY_BOOL("silead,home-button"),
365 	{ }
366 };
367 
368 static const struct ts_dmi_data dexp_ursus_7w_data = {
369 	.acpi_name	= "MSSL1680:00",
370 	.properties	= dexp_ursus_7w_props,
371 };
372 
373 static const struct property_entry dexp_ursus_kx210i_props[] = {
374 	PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
375 	PROPERTY_ENTRY_U32("touchscreen-min-y",  2),
376 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
377 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1137),
378 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-dexp-ursus-kx210i.fw"),
379 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
380 	PROPERTY_ENTRY_BOOL("silead,home-button"),
381 	{ }
382 };
383 
384 static const struct ts_dmi_data dexp_ursus_kx210i_data = {
385 	.acpi_name	= "MSSL1680:00",
386 	.properties	= dexp_ursus_kx210i_props,
387 };
388 
389 static const struct property_entry digma_citi_e200_props[] = {
390 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
391 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
392 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
393 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
394 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
395 	PROPERTY_ENTRY_BOOL("silead,home-button"),
396 	{ }
397 };
398 
399 static const struct ts_dmi_data digma_citi_e200_data = {
400 	.acpi_name	= "MSSL1680:00",
401 	.properties	= digma_citi_e200_props,
402 };
403 
404 static const struct property_entry estar_beauty_hd_props[] = {
405 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
406 	{ }
407 };
408 
409 static const struct ts_dmi_data estar_beauty_hd_data = {
410 	.acpi_name	= "GDIX1001:00",
411 	.properties	= estar_beauty_hd_props,
412 };
413 
414 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */
415 static const struct property_entry gdix1001_upside_down_props[] = {
416 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
417 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
418 	{ }
419 };
420 
421 static const struct ts_dmi_data gdix1001_upside_down_data = {
422 	.acpi_name	= "GDIX1001",
423 	.properties	= gdix1001_upside_down_props,
424 };
425 
426 static const struct ts_dmi_data gdix1002_upside_down_data = {
427 	.acpi_name	= "GDIX1002",
428 	.properties	= gdix1001_upside_down_props,
429 };
430 
431 static const struct property_entry gp_electronic_t701_props[] = {
432 	PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
433 	PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
434 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
435 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
436 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
437 	{ }
438 };
439 
440 static const struct ts_dmi_data gp_electronic_t701_data = {
441 	.acpi_name	= "MSSL1680:00",
442 	.properties	= gp_electronic_t701_props,
443 };
444 
445 static const struct property_entry irbis_tw90_props[] = {
446 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
447 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
448 	PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
449 	PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
450 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
451 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
452 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
453 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
454 	PROPERTY_ENTRY_BOOL("silead,home-button"),
455 	{ }
456 };
457 
458 static const struct ts_dmi_data irbis_tw90_data = {
459 	.acpi_name	= "MSSL1680:00",
460 	.properties	= irbis_tw90_props,
461 };
462 
463 static const struct property_entry irbis_tw118_props[] = {
464 	PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
465 	PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
466 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
467 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
468 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
469 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
470 	{ }
471 };
472 
473 static const struct ts_dmi_data irbis_tw118_data = {
474 	.acpi_name	= "MSSL1680:00",
475 	.properties	= irbis_tw118_props,
476 };
477 
478 static const struct property_entry itworks_tw891_props[] = {
479 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
480 	PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
481 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
482 	PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
483 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
484 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
485 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
486 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
487 	{ }
488 };
489 
490 static const struct ts_dmi_data itworks_tw891_data = {
491 	.acpi_name	= "MSSL1680:00",
492 	.properties	= itworks_tw891_props,
493 };
494 
495 static const struct property_entry jumper_ezpad_6_pro_props[] = {
496 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
497 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
498 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
499 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
500 	PROPERTY_ENTRY_BOOL("silead,home-button"),
501 	{ }
502 };
503 
504 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
505 	.acpi_name	= "MSSL1680:00",
506 	.properties	= jumper_ezpad_6_pro_props,
507 };
508 
509 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
510 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
511 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
512 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
513 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
514 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
515 	PROPERTY_ENTRY_BOOL("silead,home-button"),
516 	{ }
517 };
518 
519 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
520 	.acpi_name      = "MSSL1680:00",
521 	.properties     = jumper_ezpad_6_pro_b_props,
522 };
523 
524 static const struct property_entry jumper_ezpad_6_m4_props[] = {
525 	PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
526 	PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
527 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
528 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
529 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
530 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
531 	PROPERTY_ENTRY_BOOL("silead,home-button"),
532 	{ }
533 };
534 
535 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
536 	.acpi_name	= "MSSL1680:00",
537 	.properties	= jumper_ezpad_6_m4_props,
538 };
539 
540 static const struct property_entry jumper_ezpad_7_props[] = {
541 	PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
542 	PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
543 	PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
544 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
545 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
546 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
547 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
548 	PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
549 	{ }
550 };
551 
552 static const struct ts_dmi_data jumper_ezpad_7_data = {
553 	.acpi_name	= "MSSL1680:00",
554 	.properties	= jumper_ezpad_7_props,
555 };
556 
557 static const struct property_entry jumper_ezpad_mini3_props[] = {
558 	PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
559 	PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
560 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
561 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
562 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
563 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
564 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
565 	{ }
566 };
567 
568 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
569 	.acpi_name	= "MSSL1680:00",
570 	.properties	= jumper_ezpad_mini3_props,
571 };
572 
573 static const struct property_entry mpman_converter9_props[] = {
574 	PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
575 	PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
576 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
577 	PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
578 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
579 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
580 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
581 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
582 	{ }
583 };
584 
585 static const struct ts_dmi_data mpman_converter9_data = {
586 	.acpi_name	= "MSSL1680:00",
587 	.properties	= mpman_converter9_props,
588 };
589 
590 static const struct property_entry mpman_mpwin895cl_props[] = {
591 	PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
592 	PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
593 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
594 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
595 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
596 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
597 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
598 	PROPERTY_ENTRY_BOOL("silead,home-button"),
599 	{ }
600 };
601 
602 static const struct ts_dmi_data mpman_mpwin895cl_data = {
603 	.acpi_name	= "MSSL1680:00",
604 	.properties	= mpman_mpwin895cl_props,
605 };
606 
607 static const struct property_entry myria_my8307_props[] = {
608 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
609 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
610 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
611 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
612 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
613 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
614 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
615 	PROPERTY_ENTRY_BOOL("silead,home-button"),
616 	{ }
617 };
618 
619 static const struct ts_dmi_data myria_my8307_data = {
620 	.acpi_name	= "MSSL1680:00",
621 	.properties	= myria_my8307_props,
622 };
623 
624 static const struct property_entry onda_obook_20_plus_props[] = {
625 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
626 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
627 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
628 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
629 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
630 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
631 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
632 	PROPERTY_ENTRY_BOOL("silead,home-button"),
633 	{ }
634 };
635 
636 static const struct ts_dmi_data onda_obook_20_plus_data = {
637 	.acpi_name	= "MSSL1680:00",
638 	.properties	= onda_obook_20_plus_props,
639 };
640 
641 static const struct property_entry onda_v80_plus_v3_props[] = {
642 	PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
643 	PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
644 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
645 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
646 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
647 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
648 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
649 	PROPERTY_ENTRY_BOOL("silead,home-button"),
650 	{ }
651 };
652 
653 static const struct ts_dmi_data onda_v80_plus_v3_data = {
654 	.embedded_fw = {
655 		.name	= "silead/gsl3676-onda-v80-plus-v3.fw",
656 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
657 		.length	= 37224,
658 		.sha256	= { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
659 			    0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
660 			    0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
661 			    0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
662 	},
663 	.acpi_name	= "MSSL1680:00",
664 	.properties	= onda_v80_plus_v3_props,
665 };
666 
667 static const struct property_entry onda_v820w_32g_props[] = {
668 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
669 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
670 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
671 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
672 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
673 	PROPERTY_ENTRY_BOOL("silead,home-button"),
674 	{ }
675 };
676 
677 static const struct ts_dmi_data onda_v820w_32g_data = {
678 	.acpi_name	= "MSSL1680:00",
679 	.properties	= onda_v820w_32g_props,
680 };
681 
682 static const struct property_entry onda_v891_v5_props[] = {
683 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
684 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
685 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
686 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
687 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
688 	PROPERTY_ENTRY_STRING("firmware-name",
689 			      "gsl3676-onda-v891-v5.fw"),
690 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
691 	PROPERTY_ENTRY_BOOL("silead,home-button"),
692 	{ }
693 };
694 
695 static const struct ts_dmi_data onda_v891_v5_data = {
696 	.acpi_name	= "MSSL1680:00",
697 	.properties	= onda_v891_v5_props,
698 };
699 
700 static const struct property_entry onda_v891w_v1_props[] = {
701 	PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
702 	PROPERTY_ENTRY_U32("touchscreen-min-y",  8),
703 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
704 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
705 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
706 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
707 	PROPERTY_ENTRY_BOOL("silead,home-button"),
708 	{ }
709 };
710 
711 static const struct ts_dmi_data onda_v891w_v1_data = {
712 	.acpi_name	= "MSSL1680:00",
713 	.properties	= onda_v891w_v1_props,
714 };
715 
716 static const struct property_entry onda_v891w_v3_props[] = {
717 	PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
718 	PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
719 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
720 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
721 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
722 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
723 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
724 	PROPERTY_ENTRY_BOOL("silead,home-button"),
725 	{ }
726 };
727 
728 static const struct ts_dmi_data onda_v891w_v3_data = {
729 	.acpi_name	= "MSSL1680:00",
730 	.properties	= onda_v891w_v3_props,
731 };
732 
733 static const struct property_entry pipo_w2s_props[] = {
734 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
735 	PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
736 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
737 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
738 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
739 	{ }
740 };
741 
742 static const struct ts_dmi_data pipo_w2s_data = {
743 	.embedded_fw = {
744 		.name	= "silead/gsl1680-pipo-w2s.fw",
745 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
746 		.length	= 39072,
747 		.sha256	= { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
748 			    0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
749 			    0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
750 			    0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
751 	},
752 	.acpi_name	= "MSSL1680:00",
753 	.properties	= pipo_w2s_props,
754 };
755 
756 static const struct property_entry pipo_w11_props[] = {
757 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
758 	PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
759 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
760 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
761 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
762 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
763 	PROPERTY_ENTRY_BOOL("silead,home-button"),
764 	{ }
765 };
766 
767 static const struct ts_dmi_data pipo_w11_data = {
768 	.acpi_name	= "MSSL1680:00",
769 	.properties	= pipo_w11_props,
770 };
771 
772 static const struct property_entry positivo_c4128b_props[] = {
773 	PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
774 	PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
775 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1915),
776 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1269),
777 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-positivo-c4128b.fw"),
778 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
779 	{ }
780 };
781 
782 static const struct ts_dmi_data positivo_c4128b_data = {
783 	.acpi_name	= "MSSL1680:00",
784 	.properties	= positivo_c4128b_props,
785 };
786 
787 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
788 	PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
789 	PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
790 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
791 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
792 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
793 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
794 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
795 	PROPERTY_ENTRY_BOOL("silead,home-button"),
796 	{ }
797 };
798 
799 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
800 	.acpi_name	= "MSSL1680:00",
801 	.properties	= pov_mobii_wintab_p800w_v20_props,
802 };
803 
804 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
805 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
806 	PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
807 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
808 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
809 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
810 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
811 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
812 	PROPERTY_ENTRY_BOOL("silead,home-button"),
813 	{ }
814 };
815 
816 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
817 	.acpi_name	= "MSSL1680:00",
818 	.properties	= pov_mobii_wintab_p800w_v21_props,
819 };
820 
821 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
822 	PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
823 	PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
824 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
825 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
826 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
827 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
828 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
829 	PROPERTY_ENTRY_BOOL("silead,home-button"),
830 	{ }
831 };
832 
833 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
834 	.acpi_name	= "MSSL1680:00",
835 	.properties	= pov_mobii_wintab_p1006w_v10_props,
836 };
837 
838 static const struct property_entry predia_basic_props[] = {
839 	PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
840 	PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
841 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
842 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
843 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
844 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
845 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
846 	PROPERTY_ENTRY_BOOL("silead,home-button"),
847 	{ }
848 };
849 
850 static const struct ts_dmi_data predia_basic_data = {
851 	.acpi_name	= "MSSL1680:00",
852 	.properties	= predia_basic_props,
853 };
854 
855 static const struct property_entry rca_cambio_w101_v2_props[] = {
856 	PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
857 	PROPERTY_ENTRY_U32("touchscreen-min-y", 20),
858 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1644),
859 	PROPERTY_ENTRY_U32("touchscreen-size-y", 874),
860 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
861 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rca-cambio-w101-v2.fw"),
862 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
863 	{ }
864 };
865 
866 static const struct ts_dmi_data rca_cambio_w101_v2_data = {
867 	.acpi_name = "MSSL1680:00",
868 	.properties = rca_cambio_w101_v2_props,
869 };
870 
871 static const struct property_entry rwc_nanote_p8_props[] = {
872 	PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
873 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
874 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
875 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
876 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"),
877 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
878 	{ }
879 };
880 
881 static const struct ts_dmi_data rwc_nanote_p8_data = {
882 	.acpi_name = "MSSL1680:00",
883 	.properties = rwc_nanote_p8_props,
884 };
885 
886 static const struct property_entry schneider_sct101ctm_props[] = {
887 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
888 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
889 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
890 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
891 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
892 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
893 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
894 	PROPERTY_ENTRY_BOOL("silead,home-button"),
895 	{ }
896 };
897 
898 static const struct ts_dmi_data schneider_sct101ctm_data = {
899 	.acpi_name	= "MSSL1680:00",
900 	.properties	= schneider_sct101ctm_props,
901 };
902 
903 static const struct property_entry globalspace_solt_ivw116_props[] = {
904 	PROPERTY_ENTRY_U32("touchscreen-min-x", 7),
905 	PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
906 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1723),
907 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1077),
908 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-globalspace-solt-ivw116.fw"),
909 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
910 	PROPERTY_ENTRY_BOOL("silead,home-button"),
911 	{ }
912 };
913 
914 static const struct ts_dmi_data globalspace_solt_ivw116_data = {
915 	.acpi_name	= "MSSL1680:00",
916 	.properties	= globalspace_solt_ivw116_props,
917 };
918 
919 static const struct property_entry techbite_arc_11_6_props[] = {
920 	PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
921 	PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
922 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
923 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
924 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
925 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
926 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
927 	{ }
928 };
929 
930 static const struct ts_dmi_data techbite_arc_11_6_data = {
931 	.acpi_name	= "MSSL1680:00",
932 	.properties	= techbite_arc_11_6_props,
933 };
934 
935 static const struct property_entry teclast_tbook11_props[] = {
936 	PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
937 	PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
938 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
939 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
940 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
941 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
942 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
943 	PROPERTY_ENTRY_BOOL("silead,home-button"),
944 	{ }
945 };
946 
947 static const struct ts_dmi_data teclast_tbook11_data = {
948 	.embedded_fw = {
949 		.name	= "silead/gsl3692-teclast-tbook11.fw",
950 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
951 		.length	= 43560,
952 		.sha256	= { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
953 			    0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
954 			    0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
955 			    0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
956 	},
957 	.acpi_name	= "MSSL1680:00",
958 	.properties	= teclast_tbook11_props,
959 };
960 
961 static const struct property_entry teclast_x16_plus_props[] = {
962 	PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
963 	PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
964 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
965 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
966 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
967 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-x16-plus.fw"),
968 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
969 	PROPERTY_ENTRY_BOOL("silead,home-button"),
970 	{ }
971 };
972 
973 static const struct ts_dmi_data teclast_x16_plus_data = {
974 	.embedded_fw = {
975 		.name	= "silead/gsl3692-teclast-x16-plus.fw",
976 		.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
977 		.length	= 43560,
978 		.sha256	= { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
979 			    0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
980 			    0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
981 			    0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
982 	},
983 	.acpi_name	= "MSSL1680:00",
984 	.properties	= teclast_x16_plus_props,
985 };
986 
987 static const struct property_entry teclast_x3_plus_props[] = {
988 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
989 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
990 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
991 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
992 	PROPERTY_ENTRY_BOOL("silead,home-button"),
993 	{ }
994 };
995 
996 static const struct ts_dmi_data teclast_x3_plus_data = {
997 	.acpi_name	= "MSSL1680:00",
998 	.properties	= teclast_x3_plus_props,
999 };
1000 
1001 static const struct property_entry teclast_x98plus2_props[] = {
1002 	PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
1003 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1004 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
1005 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
1006 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
1007 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1008 	{ }
1009 };
1010 
1011 static const struct ts_dmi_data teclast_x98plus2_data = {
1012 	.acpi_name	= "MSSL1680:00",
1013 	.properties	= teclast_x98plus2_props,
1014 };
1015 
1016 static const struct property_entry trekstor_primebook_c11_props[] = {
1017 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
1018 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
1019 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
1020 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
1021 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1022 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1023 	{ }
1024 };
1025 
1026 static const struct ts_dmi_data trekstor_primebook_c11_data = {
1027 	.acpi_name	= "MSSL1680:00",
1028 	.properties	= trekstor_primebook_c11_props,
1029 };
1030 
1031 static const struct property_entry trekstor_primebook_c13_props[] = {
1032 	PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
1033 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
1034 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
1035 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1036 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1037 	{ }
1038 };
1039 
1040 static const struct ts_dmi_data trekstor_primebook_c13_data = {
1041 	.acpi_name	= "MSSL1680:00",
1042 	.properties	= trekstor_primebook_c13_props,
1043 };
1044 
1045 static const struct property_entry trekstor_primetab_t13b_props[] = {
1046 	PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
1047 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
1048 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
1049 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1050 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1051 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
1052 	{ }
1053 };
1054 
1055 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
1056 	.acpi_name  = "MSSL1680:00",
1057 	.properties = trekstor_primetab_t13b_props,
1058 };
1059 
1060 static const struct property_entry trekstor_surftab_duo_w1_props[] = {
1061 	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
1062 	{ }
1063 };
1064 
1065 static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
1066 	.acpi_name	= "GDIX1001:00",
1067 	.properties	= trekstor_surftab_duo_w1_props,
1068 };
1069 
1070 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
1071 	PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
1072 	PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
1073 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
1074 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1075 	PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
1076 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
1077 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1078 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1079 	{ }
1080 };
1081 
1082 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
1083 	.acpi_name	= "MSSL1680:00",
1084 	.properties	= trekstor_surftab_twin_10_1_props,
1085 };
1086 
1087 static const struct property_entry trekstor_surftab_wintron70_props[] = {
1088 	PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
1089 	PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
1090 	PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
1091 	PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
1092 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
1093 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1094 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1095 	{ }
1096 };
1097 
1098 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
1099 	.acpi_name	= "MSSL1680:00",
1100 	.properties	= trekstor_surftab_wintron70_props,
1101 };
1102 
1103 static const struct property_entry viglen_connect_10_props[] = {
1104 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
1105 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1106 	PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6),
1107 	PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
1108 	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
1109 	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"),
1110 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1111 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1112 	{ }
1113 };
1114 
1115 static const struct ts_dmi_data viglen_connect_10_data = {
1116 	.acpi_name	= "MSSL1680:00",
1117 	.properties	= viglen_connect_10_props,
1118 };
1119 
1120 static const struct property_entry vinga_twizzle_j116_props[] = {
1121 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
1122 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
1123 	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
1124 	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
1125 	PROPERTY_ENTRY_BOOL("silead,home-button"),
1126 	{ }
1127 };
1128 
1129 static const struct ts_dmi_data vinga_twizzle_j116_data = {
1130 	.acpi_name	= "MSSL1680:00",
1131 	.properties	= vinga_twizzle_j116_props,
1132 };
1133 
1134 /* NOTE: Please keep this table sorted alphabetically */
1135 const struct dmi_system_id touchscreen_dmi_table[] = {
1136 	{
1137 		/* Archos 101 Cesium Educ */
1138 		.driver_data = (void *)&archos_101_cesium_educ_data,
1139 		.matches = {
1140 			DMI_MATCH(DMI_PRODUCT_NAME, "ARCHOS 101 Cesium Educ"),
1141 		},
1142 	},
1143 	{
1144 		/* Bush Windows tablet */
1145 		.driver_data = (void *)&bush_bush_windows_tablet_data,
1146 		.matches = {
1147 			DMI_MATCH(DMI_PRODUCT_NAME, "Bush Windows tablet"),
1148 		},
1149 	},
1150 	{
1151 		/* Chuwi Hi8 */
1152 		.driver_data = (void *)&chuwi_hi8_data,
1153 		.matches = {
1154 			DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1155 			DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
1156 		},
1157 	},
1158 	{
1159 		/* Chuwi Hi8 (H1D_S806_206) */
1160 		.driver_data = (void *)&chuwi_hi8_data,
1161 		.matches = {
1162 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1163 			DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1164 			DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
1165 		},
1166 	},
1167 	{
1168 		/* Chuwi Hi8 Air (CWI543) */
1169 		.driver_data = (void *)&chuwi_hi8_air_data,
1170 		.matches = {
1171 			DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1172 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1173 			DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1174 		},
1175 	},
1176 	{
1177 		/* Chuwi Hi8 Pro (CWI513) */
1178 		.driver_data = (void *)&chuwi_hi8_pro_data,
1179 		.matches = {
1180 			DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1181 			DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1182 		},
1183 	},
1184 	{
1185 		/* Chuwi Hi10 Air */
1186 		.driver_data = (void *)&chuwi_hi10_air_data,
1187 		.matches = {
1188 			DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1189 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1190 			DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1191 		},
1192 	},
1193 	{
1194 		/* Chuwi Hi10 Plus (CWI527) */
1195 		.driver_data = (void *)&chuwi_hi10_plus_data,
1196 		.matches = {
1197 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1198 			DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1199 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1200 		},
1201 	},
1202 	{
1203 		/* Chuwi Hi10 Pro (CWI529) */
1204 		.driver_data = (void *)&chuwi_hi10_pro_data,
1205 		.matches = {
1206 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1207 			DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1208 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1209 		},
1210 	},
1211 	{
1212 		/* Chuwi HiBook (CWI514) */
1213 		.driver_data = (void *)&chuwi_hibook_data,
1214 		.matches = {
1215 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1216 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1217 			/* Above matches are too generic, add bios-date match */
1218 			DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1219 		},
1220 	},
1221 	{
1222 		/* Chuwi Vi8 (CWI501) */
1223 		.driver_data = (void *)&chuwi_vi8_data,
1224 		.matches = {
1225 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1226 			DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1227 			DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.W86JLBNR01"),
1228 		},
1229 	},
1230 	{
1231 		/* Chuwi Vi8 (CWI506) */
1232 		.driver_data = (void *)&chuwi_vi8_data,
1233 		.matches = {
1234 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1235 			DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1236 			DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1237 		},
1238 	},
1239 	{
1240 		/* Chuwi Vi8 dual-boot (CWI506) */
1241 		.driver_data = (void *)&chuwi_vi8_data,
1242 		.matches = {
1243 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1244 			DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1245 			DMI_MATCH(DMI_BIOS_VERSION, "CHUWI2.D86JHBNR02"),
1246 		},
1247 	},
1248 	{
1249 		/* Chuwi Vi8 Plus (CWI519) */
1250 		.driver_data = (void *)&chuwi_vi8_plus_data,
1251 		.matches = {
1252 			DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1253 			DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1254 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1255 		},
1256 	},
1257 	{
1258 		/* Chuwi Vi10 (CWI505) */
1259 		.driver_data = (void *)&chuwi_vi10_data,
1260 		.matches = {
1261 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1262 			DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1263 			DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1264 			DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1265 		},
1266 	},
1267 	{
1268 		/* Chuwi Surbook Mini (CWI540) */
1269 		.driver_data = (void *)&chuwi_surbook_mini_data,
1270 		.matches = {
1271 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1272 			DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1273 		},
1274 	},
1275 	{
1276 		/* Connect Tablet 9 */
1277 		.driver_data = (void *)&connect_tablet9_data,
1278 		.matches = {
1279 			DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1280 			DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1281 		},
1282 	},
1283 	{
1284 		/* CSL Panther Tab HD */
1285 		.driver_data = (void *)&csl_panther_tab_hd_data,
1286 		.matches = {
1287 			DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"),
1288 			DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"),
1289 		},
1290 	},
1291 	{
1292 		/* CUBE iwork8 Air */
1293 		.driver_data = (void *)&cube_iwork8_air_data,
1294 		.matches = {
1295 			DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1296 			DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1297 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1298 		},
1299 	},
1300 	{
1301 		/* Cube KNote i1101 */
1302 		.driver_data = (void *)&cube_knote_i1101_data,
1303 		.matches = {
1304 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1305 			DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1306 			DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1307 			DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1308 		},
1309 	},
1310 	{
1311 		/* DEXP Ursus 7W */
1312 		.driver_data = (void *)&dexp_ursus_7w_data,
1313 		.matches = {
1314 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1315 			DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1316 		},
1317 	},
1318 	{
1319 		/* DEXP Ursus KX210i */
1320 		.driver_data = (void *)&dexp_ursus_kx210i_data,
1321 		.matches = {
1322 			DMI_MATCH(DMI_SYS_VENDOR, "INSYDE Corp."),
1323 			DMI_MATCH(DMI_PRODUCT_NAME, "S107I"),
1324 		},
1325 	},
1326 	{
1327 		/* Digma Citi E200 */
1328 		.driver_data = (void *)&digma_citi_e200_data,
1329 		.matches = {
1330 			DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1331 			DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1332 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1333 		},
1334 	},
1335 	{
1336 		/* Estar Beauty HD (MID 7316R) */
1337 		.driver_data = (void *)&estar_beauty_hd_data,
1338 		.matches = {
1339 			DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1340 			DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1341 		},
1342 	},
1343 	{
1344 		/* GP-electronic T701 */
1345 		.driver_data = (void *)&gp_electronic_t701_data,
1346 		.matches = {
1347 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1348 			DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1349 			DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1350 		},
1351 	},
1352 	{
1353 		/* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1354 		.driver_data = (void *)&trekstor_surftab_wintron70_data,
1355 		.matches = {
1356 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1357 			DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1358 			DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1359 		},
1360 	},
1361 	{
1362 		/* Irbis TW90 */
1363 		.driver_data = (void *)&irbis_tw90_data,
1364 		.matches = {
1365 			DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1366 			DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1367 		},
1368 	},
1369 	{
1370 		/* Irbis TW118 */
1371 		.driver_data = (void *)&irbis_tw118_data,
1372 		.matches = {
1373 			DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1374 			DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1375 		},
1376 	},
1377 	{
1378 		/* I.T.Works TW891 */
1379 		.driver_data = (void *)&itworks_tw891_data,
1380 		.matches = {
1381 			DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1382 			DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1383 		},
1384 	},
1385 	{
1386 		/* Jumper EZpad 6 Pro */
1387 		.driver_data = (void *)&jumper_ezpad_6_pro_data,
1388 		.matches = {
1389 			DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1390 			DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1391 			DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1392 			/* Above matches are too generic, add bios-date match */
1393 			DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1394 		},
1395 	},
1396 	{
1397 		/* Jumper EZpad 6 Pro B */
1398 		.driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1399 		.matches = {
1400 			DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1401 			DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1402 			DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1403 			/* Above matches are too generic, add bios-date match */
1404 			DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1405 		},
1406 	},
1407 	{
1408 		/* Jumper EZpad 6s Pro */
1409 		.driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1410 		.matches = {
1411 			DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1412 			DMI_MATCH(DMI_PRODUCT_NAME, "Ezpad"),
1413 			/* Above matches are too generic, add bios match */
1414 			DMI_MATCH(DMI_BIOS_VERSION, "E.WSA116_8.E1.042.bin"),
1415 			DMI_MATCH(DMI_BIOS_DATE, "01/08/2020"),
1416 		},
1417 	},
1418 	{
1419 		/* Jumper EZpad 6 m4 */
1420 		.driver_data = (void *)&jumper_ezpad_6_m4_data,
1421 		.matches = {
1422 			DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1423 			DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1424 			/* Jumper8.S106x.A00C.1066 with the version dropped */
1425 			DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1426 		},
1427 	},
1428 	{
1429 		/* Jumper EZpad 7 */
1430 		.driver_data = (void *)&jumper_ezpad_7_data,
1431 		.matches = {
1432 			DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1433 			DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1434 			/* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
1435 			DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1436 		},
1437 	},
1438 	{
1439 		/* Jumper EZpad mini3 */
1440 		.driver_data = (void *)&jumper_ezpad_mini3_data,
1441 		.matches = {
1442 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1443 			/* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1444 			DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1445 		},
1446 	},
1447 	{
1448 		/* Juno Tablet */
1449 		.driver_data = (void *)&gdix1002_upside_down_data,
1450 		.matches = {
1451 			DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1452 			/* Both product- and board-name being "Default string" is somewhat rare */
1453 			DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1454 			DMI_MATCH(DMI_BOARD_NAME, "Default string"),
1455 			/* Above matches are too generic, add partial bios-version match */
1456 			DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."),
1457 		},
1458 	},
1459 	{
1460 		/* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1461 		.driver_data = (void *)&trekstor_surftab_wintron70_data,
1462 		.matches = {
1463 			DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1464 			DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1465 		},
1466 	},
1467 	{
1468 		/* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1469 		.driver_data = (void *)&trekstor_primebook_c11_data,
1470 		.matches = {
1471 			DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1472 			DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1473 		},
1474 	},
1475 	{
1476 		/* MP Man Converter 9 */
1477 		.driver_data = (void *)&mpman_converter9_data,
1478 		.matches = {
1479 			DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1480 			DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1481 		},
1482 	},
1483 	{
1484 		/* MP Man MPWIN895CL */
1485 		.driver_data = (void *)&mpman_mpwin895cl_data,
1486 		.matches = {
1487 			DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1488 			DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1489 		},
1490 	},
1491 	{
1492 		/* Myria MY8307 */
1493 		.driver_data = (void *)&myria_my8307_data,
1494 		.matches = {
1495 			DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1496 			DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1497 		},
1498 	},
1499 	{
1500 		/* Onda oBook 20 Plus */
1501 		.driver_data = (void *)&onda_obook_20_plus_data,
1502 		.matches = {
1503 			DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1504 			DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1505 		},
1506 	},
1507 	{
1508 		/* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1509 		.driver_data = (void *)&onda_v80_plus_v3_data,
1510 		.matches = {
1511 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1512 			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1513 		},
1514 	},
1515 	{
1516 		/* ONDA V820w DualOS */
1517 		.driver_data = (void *)&onda_v820w_32g_data,
1518 		.matches = {
1519 			DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1520 			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1521 		},
1522 	},
1523 	{
1524 		/* ONDA V891 v5 */
1525 		.driver_data = (void *)&onda_v891_v5_data,
1526 		.matches = {
1527 			DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1528 			DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1529 			DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1530 		},
1531 	},
1532 	{
1533 		/* ONDA V891w revision P891WBEBV1B00 aka v1 */
1534 		.driver_data = (void *)&onda_v891w_v1_data,
1535 		.matches = {
1536 			DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1537 			DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1538 			DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1539 			/* Exact match, different versions need different fw */
1540 			DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1541 		},
1542 	},
1543 	{
1544 		/* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1545 		.driver_data = (void *)&onda_v891w_v3_data,
1546 		.matches = {
1547 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1548 			DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1549 			DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1550 		},
1551 	},
1552 	{
1553 		/* Pipo W2S */
1554 		.driver_data = (void *)&pipo_w2s_data,
1555 		.matches = {
1556 			DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1557 			DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1558 		},
1559 	},
1560 	{
1561 		/* Pipo W11 */
1562 		.driver_data = (void *)&pipo_w11_data,
1563 		.matches = {
1564 			DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1565 			DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1566 			/* Above matches are too generic, add bios-ver match */
1567 			DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1568 		},
1569 	},
1570 	{
1571 		/* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1572 		.driver_data = (void *)&trekstor_surftab_wintron70_data,
1573 		.matches = {
1574 			DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1575 			DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1576 			/* Exact match, different versions need different fw */
1577 			DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1578 		},
1579 	},
1580 	{
1581 		/* Positivo C4128B */
1582 		.driver_data = (void *)&positivo_c4128b_data,
1583 		.matches = {
1584 			DMI_MATCH(DMI_SYS_VENDOR, "Positivo Tecnologia SA"),
1585 			DMI_MATCH(DMI_PRODUCT_NAME, "C4128B-1"),
1586 		},
1587 	},
1588 	{
1589 		/* Point of View mobii wintab p800w (v2.0) */
1590 		.driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1591 		.matches = {
1592 			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1593 			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1594 			DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1595 			/* Above matches are too generic, add bios-date match */
1596 			DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1597 		},
1598 	},
1599 	{
1600 		/* Predia Basic tablet) */
1601 		.driver_data = (void *)&predia_basic_data,
1602 		.matches = {
1603 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1604 			DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1605 			/* Above matches are too generic, add bios-version match */
1606 			DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1607 		},
1608 	},
1609 	{
1610 		/* Point of View mobii wintab p800w (v2.1) */
1611 		.driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1612 		.matches = {
1613 			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1614 			DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1615 			DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1616 			/* Above matches are too generic, add bios-date match */
1617 			DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1618 		},
1619 	},
1620 	{
1621 		/* Point of View mobii wintab p1006w (v1.0) */
1622 		.driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1623 		.matches = {
1624 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1625 			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1626 			/* Note 105b is Foxcon's USB/PCI vendor id */
1627 			DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1628 			DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1629 		},
1630 	},
1631 	{
1632 		/* RCA Cambio W101 v2 */
1633 		/* https://github.com/onitake/gsl-firmware/discussions/193 */
1634 		.driver_data = (void *)&rca_cambio_w101_v2_data,
1635 		.matches = {
1636 			DMI_MATCH(DMI_SYS_VENDOR, "RCA"),
1637 			DMI_MATCH(DMI_PRODUCT_NAME, "W101SA23T1"),
1638 		},
1639 	},
1640 	{
1641 		/* RWC NANOTE P8 */
1642 		.driver_data = (void *)&rwc_nanote_p8_data,
1643 		.matches = {
1644 			DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1645 			DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1646 			DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1647 		},
1648 	},
1649 	{
1650 		/* Schneider SCT101CTM */
1651 		.driver_data = (void *)&schneider_sct101ctm_data,
1652 		.matches = {
1653 			DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1654 			DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1655 		},
1656 	},
1657 	{
1658 		/* GlobalSpace SoLT IVW 11.6" */
1659 		.driver_data = (void *)&globalspace_solt_ivw116_data,
1660 		.matches = {
1661 			DMI_MATCH(DMI_SYS_VENDOR, "Globalspace Tech Pvt Ltd"),
1662 			DMI_MATCH(DMI_PRODUCT_NAME, "SolTIVW"),
1663 			DMI_MATCH(DMI_PRODUCT_SKU, "PN20170413488"),
1664 		},
1665 	},
1666 	{
1667 		/* Techbite Arc 11.6 */
1668 		.driver_data = (void *)&techbite_arc_11_6_data,
1669 		.matches = {
1670 			DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1671 			DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1672 			DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1673 		},
1674 	},
1675 	{
1676 		/* Teclast Tbook 11 */
1677 		.driver_data = (void *)&teclast_tbook11_data,
1678 		.matches = {
1679 			DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1680 			DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1681 			DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1682 		},
1683 	},
1684 	{
1685 		/* Teclast X16 Plus */
1686 		.driver_data = (void *)&teclast_x16_plus_data,
1687 		.matches = {
1688 			DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1689 			DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
1690 			DMI_MATCH(DMI_PRODUCT_SKU, "D3A5_A1"),
1691 		},
1692 	},
1693 	{
1694 		/* Teclast X3 Plus */
1695 		.driver_data = (void *)&teclast_x3_plus_data,
1696 		.matches = {
1697 			DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1698 			DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1699 			DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1700 		},
1701 	},
1702 	{
1703 		/* Teclast X89 (Android version / BIOS) */
1704 		.driver_data = (void *)&gdix1001_upside_down_data,
1705 		.matches = {
1706 			DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1707 			DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1708 		},
1709 	},
1710 	{
1711 		/* Teclast X89 (Windows version / BIOS) */
1712 		.driver_data = (void *)&gdix1001_upside_down_data,
1713 		.matches = {
1714 			/* tPAD is too generic, also match on bios date */
1715 			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1716 			DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1717 			DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1718 		},
1719 	},
1720 	{
1721 		/* Teclast X98 Plus II */
1722 		.driver_data = (void *)&teclast_x98plus2_data,
1723 		.matches = {
1724 			DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1725 			DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1726 		},
1727 	},
1728 	{
1729 		/* Teclast X98 Pro */
1730 		.driver_data = (void *)&gdix1001_upside_down_data,
1731 		.matches = {
1732 			/*
1733 			 * Only match BIOS date, because the manufacturers
1734 			 * BIOS does not report the board name at all
1735 			 * (sometimes)...
1736 			 */
1737 			DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1738 			DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1739 		},
1740 	},
1741 	{
1742 		/* Trekstor Primebook C11 */
1743 		.driver_data = (void *)&trekstor_primebook_c11_data,
1744 		.matches = {
1745 			DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1746 			DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1747 		},
1748 	},
1749 	{
1750 		/* Trekstor Primebook C11B (same touchscreen as the C11) */
1751 		.driver_data = (void *)&trekstor_primebook_c11_data,
1752 		.matches = {
1753 			DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1754 			DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1755 		},
1756 	},
1757 	{
1758 		/* Trekstor Primebook C13 */
1759 		.driver_data = (void *)&trekstor_primebook_c13_data,
1760 		.matches = {
1761 			DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1762 			DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1763 		},
1764 	},
1765 	{
1766 		/* Trekstor Primetab T13B */
1767 		.driver_data = (void *)&trekstor_primetab_t13b_data,
1768 		.matches = {
1769 			DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1770 			DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1771 		},
1772 	},
1773 	{
1774 		/* TrekStor SurfTab duo W1 10.1 ST10432-10b */
1775 		.driver_data = (void *)&trekstor_surftab_duo_w1_data,
1776 		.matches = {
1777 			DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1778 			DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1779 		},
1780 	},
1781 	{
1782 		/* TrekStor SurfTab twin 10.1 ST10432-8 */
1783 		.driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1784 		.matches = {
1785 			DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1786 			DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1787 		},
1788 	},
1789 	{
1790 		/* Trekstor Surftab Wintron 7.0 ST70416-6 */
1791 		.driver_data = (void *)&trekstor_surftab_wintron70_data,
1792 		.matches = {
1793 			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1794 			DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1795 			/* Exact match, different versions need different fw */
1796 			DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1797 		},
1798 	},
1799 	{
1800 		/* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
1801 		.driver_data = (void *)&trekstor_surftab_wintron70_data,
1802 		.matches = {
1803 			DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1804 			DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1805 			/* Exact match, different versions need different fw */
1806 			DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1807 		},
1808 	},
1809 	{
1810 		/* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1811 		.driver_data = (void *)&trekstor_primebook_c11_data,
1812 		.matches = {
1813 			DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1814 			DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1815 		},
1816 	},
1817 	{
1818 		/* Viglen Connect 10 */
1819 		.driver_data = (void *)&viglen_connect_10_data,
1820 		.matches = {
1821 			DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
1822 			DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"),
1823 		},
1824 	},
1825 	{
1826 		/* Vinga Twizzle J116 */
1827 		.driver_data = (void *)&vinga_twizzle_j116_data,
1828 		.matches = {
1829 			DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1830 		},
1831 	},
1832 	{
1833 		/* "WinBook TW100" */
1834 		.driver_data = (void *)&gdix1001_upside_down_data,
1835 		.matches = {
1836 			DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1837 			DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1838 		}
1839 	},
1840 	{
1841 		/* WinBook TW700 */
1842 		.driver_data = (void *)&gdix1001_upside_down_data,
1843 		.matches = {
1844 			DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1845 			DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1846 		},
1847 	},
1848 	{
1849 		/* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1850 		.driver_data = (void *)&chuwi_vi8_data,
1851 		.matches = {
1852 			DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1853 			DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1854 		},
1855 	},
1856 	{ }
1857 };
1858 
1859 static struct ts_dmi_data *ts_data;
1860 
1861 static void ts_dmi_add_props(struct i2c_client *client)
1862 {
1863 	struct device *dev = &client->dev;
1864 	int error;
1865 
1866 	if (has_acpi_companion(dev) &&
1867 	    strstarts(client->name, ts_data->acpi_name)) {
1868 		error = device_create_managed_software_node(dev, ts_data->properties, NULL);
1869 		if (error)
1870 			dev_err(dev, "failed to add properties: %d\n", error);
1871 	}
1872 }
1873 
1874 static int ts_dmi_notifier_call(struct notifier_block *nb,
1875 				unsigned long action, void *data)
1876 {
1877 	struct device *dev = data;
1878 	struct i2c_client *client;
1879 
1880 	switch (action) {
1881 	case BUS_NOTIFY_ADD_DEVICE:
1882 		client = i2c_verify_client(dev);
1883 		if (client)
1884 			ts_dmi_add_props(client);
1885 		break;
1886 
1887 	default:
1888 		break;
1889 	}
1890 
1891 	return 0;
1892 }
1893 
1894 #define MAX_CMDLINE_PROPS 16
1895 
1896 static struct property_entry ts_cmdline_props[MAX_CMDLINE_PROPS + 1];
1897 
1898 static struct ts_dmi_data ts_cmdline_data = {
1899 	.properties = ts_cmdline_props,
1900 };
1901 
1902 static int __init ts_parse_props(char *str)
1903 {
1904 	/* Save the original str to show it on syntax errors */
1905 	char orig_str[256];
1906 	char *name, *value;
1907 	u32 u32val;
1908 	int i, ret;
1909 
1910 	strscpy(orig_str, str, sizeof(orig_str));
1911 
1912 	/*
1913 	 * str is part of the static_command_line from init/main.c and poking
1914 	 * holes in that by writing 0 to it is allowed, as is taking long
1915 	 * lasting references to it.
1916 	 */
1917 	ts_cmdline_data.acpi_name = strsep(&str, ":");
1918 
1919 	for (i = 0; i < MAX_CMDLINE_PROPS; i++) {
1920 		name = strsep(&str, ":");
1921 		if (!name || !name[0])
1922 			break;
1923 
1924 		/* Replace '=' with 0 and make value point past '=' or NULL */
1925 		value = name;
1926 		strsep(&value, "=");
1927 		if (!value) {
1928 			ts_cmdline_props[i] = PROPERTY_ENTRY_BOOL(name);
1929 		} else if (isdigit(value[0])) {
1930 			ret = kstrtou32(value, 0, &u32val);
1931 			if (ret)
1932 				goto syntax_error;
1933 
1934 			ts_cmdline_props[i] = PROPERTY_ENTRY_U32(name, u32val);
1935 		} else {
1936 			ts_cmdline_props[i] = PROPERTY_ENTRY_STRING(name, value);
1937 		}
1938 	}
1939 
1940 	if (!i || str)
1941 		goto syntax_error;
1942 
1943 	ts_data = &ts_cmdline_data;
1944 	return 1;
1945 
1946 syntax_error:
1947 	pr_err("Invalid '%s' value for 'i2c_touchscreen_props='\n", orig_str);
1948 	return 1; /* "i2c_touchscreen_props=" is still a known parameter */
1949 }
1950 __setup("i2c_touchscreen_props=", ts_parse_props);
1951 
1952 static struct notifier_block ts_dmi_notifier = {
1953 	.notifier_call = ts_dmi_notifier_call,
1954 };
1955 
1956 static int __init ts_dmi_init(void)
1957 {
1958 	const struct dmi_system_id *dmi_id;
1959 	struct ts_dmi_data *ts_data_dmi;
1960 	int error;
1961 
1962 	dmi_id = dmi_first_match(touchscreen_dmi_table);
1963 	ts_data_dmi = dmi_id ? dmi_id->driver_data : NULL;
1964 
1965 	if (ts_data) {
1966 		/*
1967 		 * Kernel cmdline provided data takes precedence, copy over
1968 		 * DMI efi_embedded_fw info if available.
1969 		 */
1970 		if (ts_data_dmi)
1971 			ts_data->embedded_fw = ts_data_dmi->embedded_fw;
1972 	} else if (ts_data_dmi) {
1973 		ts_data = ts_data_dmi;
1974 	} else {
1975 		return 0; /* Not an error */
1976 	}
1977 
1978 	/* Some dmi table entries only provide an efi_embedded_fw_desc */
1979 	if (!ts_data->properties)
1980 		return 0;
1981 
1982 	error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1983 	if (error)
1984 		pr_err("%s: failed to register i2c bus notifier: %d\n",
1985 			__func__, error);
1986 
1987 	return error;
1988 }
1989 
1990 /*
1991  * We are registering out notifier after i2c core is initialized and i2c bus
1992  * itself is ready (which happens at postcore initcall level), but before
1993  * ACPI starts enumerating devices (at subsys initcall level).
1994  */
1995 arch_initcall(ts_dmi_init);
1996