Linux Audio

Check our new training course

Open-source upstreaming

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