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