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 archos_101_cesium_educ_props[] = { 30 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), 31 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 32 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 33 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 34 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 35 PROPERTY_ENTRY_BOOL("silead,home-button"), 36 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"), 37 { } 38 }; 39 40 static const struct ts_dmi_data archos_101_cesium_educ_data = { 41 .acpi_name = "MSSL1680:00", 42 .properties = archos_101_cesium_educ_props, 43 }; 44 45 static const struct property_entry chuwi_hi8_props[] = { 46 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665), 47 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 48 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 49 PROPERTY_ENTRY_BOOL("silead,home-button"), 50 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"), 51 { } 52 }; 53 54 static const struct ts_dmi_data chuwi_hi8_data = { 55 .acpi_name = "MSSL0001:00", 56 .properties = chuwi_hi8_props, 57 }; 58 59 static const struct property_entry chuwi_hi8_air_props[] = { 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", "gsl3676-chuwi-hi8-air.fw"), 64 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 65 { } 66 }; 67 68 static const struct ts_dmi_data chuwi_hi8_air_data = { 69 .acpi_name = "MSSL1680:00", 70 .properties = chuwi_hi8_air_props, 71 }; 72 73 static const struct property_entry chuwi_hi8_pro_props[] = { 74 PROPERTY_ENTRY_U32("touchscreen-min-x", 6), 75 PROPERTY_ENTRY_U32("touchscreen-min-y", 3), 76 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 77 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), 78 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 79 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"), 80 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 81 PROPERTY_ENTRY_BOOL("silead,home-button"), 82 { } 83 }; 84 85 static const struct ts_dmi_data chuwi_hi8_pro_data = { 86 .embedded_fw = { 87 .name = "silead/gsl3680-chuwi-hi8-pro.fw", 88 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 89 .length = 39864, 90 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59, 91 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95, 92 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92, 93 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff }, 94 }, 95 .acpi_name = "MSSL1680:00", 96 .properties = chuwi_hi8_pro_props, 97 }; 98 99 static const struct property_entry chuwi_hi10_air_props[] = { 100 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981), 101 PROPERTY_ENTRY_U32("touchscreen-size-y", 1271), 102 PROPERTY_ENTRY_U32("touchscreen-min-x", 99), 103 PROPERTY_ENTRY_U32("touchscreen-min-y", 9), 104 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 105 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5), 106 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4), 107 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.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_air_data = { 114 .acpi_name = "MSSL1680:00", 115 .properties = chuwi_hi10_air_props, 116 }; 117 118 static const struct property_entry chuwi_hi10_plus_props[] = { 119 PROPERTY_ENTRY_U32("touchscreen-min-x", 12), 120 PROPERTY_ENTRY_U32("touchscreen-min-y", 10), 121 PROPERTY_ENTRY_U32("touchscreen-size-x", 1908), 122 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270), 123 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"), 124 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 125 PROPERTY_ENTRY_BOOL("silead,home-button"), 126 PROPERTY_ENTRY_BOOL("silead,pen-supported"), 127 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8), 128 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8), 129 { } 130 }; 131 132 static const struct ts_dmi_data chuwi_hi10_plus_data = { 133 .embedded_fw = { 134 .name = "silead/gsl1680-chuwi-hi10plus.fw", 135 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 136 .length = 34056, 137 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e, 138 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38, 139 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5, 140 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 }, 141 }, 142 .acpi_name = "MSSL0017:00", 143 .properties = chuwi_hi10_plus_props, 144 }; 145 146 static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 }; 147 148 static const struct property_entry chuwi_hi10_pro_props[] = { 149 PROPERTY_ENTRY_U32("touchscreen-min-x", 80), 150 PROPERTY_ENTRY_U32("touchscreen-min-y", 26), 151 PROPERTY_ENTRY_U32("touchscreen-size-x", 1962), 152 PROPERTY_ENTRY_U32("touchscreen-size-y", 1254), 153 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 154 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"), 155 PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max), 156 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 157 PROPERTY_ENTRY_BOOL("silead,home-button"), 158 PROPERTY_ENTRY_BOOL("silead,pen-supported"), 159 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8), 160 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8), 161 { } 162 }; 163 164 static const struct ts_dmi_data chuwi_hi10_pro_data = { 165 .embedded_fw = { 166 .name = "silead/gsl1680-chuwi-hi10-pro.fw", 167 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 168 .length = 42504, 169 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00, 170 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c, 171 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98, 172 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 }, 173 }, 174 .acpi_name = "MSSL1680:00", 175 .properties = chuwi_hi10_pro_props, 176 }; 177 178 static const struct property_entry chuwi_hibook_props[] = { 179 PROPERTY_ENTRY_U32("touchscreen-min-x", 30), 180 PROPERTY_ENTRY_U32("touchscreen-min-y", 4), 181 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892), 182 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276), 183 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 184 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 185 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"), 186 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 187 PROPERTY_ENTRY_BOOL("silead,home-button"), 188 { } 189 }; 190 191 static const struct ts_dmi_data chuwi_hibook_data = { 192 .embedded_fw = { 193 .name = "silead/gsl1680-chuwi-hibook.fw", 194 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 195 .length = 40392, 196 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d, 197 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a, 198 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8, 199 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 }, 200 }, 201 .acpi_name = "MSSL0017:00", 202 .properties = chuwi_hibook_props, 203 }; 204 205 static const struct property_entry chuwi_vi8_props[] = { 206 PROPERTY_ENTRY_U32("touchscreen-min-x", 4), 207 PROPERTY_ENTRY_U32("touchscreen-min-y", 6), 208 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724), 209 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 210 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 211 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"), 212 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 213 PROPERTY_ENTRY_BOOL("silead,home-button"), 214 { } 215 }; 216 217 static const struct ts_dmi_data chuwi_vi8_data = { 218 .acpi_name = "MSSL1680:00", 219 .properties = chuwi_vi8_props, 220 }; 221 222 static const struct ts_dmi_data chuwi_vi8_plus_data = { 223 .embedded_fw = { 224 .name = "chipone/icn8505-HAMP0002.fw", 225 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 }, 226 .length = 35012, 227 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3, 228 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78, 229 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1, 230 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c }, 231 }, 232 }; 233 234 static const struct property_entry chuwi_vi10_props[] = { 235 PROPERTY_ENTRY_U32("touchscreen-min-x", 0), 236 PROPERTY_ENTRY_U32("touchscreen-min-y", 4), 237 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858), 238 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 239 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"), 240 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 241 PROPERTY_ENTRY_BOOL("silead,home-button"), 242 { } 243 }; 244 245 static const struct ts_dmi_data chuwi_vi10_data = { 246 .acpi_name = "MSSL0002:00", 247 .properties = chuwi_vi10_props, 248 }; 249 250 static const struct property_entry chuwi_surbook_mini_props[] = { 251 PROPERTY_ENTRY_U32("touchscreen-min-x", 88), 252 PROPERTY_ENTRY_U32("touchscreen-min-y", 13), 253 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040), 254 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524), 255 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"), 256 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 257 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 258 { } 259 }; 260 261 static const struct ts_dmi_data chuwi_surbook_mini_data = { 262 .acpi_name = "MSSL1680:00", 263 .properties = chuwi_surbook_mini_props, 264 }; 265 266 static const struct property_entry connect_tablet9_props[] = { 267 PROPERTY_ENTRY_U32("touchscreen-min-x", 9), 268 PROPERTY_ENTRY_U32("touchscreen-min-y", 10), 269 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), 270 PROPERTY_ENTRY_U32("touchscreen-size-y", 880), 271 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 272 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 273 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"), 274 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 275 { } 276 }; 277 278 static const struct ts_dmi_data connect_tablet9_data = { 279 .acpi_name = "MSSL1680:00", 280 .properties = connect_tablet9_props, 281 }; 282 283 static const struct property_entry csl_panther_tab_hd_props[] = { 284 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 285 PROPERTY_ENTRY_U32("touchscreen-min-y", 20), 286 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 287 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526), 288 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 289 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 290 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-csl-panther-tab-hd.fw"), 291 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 292 { } 293 }; 294 295 static const struct ts_dmi_data csl_panther_tab_hd_data = { 296 .acpi_name = "MSSL1680:00", 297 .properties = csl_panther_tab_hd_props, 298 }; 299 300 static const struct property_entry cube_iwork8_air_props[] = { 301 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 302 PROPERTY_ENTRY_U32("touchscreen-min-y", 3), 303 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), 304 PROPERTY_ENTRY_U32("touchscreen-size-y", 896), 305 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 306 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"), 307 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 308 { } 309 }; 310 311 static const struct ts_dmi_data cube_iwork8_air_data = { 312 .embedded_fw = { 313 .name = "silead/gsl3670-cube-iwork8-air.fw", 314 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 315 .length = 38808, 316 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b, 317 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c, 318 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25, 319 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc }, 320 }, 321 .acpi_name = "MSSL1680:00", 322 .properties = cube_iwork8_air_props, 323 }; 324 325 static const struct property_entry cube_knote_i1101_props[] = { 326 PROPERTY_ENTRY_U32("touchscreen-min-x", 20), 327 PROPERTY_ENTRY_U32("touchscreen-min-y", 22), 328 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961), 329 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513), 330 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"), 331 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 332 PROPERTY_ENTRY_BOOL("silead,home-button"), 333 { } 334 }; 335 336 static const struct ts_dmi_data cube_knote_i1101_data = { 337 .acpi_name = "MSSL1680:00", 338 .properties = cube_knote_i1101_props, 339 }; 340 341 static const struct property_entry dexp_ursus_7w_props[] = { 342 PROPERTY_ENTRY_U32("touchscreen-size-x", 890), 343 PROPERTY_ENTRY_U32("touchscreen-size-y", 630), 344 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"), 345 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 346 PROPERTY_ENTRY_BOOL("silead,home-button"), 347 { } 348 }; 349 350 static const struct ts_dmi_data dexp_ursus_7w_data = { 351 .acpi_name = "MSSL1680:00", 352 .properties = dexp_ursus_7w_props, 353 }; 354 355 static const struct property_entry dexp_ursus_kx210i_props[] = { 356 PROPERTY_ENTRY_U32("touchscreen-min-x", 5), 357 PROPERTY_ENTRY_U32("touchscreen-min-y", 2), 358 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720), 359 PROPERTY_ENTRY_U32("touchscreen-size-y", 1137), 360 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-dexp-ursus-kx210i.fw"), 361 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 362 PROPERTY_ENTRY_BOOL("silead,home-button"), 363 { } 364 }; 365 366 static const struct ts_dmi_data dexp_ursus_kx210i_data = { 367 .acpi_name = "MSSL1680:00", 368 .properties = dexp_ursus_kx210i_props, 369 }; 370 371 static const struct property_entry digma_citi_e200_props[] = { 372 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 373 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), 374 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 375 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"), 376 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 377 PROPERTY_ENTRY_BOOL("silead,home-button"), 378 { } 379 }; 380 381 static const struct ts_dmi_data digma_citi_e200_data = { 382 .acpi_name = "MSSL1680:00", 383 .properties = digma_citi_e200_props, 384 }; 385 386 static const struct property_entry estar_beauty_hd_props[] = { 387 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 388 { } 389 }; 390 391 static const struct ts_dmi_data estar_beauty_hd_data = { 392 .acpi_name = "GDIX1001:00", 393 .properties = estar_beauty_hd_props, 394 }; 395 396 /* Generic props + data for upside-down mounted GDIX1001 touchscreens */ 397 static const struct property_entry gdix1001_upside_down_props[] = { 398 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 399 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 400 { } 401 }; 402 403 static const struct ts_dmi_data gdix1001_00_upside_down_data = { 404 .acpi_name = "GDIX1001:00", 405 .properties = gdix1001_upside_down_props, 406 }; 407 408 static const struct ts_dmi_data gdix1001_01_upside_down_data = { 409 .acpi_name = "GDIX1001:01", 410 .properties = gdix1001_upside_down_props, 411 }; 412 413 static const struct ts_dmi_data gdix1002_00_upside_down_data = { 414 .acpi_name = "GDIX1002:00", 415 .properties = gdix1001_upside_down_props, 416 }; 417 418 static const struct property_entry gp_electronic_t701_props[] = { 419 PROPERTY_ENTRY_U32("touchscreen-size-x", 960), 420 PROPERTY_ENTRY_U32("touchscreen-size-y", 640), 421 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 422 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 423 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"), 424 { } 425 }; 426 427 static const struct ts_dmi_data gp_electronic_t701_data = { 428 .acpi_name = "MSSL1680:00", 429 .properties = gp_electronic_t701_props, 430 }; 431 432 static const struct property_entry irbis_tw90_props[] = { 433 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720), 434 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138), 435 PROPERTY_ENTRY_U32("touchscreen-min-x", 8), 436 PROPERTY_ENTRY_U32("touchscreen-min-y", 14), 437 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 438 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 439 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"), 440 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 441 PROPERTY_ENTRY_BOOL("silead,home-button"), 442 { } 443 }; 444 445 static const struct ts_dmi_data irbis_tw90_data = { 446 .acpi_name = "MSSL1680:00", 447 .properties = irbis_tw90_props, 448 }; 449 450 static const struct property_entry irbis_tw118_props[] = { 451 PROPERTY_ENTRY_U32("touchscreen-min-x", 20), 452 PROPERTY_ENTRY_U32("touchscreen-min-y", 30), 453 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960), 454 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510), 455 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"), 456 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 457 { } 458 }; 459 460 static const struct ts_dmi_data irbis_tw118_data = { 461 .acpi_name = "MSSL1680:00", 462 .properties = irbis_tw118_props, 463 }; 464 465 static const struct property_entry itworks_tw891_props[] = { 466 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 467 PROPERTY_ENTRY_U32("touchscreen-min-y", 5), 468 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600), 469 PROPERTY_ENTRY_U32("touchscreen-size-y", 896), 470 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 471 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 472 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"), 473 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 474 { } 475 }; 476 477 static const struct ts_dmi_data itworks_tw891_data = { 478 .acpi_name = "MSSL1680:00", 479 .properties = itworks_tw891_props, 480 }; 481 482 static const struct property_entry jumper_ezpad_6_pro_props[] = { 483 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 484 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), 485 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"), 486 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 487 PROPERTY_ENTRY_BOOL("silead,home-button"), 488 { } 489 }; 490 491 static const struct ts_dmi_data jumper_ezpad_6_pro_data = { 492 .acpi_name = "MSSL1680:00", 493 .properties = jumper_ezpad_6_pro_props, 494 }; 495 496 static const struct property_entry jumper_ezpad_6_pro_b_props[] = { 497 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 498 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), 499 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"), 500 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 501 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 502 PROPERTY_ENTRY_BOOL("silead,home-button"), 503 { } 504 }; 505 506 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = { 507 .acpi_name = "MSSL1680:00", 508 .properties = jumper_ezpad_6_pro_b_props, 509 }; 510 511 static const struct property_entry jumper_ezpad_6_m4_props[] = { 512 PROPERTY_ENTRY_U32("touchscreen-min-x", 35), 513 PROPERTY_ENTRY_U32("touchscreen-min-y", 15), 514 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950), 515 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525), 516 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"), 517 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 518 PROPERTY_ENTRY_BOOL("silead,home-button"), 519 { } 520 }; 521 522 static const struct ts_dmi_data jumper_ezpad_6_m4_data = { 523 .acpi_name = "MSSL1680:00", 524 .properties = jumper_ezpad_6_m4_props, 525 }; 526 527 static const struct property_entry jumper_ezpad_7_props[] = { 528 PROPERTY_ENTRY_U32("touchscreen-min-x", 4), 529 PROPERTY_ENTRY_U32("touchscreen-min-y", 10), 530 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044), 531 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526), 532 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 533 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"), 534 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 535 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"), 536 { } 537 }; 538 539 static const struct ts_dmi_data jumper_ezpad_7_data = { 540 .acpi_name = "MSSL1680:00", 541 .properties = jumper_ezpad_7_props, 542 }; 543 544 static const struct property_entry jumper_ezpad_mini3_props[] = { 545 PROPERTY_ENTRY_U32("touchscreen-min-x", 23), 546 PROPERTY_ENTRY_U32("touchscreen-min-y", 16), 547 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700), 548 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138), 549 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 550 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"), 551 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 552 { } 553 }; 554 555 static const struct ts_dmi_data jumper_ezpad_mini3_data = { 556 .acpi_name = "MSSL1680:00", 557 .properties = jumper_ezpad_mini3_props, 558 }; 559 560 static const struct property_entry mpman_converter9_props[] = { 561 PROPERTY_ENTRY_U32("touchscreen-min-x", 8), 562 PROPERTY_ENTRY_U32("touchscreen-min-y", 8), 563 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), 564 PROPERTY_ENTRY_U32("touchscreen-size-y", 880), 565 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 566 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 567 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"), 568 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 569 { } 570 }; 571 572 static const struct ts_dmi_data mpman_converter9_data = { 573 .acpi_name = "MSSL1680:00", 574 .properties = mpman_converter9_props, 575 }; 576 577 static const struct property_entry mpman_mpwin895cl_props[] = { 578 PROPERTY_ENTRY_U32("touchscreen-min-x", 3), 579 PROPERTY_ENTRY_U32("touchscreen-min-y", 9), 580 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 581 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150), 582 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 583 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"), 584 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 585 PROPERTY_ENTRY_BOOL("silead,home-button"), 586 { } 587 }; 588 589 static const struct ts_dmi_data mpman_mpwin895cl_data = { 590 .acpi_name = "MSSL1680:00", 591 .properties = mpman_mpwin895cl_props, 592 }; 593 594 static const struct property_entry myria_my8307_props[] = { 595 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720), 596 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 597 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 598 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 599 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 600 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"), 601 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 602 PROPERTY_ENTRY_BOOL("silead,home-button"), 603 { } 604 }; 605 606 static const struct ts_dmi_data myria_my8307_data = { 607 .acpi_name = "MSSL1680:00", 608 .properties = myria_my8307_props, 609 }; 610 611 static const struct property_entry onda_obook_20_plus_props[] = { 612 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 613 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), 614 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 615 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 616 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 617 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"), 618 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 619 PROPERTY_ENTRY_BOOL("silead,home-button"), 620 { } 621 }; 622 623 static const struct ts_dmi_data onda_obook_20_plus_data = { 624 .acpi_name = "MSSL1680:00", 625 .properties = onda_obook_20_plus_props, 626 }; 627 628 static const struct property_entry onda_v80_plus_v3_props[] = { 629 PROPERTY_ENTRY_U32("touchscreen-min-x", 22), 630 PROPERTY_ENTRY_U32("touchscreen-min-y", 15), 631 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698), 632 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 633 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 634 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"), 635 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 636 PROPERTY_ENTRY_BOOL("silead,home-button"), 637 { } 638 }; 639 640 static const struct ts_dmi_data onda_v80_plus_v3_data = { 641 .embedded_fw = { 642 .name = "silead/gsl3676-onda-v80-plus-v3.fw", 643 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 644 .length = 37224, 645 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5, 646 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32, 647 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7, 648 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 }, 649 }, 650 .acpi_name = "MSSL1680:00", 651 .properties = onda_v80_plus_v3_props, 652 }; 653 654 static const struct property_entry onda_v820w_32g_props[] = { 655 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665), 656 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 657 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 658 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"), 659 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 660 PROPERTY_ENTRY_BOOL("silead,home-button"), 661 { } 662 }; 663 664 static const struct ts_dmi_data onda_v820w_32g_data = { 665 .acpi_name = "MSSL1680:00", 666 .properties = onda_v820w_32g_props, 667 }; 668 669 static const struct property_entry onda_v891_v5_props[] = { 670 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715), 671 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 672 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 673 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 674 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 675 PROPERTY_ENTRY_STRING("firmware-name", 676 "gsl3676-onda-v891-v5.fw"), 677 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 678 PROPERTY_ENTRY_BOOL("silead,home-button"), 679 { } 680 }; 681 682 static const struct ts_dmi_data onda_v891_v5_data = { 683 .acpi_name = "MSSL1680:00", 684 .properties = onda_v891_v5_props, 685 }; 686 687 static const struct property_entry onda_v891w_v1_props[] = { 688 PROPERTY_ENTRY_U32("touchscreen-min-x", 46), 689 PROPERTY_ENTRY_U32("touchscreen-min-y", 8), 690 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676), 691 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130), 692 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"), 693 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 694 PROPERTY_ENTRY_BOOL("silead,home-button"), 695 { } 696 }; 697 698 static const struct ts_dmi_data onda_v891w_v1_data = { 699 .acpi_name = "MSSL1680:00", 700 .properties = onda_v891w_v1_props, 701 }; 702 703 static const struct property_entry onda_v891w_v3_props[] = { 704 PROPERTY_ENTRY_U32("touchscreen-min-x", 35), 705 PROPERTY_ENTRY_U32("touchscreen-min-y", 15), 706 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625), 707 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135), 708 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 709 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"), 710 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 711 PROPERTY_ENTRY_BOOL("silead,home-button"), 712 { } 713 }; 714 715 static const struct ts_dmi_data onda_v891w_v3_data = { 716 .acpi_name = "MSSL1680:00", 717 .properties = onda_v891w_v3_props, 718 }; 719 720 static const struct property_entry pipo_w2s_props[] = { 721 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660), 722 PROPERTY_ENTRY_U32("touchscreen-size-y", 880), 723 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 724 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 725 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"), 726 { } 727 }; 728 729 static const struct ts_dmi_data pipo_w2s_data = { 730 .embedded_fw = { 731 .name = "silead/gsl1680-pipo-w2s.fw", 732 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 733 .length = 39072, 734 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18, 735 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60, 736 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4, 737 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 }, 738 }, 739 .acpi_name = "MSSL1680:00", 740 .properties = pipo_w2s_props, 741 }; 742 743 static const struct property_entry pipo_w11_props[] = { 744 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 745 PROPERTY_ENTRY_U32("touchscreen-min-y", 15), 746 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984), 747 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532), 748 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"), 749 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 750 PROPERTY_ENTRY_BOOL("silead,home-button"), 751 { } 752 }; 753 754 static const struct ts_dmi_data pipo_w11_data = { 755 .acpi_name = "MSSL1680:00", 756 .properties = pipo_w11_props, 757 }; 758 759 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = { 760 PROPERTY_ENTRY_U32("touchscreen-min-x", 32), 761 PROPERTY_ENTRY_U32("touchscreen-min-y", 16), 762 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692), 763 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146), 764 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 765 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"), 766 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 767 PROPERTY_ENTRY_BOOL("silead,home-button"), 768 { } 769 }; 770 771 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = { 772 .acpi_name = "MSSL1680:00", 773 .properties = pov_mobii_wintab_p800w_v20_props, 774 }; 775 776 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = { 777 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 778 PROPERTY_ENTRY_U32("touchscreen-min-y", 8), 779 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794), 780 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), 781 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 782 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"), 783 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 784 PROPERTY_ENTRY_BOOL("silead,home-button"), 785 { } 786 }; 787 788 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = { 789 .acpi_name = "MSSL1680:00", 790 .properties = pov_mobii_wintab_p800w_v21_props, 791 }; 792 793 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = { 794 PROPERTY_ENTRY_U32("touchscreen-min-x", 1), 795 PROPERTY_ENTRY_U32("touchscreen-min-y", 3), 796 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984), 797 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520), 798 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 799 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"), 800 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 801 PROPERTY_ENTRY_BOOL("silead,home-button"), 802 { } 803 }; 804 805 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = { 806 .acpi_name = "MSSL1680:00", 807 .properties = pov_mobii_wintab_p1006w_v10_props, 808 }; 809 810 static const struct property_entry predia_basic_props[] = { 811 PROPERTY_ENTRY_U32("touchscreen-min-x", 3), 812 PROPERTY_ENTRY_U32("touchscreen-min-y", 10), 813 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 814 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144), 815 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 816 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"), 817 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 818 PROPERTY_ENTRY_BOOL("silead,home-button"), 819 { } 820 }; 821 822 static const struct ts_dmi_data predia_basic_data = { 823 .acpi_name = "MSSL1680:00", 824 .properties = predia_basic_props, 825 }; 826 827 static const struct property_entry rca_cambio_w101_v2_props[] = { 828 PROPERTY_ENTRY_U32("touchscreen-min-x", 4), 829 PROPERTY_ENTRY_U32("touchscreen-min-y", 20), 830 PROPERTY_ENTRY_U32("touchscreen-size-x", 1644), 831 PROPERTY_ENTRY_U32("touchscreen-size-y", 874), 832 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 833 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rca-cambio-w101-v2.fw"), 834 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 835 { } 836 }; 837 838 static const struct ts_dmi_data rca_cambio_w101_v2_data = { 839 .acpi_name = "MSSL1680:00", 840 .properties = rca_cambio_w101_v2_props, 841 }; 842 843 static const struct property_entry rwc_nanote_p8_props[] = { 844 PROPERTY_ENTRY_U32("touchscreen-min-y", 46), 845 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), 846 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 847 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 848 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"), 849 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 850 { } 851 }; 852 853 static const struct ts_dmi_data rwc_nanote_p8_data = { 854 .acpi_name = "MSSL1680:00", 855 .properties = rwc_nanote_p8_props, 856 }; 857 858 static const struct property_entry schneider_sct101ctm_props[] = { 859 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715), 860 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), 861 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 862 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 863 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 864 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"), 865 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 866 PROPERTY_ENTRY_BOOL("silead,home-button"), 867 { } 868 }; 869 870 static const struct ts_dmi_data schneider_sct101ctm_data = { 871 .acpi_name = "MSSL1680:00", 872 .properties = schneider_sct101ctm_props, 873 }; 874 875 static const struct property_entry techbite_arc_11_6_props[] = { 876 PROPERTY_ENTRY_U32("touchscreen-min-x", 5), 877 PROPERTY_ENTRY_U32("touchscreen-min-y", 7), 878 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981), 879 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270), 880 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 881 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"), 882 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 883 { } 884 }; 885 886 static const struct ts_dmi_data techbite_arc_11_6_data = { 887 .acpi_name = "MSSL1680:00", 888 .properties = techbite_arc_11_6_props, 889 }; 890 891 static const struct property_entry teclast_tbook11_props[] = { 892 PROPERTY_ENTRY_U32("touchscreen-min-x", 8), 893 PROPERTY_ENTRY_U32("touchscreen-min-y", 14), 894 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916), 895 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264), 896 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 897 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"), 898 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 899 PROPERTY_ENTRY_BOOL("silead,home-button"), 900 { } 901 }; 902 903 static const struct ts_dmi_data teclast_tbook11_data = { 904 .embedded_fw = { 905 .name = "silead/gsl3692-teclast-tbook11.fw", 906 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, 907 .length = 43560, 908 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25, 909 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75, 910 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f, 911 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 }, 912 }, 913 .acpi_name = "MSSL1680:00", 914 .properties = teclast_tbook11_props, 915 }; 916 917 static const struct property_entry teclast_x3_plus_props[] = { 918 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), 919 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), 920 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"), 921 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 922 PROPERTY_ENTRY_BOOL("silead,home-button"), 923 { } 924 }; 925 926 static const struct ts_dmi_data teclast_x3_plus_data = { 927 .acpi_name = "MSSL1680:00", 928 .properties = teclast_x3_plus_props, 929 }; 930 931 static const struct property_entry teclast_x98plus2_props[] = { 932 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048), 933 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 934 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 935 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 936 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"), 937 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 938 { } 939 }; 940 941 static const struct ts_dmi_data teclast_x98plus2_data = { 942 .acpi_name = "MSSL1680:00", 943 .properties = teclast_x98plus2_props, 944 }; 945 946 static const struct property_entry trekstor_primebook_c11_props[] = { 947 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970), 948 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530), 949 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 950 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"), 951 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 952 PROPERTY_ENTRY_BOOL("silead,home-button"), 953 { } 954 }; 955 956 static const struct ts_dmi_data trekstor_primebook_c11_data = { 957 .acpi_name = "MSSL1680:00", 958 .properties = trekstor_primebook_c11_props, 959 }; 960 961 static const struct property_entry trekstor_primebook_c13_props[] = { 962 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624), 963 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920), 964 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"), 965 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 966 PROPERTY_ENTRY_BOOL("silead,home-button"), 967 { } 968 }; 969 970 static const struct ts_dmi_data trekstor_primebook_c13_data = { 971 .acpi_name = "MSSL1680:00", 972 .properties = trekstor_primebook_c13_props, 973 }; 974 975 static const struct property_entry trekstor_primetab_t13b_props[] = { 976 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500), 977 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900), 978 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"), 979 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 980 PROPERTY_ENTRY_BOOL("silead,home-button"), 981 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 982 { } 983 }; 984 985 static const struct ts_dmi_data trekstor_primetab_t13b_data = { 986 .acpi_name = "MSSL1680:00", 987 .properties = trekstor_primetab_t13b_props, 988 }; 989 990 static const struct property_entry trekstor_surftab_duo_w1_props[] = { 991 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), 992 { } 993 }; 994 995 static const struct ts_dmi_data trekstor_surftab_duo_w1_data = { 996 .acpi_name = "GDIX1001:00", 997 .properties = trekstor_surftab_duo_w1_props, 998 }; 999 1000 static const struct property_entry trekstor_surftab_twin_10_1_props[] = { 1001 PROPERTY_ENTRY_U32("touchscreen-min-x", 20), 1002 PROPERTY_ENTRY_U32("touchscreen-min-y", 0), 1003 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890), 1004 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 1005 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1), 1006 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"), 1007 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 1008 PROPERTY_ENTRY_BOOL("silead,home-button"), 1009 { } 1010 }; 1011 1012 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = { 1013 .acpi_name = "MSSL1680:00", 1014 .properties = trekstor_surftab_twin_10_1_props, 1015 }; 1016 1017 static const struct property_entry trekstor_surftab_wintron70_props[] = { 1018 PROPERTY_ENTRY_U32("touchscreen-min-x", 12), 1019 PROPERTY_ENTRY_U32("touchscreen-min-y", 8), 1020 PROPERTY_ENTRY_U32("touchscreen-size-x", 884), 1021 PROPERTY_ENTRY_U32("touchscreen-size-y", 632), 1022 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"), 1023 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 1024 PROPERTY_ENTRY_BOOL("silead,home-button"), 1025 { } 1026 }; 1027 1028 static const struct ts_dmi_data trekstor_surftab_wintron70_data = { 1029 .acpi_name = "MSSL1680:00", 1030 .properties = trekstor_surftab_wintron70_props, 1031 }; 1032 1033 static const struct property_entry viglen_connect_10_props[] = { 1034 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890), 1035 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 1036 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6), 1037 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6), 1038 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 1039 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"), 1040 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 1041 PROPERTY_ENTRY_BOOL("silead,home-button"), 1042 { } 1043 }; 1044 1045 static const struct ts_dmi_data viglen_connect_10_data = { 1046 .acpi_name = "MSSL1680:00", 1047 .properties = viglen_connect_10_props, 1048 }; 1049 1050 static const struct property_entry vinga_twizzle_j116_props[] = { 1051 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920), 1052 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 1053 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"), 1054 PROPERTY_ENTRY_U32("silead,max-fingers", 10), 1055 PROPERTY_ENTRY_BOOL("silead,home-button"), 1056 { } 1057 }; 1058 1059 static const struct ts_dmi_data vinga_twizzle_j116_data = { 1060 .acpi_name = "MSSL1680:00", 1061 .properties = vinga_twizzle_j116_props, 1062 }; 1063 1064 /* NOTE: Please keep this table sorted alphabetically */ 1065 const struct dmi_system_id touchscreen_dmi_table[] = { 1066 { 1067 /* Archos 101 Cesium Educ */ 1068 .driver_data = (void *)&archos_101_cesium_educ_data, 1069 .matches = { 1070 DMI_MATCH(DMI_PRODUCT_NAME, "ARCHOS 101 Cesium Educ"), 1071 }, 1072 }, 1073 { 1074 /* Chuwi Hi8 */ 1075 .driver_data = (void *)&chuwi_hi8_data, 1076 .matches = { 1077 DMI_MATCH(DMI_SYS_VENDOR, "ilife"), 1078 DMI_MATCH(DMI_PRODUCT_NAME, "S806"), 1079 }, 1080 }, 1081 { 1082 /* Chuwi Hi8 (H1D_S806_206) */ 1083 .driver_data = (void *)&chuwi_hi8_data, 1084 .matches = { 1085 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1086 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"), 1087 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"), 1088 }, 1089 }, 1090 { 1091 /* Chuwi Hi8 Air (CWI543) */ 1092 .driver_data = (void *)&chuwi_hi8_air_data, 1093 .matches = { 1094 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"), 1095 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1096 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"), 1097 }, 1098 }, 1099 { 1100 /* Chuwi Hi8 Pro (CWI513) */ 1101 .driver_data = (void *)&chuwi_hi8_pro_data, 1102 .matches = { 1103 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), 1104 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"), 1105 }, 1106 }, 1107 { 1108 /* Chuwi Hi10 Air */ 1109 .driver_data = (void *)&chuwi_hi10_air_data, 1110 .matches = { 1111 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"), 1112 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1113 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"), 1114 }, 1115 }, 1116 { 1117 /* Chuwi Hi10 Plus (CWI527) */ 1118 .driver_data = (void *)&chuwi_hi10_plus_data, 1119 .matches = { 1120 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1121 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"), 1122 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1123 }, 1124 }, 1125 { 1126 /* Chuwi Hi10 Pro (CWI529) */ 1127 .driver_data = (void *)&chuwi_hi10_pro_data, 1128 .matches = { 1129 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1130 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"), 1131 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1132 }, 1133 }, 1134 { 1135 /* Chuwi HiBook (CWI514) */ 1136 .driver_data = (void *)&chuwi_hibook_data, 1137 .matches = { 1138 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1139 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1140 /* Above matches are too generic, add bios-date match */ 1141 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"), 1142 }, 1143 }, 1144 { 1145 /* Chuwi Vi8 (CWI501) */ 1146 .driver_data = (void *)&chuwi_vi8_data, 1147 .matches = { 1148 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1149 DMI_MATCH(DMI_PRODUCT_NAME, "i86"), 1150 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.W86JLBNR01"), 1151 }, 1152 }, 1153 { 1154 /* Chuwi Vi8 (CWI506) */ 1155 .driver_data = (void *)&chuwi_vi8_data, 1156 .matches = { 1157 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1158 DMI_MATCH(DMI_PRODUCT_NAME, "i86"), 1159 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"), 1160 }, 1161 }, 1162 { 1163 /* Chuwi Vi8 Plus (CWI519) */ 1164 .driver_data = (void *)&chuwi_vi8_plus_data, 1165 .matches = { 1166 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), 1167 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"), 1168 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1169 }, 1170 }, 1171 { 1172 /* Chuwi Vi10 (CWI505) */ 1173 .driver_data = (void *)&chuwi_vi10_data, 1174 .matches = { 1175 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1176 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"), 1177 DMI_MATCH(DMI_SYS_VENDOR, "ilife"), 1178 DMI_MATCH(DMI_PRODUCT_NAME, "S165"), 1179 }, 1180 }, 1181 { 1182 /* Chuwi Surbook Mini (CWI540) */ 1183 .driver_data = (void *)&chuwi_surbook_mini_data, 1184 .matches = { 1185 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1186 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"), 1187 }, 1188 }, 1189 { 1190 /* Connect Tablet 9 */ 1191 .driver_data = (void *)&connect_tablet9_data, 1192 .matches = { 1193 DMI_MATCH(DMI_SYS_VENDOR, "Connect"), 1194 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"), 1195 }, 1196 }, 1197 { 1198 /* CSL Panther Tab HD */ 1199 .driver_data = (void *)&csl_panther_tab_hd_data, 1200 .matches = { 1201 DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"), 1202 DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"), 1203 }, 1204 }, 1205 { 1206 /* CUBE iwork8 Air */ 1207 .driver_data = (void *)&cube_iwork8_air_data, 1208 .matches = { 1209 DMI_MATCH(DMI_SYS_VENDOR, "cube"), 1210 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"), 1211 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1212 }, 1213 }, 1214 { 1215 /* Cube KNote i1101 */ 1216 .driver_data = (void *)&cube_knote_i1101_data, 1217 .matches = { 1218 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), 1219 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"), 1220 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"), 1221 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"), 1222 }, 1223 }, 1224 { 1225 /* DEXP Ursus 7W */ 1226 .driver_data = (void *)&dexp_ursus_7w_data, 1227 .matches = { 1228 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1229 DMI_MATCH(DMI_PRODUCT_NAME, "7W"), 1230 }, 1231 }, 1232 { 1233 /* DEXP Ursus KX210i */ 1234 .driver_data = (void *)&dexp_ursus_kx210i_data, 1235 .matches = { 1236 DMI_MATCH(DMI_SYS_VENDOR, "INSYDE Corp."), 1237 DMI_MATCH(DMI_PRODUCT_NAME, "S107I"), 1238 }, 1239 }, 1240 { 1241 /* Digma Citi E200 */ 1242 .driver_data = (void *)&digma_citi_e200_data, 1243 .matches = { 1244 DMI_MATCH(DMI_SYS_VENDOR, "Digma"), 1245 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"), 1246 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), 1247 }, 1248 }, 1249 { 1250 /* Estar Beauty HD (MID 7316R) */ 1251 .driver_data = (void *)&estar_beauty_hd_data, 1252 .matches = { 1253 DMI_MATCH(DMI_SYS_VENDOR, "Estar"), 1254 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"), 1255 }, 1256 }, 1257 { 1258 /* GP-electronic T701 */ 1259 .driver_data = (void *)&gp_electronic_t701_data, 1260 .matches = { 1261 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1262 DMI_MATCH(DMI_PRODUCT_NAME, "T701"), 1263 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"), 1264 }, 1265 }, 1266 { 1267 /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */ 1268 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1269 .matches = { 1270 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1271 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"), 1272 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"), 1273 }, 1274 }, 1275 { 1276 /* Irbis TW90 */ 1277 .driver_data = (void *)&irbis_tw90_data, 1278 .matches = { 1279 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), 1280 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"), 1281 }, 1282 }, 1283 { 1284 /* Irbis TW118 */ 1285 .driver_data = (void *)&irbis_tw118_data, 1286 .matches = { 1287 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), 1288 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"), 1289 }, 1290 }, 1291 { 1292 /* I.T.Works TW891 */ 1293 .driver_data = (void *)&itworks_tw891_data, 1294 .matches = { 1295 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), 1296 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"), 1297 }, 1298 }, 1299 { 1300 /* Jumper EZpad 6 Pro */ 1301 .driver_data = (void *)&jumper_ezpad_6_pro_data, 1302 .matches = { 1303 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), 1304 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 1305 DMI_MATCH(DMI_BIOS_VERSION, "5.12"), 1306 /* Above matches are too generic, add bios-date match */ 1307 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"), 1308 }, 1309 }, 1310 { 1311 /* Jumper EZpad 6 Pro B */ 1312 .driver_data = (void *)&jumper_ezpad_6_pro_b_data, 1313 .matches = { 1314 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), 1315 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 1316 DMI_MATCH(DMI_BIOS_VERSION, "5.12"), 1317 /* Above matches are too generic, add bios-date match */ 1318 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"), 1319 }, 1320 }, 1321 { 1322 /* Jumper EZpad 6 m4 */ 1323 .driver_data = (void *)&jumper_ezpad_6_m4_data, 1324 .matches = { 1325 DMI_MATCH(DMI_SYS_VENDOR, "jumper"), 1326 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 1327 /* Jumper8.S106x.A00C.1066 with the version dropped */ 1328 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"), 1329 }, 1330 }, 1331 { 1332 /* Jumper EZpad 7 */ 1333 .driver_data = (void *)&jumper_ezpad_7_data, 1334 .matches = { 1335 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), 1336 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), 1337 /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */ 1338 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"), 1339 }, 1340 }, 1341 { 1342 /* Jumper EZpad mini3 */ 1343 .driver_data = (void *)&jumper_ezpad_mini3_data, 1344 .matches = { 1345 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1346 /* jumperx.T87.KFBNEEA02 with the version-nr dropped */ 1347 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), 1348 }, 1349 }, 1350 { 1351 /* Juno Tablet */ 1352 .driver_data = (void *)&gdix1002_00_upside_down_data, 1353 .matches = { 1354 DMI_MATCH(DMI_SYS_VENDOR, "Default string"), 1355 /* Both product- and board-name being "Default string" is somewhat rare */ 1356 DMI_MATCH(DMI_PRODUCT_NAME, "Default string"), 1357 DMI_MATCH(DMI_BOARD_NAME, "Default string"), 1358 /* Above matches are too generic, add partial bios-version match */ 1359 DMI_MATCH(DMI_BIOS_VERSION, "JP2V1."), 1360 }, 1361 }, 1362 { 1363 /* Mediacom WinPad 7.0 W700 (same hw as Wintron surftab 7") */ 1364 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1365 .matches = { 1366 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), 1367 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"), 1368 }, 1369 }, 1370 { 1371 /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */ 1372 .driver_data = (void *)&trekstor_primebook_c11_data, 1373 .matches = { 1374 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), 1375 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"), 1376 }, 1377 }, 1378 { 1379 /* MP Man Converter 9 */ 1380 .driver_data = (void *)&mpman_converter9_data, 1381 .matches = { 1382 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"), 1383 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"), 1384 }, 1385 }, 1386 { 1387 /* MP Man MPWIN895CL */ 1388 .driver_data = (void *)&mpman_mpwin895cl_data, 1389 .matches = { 1390 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"), 1391 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"), 1392 }, 1393 }, 1394 { 1395 /* Myria MY8307 */ 1396 .driver_data = (void *)&myria_my8307_data, 1397 .matches = { 1398 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"), 1399 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"), 1400 }, 1401 }, 1402 { 1403 /* Onda oBook 20 Plus */ 1404 .driver_data = (void *)&onda_obook_20_plus_data, 1405 .matches = { 1406 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), 1407 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"), 1408 }, 1409 }, 1410 { 1411 /* ONDA V80 plus v3 (P80PSBG9V3A01501) */ 1412 .driver_data = (void *)&onda_v80_plus_v3_data, 1413 .matches = { 1414 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"), 1415 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS") 1416 }, 1417 }, 1418 { 1419 /* ONDA V820w DualOS */ 1420 .driver_data = (void *)&onda_v820w_32g_data, 1421 .matches = { 1422 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), 1423 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS") 1424 }, 1425 }, 1426 { 1427 /* ONDA V891 v5 */ 1428 .driver_data = (void *)&onda_v891_v5_data, 1429 .matches = { 1430 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), 1431 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), 1432 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"), 1433 }, 1434 }, 1435 { 1436 /* ONDA V891w revision P891WBEBV1B00 aka v1 */ 1437 .driver_data = (void *)&onda_v891w_v1_data, 1438 .matches = { 1439 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), 1440 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"), 1441 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"), 1442 /* Exact match, different versions need different fw */ 1443 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"), 1444 }, 1445 }, 1446 { 1447 /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */ 1448 .driver_data = (void *)&onda_v891w_v3_data, 1449 .matches = { 1450 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1451 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), 1452 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"), 1453 }, 1454 }, 1455 { 1456 /* Pipo W2S */ 1457 .driver_data = (void *)&pipo_w2s_data, 1458 .matches = { 1459 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), 1460 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"), 1461 }, 1462 }, 1463 { 1464 /* Pipo W11 */ 1465 .driver_data = (void *)&pipo_w11_data, 1466 .matches = { 1467 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), 1468 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."), 1469 /* Above matches are too generic, add bios-ver match */ 1470 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"), 1471 }, 1472 }, 1473 { 1474 /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */ 1475 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1476 .matches = { 1477 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"), 1478 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"), 1479 /* Exact match, different versions need different fw */ 1480 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"), 1481 }, 1482 }, 1483 { 1484 /* Point of View mobii wintab p800w (v2.0) */ 1485 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data, 1486 .matches = { 1487 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), 1488 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), 1489 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"), 1490 /* Above matches are too generic, add bios-date match */ 1491 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"), 1492 }, 1493 }, 1494 { 1495 /* Predia Basic tablet) */ 1496 .driver_data = (void *)&predia_basic_data, 1497 .matches = { 1498 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1499 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), 1500 /* Above matches are too generic, add bios-version match */ 1501 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"), 1502 }, 1503 }, 1504 { 1505 /* Point of View mobii wintab p800w (v2.1) */ 1506 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data, 1507 .matches = { 1508 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), 1509 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), 1510 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"), 1511 /* Above matches are too generic, add bios-date match */ 1512 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"), 1513 }, 1514 }, 1515 { 1516 /* Point of View mobii wintab p1006w (v1.0) */ 1517 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data, 1518 .matches = { 1519 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"), 1520 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"), 1521 /* Note 105b is Foxcon's USB/PCI vendor id */ 1522 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"), 1523 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"), 1524 }, 1525 }, 1526 { 1527 /* RCA Cambio W101 v2 */ 1528 /* https://github.com/onitake/gsl-firmware/discussions/193 */ 1529 .driver_data = (void *)&rca_cambio_w101_v2_data, 1530 .matches = { 1531 DMI_MATCH(DMI_SYS_VENDOR, "RCA"), 1532 DMI_MATCH(DMI_PRODUCT_NAME, "W101SA23T1"), 1533 }, 1534 }, 1535 { 1536 /* RWC NANOTE P8 */ 1537 .driver_data = (void *)&rwc_nanote_p8_data, 1538 .matches = { 1539 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"), 1540 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"), 1541 DMI_MATCH(DMI_PRODUCT_SKU, "0001") 1542 }, 1543 }, 1544 { 1545 /* Schneider SCT101CTM */ 1546 .driver_data = (void *)&schneider_sct101ctm_data, 1547 .matches = { 1548 DMI_MATCH(DMI_SYS_VENDOR, "Default string"), 1549 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"), 1550 }, 1551 }, 1552 { 1553 /* Techbite Arc 11.6 */ 1554 .driver_data = (void *)&techbite_arc_11_6_data, 1555 .matches = { 1556 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"), 1557 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"), 1558 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"), 1559 }, 1560 }, 1561 { 1562 /* Teclast Tbook 11 */ 1563 .driver_data = (void *)&teclast_tbook11_data, 1564 .matches = { 1565 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), 1566 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"), 1567 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"), 1568 }, 1569 }, 1570 { 1571 /* Teclast X3 Plus */ 1572 .driver_data = (void *)&teclast_x3_plus_data, 1573 .matches = { 1574 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), 1575 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"), 1576 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"), 1577 }, 1578 }, 1579 { 1580 /* Teclast X89 (Android version / BIOS) */ 1581 .driver_data = (void *)&gdix1001_00_upside_down_data, 1582 .matches = { 1583 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"), 1584 DMI_MATCH(DMI_BOARD_NAME, "3G062i"), 1585 }, 1586 }, 1587 { 1588 /* Teclast X89 (Windows version / BIOS) */ 1589 .driver_data = (void *)&gdix1001_01_upside_down_data, 1590 .matches = { 1591 /* tPAD is too generic, also match on bios date */ 1592 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"), 1593 DMI_MATCH(DMI_BOARD_NAME, "tPAD"), 1594 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"), 1595 }, 1596 }, 1597 { 1598 /* Teclast X98 Plus II */ 1599 .driver_data = (void *)&teclast_x98plus2_data, 1600 .matches = { 1601 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), 1602 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"), 1603 }, 1604 }, 1605 { 1606 /* Teclast X98 Pro */ 1607 .driver_data = (void *)&gdix1001_00_upside_down_data, 1608 .matches = { 1609 /* 1610 * Only match BIOS date, because the manufacturers 1611 * BIOS does not report the board name at all 1612 * (sometimes)... 1613 */ 1614 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"), 1615 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"), 1616 }, 1617 }, 1618 { 1619 /* Trekstor Primebook C11 */ 1620 .driver_data = (void *)&trekstor_primebook_c11_data, 1621 .matches = { 1622 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1623 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"), 1624 }, 1625 }, 1626 { 1627 /* Trekstor Primebook C11B (same touchscreen as the C11) */ 1628 .driver_data = (void *)&trekstor_primebook_c11_data, 1629 .matches = { 1630 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1631 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"), 1632 }, 1633 }, 1634 { 1635 /* Trekstor Primebook C13 */ 1636 .driver_data = (void *)&trekstor_primebook_c13_data, 1637 .matches = { 1638 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1639 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"), 1640 }, 1641 }, 1642 { 1643 /* Trekstor Primetab T13B */ 1644 .driver_data = (void *)&trekstor_primetab_t13b_data, 1645 .matches = { 1646 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1647 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"), 1648 }, 1649 }, 1650 { 1651 /* TrekStor SurfTab duo W1 10.1 ST10432-10b */ 1652 .driver_data = (void *)&trekstor_surftab_duo_w1_data, 1653 .matches = { 1654 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1655 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"), 1656 }, 1657 }, 1658 { 1659 /* TrekStor SurfTab twin 10.1 ST10432-8 */ 1660 .driver_data = (void *)&trekstor_surftab_twin_10_1_data, 1661 .matches = { 1662 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1663 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"), 1664 }, 1665 }, 1666 { 1667 /* Trekstor Surftab Wintron 7.0 ST70416-6 */ 1668 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1669 .matches = { 1670 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), 1671 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"), 1672 /* Exact match, different versions need different fw */ 1673 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"), 1674 }, 1675 }, 1676 { 1677 /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */ 1678 .driver_data = (void *)&trekstor_surftab_wintron70_data, 1679 .matches = { 1680 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), 1681 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"), 1682 /* Exact match, different versions need different fw */ 1683 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"), 1684 }, 1685 }, 1686 { 1687 /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */ 1688 .driver_data = (void *)&trekstor_primebook_c11_data, 1689 .matches = { 1690 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), 1691 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"), 1692 }, 1693 }, 1694 { 1695 /* Viglen Connect 10 */ 1696 .driver_data = (void *)&viglen_connect_10_data, 1697 .matches = { 1698 DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."), 1699 DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"), 1700 }, 1701 }, 1702 { 1703 /* Vinga Twizzle J116 */ 1704 .driver_data = (void *)&vinga_twizzle_j116_data, 1705 .matches = { 1706 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"), 1707 }, 1708 }, 1709 { 1710 /* "WinBook TW100" */ 1711 .driver_data = (void *)&gdix1001_00_upside_down_data, 1712 .matches = { 1713 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"), 1714 DMI_MATCH(DMI_PRODUCT_NAME, "TW100") 1715 } 1716 }, 1717 { 1718 /* WinBook TW700 */ 1719 .driver_data = (void *)&gdix1001_00_upside_down_data, 1720 .matches = { 1721 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"), 1722 DMI_MATCH(DMI_PRODUCT_NAME, "TW700") 1723 }, 1724 }, 1725 { 1726 /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */ 1727 .driver_data = (void *)&chuwi_vi8_data, 1728 .matches = { 1729 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"), 1730 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"), 1731 }, 1732 }, 1733 { } 1734 }; 1735 1736 static const struct ts_dmi_data *ts_data; 1737 1738 static void ts_dmi_add_props(struct i2c_client *client) 1739 { 1740 struct device *dev = &client->dev; 1741 int error; 1742 1743 if (has_acpi_companion(dev) && 1744 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) { 1745 error = device_create_managed_software_node(dev, ts_data->properties, NULL); 1746 if (error) 1747 dev_err(dev, "failed to add properties: %d\n", error); 1748 } 1749 } 1750 1751 static int ts_dmi_notifier_call(struct notifier_block *nb, 1752 unsigned long action, void *data) 1753 { 1754 struct device *dev = data; 1755 struct i2c_client *client; 1756 1757 switch (action) { 1758 case BUS_NOTIFY_ADD_DEVICE: 1759 client = i2c_verify_client(dev); 1760 if (client) 1761 ts_dmi_add_props(client); 1762 break; 1763 1764 default: 1765 break; 1766 } 1767 1768 return 0; 1769 } 1770 1771 static struct notifier_block ts_dmi_notifier = { 1772 .notifier_call = ts_dmi_notifier_call, 1773 }; 1774 1775 static int __init ts_dmi_init(void) 1776 { 1777 const struct dmi_system_id *dmi_id; 1778 int error; 1779 1780 dmi_id = dmi_first_match(touchscreen_dmi_table); 1781 if (!dmi_id) 1782 return 0; /* Not an error */ 1783 1784 ts_data = dmi_id->driver_data; 1785 /* Some dmi table entries only provide an efi_embedded_fw_desc */ 1786 if (!ts_data->properties) 1787 return 0; 1788 1789 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier); 1790 if (error) 1791 pr_err("%s: failed to register i2c bus notifier: %d\n", 1792 __func__, error); 1793 1794 return error; 1795 } 1796 1797 /* 1798 * We are registering out notifier after i2c core is initialized and i2c bus 1799 * itself is ready (which happens at postcore initcall level), but before 1800 * ACPI starts enumerating devices (at subsys initcall level). 1801 */ 1802 arch_initcall(ts_dmi_init); 1803