blob: 494f23052678691f6424e4f426e05296d619492e [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"),
Hans de Goedebfe92172021-12-25 13:02:47 +0100110 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
111 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
112 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
Daniel Smith6baac532019-05-24 02:09:13 +0700113 { }
114};
115
116static const struct ts_dmi_data chuwi_hi10_plus_data = {
Hans de Goede196159d2021-09-05 15:02:10 +0200117 .embedded_fw = {
118 .name = "silead/gsl1680-chuwi-hi10plus.fw",
119 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
120 .length = 34056,
121 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
122 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
123 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
124 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
125 },
Daniel Smith6baac532019-05-24 02:09:13 +0700126 .acpi_name = "MSSL0017:00",
127 .properties = chuwi_hi10_plus_props,
128};
129
Hans de Goede16bbe382021-12-25 13:02:46 +0100130static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 };
131
Hans de Goedee68671e2021-05-20 11:32:28 +0200132static const struct property_entry chuwi_hi10_pro_props[] = {
Hans de Goede16bbe382021-12-25 13:02:46 +0100133 PROPERTY_ENTRY_U32("touchscreen-min-x", 80),
134 PROPERTY_ENTRY_U32("touchscreen-min-y", 26),
135 PROPERTY_ENTRY_U32("touchscreen-size-x", 1962),
136 PROPERTY_ENTRY_U32("touchscreen-size-y", 1254),
Hans de Goedee68671e2021-05-20 11:32:28 +0200137 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
138 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
Hans de Goede16bbe382021-12-25 13:02:46 +0100139 PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
Hans de Goedee68671e2021-05-20 11:32:28 +0200140 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
141 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goedebfe92172021-12-25 13:02:47 +0100142 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
143 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
144 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
Hans de Goedee68671e2021-05-20 11:32:28 +0200145 { }
146};
147
148static const struct ts_dmi_data chuwi_hi10_pro_data = {
149 .embedded_fw = {
150 .name = "silead/gsl1680-chuwi-hi10-pro.fw",
151 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
152 .length = 42504,
153 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
154 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
155 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
156 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
157 },
158 .acpi_name = "MSSL1680:00",
159 .properties = chuwi_hi10_pro_props,
160};
161
Hans de Goede3bf16692021-09-05 15:02:09 +0200162static const struct property_entry chuwi_hibook_props[] = {
163 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
164 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
165 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
166 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
167 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
168 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
169 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
170 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
171 PROPERTY_ENTRY_BOOL("silead,home-button"),
172 { }
173};
174
175static const struct ts_dmi_data chuwi_hibook_data = {
176 .embedded_fw = {
177 .name = "silead/gsl1680-chuwi-hibook.fw",
178 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
179 .length = 40392,
180 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
181 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
182 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
183 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
184 },
185 .acpi_name = "MSSL0017:00",
186 .properties = chuwi_hibook_props,
187};
188
Hans de Goede6a655a02018-06-08 23:45:56 +0200189static const struct property_entry chuwi_vi8_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200190 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
191 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
Hans de Goede6a655a02018-06-08 23:45:56 +0200192 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
193 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
194 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
195 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
196 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
197 PROPERTY_ENTRY_BOOL("silead,home-button"),
198 { }
199};
200
Hans de Goede74421782018-06-08 23:45:58 +0200201static const struct ts_dmi_data chuwi_vi8_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200202 .acpi_name = "MSSL1680:00",
203 .properties = chuwi_vi8_props,
204};
205
Hans de Goedeb94b8072020-01-15 17:35:54 +0100206static const struct ts_dmi_data chuwi_vi8_plus_data = {
207 .embedded_fw = {
208 .name = "chipone/icn8505-HAMP0002.fw",
209 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
210 .length = 35012,
211 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
212 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
213 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
214 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
215 },
216};
217
Hans de Goedeb4c86812018-06-08 23:45:57 +0200218static const struct property_entry chuwi_vi10_props[] = {
219 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
220 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
221 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
222 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
223 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
224 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
225 PROPERTY_ENTRY_BOOL("silead,home-button"),
226 { }
227};
228
Hans de Goede74421782018-06-08 23:45:58 +0200229static const struct ts_dmi_data chuwi_vi10_data = {
Hans de Goedeb4c86812018-06-08 23:45:57 +0200230 .acpi_name = "MSSL0002:00",
231 .properties = chuwi_vi10_props,
232};
233
Giang Lea0c80972019-08-03 21:12:22 +0700234static const struct property_entry chuwi_surbook_mini_props[] = {
235 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
236 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
237 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
238 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
239 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
240 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
241 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
242 { }
243};
244
245static const struct ts_dmi_data chuwi_surbook_mini_data = {
246 .acpi_name = "MSSL1680:00",
247 .properties = chuwi_surbook_mini_props,
248};
249
Hans de Goedec72d95e2018-07-01 11:32:56 +0200250static const struct property_entry connect_tablet9_props[] = {
251 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
Hans de Goede41049162018-10-20 12:21:00 +0200252 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200253 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
Hans de Goede41049162018-10-20 12:21:00 +0200254 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200255 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
256 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
257 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
258 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
259 { }
260};
261
262static const struct ts_dmi_data connect_tablet9_data = {
263 .acpi_name = "MSSL1680:00",
264 .properties = connect_tablet9_props,
265};
266
Hans de Goedeae311152017-03-22 16:55:53 +0100267static const struct property_entry cube_iwork8_air_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200268 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
269 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
270 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
271 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goedecef9dd82017-01-23 18:35:30 +0100272 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
273 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
274 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
275 { }
276};
277
Hans de Goede74421782018-06-08 23:45:58 +0200278static const struct ts_dmi_data cube_iwork8_air_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100279 .embedded_fw = {
280 .name = "silead/gsl3670-cube-iwork8-air.fw",
281 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
282 .length = 38808,
283 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
284 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
285 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
286 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
287 },
Hans de Goedecef9dd82017-01-23 18:35:30 +0100288 .acpi_name = "MSSL1680:00",
289 .properties = cube_iwork8_air_props,
290};
291
youling257cda59152018-07-31 17:32:56 +0800292static const struct property_entry cube_knote_i1101_props[] = {
293 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
294 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
295 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
296 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
297 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.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 cube_knote_i1101_data = {
304 .acpi_name = "MSSL1680:00",
305 .properties = cube_knote_i1101_props,
306};
307
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100308static const struct property_entry dexp_ursus_7w_props[] = {
309 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
310 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
311 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
312 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200313 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100314 { }
315};
316
Hans de Goede74421782018-06-08 23:45:58 +0200317static const struct ts_dmi_data dexp_ursus_7w_data = {
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100318 .acpi_name = "MSSL1680:00",
319 .properties = dexp_ursus_7w_props,
320};
321
Hans de Goede6a655a02018-06-08 23:45:56 +0200322static const struct property_entry digma_citi_e200_props[] = {
323 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
324 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
325 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200326 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200327 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200328 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200329 { }
330};
331
Hans de Goede74421782018-06-08 23:45:58 +0200332static const struct ts_dmi_data digma_citi_e200_data = {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200333 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200334 .properties = digma_citi_e200_props,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200335};
336
Hans de Goede46c54cf2020-12-24 14:51:58 +0100337static const struct property_entry estar_beauty_hd_props[] = {
338 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
339 { }
340};
341
342static const struct ts_dmi_data estar_beauty_hd_data = {
343 .acpi_name = "GDIX1001:00",
344 .properties = estar_beauty_hd_props,
345};
346
Hans de Goede5a6f0db2021-05-04 20:57:42 +0200347/* Generic props + data for upside-down mounted GDIX1001 touchscreens */
348static const struct property_entry gdix1001_upside_down_props[] = {
349 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
350 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
351 { }
352};
353
354static const struct ts_dmi_data gdix1001_00_upside_down_data = {
355 .acpi_name = "GDIX1001:00",
356 .properties = gdix1001_upside_down_props,
357};
358
359static const struct ts_dmi_data gdix1001_01_upside_down_data = {
360 .acpi_name = "GDIX1001:01",
361 .properties = gdix1001_upside_down_props,
362};
363
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200364static const struct property_entry gp_electronic_t701_props[] = {
365 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
366 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
Hans de Goede5c24c052017-10-19 09:44:14 +0200367 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
368 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200369 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200370 { }
371};
372
Hans de Goede74421782018-06-08 23:45:58 +0200373static const struct ts_dmi_data gp_electronic_t701_data = {
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200374 .acpi_name = "MSSL1680:00",
375 .properties = gp_electronic_t701_props,
376};
377
Hans de Goedef078d052019-08-04 15:40:23 +0200378static const struct property_entry irbis_tw90_props[] = {
379 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
380 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
381 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
382 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
383 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
384 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
385 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
386 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
387 PROPERTY_ENTRY_BOOL("silead,home-button"),
388 { }
389};
390
391static const struct ts_dmi_data irbis_tw90_data = {
392 .acpi_name = "MSSL1680:00",
393 .properties = irbis_tw90_props,
394};
395
Hans de Goedec9aa1282020-11-24 12:04:54 +0100396static const struct property_entry irbis_tw118_props[] = {
397 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
398 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
399 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
400 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
401 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
402 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
403 { }
404};
405
406static const struct ts_dmi_data irbis_tw118_data = {
407 .acpi_name = "MSSL1680:00",
408 .properties = irbis_tw118_props,
409};
410
Hans de Goede6a655a02018-06-08 23:45:56 +0200411static const struct property_entry itworks_tw891_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200412 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
413 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
Hans de Goede6a655a02018-06-08 23:45:56 +0200414 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
Hans de Goede41049162018-10-20 12:21:00 +0200415 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goede6a655a02018-06-08 23:45:56 +0200416 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
417 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
418 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200419 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede6a655a02018-06-08 23:45:56 +0200420 { }
421};
422
Hans de Goede74421782018-06-08 23:45:58 +0200423static const struct ts_dmi_data itworks_tw891_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200424 .acpi_name = "MSSL1680:00",
425 .properties = itworks_tw891_props,
426};
427
428static const struct property_entry jumper_ezpad_6_pro_props[] = {
429 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
430 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
431 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
432 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
433 PROPERTY_ENTRY_BOOL("silead,home-button"),
434 { }
435};
436
Hans de Goede74421782018-06-08 23:45:58 +0200437static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200438 .acpi_name = "MSSL1680:00",
439 .properties = jumper_ezpad_6_pro_props,
440};
441
Benjamin Renz504a4352019-04-29 17:46:57 +0200442static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
443 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
444 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
445 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
446 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
447 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
448 PROPERTY_ENTRY_BOOL("silead,home-button"),
449 { }
450};
451
452static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
453 .acpi_name = "MSSL1680:00",
454 .properties = jumper_ezpad_6_pro_b_props,
455};
456
Hans de Goedeee7b0d32019-11-12 15:17:11 +0100457static const struct property_entry jumper_ezpad_6_m4_props[] = {
458 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
459 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
460 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
461 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
462 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
463 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
464 PROPERTY_ENTRY_BOOL("silead,home-button"),
465 { }
466};
467
468static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
469 .acpi_name = "MSSL1680:00",
470 .properties = jumper_ezpad_6_m4_props,
471};
472
Hans de Goedeae5919d2021-01-28 12:36:53 +0100473static const struct property_entry jumper_ezpad_7_props[] = {
474 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
475 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
476 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
477 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
478 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
479 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
480 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
481 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
482 { }
483};
484
485static const struct ts_dmi_data jumper_ezpad_7_data = {
486 .acpi_name = "MSSL1680:00",
487 .properties = jumper_ezpad_7_props,
488};
489
Hans de Goede6a655a02018-06-08 23:45:56 +0200490static const struct property_entry jumper_ezpad_mini3_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200491 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
492 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
Hans de Goede6a655a02018-06-08 23:45:56 +0200493 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
Hans de Goede41049162018-10-20 12:21:00 +0200494 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
Hans de Goede6a655a02018-06-08 23:45:56 +0200495 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
496 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
497 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
498 { }
499};
500
Hans de Goede74421782018-06-08 23:45:58 +0200501static const struct ts_dmi_data jumper_ezpad_mini3_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200502 .acpi_name = "MSSL1680:00",
503 .properties = jumper_ezpad_mini3_props,
504};
505
Hans de Goedeefe813d2020-09-01 10:07:52 +0200506static const struct property_entry mpman_converter9_props[] = {
507 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
508 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
509 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
510 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
511 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
512 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
513 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
514 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
515 { }
516};
517
518static const struct ts_dmi_data mpman_converter9_data = {
519 .acpi_name = "MSSL1680:00",
520 .properties = mpman_converter9_props,
521};
522
Hans de Goedee415da32020-04-01 10:03:48 +0200523static const struct property_entry mpman_mpwin895cl_props[] = {
524 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
525 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
526 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
527 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
528 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
529 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
530 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
531 PROPERTY_ENTRY_BOOL("silead,home-button"),
532 { }
533};
534
535static const struct ts_dmi_data mpman_mpwin895cl_data = {
536 .acpi_name = "MSSL1680:00",
537 .properties = mpman_mpwin895cl_props,
538};
539
Gabriel Lazare79e74a2019-03-15 15:31:14 +0200540static const struct property_entry myria_my8307_props[] = {
541 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
542 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
543 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
544 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
545 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
546 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
547 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
548 PROPERTY_ENTRY_BOOL("silead,home-button"),
549 { }
550};
551
552static const struct ts_dmi_data myria_my8307_data = {
553 .acpi_name = "MSSL1680:00",
554 .properties = myria_my8307_props,
555};
556
Hans de Goede6a655a02018-06-08 23:45:56 +0200557static const struct property_entry onda_obook_20_plus_props[] = {
558 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
559 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
560 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
561 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
562 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
563 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
564 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
565 PROPERTY_ENTRY_BOOL("silead,home-button"),
566 { }
567};
568
Hans de Goede74421782018-06-08 23:45:58 +0200569static const struct ts_dmi_data onda_obook_20_plus_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200570 .acpi_name = "MSSL1680:00",
571 .properties = onda_obook_20_plus_props,
572};
573
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200574static const struct property_entry onda_v80_plus_v3_props[] = {
575 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
576 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
577 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
578 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
579 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200580 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200581 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
582 PROPERTY_ENTRY_BOOL("silead,home-button"),
583 { }
584};
585
586static const struct ts_dmi_data onda_v80_plus_v3_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100587 .embedded_fw = {
588 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
589 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
590 .length = 37224,
591 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
592 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
593 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
594 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
595 },
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200596 .acpi_name = "MSSL1680:00",
597 .properties = onda_v80_plus_v3_props,
598};
599
Jun Bo Biee08f572018-07-01 17:47:14 -0400600static const struct property_entry onda_v820w_32g_props[] = {
601 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
602 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
603 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200604 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
Jun Bo Biee08f572018-07-01 17:47:14 -0400605 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
606 PROPERTY_ENTRY_BOOL("silead,home-button"),
607 { }
608};
609
610static const struct ts_dmi_data onda_v820w_32g_data = {
611 .acpi_name = "MSSL1680:00",
612 .properties = onda_v820w_32g_props,
613};
614
Maksim Karasev295615f2020-04-21 16:25:48 +0300615static const struct property_entry onda_v891_v5_props[] = {
616 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
617 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
618 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
619 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
620 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
621 PROPERTY_ENTRY_STRING("firmware-name",
622 "gsl3676-onda-v891-v5.fw"),
623 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
624 PROPERTY_ENTRY_BOOL("silead,home-button"),
625 { }
626};
627
628static const struct ts_dmi_data onda_v891_v5_data = {
629 .acpi_name = "MSSL1680:00",
630 .properties = onda_v891_v5_props,
631};
632
Hans de Goede6a655a02018-06-08 23:45:56 +0200633static const struct property_entry onda_v891w_v1_props[] = {
634 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
635 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
636 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
637 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200638 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200639 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
640 PROPERTY_ENTRY_BOOL("silead,home-button"),
641 { }
642};
643
Hans de Goede74421782018-06-08 23:45:58 +0200644static const struct ts_dmi_data onda_v891w_v1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200645 .acpi_name = "MSSL1680:00",
646 .properties = onda_v891w_v1_props,
647};
648
youling257c0d73082018-06-18 15:11:44 +0200649static const struct property_entry onda_v891w_v3_props[] = {
650 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
651 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
652 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
653 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
654 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200655 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
youling257c0d73082018-06-18 15:11:44 +0200656 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
657 PROPERTY_ENTRY_BOOL("silead,home-button"),
658 { }
659};
660
661static const struct ts_dmi_data onda_v891w_v3_data = {
662 .acpi_name = "MSSL1680:00",
663 .properties = onda_v891w_v3_props,
664};
665
Hans de Goede13fadfa2017-06-15 08:48:32 +0200666static const struct property_entry pipo_w2s_props[] = {
667 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
668 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
669 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
670 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200671 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
Hans de Goede13fadfa2017-06-15 08:48:32 +0200672 { }
673};
674
Hans de Goede74421782018-06-08 23:45:58 +0200675static const struct ts_dmi_data pipo_w2s_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100676 .embedded_fw = {
677 .name = "silead/gsl1680-pipo-w2s.fw",
678 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
679 .length = 39072,
680 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
681 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
682 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
683 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
684 },
Hans de Goede13fadfa2017-06-15 08:48:32 +0200685 .acpi_name = "MSSL1680:00",
686 .properties = pipo_w2s_props,
687};
688
Tim Jostenf95eafb2020-01-03 16:00:59 +0100689static const struct property_entry pipo_w11_props[] = {
690 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
691 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
692 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
693 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200694 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
Tim Jostenf95eafb2020-01-03 16:00:59 +0100695 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
696 PROPERTY_ENTRY_BOOL("silead,home-button"),
697 { }
698};
699
700static const struct ts_dmi_data pipo_w11_data = {
701 .acpi_name = "MSSL1680:00",
702 .properties = pipo_w11_props,
703};
704
Hans de Goede3cd33db2018-05-30 12:43:40 +0200705static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
706 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
707 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
708 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
709 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
710 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200711 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
Hans de Goede3cd33db2018-05-30 12:43:40 +0200712 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
713 PROPERTY_ENTRY_BOOL("silead,home-button"),
714 { }
715};
716
Hans de Goede74421782018-06-08 23:45:58 +0200717static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
Hans de Goede3cd33db2018-05-30 12:43:40 +0200718 .acpi_name = "MSSL1680:00",
719 .properties = pov_mobii_wintab_p800w_v20_props,
720};
721
722static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200723 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
724 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
725 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
726 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200727 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200728 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200729 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200730 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200731 { }
732};
733
Hans de Goede74421782018-06-08 23:45:58 +0200734static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
Hans de Goedef4d342c2017-06-15 08:48:31 +0200735 .acpi_name = "MSSL1680:00",
Hans de Goede3cd33db2018-05-30 12:43:40 +0200736 .properties = pov_mobii_wintab_p800w_v21_props,
Hans de Goedef4d342c2017-06-15 08:48:31 +0200737};
738
Hans de Goede8335ebc2018-12-20 22:21:50 +0100739static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
740 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
741 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
742 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
743 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
744 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200745 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
Hans de Goede8335ebc2018-12-20 22:21:50 +0100746 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
747 PROPERTY_ENTRY_BOOL("silead,home-button"),
748 { }
749};
750
751static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
752 .acpi_name = "MSSL1680:00",
753 .properties = pov_mobii_wintab_p1006w_v10_props,
754};
755
Hans de Goede0f511ed2020-10-15 21:49:49 +0200756static const struct property_entry predia_basic_props[] = {
757 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
758 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
759 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
760 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
761 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
762 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
763 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
764 PROPERTY_ENTRY_BOOL("silead,home-button"),
765 { }
766};
767
768static const struct ts_dmi_data predia_basic_data = {
769 .acpi_name = "MSSL1680:00",
770 .properties = predia_basic_props,
771};
772
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200773static const struct property_entry schneider_sct101ctm_props[] = {
774 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
775 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
776 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
777 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
778 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200779 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200780 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
781 PROPERTY_ENTRY_BOOL("silead,home-button"),
782 { }
783};
784
785static const struct ts_dmi_data schneider_sct101ctm_data = {
786 .acpi_name = "MSSL1680:00",
787 .properties = schneider_sct101ctm_props,
788};
789
Wiktor Ciurej97e130f2020-04-02 18:13:13 +0200790static const struct property_entry techbite_arc_11_6_props[] = {
791 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
792 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
793 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
794 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
795 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
796 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
797 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
798 { }
799};
800
801static const struct ts_dmi_data techbite_arc_11_6_data = {
802 .acpi_name = "MSSL1680:00",
803 .properties = techbite_arc_11_6_props,
804};
805
Hans de Goede8d01cf62021-04-17 19:31:05 +0200806static const struct property_entry teclast_tbook11_props[] = {
807 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
808 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
809 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
810 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
811 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
812 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
813 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
814 PROPERTY_ENTRY_BOOL("silead,home-button"),
815 { }
816};
817
818static const struct ts_dmi_data teclast_tbook11_data = {
819 .embedded_fw = {
820 .name = "silead/gsl3692-teclast-tbook11.fw",
821 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
822 .length = 43560,
823 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
824 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
825 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
826 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
827 },
828 .acpi_name = "MSSL1680:00",
829 .properties = teclast_tbook11_props,
830};
831
Hans de Goede6a655a02018-06-08 23:45:56 +0200832static const struct property_entry teclast_x3_plus_props[] = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200833 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
834 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
Hans de Goede6a655a02018-06-08 23:45:56 +0200835 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200836 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
837 PROPERTY_ENTRY_BOOL("silead,home-button"),
838 { }
839};
840
Hans de Goede74421782018-06-08 23:45:58 +0200841static const struct ts_dmi_data teclast_x3_plus_data = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200842 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200843 .properties = teclast_x3_plus_props,
Hans de Goede2aeb2c32017-12-25 13:45:25 +0100844};
845
Paul Cercueila346aa22018-01-02 19:39:27 +0100846static const struct property_entry teclast_x98plus2_props[] = {
847 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
848 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
849 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
850 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200851 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
Paul Cercueila346aa22018-01-02 19:39:27 +0100852 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
853 { }
854};
855
Hans de Goede74421782018-06-08 23:45:58 +0200856static const struct ts_dmi_data teclast_x98plus2_data = {
Paul Cercueila346aa22018-01-02 19:39:27 +0100857 .acpi_name = "MSSL1680:00",
858 .properties = teclast_x98plus2_props,
859};
860
Hans de Goedecacad0b2018-10-04 14:34:45 +0200861static const struct property_entry trekstor_primebook_c11_props[] = {
862 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
863 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
864 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200865 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
Hans de Goedecacad0b2018-10-04 14:34:45 +0200866 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
867 PROPERTY_ENTRY_BOOL("silead,home-button"),
868 { }
869};
870
871static const struct ts_dmi_data trekstor_primebook_c11_data = {
872 .acpi_name = "MSSL1680:00",
873 .properties = trekstor_primebook_c11_props,
874};
875
Hans de Goede6a655a02018-06-08 23:45:56 +0200876static const struct property_entry trekstor_primebook_c13_props[] = {
877 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
878 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200879 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
Hans de Goedeadf762d2018-05-30 12:43:41 +0200880 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
881 PROPERTY_ENTRY_BOOL("silead,home-button"),
882 { }
883};
884
Hans de Goede74421782018-06-08 23:45:58 +0200885static const struct ts_dmi_data trekstor_primebook_c13_data = {
Hans de Goedeadf762d2018-05-30 12:43:41 +0200886 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200887 .properties = trekstor_primebook_c13_props,
Hans de Goedeadf762d2018-05-30 12:43:41 +0200888};
889
Marian Cepok30394a82018-10-08 09:25:05 +0200890static const struct property_entry trekstor_primetab_t13b_props[] = {
891 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
892 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200893 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
Marian Cepok30394a82018-10-08 09:25:05 +0200894 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
895 PROPERTY_ENTRY_BOOL("silead,home-button"),
896 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
897 { }
898};
899
900static const struct ts_dmi_data trekstor_primetab_t13b_data = {
901 .acpi_name = "MSSL1680:00",
902 .properties = trekstor_primetab_t13b_props,
903};
904
Hans de Goedea274cd62021-11-24 18:51:25 +0100905static const struct property_entry trekstor_surftab_duo_w1_props[] = {
906 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
907 { }
908};
909
910static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
911 .acpi_name = "GDIX1001:00",
912 .properties = trekstor_surftab_duo_w1_props,
913};
914
Hans de Goede6a655a02018-06-08 23:45:56 +0200915static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
Hans de Goede477d07e2020-05-31 17:05:24 +0200916 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
917 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
918 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
Hans de Goede6a655a02018-06-08 23:45:56 +0200919 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
920 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200921 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200922 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede477d07e2020-05-31 17:05:24 +0200923 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200924 { }
925};
926
Hans de Goede74421782018-06-08 23:45:58 +0200927static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200928 .acpi_name = "MSSL1680:00",
929 .properties = trekstor_surftab_twin_10_1_props,
930};
931
932static const struct property_entry trekstor_surftab_wintron70_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200933 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
934 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
Hans de Goede6a655a02018-06-08 23:45:56 +0200935 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
936 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200937 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200938 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
939 PROPERTY_ENTRY_BOOL("silead,home-button"),
940 { }
941};
942
Hans de Goede74421782018-06-08 23:45:58 +0200943static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200944 .acpi_name = "MSSL1680:00",
945 .properties = trekstor_surftab_wintron70_props,
946};
947
Mark Stampbf653b62021-10-28 11:48:24 +0200948static const struct property_entry viglen_connect_10_props[] = {
949 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
950 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
951 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6),
952 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
953 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
954 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"),
955 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
956 PROPERTY_ENTRY_BOOL("silead,home-button"),
957 { }
958};
959
960static const struct ts_dmi_data viglen_connect_10_data = {
961 .acpi_name = "MSSL1680:00",
962 .properties = viglen_connect_10_props,
963};
964
Andrew Dunai06b2ee02020-05-05 15:15:18 +0300965static const struct property_entry vinga_twizzle_j116_props[] = {
966 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
967 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
968 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
969 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
970 PROPERTY_ENTRY_BOOL("silead,home-button"),
971 { }
972};
973
974static const struct ts_dmi_data vinga_twizzle_j116_data = {
975 .acpi_name = "MSSL1680:00",
976 .properties = vinga_twizzle_j116_props,
977};
978
Hans de Goede6a655a02018-06-08 23:45:56 +0200979/* NOTE: Please keep this table sorted alphabetically */
Hans de Goede835e1b82020-01-15 17:35:53 +0100980const struct dmi_system_id touchscreen_dmi_table[] = {
Hans de Goedecef9dd82017-01-23 18:35:30 +0100981 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200982 /* Chuwi Hi8 */
983 .driver_data = (void *)&chuwi_hi8_data,
984 .matches = {
985 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
986 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
987 },
988 },
989 {
990 /* Chuwi Hi8 (H1D_S806_206) */
991 .driver_data = (void *)&chuwi_hi8_data,
992 .matches = {
993 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
994 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
995 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
996 },
997 },
998 {
Kai Renzigbbb97d72019-02-03 19:34:23 +0100999 /* Chuwi Hi8 Air (CWI543) */
1000 .driver_data = (void *)&chuwi_hi8_air_data,
1001 .matches = {
1002 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1003 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1004 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1005 },
1006 },
1007 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001008 /* Chuwi Hi8 Pro (CWI513) */
1009 .driver_data = (void *)&chuwi_hi8_pro_data,
1010 .matches = {
1011 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1012 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1013 },
1014 },
1015 {
Christian Oderb98dc492019-03-03 14:47:27 +01001016 /* Chuwi Hi10 Air */
1017 .driver_data = (void *)&chuwi_hi10_air_data,
1018 .matches = {
Christian Oder6d789e62019-06-12 14:40:53 +02001019 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1020 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
Christian Oderb98dc492019-03-03 14:47:27 +01001021 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1022 },
1023 },
1024 {
Daniel Smith6baac532019-05-24 02:09:13 +07001025 /* Chuwi Hi10 Plus (CWI527) */
1026 .driver_data = (void *)&chuwi_hi10_plus_data,
1027 .matches = {
1028 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1029 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1030 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1031 },
1032 },
1033 {
Hans de Goedef7b056b2021-05-30 12:47:44 +02001034 /* Chuwi Hi10 Pro (CWI529) */
Hans de Goedee68671e2021-05-20 11:32:28 +02001035 .driver_data = (void *)&chuwi_hi10_pro_data,
1036 .matches = {
1037 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1038 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1039 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1040 },
1041 },
1042 {
Hans de Goede3bf16692021-09-05 15:02:09 +02001043 /* Chuwi HiBook (CWI514) */
1044 .driver_data = (void *)&chuwi_hibook_data,
1045 .matches = {
1046 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1047 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1048 /* Above matches are too generic, add bios-date match */
1049 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1050 },
1051 },
1052 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001053 /* Chuwi Vi8 (CWI506) */
1054 .driver_data = (void *)&chuwi_vi8_data,
1055 .matches = {
1056 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1057 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1058 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1059 },
1060 },
1061 {
Hans de Goedeb94b8072020-01-15 17:35:54 +01001062 /* Chuwi Vi8 Plus (CWI519) */
1063 .driver_data = (void *)&chuwi_vi8_plus_data,
1064 .matches = {
1065 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1066 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1067 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1068 },
1069 },
1070 {
Hans de Goedeb4c86812018-06-08 23:45:57 +02001071 /* Chuwi Vi10 (CWI505) */
1072 .driver_data = (void *)&chuwi_vi10_data,
1073 .matches = {
1074 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1075 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1076 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1077 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1078 },
1079 },
1080 {
Giang Lea0c80972019-08-03 21:12:22 +07001081 /* Chuwi Surbook Mini (CWI540) */
1082 .driver_data = (void *)&chuwi_surbook_mini_data,
1083 .matches = {
1084 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1085 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1086 },
1087 },
1088 {
Hans de Goedec72d95e2018-07-01 11:32:56 +02001089 /* Connect Tablet 9 */
1090 .driver_data = (void *)&connect_tablet9_data,
1091 .matches = {
1092 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1093 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1094 },
1095 },
1096 {
Hans de Goedecef9dd82017-01-23 18:35:30 +01001097 /* CUBE iwork8 Air */
1098 .driver_data = (void *)&cube_iwork8_air_data,
1099 .matches = {
1100 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1101 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1102 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1103 },
1104 },
1105 {
youling257cda59152018-07-31 17:32:56 +08001106 /* Cube KNote i1101 */
1107 .driver_data = (void *)&cube_knote_i1101_data,
1108 .matches = {
1109 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1110 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1111 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1112 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1113 },
1114 },
1115 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001116 /* DEXP Ursus 7W */
1117 .driver_data = (void *)&dexp_ursus_7w_data,
Hans de Goedecef9dd82017-01-23 18:35:30 +01001118 .matches = {
1119 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +02001120 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1121 },
1122 },
1123 {
1124 /* Digma Citi E200 */
1125 .driver_data = (void *)&digma_citi_e200_data,
1126 .matches = {
1127 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1128 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1129 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1130 },
1131 },
1132 {
Hans de Goede46c54cf2020-12-24 14:51:58 +01001133 /* Estar Beauty HD (MID 7316R) */
1134 .driver_data = (void *)&estar_beauty_hd_data,
1135 .matches = {
1136 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1137 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1138 },
1139 },
1140 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001141 /* GP-electronic T701 */
1142 .driver_data = (void *)&gp_electronic_t701_data,
1143 .matches = {
1144 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1145 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1146 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1147 },
1148 },
1149 {
1150 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
1151 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1152 .matches = {
1153 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1154 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1155 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1156 },
1157 },
1158 {
Hans de Goedef078d052019-08-04 15:40:23 +02001159 /* Irbis TW90 */
1160 .driver_data = (void *)&irbis_tw90_data,
1161 .matches = {
1162 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1163 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1164 },
1165 },
1166 {
Hans de Goedec9aa1282020-11-24 12:04:54 +01001167 /* Irbis TW118 */
1168 .driver_data = (void *)&irbis_tw118_data,
1169 .matches = {
1170 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1171 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1172 },
1173 },
1174 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001175 /* I.T.Works TW891 */
1176 .driver_data = (void *)&itworks_tw891_data,
1177 .matches = {
1178 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1179 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
Hans de Goedecef9dd82017-01-23 18:35:30 +01001180 },
1181 },
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001182 {
Hans de Goede828615f2018-05-30 12:43:39 +02001183 /* Jumper EZpad 6 Pro */
1184 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1185 .matches = {
1186 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1187 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1188 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1189 /* Above matches are too generic, add bios-date match */
1190 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1191 },
1192 },
1193 {
Benjamin Renz504a4352019-04-29 17:46:57 +02001194 /* Jumper EZpad 6 Pro B */
1195 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1196 .matches = {
1197 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1198 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1199 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1200 /* Above matches are too generic, add bios-date match */
1201 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1202 },
1203 },
1204 {
Hans de Goedeee7b0d32019-11-12 15:17:11 +01001205 /* Jumper EZpad 6 m4 */
1206 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1207 .matches = {
1208 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1209 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1210 /* Jumper8.S106x.A00C.1066 with the version dropped */
1211 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1212 },
1213 },
1214 {
Hans de Goedeae5919d2021-01-28 12:36:53 +01001215 /* Jumper EZpad 7 */
1216 .driver_data = (void *)&jumper_ezpad_7_data,
1217 .matches = {
1218 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1219 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1220 /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */
1221 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1222 },
1223 },
1224 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001225 /* Jumper EZpad mini3 */
1226 .driver_data = (void *)&jumper_ezpad_mini3_data,
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001227 .matches = {
1228 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +02001229 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
1230 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1231 },
1232 },
1233 {
Teava Radu39a61722021-05-04 20:57:46 +02001234 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */
1235 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1236 .matches = {
1237 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1238 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1239 },
1240 },
1241 {
Hans de Goedef25b6302018-12-04 10:20:04 +01001242 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
1243 .driver_data = (void *)&trekstor_primebook_c11_data,
1244 .matches = {
1245 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1246 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1247 },
1248 },
1249 {
Hans de Goedeefe813d2020-09-01 10:07:52 +02001250 /* MP Man Converter 9 */
1251 .driver_data = (void *)&mpman_converter9_data,
1252 .matches = {
1253 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1254 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1255 },
1256 },
1257 {
Hans de Goedee415da32020-04-01 10:03:48 +02001258 /* MP Man MPWIN895CL */
1259 .driver_data = (void *)&mpman_mpwin895cl_data,
1260 .matches = {
1261 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1262 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1263 },
1264 },
1265 {
Gabriel Lazare79e74a2019-03-15 15:31:14 +02001266 /* Myria MY8307 */
1267 .driver_data = (void *)&myria_my8307_data,
1268 .matches = {
1269 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1270 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1271 },
1272 },
1273 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001274 /* Onda oBook 20 Plus */
1275 .driver_data = (void *)&onda_obook_20_plus_data,
1276 .matches = {
1277 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1278 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1279 },
1280 },
1281 {
Hans de Goede01b6b7e2018-10-10 15:16:40 +02001282 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1283 .driver_data = (void *)&onda_v80_plus_v3_data,
1284 .matches = {
1285 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1286 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1287 },
1288 },
1289 {
Jun Bo Biee08f572018-07-01 17:47:14 -04001290 /* ONDA V820w DualOS */
1291 .driver_data = (void *)&onda_v820w_32g_data,
1292 .matches = {
1293 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1294 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1295 },
1296 },
1297 {
Maksim Karasev295615f2020-04-21 16:25:48 +03001298 /* ONDA V891 v5 */
1299 .driver_data = (void *)&onda_v891_v5_data,
1300 .matches = {
1301 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1302 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1303 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1304 },
1305 },
1306 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001307 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1308 .driver_data = (void *)&onda_v891w_v1_data,
1309 .matches = {
1310 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1311 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1312 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1313 /* Exact match, different versions need different fw */
1314 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1315 },
1316 },
1317 {
youling257c0d73082018-06-18 15:11:44 +02001318 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1319 .driver_data = (void *)&onda_v891w_v3_data,
1320 .matches = {
1321 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1322 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1323 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1324 },
1325 },
1326 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001327 /* Pipo W2S */
1328 .driver_data = (void *)&pipo_w2s_data,
1329 .matches = {
1330 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1331 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1332 },
1333 },
1334 {
Tim Jostenf95eafb2020-01-03 16:00:59 +01001335 /* Pipo W11 */
1336 .driver_data = (void *)&pipo_w11_data,
1337 .matches = {
1338 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1339 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1340 /* Above matches are too generic, add bios-ver match */
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001341 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
Tim Jostenf95eafb2020-01-03 16:00:59 +01001342 },
1343 },
1344 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001345 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1346 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1347 .matches = {
1348 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1349 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1350 /* Exact match, different versions need different fw */
1351 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1352 },
1353 },
1354 {
1355 /* Point of View mobii wintab p800w (v2.0) */
1356 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1357 .matches = {
1358 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1359 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1360 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1361 /* Above matches are too generic, add bios-date match */
1362 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1363 },
1364 },
1365 {
Hans de Goede0f511ed2020-10-15 21:49:49 +02001366 /* Predia Basic tablet) */
1367 .driver_data = (void *)&predia_basic_data,
1368 .matches = {
1369 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1370 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1371 /* Above matches are too generic, add bios-version match */
1372 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1373 },
1374 },
1375 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001376 /* Point of View mobii wintab p800w (v2.1) */
1377 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1378 .matches = {
1379 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1380 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1381 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1382 /* Above matches are too generic, add bios-date match */
1383 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1384 },
1385 },
1386 {
Hans de Goede8335ebc2018-12-20 22:21:50 +01001387 /* Point of View mobii wintab p1006w (v1.0) */
1388 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1389 .matches = {
1390 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1391 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1392 /* Note 105b is Foxcon's USB/PCI vendor id */
1393 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1394 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1395 },
1396 },
1397 {
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +02001398 /* Schneider SCT101CTM */
1399 .driver_data = (void *)&schneider_sct101ctm_data,
1400 .matches = {
1401 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1402 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1403 },
1404 },
1405 {
Wiktor Ciurej97e130f2020-04-02 18:13:13 +02001406 /* Techbite Arc 11.6 */
1407 .driver_data = (void *)&techbite_arc_11_6_data,
1408 .matches = {
1409 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1410 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1411 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1412 },
1413 },
1414 {
Hans de Goede8d01cf62021-04-17 19:31:05 +02001415 /* Teclast Tbook 11 */
1416 .driver_data = (void *)&teclast_tbook11_data,
1417 .matches = {
1418 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1419 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1420 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1421 },
1422 },
1423 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001424 /* Teclast X3 Plus */
1425 .driver_data = (void *)&teclast_x3_plus_data,
1426 .matches = {
1427 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1428 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1429 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1430 },
1431 },
1432 {
Hans de Goedea22e3802021-05-04 20:57:44 +02001433 /* Teclast X89 (Android version / BIOS) */
1434 .driver_data = (void *)&gdix1001_00_upside_down_data,
1435 .matches = {
1436 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1437 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1438 },
1439 },
1440 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001441 /* Teclast X89 (Windows version / BIOS) */
1442 .driver_data = (void *)&gdix1001_01_upside_down_data,
1443 .matches = {
1444 /* tPAD is too generic, also match on bios date */
1445 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1446 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1447 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1448 },
1449 },
1450 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001451 /* Teclast X98 Plus II */
1452 .driver_data = (void *)&teclast_x98plus2_data,
1453 .matches = {
1454 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1455 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1456 },
1457 },
1458 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001459 /* Teclast X98 Pro */
1460 .driver_data = (void *)&gdix1001_00_upside_down_data,
1461 .matches = {
1462 /*
1463 * Only match BIOS date, because the manufacturers
1464 * BIOS does not report the board name at all
1465 * (sometimes)...
1466 */
1467 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1468 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1469 },
1470 },
1471 {
Hans de Goedecacad0b2018-10-04 14:34:45 +02001472 /* Trekstor Primebook C11 */
1473 .driver_data = (void *)&trekstor_primebook_c11_data,
1474 .matches = {
1475 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1476 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1477 },
1478 },
1479 {
Hans de Goede37d960a2019-08-18 13:04:51 +02001480 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1481 .driver_data = (void *)&trekstor_primebook_c11_data,
1482 .matches = {
1483 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1484 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1485 },
1486 },
1487 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001488 /* Trekstor Primebook C13 */
1489 .driver_data = (void *)&trekstor_primebook_c13_data,
1490 .matches = {
1491 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1492 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001493 },
1494 },
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001495 {
Marian Cepok30394a82018-10-08 09:25:05 +02001496 /* Trekstor Primetab T13B */
1497 .driver_data = (void *)&trekstor_primetab_t13b_data,
1498 .matches = {
1499 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1500 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1501 },
1502 },
1503 {
Hans de Goedea274cd62021-11-24 18:51:25 +01001504 /* TrekStor SurfTab duo W1 10.1 ST10432-10b */
1505 .driver_data = (void *)&trekstor_surftab_duo_w1_data,
1506 .matches = {
1507 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1508 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1509 },
1510 },
1511 {
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001512 /* TrekStor SurfTab twin 10.1 ST10432-8 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001513 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001514 .matches = {
1515 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1516 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1517 },
1518 },
1519 {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001520 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001521 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001522 .matches = {
1523 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1524 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1525 /* Exact match, different versions need different fw */
1526 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1527 },
1528 },
Hans de Goeded9ca30b2017-05-07 14:35:15 +02001529 {
Hans de Goede4245c152018-01-16 20:24:15 +01001530 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001531 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede4245c152018-01-16 20:24:15 +01001532 .matches = {
1533 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001534 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
Hans de Goede4245c152018-01-16 20:24:15 +01001535 /* Exact match, different versions need different fw */
1536 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1537 },
1538 },
1539 {
Bernhard Übelacker6b290302020-05-15 17:59:12 +02001540 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1541 .driver_data = (void *)&trekstor_primebook_c11_data,
1542 .matches = {
1543 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1544 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1545 },
1546 },
1547 {
Mark Stampbf653b62021-10-28 11:48:24 +02001548 /* Viglen Connect 10 */
1549 .driver_data = (void *)&viglen_connect_10_data,
1550 .matches = {
1551 DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
1552 DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"),
1553 },
1554 },
1555 {
Andrew Dunai06b2ee02020-05-05 15:15:18 +03001556 /* Vinga Twizzle J116 */
1557 .driver_data = (void *)&vinga_twizzle_j116_data,
1558 .matches = {
1559 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1560 },
1561 },
1562 {
Hans de Goede5a6f0db2021-05-04 20:57:42 +02001563 /* "WinBook TW100" */
1564 .driver_data = (void *)&gdix1001_00_upside_down_data,
1565 .matches = {
1566 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1567 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1568 }
1569 },
1570 {
1571 /* WinBook TW700 */
1572 .driver_data = (void *)&gdix1001_00_upside_down_data,
1573 .matches = {
1574 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1575 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1576 },
1577 },
1578 {
Hans de Goede24e2bb32018-03-09 15:03:58 +01001579 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1580 .driver_data = (void *)&chuwi_vi8_data,
1581 .matches = {
1582 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1583 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1584 },
1585 },
Andy Shevchenko65fce352020-05-05 15:44:45 +03001586 { }
Hans de Goedecef9dd82017-01-23 18:35:30 +01001587};
1588
Hans de Goede74421782018-06-08 23:45:58 +02001589static const struct ts_dmi_data *ts_data;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001590
Hans de Goede74421782018-06-08 23:45:58 +02001591static void ts_dmi_add_props(struct i2c_client *client)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001592{
Dmitry Torokhove1053962017-04-03 20:25:13 -07001593 struct device *dev = &client->dev;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001594 int error;
1595
Hans de Goedecef9dd82017-01-23 18:35:30 +01001596 if (has_acpi_companion(dev) &&
Hans de Goede74421782018-06-08 23:45:58 +02001597 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
Heikki Krogerus87eaede2021-03-04 11:20:23 +03001598 error = device_create_managed_software_node(dev, ts_data->properties, NULL);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001599 if (error)
1600 dev_err(dev, "failed to add properties: %d\n", error);
1601 }
1602}
1603
Hans de Goede74421782018-06-08 23:45:58 +02001604static int ts_dmi_notifier_call(struct notifier_block *nb,
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001605 unsigned long action, void *data)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001606{
1607 struct device *dev = data;
Dmitry Torokhove1053962017-04-03 20:25:13 -07001608 struct i2c_client *client;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001609
1610 switch (action) {
1611 case BUS_NOTIFY_ADD_DEVICE:
Dmitry Torokhove1053962017-04-03 20:25:13 -07001612 client = i2c_verify_client(dev);
1613 if (client)
Hans de Goede74421782018-06-08 23:45:58 +02001614 ts_dmi_add_props(client);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001615 break;
1616
1617 default:
1618 break;
1619 }
1620
1621 return 0;
1622}
1623
Hans de Goede74421782018-06-08 23:45:58 +02001624static struct notifier_block ts_dmi_notifier = {
1625 .notifier_call = ts_dmi_notifier_call,
Hans de Goedecef9dd82017-01-23 18:35:30 +01001626};
1627
Hans de Goede74421782018-06-08 23:45:58 +02001628static int __init ts_dmi_init(void)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001629{
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001630 const struct dmi_system_id *dmi_id;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001631 int error;
1632
Hans de Goede74421782018-06-08 23:45:58 +02001633 dmi_id = dmi_first_match(touchscreen_dmi_table);
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001634 if (!dmi_id)
1635 return 0; /* Not an error */
1636
Hans de Goede74421782018-06-08 23:45:58 +02001637 ts_data = dmi_id->driver_data;
Hans de Goedeb94b8072020-01-15 17:35:54 +01001638 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1639 if (!ts_data->properties)
1640 return 0;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001641
Hans de Goede74421782018-06-08 23:45:58 +02001642 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001643 if (error)
1644 pr_err("%s: failed to register i2c bus notifier: %d\n",
1645 __func__, error);
1646
1647 return error;
1648}
1649
1650/*
1651 * We are registering out notifier after i2c core is initialized and i2c bus
1652 * itself is ready (which happens at postcore initcall level), but before
1653 * ACPI starts enumerating devices (at subsys initcall level).
1654 */
Hans de Goede74421782018-06-08 23:45:58 +02001655arch_initcall(ts_dmi_init);