platform/x86: touchscreen_dmi: Add swap-x-y quirk for Goodix touchscreen on Estar...
[linux-2.6-block.git] / drivers / platform / x86 / touchscreen_dmi.c
CommitLineData
2874c5fd 1// SPDX-License-Identifier: GPL-2.0-or-later
cef9dd85 2/*
74421786 3 * Touchscreen driver DMI based configuration code
cef9dd85
HG
4 *
5 * Copyright (c) 2017 Red Hat Inc.
6 *
cef9dd85
HG
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>
835e1b86 14#include <linux/efi_embedded_fw.h>
cef9dd85
HG
15#include <linux/i2c.h>
16#include <linux/notifier.h>
17#include <linux/property.h>
18#include <linux/string.h>
19
74421786 20struct ts_dmi_data {
835e1b86
HG
21 /* The EFI embedded-fw code expects this to be the first member! */
22 struct efi_embedded_fw_desc embedded_fw;
cef9dd85 23 const char *acpi_name;
ae311158 24 const struct property_entry *properties;
cef9dd85
HG
25};
26
6a655a0d
HG
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),
cef9dd85 32 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
6a655a0d
HG
33 PROPERTY_ENTRY_BOOL("silead,home-button"),
34 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
cef9dd85
HG
35 { }
36};
37
74421786 38static const struct ts_dmi_data chuwi_hi8_data = {
6a655a0d
HG
39 .acpi_name = "MSSL0001:00",
40 .properties = chuwi_hi8_props,
cef9dd85
HG
41};
42
bbb97d72
KR
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
6a655a0d 57static const struct property_entry chuwi_hi8_pro_props[] = {
4104916d
HG
58 PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
59 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
6a655a0d
HG
60 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
61 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
cef9dd85 62 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
6a655a0d 63 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
4104916d 64 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
6a655a0d 65 PROPERTY_ENTRY_BOOL("silead,home-button"),
cef9dd85
HG
66 { }
67};
68
74421786 69static const struct ts_dmi_data chuwi_hi8_pro_data = {
835e1b86
HG
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 },
cef9dd85 79 .acpi_name = "MSSL1680:00",
6a655a0d 80 .properties = chuwi_hi8_pro_props,
cef9dd85
HG
81};
82
b98dc493
CO
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
6baac53e
DS
102static const struct property_entry chuwi_hi10_plus_props[] = {
103 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
104 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
105 PROPERTY_ENTRY_U32("touchscreen-size-x", 1914),
106 PROPERTY_ENTRY_U32("touchscreen-size-y", 1283),
107 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
108 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
109 PROPERTY_ENTRY_BOOL("silead,home-button"),
110 { }
111};
112
113static const struct ts_dmi_data chuwi_hi10_plus_data = {
114 .acpi_name = "MSSL0017:00",
115 .properties = chuwi_hi10_plus_props,
116};
117
6a655a0d 118static const struct property_entry chuwi_vi8_props[] = {
4104916d
HG
119 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
120 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
6a655a0d
HG
121 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
122 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
123 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
124 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
828615f8
HG
125 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
126 PROPERTY_ENTRY_BOOL("silead,home-button"),
127 { }
128};
129
74421786 130static const struct ts_dmi_data chuwi_vi8_data = {
6a655a0d
HG
131 .acpi_name = "MSSL1680:00",
132 .properties = chuwi_vi8_props,
133};
134
b94b807e
HG
135static const struct ts_dmi_data chuwi_vi8_plus_data = {
136 .embedded_fw = {
137 .name = "chipone/icn8505-HAMP0002.fw",
138 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
139 .length = 35012,
140 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
141 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
142 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
143 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
144 },
145};
146
b4c86811
HG
147static const struct property_entry chuwi_vi10_props[] = {
148 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
149 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
150 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
151 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
152 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
153 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
154 PROPERTY_ENTRY_BOOL("silead,home-button"),
155 { }
156};
157
74421786 158static const struct ts_dmi_data chuwi_vi10_data = {
b4c86811
HG
159 .acpi_name = "MSSL0002:00",
160 .properties = chuwi_vi10_props,
161};
162
a0c80979
GL
163static const struct property_entry chuwi_surbook_mini_props[] = {
164 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
165 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
166 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
167 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
168 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
169 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
170 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
171 { }
172};
173
174static const struct ts_dmi_data chuwi_surbook_mini_data = {
175 .acpi_name = "MSSL1680:00",
176 .properties = chuwi_surbook_mini_props,
177};
178
c72d95e5
HG
179static const struct property_entry connect_tablet9_props[] = {
180 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
4104916d 181 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
c72d95e5 182 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
4104916d 183 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
c72d95e5
HG
184 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
185 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
186 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
187 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
188 { }
189};
190
191static const struct ts_dmi_data connect_tablet9_data = {
192 .acpi_name = "MSSL1680:00",
193 .properties = connect_tablet9_props,
194};
195
6a655a0d 196static const struct property_entry cube_iwork8_air_props[] = {
4104916d
HG
197 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
198 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
199 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
200 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
6a655a0d
HG
201 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
202 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
203 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
204 { }
205};
206
74421786 207static const struct ts_dmi_data cube_iwork8_air_data = {
835e1b86
HG
208 .embedded_fw = {
209 .name = "silead/gsl3670-cube-iwork8-air.fw",
210 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
211 .length = 38808,
212 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
213 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
214 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
215 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
216 },
828615f8 217 .acpi_name = "MSSL1680:00",
6a655a0d 218 .properties = cube_iwork8_air_props,
828615f8
HG
219};
220
cda5915d 221static const struct property_entry cube_knote_i1101_props[] = {
222 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
223 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
224 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
225 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
226 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.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 cube_knote_i1101_data = {
233 .acpi_name = "MSSL1680:00",
234 .properties = cube_knote_i1101_props,
235};
236
6b8e7d8f
HG
237static const struct property_entry dexp_ursus_7w_props[] = {
238 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
239 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
240 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
241 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
aaa40965 242 PROPERTY_ENTRY_BOOL("silead,home-button"),
6b8e7d8f
HG
243 { }
244};
245
74421786 246static const struct ts_dmi_data dexp_ursus_7w_data = {
6b8e7d8f
HG
247 .acpi_name = "MSSL1680:00",
248 .properties = dexp_ursus_7w_props,
249};
250
6a655a0d
HG
251static const struct property_entry digma_citi_e200_props[] = {
252 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
253 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
254 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 255 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
5b7bb3a7 256 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
aaa40965 257 PROPERTY_ENTRY_BOOL("silead,home-button"),
5b7bb3a7
HG
258 { }
259};
260
74421786 261static const struct ts_dmi_data digma_citi_e200_data = {
5b7bb3a7 262 .acpi_name = "MSSL1680:00",
6a655a0d 263 .properties = digma_citi_e200_props,
5b7bb3a7
HG
264};
265
46c54cf2
HG
266static const struct property_entry estar_beauty_hd_props[] = {
267 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
268 { }
269};
270
271static const struct ts_dmi_data estar_beauty_hd_data = {
272 .acpi_name = "GDIX1001:00",
273 .properties = estar_beauty_hd_props,
274};
275
d9ca30b8
HG
276static const struct property_entry gp_electronic_t701_props[] = {
277 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
278 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
5c24c05e
HG
279 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
280 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 281 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
d9ca30b8
HG
282 { }
283};
284
74421786 285static const struct ts_dmi_data gp_electronic_t701_data = {
d9ca30b8
HG
286 .acpi_name = "MSSL1680:00",
287 .properties = gp_electronic_t701_props,
288};
289
f078d053
HG
290static const struct property_entry irbis_tw90_props[] = {
291 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
292 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
293 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
294 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
295 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
296 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
297 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
298 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
299 PROPERTY_ENTRY_BOOL("silead,home-button"),
300 { }
301};
302
303static const struct ts_dmi_data irbis_tw90_data = {
304 .acpi_name = "MSSL1680:00",
305 .properties = irbis_tw90_props,
306};
307
c9aa1280
HG
308static const struct property_entry irbis_tw118_props[] = {
309 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
310 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
311 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
312 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
313 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
314 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
315 { }
316};
317
318static const struct ts_dmi_data irbis_tw118_data = {
319 .acpi_name = "MSSL1680:00",
320 .properties = irbis_tw118_props,
321};
322
6a655a0d 323static const struct property_entry itworks_tw891_props[] = {
4104916d
HG
324 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
325 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
6a655a0d 326 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
4104916d 327 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
6a655a0d 328 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
13fadfa7 329 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
6a655a0d 330 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
4104916d 331 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
13fadfa7
HG
332 { }
333};
334
74421786 335static const struct ts_dmi_data itworks_tw891_data = {
13fadfa7 336 .acpi_name = "MSSL1680:00",
6a655a0d 337 .properties = itworks_tw891_props,
13fadfa7
HG
338};
339
6a655a0d
HG
340static const struct property_entry jumper_ezpad_6_pro_props[] = {
341 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
342 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
343 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
3cd33db8
HG
344 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
345 PROPERTY_ENTRY_BOOL("silead,home-button"),
346 { }
347};
348
74421786 349static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
3cd33db8 350 .acpi_name = "MSSL1680:00",
6a655a0d 351 .properties = jumper_ezpad_6_pro_props,
3cd33db8
HG
352};
353
504a4351
BR
354static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
355 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
356 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
357 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
358 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
359 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
360 PROPERTY_ENTRY_BOOL("silead,home-button"),
361 { }
362};
363
364static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
365 .acpi_name = "MSSL1680:00",
366 .properties = jumper_ezpad_6_pro_b_props,
367};
368
ee7b0d31
HG
369static const struct property_entry jumper_ezpad_6_m4_props[] = {
370 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
371 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
372 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
373 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
374 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
375 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
376 PROPERTY_ENTRY_BOOL("silead,home-button"),
377 { }
378};
379
380static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
381 .acpi_name = "MSSL1680:00",
382 .properties = jumper_ezpad_6_m4_props,
383};
384
6a655a0d 385static const struct property_entry jumper_ezpad_mini3_props[] = {
4104916d
HG
386 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
387 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
6a655a0d 388 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
4104916d 389 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
f4d342cf 390 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
6a655a0d
HG
391 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
392 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
4edfc540
HG
393 { }
394};
395
74421786 396static const struct ts_dmi_data jumper_ezpad_mini3_data = {
4edfc540 397 .acpi_name = "MSSL1680:00",
6a655a0d 398 .properties = jumper_ezpad_mini3_props,
4edfc540
HG
399};
400
efe813d0
HG
401static const struct property_entry mpman_converter9_props[] = {
402 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
403 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
404 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
405 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
406 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
407 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
408 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
409 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
410 { }
411};
412
413static const struct ts_dmi_data mpman_converter9_data = {
414 .acpi_name = "MSSL1680:00",
415 .properties = mpman_converter9_props,
416};
417
e415da35
HG
418static const struct property_entry mpman_mpwin895cl_props[] = {
419 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
420 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
421 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
422 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
423 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
424 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
425 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
426 PROPERTY_ENTRY_BOOL("silead,home-button"),
427 { }
428};
429
430static const struct ts_dmi_data mpman_mpwin895cl_data = {
431 .acpi_name = "MSSL1680:00",
432 .properties = mpman_mpwin895cl_props,
433};
434
e79e74a5
GL
435static const struct property_entry myria_my8307_props[] = {
436 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
437 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
438 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
439 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
440 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
441 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
442 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
443 PROPERTY_ENTRY_BOOL("silead,home-button"),
444 { }
445};
446
447static const struct ts_dmi_data myria_my8307_data = {
448 .acpi_name = "MSSL1680:00",
449 .properties = myria_my8307_props,
450};
451
6a655a0d 452static const struct property_entry onda_obook_20_plus_props[] = {
485f2a58
HG
453 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
454 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
6a655a0d
HG
455 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
456 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
485f2a58 457 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
6a655a0d
HG
458 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
459 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
aaa40965 460 PROPERTY_ENTRY_BOOL("silead,home-button"),
485f2a58
HG
461 { }
462};
463
74421786 464static const struct ts_dmi_data onda_obook_20_plus_data = {
485f2a58 465 .acpi_name = "MSSL1680:00",
6a655a0d 466 .properties = onda_obook_20_plus_props,
485f2a58
HG
467};
468
01b6b7e6
HG
469static const struct property_entry onda_v80_plus_v3_props[] = {
470 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
471 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
472 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
473 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
474 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 475 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
01b6b7e6
HG
476 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
477 PROPERTY_ENTRY_BOOL("silead,home-button"),
478 { }
479};
480
481static const struct ts_dmi_data onda_v80_plus_v3_data = {
835e1b86
HG
482 .embedded_fw = {
483 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
484 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
485 .length = 37224,
486 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
487 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
488 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
489 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
490 },
01b6b7e6
HG
491 .acpi_name = "MSSL1680:00",
492 .properties = onda_v80_plus_v3_props,
493};
494
ee08f578
JBB
495static const struct property_entry onda_v820w_32g_props[] = {
496 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
497 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
498 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 499 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
ee08f578
JBB
500 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
501 PROPERTY_ENTRY_BOOL("silead,home-button"),
502 { }
503};
504
505static const struct ts_dmi_data onda_v820w_32g_data = {
506 .acpi_name = "MSSL1680:00",
507 .properties = onda_v820w_32g_props,
508};
509
295615f5
MK
510static const struct property_entry onda_v891_v5_props[] = {
511 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
512 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
513 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
514 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
515 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
516 PROPERTY_ENTRY_STRING("firmware-name",
517 "gsl3676-onda-v891-v5.fw"),
518 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
519 PROPERTY_ENTRY_BOOL("silead,home-button"),
520 { }
521};
522
523static const struct ts_dmi_data onda_v891_v5_data = {
524 .acpi_name = "MSSL1680:00",
525 .properties = onda_v891_v5_props,
526};
527
6a655a0d
HG
528static const struct property_entry onda_v891w_v1_props[] = {
529 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
530 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
531 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
532 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
df532c16 533 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
3fcf2b2a
ST
534 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
535 PROPERTY_ENTRY_BOOL("silead,home-button"),
536 { }
537};
538
74421786 539static const struct ts_dmi_data onda_v891w_v1_data = {
3fcf2b2a 540 .acpi_name = "MSSL1680:00",
6a655a0d 541 .properties = onda_v891w_v1_props,
3fcf2b2a
ST
542};
543
c0d73088 544static const struct property_entry onda_v891w_v3_props[] = {
545 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
546 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
547 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
548 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
549 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 550 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
c0d73088 551 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
552 PROPERTY_ENTRY_BOOL("silead,home-button"),
553 { }
554};
555
556static const struct ts_dmi_data onda_v891w_v3_data = {
557 .acpi_name = "MSSL1680:00",
558 .properties = onda_v891w_v3_props,
559};
560
6a655a0d
HG
561static const struct property_entry pipo_w2s_props[] = {
562 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
563 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
170e9a53 564 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
170e9a53 565 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 566 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
170e9a53
NB
567 { }
568};
569
74421786 570static const struct ts_dmi_data pipo_w2s_data = {
835e1b86
HG
571 .embedded_fw = {
572 .name = "silead/gsl1680-pipo-w2s.fw",
573 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
574 .length = 39072,
575 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
576 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
577 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
578 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
579 },
170e9a53 580 .acpi_name = "MSSL1680:00",
6a655a0d 581 .properties = pipo_w2s_props,
170e9a53
NB
582};
583
f95eafbf
TJ
584static const struct property_entry pipo_w11_props[] = {
585 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
586 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
587 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
588 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
df532c16 589 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
f95eafbf
TJ
590 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
591 PROPERTY_ENTRY_BOOL("silead,home-button"),
592 { }
593};
594
595static const struct ts_dmi_data pipo_w11_data = {
596 .acpi_name = "MSSL1680:00",
597 .properties = pipo_w11_props,
598};
599
6a655a0d
HG
600static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
601 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
602 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
603 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
604 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
d2d541e8 605 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 606 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
6a655a0d 607 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
d2d541e8 608 PROPERTY_ENTRY_BOOL("silead,home-button"),
d2d541e8
MS
609 { }
610};
611
74421786 612static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
6a655a0d
HG
613 .acpi_name = "MSSL1680:00",
614 .properties = pov_mobii_wintab_p800w_v20_props,
d2d541e8
MS
615};
616
6a655a0d 617static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
4104916d
HG
618 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
619 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
620 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
621 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
f1905b98 622 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 623 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
4104916d 624 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
f1905b98
HG
625 PROPERTY_ENTRY_BOOL("silead,home-button"),
626 { }
627};
628
74421786 629static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
6a655a0d
HG
630 .acpi_name = "MSSL1680:00",
631 .properties = pov_mobii_wintab_p800w_v21_props,
f1905b98
HG
632};
633
8335ebc1
HG
634static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
635 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
636 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
637 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
638 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
639 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 640 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
8335ebc1
HG
641 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
642 PROPERTY_ENTRY_BOOL("silead,home-button"),
643 { }
644};
645
646static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
647 .acpi_name = "MSSL1680:00",
648 .properties = pov_mobii_wintab_p1006w_v10_props,
649};
650
0f511edc
HG
651static const struct property_entry predia_basic_props[] = {
652 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
653 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
654 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
655 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
656 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
657 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
658 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
659 PROPERTY_ENTRY_BOOL("silead,home-button"),
660 { }
661};
662
663static const struct ts_dmi_data predia_basic_data = {
664 .acpi_name = "MSSL1680:00",
665 .properties = predia_basic_props,
666};
667
3caa6f39
DGA
668static const struct property_entry schneider_sct101ctm_props[] = {
669 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
670 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
671 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
672 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
673 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
df532c16 674 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
3caa6f39
DGA
675 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
676 PROPERTY_ENTRY_BOOL("silead,home-button"),
677 { }
678};
679
680static const struct ts_dmi_data schneider_sct101ctm_data = {
681 .acpi_name = "MSSL1680:00",
682 .properties = schneider_sct101ctm_props,
683};
684
97e130f6
WC
685static const struct property_entry techbite_arc_11_6_props[] = {
686 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
687 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
688 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
689 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
690 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
691 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
692 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
693 { }
694};
695
696static const struct ts_dmi_data techbite_arc_11_6_data = {
697 .acpi_name = "MSSL1680:00",
698 .properties = techbite_arc_11_6_props,
699};
700
6a655a0d
HG
701static const struct property_entry teclast_x3_plus_props[] = {
702 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
703 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
704 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
2aeb2c3a
HG
705 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
706 PROPERTY_ENTRY_BOOL("silead,home-button"),
707 { }
708};
709
74421786 710static const struct ts_dmi_data teclast_x3_plus_data = {
2aeb2c3a 711 .acpi_name = "MSSL1680:00",
6a655a0d 712 .properties = teclast_x3_plus_props,
2aeb2c3a
HG
713};
714
a346aa20
PC
715static const struct property_entry teclast_x98plus2_props[] = {
716 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
717 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
718 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
719 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 720 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
a346aa20
PC
721 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
722 { }
723};
724
74421786 725static const struct ts_dmi_data teclast_x98plus2_data = {
a346aa20
PC
726 .acpi_name = "MSSL1680:00",
727 .properties = teclast_x98plus2_props,
728};
729
cacad0b2
HG
730static const struct property_entry trekstor_primebook_c11_props[] = {
731 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
732 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
733 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
df532c16 734 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
cacad0b2
HG
735 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
736 PROPERTY_ENTRY_BOOL("silead,home-button"),
737 { }
738};
739
740static const struct ts_dmi_data trekstor_primebook_c11_data = {
741 .acpi_name = "MSSL1680:00",
742 .properties = trekstor_primebook_c11_props,
743};
744
6a655a0d
HG
745static const struct property_entry trekstor_primebook_c13_props[] = {
746 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
747 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
df532c16 748 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
c58a4f22
AP
749 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
750 PROPERTY_ENTRY_BOOL("silead,home-button"),
751 { }
752};
753
74421786 754static const struct ts_dmi_data trekstor_primebook_c13_data = {
c58a4f22 755 .acpi_name = "MSSL1680:00",
6a655a0d 756 .properties = trekstor_primebook_c13_props,
c58a4f22
AP
757};
758
30394a8e
MC
759static const struct property_entry trekstor_primetab_t13b_props[] = {
760 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
761 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
df532c16 762 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
30394a8e
MC
763 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
764 PROPERTY_ENTRY_BOOL("silead,home-button"),
765 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
766 { }
767};
768
769static const struct ts_dmi_data trekstor_primetab_t13b_data = {
770 .acpi_name = "MSSL1680:00",
771 .properties = trekstor_primetab_t13b_props,
772};
773
6a655a0d 774static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
477d07ef
HG
775 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
776 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
777 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
6a655a0d
HG
778 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
779 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
df532c16 780 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
6a655a0d 781 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
477d07ef 782 PROPERTY_ENTRY_BOOL("silead,home-button"),
6a655a0d
HG
783 { }
784};
785
74421786 786static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
6a655a0d
HG
787 .acpi_name = "MSSL1680:00",
788 .properties = trekstor_surftab_twin_10_1_props,
789};
790
791static const struct property_entry trekstor_surftab_wintron70_props[] = {
4104916d
HG
792 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
793 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
6a655a0d
HG
794 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
795 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
df532c16 796 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
adf762dc
HG
797 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
798 PROPERTY_ENTRY_BOOL("silead,home-button"),
799 { }
800};
801
74421786 802static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
adf762dc 803 .acpi_name = "MSSL1680:00",
6a655a0d 804 .properties = trekstor_surftab_wintron70_props,
adf762dc
HG
805};
806
06b2ee07
AD
807static const struct property_entry vinga_twizzle_j116_props[] = {
808 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
809 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
810 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
811 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
812 PROPERTY_ENTRY_BOOL("silead,home-button"),
813 { }
814};
815
816static const struct ts_dmi_data vinga_twizzle_j116_data = {
817 .acpi_name = "MSSL1680:00",
818 .properties = vinga_twizzle_j116_props,
819};
820
6a655a0d 821/* NOTE: Please keep this table sorted alphabetically */
835e1b86 822const struct dmi_system_id touchscreen_dmi_table[] = {
6a655a0d
HG
823 {
824 /* Chuwi Hi8 */
825 .driver_data = (void *)&chuwi_hi8_data,
826 .matches = {
827 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
828 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
829 },
830 },
831 {
832 /* Chuwi Hi8 (H1D_S806_206) */
833 .driver_data = (void *)&chuwi_hi8_data,
834 .matches = {
835 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
836 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
837 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
838 },
839 },
bbb97d72
KR
840 {
841 /* Chuwi Hi8 Air (CWI543) */
842 .driver_data = (void *)&chuwi_hi8_air_data,
843 .matches = {
844 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
845 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
846 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
847 },
848 },
6a655a0d
HG
849 {
850 /* Chuwi Hi8 Pro (CWI513) */
851 .driver_data = (void *)&chuwi_hi8_pro_data,
852 .matches = {
853 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
854 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
855 },
856 },
b98dc493
CO
857 {
858 /* Chuwi Hi10 Air */
859 .driver_data = (void *)&chuwi_hi10_air_data,
860 .matches = {
6d789e60
CO
861 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
862 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
b98dc493
CO
863 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
864 },
865 },
6baac53e
DS
866 {
867 /* Chuwi Hi10 Plus (CWI527) */
868 .driver_data = (void *)&chuwi_hi10_plus_data,
869 .matches = {
870 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
871 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
872 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
873 },
874 },
6a655a0d
HG
875 {
876 /* Chuwi Vi8 (CWI506) */
877 .driver_data = (void *)&chuwi_vi8_data,
878 .matches = {
879 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
880 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
881 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
882 },
883 },
b94b807e
HG
884 {
885 /* Chuwi Vi8 Plus (CWI519) */
886 .driver_data = (void *)&chuwi_vi8_plus_data,
887 .matches = {
888 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
889 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
890 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
891 },
892 },
b4c86811
HG
893 {
894 /* Chuwi Vi10 (CWI505) */
895 .driver_data = (void *)&chuwi_vi10_data,
896 .matches = {
897 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
898 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
899 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
900 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
901 },
902 },
a0c80979
GL
903 {
904 /* Chuwi Surbook Mini (CWI540) */
905 .driver_data = (void *)&chuwi_surbook_mini_data,
906 .matches = {
907 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
908 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
909 },
910 },
c72d95e5
HG
911 {
912 /* Connect Tablet 9 */
913 .driver_data = (void *)&connect_tablet9_data,
914 .matches = {
915 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
916 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
917 },
918 },
cef9dd85
HG
919 {
920 /* CUBE iwork8 Air */
921 .driver_data = (void *)&cube_iwork8_air_data,
922 .matches = {
923 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
924 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
925 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
926 },
927 },
cda5915d 928 {
929 /* Cube KNote i1101 */
930 .driver_data = (void *)&cube_knote_i1101_data,
931 .matches = {
932 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
933 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
934 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
935 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
936 },
937 },
cef9dd85 938 {
6a655a0d
HG
939 /* DEXP Ursus 7W */
940 .driver_data = (void *)&dexp_ursus_7w_data,
cef9dd85
HG
941 .matches = {
942 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
6a655a0d
HG
943 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
944 },
945 },
946 {
947 /* Digma Citi E200 */
948 .driver_data = (void *)&digma_citi_e200_data,
949 .matches = {
950 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
951 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
952 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
953 },
954 },
46c54cf2
HG
955 {
956 /* Estar Beauty HD (MID 7316R) */
957 .driver_data = (void *)&estar_beauty_hd_data,
958 .matches = {
959 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
960 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
961 },
962 },
6a655a0d
HG
963 {
964 /* GP-electronic T701 */
965 .driver_data = (void *)&gp_electronic_t701_data,
966 .matches = {
967 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
968 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
969 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
970 },
971 },
972 {
973 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
974 .driver_data = (void *)&trekstor_surftab_wintron70_data,
975 .matches = {
976 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
977 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
978 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
979 },
980 },
f078d053
HG
981 {
982 /* Irbis TW90 */
983 .driver_data = (void *)&irbis_tw90_data,
984 .matches = {
985 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
986 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
987 },
988 },
c9aa1280
HG
989 {
990 /* Irbis TW118 */
991 .driver_data = (void *)&irbis_tw118_data,
992 .matches = {
993 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
994 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
995 },
996 },
6a655a0d
HG
997 {
998 /* I.T.Works TW891 */
999 .driver_data = (void *)&itworks_tw891_data,
1000 .matches = {
1001 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1002 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
cef9dd85
HG
1003 },
1004 },
828615f8
HG
1005 {
1006 /* Jumper EZpad 6 Pro */
1007 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1008 .matches = {
1009 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1010 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1011 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1012 /* Above matches are too generic, add bios-date match */
1013 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1014 },
1015 },
504a4351
BR
1016 {
1017 /* Jumper EZpad 6 Pro B */
1018 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1019 .matches = {
1020 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1021 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1022 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1023 /* Above matches are too generic, add bios-date match */
1024 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1025 },
1026 },
ee7b0d31
HG
1027 {
1028 /* Jumper EZpad 6 m4 */
1029 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1030 .matches = {
1031 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1032 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1033 /* Jumper8.S106x.A00C.1066 with the version dropped */
1034 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1035 },
1036 },
6b8e7d8f 1037 {
6a655a0d
HG
1038 /* Jumper EZpad mini3 */
1039 .driver_data = (void *)&jumper_ezpad_mini3_data,
6b8e7d8f
HG
1040 .matches = {
1041 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
6a655a0d
HG
1042 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1043 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
6b8e7d8f
HG
1044 },
1045 },
f25b6302
HG
1046 {
1047 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1048 .driver_data = (void *)&trekstor_primebook_c11_data,
1049 .matches = {
1050 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1051 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1052 },
1053 },
efe813d0
HG
1054 {
1055 /* MP Man Converter 9 */
1056 .driver_data = (void *)&mpman_converter9_data,
1057 .matches = {
1058 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1059 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1060 },
1061 },
e415da35
HG
1062 {
1063 /* MP Man MPWIN895CL */
1064 .driver_data = (void *)&mpman_mpwin895cl_data,
1065 .matches = {
1066 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1067 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1068 },
1069 },
e79e74a5
GL
1070 {
1071 /* Myria MY8307 */
1072 .driver_data = (void *)&myria_my8307_data,
1073 .matches = {
1074 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1075 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1076 },
1077 },
f4c12d4d 1078 {
6a655a0d
HG
1079 /* Onda oBook 20 Plus */
1080 .driver_data = (void *)&onda_obook_20_plus_data,
f4c12d4d 1081 .matches = {
6a655a0d
HG
1082 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1083 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
f4c12d4d
1084 },
1085 },
01b6b7e6
HG
1086 {
1087 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1088 .driver_data = (void *)&onda_v80_plus_v3_data,
1089 .matches = {
1090 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1091 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1092 },
1093 },
ee08f578
JBB
1094 {
1095 /* ONDA V820w DualOS */
1096 .driver_data = (void *)&onda_v820w_32g_data,
1097 .matches = {
1098 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1099 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1100 },
1101 },
295615f5
MK
1102 {
1103 /* ONDA V891 v5 */
1104 .driver_data = (void *)&onda_v891_v5_data,
1105 .matches = {
1106 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1107 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1108 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1109 },
1110 },
5b7bb3a7 1111 {
6a655a0d
HG
1112 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1113 .driver_data = (void *)&onda_v891w_v1_data,
5b7bb3a7 1114 .matches = {
6a655a0d
HG
1115 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1116 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1117 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
5b7bb3a7 1118 /* Exact match, different versions need different fw */
6a655a0d 1119 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
5b7bb3a7
HG
1120 },
1121 },
c0d73088 1122 {
1123 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1124 .driver_data = (void *)&onda_v891w_v3_data,
1125 .matches = {
1126 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1127 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1128 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1129 },
1130 },
4245c155 1131 {
6a655a0d
HG
1132 /* Pipo W2S */
1133 .driver_data = (void *)&pipo_w2s_data,
4245c155 1134 .matches = {
6a655a0d
HG
1135 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1136 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
4245c155
HG
1137 },
1138 },
f95eafbf
TJ
1139 {
1140 /* Pipo W11 */
1141 .driver_data = (void *)&pipo_w11_data,
1142 .matches = {
1143 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1144 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1145 /* Above matches are too generic, add bios-ver match */
df532c16 1146 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
f95eafbf
TJ
1147 },
1148 },
c3a73ed8
HG
1149 {
1150 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
d6b0d7d8 1151 .driver_data = (void *)&trekstor_surftab_wintron70_data,
c3a73ed8
HG
1152 .matches = {
1153 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1154 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1155 /* Exact match, different versions need different fw */
1156 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1157 },
1158 },
f4d342cf 1159 {
3cd33db8
HG
1160 /* Point of View mobii wintab p800w (v2.0) */
1161 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1162 .matches = {
1163 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1164 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1165 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1166 /* Above matches are too generic, add bios-date match */
1167 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1168 },
1169 },
0f511edc
HG
1170 {
1171 /* Predia Basic tablet) */
1172 .driver_data = (void *)&predia_basic_data,
1173 .matches = {
1174 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1175 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1176 /* Above matches are too generic, add bios-version match */
1177 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1178 },
1179 },
3cd33db8
HG
1180 {
1181 /* Point of View mobii wintab p800w (v2.1) */
1182 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
f4d342cf
HG
1183 .matches = {
1184 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1185 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1186 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1187 /* Above matches are too generic, add bios-date match */
1188 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1189 },
1190 },
8335ebc1
HG
1191 {
1192 /* Point of View mobii wintab p1006w (v1.0) */
1193 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1194 .matches = {
1195 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1196 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1197 /* Note 105b is Foxcon's USB/PCI vendor id */
1198 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1199 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1200 },
1201 },
3caa6f39
DGA
1202 {
1203 /* Schneider SCT101CTM */
1204 .driver_data = (void *)&schneider_sct101ctm_data,
1205 .matches = {
1206 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1207 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1208 },
1209 },
97e130f6
WC
1210 {
1211 /* Techbite Arc 11.6 */
1212 .driver_data = (void *)&techbite_arc_11_6_data,
1213 .matches = {
1214 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1215 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1216 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1217 },
1218 },
4edfc540 1219 {
6a655a0d
HG
1220 /* Teclast X3 Plus */
1221 .driver_data = (void *)&teclast_x3_plus_data,
26ed9d1c 1222 .matches = {
6a655a0d
HG
1223 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1224 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1225 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
26ed9d1c 1226 },
1227 },
f1905b98 1228 {
6a655a0d
HG
1229 /* Teclast X98 Plus II */
1230 .driver_data = (void *)&teclast_x98plus2_data,
f1905b98 1231 .matches = {
6a655a0d
HG
1232 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1233 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
f1905b98
HG
1234 },
1235 },
cacad0b2
HG
1236 {
1237 /* Trekstor Primebook C11 */
1238 .driver_data = (void *)&trekstor_primebook_c11_data,
1239 .matches = {
1240 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1241 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1242 },
1243 },
37d960a4
HG
1244 {
1245 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1246 .driver_data = (void *)&trekstor_primebook_c11_data,
1247 .matches = {
1248 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1249 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1250 },
1251 },
2aeb2c3a
HG
1252 {
1253 /* Trekstor Primebook C13 */
1254 .driver_data = (void *)&trekstor_primebook_c13_data,
1255 .matches = {
1256 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1257 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1258 },
1259 },
30394a8e
MC
1260 {
1261 /* Trekstor Primetab T13B */
1262 .driver_data = (void *)&trekstor_primetab_t13b_data,
1263 .matches = {
1264 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1265 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1266 },
1267 },
a346aa20 1268 {
6a655a0d
HG
1269 /* TrekStor SurfTab twin 10.1 ST10432-8 */
1270 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
a346aa20 1271 .matches = {
6a655a0d
HG
1272 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1273 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
a346aa20
PC
1274 },
1275 },
c58a4f22 1276 {
6a655a0d
HG
1277 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
1278 .driver_data = (void *)&trekstor_surftab_wintron70_data,
c58a4f22 1279 .matches = {
6a655a0d
HG
1280 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1281 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1282 /* Exact match, different versions need different fw */
1283 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
c58a4f22
AP
1284 },
1285 },
5488bfdf 1286 {
6a655a0d 1287 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
d6b0d7d8 1288 .driver_data = (void *)&trekstor_surftab_wintron70_data,
5488bfdf 1289 .matches = {
6a655a0d 1290 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
df532c16 1291 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
6a655a0d
HG
1292 /* Exact match, different versions need different fw */
1293 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
5488bfdf
HG
1294 },
1295 },
6b29030c
1296 {
1297 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1298 .driver_data = (void *)&trekstor_primebook_c11_data,
1299 .matches = {
1300 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1301 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1302 },
1303 },
06b2ee07
AD
1304 {
1305 /* Vinga Twizzle J116 */
1306 .driver_data = (void *)&vinga_twizzle_j116_data,
1307 .matches = {
1308 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1309 },
1310 },
24e2bb31
HG
1311 {
1312 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1313 .driver_data = (void *)&chuwi_vi8_data,
1314 .matches = {
1315 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1316 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1317 },
1318 },
65fce35f 1319 { }
cef9dd85
HG
1320};
1321
74421786 1322static const struct ts_dmi_data *ts_data;
f22265b6 1323
74421786 1324static void ts_dmi_add_props(struct i2c_client *client)
cef9dd85 1325{
e1053963 1326 struct device *dev = &client->dev;
cef9dd85
HG
1327 int error;
1328
cef9dd85 1329 if (has_acpi_companion(dev) &&
74421786
HG
1330 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
1331 error = device_add_properties(dev, ts_data->properties);
cef9dd85
HG
1332 if (error)
1333 dev_err(dev, "failed to add properties: %d\n", error);
1334 }
1335}
1336
74421786 1337static int ts_dmi_notifier_call(struct notifier_block *nb,
df532c16 1338 unsigned long action, void *data)
cef9dd85
HG
1339{
1340 struct device *dev = data;
e1053963 1341 struct i2c_client *client;
cef9dd85
HG
1342
1343 switch (action) {
1344 case BUS_NOTIFY_ADD_DEVICE:
e1053963
DT
1345 client = i2c_verify_client(dev);
1346 if (client)
74421786 1347 ts_dmi_add_props(client);
cef9dd85
HG
1348 break;
1349
1350 default:
1351 break;
1352 }
1353
1354 return 0;
1355}
1356
74421786
HG
1357static struct notifier_block ts_dmi_notifier = {
1358 .notifier_call = ts_dmi_notifier_call,
cef9dd85
HG
1359};
1360
74421786 1361static int __init ts_dmi_init(void)
cef9dd85 1362{
f22265b6 1363 const struct dmi_system_id *dmi_id;
cef9dd85
HG
1364 int error;
1365
74421786 1366 dmi_id = dmi_first_match(touchscreen_dmi_table);
f22265b6
DT
1367 if (!dmi_id)
1368 return 0; /* Not an error */
1369
74421786 1370 ts_data = dmi_id->driver_data;
b94b807e
HG
1371 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1372 if (!ts_data->properties)
1373 return 0;
f22265b6 1374
74421786 1375 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
cef9dd85
HG
1376 if (error)
1377 pr_err("%s: failed to register i2c bus notifier: %d\n",
1378 __func__, error);
1379
1380 return error;
1381}
1382
1383/*
1384 * We are registering out notifier after i2c core is initialized and i2c bus
1385 * itself is ready (which happens at postcore initcall level), but before
1386 * ACPI starts enumerating devices (at subsys initcall level).
1387 */
74421786 1388arch_initcall(ts_dmi_init);