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