0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include <linux/acpi.h>
0012 #include <linux/device.h>
0013 #include <linux/dmi.h>
0014 #include <linux/efi_embedded_fw.h>
0015 #include <linux/i2c.h>
0016 #include <linux/notifier.h>
0017 #include <linux/property.h>
0018 #include <linux/string.h>
0019
0020 struct ts_dmi_data {
0021
0022 struct efi_embedded_fw_desc embedded_fw;
0023 const char *acpi_name;
0024 const struct property_entry *properties;
0025 };
0026
0027
0028
0029 static const struct property_entry chuwi_hi8_props[] = {
0030 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
0031 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0032 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0033 PROPERTY_ENTRY_BOOL("silead,home-button"),
0034 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
0035 { }
0036 };
0037
0038 static const struct ts_dmi_data chuwi_hi8_data = {
0039 .acpi_name = "MSSL0001:00",
0040 .properties = chuwi_hi8_props,
0041 };
0042
0043 static const struct property_entry chuwi_hi8_air_props[] = {
0044 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0045 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
0046 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0047 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"),
0048 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0049 { }
0050 };
0051
0052 static const struct ts_dmi_data chuwi_hi8_air_data = {
0053 .acpi_name = "MSSL1680:00",
0054 .properties = chuwi_hi8_air_props,
0055 };
0056
0057 static const struct property_entry chuwi_hi8_pro_props[] = {
0058 PROPERTY_ENTRY_U32("touchscreen-min-x", 6),
0059 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
0060 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0061 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
0062 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0063 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-hi8-pro.fw"),
0064 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0065 PROPERTY_ENTRY_BOOL("silead,home-button"),
0066 { }
0067 };
0068
0069 static const struct ts_dmi_data chuwi_hi8_pro_data = {
0070 .embedded_fw = {
0071 .name = "silead/gsl3680-chuwi-hi8-pro.fw",
0072 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0073 .length = 39864,
0074 .sha256 = { 0xc0, 0x88, 0xc5, 0xef, 0xd1, 0x70, 0x77, 0x59,
0075 0x4e, 0xe9, 0xc4, 0xd8, 0x2e, 0xcd, 0xbf, 0x95,
0076 0x32, 0xd9, 0x03, 0x28, 0x0d, 0x48, 0x9f, 0x92,
0077 0x35, 0x37, 0xf6, 0x8b, 0x2a, 0xe4, 0x73, 0xff },
0078 },
0079 .acpi_name = "MSSL1680:00",
0080 .properties = chuwi_hi8_pro_props,
0081 };
0082
0083 static const struct property_entry chuwi_hi10_air_props[] = {
0084 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
0085 PROPERTY_ENTRY_U32("touchscreen-size-y", 1271),
0086 PROPERTY_ENTRY_U32("touchscreen-min-x", 99),
0087 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
0088 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0089 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5),
0090 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4),
0091 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"),
0092 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0093 PROPERTY_ENTRY_BOOL("silead,home-button"),
0094 { }
0095 };
0096
0097 static const struct ts_dmi_data chuwi_hi10_air_data = {
0098 .acpi_name = "MSSL1680:00",
0099 .properties = chuwi_hi10_air_props,
0100 };
0101
0102 static const struct property_entry chuwi_hi10_plus_props[] = {
0103 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
0104 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
0105 PROPERTY_ENTRY_U32("touchscreen-size-x", 1908),
0106 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
0107 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
0108 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0109 PROPERTY_ENTRY_BOOL("silead,home-button"),
0110 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
0111 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
0112 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
0113 { }
0114 };
0115
0116 static const struct ts_dmi_data chuwi_hi10_plus_data = {
0117 .embedded_fw = {
0118 .name = "silead/gsl1680-chuwi-hi10plus.fw",
0119 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0120 .length = 34056,
0121 .sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
0122 0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
0123 0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
0124 0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
0125 },
0126 .acpi_name = "MSSL0017:00",
0127 .properties = chuwi_hi10_plus_props,
0128 };
0129
0130 static const u32 chuwi_hi10_pro_efi_min_max[] = { 8, 1911, 8, 1271 };
0131
0132 static const struct property_entry chuwi_hi10_pro_props[] = {
0133 PROPERTY_ENTRY_U32("touchscreen-min-x", 80),
0134 PROPERTY_ENTRY_U32("touchscreen-min-y", 26),
0135 PROPERTY_ENTRY_U32("touchscreen-size-x", 1962),
0136 PROPERTY_ENTRY_U32("touchscreen-size-y", 1254),
0137 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0138 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
0139 PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
0140 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0141 PROPERTY_ENTRY_BOOL("silead,home-button"),
0142 PROPERTY_ENTRY_BOOL("silead,pen-supported"),
0143 PROPERTY_ENTRY_U32("silead,pen-resolution-x", 8),
0144 PROPERTY_ENTRY_U32("silead,pen-resolution-y", 8),
0145 { }
0146 };
0147
0148 static const struct ts_dmi_data chuwi_hi10_pro_data = {
0149 .embedded_fw = {
0150 .name = "silead/gsl1680-chuwi-hi10-pro.fw",
0151 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0152 .length = 42504,
0153 .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
0154 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
0155 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
0156 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
0157 },
0158 .acpi_name = "MSSL1680:00",
0159 .properties = chuwi_hi10_pro_props,
0160 };
0161
0162 static const struct property_entry chuwi_hibook_props[] = {
0163 PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
0164 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
0165 PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
0166 PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
0167 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0168 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0169 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
0170 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0171 PROPERTY_ENTRY_BOOL("silead,home-button"),
0172 { }
0173 };
0174
0175 static const struct ts_dmi_data chuwi_hibook_data = {
0176 .embedded_fw = {
0177 .name = "silead/gsl1680-chuwi-hibook.fw",
0178 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0179 .length = 40392,
0180 .sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
0181 0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
0182 0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
0183 0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
0184 },
0185 .acpi_name = "MSSL0017:00",
0186 .properties = chuwi_hibook_props,
0187 };
0188
0189 static const struct property_entry chuwi_vi8_props[] = {
0190 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
0191 PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
0192 PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
0193 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0194 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0195 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
0196 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0197 PROPERTY_ENTRY_BOOL("silead,home-button"),
0198 { }
0199 };
0200
0201 static const struct ts_dmi_data chuwi_vi8_data = {
0202 .acpi_name = "MSSL1680:00",
0203 .properties = chuwi_vi8_props,
0204 };
0205
0206 static const struct ts_dmi_data chuwi_vi8_plus_data = {
0207 .embedded_fw = {
0208 .name = "chipone/icn8505-HAMP0002.fw",
0209 .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
0210 .length = 35012,
0211 .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
0212 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
0213 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
0214 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
0215 },
0216 };
0217
0218 static const struct property_entry chuwi_vi10_props[] = {
0219 PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
0220 PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
0221 PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
0222 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
0223 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
0224 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0225 PROPERTY_ENTRY_BOOL("silead,home-button"),
0226 { }
0227 };
0228
0229 static const struct ts_dmi_data chuwi_vi10_data = {
0230 .acpi_name = "MSSL0002:00",
0231 .properties = chuwi_vi10_props,
0232 };
0233
0234 static const struct property_entry chuwi_surbook_mini_props[] = {
0235 PROPERTY_ENTRY_U32("touchscreen-min-x", 88),
0236 PROPERTY_ENTRY_U32("touchscreen-min-y", 13),
0237 PROPERTY_ENTRY_U32("touchscreen-size-x", 2040),
0238 PROPERTY_ENTRY_U32("touchscreen-size-y", 1524),
0239 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"),
0240 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0241 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0242 { }
0243 };
0244
0245 static const struct ts_dmi_data chuwi_surbook_mini_data = {
0246 .acpi_name = "MSSL1680:00",
0247 .properties = chuwi_surbook_mini_props,
0248 };
0249
0250 static const struct property_entry connect_tablet9_props[] = {
0251 PROPERTY_ENTRY_U32("touchscreen-min-x", 9),
0252 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
0253 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
0254 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
0255 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0256 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0257 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"),
0258 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0259 { }
0260 };
0261
0262 static const struct ts_dmi_data connect_tablet9_data = {
0263 .acpi_name = "MSSL1680:00",
0264 .properties = connect_tablet9_props,
0265 };
0266
0267 static const struct property_entry cube_iwork8_air_props[] = {
0268 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
0269 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
0270 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
0271 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
0272 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0273 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"),
0274 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0275 { }
0276 };
0277
0278 static const struct ts_dmi_data cube_iwork8_air_data = {
0279 .embedded_fw = {
0280 .name = "silead/gsl3670-cube-iwork8-air.fw",
0281 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0282 .length = 38808,
0283 .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b,
0284 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c,
0285 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25,
0286 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc },
0287 },
0288 .acpi_name = "MSSL1680:00",
0289 .properties = cube_iwork8_air_props,
0290 };
0291
0292 static const struct property_entry cube_knote_i1101_props[] = {
0293 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
0294 PROPERTY_ENTRY_U32("touchscreen-min-y", 22),
0295 PROPERTY_ENTRY_U32("touchscreen-size-x", 1961),
0296 PROPERTY_ENTRY_U32("touchscreen-size-y", 1513),
0297 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"),
0298 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0299 PROPERTY_ENTRY_BOOL("silead,home-button"),
0300 { }
0301 };
0302
0303 static const struct ts_dmi_data cube_knote_i1101_data = {
0304 .acpi_name = "MSSL1680:00",
0305 .properties = cube_knote_i1101_props,
0306 };
0307
0308 static const struct property_entry dexp_ursus_7w_props[] = {
0309 PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
0310 PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
0311 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
0312 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0313 PROPERTY_ENTRY_BOOL("silead,home-button"),
0314 { }
0315 };
0316
0317 static const struct ts_dmi_data dexp_ursus_7w_data = {
0318 .acpi_name = "MSSL1680:00",
0319 .properties = dexp_ursus_7w_props,
0320 };
0321
0322 static const struct property_entry digma_citi_e200_props[] = {
0323 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
0324 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
0325 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0326 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"),
0327 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0328 PROPERTY_ENTRY_BOOL("silead,home-button"),
0329 { }
0330 };
0331
0332 static const struct ts_dmi_data digma_citi_e200_data = {
0333 .acpi_name = "MSSL1680:00",
0334 .properties = digma_citi_e200_props,
0335 };
0336
0337 static const struct property_entry estar_beauty_hd_props[] = {
0338 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0339 { }
0340 };
0341
0342 static const struct ts_dmi_data estar_beauty_hd_data = {
0343 .acpi_name = "GDIX1001:00",
0344 .properties = estar_beauty_hd_props,
0345 };
0346
0347
0348 static const struct property_entry gdix1001_upside_down_props[] = {
0349 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0350 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0351 { }
0352 };
0353
0354 static const struct ts_dmi_data gdix1001_00_upside_down_data = {
0355 .acpi_name = "GDIX1001:00",
0356 .properties = gdix1001_upside_down_props,
0357 };
0358
0359 static const struct ts_dmi_data gdix1001_01_upside_down_data = {
0360 .acpi_name = "GDIX1001:01",
0361 .properties = gdix1001_upside_down_props,
0362 };
0363
0364 static const struct property_entry gp_electronic_t701_props[] = {
0365 PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
0366 PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
0367 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0368 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0369 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"),
0370 { }
0371 };
0372
0373 static const struct ts_dmi_data gp_electronic_t701_data = {
0374 .acpi_name = "MSSL1680:00",
0375 .properties = gp_electronic_t701_props,
0376 };
0377
0378 static const struct property_entry irbis_tw90_props[] = {
0379 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
0380 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
0381 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
0382 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
0383 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0384 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0385 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"),
0386 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0387 PROPERTY_ENTRY_BOOL("silead,home-button"),
0388 { }
0389 };
0390
0391 static const struct ts_dmi_data irbis_tw90_data = {
0392 .acpi_name = "MSSL1680:00",
0393 .properties = irbis_tw90_props,
0394 };
0395
0396 static const struct property_entry irbis_tw118_props[] = {
0397 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
0398 PROPERTY_ENTRY_U32("touchscreen-min-y", 30),
0399 PROPERTY_ENTRY_U32("touchscreen-size-x", 1960),
0400 PROPERTY_ENTRY_U32("touchscreen-size-y", 1510),
0401 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"),
0402 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0403 { }
0404 };
0405
0406 static const struct ts_dmi_data irbis_tw118_data = {
0407 .acpi_name = "MSSL1680:00",
0408 .properties = irbis_tw118_props,
0409 };
0410
0411 static const struct property_entry itworks_tw891_props[] = {
0412 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
0413 PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
0414 PROPERTY_ENTRY_U32("touchscreen-size-x", 1600),
0415 PROPERTY_ENTRY_U32("touchscreen-size-y", 896),
0416 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0417 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0418 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"),
0419 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0420 { }
0421 };
0422
0423 static const struct ts_dmi_data itworks_tw891_data = {
0424 .acpi_name = "MSSL1680:00",
0425 .properties = itworks_tw891_props,
0426 };
0427
0428 static const struct property_entry jumper_ezpad_6_pro_props[] = {
0429 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
0430 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
0431 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"),
0432 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0433 PROPERTY_ENTRY_BOOL("silead,home-button"),
0434 { }
0435 };
0436
0437 static const struct ts_dmi_data jumper_ezpad_6_pro_data = {
0438 .acpi_name = "MSSL1680:00",
0439 .properties = jumper_ezpad_6_pro_props,
0440 };
0441
0442 static const struct property_entry jumper_ezpad_6_pro_b_props[] = {
0443 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
0444 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
0445 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"),
0446 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0447 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0448 PROPERTY_ENTRY_BOOL("silead,home-button"),
0449 { }
0450 };
0451
0452 static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = {
0453 .acpi_name = "MSSL1680:00",
0454 .properties = jumper_ezpad_6_pro_b_props,
0455 };
0456
0457 static const struct property_entry jumper_ezpad_6_m4_props[] = {
0458 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
0459 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
0460 PROPERTY_ENTRY_U32("touchscreen-size-x", 1950),
0461 PROPERTY_ENTRY_U32("touchscreen-size-y", 1525),
0462 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"),
0463 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0464 PROPERTY_ENTRY_BOOL("silead,home-button"),
0465 { }
0466 };
0467
0468 static const struct ts_dmi_data jumper_ezpad_6_m4_data = {
0469 .acpi_name = "MSSL1680:00",
0470 .properties = jumper_ezpad_6_m4_props,
0471 };
0472
0473 static const struct property_entry jumper_ezpad_7_props[] = {
0474 PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
0475 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
0476 PROPERTY_ENTRY_U32("touchscreen-size-x", 2044),
0477 PROPERTY_ENTRY_U32("touchscreen-size-y", 1526),
0478 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0479 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"),
0480 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0481 PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"),
0482 { }
0483 };
0484
0485 static const struct ts_dmi_data jumper_ezpad_7_data = {
0486 .acpi_name = "MSSL1680:00",
0487 .properties = jumper_ezpad_7_props,
0488 };
0489
0490 static const struct property_entry jumper_ezpad_mini3_props[] = {
0491 PROPERTY_ENTRY_U32("touchscreen-min-x", 23),
0492 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
0493 PROPERTY_ENTRY_U32("touchscreen-size-x", 1700),
0494 PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
0495 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0496 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"),
0497 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0498 { }
0499 };
0500
0501 static const struct ts_dmi_data jumper_ezpad_mini3_data = {
0502 .acpi_name = "MSSL1680:00",
0503 .properties = jumper_ezpad_mini3_props,
0504 };
0505
0506 static const struct property_entry mpman_converter9_props[] = {
0507 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
0508 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
0509 PROPERTY_ENTRY_U32("touchscreen-size-x", 1664),
0510 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
0511 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0512 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0513 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"),
0514 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0515 { }
0516 };
0517
0518 static const struct ts_dmi_data mpman_converter9_data = {
0519 .acpi_name = "MSSL1680:00",
0520 .properties = mpman_converter9_props,
0521 };
0522
0523 static const struct property_entry mpman_mpwin895cl_props[] = {
0524 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
0525 PROPERTY_ENTRY_U32("touchscreen-min-y", 9),
0526 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0527 PROPERTY_ENTRY_U32("touchscreen-size-y", 1150),
0528 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0529 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"),
0530 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0531 PROPERTY_ENTRY_BOOL("silead,home-button"),
0532 { }
0533 };
0534
0535 static const struct ts_dmi_data mpman_mpwin895cl_data = {
0536 .acpi_name = "MSSL1680:00",
0537 .properties = mpman_mpwin895cl_props,
0538 };
0539
0540 static const struct property_entry myria_my8307_props[] = {
0541 PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
0542 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0543 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0544 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0545 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0546 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"),
0547 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0548 PROPERTY_ENTRY_BOOL("silead,home-button"),
0549 { }
0550 };
0551
0552 static const struct ts_dmi_data myria_my8307_data = {
0553 .acpi_name = "MSSL1680:00",
0554 .properties = myria_my8307_props,
0555 };
0556
0557 static const struct property_entry onda_obook_20_plus_props[] = {
0558 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0559 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
0560 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0561 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0562 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0563 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"),
0564 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0565 PROPERTY_ENTRY_BOOL("silead,home-button"),
0566 { }
0567 };
0568
0569 static const struct ts_dmi_data onda_obook_20_plus_data = {
0570 .acpi_name = "MSSL1680:00",
0571 .properties = onda_obook_20_plus_props,
0572 };
0573
0574 static const struct property_entry onda_v80_plus_v3_props[] = {
0575 PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
0576 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
0577 PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
0578 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0579 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0580 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"),
0581 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0582 PROPERTY_ENTRY_BOOL("silead,home-button"),
0583 { }
0584 };
0585
0586 static const struct ts_dmi_data onda_v80_plus_v3_data = {
0587 .embedded_fw = {
0588 .name = "silead/gsl3676-onda-v80-plus-v3.fw",
0589 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0590 .length = 37224,
0591 .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5,
0592 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32,
0593 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7,
0594 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 },
0595 },
0596 .acpi_name = "MSSL1680:00",
0597 .properties = onda_v80_plus_v3_props,
0598 };
0599
0600 static const struct property_entry onda_v820w_32g_props[] = {
0601 PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
0602 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0603 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0604 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"),
0605 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0606 PROPERTY_ENTRY_BOOL("silead,home-button"),
0607 { }
0608 };
0609
0610 static const struct ts_dmi_data onda_v820w_32g_data = {
0611 .acpi_name = "MSSL1680:00",
0612 .properties = onda_v820w_32g_props,
0613 };
0614
0615 static const struct property_entry onda_v891_v5_props[] = {
0616 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
0617 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0618 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0619 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0620 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0621 PROPERTY_ENTRY_STRING("firmware-name",
0622 "gsl3676-onda-v891-v5.fw"),
0623 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0624 PROPERTY_ENTRY_BOOL("silead,home-button"),
0625 { }
0626 };
0627
0628 static const struct ts_dmi_data onda_v891_v5_data = {
0629 .acpi_name = "MSSL1680:00",
0630 .properties = onda_v891_v5_props,
0631 };
0632
0633 static const struct property_entry onda_v891w_v1_props[] = {
0634 PROPERTY_ENTRY_U32("touchscreen-min-x", 46),
0635 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
0636 PROPERTY_ENTRY_U32("touchscreen-size-x", 1676),
0637 PROPERTY_ENTRY_U32("touchscreen-size-y", 1130),
0638 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"),
0639 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0640 PROPERTY_ENTRY_BOOL("silead,home-button"),
0641 { }
0642 };
0643
0644 static const struct ts_dmi_data onda_v891w_v1_data = {
0645 .acpi_name = "MSSL1680:00",
0646 .properties = onda_v891w_v1_props,
0647 };
0648
0649 static const struct property_entry onda_v891w_v3_props[] = {
0650 PROPERTY_ENTRY_U32("touchscreen-min-x", 35),
0651 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
0652 PROPERTY_ENTRY_U32("touchscreen-size-x", 1625),
0653 PROPERTY_ENTRY_U32("touchscreen-size-y", 1135),
0654 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0655 PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"),
0656 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0657 PROPERTY_ENTRY_BOOL("silead,home-button"),
0658 { }
0659 };
0660
0661 static const struct ts_dmi_data onda_v891w_v3_data = {
0662 .acpi_name = "MSSL1680:00",
0663 .properties = onda_v891w_v3_props,
0664 };
0665
0666 static const struct property_entry pipo_w2s_props[] = {
0667 PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
0668 PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
0669 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0670 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0671 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"),
0672 { }
0673 };
0674
0675 static const struct ts_dmi_data pipo_w2s_data = {
0676 .embedded_fw = {
0677 .name = "silead/gsl1680-pipo-w2s.fw",
0678 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0679 .length = 39072,
0680 .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18,
0681 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60,
0682 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4,
0683 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 },
0684 },
0685 .acpi_name = "MSSL1680:00",
0686 .properties = pipo_w2s_props,
0687 };
0688
0689 static const struct property_entry pipo_w11_props[] = {
0690 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
0691 PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
0692 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
0693 PROPERTY_ENTRY_U32("touchscreen-size-y", 1532),
0694 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"),
0695 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0696 PROPERTY_ENTRY_BOOL("silead,home-button"),
0697 { }
0698 };
0699
0700 static const struct ts_dmi_data pipo_w11_data = {
0701 .acpi_name = "MSSL1680:00",
0702 .properties = pipo_w11_props,
0703 };
0704
0705 static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = {
0706 PROPERTY_ENTRY_U32("touchscreen-min-x", 32),
0707 PROPERTY_ENTRY_U32("touchscreen-min-y", 16),
0708 PROPERTY_ENTRY_U32("touchscreen-size-x", 1692),
0709 PROPERTY_ENTRY_U32("touchscreen-size-y", 1146),
0710 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0711 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"),
0712 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0713 PROPERTY_ENTRY_BOOL("silead,home-button"),
0714 { }
0715 };
0716
0717 static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = {
0718 .acpi_name = "MSSL1680:00",
0719 .properties = pov_mobii_wintab_p800w_v20_props,
0720 };
0721
0722 static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = {
0723 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
0724 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
0725 PROPERTY_ENTRY_U32("touchscreen-size-x", 1794),
0726 PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
0727 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0728 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"),
0729 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0730 PROPERTY_ENTRY_BOOL("silead,home-button"),
0731 { }
0732 };
0733
0734 static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = {
0735 .acpi_name = "MSSL1680:00",
0736 .properties = pov_mobii_wintab_p800w_v21_props,
0737 };
0738
0739 static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = {
0740 PROPERTY_ENTRY_U32("touchscreen-min-x", 1),
0741 PROPERTY_ENTRY_U32("touchscreen-min-y", 3),
0742 PROPERTY_ENTRY_U32("touchscreen-size-x", 1984),
0743 PROPERTY_ENTRY_U32("touchscreen-size-y", 1520),
0744 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0745 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"),
0746 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0747 PROPERTY_ENTRY_BOOL("silead,home-button"),
0748 { }
0749 };
0750
0751 static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = {
0752 .acpi_name = "MSSL1680:00",
0753 .properties = pov_mobii_wintab_p1006w_v10_props,
0754 };
0755
0756 static const struct property_entry predia_basic_props[] = {
0757 PROPERTY_ENTRY_U32("touchscreen-min-x", 3),
0758 PROPERTY_ENTRY_U32("touchscreen-min-y", 10),
0759 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0760 PROPERTY_ENTRY_U32("touchscreen-size-y", 1144),
0761 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0762 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"),
0763 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0764 PROPERTY_ENTRY_BOOL("silead,home-button"),
0765 { }
0766 };
0767
0768 static const struct ts_dmi_data predia_basic_data = {
0769 .acpi_name = "MSSL1680:00",
0770 .properties = predia_basic_props,
0771 };
0772
0773 static const struct property_entry rwc_nanote_p8_props[] = {
0774 PROPERTY_ENTRY_U32("touchscreen-min-y", 46),
0775 PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
0776 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0777 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0778 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-p8.fw"),
0779 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0780 { }
0781 };
0782
0783 static const struct ts_dmi_data rwc_nanote_p8_data = {
0784 .acpi_name = "MSSL1680:00",
0785 .properties = rwc_nanote_p8_props,
0786 };
0787
0788 static const struct property_entry schneider_sct101ctm_props[] = {
0789 PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
0790 PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
0791 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0792 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0793 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0794 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"),
0795 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0796 PROPERTY_ENTRY_BOOL("silead,home-button"),
0797 { }
0798 };
0799
0800 static const struct ts_dmi_data schneider_sct101ctm_data = {
0801 .acpi_name = "MSSL1680:00",
0802 .properties = schneider_sct101ctm_props,
0803 };
0804
0805 static const struct property_entry techbite_arc_11_6_props[] = {
0806 PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
0807 PROPERTY_ENTRY_U32("touchscreen-min-y", 7),
0808 PROPERTY_ENTRY_U32("touchscreen-size-x", 1981),
0809 PROPERTY_ENTRY_U32("touchscreen-size-y", 1270),
0810 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0811 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"),
0812 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0813 { }
0814 };
0815
0816 static const struct ts_dmi_data techbite_arc_11_6_data = {
0817 .acpi_name = "MSSL1680:00",
0818 .properties = techbite_arc_11_6_props,
0819 };
0820
0821 static const struct property_entry teclast_tbook11_props[] = {
0822 PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
0823 PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
0824 PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
0825 PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
0826 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0827 PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-tbook11.fw"),
0828 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0829 PROPERTY_ENTRY_BOOL("silead,home-button"),
0830 { }
0831 };
0832
0833 static const struct ts_dmi_data teclast_tbook11_data = {
0834 .embedded_fw = {
0835 .name = "silead/gsl3692-teclast-tbook11.fw",
0836 .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
0837 .length = 43560,
0838 .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
0839 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
0840 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
0841 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
0842 },
0843 .acpi_name = "MSSL1680:00",
0844 .properties = teclast_tbook11_props,
0845 };
0846
0847 static const struct property_entry teclast_x3_plus_props[] = {
0848 PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
0849 PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
0850 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
0851 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0852 PROPERTY_ENTRY_BOOL("silead,home-button"),
0853 { }
0854 };
0855
0856 static const struct ts_dmi_data teclast_x3_plus_data = {
0857 .acpi_name = "MSSL1680:00",
0858 .properties = teclast_x3_plus_props,
0859 };
0860
0861 static const struct property_entry teclast_x98plus2_props[] = {
0862 PROPERTY_ENTRY_U32("touchscreen-size-x", 2048),
0863 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
0864 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0865 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0866 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"),
0867 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0868 { }
0869 };
0870
0871 static const struct ts_dmi_data teclast_x98plus2_data = {
0872 .acpi_name = "MSSL1680:00",
0873 .properties = teclast_x98plus2_props,
0874 };
0875
0876 static const struct property_entry trekstor_primebook_c11_props[] = {
0877 PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
0878 PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
0879 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0880 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"),
0881 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0882 PROPERTY_ENTRY_BOOL("silead,home-button"),
0883 { }
0884 };
0885
0886 static const struct ts_dmi_data trekstor_primebook_c11_data = {
0887 .acpi_name = "MSSL1680:00",
0888 .properties = trekstor_primebook_c11_props,
0889 };
0890
0891 static const struct property_entry trekstor_primebook_c13_props[] = {
0892 PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
0893 PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
0894 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"),
0895 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0896 PROPERTY_ENTRY_BOOL("silead,home-button"),
0897 { }
0898 };
0899
0900 static const struct ts_dmi_data trekstor_primebook_c13_data = {
0901 .acpi_name = "MSSL1680:00",
0902 .properties = trekstor_primebook_c13_props,
0903 };
0904
0905 static const struct property_entry trekstor_primetab_t13b_props[] = {
0906 PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
0907 PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
0908 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"),
0909 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0910 PROPERTY_ENTRY_BOOL("silead,home-button"),
0911 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
0912 { }
0913 };
0914
0915 static const struct ts_dmi_data trekstor_primetab_t13b_data = {
0916 .acpi_name = "MSSL1680:00",
0917 .properties = trekstor_primetab_t13b_props,
0918 };
0919
0920 static const struct property_entry trekstor_surftab_duo_w1_props[] = {
0921 PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
0922 { }
0923 };
0924
0925 static const struct ts_dmi_data trekstor_surftab_duo_w1_data = {
0926 .acpi_name = "GDIX1001:00",
0927 .properties = trekstor_surftab_duo_w1_props,
0928 };
0929
0930 static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
0931 PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
0932 PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
0933 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
0934 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
0935 PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
0936 PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"),
0937 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0938 PROPERTY_ENTRY_BOOL("silead,home-button"),
0939 { }
0940 };
0941
0942 static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = {
0943 .acpi_name = "MSSL1680:00",
0944 .properties = trekstor_surftab_twin_10_1_props,
0945 };
0946
0947 static const struct property_entry trekstor_surftab_wintron70_props[] = {
0948 PROPERTY_ENTRY_U32("touchscreen-min-x", 12),
0949 PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
0950 PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
0951 PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
0952 PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"),
0953 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0954 PROPERTY_ENTRY_BOOL("silead,home-button"),
0955 { }
0956 };
0957
0958 static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
0959 .acpi_name = "MSSL1680:00",
0960 .properties = trekstor_surftab_wintron70_props,
0961 };
0962
0963 static const struct property_entry viglen_connect_10_props[] = {
0964 PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
0965 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
0966 PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 6),
0967 PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
0968 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
0969 PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-connect-10.fw"),
0970 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0971 PROPERTY_ENTRY_BOOL("silead,home-button"),
0972 { }
0973 };
0974
0975 static const struct ts_dmi_data viglen_connect_10_data = {
0976 .acpi_name = "MSSL1680:00",
0977 .properties = viglen_connect_10_props,
0978 };
0979
0980 static const struct property_entry vinga_twizzle_j116_props[] = {
0981 PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
0982 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
0983 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
0984 PROPERTY_ENTRY_U32("silead,max-fingers", 10),
0985 PROPERTY_ENTRY_BOOL("silead,home-button"),
0986 { }
0987 };
0988
0989 static const struct ts_dmi_data vinga_twizzle_j116_data = {
0990 .acpi_name = "MSSL1680:00",
0991 .properties = vinga_twizzle_j116_props,
0992 };
0993
0994
0995 const struct dmi_system_id touchscreen_dmi_table[] = {
0996 {
0997
0998 .driver_data = (void *)&chuwi_hi8_data,
0999 .matches = {
1000 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1001 DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
1002 },
1003 },
1004 {
1005
1006 .driver_data = (void *)&chuwi_hi8_data,
1007 .matches = {
1008 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1009 DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1010 DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"),
1011 },
1012 },
1013 {
1014
1015 .driver_data = (void *)&chuwi_hi8_air_data,
1016 .matches = {
1017 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1018 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1019 DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"),
1020 },
1021 },
1022 {
1023
1024 .driver_data = (void *)&chuwi_hi8_pro_data,
1025 .matches = {
1026 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1027 DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
1028 },
1029 },
1030 {
1031
1032 .driver_data = (void *)&chuwi_hi10_air_data,
1033 .matches = {
1034 DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"),
1035 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1036 DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"),
1037 },
1038 },
1039 {
1040
1041 .driver_data = (void *)&chuwi_hi10_plus_data,
1042 .matches = {
1043 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1044 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"),
1045 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1046 },
1047 },
1048 {
1049
1050 .driver_data = (void *)&chuwi_hi10_pro_data,
1051 .matches = {
1052 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1053 DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
1054 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1055 },
1056 },
1057 {
1058
1059 .driver_data = (void *)&chuwi_hibook_data,
1060 .matches = {
1061 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1062 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1063
1064 DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1065 },
1066 },
1067 {
1068
1069 .driver_data = (void *)&chuwi_vi8_data,
1070 .matches = {
1071 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1072 DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
1073 DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
1074 },
1075 },
1076 {
1077
1078 .driver_data = (void *)&chuwi_vi8_plus_data,
1079 .matches = {
1080 DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
1081 DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
1082 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1083 },
1084 },
1085 {
1086
1087 .driver_data = (void *)&chuwi_vi10_data,
1088 .matches = {
1089 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1090 DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
1091 DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
1092 DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
1093 },
1094 },
1095 {
1096
1097 .driver_data = (void *)&chuwi_surbook_mini_data,
1098 .matches = {
1099 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1100 DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"),
1101 },
1102 },
1103 {
1104
1105 .driver_data = (void *)&connect_tablet9_data,
1106 .matches = {
1107 DMI_MATCH(DMI_SYS_VENDOR, "Connect"),
1108 DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"),
1109 },
1110 },
1111 {
1112
1113 .driver_data = (void *)&cube_iwork8_air_data,
1114 .matches = {
1115 DMI_MATCH(DMI_SYS_VENDOR, "cube"),
1116 DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"),
1117 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1118 },
1119 },
1120 {
1121
1122 .driver_data = (void *)&cube_knote_i1101_data,
1123 .matches = {
1124 DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1125 DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"),
1126 DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"),
1127 DMI_MATCH(DMI_PRODUCT_NAME, "i1101"),
1128 },
1129 },
1130 {
1131
1132 .driver_data = (void *)&dexp_ursus_7w_data,
1133 .matches = {
1134 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1135 DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
1136 },
1137 },
1138 {
1139
1140 .driver_data = (void *)&digma_citi_e200_data,
1141 .matches = {
1142 DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
1143 DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
1144 DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1145 },
1146 },
1147 {
1148
1149 .driver_data = (void *)&estar_beauty_hd_data,
1150 .matches = {
1151 DMI_MATCH(DMI_SYS_VENDOR, "Estar"),
1152 DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"),
1153 },
1154 },
1155 {
1156
1157 .driver_data = (void *)&gp_electronic_t701_data,
1158 .matches = {
1159 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1160 DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
1161 DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
1162 },
1163 },
1164 {
1165
1166 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1167 .matches = {
1168 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1169 DMI_MATCH(DMI_PRODUCT_NAME, "i71c"),
1170 DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"),
1171 },
1172 },
1173 {
1174
1175 .driver_data = (void *)&irbis_tw90_data,
1176 .matches = {
1177 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1178 DMI_MATCH(DMI_PRODUCT_NAME, "TW90"),
1179 },
1180 },
1181 {
1182
1183 .driver_data = (void *)&irbis_tw118_data,
1184 .matches = {
1185 DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"),
1186 DMI_MATCH(DMI_PRODUCT_NAME, "TW118"),
1187 },
1188 },
1189 {
1190
1191 .driver_data = (void *)&itworks_tw891_data,
1192 .matches = {
1193 DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."),
1194 DMI_MATCH(DMI_PRODUCT_NAME, "TW891"),
1195 },
1196 },
1197 {
1198
1199 .driver_data = (void *)&jumper_ezpad_6_pro_data,
1200 .matches = {
1201 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1202 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1203 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1204
1205 DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"),
1206 },
1207 },
1208 {
1209
1210 .driver_data = (void *)&jumper_ezpad_6_pro_b_data,
1211 .matches = {
1212 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1213 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1214 DMI_MATCH(DMI_BIOS_VERSION, "5.12"),
1215
1216 DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"),
1217 },
1218 },
1219 {
1220
1221 .driver_data = (void *)&jumper_ezpad_6_m4_data,
1222 .matches = {
1223 DMI_MATCH(DMI_SYS_VENDOR, "jumper"),
1224 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1225
1226 DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"),
1227 },
1228 },
1229 {
1230
1231 .driver_data = (void *)&jumper_ezpad_7_data,
1232 .matches = {
1233 DMI_MATCH(DMI_SYS_VENDOR, "Jumper"),
1234 DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"),
1235
1236 DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"),
1237 },
1238 },
1239 {
1240
1241 .driver_data = (void *)&jumper_ezpad_mini3_data,
1242 .matches = {
1243 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1244
1245 DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
1246 },
1247 },
1248 {
1249
1250 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1251 .matches = {
1252 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1253 DMI_MATCH(DMI_PRODUCT_NAME, "WinPad 7 W10 - WPW700"),
1254 },
1255 },
1256 {
1257
1258 .driver_data = (void *)&trekstor_primebook_c11_data,
1259 .matches = {
1260 DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"),
1261 DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"),
1262 },
1263 },
1264 {
1265
1266 .driver_data = (void *)&mpman_converter9_data,
1267 .matches = {
1268 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1269 DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"),
1270 },
1271 },
1272 {
1273
1274 .driver_data = (void *)&mpman_mpwin895cl_data,
1275 .matches = {
1276 DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"),
1277 DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"),
1278 },
1279 },
1280 {
1281
1282 .driver_data = (void *)&myria_my8307_data,
1283 .matches = {
1284 DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"),
1285 DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
1286 },
1287 },
1288 {
1289
1290 .driver_data = (void *)&onda_obook_20_plus_data,
1291 .matches = {
1292 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1293 DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
1294 },
1295 },
1296 {
1297
1298 .driver_data = (void *)&onda_v80_plus_v3_data,
1299 .matches = {
1300 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
1301 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
1302 },
1303 },
1304 {
1305
1306 .driver_data = (void *)&onda_v820w_32g_data,
1307 .matches = {
1308 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1309 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS")
1310 },
1311 },
1312 {
1313
1314 .driver_data = (void *)&onda_v891_v5_data,
1315 .matches = {
1316 DMI_MATCH(DMI_SYS_VENDOR, "ONDA"),
1317 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1318 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"),
1319 },
1320 },
1321 {
1322
1323 .driver_data = (void *)&onda_v891w_v1_data,
1324 .matches = {
1325 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"),
1326 DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"),
1327 DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"),
1328
1329 DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"),
1330 },
1331 },
1332 {
1333
1334 .driver_data = (void *)&onda_v891w_v3_data,
1335 .matches = {
1336 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1337 DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"),
1338 DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"),
1339 },
1340 },
1341 {
1342
1343 .driver_data = (void *)&pipo_w2s_data,
1344 .matches = {
1345 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1346 DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
1347 },
1348 },
1349 {
1350
1351 .driver_data = (void *)&pipo_w11_data,
1352 .matches = {
1353 DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
1354 DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1355
1356 DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"),
1357 },
1358 },
1359 {
1360
1361 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1362 .matches = {
1363 DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"),
1364 DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"),
1365
1366 DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"),
1367 },
1368 },
1369 {
1370
1371 .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data,
1372 .matches = {
1373 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1374 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1375 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"),
1376
1377 DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"),
1378 },
1379 },
1380 {
1381
1382 .driver_data = (void *)&predia_basic_data,
1383 .matches = {
1384 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1385 DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"),
1386
1387 DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"),
1388 },
1389 },
1390 {
1391
1392 .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data,
1393 .matches = {
1394 DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
1395 DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"),
1396 DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"),
1397
1398 DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
1399 },
1400 },
1401 {
1402
1403 .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data,
1404 .matches = {
1405 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
1406 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
1407
1408 DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
1409 DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
1410 },
1411 },
1412 {
1413
1414 .driver_data = (void *)&rwc_nanote_p8_data,
1415 .matches = {
1416 DMI_MATCH(DMI_BOARD_VENDOR, "Default string"),
1417 DMI_MATCH(DMI_PRODUCT_NAME, "AY07J"),
1418 DMI_MATCH(DMI_PRODUCT_SKU, "0001")
1419 },
1420 },
1421 {
1422
1423 .driver_data = (void *)&schneider_sct101ctm_data,
1424 .matches = {
1425 DMI_MATCH(DMI_SYS_VENDOR, "Default string"),
1426 DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"),
1427 },
1428 },
1429 {
1430
1431 .driver_data = (void *)&techbite_arc_11_6_data,
1432 .matches = {
1433 DMI_MATCH(DMI_SYS_VENDOR, "mPTech"),
1434 DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"),
1435 DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"),
1436 },
1437 },
1438 {
1439
1440 .driver_data = (void *)&teclast_tbook11_data,
1441 .matches = {
1442 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1443 DMI_MATCH(DMI_PRODUCT_NAME, "TbooK 11"),
1444 DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
1445 },
1446 },
1447 {
1448
1449 .driver_data = (void *)&teclast_x3_plus_data,
1450 .matches = {
1451 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1452 DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
1453 DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
1454 },
1455 },
1456 {
1457
1458 .driver_data = (void *)&gdix1001_00_upside_down_data,
1459 .matches = {
1460 DMI_MATCH(DMI_BOARD_VENDOR, "WISKY"),
1461 DMI_MATCH(DMI_BOARD_NAME, "3G062i"),
1462 },
1463 },
1464 {
1465
1466 .driver_data = (void *)&gdix1001_01_upside_down_data,
1467 .matches = {
1468
1469 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1470 DMI_MATCH(DMI_BOARD_NAME, "tPAD"),
1471 DMI_MATCH(DMI_BIOS_DATE, "12/19/2014"),
1472 },
1473 },
1474 {
1475
1476 .driver_data = (void *)&teclast_x98plus2_data,
1477 .matches = {
1478 DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
1479 DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
1480 },
1481 },
1482 {
1483
1484 .driver_data = (void *)&gdix1001_00_upside_down_data,
1485 .matches = {
1486
1487
1488
1489
1490
1491 DMI_MATCH(DMI_BOARD_VENDOR, "TECLAST"),
1492 DMI_MATCH(DMI_BIOS_DATE, "10/28/2015"),
1493 },
1494 },
1495 {
1496
1497 .driver_data = (void *)&trekstor_primebook_c11_data,
1498 .matches = {
1499 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1500 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
1501 },
1502 },
1503 {
1504
1505 .driver_data = (void *)&trekstor_primebook_c11_data,
1506 .matches = {
1507 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1508 DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"),
1509 },
1510 },
1511 {
1512
1513 .driver_data = (void *)&trekstor_primebook_c13_data,
1514 .matches = {
1515 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1516 DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
1517 },
1518 },
1519 {
1520
1521 .driver_data = (void *)&trekstor_primetab_t13b_data,
1522 .matches = {
1523 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1524 DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
1525 },
1526 },
1527 {
1528
1529 .driver_data = (void *)&trekstor_surftab_duo_w1_data,
1530 .matches = {
1531 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1532 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab duo W1 10.1 (VT4)"),
1533 },
1534 },
1535 {
1536
1537 .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
1538 .matches = {
1539 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1540 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
1541 },
1542 },
1543 {
1544
1545 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1546 .matches = {
1547 DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
1548 DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"),
1549
1550 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
1551 },
1552 },
1553 {
1554
1555 .driver_data = (void *)&trekstor_surftab_wintron70_data,
1556 .matches = {
1557 DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
1558 DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"),
1559
1560 DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"),
1561 },
1562 },
1563 {
1564
1565 .driver_data = (void *)&trekstor_primebook_c11_data,
1566 .matches = {
1567 DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
1568 DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"),
1569 },
1570 },
1571 {
1572
1573 .driver_data = (void *)&viglen_connect_10_data,
1574 .matches = {
1575 DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
1576 DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10'' Tablet PC"),
1577 },
1578 },
1579 {
1580
1581 .driver_data = (void *)&vinga_twizzle_j116_data,
1582 .matches = {
1583 DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
1584 },
1585 },
1586 {
1587
1588 .driver_data = (void *)&gdix1001_00_upside_down_data,
1589 .matches = {
1590 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1591 DMI_MATCH(DMI_PRODUCT_NAME, "TW100")
1592 }
1593 },
1594 {
1595
1596 .driver_data = (void *)&gdix1001_00_upside_down_data,
1597 .matches = {
1598 DMI_MATCH(DMI_SYS_VENDOR, "WinBook"),
1599 DMI_MATCH(DMI_PRODUCT_NAME, "TW700")
1600 },
1601 },
1602 {
1603
1604 .driver_data = (void *)&chuwi_vi8_data,
1605 .matches = {
1606 DMI_MATCH(DMI_SYS_VENDOR, "YOURS"),
1607 DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
1608 },
1609 },
1610 { }
1611 };
1612
1613 static const struct ts_dmi_data *ts_data;
1614
1615 static void ts_dmi_add_props(struct i2c_client *client)
1616 {
1617 struct device *dev = &client->dev;
1618 int error;
1619
1620 if (has_acpi_companion(dev) &&
1621 !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) {
1622 error = device_create_managed_software_node(dev, ts_data->properties, NULL);
1623 if (error)
1624 dev_err(dev, "failed to add properties: %d\n", error);
1625 }
1626 }
1627
1628 static int ts_dmi_notifier_call(struct notifier_block *nb,
1629 unsigned long action, void *data)
1630 {
1631 struct device *dev = data;
1632 struct i2c_client *client;
1633
1634 switch (action) {
1635 case BUS_NOTIFY_ADD_DEVICE:
1636 client = i2c_verify_client(dev);
1637 if (client)
1638 ts_dmi_add_props(client);
1639 break;
1640
1641 default:
1642 break;
1643 }
1644
1645 return 0;
1646 }
1647
1648 static struct notifier_block ts_dmi_notifier = {
1649 .notifier_call = ts_dmi_notifier_call,
1650 };
1651
1652 static int __init ts_dmi_init(void)
1653 {
1654 const struct dmi_system_id *dmi_id;
1655 int error;
1656
1657 dmi_id = dmi_first_match(touchscreen_dmi_table);
1658 if (!dmi_id)
1659 return 0;
1660
1661 ts_data = dmi_id->driver_data;
1662
1663 if (!ts_data->properties)
1664 return 0;
1665
1666 error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
1667 if (error)
1668 pr_err("%s: failed to register i2c bus notifier: %d\n",
1669 __func__, error);
1670
1671 return error;
1672 }
1673
1674
1675
1676
1677
1678
1679 arch_initcall(ts_dmi_init);