blob: 033f797861d8a1b1649ad7e10140875952b74ef6 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Hans de Goedecef9dd82017-01-23 18:35:30 +01002/*
Hans de Goede74421782018-06-08 23:45:58 +02003 * Touchscreen driver DMI based configuration code
Hans de Goedecef9dd82017-01-23 18:35:30 +01004 *
5 * Copyright (c) 2017 Red Hat Inc.
6 *
Hans de Goedecef9dd82017-01-23 18:35:30 +01007 * 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>
Hans de Goede835e1b82020-01-15 17:35:53 +010014#include <linux/efi_embedded_fw.h>
Hans de Goedecef9dd82017-01-23 18:35:30 +010015#include <linux/i2c.h>
16#include <linux/notifier.h>
17#include <linux/property.h>
18#include <linux/string.h>
19
Hans de Goede74421782018-06-08 23:45:58 +020020struct ts_dmi_data {
Hans de Goede835e1b82020-01-15 17:35:53 +010021 /* The EFI embedded-fw code expects this to be the first member! */
22 struct efi_embedded_fw_desc embedded_fw;
Hans de Goedecef9dd82017-01-23 18:35:30 +010023 const char *acpi_name;
Hans de Goedeae311152017-03-22 16:55:53 +010024 const struct property_entry *properties;
Hans de Goedecef9dd82017-01-23 18:35:30 +010025};
26
Hans de Goede6a655a02018-06-08 23:45:56 +020027/* 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
Hans de Goede74421782018-06-08 23:45:58 +020038static const struct ts_dmi_data chuwi_hi8_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +020039 .acpi_name = "MSSL0001:00",
40 .properties = chuwi_hi8_props,
41};
42
Kai Renzigbbb97d72019-02-03 19:34:23 +010043static 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
Hans de Goede6a655a02018-06-08 23:45:56 +020057static const struct property_entry chuwi_hi8_pro_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +020058 PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
59 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
Hans de Goede6a655a02018-06-08 23:45:56 +020060 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"),
Hans de Goede41049162018-10-20 12:21:00 +020064 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede6a655a02018-06-08 23:45:56 +020065 PROPERTY_ENTRY_BOOL("silead,home-button"),
66 { }
67};
68
Hans de Goede74421782018-06-08 23:45:58 +020069static const struct ts_dmi_data chuwi_hi8_pro_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +010070 .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 },
Hans de Goede6a655a02018-06-08 23:45:56 +020079 .acpi_name = "MSSL1680:00",
80 .properties = chuwi_hi8_pro_props,
81};
82
Christian Oderb98dc492019-03-03 14:47:27 +010083static 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
Daniel Smith6baac532019-05-24 02:09:13 +0700102static const struct property_entry chuwi_hi10_plus_props[] = {
Hans de Goede196159d2021-09-05 15:02:10 +0200103 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),
Daniel Smith6baac532019-05-24 02:09:13 +0700107 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 = {
Hans de Goede196159d2021-09-05 15:02:10 +0200114 .embedded_fw = {
115 .name = "silead/gsl1680-chuwi-hi10plus.fw",
116 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
117 .length = 34056,
118 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
119 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
120 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
121 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
122 },
Daniel Smith6baac532019-05-24 02:09:13 +0700123 .acpi_name = "MSSL0017:00",
124 .properties = chuwi_hi10_plus_props,
125};
126
Hans de Goedee68671e2021-05-20 11:32:28 +0200127static const struct property_entry chuwi_hi10_pro_props[] = {
128 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
129 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
130 PROPERTY_ENTRY_U32("touchscreen-size-x", 1912),
131 PROPERTY_ENTRY_U32("touchscreen-size-y", 1272),
132 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
133 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
134 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
135 PROPERTY_ENTRY_BOOL("silead,home-button"),
136 { }
137};
138
139static const struct ts_dmi_data chuwi_hi10_pro_data = {
140 .embedded_fw = {
141 .name = "silead/gsl1680-chuwi-hi10-pro.fw",
142 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
143 .length = 42504,
144 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
145 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
146 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
147 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
148 },
149 .acpi_name = "MSSL1680:00",
150 .properties = chuwi_hi10_pro_props,
151};
152
Hans de Goede3bf16692021-09-05 15:02:09 +0200153static const struct property_entry chuwi_hibook_props[] = {
154 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
155 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
156 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
157 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
158 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
159 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
160 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
161 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
162 PROPERTY_ENTRY_BOOL("silead,home-button"),
163 { }
164};
165
166static const struct ts_dmi_data chuwi_hibook_data = {
167 .embedded_fw = {
168 .name = "silead/gsl1680-chuwi-hibook.fw",
169 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
170 .length = 40392,
171 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
172 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
173 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
174 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
175 },
176 .acpi_name = "MSSL0017:00",
177 .properties = chuwi_hibook_props,
178};
179
Hans de Goede6a655a02018-06-08 23:45:56 +0200180static const struct property_entry chuwi_vi8_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200181 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
182 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
Hans de Goede6a655a02018-06-08 23:45:56 +0200183 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
184 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
185 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
186 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
187 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
188 PROPERTY_ENTRY_BOOL("silead,home-button"),
189 { }
190};
191
Hans de Goede74421782018-06-08 23:45:58 +0200192static const struct ts_dmi_data chuwi_vi8_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200193 .acpi_name = "MSSL1680:00",
194 .properties = chuwi_vi8_props,
195};
196
Hans de Goedeb94b8072020-01-15 17:35:54 +0100197static const struct ts_dmi_data chuwi_vi8_plus_data = {
198 .embedded_fw = {
199 .name = "chipone/icn8505-HAMP0002.fw",
200 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
201 .length = 35012,
202 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
203 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
204 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
205 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
206 },
207};
208
Hans de Goedeb4c86812018-06-08 23:45:57 +0200209static const struct property_entry chuwi_vi10_props[] = {
210 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
211 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
212 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
213 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
214 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
215 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
216 PROPERTY_ENTRY_BOOL("silead,home-button"),
217 { }
218};
219
Hans de Goede74421782018-06-08 23:45:58 +0200220static const struct ts_dmi_data chuwi_vi10_data = {
Hans de Goedeb4c86812018-06-08 23:45:57 +0200221 .acpi_name = "MSSL0002:00",
222 .properties = chuwi_vi10_props,
223};
224
Giang Lea0c80972019-08-03 21:12:22 +0700225static const struct property_entry chuwi_surbook_mini_props[] = {
226 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
227 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
228 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
229 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
230 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
231 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
232 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
233 { }
234};
235
236static const struct ts_dmi_data chuwi_surbook_mini_data = {
237 .acpi_name = "MSSL1680:00",
238 .properties = chuwi_surbook_mini_props,
239};
240
Hans de Goedec72d95e2018-07-01 11:32:56 +0200241static const struct property_entry connect_tablet9_props[] = {
242 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
Hans de Goede41049162018-10-20 12:21:00 +0200243 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200244 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
Hans de Goede41049162018-10-20 12:21:00 +0200245 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200246 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
247 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
248 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
249 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
250 { }
251};
252
253static const struct ts_dmi_data connect_tablet9_data = {
254 .acpi_name = "MSSL1680:00",
255 .properties = connect_tablet9_props,
256};
257
Hans de Goedeae311152017-03-22 16:55:53 +0100258static const struct property_entry cube_iwork8_air_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200259 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
260 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
261 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
262 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goedecef9dd82017-01-23 18:35:30 +0100263 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
264 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
265 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
266 { }
267};
268
Hans de Goede74421782018-06-08 23:45:58 +0200269static const struct ts_dmi_data cube_iwork8_air_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100270 .embedded_fw = {
271 .name = "silead/gsl3670-cube-iwork8-air.fw",
272 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
273 .length = 38808,
274 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
275 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
276 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
277 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
278 },
Hans de Goedecef9dd82017-01-23 18:35:30 +0100279 .acpi_name = "MSSL1680:00",
280 .properties = cube_iwork8_air_props,
281};
282
youling257cda59152018-07-31 17:32:56 +0800283static const struct property_entry cube_knote_i1101_props[] = {
284 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
285 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
286 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
287 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
288 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
289 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
290 PROPERTY_ENTRY_BOOL("silead,home-button"),
291 { }
292};
293
294static const struct ts_dmi_data cube_knote_i1101_data = {
295 .acpi_name = "MSSL1680:00",
296 .properties = cube_knote_i1101_props,
297};
298
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100299static const struct property_entry dexp_ursus_7w_props[] = {
300 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
301 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
302 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
303 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200304 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100305 { }
306};
307
Hans de Goede74421782018-06-08 23:45:58 +0200308static const struct ts_dmi_data dexp_ursus_7w_data = {
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100309 .acpi_name = "MSSL1680:00",
310 .properties = dexp_ursus_7w_props,
311};
312
Hans de Goede6a655a02018-06-08 23:45:56 +0200313static const struct property_entry digma_citi_e200_props[] = {
314 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
315 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
316 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200317 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200318 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200319 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200320 { }
321};
322
Hans de Goede74421782018-06-08 23:45:58 +0200323static const struct ts_dmi_data digma_citi_e200_data = {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200324 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200325 .properties = digma_citi_e200_props,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200326};
327
Hans de Goede46c54cf2020-12-24 14:51:58 +0100328static const struct property_entry estar_beauty_hd_props[] = {
329 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
330 { }
331};
332
333static const struct ts_dmi_data estar_beauty_hd_data = {
334 .acpi_name = "GDIX1001:00",
335 .properties = estar_beauty_hd_props,
336};
337
Hans de Goede5a6f0db2021-05-04 20:57:42 +0200338/* Generic props + data for upside-down mounted GDIX1001 touchscreens */
339static const struct property_entry gdix1001_upside_down_props[] = {
340 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
341 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
342 { }
343};
344
345static const struct ts_dmi_data gdix1001_00_upside_down_data = {
346 .acpi_name = "GDIX1001:00",
347 .properties = gdix1001_upside_down_props,
348};
349
350static const struct ts_dmi_data gdix1001_01_upside_down_data = {
351 .acpi_name = "GDIX1001:01",
352 .properties = gdix1001_upside_down_props,
353};
354
Hans de Goedefcd8cf0e2021-05-04 20:57:45 +0200355static const struct property_entry glavey_tm800a550l_props[] = {
356 PROPERTY_ENTRY_STRING("firmware-name", "gt912-glavey-tm800a550l.fw"),
357 PROPERTY_ENTRY_STRING("goodix,config-name", "gt912-glavey-tm800a550l.cfg"),
358 PROPERTY_ENTRY_U32("goodix,main-clk", 54),
359 { }
360};
361
362static const struct ts_dmi_data glavey_tm800a550l_data = {
363 .acpi_name = "GDIX1001:00",
364 .properties = glavey_tm800a550l_props,
365};
366
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200367static const struct property_entry gp_electronic_t701_props[] = {
368 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
369 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
Hans de Goede5c24c052017-10-19 09:44:14 +0200370 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
371 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200372 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200373 { }
374};
375
Hans de Goede74421782018-06-08 23:45:58 +0200376static const struct ts_dmi_data gp_electronic_t701_data = {
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200377 .acpi_name = "MSSL1680:00",
378 .properties = gp_electronic_t701_props,
379};
380
Hans de Goedef078d052019-08-04 15:40:23 +0200381static const struct property_entry irbis_tw90_props[] = {
382 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
383 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
384 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
385 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
386 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
387 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
388 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
389 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
390 PROPERTY_ENTRY_BOOL("silead,home-button"),
391 { }
392};
393
394static const struct ts_dmi_data irbis_tw90_data = {
395 .acpi_name = "MSSL1680:00",
396 .properties = irbis_tw90_props,
397};
398
Hans de Goedec9aa1282020-11-24 12:04:54 +0100399static const struct property_entry irbis_tw118_props[] = {
400 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
401 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
402 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
403 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
404 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
405 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
406 { }
407};
408
409static const struct ts_dmi_data irbis_tw118_data = {
410 .acpi_name = "MSSL1680:00",
411 .properties = irbis_tw118_props,
412};
413
Hans de Goede6a655a02018-06-08 23:45:56 +0200414static const struct property_entry itworks_tw891_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200415 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
416 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
Hans de Goede6a655a02018-06-08 23:45:56 +0200417 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
Hans de Goede41049162018-10-20 12:21:00 +0200418 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goede6a655a02018-06-08 23:45:56 +0200419 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
420 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
421 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200422 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede6a655a02018-06-08 23:45:56 +0200423 { }
424};
425
Hans de Goede74421782018-06-08 23:45:58 +0200426static const struct ts_dmi_data itworks_tw891_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200427 .acpi_name = "MSSL1680:00",
428 .properties = itworks_tw891_props,
429};
430
431static const struct property_entry jumper_ezpad_6_pro_props[] = {
432 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
433 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
434 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
435 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
436 PROPERTY_ENTRY_BOOL("silead,home-button"),
437 { }
438};
439
Hans de Goede74421782018-06-08 23:45:58 +0200440static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200441 .acpi_name = "MSSL1680:00",
442 .properties = jumper_ezpad_6_pro_props,
443};
444
Benjamin Renz504a4352019-04-29 17:46:57 +0200445static const struct property_entry jumper_ezpad_6_pro_b_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-b.fw"),
449 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
450 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
451 PROPERTY_ENTRY_BOOL("silead,home-button"),
452 { }
453};
454
455static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
456 .acpi_name = "MSSL1680:00",
457 .properties = jumper_ezpad_6_pro_b_props,
458};
459
Hans de Goedeee7b0d32019-11-12 15:17:11 +0100460static const struct property_entry jumper_ezpad_6_m4_props[] = {
461 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
462 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
463 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
464 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
465 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
466 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
467 PROPERTY_ENTRY_BOOL("silead,home-button"),
468 { }
469};
470
471static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
472 .acpi_name = "MSSL1680:00",
473 .properties = jumper_ezpad_6_m4_props,
474};
475
Hans de Goedeae5919d2021-01-28 12:36:53 +0100476static const struct property_entry jumper_ezpad_7_props[] = {
477 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
478 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
479 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
480 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
481 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
482 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
483 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
484 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
485 { }
486};
487
488static const struct ts_dmi_data jumper_ezpad_7_data = {
489 .acpi_name = "MSSL1680:00",
490 .properties = jumper_ezpad_7_props,
491};
492
Hans de Goede6a655a02018-06-08 23:45:56 +0200493static const struct property_entry jumper_ezpad_mini3_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200494 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
495 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
Hans de Goede6a655a02018-06-08 23:45:56 +0200496 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
Hans de Goede41049162018-10-20 12:21:00 +0200497 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
Hans de Goede6a655a02018-06-08 23:45:56 +0200498 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
499 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
500 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
501 { }
502};
503
Hans de Goede74421782018-06-08 23:45:58 +0200504static const struct ts_dmi_data jumper_ezpad_mini3_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200505 .acpi_name = "MSSL1680:00",
506 .properties = jumper_ezpad_mini3_props,
507};
508
Hans de Goedeefe813d2020-09-01 10:07:52 +0200509static const struct property_entry mpman_converter9_props[] = {
510 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
511 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
512 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
513 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
514 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
515 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
516 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
517 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
518 { }
519};
520
521static const struct ts_dmi_data mpman_converter9_data = {
522 .acpi_name = "MSSL1680:00",
523 .properties = mpman_converter9_props,
524};
525
Hans de Goedee415da32020-04-01 10:03:48 +0200526static const struct property_entry mpman_mpwin895cl_props[] = {
527 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
528 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
529 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
530 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
531 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
532 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
533 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
534 PROPERTY_ENTRY_BOOL("silead,home-button"),
535 { }
536};
537
538static const struct ts_dmi_data mpman_mpwin895cl_data = {
539 .acpi_name = "MSSL1680:00",
540 .properties = mpman_mpwin895cl_props,
541};
542
Gabriel Lazare79e74a2019-03-15 15:31:14 +0200543static const struct property_entry myria_my8307_props[] = {
544 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
545 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
546 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
547 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
548 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
549 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
550 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
551 PROPERTY_ENTRY_BOOL("silead,home-button"),
552 { }
553};
554
555static const struct ts_dmi_data myria_my8307_data = {
556 .acpi_name = "MSSL1680:00",
557 .properties = myria_my8307_props,
558};
559
Hans de Goede6a655a02018-06-08 23:45:56 +0200560static const struct property_entry onda_obook_20_plus_props[] = {
561 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
562 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
563 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
564 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
565 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
566 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
567 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
568 PROPERTY_ENTRY_BOOL("silead,home-button"),
569 { }
570};
571
Hans de Goede74421782018-06-08 23:45:58 +0200572static const struct ts_dmi_data onda_obook_20_plus_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200573 .acpi_name = "MSSL1680:00",
574 .properties = onda_obook_20_plus_props,
575};
576
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200577static const struct property_entry onda_v80_plus_v3_props[] = {
578 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
579 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
580 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
581 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
582 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200583 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200584 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
585 PROPERTY_ENTRY_BOOL("silead,home-button"),
586 { }
587};
588
589static const struct ts_dmi_data onda_v80_plus_v3_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100590 .embedded_fw = {
591 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
592 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
593 .length = 37224,
594 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
595 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
596 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
597 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
598 },
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200599 .acpi_name = "MSSL1680:00",
600 .properties = onda_v80_plus_v3_props,
601};
602
Jun Bo Biee08f572018-07-01 17:47:14 -0400603static const struct property_entry onda_v820w_32g_props[] = {
604 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
605 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
606 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200607 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
Jun Bo Biee08f572018-07-01 17:47:14 -0400608 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
609 PROPERTY_ENTRY_BOOL("silead,home-button"),
610 { }
611};
612
613static const struct ts_dmi_data onda_v820w_32g_data = {
614 .acpi_name = "MSSL1680:00",
615 .properties = onda_v820w_32g_props,
616};
617
Maksim Karasev295615f2020-04-21 16:25:48 +0300618static const struct property_entry onda_v891_v5_props[] = {
619 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
620 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
621 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
622 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
623 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
624 PROPERTY_ENTRY_STRING("firmware-name",
625 "gsl3676-onda-v891-v5.fw"),
626 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
627 PROPERTY_ENTRY_BOOL("silead,home-button"),
628 { }
629};
630
631static const struct ts_dmi_data onda_v891_v5_data = {
632 .acpi_name = "MSSL1680:00",
633 .properties = onda_v891_v5_props,
634};
635
Hans de Goede6a655a02018-06-08 23:45:56 +0200636static const struct property_entry onda_v891w_v1_props[] = {
637 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
638 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
639 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
640 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200641 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200642 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
643 PROPERTY_ENTRY_BOOL("silead,home-button"),
644 { }
645};
646
Hans de Goede74421782018-06-08 23:45:58 +0200647static const struct ts_dmi_data onda_v891w_v1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200648 .acpi_name = "MSSL1680:00",
649 .properties = onda_v891w_v1_props,
650};
651
youling257c0d73082018-06-18 15:11:44 +0200652static const struct property_entry onda_v891w_v3_props[] = {
653 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
654 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
655 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
656 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
657 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200658 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
youling257c0d73082018-06-18 15:11:44 +0200659 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
660 PROPERTY_ENTRY_BOOL("silead,home-button"),
661 { }
662};
663
664static const struct ts_dmi_data onda_v891w_v3_data = {
665 .acpi_name = "MSSL1680:00",
666 .properties = onda_v891w_v3_props,
667};
668
Hans de Goede13fadfa2017-06-15 08:48:32 +0200669static const struct property_entry pipo_w2s_props[] = {
670 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
671 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
672 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
673 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200674 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
Hans de Goede13fadfa2017-06-15 08:48:32 +0200675 { }
676};
677
Hans de Goede74421782018-06-08 23:45:58 +0200678static const struct ts_dmi_data pipo_w2s_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100679 .embedded_fw = {
680 .name = "silead/gsl1680-pipo-w2s.fw",
681 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
682 .length = 39072,
683 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
684 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
685 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
686 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
687 },
Hans de Goede13fadfa2017-06-15 08:48:32 +0200688 .acpi_name = "MSSL1680:00",
689 .properties = pipo_w2s_props,
690};
691
Tim Jostenf95eafb2020-01-03 16:00:59 +0100692static const struct property_entry pipo_w11_props[] = {
693 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
694 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
695 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
696 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200697 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
Tim Jostenf95eafb2020-01-03 16:00:59 +0100698 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
699 PROPERTY_ENTRY_BOOL("silead,home-button"),
700 { }
701};
702
703static const struct ts_dmi_data pipo_w11_data = {
704 .acpi_name = "MSSL1680:00",
705 .properties = pipo_w11_props,
706};
707
Hans de Goede3cd33db2018-05-30 12:43:40 +0200708static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
709 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
710 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
711 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
712 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
713 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200714 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
Hans de Goede3cd33db2018-05-30 12:43:40 +0200715 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
716 PROPERTY_ENTRY_BOOL("silead,home-button"),
717 { }
718};
719
Hans de Goede74421782018-06-08 23:45:58 +0200720static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
Hans de Goede3cd33db2018-05-30 12:43:40 +0200721 .acpi_name = "MSSL1680:00",
722 .properties = pov_mobii_wintab_p800w_v20_props,
723};
724
725static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200726 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
727 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
728 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
729 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200730 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200731 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200732 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200733 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200734 { }
735};
736
Hans de Goede74421782018-06-08 23:45:58 +0200737static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
Hans de Goedef4d342c2017-06-15 08:48:31 +0200738 .acpi_name = "MSSL1680:00",
Hans de Goede3cd33db2018-05-30 12:43:40 +0200739 .properties = pov_mobii_wintab_p800w_v21_props,
Hans de Goedef4d342c2017-06-15 08:48:31 +0200740};
741
Hans de Goede8335ebc2018-12-20 22:21:50 +0100742static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
743 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
744 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
745 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
746 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
747 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200748 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
Hans de Goede8335ebc2018-12-20 22:21:50 +0100749 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
750 PROPERTY_ENTRY_BOOL("silead,home-button"),
751 { }
752};
753
754static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
755 .acpi_name = "MSSL1680:00",
756 .properties = pov_mobii_wintab_p1006w_v10_props,
757};
758
Hans de Goede0f511ed2020-10-15 21:49:49 +0200759static const struct property_entry predia_basic_props[] = {
760 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
761 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
762 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
763 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
764 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
765 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
766 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
767 PROPERTY_ENTRY_BOOL("silead,home-button"),
768 { }
769};
770
771static const struct ts_dmi_data predia_basic_data = {
772 .acpi_name = "MSSL1680:00",
773 .properties = predia_basic_props,
774};
775
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200776static const struct property_entry schneider_sct101ctm_props[] = {
777 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
778 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
779 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
780 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
781 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200782 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200783 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
784 PROPERTY_ENTRY_BOOL("silead,home-button"),
785 { }
786};
787
788static const struct ts_dmi_data schneider_sct101ctm_data = {
789 .acpi_name = "MSSL1680:00",
790 .properties = schneider_sct101ctm_props,
791};
792
Wiktor Ciurej97e130f2020-04-02 18:13:13 +0200793static const struct property_entry techbite_arc_11_6_props[] = {
794 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
795 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
796 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
797 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
798 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
799 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
800 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
801 { }
802};
803
804static const struct ts_dmi_data techbite_arc_11_6_data = {
805 .acpi_name = "MSSL1680:00",
806 .properties = techbite_arc_11_6_props,
807};
808
Hans de Goede8d01cf62021-04-17 19:31:05 +0200809static const struct property_entry teclast_tbook11_props[] = {
810 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
811 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
812 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
813 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
814 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
815 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
816 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
817 PROPERTY_ENTRY_BOOL("silead,home-button"),
818 { }
819};
820
821static const struct ts_dmi_data teclast_tbook11_data = {
822 .embedded_fw = {
823 .name = "silead/gsl3692-teclast-tbook11.fw",
824 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
825 .length = 43560,
826 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
827 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
828 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
829 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
830 },
831 .acpi_name = "MSSL1680:00",
832 .properties = teclast_tbook11_props,
833};
834
Hans de Goede6a655a02018-06-08 23:45:56 +0200835static const struct property_entry teclast_x3_plus_props[] = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200836 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
837 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
Hans de Goede6a655a02018-06-08 23:45:56 +0200838 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200839 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
840 PROPERTY_ENTRY_BOOL("silead,home-button"),
841 { }
842};
843
Hans de Goede74421782018-06-08 23:45:58 +0200844static const struct ts_dmi_data teclast_x3_plus_data = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200845 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200846 .properties = teclast_x3_plus_props,
Hans de Goede2aeb2c32017-12-25 13:45:25 +0100847};
848
Paul Cercueila346aa22018-01-02 19:39:27 +0100849static const struct property_entry teclast_x98plus2_props[] = {
850 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
851 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
852 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
853 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200854 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
Paul Cercueila346aa22018-01-02 19:39:27 +0100855 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
856 { }
857};
858
Hans de Goede74421782018-06-08 23:45:58 +0200859static const struct ts_dmi_data teclast_x98plus2_data = {
Paul Cercueila346aa22018-01-02 19:39:27 +0100860 .acpi_name = "MSSL1680:00",
861 .properties = teclast_x98plus2_props,
862};
863
Hans de Goedecacad0b2018-10-04 14:34:45 +0200864static const struct property_entry trekstor_primebook_c11_props[] = {
865 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
866 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
867 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200868 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
Hans de Goedecacad0b2018-10-04 14:34:45 +0200869 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
870 PROPERTY_ENTRY_BOOL("silead,home-button"),
871 { }
872};
873
874static const struct ts_dmi_data trekstor_primebook_c11_data = {
875 .acpi_name = "MSSL1680:00",
876 .properties = trekstor_primebook_c11_props,
877};
878
Hans de Goede6a655a02018-06-08 23:45:56 +0200879static const struct property_entry trekstor_primebook_c13_props[] = {
880 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
881 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200882 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
Hans de Goedeadf762d2018-05-30 12:43:41 +0200883 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
884 PROPERTY_ENTRY_BOOL("silead,home-button"),
885 { }
886};
887
Hans de Goede74421782018-06-08 23:45:58 +0200888static const struct ts_dmi_data trekstor_primebook_c13_data = {
Hans de Goedeadf762d2018-05-30 12:43:41 +0200889 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200890 .properties = trekstor_primebook_c13_props,
Hans de Goedeadf762d2018-05-30 12:43:41 +0200891};
892
Marian Cepok30394a82018-10-08 09:25:05 +0200893static const struct property_entry trekstor_primetab_t13b_props[] = {
894 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
895 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200896 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
Marian Cepok30394a82018-10-08 09:25:05 +0200897 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
898 PROPERTY_ENTRY_BOOL("silead,home-button"),
899 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
900 { }
901};
902
903static const struct ts_dmi_data trekstor_primetab_t13b_data = {
904 .acpi_name = "MSSL1680:00",
905 .properties = trekstor_primetab_t13b_props,
906};
907
Hans de Goede6a655a02018-06-08 23:45:56 +0200908static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
Hans de Goede477d07e2020-05-31 17:05:24 +0200909 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
910 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
911 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
Hans de Goede6a655a02018-06-08 23:45:56 +0200912 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
913 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200914 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200915 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede477d07e2020-05-31 17:05:24 +0200916 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200917 { }
918};
919
Hans de Goede74421782018-06-08 23:45:58 +0200920static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200921 .acpi_name = "MSSL1680:00",
922 .properties = trekstor_surftab_twin_10_1_props,
923};
924
925static const struct property_entry trekstor_surftab_wintron70_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200926 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
927 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
Hans de Goede6a655a02018-06-08 23:45:56 +0200928 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
929 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200930 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200931 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
932 PROPERTY_ENTRY_BOOL("silead,home-button"),
933 { }
934};
935
Hans de Goede74421782018-06-08 23:45:58 +0200936static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200937 .acpi_name = "MSSL1680:00",
938 .properties = trekstor_surftab_wintron70_props,
939};
940
Andrew Dunai06b2ee02020-05-05 15:15:18 +0300941static const struct property_entry vinga_twizzle_j116_props[] = {
942 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
943 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
944 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
945 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
946 PROPERTY_ENTRY_BOOL("silead,home-button"),
947 { }
948};
949
950static const struct ts_dmi_data vinga_twizzle_j116_data = {
951 .acpi_name = "MSSL1680:00",
952 .properties = vinga_twizzle_j116_props,
953};
954
Hans de Goede6a655a02018-06-08 23:45:56 +0200955/* NOTE: Please keep this table sorted alphabetically */
Hans de Goede835e1b82020-01-15 17:35:53 +0100956const struct dmi_system_id touchscreen_dmi_table[] = {
Hans de Goedecef9dd82017-01-23 18:35:30 +0100957 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200958 /* Chuwi Hi8 */
959 .driver_data = (void *)&chuwi_hi8_data,
960 .matches = {
961 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
962 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
963 },
964 },
965 {
966 /* Chuwi Hi8 (H1D_S806_206) */
967 .driver_data = (void *)&chuwi_hi8_data,
968 .matches = {
969 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
970 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
971 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
972 },
973 },
974 {
Kai Renzigbbb97d72019-02-03 19:34:23 +0100975 /* Chuwi Hi8 Air (CWI543) */
976 .driver_data = (void *)&chuwi_hi8_air_data,
977 .matches = {
978 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
979 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
980 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
981 },
982 },
983 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200984 /* Chuwi Hi8 Pro (CWI513) */
985 .driver_data = (void *)&chuwi_hi8_pro_data,
986 .matches = {
987 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
988 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
989 },
990 },
991 {
Christian Oderb98dc492019-03-03 14:47:27 +0100992 /* Chuwi Hi10 Air */
993 .driver_data = (void *)&chuwi_hi10_air_data,
994 .matches = {
Christian Oder6d789e62019-06-12 14:40:53 +0200995 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
996 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
Christian Oderb98dc492019-03-03 14:47:27 +0100997 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
998 },
999 },
1000 {
Daniel Smith6baac532019-05-24 02:09:13 +07001001 /* Chuwi Hi10 Plus (CWI527) */
1002 .driver_data = (void *)&chuwi_hi10_plus_data,
1003 .matches = {
1004 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1005 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1006 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1007 },
1008 },
1009 {
Hans de Goedef7b056b2021-05-30 12:47:44 +02001010 /* Chuwi Hi10 Pro (CWI529) */
Hans de Goedee68671e2021-05-20 11:32:28 +02001011 .driver_data = (void *)&chuwi_hi10_pro_data,
1012 .matches = {
1013 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1014 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1015 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1016 },
1017 },
1018 {
Hans de Goede3bf16692021-09-05 15:02:09 +02001019 /* Chuwi HiBook (CWI514) */
1020 .driver_data = (void *)&chuwi_hibook_data,
1021 .matches = {
1022 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1023 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1024 /* Above matches are too generic, add bios-date match */
1025 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1026 },
1027 },
1028 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001029 /* Chuwi Vi8 (CWI506) */
1030 .driver_data = (void *)&chuwi_vi8_data,
1031 .matches = {
1032 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1033 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1034 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1035 },
1036 },
1037 {
Hans de Goedeb94b8072020-01-15 17:35:54 +01001038 /* Chuwi Vi8 Plus (CWI519) */
1039 .driver_data = (void *)&chuwi_vi8_plus_data,
1040 .matches = {
1041 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1042 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1043 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1044 },
1045 },
1046 {
Hans de Goedeb4c86812018-06-08 23:45:57 +02001047 /* Chuwi Vi10 (CWI505) */
1048 .driver_data = (void *)&chuwi_vi10_data,
1049 .matches = {
1050 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1051 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1052 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1053 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1054 },
1055 },
1056 {
Giang Lea0c80972019-08-03 21:12:22 +07001057 /* Chuwi Surbook Mini (CWI540) */
1058 .driver_data = (void *)&chuwi_surbook_mini_data,
1059 .matches = {
1060 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1061 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1062 },
1063 },
1064 {
Hans de Goedec72d95e2018-07-01 11:32:56 +02001065 /* Connect Tablet 9 */
1066 .driver_data = (void *)&connect_tablet9_data,
1067 .matches = {
1068 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1069 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1070 },
1071 },
1072 {
Hans de Goedecef9dd82017-01-23 18:35:30 +01001073 /* CUBE iwork8 Air */
1074 .driver_data = (void *)&cube_iwork8_air_data,
1075 .matches = {
1076 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1077 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1078 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1079 },
1080 },
1081 {
youling257cda59152018-07-31 17:32:56 +08001082 /* Cube KNote i1101 */
1083 .driver_data = (void *)&cube_knote_i1101_data,
1084 .matches = {
1085 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1086 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1087 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1088 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1089 },
1090 },
1091 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001092 /* DEXP Ursus 7W */
1093 .driver_data = (void *)&dexp_ursus_7w_data,
Hans de Goedecef9dd82017-01-23 18:35:30 +01001094 .matches = {
1095 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +02001096 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1097 },
1098 },
1099 {
1100 /* Digma Citi E200 */
1101 .driver_data = (void *)&digma_citi_e200_data,
1102 .matches = {
1103 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1104 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1105 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1106 },
1107 },
1108 {
Hans de Goede46c54cf2020-12-24 14:51:58 +01001109 /* Estar Beauty HD (MID 7316R) */
1110 .driver_data = (void *)&estar_beauty_hd_data,
1111 .matches = {
1112 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1113 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1114 },
1115 },
Hans de Goedefcd8cf0e2021-05-04 20:57:45 +02001116 { /* Glavey TM800A550L */
1117 .driver_data = (void *)&glavey_tm800a550l_data,
1118 .matches = {
1119 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1120 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1121 /* Above strings are too generic, also match on BIOS version */
1122 DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"),
1123 },
1124 },
Hans de Goede46c54cf2020-12-24 14:51:58 +01001125 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001126 /* GP-electronic T701 */
1127 .driver_data = (void *)&gp_electronic_t701_data,
1128 .matches = {
1129 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1130 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1131 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1132 },
1133 },
1134 {
1135 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1136 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1137 .matches = {
1138 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1139 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1140 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1141 },
1142 },
1143 {
Hans de Goedef078d052019-08-04 15:40:23 +02001144 /* Irbis TW90 */
1145 .driver_data = (void *)&irbis_tw90_data,
1146 .matches = {
1147 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1148 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1149 },
1150 },
1151 {
Hans de Goedec9aa1282020-11-24 12:04:54 +01001152 /* Irbis TW118 */
1153 .driver_data = (void *)&irbis_tw118_data,
1154 .matches = {
1155 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1156 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1157 },
1158 },
1159 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001160 /* I.T.Works TW891 */
1161 .driver_data = (void *)&itworks_tw891_data,
1162 .matches = {
1163 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1164 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
Hans de Goedecef9dd82017-01-23 18:35:30 +01001165 },
1166 },
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001167 {
Hans de Goede828615f2018-05-30 12:43:39 +02001168 /* Jumper EZpad 6 Pro */
1169 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1170 .matches = {
1171 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1172 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1173 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1174 /* Above matches are too generic, add bios-date match */
1175 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1176 },
1177 },
1178 {
Benjamin Renz504a4352019-04-29 17:46:57 +02001179 /* Jumper EZpad 6 Pro B */
1180 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1181 .matches = {
1182 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1183 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1184 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1185 /* Above matches are too generic, add bios-date match */
1186 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1187 },
1188 },
1189 {
Hans de Goedeee7b0d32019-11-12 15:17:11 +01001190 /* Jumper EZpad 6 m4 */
1191 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1192 .matches = {
1193 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1194 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1195 /* Jumper8.S106x.A00C.1066 with the version dropped */
1196 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1197 },
1198 },
1199 {
Hans de Goedeae5919d2021-01-28 12:36:53 +01001200 /* Jumper EZpad 7 */
1201 .driver_data = (void *)&jumper_ezpad_7_data,
1202 .matches = {
1203 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1204 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1205 /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
1206 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1207 },
1208 },
1209 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001210 /* Jumper EZpad mini3 */
1211 .driver_data = (void *)&jumper_ezpad_mini3_data,
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001212 .matches = {
1213 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +02001214 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1215 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1216 },
1217 },
1218 {
Teava Radu39a61722021-05-04 20:57:46 +02001219 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1220 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1221 .matches = {
1222 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1223 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1224 },
1225 },
1226 {
Hans de Goedef25b6302018-12-04 10:20:04 +01001227 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1228 .driver_data = (void *)&trekstor_primebook_c11_data,
1229 .matches = {
1230 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1231 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1232 },
1233 },
1234 {
Hans de Goedeefe813d2020-09-01 10:07:52 +02001235 /* MP Man Converter 9 */
1236 .driver_data = (void *)&mpman_converter9_data,
1237 .matches = {
1238 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1239 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1240 },
1241 },
1242 {
Hans de Goedee415da32020-04-01 10:03:48 +02001243 /* MP Man MPWIN895CL */
1244 .driver_data = (void *)&mpman_mpwin895cl_data,
1245 .matches = {
1246 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1247 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1248 },
1249 },
1250 {
Gabriel Lazare79e74a2019-03-15 15:31:14 +02001251 /* Myria MY8307 */
1252 .driver_data = (void *)&myria_my8307_data,
1253 .matches = {
1254 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1255 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1256 },
1257 },
1258 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001259 /* Onda oBook 20 Plus */
1260 .driver_data = (void *)&onda_obook_20_plus_data,
1261 .matches = {
1262 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1263 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1264 },
1265 },
1266 {
Hans de Goede01b6b7e2018-10-10 15:16:40 +02001267 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1268 .driver_data = (void *)&onda_v80_plus_v3_data,
1269 .matches = {
1270 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1271 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1272 },
1273 },
1274 {
Jun Bo Biee08f572018-07-01 17:47:14 -04001275 /* ONDA V820w DualOS */
1276 .driver_data = (void *)&onda_v820w_32g_data,
1277 .matches = {
1278 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1279 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1280 },
1281 },
1282 {
Maksim Karasev295615f2020-04-21 16:25:48 +03001283 /* ONDA V891 v5 */
1284 .driver_data = (void *)&onda_v891_v5_data,
1285 .matches = {
1286 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1287 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1288 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1289 },
1290 },
1291 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001292 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1293 .driver_data = (void *)&onda_v891w_v1_data,
1294 .matches = {
1295 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1296 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1297 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1298 /* Exact match, different versions need different fw */
1299 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1300 },
1301 },
1302 {
youling257c0d73082018-06-18 15:11:44 +02001303 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1304 .driver_data = (void *)&onda_v891w_v3_data,
1305 .matches = {
1306 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1307 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1308 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1309 },
1310 },
1311 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001312 /* Pipo W2S */
1313 .driver_data = (void *)&pipo_w2s_data,
1314 .matches = {
1315 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1316 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1317 },
1318 },
1319 {
Tim Jostenf95eafb2020-01-03 16:00:59 +01001320 /* Pipo W11 */
1321 .driver_data = (void *)&pipo_w11_data,
1322 .matches = {
1323 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1324 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1325 /* Above matches are too generic, add bios-ver match */
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001326 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
Tim Jostenf95eafb2020-01-03 16:00:59 +01001327 },
1328 },
1329 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001330 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1331 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1332 .matches = {
1333 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1334 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1335 /* Exact match, different versions need different fw */
1336 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1337 },
1338 },
1339 {
1340 /* Point of View mobii wintab p800w (v2.0) */
1341 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1342 .matches = {
1343 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1344 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1345 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1346 /* Above matches are too generic, add bios-date match */
1347 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1348 },
1349 },
1350 {
Hans de Goede0f511ed2020-10-15 21:49:49 +02001351 /* Predia Basic tablet) */
1352 .driver_data = (void *)&predia_basic_data,
1353 .matches = {
1354 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1355 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1356 /* Above matches are too generic, add bios-version match */
1357 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1358 },
1359 },
1360 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001361 /* Point of View mobii wintab p800w (v2.1) */
1362 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1363 .matches = {
1364 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1365 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1366 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1367 /* Above matches are too generic, add bios-date match */
1368 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1369 },
1370 },
1371 {
Hans de Goede8335ebc2018-12-20 22:21:50 +01001372 /* Point of View mobii wintab p1006w (v1.0) */
1373 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1374 .matches = {
1375 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1376 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1377 /* Note 105b is Foxcon's USB/PCI vendor id */
1378 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1379 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1380 },
1381 },
1382 {
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +02001383 /* Schneider SCT101CTM */
1384 .driver_data = (void *)&schneider_sct101ctm_data,
1385 .matches = {
1386 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1387 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1388 },
1389 },
1390 {
Wiktor Ciurej97e130f2020-04-02 18:13:13 +02001391 /* Techbite Arc 11.6 */
1392 .driver_data = (void *)&techbite_arc_11_6_data,
1393 .matches = {
1394 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1395 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1396 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1397 },
1398 },
1399 {
Hans de Goede8d01cf62021-04-17 19:31:05 +02001400 /* Teclast Tbook 11 */
1401 .driver_data = (void *)&teclast_tbook11_data,
1402 .matches = {
1403 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1404 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1405 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1406 },
1407 },
1408 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001409 /* Teclast X3 Plus */
1410 .driver_data = (void *)&teclast_x3_plus_data,
1411 .matches = {
1412 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1413 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1414 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1415 },
1416 },
1417 {
Hans de Goedea22e3802021-05-04 20:57:44 +02001418 /* Teclast X89 (Android version / BIOS) */
1419 .driver_data = (void *)&gdix1001_00_upside_down_data,
1420 .matches = {
1421 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1422 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1423 },
1424 },
1425 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001426 /* Teclast X89 (Windows version / BIOS) */
1427 .driver_data = (void *)&gdix1001_01_upside_down_data,
1428 .matches = {
1429 /* tPAD is too generic, also match on bios date */
1430 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1431 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1432 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1433 },
1434 },
1435 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001436 /* Teclast X98 Plus II */
1437 .driver_data = (void *)&teclast_x98plus2_data,
1438 .matches = {
1439 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1440 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1441 },
1442 },
1443 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001444 /* Teclast X98 Pro */
1445 .driver_data = (void *)&gdix1001_00_upside_down_data,
1446 .matches = {
1447 /*
1448 * Only match BIOS date, because the manufacturers
1449 * BIOS does not report the board name at all
1450 * (sometimes)...
1451 */
1452 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1453 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1454 },
1455 },
1456 {
Hans de Goedecacad0b2018-10-04 14:34:45 +02001457 /* Trekstor Primebook C11 */
1458 .driver_data = (void *)&trekstor_primebook_c11_data,
1459 .matches = {
1460 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1461 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1462 },
1463 },
1464 {
Hans de Goede37d960a2019-08-18 13:04:51 +02001465 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1466 .driver_data = (void *)&trekstor_primebook_c11_data,
1467 .matches = {
1468 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1469 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1470 },
1471 },
1472 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001473 /* Trekstor Primebook C13 */
1474 .driver_data = (void *)&trekstor_primebook_c13_data,
1475 .matches = {
1476 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1477 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001478 },
1479 },
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001480 {
Marian Cepok30394a82018-10-08 09:25:05 +02001481 /* Trekstor Primetab T13B */
1482 .driver_data = (void *)&trekstor_primetab_t13b_data,
1483 .matches = {
1484 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1485 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1486 },
1487 },
1488 {
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001489 /* TrekStor SurfTab twin 10.1 ST10432-8 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001490 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001491 .matches = {
1492 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1493 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1494 },
1495 },
1496 {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001497 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001498 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001499 .matches = {
1500 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1501 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1502 /* Exact match, different versions need different fw */
1503 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1504 },
1505 },
Hans de Goeded9ca30b2017-05-07 14:35:15 +02001506 {
Hans de Goede4245c152018-01-16 20:24:15 +01001507 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001508 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede4245c152018-01-16 20:24:15 +01001509 .matches = {
1510 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001511 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
Hans de Goede4245c152018-01-16 20:24:15 +01001512 /* Exact match, different versions need different fw */
1513 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1514 },
1515 },
1516 {
Bernhard Übelacker6b290302020-05-15 17:59:12 +02001517 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1518 .driver_data = (void *)&trekstor_primebook_c11_data,
1519 .matches = {
1520 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1521 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1522 },
1523 },
1524 {
Andrew Dunai06b2ee02020-05-05 15:15:18 +03001525 /* Vinga Twizzle J116 */
1526 .driver_data = (void *)&vinga_twizzle_j116_data,
1527 .matches = {
1528 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1529 },
1530 },
1531 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001532 /* "WinBook TW100" */
1533 .driver_data = (void *)&gdix1001_00_upside_down_data,
1534 .matches = {
1535 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1536 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1537 }
1538 },
1539 {
1540 /* WinBook TW700 */
1541 .driver_data = (void *)&gdix1001_00_upside_down_data,
1542 .matches = {
1543 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1544 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1545 },
1546 },
1547 {
Hans de Goede24e2bb32018-03-09 15:03:58 +01001548 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1549 .driver_data = (void *)&chuwi_vi8_data,
1550 .matches = {
1551 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1552 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1553 },
1554 },
Andy Shevchenko65fce352020-05-05 15:44:45 +03001555 { }
Hans de Goedecef9dd82017-01-23 18:35:30 +01001556};
1557
Hans de Goede74421782018-06-08 23:45:58 +02001558static const struct ts_dmi_data *ts_data;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001559
Hans de Goede74421782018-06-08 23:45:58 +02001560static void ts_dmi_add_props(struct i2c_client *client)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001561{
Dmitry Torokhove1053962017-04-03 20:25:13 -07001562 struct device *dev = &client->dev;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001563 int error;
1564
Hans de Goedecef9dd82017-01-23 18:35:30 +01001565 if (has_acpi_companion(dev) &&
Hans de Goede74421782018-06-08 23:45:58 +02001566 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
Heikki Krogerus87eaede2021-03-04 11:20:23 +03001567 error = device_create_managed_software_node(dev, ts_data->properties, NULL);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001568 if (error)
1569 dev_err(dev, "failed to add properties: %d\n", error);
1570 }
1571}
1572
Hans de Goede74421782018-06-08 23:45:58 +02001573static int ts_dmi_notifier_call(struct notifier_block *nb,
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001574 unsigned long action, void *data)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001575{
1576 struct device *dev = data;
Dmitry Torokhove1053962017-04-03 20:25:13 -07001577 struct i2c_client *client;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001578
1579 switch (action) {
1580 case BUS_NOTIFY_ADD_DEVICE:
Dmitry Torokhove1053962017-04-03 20:25:13 -07001581 client = i2c_verify_client(dev);
1582 if (client)
Hans de Goede74421782018-06-08 23:45:58 +02001583 ts_dmi_add_props(client);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001584 break;
1585
1586 default:
1587 break;
1588 }
1589
1590 return 0;
1591}
1592
Hans de Goede74421782018-06-08 23:45:58 +02001593static struct notifier_block ts_dmi_notifier = {
1594 .notifier_call = ts_dmi_notifier_call,
Hans de Goedecef9dd82017-01-23 18:35:30 +01001595};
1596
Hans de Goede74421782018-06-08 23:45:58 +02001597static int __init ts_dmi_init(void)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001598{
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001599 const struct dmi_system_id *dmi_id;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001600 int error;
1601
Hans de Goede74421782018-06-08 23:45:58 +02001602 dmi_id = dmi_first_match(touchscreen_dmi_table);
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001603 if (!dmi_id)
1604 return 0; /* Not an error */
1605
Hans de Goede74421782018-06-08 23:45:58 +02001606 ts_data = dmi_id->driver_data;
Hans de Goedeb94b8072020-01-15 17:35:54 +01001607 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1608 if (!ts_data->properties)
1609 return 0;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001610
Hans de Goede74421782018-06-08 23:45:58 +02001611 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001612 if (error)
1613 pr_err("%s: failed to register i2c bus notifier: %d\n",
1614 __func__, error);
1615
1616 return error;
1617}
1618
1619/*
1620 * We are registering out notifier after i2c core is initialized and i2c bus
1621 * itself is ready (which happens at postcore initcall level), but before
1622 * ACPI starts enumerating devices (at subsys initcall level).
1623 */
Hans de Goede74421782018-06-08 23:45:58 +02001624arch_initcall(ts_dmi_init);