1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Touchscreen driver DMI based configuration code 4 * 5 * Copyright (c) 2017 Red Hat Inc. 6 * 7 * Red Hat authors: 8 * Hans de Goede <hdegoede@redhat.com> 9 */ 10 11 #include <linux/acpi.h> 12 #include <linux/device.h> 13 #include <linux/dmi.h> 14 #include <linux/efi_embedded_fw.h> 15 #include <linux/i2c.h> 16 #include <linux/notifier.h> 17 #include <linux/property.h> 18 #include <linux/string.h> 19 20 struct ts_dmi_data { 21 /* The EFI embedded-fw code expects this to be the first member! */ 22 struct efi_embedded_fw_desc embedded_fw; 23 const char *acpi_name; 24 const struct property_entry *properties; 25 }; 26 27 /* NOTE: Please keep all entries sorted alphabetically */ 28 29 static 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 38 static const struct ts_dmi_data chuwi_hi8_data = { 39 .acpi_name = "MSSL0001:00", 40 .properties = chuwi_hi8_props, 41 }; 42 43 static 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 52 static const struct ts_dmi_data chuwi_hi8_air_data = { 53 .acpi_name = "MSSL1680:00", 54 .properties = chuwi_hi8_air_props, 55 }; 56 57 static const struct property_entry chuwi_hi8_pro_props[] = { 58 PROPERTY_ENTRY_U32("touchscreen-min-x", 6), 59 PROPERTY_ENTRY_U32("touchscreen-min-y", 3), 60 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 61 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), 62 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 63 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"), 64 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 65 PROPERTY_ENTRY_BOOL("silead,home-button"), 66 { } 67 }; 68 69 static const struct ts_dmi_data chuwi_hi8_pro_data = { 70 .embedded_fw = { 71 .name = "silead/gsl3680-chuwi-hi8-pro.fw", 72 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 73 .length = 39864, 74 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59, 75 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95, 76 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92, 77 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff }, 78 }, 79 .acpi_name = "MSSL1680:00", 80 .properties = chuwi_hi8_pro_props, 81 }; 82 83 static 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 97 static const struct ts_dmi_data chuwi_hi10_air_data = { 98 .acpi_name = "MSSL1680:00", 99 .properties = chuwi_hi10_air_props, 100 }; 101 102 static 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 113 static const struct ts_dmi_data chuwi_hi10_plus_data = { 114 .acpi_name = "MSSL0017:00", 115 .properties = chuwi_hi10_plus_props, 116 }; 117 118 static const struct property_entry chuwi_vi8_props[] = { 119 PROPERTY_ENTRY_U32("touchscreen-min-x", 4), 120 PROPERTY_ENTRY_U32("touchscreen-min-y", 6), 121 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724), 122 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 123 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 124 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"), 125 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 126 PROPERTY_ENTRY_BOOL("silead,home-button"), 127 { } 128 }; 129 130 static const struct ts_dmi_data chuwi_vi8_data = { 131 .acpi_name = "MSSL1680:00", 132 .properties = chuwi_vi8_props, 133 }; 134 135 static 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 147 static 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 158 static const struct ts_dmi_data chuwi_vi10_data = { 159 .acpi_name = "MSSL0002:00", 160 .properties = chuwi_vi10_props, 161 }; 162 163 static 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 174 static const struct ts_dmi_data chuwi_surbook_mini_data = { 175 .acpi_name = "MSSL1680:00", 176 .properties = chuwi_surbook_mini_props, 177 }; 178 179 static const struct property_entry connect_tablet9_props[] = { 180 PROPERTY_ENTRY_U32("touchscreen-min-x", 9), 181 PROPERTY_ENTRY_U32("touchscreen-min-y", 10), 182 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), 183 PROPERTY_ENTRY_U32("touchscreen-size-y", 880), 184 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 185 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 186 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"), 187 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 188 { } 189 }; 190 191 static const struct ts_dmi_data connect_tablet9_data = { 192 .acpi_name = "MSSL1680:00", 193 .properties = connect_tablet9_props, 194 }; 195 196 static const struct property_entry cube_iwork8_air_props[] = { 197 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 198 PROPERTY_ENTRY_U32("touchscreen-min-y", 3), 199 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), 200 PROPERTY_ENTRY_U32("touchscreen-size-y", 896), 201 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 202 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"), 203 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 204 { } 205 }; 206 207 static const struct ts_dmi_data cube_iwork8_air_data = { 208 .embedded_fw = { 209 .name = "silead/gsl3670-cube-iwork8-air.fw", 210 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 211 .length = 38808, 212 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b, 213 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c, 214 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25, 215 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc }, 216 }, 217 .acpi_name = "MSSL1680:00", 218 .properties = cube_iwork8_air_props, 219 }; 220 221 static 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 232 static const struct ts_dmi_data cube_knote_i1101_data = { 233 .acpi_name = "MSSL1680:00", 234 .properties = cube_knote_i1101_props, 235 }; 236 237 static 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), 242 PROPERTY_ENTRY_BOOL("silead,home-button"), 243 { } 244 }; 245 246 static const struct ts_dmi_data dexp_ursus_7w_data = { 247 .acpi_name = "MSSL1680:00", 248 .properties = dexp_ursus_7w_props, 249 }; 250 251 static 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"), 255 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"), 256 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 257 PROPERTY_ENTRY_BOOL("silead,home-button"), 258 { } 259 }; 260 261 static const struct ts_dmi_data digma_citi_e200_data = { 262 .acpi_name = "MSSL1680:00", 263 .properties = digma_citi_e200_props, 264 }; 265 266 static const struct property_entry gp_electronic_t701_props[] = { 267 PROPERTY_ENTRY_U32("touchscreen-size-x", 960), 268 PROPERTY_ENTRY_U32("touchscreen-size-y", 640), 269 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 270 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 271 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"), 272 { } 273 }; 274 275 static const struct ts_dmi_data gp_electronic_t701_data = { 276 .acpi_name = "MSSL1680:00", 277 .properties = gp_electronic_t701_props, 278 }; 279 280 static 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 293 static const struct ts_dmi_data irbis_tw90_data = { 294 .acpi_name = "MSSL1680:00", 295 .properties = irbis_tw90_props, 296 }; 297 298 static const struct property_entry itworks_tw891_props[] = { 299 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 300 PROPERTY_ENTRY_U32("touchscreen-min-y", 5), 301 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600), 302 PROPERTY_ENTRY_U32("touchscreen-size-y", 896), 303 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 304 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 305 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"), 306 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 307 { } 308 }; 309 310 static const struct ts_dmi_data itworks_tw891_data = { 311 .acpi_name = "MSSL1680:00", 312 .properties = itworks_tw891_props, 313 }; 314 315 static 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 324 static const struct ts_dmi_data jumper_ezpad_6_pro_data = { 325 .acpi_name = "MSSL1680:00", 326 .properties = jumper_ezpad_6_pro_props, 327 }; 328 329 static 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 339 static 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 344 static 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 355 static const struct ts_dmi_data jumper_ezpad_6_m4_data = { 356 .acpi_name = "MSSL1680:00", 357 .properties = jumper_ezpad_6_m4_props, 358 }; 359 360 static const struct property_entry jumper_ezpad_mini3_props[] = { 361 PROPERTY_ENTRY_U32("touchscreen-min-x", 23), 362 PROPERTY_ENTRY_U32("touchscreen-min-y", 16), 363 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700), 364 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138), 365 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 371 static const struct ts_dmi_data jumper_ezpad_mini3_data = { 372 .acpi_name = "MSSL1680:00", 373 .properties = jumper_ezpad_mini3_props, 374 }; 375 376 static 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 388 static const struct ts_dmi_data mpman_mpwin895cl_data = { 389 .acpi_name = "MSSL1680:00", 390 .properties = mpman_mpwin895cl_props, 391 }; 392 393 static 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 405 static const struct ts_dmi_data myria_my8307_data = { 406 .acpi_name = "MSSL1680:00", 407 .properties = myria_my8307_props, 408 }; 409 410 static 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 422 static const struct ts_dmi_data onda_obook_20_plus_data = { 423 .acpi_name = "MSSL1680:00", 424 .properties = onda_obook_20_plus_props, 425 }; 426 427 static 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"), 433 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"), 434 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 435 PROPERTY_ENTRY_BOOL("silead,home-button"), 436 { } 437 }; 438 439 static const struct ts_dmi_data onda_v80_plus_v3_data = { 440 .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 }, 449 .acpi_name = "MSSL1680:00", 450 .properties = onda_v80_plus_v3_props, 451 }; 452 453 static 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"), 457 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"), 458 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 459 PROPERTY_ENTRY_BOOL("silead,home-button"), 460 { } 461 }; 462 463 static const struct ts_dmi_data onda_v820w_32g_data = { 464 .acpi_name = "MSSL1680:00", 465 .properties = onda_v820w_32g_props, 466 }; 467 468 static 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 481 static const struct ts_dmi_data onda_v891_v5_data = { 482 .acpi_name = "MSSL1680:00", 483 .properties = onda_v891_v5_props, 484 }; 485 486 static 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), 491 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"), 492 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 493 PROPERTY_ENTRY_BOOL("silead,home-button"), 494 { } 495 }; 496 497 static const struct ts_dmi_data onda_v891w_v1_data = { 498 .acpi_name = "MSSL1680:00", 499 .properties = onda_v891w_v1_props, 500 }; 501 502 static 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"), 508 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"), 509 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 510 PROPERTY_ENTRY_BOOL("silead,home-button"), 511 { } 512 }; 513 514 static const struct ts_dmi_data onda_v891w_v3_data = { 515 .acpi_name = "MSSL1680:00", 516 .properties = onda_v891w_v3_props, 517 }; 518 519 static 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"), 524 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"), 525 { } 526 }; 527 528 static const struct ts_dmi_data pipo_w2s_data = { 529 .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 }, 538 .acpi_name = "MSSL1680:00", 539 .properties = pipo_w2s_props, 540 }; 541 542 static 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), 547 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"), 548 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 549 PROPERTY_ENTRY_BOOL("silead,home-button"), 550 { } 551 }; 552 553 static const struct ts_dmi_data pipo_w11_data = { 554 .acpi_name = "MSSL1680:00", 555 .properties = pipo_w11_props, 556 }; 557 558 static 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"), 564 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"), 565 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 566 PROPERTY_ENTRY_BOOL("silead,home-button"), 567 { } 568 }; 569 570 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = { 571 .acpi_name = "MSSL1680:00", 572 .properties = pov_mobii_wintab_p800w_v20_props, 573 }; 574 575 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = { 576 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), 580 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 581 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"), 582 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 583 PROPERTY_ENTRY_BOOL("silead,home-button"), 584 { } 585 }; 586 587 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = { 588 .acpi_name = "MSSL1680:00", 589 .properties = pov_mobii_wintab_p800w_v21_props, 590 }; 591 592 static 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"), 598 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"), 599 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 600 PROPERTY_ENTRY_BOOL("silead,home-button"), 601 { } 602 }; 603 604 static 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 609 static 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"), 615 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"), 616 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 617 PROPERTY_ENTRY_BOOL("silead,home-button"), 618 { } 619 }; 620 621 static const struct ts_dmi_data schneider_sct101ctm_data = { 622 .acpi_name = "MSSL1680:00", 623 .properties = schneider_sct101ctm_props, 624 }; 625 626 static 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 637 static const struct ts_dmi_data techbite_arc_11_6_data = { 638 .acpi_name = "MSSL1680:00", 639 .properties = techbite_arc_11_6_props, 640 }; 641 642 static const struct property_entry teclast_x3_plus_props[] = { 643 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 644 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), 645 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"), 646 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 647 PROPERTY_ENTRY_BOOL("silead,home-button"), 648 { } 649 }; 650 651 static const struct ts_dmi_data teclast_x3_plus_data = { 652 .acpi_name = "MSSL1680:00", 653 .properties = teclast_x3_plus_props, 654 }; 655 656 static 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"), 661 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"), 662 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 663 { } 664 }; 665 666 static const struct ts_dmi_data teclast_x98plus2_data = { 667 .acpi_name = "MSSL1680:00", 668 .properties = teclast_x98plus2_props, 669 }; 670 671 static 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"), 675 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"), 676 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 677 PROPERTY_ENTRY_BOOL("silead,home-button"), 678 { } 679 }; 680 681 static const struct ts_dmi_data trekstor_primebook_c11_data = { 682 .acpi_name = "MSSL1680:00", 683 .properties = trekstor_primebook_c11_props, 684 }; 685 686 static const struct property_entry trekstor_primebook_c13_props[] = { 687 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624), 688 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920), 689 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"), 690 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 691 PROPERTY_ENTRY_BOOL("silead,home-button"), 692 { } 693 }; 694 695 static const struct ts_dmi_data trekstor_primebook_c13_data = { 696 .acpi_name = "MSSL1680:00", 697 .properties = trekstor_primebook_c13_props, 698 }; 699 700 static const struct property_entry trekstor_primetab_t13b_props[] = { 701 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500), 702 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900), 703 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"), 704 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 705 PROPERTY_ENTRY_BOOL("silead,home-button"), 706 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 707 { } 708 }; 709 710 static const struct ts_dmi_data trekstor_primetab_t13b_data = { 711 .acpi_name = "MSSL1680:00", 712 .properties = trekstor_primetab_t13b_props, 713 }; 714 715 static const struct property_entry trekstor_surftab_twin_10_1_props[] = { 716 PROPERTY_ENTRY_U32("touchscreen-min-x", 20), 717 PROPERTY_ENTRY_U32("touchscreen-min-y", 0), 718 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890), 719 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 720 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1), 721 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"), 722 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 723 PROPERTY_ENTRY_BOOL("silead,home-button"), 724 { } 725 }; 726 727 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = { 728 .acpi_name = "MSSL1680:00", 729 .properties = trekstor_surftab_twin_10_1_props, 730 }; 731 732 static const struct property_entry trekstor_surftab_wintron70_props[] = { 733 PROPERTY_ENTRY_U32("touchscreen-min-x", 12), 734 PROPERTY_ENTRY_U32("touchscreen-min-y", 8), 735 PROPERTY_ENTRY_U32("touchscreen-size-x", 884), 736 PROPERTY_ENTRY_U32("touchscreen-size-y", 632), 737 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"), 738 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 739 PROPERTY_ENTRY_BOOL("silead,home-button"), 740 { } 741 }; 742 743 static const struct ts_dmi_data trekstor_surftab_wintron70_data = { 744 .acpi_name = "MSSL1680:00", 745 .properties = trekstor_surftab_wintron70_props, 746 }; 747 748 static const struct property_entry vinga_twizzle_j116_props[] = { 749 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920), 750 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 751 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"), 752 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 753 PROPERTY_ENTRY_BOOL("silead,home-button"), 754 { } 755 }; 756 757 static const struct ts_dmi_data vinga_twizzle_j116_data = { 758 .acpi_name = "MSSL1680:00", 759 .properties = vinga_twizzle_j116_props, 760 }; 761 762 /* NOTE: Please keep this table sorted alphabetically */ 763 const struct dmi_system_id touchscreen_dmi_table[] = { 764 { 765 /* Chuwi Hi8 */ 766 .driver_data = (void *)&chuwi_hi8_data, 767 .matches = { 768 DMI_MATCH(DMI_SYS_VENDOR, "ilife"), 769 DMI_MATCH(DMI_PRODUCT_NAME, "S806"), 770 }, 771 }, 772 { 773 /* Chuwi Hi8 (H1D_S806_206) */ 774 .driver_data = (void *)&chuwi_hi8_data, 775 .matches = { 776 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 777 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"), 778 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"), 779 }, 780 }, 781 { 782 /* Chuwi Hi8 Air (CWI543) */ 783 .driver_data = (void *)&chuwi_hi8_air_data, 784 .matches = { 785 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"), 786 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 787 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"), 788 }, 789 }, 790 { 791 /* Chuwi Hi8 Pro (CWI513) */ 792 .driver_data = (void *)&chuwi_hi8_pro_data, 793 .matches = { 794 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), 795 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"), 796 }, 797 }, 798 { 799 /* Chuwi Hi10 Air */ 800 .driver_data = (void *)&chuwi_hi10_air_data, 801 .matches = { 802 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"), 803 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 804 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"), 805 }, 806 }, 807 { 808 /* Chuwi Hi10 Plus (CWI527) */ 809 .driver_data = (void *)&chuwi_hi10_plus_data, 810 .matches = { 811 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 812 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"), 813 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 814 }, 815 }, 816 { 817 /* Chuwi Vi8 (CWI506) */ 818 .driver_data = (void *)&chuwi_vi8_data, 819 .matches = { 820 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 821 DMI_MATCH(DMI_PRODUCT_NAME, "i86"), 822 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"), 823 }, 824 }, 825 { 826 /* Chuwi Vi8 Plus (CWI519) */ 827 .driver_data = (void *)&chuwi_vi8_plus_data, 828 .matches = { 829 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), 830 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"), 831 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 832 }, 833 }, 834 { 835 /* Chuwi Vi10 (CWI505) */ 836 .driver_data = (void *)&chuwi_vi10_data, 837 .matches = { 838 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 839 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"), 840 DMI_MATCH(DMI_SYS_VENDOR, "ilife"), 841 DMI_MATCH(DMI_PRODUCT_NAME, "S165"), 842 }, 843 }, 844 { 845 /* Chuwi Surbook Mini (CWI540) */ 846 .driver_data = (void *)&chuwi_surbook_mini_data, 847 .matches = { 848 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 849 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"), 850 }, 851 }, 852 { 853 /* Connect Tablet 9 */ 854 .driver_data = (void *)&connect_tablet9_data, 855 .matches = { 856 DMI_MATCH(DMI_SYS_VENDOR, "Connect"), 857 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"), 858 }, 859 }, 860 { 861 /* CUBE iwork8 Air */ 862 .driver_data = (void *)&cube_iwork8_air_data, 863 .matches = { 864 DMI_MATCH(DMI_SYS_VENDOR, "cube"), 865 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"), 866 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 867 }, 868 }, 869 { 870 /* Cube KNote i1101 */ 871 .driver_data = (void *)&cube_knote_i1101_data, 872 .matches = { 873 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 874 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"), 875 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"), 876 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"), 877 }, 878 }, 879 { 880 /* DEXP Ursus 7W */ 881 .driver_data = (void *)&dexp_ursus_7w_data, 882 .matches = { 883 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 884 DMI_MATCH(DMI_PRODUCT_NAME, "7W"), 885 }, 886 }, 887 { 888 /* Digma Citi E200 */ 889 .driver_data = (void *)&digma_citi_e200_data, 890 .matches = { 891 DMI_MATCH(DMI_SYS_VENDOR, "Digma"), 892 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"), 893 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 894 }, 895 }, 896 { 897 /* GP-electronic T701 */ 898 .driver_data = (void *)&gp_electronic_t701_data, 899 .matches = { 900 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 901 DMI_MATCH(DMI_PRODUCT_NAME, "T701"), 902 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"), 903 }, 904 }, 905 { 906 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */ 907 .driver_data = (void *)&trekstor_surftab_wintron70_data, 908 .matches = { 909 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 910 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"), 911 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"), 912 }, 913 }, 914 { 915 /* Irbis TW90 */ 916 .driver_data = (void *)&irbis_tw90_data, 917 .matches = { 918 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), 919 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"), 920 }, 921 }, 922 { 923 /* I.T.Works TW891 */ 924 .driver_data = (void *)&itworks_tw891_data, 925 .matches = { 926 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), 927 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"), 928 }, 929 }, 930 { 931 /* Jumper EZpad 6 Pro */ 932 .driver_data = (void *)&jumper_ezpad_6_pro_data, 933 .matches = { 934 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), 935 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 936 DMI_MATCH(DMI_BIOS_VERSION, "5.12"), 937 /* Above matches are too generic, add bios-date match */ 938 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"), 939 }, 940 }, 941 { 942 /* Jumper EZpad 6 Pro B */ 943 .driver_data = (void *)&jumper_ezpad_6_pro_b_data, 944 .matches = { 945 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), 946 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 947 DMI_MATCH(DMI_BIOS_VERSION, "5.12"), 948 /* Above matches are too generic, add bios-date match */ 949 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"), 950 }, 951 }, 952 { 953 /* Jumper EZpad 6 m4 */ 954 .driver_data = (void *)&jumper_ezpad_6_m4_data, 955 .matches = { 956 DMI_MATCH(DMI_SYS_VENDOR, "jumper"), 957 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 958 /* Jumper8.S106x.A00C.1066 with the version dropped */ 959 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"), 960 }, 961 }, 962 { 963 /* Jumper EZpad mini3 */ 964 .driver_data = (void *)&jumper_ezpad_mini3_data, 965 .matches = { 966 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 967 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */ 968 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), 969 }, 970 }, 971 { 972 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */ 973 .driver_data = (void *)&trekstor_primebook_c11_data, 974 .matches = { 975 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), 976 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"), 977 }, 978 }, 979 { 980 /* MP Man MPWIN895CL */ 981 .driver_data = (void *)&mpman_mpwin895cl_data, 982 .matches = { 983 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"), 984 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"), 985 }, 986 }, 987 { 988 /* Myria MY8307 */ 989 .driver_data = (void *)&myria_my8307_data, 990 .matches = { 991 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"), 992 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"), 993 }, 994 }, 995 { 996 /* Onda oBook 20 Plus */ 997 .driver_data = (void *)&onda_obook_20_plus_data, 998 .matches = { 999 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), 1000 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"), 1001 }, 1002 }, 1003 { 1004 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */ 1005 .driver_data = (void *)&onda_v80_plus_v3_data, 1006 .matches = { 1007 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"), 1008 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS") 1009 }, 1010 }, 1011 { 1012 /* ONDA V820w DualOS */ 1013 .driver_data = (void *)&onda_v820w_32g_data, 1014 .matches = { 1015 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), 1016 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS") 1017 }, 1018 }, 1019 { 1020 /* ONDA V891 v5 */ 1021 .driver_data = (void *)&onda_v891_v5_data, 1022 .matches = { 1023 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), 1024 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), 1025 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"), 1026 }, 1027 }, 1028 { 1029 /* ONDA V891w revision P891WBEBV1B00 aka v1 */ 1030 .driver_data = (void *)&onda_v891w_v1_data, 1031 .matches = { 1032 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), 1033 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"), 1034 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"), 1035 /* Exact match, different versions need different fw */ 1036 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"), 1037 }, 1038 }, 1039 { 1040 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */ 1041 .driver_data = (void *)&onda_v891w_v3_data, 1042 .matches = { 1043 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1044 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), 1045 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"), 1046 }, 1047 }, 1048 { 1049 /* Pipo W2S */ 1050 .driver_data = (void *)&pipo_w2s_data, 1051 .matches = { 1052 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), 1053 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"), 1054 }, 1055 }, 1056 { 1057 /* Pipo W11 */ 1058 .driver_data = (void *)&pipo_w11_data, 1059 .matches = { 1060 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), 1061 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."), 1062 /* Above matches are too generic, add bios-ver match */ 1063 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"), 1064 }, 1065 }, 1066 { 1067 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */ 1068 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1069 .matches = { 1070 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"), 1071 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"), 1072 /* Exact match, different versions need different fw */ 1073 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"), 1074 }, 1075 }, 1076 { 1077 /* Point of View mobii wintab p800w (v2.0) */ 1078 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data, 1079 .matches = { 1080 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), 1081 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), 1082 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"), 1083 /* Above matches are too generic, add bios-date match */ 1084 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"), 1085 }, 1086 }, 1087 { 1088 /* Point of View mobii wintab p800w (v2.1) */ 1089 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data, 1090 .matches = { 1091 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), 1092 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), 1093 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"), 1094 /* Above matches are too generic, add bios-date match */ 1095 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"), 1096 }, 1097 }, 1098 { 1099 /* Point of View mobii wintab p1006w (v1.0) */ 1100 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data, 1101 .matches = { 1102 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"), 1103 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"), 1104 /* Note 105b is Foxcon's USB/PCI vendor id */ 1105 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"), 1106 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"), 1107 }, 1108 }, 1109 { 1110 /* Schneider SCT101CTM */ 1111 .driver_data = (void *)&schneider_sct101ctm_data, 1112 .matches = { 1113 DMI_MATCH(DMI_SYS_VENDOR, "Default string"), 1114 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"), 1115 }, 1116 }, 1117 { 1118 /* Techbite Arc 11.6 */ 1119 .driver_data = (void *)&techbite_arc_11_6_data, 1120 .matches = { 1121 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"), 1122 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"), 1123 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"), 1124 }, 1125 }, 1126 { 1127 /* Teclast X3 Plus */ 1128 .driver_data = (void *)&teclast_x3_plus_data, 1129 .matches = { 1130 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), 1131 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"), 1132 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"), 1133 }, 1134 }, 1135 { 1136 /* Teclast X98 Plus II */ 1137 .driver_data = (void *)&teclast_x98plus2_data, 1138 .matches = { 1139 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), 1140 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"), 1141 }, 1142 }, 1143 { 1144 /* Trekstor Primebook C11 */ 1145 .driver_data = (void *)&trekstor_primebook_c11_data, 1146 .matches = { 1147 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1148 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"), 1149 }, 1150 }, 1151 { 1152 /* Trekstor Primebook C11B (same touchscreen as the C11) */ 1153 .driver_data = (void *)&trekstor_primebook_c11_data, 1154 .matches = { 1155 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1156 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"), 1157 }, 1158 }, 1159 { 1160 /* Trekstor Primebook C13 */ 1161 .driver_data = (void *)&trekstor_primebook_c13_data, 1162 .matches = { 1163 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1164 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"), 1165 }, 1166 }, 1167 { 1168 /* Trekstor Primetab T13B */ 1169 .driver_data = (void *)&trekstor_primetab_t13b_data, 1170 .matches = { 1171 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1172 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"), 1173 }, 1174 }, 1175 { 1176 /* TrekStor SurfTab twin 10.1 ST10432-8 */ 1177 .driver_data = (void *)&trekstor_surftab_twin_10_1_data, 1178 .matches = { 1179 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1180 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"), 1181 }, 1182 }, 1183 { 1184 /* Trekstor Surftab Wintron 7.0 ST70416-6 */ 1185 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1186 .matches = { 1187 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1188 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"), 1189 /* Exact match, different versions need different fw */ 1190 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"), 1191 }, 1192 }, 1193 { 1194 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */ 1195 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1196 .matches = { 1197 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1198 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"), 1199 /* Exact match, different versions need different fw */ 1200 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"), 1201 }, 1202 }, 1203 { 1204 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */ 1205 .driver_data = (void *)&trekstor_primebook_c11_data, 1206 .matches = { 1207 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1208 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"), 1209 }, 1210 }, 1211 { 1212 /* Vinga Twizzle J116 */ 1213 .driver_data = (void *)&vinga_twizzle_j116_data, 1214 .matches = { 1215 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"), 1216 }, 1217 }, 1218 { 1219 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */ 1220 .driver_data = (void *)&chuwi_vi8_data, 1221 .matches = { 1222 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"), 1223 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"), 1224 }, 1225 }, 1226 { } 1227 }; 1228 1229 static const struct ts_dmi_data *ts_data; 1230 1231 static void ts_dmi_add_props(struct i2c_client *client) 1232 { 1233 struct device *dev = &client->dev; 1234 int error; 1235 1236 if (has_acpi_companion(dev) && 1237 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) { 1238 error = device_add_properties(dev, ts_data->properties); 1239 if (error) 1240 dev_err(dev, "failed to add properties: %d\n", error); 1241 } 1242 } 1243 1244 static int ts_dmi_notifier_call(struct notifier_block *nb, 1245 unsigned long action, void *data) 1246 { 1247 struct device *dev = data; 1248 struct i2c_client *client; 1249 1250 switch (action) { 1251 case BUS_NOTIFY_ADD_DEVICE: 1252 client = i2c_verify_client(dev); 1253 if (client) 1254 ts_dmi_add_props(client); 1255 break; 1256 1257 default: 1258 break; 1259 } 1260 1261 return 0; 1262 } 1263 1264 static struct notifier_block ts_dmi_notifier = { 1265 .notifier_call = ts_dmi_notifier_call, 1266 }; 1267 1268 static int __init ts_dmi_init(void) 1269 { 1270 const struct dmi_system_id *dmi_id; 1271 int error; 1272 1273 dmi_id = dmi_first_match(touchscreen_dmi_table); 1274 if (!dmi_id) 1275 return 0; /* Not an error */ 1276 1277 ts_data = dmi_id->driver_data; 1278 /* Some dmi table entries only provide an efi_embedded_fw_desc */ 1279 if (!ts_data->properties) 1280 return 0; 1281 1282 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier); 1283 if (error) 1284 pr_err("%s: failed to register i2c bus notifier: %d\n", 1285 __func__, error); 1286 1287 return error; 1288 } 1289 1290 /* 1291 * We are registering out notifier after i2c core is initialized and i2c bus 1292 * itself is ready (which happens at postcore initcall level), but before 1293 * ACPI starts enumerating devices (at subsys initcall level). 1294 */ 1295 arch_initcall(ts_dmi_init); 1296