blob: f9d9045cdf40d8285d91cb2334ac028d5a240d03 [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[] = {
103 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
104 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
105 PROPERTY_ENTRY_U32("touchscreen-size-x", 1914),
106 PROPERTY_ENTRY_U32("touchscreen-size-y", 1283),
107 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
108 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
109 PROPERTY_ENTRY_BOOL("silead,home-button"),
110 { }
111};
112
113static const struct ts_dmi_data chuwi_hi10_plus_data = {
114 .acpi_name = "MSSL0017:00",
115 .properties = chuwi_hi10_plus_props,
116};
117
Hans de Goede6a655a02018-06-08 23:45:56 +0200118static const struct property_entry chuwi_vi8_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200119 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
120 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
Hans de Goede6a655a02018-06-08 23:45:56 +0200121 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
122 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
123 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
124 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
125 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
126 PROPERTY_ENTRY_BOOL("silead,home-button"),
127 { }
128};
129
Hans de Goede74421782018-06-08 23:45:58 +0200130static const struct ts_dmi_data chuwi_vi8_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200131 .acpi_name = "MSSL1680:00",
132 .properties = chuwi_vi8_props,
133};
134
Hans de Goedeb94b8072020-01-15 17:35:54 +0100135static const struct ts_dmi_data chuwi_vi8_plus_data = {
136 .embedded_fw = {
137 .name = "chipone/icn8505-HAMP0002.fw",
138 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
139 .length = 35012,
140 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
141 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
142 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
143 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
144 },
145};
146
Hans de Goedeb4c86812018-06-08 23:45:57 +0200147static const struct property_entry chuwi_vi10_props[] = {
148 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
149 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
150 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
151 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
152 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
153 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
154 PROPERTY_ENTRY_BOOL("silead,home-button"),
155 { }
156};
157
Hans de Goede74421782018-06-08 23:45:58 +0200158static const struct ts_dmi_data chuwi_vi10_data = {
Hans de Goedeb4c86812018-06-08 23:45:57 +0200159 .acpi_name = "MSSL0002:00",
160 .properties = chuwi_vi10_props,
161};
162
Giang Lea0c80972019-08-03 21:12:22 +0700163static const struct property_entry chuwi_surbook_mini_props[] = {
164 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
165 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
166 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
167 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
168 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
169 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
170 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
171 { }
172};
173
174static const struct ts_dmi_data chuwi_surbook_mini_data = {
175 .acpi_name = "MSSL1680:00",
176 .properties = chuwi_surbook_mini_props,
177};
178
Hans de Goedec72d95e2018-07-01 11:32:56 +0200179static const struct property_entry connect_tablet9_props[] = {
180 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
Hans de Goede41049162018-10-20 12:21:00 +0200181 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200182 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
Hans de Goede41049162018-10-20 12:21:00 +0200183 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
Hans de Goedec72d95e2018-07-01 11:32:56 +0200184 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
185 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
186 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
187 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
188 { }
189};
190
191static const struct ts_dmi_data connect_tablet9_data = {
192 .acpi_name = "MSSL1680:00",
193 .properties = connect_tablet9_props,
194};
195
Hans de Goedeae311152017-03-22 16:55:53 +0100196static const struct property_entry cube_iwork8_air_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200197 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
198 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
199 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
200 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goedecef9dd82017-01-23 18:35:30 +0100201 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
202 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
203 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
204 { }
205};
206
Hans de Goede74421782018-06-08 23:45:58 +0200207static const struct ts_dmi_data cube_iwork8_air_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100208 .embedded_fw = {
209 .name = "silead/gsl3670-cube-iwork8-air.fw",
210 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
211 .length = 38808,
212 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
213 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
214 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
215 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
216 },
Hans de Goedecef9dd82017-01-23 18:35:30 +0100217 .acpi_name = "MSSL1680:00",
218 .properties = cube_iwork8_air_props,
219};
220
youling257cda59152018-07-31 17:32:56 +0800221static const struct property_entry cube_knote_i1101_props[] = {
222 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
223 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
224 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
225 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
226 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
227 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
228 PROPERTY_ENTRY_BOOL("silead,home-button"),
229 { }
230};
231
232static const struct ts_dmi_data cube_knote_i1101_data = {
233 .acpi_name = "MSSL1680:00",
234 .properties = cube_knote_i1101_props,
235};
236
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100237static const struct property_entry dexp_ursus_7w_props[] = {
238 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
239 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
240 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
241 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200242 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100243 { }
244};
245
Hans de Goede74421782018-06-08 23:45:58 +0200246static const struct ts_dmi_data dexp_ursus_7w_data = {
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100247 .acpi_name = "MSSL1680:00",
248 .properties = dexp_ursus_7w_props,
249};
250
Hans de Goede6a655a02018-06-08 23:45:56 +0200251static const struct property_entry digma_citi_e200_props[] = {
252 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
253 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
254 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200255 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200256 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200257 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200258 { }
259};
260
Hans de Goede74421782018-06-08 23:45:58 +0200261static const struct ts_dmi_data digma_citi_e200_data = {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200262 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200263 .properties = digma_citi_e200_props,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +0200264};
265
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200266static const struct property_entry gp_electronic_t701_props[] = {
267 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
268 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
Hans de Goede5c24c052017-10-19 09:44:14 +0200269 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
270 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200271 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200272 { }
273};
274
Hans de Goede74421782018-06-08 23:45:58 +0200275static const struct ts_dmi_data gp_electronic_t701_data = {
Hans de Goeded9ca30b2017-05-07 14:35:15 +0200276 .acpi_name = "MSSL1680:00",
277 .properties = gp_electronic_t701_props,
278};
279
Hans de Goedef078d052019-08-04 15:40:23 +0200280static const struct property_entry irbis_tw90_props[] = {
281 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
282 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
283 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
284 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
285 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
286 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
287 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
288 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
289 PROPERTY_ENTRY_BOOL("silead,home-button"),
290 { }
291};
292
293static const struct ts_dmi_data irbis_tw90_data = {
294 .acpi_name = "MSSL1680:00",
295 .properties = irbis_tw90_props,
296};
297
Hans de Goede6a655a02018-06-08 23:45:56 +0200298static const struct property_entry itworks_tw891_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200299 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
300 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
Hans de Goede6a655a02018-06-08 23:45:56 +0200301 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
Hans de Goede41049162018-10-20 12:21:00 +0200302 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
Hans de Goede6a655a02018-06-08 23:45:56 +0200303 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
304 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
305 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200306 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goede6a655a02018-06-08 23:45:56 +0200307 { }
308};
309
Hans de Goede74421782018-06-08 23:45:58 +0200310static const struct ts_dmi_data itworks_tw891_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200311 .acpi_name = "MSSL1680:00",
312 .properties = itworks_tw891_props,
313};
314
315static const struct property_entry jumper_ezpad_6_pro_props[] = {
316 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
317 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
318 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
319 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
320 PROPERTY_ENTRY_BOOL("silead,home-button"),
321 { }
322};
323
Hans de Goede74421782018-06-08 23:45:58 +0200324static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200325 .acpi_name = "MSSL1680:00",
326 .properties = jumper_ezpad_6_pro_props,
327};
328
Benjamin Renz504a4352019-04-29 17:46:57 +0200329static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
330 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
331 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
332 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
333 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
334 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
335 PROPERTY_ENTRY_BOOL("silead,home-button"),
336 { }
337};
338
339static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
340 .acpi_name = "MSSL1680:00",
341 .properties = jumper_ezpad_6_pro_b_props,
342};
343
Hans de Goedeee7b0d32019-11-12 15:17:11 +0100344static const struct property_entry jumper_ezpad_6_m4_props[] = {
345 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
346 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
347 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
348 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
349 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
350 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
351 PROPERTY_ENTRY_BOOL("silead,home-button"),
352 { }
353};
354
355static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
356 .acpi_name = "MSSL1680:00",
357 .properties = jumper_ezpad_6_m4_props,
358};
359
Hans de Goede6a655a02018-06-08 23:45:56 +0200360static const struct property_entry jumper_ezpad_mini3_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200361 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
362 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
Hans de Goede6a655a02018-06-08 23:45:56 +0200363 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
Hans de Goede41049162018-10-20 12:21:00 +0200364 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
Hans de Goede6a655a02018-06-08 23:45:56 +0200365 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
366 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
367 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
368 { }
369};
370
Hans de Goede74421782018-06-08 23:45:58 +0200371static const struct ts_dmi_data jumper_ezpad_mini3_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200372 .acpi_name = "MSSL1680:00",
373 .properties = jumper_ezpad_mini3_props,
374};
375
Hans de Goedee415da32020-04-01 10:03:48 +0200376static const struct property_entry mpman_mpwin895cl_props[] = {
377 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
378 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
379 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
380 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
381 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
382 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
383 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
384 PROPERTY_ENTRY_BOOL("silead,home-button"),
385 { }
386};
387
388static const struct ts_dmi_data mpman_mpwin895cl_data = {
389 .acpi_name = "MSSL1680:00",
390 .properties = mpman_mpwin895cl_props,
391};
392
Gabriel Lazare79e74a2019-03-15 15:31:14 +0200393static const struct property_entry myria_my8307_props[] = {
394 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
395 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
396 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
397 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
398 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
399 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
400 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
401 PROPERTY_ENTRY_BOOL("silead,home-button"),
402 { }
403};
404
405static const struct ts_dmi_data myria_my8307_data = {
406 .acpi_name = "MSSL1680:00",
407 .properties = myria_my8307_props,
408};
409
Hans de Goede6a655a02018-06-08 23:45:56 +0200410static const struct property_entry onda_obook_20_plus_props[] = {
411 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
412 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
413 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
414 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
415 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
416 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
417 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
418 PROPERTY_ENTRY_BOOL("silead,home-button"),
419 { }
420};
421
Hans de Goede74421782018-06-08 23:45:58 +0200422static const struct ts_dmi_data onda_obook_20_plus_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200423 .acpi_name = "MSSL1680:00",
424 .properties = onda_obook_20_plus_props,
425};
426
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200427static const struct property_entry onda_v80_plus_v3_props[] = {
428 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
429 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
430 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
431 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
432 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200433 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200434 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
435 PROPERTY_ENTRY_BOOL("silead,home-button"),
436 { }
437};
438
439static const struct ts_dmi_data onda_v80_plus_v3_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100440 .embedded_fw = {
441 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
442 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
443 .length = 37224,
444 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
445 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
446 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
447 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
448 },
Hans de Goede01b6b7e2018-10-10 15:16:40 +0200449 .acpi_name = "MSSL1680:00",
450 .properties = onda_v80_plus_v3_props,
451};
452
Jun Bo Biee08f572018-07-01 17:47:14 -0400453static const struct property_entry onda_v820w_32g_props[] = {
454 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
455 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
456 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200457 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
Jun Bo Biee08f572018-07-01 17:47:14 -0400458 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
459 PROPERTY_ENTRY_BOOL("silead,home-button"),
460 { }
461};
462
463static const struct ts_dmi_data onda_v820w_32g_data = {
464 .acpi_name = "MSSL1680:00",
465 .properties = onda_v820w_32g_props,
466};
467
Maksim Karasev295615f2020-04-21 16:25:48 +0300468static const struct property_entry onda_v891_v5_props[] = {
469 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
470 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
471 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
472 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
473 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
474 PROPERTY_ENTRY_STRING("firmware-name",
475 "gsl3676-onda-v891-v5.fw"),
476 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
477 PROPERTY_ENTRY_BOOL("silead,home-button"),
478 { }
479};
480
481static const struct ts_dmi_data onda_v891_v5_data = {
482 .acpi_name = "MSSL1680:00",
483 .properties = onda_v891_v5_props,
484};
485
Hans de Goede6a655a02018-06-08 23:45:56 +0200486static const struct property_entry onda_v891w_v1_props[] = {
487 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
488 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
489 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
490 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200491 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200492 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
493 PROPERTY_ENTRY_BOOL("silead,home-button"),
494 { }
495};
496
Hans de Goede74421782018-06-08 23:45:58 +0200497static const struct ts_dmi_data onda_v891w_v1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200498 .acpi_name = "MSSL1680:00",
499 .properties = onda_v891w_v1_props,
500};
501
youling257c0d73082018-06-18 15:11:44 +0200502static const struct property_entry onda_v891w_v3_props[] = {
503 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
504 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
505 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
506 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
507 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200508 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
youling257c0d73082018-06-18 15:11:44 +0200509 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
510 PROPERTY_ENTRY_BOOL("silead,home-button"),
511 { }
512};
513
514static const struct ts_dmi_data onda_v891w_v3_data = {
515 .acpi_name = "MSSL1680:00",
516 .properties = onda_v891w_v3_props,
517};
518
Hans de Goede13fadfa2017-06-15 08:48:32 +0200519static const struct property_entry pipo_w2s_props[] = {
520 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
521 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
522 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
523 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200524 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
Hans de Goede13fadfa2017-06-15 08:48:32 +0200525 { }
526};
527
Hans de Goede74421782018-06-08 23:45:58 +0200528static const struct ts_dmi_data pipo_w2s_data = {
Hans de Goede835e1b82020-01-15 17:35:53 +0100529 .embedded_fw = {
530 .name = "silead/gsl1680-pipo-w2s.fw",
531 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
532 .length = 39072,
533 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
534 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
535 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
536 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
537 },
Hans de Goede13fadfa2017-06-15 08:48:32 +0200538 .acpi_name = "MSSL1680:00",
539 .properties = pipo_w2s_props,
540};
541
Tim Jostenf95eafb2020-01-03 16:00:59 +0100542static const struct property_entry pipo_w11_props[] = {
543 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
544 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
545 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
546 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200547 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
Tim Jostenf95eafb2020-01-03 16:00:59 +0100548 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
549 PROPERTY_ENTRY_BOOL("silead,home-button"),
550 { }
551};
552
553static const struct ts_dmi_data pipo_w11_data = {
554 .acpi_name = "MSSL1680:00",
555 .properties = pipo_w11_props,
556};
557
Hans de Goede3cd33db2018-05-30 12:43:40 +0200558static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
559 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
560 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
561 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
562 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
563 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200564 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
Hans de Goede3cd33db2018-05-30 12:43:40 +0200565 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
566 PROPERTY_ENTRY_BOOL("silead,home-button"),
567 { }
568};
569
Hans de Goede74421782018-06-08 23:45:58 +0200570static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
Hans de Goede3cd33db2018-05-30 12:43:40 +0200571 .acpi_name = "MSSL1680:00",
572 .properties = pov_mobii_wintab_p800w_v20_props,
573};
574
575static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200576 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
577 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
578 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
579 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200580 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200581 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
Hans de Goede41049162018-10-20 12:21:00 +0200582 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
Hans de Goedeaaa40962017-10-19 09:17:28 +0200583 PROPERTY_ENTRY_BOOL("silead,home-button"),
Hans de Goedef4d342c2017-06-15 08:48:31 +0200584 { }
585};
586
Hans de Goede74421782018-06-08 23:45:58 +0200587static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
Hans de Goedef4d342c2017-06-15 08:48:31 +0200588 .acpi_name = "MSSL1680:00",
Hans de Goede3cd33db2018-05-30 12:43:40 +0200589 .properties = pov_mobii_wintab_p800w_v21_props,
Hans de Goedef4d342c2017-06-15 08:48:31 +0200590};
591
Hans de Goede8335ebc2018-12-20 22:21:50 +0100592static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
593 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
594 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
595 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
596 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
597 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200598 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
Hans de Goede8335ebc2018-12-20 22:21:50 +0100599 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
600 PROPERTY_ENTRY_BOOL("silead,home-button"),
601 { }
602};
603
604static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
605 .acpi_name = "MSSL1680:00",
606 .properties = pov_mobii_wintab_p1006w_v10_props,
607};
608
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200609static const struct property_entry schneider_sct101ctm_props[] = {
610 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
611 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
612 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
613 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
614 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200615 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +0200616 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
617 PROPERTY_ENTRY_BOOL("silead,home-button"),
618 { }
619};
620
621static const struct ts_dmi_data schneider_sct101ctm_data = {
622 .acpi_name = "MSSL1680:00",
623 .properties = schneider_sct101ctm_props,
624};
625
Wiktor Ciurej97e130f2020-04-02 18:13:13 +0200626static const struct property_entry techbite_arc_11_6_props[] = {
627 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
628 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
629 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
630 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
631 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
632 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
633 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
634 { }
635};
636
637static const struct ts_dmi_data techbite_arc_11_6_data = {
638 .acpi_name = "MSSL1680:00",
639 .properties = techbite_arc_11_6_props,
640};
641
Hans de Goede6a655a02018-06-08 23:45:56 +0200642static const struct property_entry teclast_x3_plus_props[] = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200643 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
644 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
Hans de Goede6a655a02018-06-08 23:45:56 +0200645 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200646 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
647 PROPERTY_ENTRY_BOOL("silead,home-button"),
648 { }
649};
650
Hans de Goede74421782018-06-08 23:45:58 +0200651static const struct ts_dmi_data teclast_x3_plus_data = {
Sergey Tshovrebov3fcf2b22017-10-27 12:27:07 +0200652 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200653 .properties = teclast_x3_plus_props,
Hans de Goede2aeb2c32017-12-25 13:45:25 +0100654};
655
Paul Cercueila346aa22018-01-02 19:39:27 +0100656static const struct property_entry teclast_x98plus2_props[] = {
657 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
658 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
659 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
660 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200661 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
Paul Cercueila346aa22018-01-02 19:39:27 +0100662 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
663 { }
664};
665
Hans de Goede74421782018-06-08 23:45:58 +0200666static const struct ts_dmi_data teclast_x98plus2_data = {
Paul Cercueila346aa22018-01-02 19:39:27 +0100667 .acpi_name = "MSSL1680:00",
668 .properties = teclast_x98plus2_props,
669};
670
Hans de Goedecacad0b2018-10-04 14:34:45 +0200671static const struct property_entry trekstor_primebook_c11_props[] = {
672 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
673 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
674 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200675 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
Hans de Goedecacad0b2018-10-04 14:34:45 +0200676 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
677 PROPERTY_ENTRY_BOOL("silead,home-button"),
678 { }
679};
680
681static const struct ts_dmi_data trekstor_primebook_c11_data = {
682 .acpi_name = "MSSL1680:00",
683 .properties = trekstor_primebook_c11_props,
684};
685
Hans de Goede6a655a02018-06-08 23:45:56 +0200686static const struct property_entry trekstor_primebook_c13_props[] = {
687 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
688 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200689 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
Hans de Goedeadf762d2018-05-30 12:43:41 +0200690 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
691 PROPERTY_ENTRY_BOOL("silead,home-button"),
692 { }
693};
694
Hans de Goede74421782018-06-08 23:45:58 +0200695static const struct ts_dmi_data trekstor_primebook_c13_data = {
Hans de Goedeadf762d2018-05-30 12:43:41 +0200696 .acpi_name = "MSSL1680:00",
Hans de Goede6a655a02018-06-08 23:45:56 +0200697 .properties = trekstor_primebook_c13_props,
Hans de Goedeadf762d2018-05-30 12:43:41 +0200698};
699
Marian Cepok30394a82018-10-08 09:25:05 +0200700static const struct property_entry trekstor_primetab_t13b_props[] = {
701 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
702 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200703 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
Marian Cepok30394a82018-10-08 09:25:05 +0200704 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
705 PROPERTY_ENTRY_BOOL("silead,home-button"),
706 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
707 { }
708};
709
710static const struct ts_dmi_data trekstor_primetab_t13b_data = {
711 .acpi_name = "MSSL1680:00",
712 .properties = trekstor_primetab_t13b_props,
713};
714
Hans de Goede6a655a02018-06-08 23:45:56 +0200715static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
716 PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
717 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
718 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200719 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200720 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
721 { }
722};
723
Hans de Goede74421782018-06-08 23:45:58 +0200724static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200725 .acpi_name = "MSSL1680:00",
726 .properties = trekstor_surftab_twin_10_1_props,
727};
728
729static const struct property_entry trekstor_surftab_wintron70_props[] = {
Hans de Goede41049162018-10-20 12:21:00 +0200730 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
731 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
Hans de Goede6a655a02018-06-08 23:45:56 +0200732 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
733 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
Andy Shevchenkodf532c12020-01-09 17:34:05 +0200734 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200735 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
736 PROPERTY_ENTRY_BOOL("silead,home-button"),
737 { }
738};
739
Hans de Goede74421782018-06-08 23:45:58 +0200740static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
Hans de Goede6a655a02018-06-08 23:45:56 +0200741 .acpi_name = "MSSL1680:00",
742 .properties = trekstor_surftab_wintron70_props,
743};
744
Andrew Dunai06b2ee02020-05-05 15:15:18 +0300745static const struct property_entry vinga_twizzle_j116_props[] = {
746 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
747 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
748 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
749 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
750 PROPERTY_ENTRY_BOOL("silead,home-button"),
751 { }
752};
753
754static const struct ts_dmi_data vinga_twizzle_j116_data = {
755 .acpi_name = "MSSL1680:00",
756 .properties = vinga_twizzle_j116_props,
757};
758
Hans de Goede6a655a02018-06-08 23:45:56 +0200759/* NOTE: Please keep this table sorted alphabetically */
Hans de Goede835e1b82020-01-15 17:35:53 +0100760const struct dmi_system_id touchscreen_dmi_table[] = {
Hans de Goedecef9dd82017-01-23 18:35:30 +0100761 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200762 /* Chuwi Hi8 */
763 .driver_data = (void *)&chuwi_hi8_data,
764 .matches = {
765 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
766 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
767 },
768 },
769 {
770 /* Chuwi Hi8 (H1D_S806_206) */
771 .driver_data = (void *)&chuwi_hi8_data,
772 .matches = {
773 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
774 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
775 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
776 },
777 },
778 {
Kai Renzigbbb97d72019-02-03 19:34:23 +0100779 /* Chuwi Hi8 Air (CWI543) */
780 .driver_data = (void *)&chuwi_hi8_air_data,
781 .matches = {
782 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
783 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
784 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
785 },
786 },
787 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200788 /* Chuwi Hi8 Pro (CWI513) */
789 .driver_data = (void *)&chuwi_hi8_pro_data,
790 .matches = {
791 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
792 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
793 },
794 },
795 {
Christian Oderb98dc492019-03-03 14:47:27 +0100796 /* Chuwi Hi10 Air */
797 .driver_data = (void *)&chuwi_hi10_air_data,
798 .matches = {
Christian Oder6d789e62019-06-12 14:40:53 +0200799 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
800 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
Christian Oderb98dc492019-03-03 14:47:27 +0100801 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
802 },
803 },
804 {
Daniel Smith6baac532019-05-24 02:09:13 +0700805 /* Chuwi Hi10 Plus (CWI527) */
806 .driver_data = (void *)&chuwi_hi10_plus_data,
807 .matches = {
808 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
809 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
810 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
811 },
812 },
813 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200814 /* Chuwi Vi8 (CWI506) */
815 .driver_data = (void *)&chuwi_vi8_data,
816 .matches = {
817 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
818 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
819 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
820 },
821 },
822 {
Hans de Goedeb94b8072020-01-15 17:35:54 +0100823 /* Chuwi Vi8 Plus (CWI519) */
824 .driver_data = (void *)&chuwi_vi8_plus_data,
825 .matches = {
826 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
827 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
828 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
829 },
830 },
831 {
Hans de Goedeb4c86812018-06-08 23:45:57 +0200832 /* Chuwi Vi10 (CWI505) */
833 .driver_data = (void *)&chuwi_vi10_data,
834 .matches = {
835 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
836 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
837 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
838 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
839 },
840 },
841 {
Giang Lea0c80972019-08-03 21:12:22 +0700842 /* Chuwi Surbook Mini (CWI540) */
843 .driver_data = (void *)&chuwi_surbook_mini_data,
844 .matches = {
845 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
846 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
847 },
848 },
849 {
Hans de Goedec72d95e2018-07-01 11:32:56 +0200850 /* Connect Tablet 9 */
851 .driver_data = (void *)&connect_tablet9_data,
852 .matches = {
853 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
854 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
855 },
856 },
857 {
Hans de Goedecef9dd82017-01-23 18:35:30 +0100858 /* CUBE iwork8 Air */
859 .driver_data = (void *)&cube_iwork8_air_data,
860 .matches = {
861 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
862 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
863 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
864 },
865 },
866 {
youling257cda59152018-07-31 17:32:56 +0800867 /* Cube KNote i1101 */
868 .driver_data = (void *)&cube_knote_i1101_data,
869 .matches = {
870 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
871 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
872 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
873 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
874 },
875 },
876 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200877 /* DEXP Ursus 7W */
878 .driver_data = (void *)&dexp_ursus_7w_data,
Hans de Goedecef9dd82017-01-23 18:35:30 +0100879 .matches = {
880 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200881 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
882 },
883 },
884 {
885 /* Digma Citi E200 */
886 .driver_data = (void *)&digma_citi_e200_data,
887 .matches = {
888 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
889 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
890 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
891 },
892 },
893 {
894 /* GP-electronic T701 */
895 .driver_data = (void *)&gp_electronic_t701_data,
896 .matches = {
897 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
898 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
899 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
900 },
901 },
902 {
903 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */
904 .driver_data = (void *)&trekstor_surftab_wintron70_data,
905 .matches = {
906 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
907 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
908 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
909 },
910 },
911 {
Hans de Goedef078d052019-08-04 15:40:23 +0200912 /* Irbis TW90 */
913 .driver_data = (void *)&irbis_tw90_data,
914 .matches = {
915 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
916 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
917 },
918 },
919 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200920 /* I.T.Works TW891 */
921 .driver_data = (void *)&itworks_tw891_data,
922 .matches = {
923 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
924 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
Hans de Goedecef9dd82017-01-23 18:35:30 +0100925 },
926 },
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100927 {
Hans de Goede828615f2018-05-30 12:43:39 +0200928 /* Jumper EZpad 6 Pro */
929 .driver_data = (void *)&jumper_ezpad_6_pro_data,
930 .matches = {
931 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
932 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
933 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
934 /* Above matches are too generic, add bios-date match */
935 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
936 },
937 },
938 {
Benjamin Renz504a4352019-04-29 17:46:57 +0200939 /* Jumper EZpad 6 Pro B */
940 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
941 .matches = {
942 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
943 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
944 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
945 /* Above matches are too generic, add bios-date match */
946 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
947 },
948 },
949 {
Hans de Goedeee7b0d32019-11-12 15:17:11 +0100950 /* Jumper EZpad 6 m4 */
951 .driver_data = (void *)&jumper_ezpad_6_m4_data,
952 .matches = {
953 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
954 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
955 /* Jumper8.S106x.A00C.1066 with the version dropped */
956 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
957 },
958 },
959 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200960 /* Jumper EZpad mini3 */
961 .driver_data = (void *)&jumper_ezpad_mini3_data,
Hans de Goede6b8e7d82017-03-22 16:55:54 +0100962 .matches = {
963 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
Hans de Goede6a655a02018-06-08 23:45:56 +0200964 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */
965 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
966 },
967 },
968 {
Hans de Goedef25b6302018-12-04 10:20:04 +0100969 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */
970 .driver_data = (void *)&trekstor_primebook_c11_data,
971 .matches = {
972 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
973 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
974 },
975 },
976 {
Hans de Goedee415da32020-04-01 10:03:48 +0200977 /* MP Man MPWIN895CL */
978 .driver_data = (void *)&mpman_mpwin895cl_data,
979 .matches = {
980 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
981 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
982 },
983 },
984 {
Gabriel Lazare79e74a2019-03-15 15:31:14 +0200985 /* Myria MY8307 */
986 .driver_data = (void *)&myria_my8307_data,
987 .matches = {
988 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
989 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
990 },
991 },
992 {
Hans de Goede6a655a02018-06-08 23:45:56 +0200993 /* Onda oBook 20 Plus */
994 .driver_data = (void *)&onda_obook_20_plus_data,
995 .matches = {
996 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
997 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
998 },
999 },
1000 {
Hans de Goede01b6b7e2018-10-10 15:16:40 +02001001 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */
1002 .driver_data = (void *)&onda_v80_plus_v3_data,
1003 .matches = {
1004 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1005 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1006 },
1007 },
1008 {
Jun Bo Biee08f572018-07-01 17:47:14 -04001009 /* ONDA V820w DualOS */
1010 .driver_data = (void *)&onda_v820w_32g_data,
1011 .matches = {
1012 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1013 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1014 },
1015 },
1016 {
Maksim Karasev295615f2020-04-21 16:25:48 +03001017 /* ONDA V891 v5 */
1018 .driver_data = (void *)&onda_v891_v5_data,
1019 .matches = {
1020 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1021 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1022 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1023 },
1024 },
1025 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001026 /* ONDA V891w revision P891WBEBV1B00 aka v1 */
1027 .driver_data = (void *)&onda_v891w_v1_data,
1028 .matches = {
1029 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1030 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1031 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1032 /* Exact match, different versions need different fw */
1033 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1034 },
1035 },
1036 {
youling257c0d73082018-06-18 15:11:44 +02001037 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */
1038 .driver_data = (void *)&onda_v891w_v3_data,
1039 .matches = {
1040 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1041 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1042 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1043 },
1044 },
1045 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001046 /* Pipo W2S */
1047 .driver_data = (void *)&pipo_w2s_data,
1048 .matches = {
1049 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1050 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1051 },
1052 },
1053 {
Tim Jostenf95eafb2020-01-03 16:00:59 +01001054 /* Pipo W11 */
1055 .driver_data = (void *)&pipo_w11_data,
1056 .matches = {
1057 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1058 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1059 /* Above matches are too generic, add bios-ver match */
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001060 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
Tim Jostenf95eafb2020-01-03 16:00:59 +01001061 },
1062 },
1063 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001064 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */
1065 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1066 .matches = {
1067 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1068 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1069 /* Exact match, different versions need different fw */
1070 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1071 },
1072 },
1073 {
1074 /* Point of View mobii wintab p800w (v2.0) */
1075 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1076 .matches = {
1077 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1078 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1079 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1080 /* Above matches are too generic, add bios-date match */
1081 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1082 },
1083 },
1084 {
1085 /* Point of View mobii wintab p800w (v2.1) */
1086 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1087 .matches = {
1088 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1089 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1090 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1091 /* Above matches are too generic, add bios-date match */
1092 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1093 },
1094 },
1095 {
Hans de Goede8335ebc2018-12-20 22:21:50 +01001096 /* Point of View mobii wintab p1006w (v1.0) */
1097 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1098 .matches = {
1099 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1100 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1101 /* Note 105b is Foxcon's USB/PCI vendor id */
1102 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1103 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1104 },
1105 },
1106 {
Daniel Gorbea Ainz3caa6f32019-10-23 20:53:23 +02001107 /* Schneider SCT101CTM */
1108 .driver_data = (void *)&schneider_sct101ctm_data,
1109 .matches = {
1110 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1111 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1112 },
1113 },
1114 {
Wiktor Ciurej97e130f2020-04-02 18:13:13 +02001115 /* Techbite Arc 11.6 */
1116 .driver_data = (void *)&techbite_arc_11_6_data,
1117 .matches = {
1118 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1119 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1120 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1121 },
1122 },
1123 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001124 /* Teclast X3 Plus */
1125 .driver_data = (void *)&teclast_x3_plus_data,
1126 .matches = {
1127 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1128 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1129 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1130 },
1131 },
1132 {
1133 /* Teclast X98 Plus II */
1134 .driver_data = (void *)&teclast_x98plus2_data,
1135 .matches = {
1136 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1137 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1138 },
1139 },
1140 {
Hans de Goedecacad0b2018-10-04 14:34:45 +02001141 /* Trekstor Primebook C11 */
1142 .driver_data = (void *)&trekstor_primebook_c11_data,
1143 .matches = {
1144 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1145 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1146 },
1147 },
1148 {
Hans de Goede37d960a2019-08-18 13:04:51 +02001149 /* Trekstor Primebook C11B (same touchscreen as the C11) */
1150 .driver_data = (void *)&trekstor_primebook_c11_data,
1151 .matches = {
1152 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1153 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1154 },
1155 },
1156 {
Hans de Goede6a655a02018-06-08 23:45:56 +02001157 /* Trekstor Primebook C13 */
1158 .driver_data = (void *)&trekstor_primebook_c13_data,
1159 .matches = {
1160 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1161 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
Hans de Goede6b8e7d82017-03-22 16:55:54 +01001162 },
1163 },
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001164 {
Marian Cepok30394a82018-10-08 09:25:05 +02001165 /* Trekstor Primetab T13B */
1166 .driver_data = (void *)&trekstor_primetab_t13b_data,
1167 .matches = {
1168 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1169 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1170 },
1171 },
1172 {
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001173 /* TrekStor SurfTab twin 10.1 ST10432-8 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001174 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
Bernhard Übelackerf4c12d42017-11-26 19:32:58 +01001175 .matches = {
1176 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1177 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1178 },
1179 },
1180 {
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001181 /* Trekstor Surftab Wintron 7.0 ST70416-6 */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001182 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede5b7bb3a2017-04-09 11:07:44 +02001183 .matches = {
1184 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1185 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1186 /* Exact match, different versions need different fw */
1187 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1188 },
1189 },
Hans de Goeded9ca30b2017-05-07 14:35:15 +02001190 {
Hans de Goede4245c152018-01-16 20:24:15 +01001191 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */
Hans de Goeded6b0d7d2018-06-08 23:45:55 +02001192 .driver_data = (void *)&trekstor_surftab_wintron70_data,
Hans de Goede4245c152018-01-16 20:24:15 +01001193 .matches = {
1194 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001195 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
Hans de Goede4245c152018-01-16 20:24:15 +01001196 /* Exact match, different versions need different fw */
1197 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1198 },
1199 },
1200 {
Bernhard Übelacker6b290302020-05-15 17:59:12 +02001201 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */
1202 .driver_data = (void *)&trekstor_primebook_c11_data,
1203 .matches = {
1204 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1205 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1206 },
1207 },
1208 {
Andrew Dunai06b2ee02020-05-05 15:15:18 +03001209 /* Vinga Twizzle J116 */
1210 .driver_data = (void *)&vinga_twizzle_j116_data,
1211 .matches = {
1212 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1213 },
1214 },
1215 {
Hans de Goede24e2bb32018-03-09 15:03:58 +01001216 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */
1217 .driver_data = (void *)&chuwi_vi8_data,
1218 .matches = {
1219 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1220 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1221 },
1222 },
Andy Shevchenko65fce352020-05-05 15:44:45 +03001223 { }
Hans de Goedecef9dd82017-01-23 18:35:30 +01001224};
1225
Hans de Goede74421782018-06-08 23:45:58 +02001226static const struct ts_dmi_data *ts_data;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001227
Hans de Goede74421782018-06-08 23:45:58 +02001228static void ts_dmi_add_props(struct i2c_client *client)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001229{
Dmitry Torokhove1053962017-04-03 20:25:13 -07001230 struct device *dev = &client->dev;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001231 int error;
1232
Hans de Goedecef9dd82017-01-23 18:35:30 +01001233 if (has_acpi_companion(dev) &&
Hans de Goede74421782018-06-08 23:45:58 +02001234 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
1235 error = device_add_properties(dev, ts_data->properties);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001236 if (error)
1237 dev_err(dev, "failed to add properties: %d\n", error);
1238 }
1239}
1240
Hans de Goede74421782018-06-08 23:45:58 +02001241static int ts_dmi_notifier_call(struct notifier_block *nb,
Andy Shevchenkodf532c12020-01-09 17:34:05 +02001242 unsigned long action, void *data)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001243{
1244 struct device *dev = data;
Dmitry Torokhove1053962017-04-03 20:25:13 -07001245 struct i2c_client *client;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001246
1247 switch (action) {
1248 case BUS_NOTIFY_ADD_DEVICE:
Dmitry Torokhove1053962017-04-03 20:25:13 -07001249 client = i2c_verify_client(dev);
1250 if (client)
Hans de Goede74421782018-06-08 23:45:58 +02001251 ts_dmi_add_props(client);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001252 break;
1253
1254 default:
1255 break;
1256 }
1257
1258 return 0;
1259}
1260
Hans de Goede74421782018-06-08 23:45:58 +02001261static struct notifier_block ts_dmi_notifier = {
1262 .notifier_call = ts_dmi_notifier_call,
Hans de Goedecef9dd82017-01-23 18:35:30 +01001263};
1264
Hans de Goede74421782018-06-08 23:45:58 +02001265static int __init ts_dmi_init(void)
Hans de Goedecef9dd82017-01-23 18:35:30 +01001266{
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001267 const struct dmi_system_id *dmi_id;
Hans de Goedecef9dd82017-01-23 18:35:30 +01001268 int error;
1269
Hans de Goede74421782018-06-08 23:45:58 +02001270 dmi_id = dmi_first_match(touchscreen_dmi_table);
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001271 if (!dmi_id)
1272 return 0; /* Not an error */
1273
Hans de Goede74421782018-06-08 23:45:58 +02001274 ts_data = dmi_id->driver_data;
Hans de Goedeb94b8072020-01-15 17:35:54 +01001275 /* Some dmi table entries only provide an efi_embedded_fw_desc */
1276 if (!ts_data->properties)
1277 return 0;
Dmitry Torokhovf22265b2017-04-03 20:25:14 -07001278
Hans de Goede74421782018-06-08 23:45:58 +02001279 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
Hans de Goedecef9dd82017-01-23 18:35:30 +01001280 if (error)
1281 pr_err("%s: failed to register i2c bus notifier: %d\n",
1282 __func__, error);
1283
1284 return error;
1285}
1286
1287/*
1288 * We are registering out notifier after i2c core is initialized and i2c bus
1289 * itself is ready (which happens at postcore initcall level), but before
1290 * ACPI starts enumerating devices (at subsys initcall level).
1291 */
Hans de Goede74421782018-06-08 23:45:58 +02001292arch_initcall(ts_dmi_init);