Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 2 | /* |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 3 | * Touchscreen driver DMI based configuration code |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 4 | * |
| 5 | * Copyright (c) 2017 Red Hat Inc. |
| 6 | * |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 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> |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 14 | #include <linux/efi_embedded_fw.h> |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 15 | #include <linux/i2c.h> |
| 16 | #include <linux/notifier.h> |
| 17 | #include <linux/property.h> |
| 18 | #include <linux/string.h> |
| 19 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 20 | struct ts_dmi_data { |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 21 | /* The EFI embedded-fw code expects this to be the first member! */ |
| 22 | struct efi_embedded_fw_desc embedded_fw; |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 23 | const char *acpi_name; |
Hans de Goede | ae31115 | 2017-03-22 16:55:53 +0100 | [diff] [blame] | 24 | const struct property_entry *properties; |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 27 | /* NOTE: Please keep all entries sorted alphabetically */ |
| 28 | |
| 29 | static const struct property_entry chuwi_hi8_props[] = { |
| 30 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1665), |
| 31 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 32 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 33 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 34 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"), |
| 35 | { } |
| 36 | }; |
| 37 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 38 | static const struct ts_dmi_data chuwi_hi8_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 39 | .acpi_name = "MSSL0001:00", |
| 40 | .properties = chuwi_hi8_props, |
| 41 | }; |
| 42 | |
Kai Renzig | bbb97d7 | 2019-02-03 19:34:23 +0100 | [diff] [blame] | 43 | static const struct property_entry chuwi_hi8_air_props[] = { |
| 44 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), |
| 45 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), |
| 46 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 47 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-hi8-air.fw"), |
| 48 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 49 | { } |
| 50 | }; |
| 51 | |
| 52 | static const struct ts_dmi_data chuwi_hi8_air_data = { |
| 53 | .acpi_name = "MSSL1680:00", |
| 54 | .properties = chuwi_hi8_air_props, |
| 55 | }; |
| 56 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 57 | static const struct property_entry chuwi_hi8_pro_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 58 | PROPERTY_ENTRY_U32("touchscreen-min-x", 6), |
| 59 | PROPERTY_ENTRY_U32("touchscreen-min-y", 3), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 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"), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 64 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 65 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 66 | { } |
| 67 | }; |
| 68 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 69 | static const struct ts_dmi_data chuwi_hi8_pro_data = { |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 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 | }, |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 79 | .acpi_name = "MSSL1680:00", |
| 80 | .properties = chuwi_hi8_pro_props, |
| 81 | }; |
| 82 | |
Christian Oder | b98dc49 | 2019-03-03 14:47:27 +0100 | [diff] [blame] | 83 | static const struct property_entry chuwi_hi10_air_props[] = { |
| 84 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1981), |
| 85 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1271), |
| 86 | PROPERTY_ENTRY_U32("touchscreen-min-x", 99), |
| 87 | PROPERTY_ENTRY_U32("touchscreen-min-y", 9), |
| 88 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 89 | PROPERTY_ENTRY_U32("touchscreen-fuzz-x", 5), |
| 90 | PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 4), |
| 91 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-air.fw"), |
| 92 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 93 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 94 | { } |
| 95 | }; |
| 96 | |
| 97 | static const struct ts_dmi_data chuwi_hi10_air_data = { |
| 98 | .acpi_name = "MSSL1680:00", |
| 99 | .properties = chuwi_hi10_air_props, |
| 100 | }; |
| 101 | |
Daniel Smith | 6baac53 | 2019-05-24 02:09:13 +0700 | [diff] [blame] | 102 | static const struct property_entry chuwi_hi10_plus_props[] = { |
| 103 | PROPERTY_ENTRY_U32("touchscreen-min-x", 0), |
| 104 | PROPERTY_ENTRY_U32("touchscreen-min-y", 5), |
| 105 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1914), |
| 106 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1283), |
| 107 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"), |
| 108 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 109 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 110 | { } |
| 111 | }; |
| 112 | |
| 113 | static const struct ts_dmi_data chuwi_hi10_plus_data = { |
| 114 | .acpi_name = "MSSL0017:00", |
| 115 | .properties = chuwi_hi10_plus_props, |
| 116 | }; |
| 117 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 118 | static const struct property_entry chuwi_vi8_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 119 | PROPERTY_ENTRY_U32("touchscreen-min-x", 4), |
| 120 | PROPERTY_ENTRY_U32("touchscreen-min-y", 6), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 121 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1724), |
| 122 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 123 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 124 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"), |
| 125 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 126 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 127 | { } |
| 128 | }; |
| 129 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 130 | static const struct ts_dmi_data chuwi_vi8_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 131 | .acpi_name = "MSSL1680:00", |
| 132 | .properties = chuwi_vi8_props, |
| 133 | }; |
| 134 | |
Hans de Goede | b94b807 | 2020-01-15 17:35:54 +0100 | [diff] [blame] | 135 | static const struct ts_dmi_data chuwi_vi8_plus_data = { |
| 136 | .embedded_fw = { |
| 137 | .name = "chipone/icn8505-HAMP0002.fw", |
| 138 | .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 }, |
| 139 | .length = 35012, |
| 140 | .sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3, |
| 141 | 0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78, |
| 142 | 0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1, |
| 143 | 0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c }, |
| 144 | }, |
| 145 | }; |
| 146 | |
Hans de Goede | b4c8681 | 2018-06-08 23:45:57 +0200 | [diff] [blame] | 147 | static const struct property_entry chuwi_vi10_props[] = { |
| 148 | PROPERTY_ENTRY_U32("touchscreen-min-x", 0), |
| 149 | PROPERTY_ENTRY_U32("touchscreen-min-y", 4), |
| 150 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1858), |
| 151 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), |
| 152 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"), |
| 153 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 154 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 155 | { } |
| 156 | }; |
| 157 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 158 | static const struct ts_dmi_data chuwi_vi10_data = { |
Hans de Goede | b4c8681 | 2018-06-08 23:45:57 +0200 | [diff] [blame] | 159 | .acpi_name = "MSSL0002:00", |
| 160 | .properties = chuwi_vi10_props, |
| 161 | }; |
| 162 | |
Giang Le | a0c8097 | 2019-08-03 21:12:22 +0700 | [diff] [blame] | 163 | static const struct property_entry chuwi_surbook_mini_props[] = { |
| 164 | PROPERTY_ENTRY_U32("touchscreen-min-x", 88), |
| 165 | PROPERTY_ENTRY_U32("touchscreen-min-y", 13), |
| 166 | PROPERTY_ENTRY_U32("touchscreen-size-x", 2040), |
| 167 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1524), |
| 168 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-surbook-mini.fw"), |
| 169 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 170 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 171 | { } |
| 172 | }; |
| 173 | |
| 174 | static const struct ts_dmi_data chuwi_surbook_mini_data = { |
| 175 | .acpi_name = "MSSL1680:00", |
| 176 | .properties = chuwi_surbook_mini_props, |
| 177 | }; |
| 178 | |
Hans de Goede | c72d95e | 2018-07-01 11:32:56 +0200 | [diff] [blame] | 179 | static const struct property_entry connect_tablet9_props[] = { |
| 180 | PROPERTY_ENTRY_U32("touchscreen-min-x", 9), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 181 | PROPERTY_ENTRY_U32("touchscreen-min-y", 10), |
Hans de Goede | c72d95e | 2018-07-01 11:32:56 +0200 | [diff] [blame] | 182 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 183 | PROPERTY_ENTRY_U32("touchscreen-size-y", 880), |
Hans de Goede | c72d95e | 2018-07-01 11:32:56 +0200 | [diff] [blame] | 184 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 185 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 186 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-connect-tablet9.fw"), |
| 187 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 188 | { } |
| 189 | }; |
| 190 | |
| 191 | static const struct ts_dmi_data connect_tablet9_data = { |
| 192 | .acpi_name = "MSSL1680:00", |
| 193 | .properties = connect_tablet9_props, |
| 194 | }; |
| 195 | |
Hans de Goede | ae31115 | 2017-03-22 16:55:53 +0100 | [diff] [blame] | 196 | static const struct property_entry cube_iwork8_air_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 197 | PROPERTY_ENTRY_U32("touchscreen-min-x", 1), |
| 198 | PROPERTY_ENTRY_U32("touchscreen-min-y", 3), |
| 199 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), |
| 200 | PROPERTY_ENTRY_U32("touchscreen-size-y", 896), |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 201 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 202 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-cube-iwork8-air.fw"), |
| 203 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 204 | { } |
| 205 | }; |
| 206 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 207 | static const struct ts_dmi_data cube_iwork8_air_data = { |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 208 | .embedded_fw = { |
| 209 | .name = "silead/gsl3670-cube-iwork8-air.fw", |
| 210 | .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, |
| 211 | .length = 38808, |
| 212 | .sha256 = { 0xff, 0x62, 0x2d, 0xd1, 0x8a, 0x78, 0x04, 0x7b, |
| 213 | 0x33, 0x06, 0xb0, 0x4f, 0x7f, 0x02, 0x08, 0x9c, |
| 214 | 0x96, 0xd4, 0x9f, 0x04, 0xe1, 0x47, 0x25, 0x25, |
| 215 | 0x60, 0x77, 0x41, 0x33, 0xeb, 0x12, 0x82, 0xfc }, |
| 216 | }, |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 217 | .acpi_name = "MSSL1680:00", |
| 218 | .properties = cube_iwork8_air_props, |
| 219 | }; |
| 220 | |
youling257 | cda5915 | 2018-07-31 17:32:56 +0800 | [diff] [blame] | 221 | static const struct property_entry cube_knote_i1101_props[] = { |
| 222 | PROPERTY_ENTRY_U32("touchscreen-min-x", 20), |
| 223 | PROPERTY_ENTRY_U32("touchscreen-min-y", 22), |
| 224 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1961), |
| 225 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1513), |
| 226 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"), |
| 227 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 228 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 229 | { } |
| 230 | }; |
| 231 | |
| 232 | static const struct ts_dmi_data cube_knote_i1101_data = { |
| 233 | .acpi_name = "MSSL1680:00", |
| 234 | .properties = cube_knote_i1101_props, |
| 235 | }; |
| 236 | |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 237 | static const struct property_entry dexp_ursus_7w_props[] = { |
| 238 | PROPERTY_ENTRY_U32("touchscreen-size-x", 890), |
| 239 | PROPERTY_ENTRY_U32("touchscreen-size-y", 630), |
| 240 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"), |
| 241 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | aaa4096 | 2017-10-19 09:17:28 +0200 | [diff] [blame] | 242 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 243 | { } |
| 244 | }; |
| 245 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 246 | static const struct ts_dmi_data dexp_ursus_7w_data = { |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 247 | .acpi_name = "MSSL1680:00", |
| 248 | .properties = dexp_ursus_7w_props, |
| 249 | }; |
| 250 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 251 | static const struct property_entry digma_citi_e200_props[] = { |
| 252 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), |
| 253 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), |
| 254 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 255 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-digma_citi_e200.fw"), |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 256 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | aaa4096 | 2017-10-19 09:17:28 +0200 | [diff] [blame] | 257 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 258 | { } |
| 259 | }; |
| 260 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 261 | static const struct ts_dmi_data digma_citi_e200_data = { |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 262 | .acpi_name = "MSSL1680:00", |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 263 | .properties = digma_citi_e200_props, |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 264 | }; |
| 265 | |
Hans de Goede | 46c54cf | 2020-12-24 14:51:58 +0100 | [diff] [blame] | 266 | static const struct property_entry estar_beauty_hd_props[] = { |
| 267 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 268 | { } |
| 269 | }; |
| 270 | |
| 271 | static const struct ts_dmi_data estar_beauty_hd_data = { |
| 272 | .acpi_name = "GDIX1001:00", |
| 273 | .properties = estar_beauty_hd_props, |
| 274 | }; |
| 275 | |
Hans de Goede | d9ca30b | 2017-05-07 14:35:15 +0200 | [diff] [blame] | 276 | static const struct property_entry gp_electronic_t701_props[] = { |
| 277 | PROPERTY_ENTRY_U32("touchscreen-size-x", 960), |
| 278 | PROPERTY_ENTRY_U32("touchscreen-size-y", 640), |
Hans de Goede | 5c24c05 | 2017-10-19 09:44:14 +0200 | [diff] [blame] | 279 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 280 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 281 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-gp-electronic-t701.fw"), |
Hans de Goede | d9ca30b | 2017-05-07 14:35:15 +0200 | [diff] [blame] | 282 | { } |
| 283 | }; |
| 284 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 285 | static const struct ts_dmi_data gp_electronic_t701_data = { |
Hans de Goede | d9ca30b | 2017-05-07 14:35:15 +0200 | [diff] [blame] | 286 | .acpi_name = "MSSL1680:00", |
| 287 | .properties = gp_electronic_t701_props, |
| 288 | }; |
| 289 | |
Hans de Goede | f078d05 | 2019-08-04 15:40:23 +0200 | [diff] [blame] | 290 | static const struct property_entry irbis_tw90_props[] = { |
| 291 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1720), |
| 292 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1138), |
| 293 | PROPERTY_ENTRY_U32("touchscreen-min-x", 8), |
| 294 | PROPERTY_ENTRY_U32("touchscreen-min-y", 14), |
| 295 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 296 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 297 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-irbis_tw90.fw"), |
| 298 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 299 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 300 | { } |
| 301 | }; |
| 302 | |
| 303 | static const struct ts_dmi_data irbis_tw90_data = { |
| 304 | .acpi_name = "MSSL1680:00", |
| 305 | .properties = irbis_tw90_props, |
| 306 | }; |
| 307 | |
Hans de Goede | c9aa128 | 2020-11-24 12:04:54 +0100 | [diff] [blame] | 308 | static const struct property_entry irbis_tw118_props[] = { |
| 309 | PROPERTY_ENTRY_U32("touchscreen-min-x", 20), |
| 310 | PROPERTY_ENTRY_U32("touchscreen-min-y", 30), |
| 311 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1960), |
| 312 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1510), |
| 313 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"), |
| 314 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 315 | { } |
| 316 | }; |
| 317 | |
| 318 | static const struct ts_dmi_data irbis_tw118_data = { |
| 319 | .acpi_name = "MSSL1680:00", |
| 320 | .properties = irbis_tw118_props, |
| 321 | }; |
| 322 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 323 | static const struct property_entry itworks_tw891_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 324 | PROPERTY_ENTRY_U32("touchscreen-min-x", 1), |
| 325 | PROPERTY_ENTRY_U32("touchscreen-min-y", 5), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 326 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1600), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 327 | PROPERTY_ENTRY_U32("touchscreen-size-y", 896), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 328 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 329 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 330 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-itworks-tw891.fw"), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 331 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 332 | { } |
| 333 | }; |
| 334 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 335 | static const struct ts_dmi_data itworks_tw891_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 336 | .acpi_name = "MSSL1680:00", |
| 337 | .properties = itworks_tw891_props, |
| 338 | }; |
| 339 | |
| 340 | static const struct property_entry jumper_ezpad_6_pro_props[] = { |
| 341 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), |
| 342 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), |
| 343 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro.fw"), |
| 344 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 345 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 346 | { } |
| 347 | }; |
| 348 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 349 | static const struct ts_dmi_data jumper_ezpad_6_pro_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 350 | .acpi_name = "MSSL1680:00", |
| 351 | .properties = jumper_ezpad_6_pro_props, |
| 352 | }; |
| 353 | |
Benjamin Renz | 504a435 | 2019-04-29 17:46:57 +0200 | [diff] [blame] | 354 | static const struct property_entry jumper_ezpad_6_pro_b_props[] = { |
| 355 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), |
| 356 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), |
| 357 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"), |
| 358 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 359 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 360 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 361 | { } |
| 362 | }; |
| 363 | |
| 364 | static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = { |
| 365 | .acpi_name = "MSSL1680:00", |
| 366 | .properties = jumper_ezpad_6_pro_b_props, |
| 367 | }; |
| 368 | |
Hans de Goede | ee7b0d3 | 2019-11-12 15:17:11 +0100 | [diff] [blame] | 369 | static const struct property_entry jumper_ezpad_6_m4_props[] = { |
| 370 | PROPERTY_ENTRY_U32("touchscreen-min-x", 35), |
| 371 | PROPERTY_ENTRY_U32("touchscreen-min-y", 15), |
| 372 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1950), |
| 373 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1525), |
| 374 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-m4.fw"), |
| 375 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 376 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 377 | { } |
| 378 | }; |
| 379 | |
| 380 | static const struct ts_dmi_data jumper_ezpad_6_m4_data = { |
| 381 | .acpi_name = "MSSL1680:00", |
| 382 | .properties = jumper_ezpad_6_m4_props, |
| 383 | }; |
| 384 | |
Hans de Goede | ae5919d | 2021-01-28 12:36:53 +0100 | [diff] [blame^] | 385 | static const struct property_entry jumper_ezpad_7_props[] = { |
| 386 | PROPERTY_ENTRY_U32("touchscreen-min-x", 4), |
| 387 | PROPERTY_ENTRY_U32("touchscreen-min-y", 10), |
| 388 | PROPERTY_ENTRY_U32("touchscreen-size-x", 2044), |
| 389 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1526), |
| 390 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 391 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-jumper-ezpad-7.fw"), |
| 392 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 393 | PROPERTY_ENTRY_BOOL("silead,stuck-controller-bug"), |
| 394 | { } |
| 395 | }; |
| 396 | |
| 397 | static const struct ts_dmi_data jumper_ezpad_7_data = { |
| 398 | .acpi_name = "MSSL1680:00", |
| 399 | .properties = jumper_ezpad_7_props, |
| 400 | }; |
| 401 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 402 | static const struct property_entry jumper_ezpad_mini3_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 403 | PROPERTY_ENTRY_U32("touchscreen-min-x", 23), |
| 404 | PROPERTY_ENTRY_U32("touchscreen-min-y", 16), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 405 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1700), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 406 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1138), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 407 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 408 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-jumper-ezpad-mini3.fw"), |
| 409 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 410 | { } |
| 411 | }; |
| 412 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 413 | static const struct ts_dmi_data jumper_ezpad_mini3_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 414 | .acpi_name = "MSSL1680:00", |
| 415 | .properties = jumper_ezpad_mini3_props, |
| 416 | }; |
| 417 | |
Hans de Goede | efe813d | 2020-09-01 10:07:52 +0200 | [diff] [blame] | 418 | static const struct property_entry mpman_converter9_props[] = { |
| 419 | PROPERTY_ENTRY_U32("touchscreen-min-x", 8), |
| 420 | PROPERTY_ENTRY_U32("touchscreen-min-y", 8), |
| 421 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1664), |
| 422 | PROPERTY_ENTRY_U32("touchscreen-size-y", 880), |
| 423 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 424 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 425 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-mpman-converter9.fw"), |
| 426 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 427 | { } |
| 428 | }; |
| 429 | |
| 430 | static const struct ts_dmi_data mpman_converter9_data = { |
| 431 | .acpi_name = "MSSL1680:00", |
| 432 | .properties = mpman_converter9_props, |
| 433 | }; |
| 434 | |
Hans de Goede | e415da3 | 2020-04-01 10:03:48 +0200 | [diff] [blame] | 435 | static const struct property_entry mpman_mpwin895cl_props[] = { |
| 436 | PROPERTY_ENTRY_U32("touchscreen-min-x", 3), |
| 437 | PROPERTY_ENTRY_U32("touchscreen-min-y", 9), |
| 438 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), |
| 439 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1150), |
| 440 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 441 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-mpman-mpwin895cl.fw"), |
| 442 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 443 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 444 | { } |
| 445 | }; |
| 446 | |
| 447 | static const struct ts_dmi_data mpman_mpwin895cl_data = { |
| 448 | .acpi_name = "MSSL1680:00", |
| 449 | .properties = mpman_mpwin895cl_props, |
| 450 | }; |
| 451 | |
Gabriel Lazar | e79e74a | 2019-03-15 15:31:14 +0200 | [diff] [blame] | 452 | static const struct property_entry myria_my8307_props[] = { |
| 453 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1720), |
| 454 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 455 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 456 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 457 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 458 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-myria-my8307.fw"), |
| 459 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 460 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 461 | { } |
| 462 | }; |
| 463 | |
| 464 | static const struct ts_dmi_data myria_my8307_data = { |
| 465 | .acpi_name = "MSSL1680:00", |
| 466 | .properties = myria_my8307_props, |
| 467 | }; |
| 468 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 469 | static const struct property_entry onda_obook_20_plus_props[] = { |
| 470 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), |
| 471 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), |
| 472 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 473 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 474 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 475 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"), |
| 476 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 477 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 478 | { } |
| 479 | }; |
| 480 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 481 | static const struct ts_dmi_data onda_obook_20_plus_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 482 | .acpi_name = "MSSL1680:00", |
| 483 | .properties = onda_obook_20_plus_props, |
| 484 | }; |
| 485 | |
Hans de Goede | 01b6b7e | 2018-10-10 15:16:40 +0200 | [diff] [blame] | 486 | static const struct property_entry onda_v80_plus_v3_props[] = { |
| 487 | PROPERTY_ENTRY_U32("touchscreen-min-x", 22), |
| 488 | PROPERTY_ENTRY_U32("touchscreen-min-y", 15), |
| 489 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1698), |
| 490 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 491 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 492 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v80-plus-v3.fw"), |
Hans de Goede | 01b6b7e | 2018-10-10 15:16:40 +0200 | [diff] [blame] | 493 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 494 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 495 | { } |
| 496 | }; |
| 497 | |
| 498 | static const struct ts_dmi_data onda_v80_plus_v3_data = { |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 499 | .embedded_fw = { |
| 500 | .name = "silead/gsl3676-onda-v80-plus-v3.fw", |
| 501 | .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, |
| 502 | .length = 37224, |
| 503 | .sha256 = { 0x8f, 0xbd, 0x8f, 0x0c, 0x6b, 0xba, 0x5b, 0xf5, |
| 504 | 0xa3, 0xc7, 0xa3, 0xc0, 0x4f, 0xcd, 0xdf, 0x32, |
| 505 | 0xcc, 0xe4, 0x70, 0xd6, 0x46, 0x9c, 0xd7, 0xa7, |
| 506 | 0x4b, 0x82, 0x3f, 0xab, 0xc7, 0x90, 0xea, 0x23 }, |
| 507 | }, |
Hans de Goede | 01b6b7e | 2018-10-10 15:16:40 +0200 | [diff] [blame] | 508 | .acpi_name = "MSSL1680:00", |
| 509 | .properties = onda_v80_plus_v3_props, |
| 510 | }; |
| 511 | |
Jun Bo Bi | ee08f57 | 2018-07-01 17:47:14 -0400 | [diff] [blame] | 512 | static const struct property_entry onda_v820w_32g_props[] = { |
| 513 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1665), |
| 514 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 515 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 516 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-onda-v820w-32g.fw"), |
Jun Bo Bi | ee08f57 | 2018-07-01 17:47:14 -0400 | [diff] [blame] | 517 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 518 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 519 | { } |
| 520 | }; |
| 521 | |
| 522 | static const struct ts_dmi_data onda_v820w_32g_data = { |
| 523 | .acpi_name = "MSSL1680:00", |
| 524 | .properties = onda_v820w_32g_props, |
| 525 | }; |
| 526 | |
Maksim Karasev | 295615f | 2020-04-21 16:25:48 +0300 | [diff] [blame] | 527 | static const struct property_entry onda_v891_v5_props[] = { |
| 528 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1715), |
| 529 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 530 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 531 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 532 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 533 | PROPERTY_ENTRY_STRING("firmware-name", |
| 534 | "gsl3676-onda-v891-v5.fw"), |
| 535 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 536 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 537 | { } |
| 538 | }; |
| 539 | |
| 540 | static const struct ts_dmi_data onda_v891_v5_data = { |
| 541 | .acpi_name = "MSSL1680:00", |
| 542 | .properties = onda_v891_v5_props, |
| 543 | }; |
| 544 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 545 | static const struct property_entry onda_v891w_v1_props[] = { |
| 546 | PROPERTY_ENTRY_U32("touchscreen-min-x", 46), |
| 547 | PROPERTY_ENTRY_U32("touchscreen-min-y", 8), |
| 548 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1676), |
| 549 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1130), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 550 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-onda-v891w-v1.fw"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 551 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 552 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 553 | { } |
| 554 | }; |
| 555 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 556 | static const struct ts_dmi_data onda_v891w_v1_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 557 | .acpi_name = "MSSL1680:00", |
| 558 | .properties = onda_v891w_v1_props, |
| 559 | }; |
| 560 | |
youling257 | c0d7308 | 2018-06-18 15:11:44 +0200 | [diff] [blame] | 561 | static const struct property_entry onda_v891w_v3_props[] = { |
| 562 | PROPERTY_ENTRY_U32("touchscreen-min-x", 35), |
| 563 | PROPERTY_ENTRY_U32("touchscreen-min-y", 15), |
| 564 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1625), |
| 565 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1135), |
| 566 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 567 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-v891w-v3.fw"), |
youling257 | c0d7308 | 2018-06-18 15:11:44 +0200 | [diff] [blame] | 568 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 569 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 570 | { } |
| 571 | }; |
| 572 | |
| 573 | static const struct ts_dmi_data onda_v891w_v3_data = { |
| 574 | .acpi_name = "MSSL1680:00", |
| 575 | .properties = onda_v891w_v3_props, |
| 576 | }; |
| 577 | |
Hans de Goede | 13fadfa | 2017-06-15 08:48:32 +0200 | [diff] [blame] | 578 | static const struct property_entry pipo_w2s_props[] = { |
| 579 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1660), |
| 580 | PROPERTY_ENTRY_U32("touchscreen-size-y", 880), |
| 581 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 582 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 583 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w2s.fw"), |
Hans de Goede | 13fadfa | 2017-06-15 08:48:32 +0200 | [diff] [blame] | 584 | { } |
| 585 | }; |
| 586 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 587 | static const struct ts_dmi_data pipo_w2s_data = { |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 588 | .embedded_fw = { |
| 589 | .name = "silead/gsl1680-pipo-w2s.fw", |
| 590 | .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, |
| 591 | .length = 39072, |
| 592 | .sha256 = { 0xd0, 0x58, 0xc4, 0x7d, 0x55, 0x2d, 0x62, 0x18, |
| 593 | 0xd1, 0x6a, 0x71, 0x73, 0x0b, 0x3f, 0xbe, 0x60, |
| 594 | 0xbb, 0x45, 0x8c, 0x52, 0x27, 0xb7, 0x18, 0xf4, |
| 595 | 0x31, 0x00, 0x6a, 0x49, 0x76, 0xd8, 0x7c, 0xd3 }, |
| 596 | }, |
Hans de Goede | 13fadfa | 2017-06-15 08:48:32 +0200 | [diff] [blame] | 597 | .acpi_name = "MSSL1680:00", |
| 598 | .properties = pipo_w2s_props, |
| 599 | }; |
| 600 | |
Tim Josten | f95eafb | 2020-01-03 16:00:59 +0100 | [diff] [blame] | 601 | static const struct property_entry pipo_w11_props[] = { |
| 602 | PROPERTY_ENTRY_U32("touchscreen-min-x", 1), |
| 603 | PROPERTY_ENTRY_U32("touchscreen-min-y", 15), |
| 604 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1984), |
| 605 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1532), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 606 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-pipo-w11.fw"), |
Tim Josten | f95eafb | 2020-01-03 16:00:59 +0100 | [diff] [blame] | 607 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 608 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 609 | { } |
| 610 | }; |
| 611 | |
| 612 | static const struct ts_dmi_data pipo_w11_data = { |
| 613 | .acpi_name = "MSSL1680:00", |
| 614 | .properties = pipo_w11_props, |
| 615 | }; |
| 616 | |
Hans de Goede | 3cd33db | 2018-05-30 12:43:40 +0200 | [diff] [blame] | 617 | static const struct property_entry pov_mobii_wintab_p800w_v20_props[] = { |
| 618 | PROPERTY_ENTRY_U32("touchscreen-min-x", 32), |
| 619 | PROPERTY_ENTRY_U32("touchscreen-min-y", 16), |
| 620 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1692), |
| 621 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1146), |
| 622 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 623 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-pov-mobii-wintab-p800w-v20.fw"), |
Hans de Goede | 3cd33db | 2018-05-30 12:43:40 +0200 | [diff] [blame] | 624 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 625 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 626 | { } |
| 627 | }; |
| 628 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 629 | static const struct ts_dmi_data pov_mobii_wintab_p800w_v20_data = { |
Hans de Goede | 3cd33db | 2018-05-30 12:43:40 +0200 | [diff] [blame] | 630 | .acpi_name = "MSSL1680:00", |
| 631 | .properties = pov_mobii_wintab_p800w_v20_props, |
| 632 | }; |
| 633 | |
| 634 | static const struct property_entry pov_mobii_wintab_p800w_v21_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 635 | PROPERTY_ENTRY_U32("touchscreen-min-x", 1), |
| 636 | PROPERTY_ENTRY_U32("touchscreen-min-y", 8), |
| 637 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1794), |
| 638 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), |
Hans de Goede | f4d342c | 2017-06-15 08:48:31 +0200 | [diff] [blame] | 639 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 640 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p800w.fw"), |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 641 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | aaa4096 | 2017-10-19 09:17:28 +0200 | [diff] [blame] | 642 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
Hans de Goede | f4d342c | 2017-06-15 08:48:31 +0200 | [diff] [blame] | 643 | { } |
| 644 | }; |
| 645 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 646 | static const struct ts_dmi_data pov_mobii_wintab_p800w_v21_data = { |
Hans de Goede | f4d342c | 2017-06-15 08:48:31 +0200 | [diff] [blame] | 647 | .acpi_name = "MSSL1680:00", |
Hans de Goede | 3cd33db | 2018-05-30 12:43:40 +0200 | [diff] [blame] | 648 | .properties = pov_mobii_wintab_p800w_v21_props, |
Hans de Goede | f4d342c | 2017-06-15 08:48:31 +0200 | [diff] [blame] | 649 | }; |
| 650 | |
Hans de Goede | 8335ebc | 2018-12-20 22:21:50 +0100 | [diff] [blame] | 651 | static const struct property_entry pov_mobii_wintab_p1006w_v10_props[] = { |
| 652 | PROPERTY_ENTRY_U32("touchscreen-min-x", 1), |
| 653 | PROPERTY_ENTRY_U32("touchscreen-min-y", 3), |
| 654 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1984), |
| 655 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1520), |
| 656 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 657 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-pov-mobii-wintab-p1006w-v10.fw"), |
Hans de Goede | 8335ebc | 2018-12-20 22:21:50 +0100 | [diff] [blame] | 658 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 659 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 660 | { } |
| 661 | }; |
| 662 | |
| 663 | static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = { |
| 664 | .acpi_name = "MSSL1680:00", |
| 665 | .properties = pov_mobii_wintab_p1006w_v10_props, |
| 666 | }; |
| 667 | |
Hans de Goede | 0f511ed | 2020-10-15 21:49:49 +0200 | [diff] [blame] | 668 | static const struct property_entry predia_basic_props[] = { |
| 669 | PROPERTY_ENTRY_U32("touchscreen-min-x", 3), |
| 670 | PROPERTY_ENTRY_U32("touchscreen-min-y", 10), |
| 671 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), |
| 672 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1144), |
| 673 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
| 674 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"), |
| 675 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 676 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 677 | { } |
| 678 | }; |
| 679 | |
| 680 | static const struct ts_dmi_data predia_basic_data = { |
| 681 | .acpi_name = "MSSL1680:00", |
| 682 | .properties = predia_basic_props, |
| 683 | }; |
| 684 | |
Daniel Gorbea Ainz | 3caa6f3 | 2019-10-23 20:53:23 +0200 | [diff] [blame] | 685 | static const struct property_entry schneider_sct101ctm_props[] = { |
| 686 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1715), |
| 687 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), |
| 688 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 689 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 690 | PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 691 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-schneider-sct101ctm.fw"), |
Daniel Gorbea Ainz | 3caa6f3 | 2019-10-23 20:53:23 +0200 | [diff] [blame] | 692 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 693 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 694 | { } |
| 695 | }; |
| 696 | |
| 697 | static const struct ts_dmi_data schneider_sct101ctm_data = { |
| 698 | .acpi_name = "MSSL1680:00", |
| 699 | .properties = schneider_sct101ctm_props, |
| 700 | }; |
| 701 | |
Wiktor Ciurej | 97e130f | 2020-04-02 18:13:13 +0200 | [diff] [blame] | 702 | static const struct property_entry techbite_arc_11_6_props[] = { |
| 703 | PROPERTY_ENTRY_U32("touchscreen-min-x", 5), |
| 704 | PROPERTY_ENTRY_U32("touchscreen-min-y", 7), |
| 705 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1981), |
| 706 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1270), |
| 707 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 708 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-techbite-arc-11-6.fw"), |
| 709 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 710 | { } |
| 711 | }; |
| 712 | |
| 713 | static const struct ts_dmi_data techbite_arc_11_6_data = { |
| 714 | .acpi_name = "MSSL1680:00", |
| 715 | .properties = techbite_arc_11_6_props, |
| 716 | }; |
| 717 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 718 | static const struct property_entry teclast_x3_plus_props[] = { |
Sergey Tshovrebov | 3fcf2b2 | 2017-10-27 12:27:07 +0200 | [diff] [blame] | 719 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), |
| 720 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 721 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"), |
Sergey Tshovrebov | 3fcf2b2 | 2017-10-27 12:27:07 +0200 | [diff] [blame] | 722 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 723 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 724 | { } |
| 725 | }; |
| 726 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 727 | static const struct ts_dmi_data teclast_x3_plus_data = { |
Sergey Tshovrebov | 3fcf2b2 | 2017-10-27 12:27:07 +0200 | [diff] [blame] | 728 | .acpi_name = "MSSL1680:00", |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 729 | .properties = teclast_x3_plus_props, |
Hans de Goede | 2aeb2c3 | 2017-12-25 13:45:25 +0100 | [diff] [blame] | 730 | }; |
| 731 | |
Paul Cercueil | a346aa2 | 2018-01-02 19:39:27 +0100 | [diff] [blame] | 732 | static const struct property_entry teclast_x98plus2_props[] = { |
| 733 | PROPERTY_ENTRY_U32("touchscreen-size-x", 2048), |
| 734 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), |
| 735 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), |
| 736 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 737 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-teclast_x98plus2.fw"), |
Paul Cercueil | a346aa2 | 2018-01-02 19:39:27 +0100 | [diff] [blame] | 738 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 739 | { } |
| 740 | }; |
| 741 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 742 | static const struct ts_dmi_data teclast_x98plus2_data = { |
Paul Cercueil | a346aa2 | 2018-01-02 19:39:27 +0100 | [diff] [blame] | 743 | .acpi_name = "MSSL1680:00", |
| 744 | .properties = teclast_x98plus2_props, |
| 745 | }; |
| 746 | |
Hans de Goede | cacad0b | 2018-10-04 14:34:45 +0200 | [diff] [blame] | 747 | static const struct property_entry trekstor_primebook_c11_props[] = { |
| 748 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1970), |
| 749 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1530), |
| 750 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 751 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c11.fw"), |
Hans de Goede | cacad0b | 2018-10-04 14:34:45 +0200 | [diff] [blame] | 752 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 753 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 754 | { } |
| 755 | }; |
| 756 | |
| 757 | static const struct ts_dmi_data trekstor_primebook_c11_data = { |
| 758 | .acpi_name = "MSSL1680:00", |
| 759 | .properties = trekstor_primebook_c11_props, |
| 760 | }; |
| 761 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 762 | static const struct property_entry trekstor_primebook_c13_props[] = { |
| 763 | PROPERTY_ENTRY_U32("touchscreen-size-x", 2624), |
| 764 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1920), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 765 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primebook-c13.fw"), |
Hans de Goede | adf762d | 2018-05-30 12:43:41 +0200 | [diff] [blame] | 766 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 767 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 768 | { } |
| 769 | }; |
| 770 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 771 | static const struct ts_dmi_data trekstor_primebook_c13_data = { |
Hans de Goede | adf762d | 2018-05-30 12:43:41 +0200 | [diff] [blame] | 772 | .acpi_name = "MSSL1680:00", |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 773 | .properties = trekstor_primebook_c13_props, |
Hans de Goede | adf762d | 2018-05-30 12:43:41 +0200 | [diff] [blame] | 774 | }; |
| 775 | |
Marian Cepok | 30394a8 | 2018-10-08 09:25:05 +0200 | [diff] [blame] | 776 | static const struct property_entry trekstor_primetab_t13b_props[] = { |
| 777 | PROPERTY_ENTRY_U32("touchscreen-size-x", 2500), |
| 778 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1900), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 779 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-trekstor-primetab-t13b.fw"), |
Marian Cepok | 30394a8 | 2018-10-08 09:25:05 +0200 | [diff] [blame] | 780 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 781 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 782 | PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), |
| 783 | { } |
| 784 | }; |
| 785 | |
| 786 | static const struct ts_dmi_data trekstor_primetab_t13b_data = { |
| 787 | .acpi_name = "MSSL1680:00", |
| 788 | .properties = trekstor_primetab_t13b_props, |
| 789 | }; |
| 790 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 791 | static const struct property_entry trekstor_surftab_twin_10_1_props[] = { |
Hans de Goede | 477d07e | 2020-05-31 17:05:24 +0200 | [diff] [blame] | 792 | PROPERTY_ENTRY_U32("touchscreen-min-x", 20), |
| 793 | PROPERTY_ENTRY_U32("touchscreen-min-y", 0), |
| 794 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1890), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 795 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), |
| 796 | PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 797 | PROPERTY_ENTRY_STRING("firmware-name", "gsl3670-surftab-twin-10-1-st10432-8.fw"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 798 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
Hans de Goede | 477d07e | 2020-05-31 17:05:24 +0200 | [diff] [blame] | 799 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 800 | { } |
| 801 | }; |
| 802 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 803 | static const struct ts_dmi_data trekstor_surftab_twin_10_1_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 804 | .acpi_name = "MSSL1680:00", |
| 805 | .properties = trekstor_surftab_twin_10_1_props, |
| 806 | }; |
| 807 | |
| 808 | static const struct property_entry trekstor_surftab_wintron70_props[] = { |
Hans de Goede | 4104916 | 2018-10-20 12:21:00 +0200 | [diff] [blame] | 809 | PROPERTY_ENTRY_U32("touchscreen-min-x", 12), |
| 810 | PROPERTY_ENTRY_U32("touchscreen-min-y", 8), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 811 | PROPERTY_ENTRY_U32("touchscreen-size-x", 884), |
| 812 | PROPERTY_ENTRY_U32("touchscreen-size-y", 632), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 813 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-surftab-wintron70-st70416-6.fw"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 814 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 815 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 816 | { } |
| 817 | }; |
| 818 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 819 | static const struct ts_dmi_data trekstor_surftab_wintron70_data = { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 820 | .acpi_name = "MSSL1680:00", |
| 821 | .properties = trekstor_surftab_wintron70_props, |
| 822 | }; |
| 823 | |
Andrew Dunai | 06b2ee0 | 2020-05-05 15:15:18 +0300 | [diff] [blame] | 824 | static const struct property_entry vinga_twizzle_j116_props[] = { |
| 825 | PROPERTY_ENTRY_U32("touchscreen-size-x", 1920), |
| 826 | PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), |
| 827 | PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"), |
| 828 | PROPERTY_ENTRY_U32("silead,max-fingers", 10), |
| 829 | PROPERTY_ENTRY_BOOL("silead,home-button"), |
| 830 | { } |
| 831 | }; |
| 832 | |
| 833 | static const struct ts_dmi_data vinga_twizzle_j116_data = { |
| 834 | .acpi_name = "MSSL1680:00", |
| 835 | .properties = vinga_twizzle_j116_props, |
| 836 | }; |
| 837 | |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 838 | /* NOTE: Please keep this table sorted alphabetically */ |
Hans de Goede | 835e1b8 | 2020-01-15 17:35:53 +0100 | [diff] [blame] | 839 | const struct dmi_system_id touchscreen_dmi_table[] = { |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 840 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 841 | /* Chuwi Hi8 */ |
| 842 | .driver_data = (void *)&chuwi_hi8_data, |
| 843 | .matches = { |
| 844 | DMI_MATCH(DMI_SYS_VENDOR, "ilife"), |
| 845 | DMI_MATCH(DMI_PRODUCT_NAME, "S806"), |
| 846 | }, |
| 847 | }, |
| 848 | { |
| 849 | /* Chuwi Hi8 (H1D_S806_206) */ |
| 850 | .driver_data = (void *)&chuwi_hi8_data, |
| 851 | .matches = { |
| 852 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 853 | DMI_MATCH(DMI_PRODUCT_NAME, "BayTrail"), |
| 854 | DMI_MATCH(DMI_BIOS_VERSION, "H1D_S806_206"), |
| 855 | }, |
| 856 | }, |
| 857 | { |
Kai Renzig | bbb97d7 | 2019-02-03 19:34:23 +0100 | [diff] [blame] | 858 | /* Chuwi Hi8 Air (CWI543) */ |
| 859 | .driver_data = (void *)&chuwi_hi8_air_data, |
| 860 | .matches = { |
| 861 | DMI_MATCH(DMI_BOARD_VENDOR, "Default string"), |
| 862 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
| 863 | DMI_MATCH(DMI_PRODUCT_NAME, "Hi8 Air"), |
| 864 | }, |
| 865 | }, |
| 866 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 867 | /* Chuwi Hi8 Pro (CWI513) */ |
| 868 | .driver_data = (void *)&chuwi_hi8_pro_data, |
| 869 | .matches = { |
| 870 | DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), |
| 871 | DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"), |
| 872 | }, |
| 873 | }, |
| 874 | { |
Christian Oder | b98dc49 | 2019-03-03 14:47:27 +0100 | [diff] [blame] | 875 | /* Chuwi Hi10 Air */ |
| 876 | .driver_data = (void *)&chuwi_hi10_air_data, |
| 877 | .matches = { |
Christian Oder | 6d789e6 | 2019-06-12 14:40:53 +0200 | [diff] [blame] | 878 | DMI_MATCH(DMI_SYS_VENDOR, "CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD"), |
| 879 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
Christian Oder | b98dc49 | 2019-03-03 14:47:27 +0100 | [diff] [blame] | 880 | DMI_MATCH(DMI_PRODUCT_SKU, "P1W6_C109D_B"), |
| 881 | }, |
| 882 | }, |
| 883 | { |
Daniel Smith | 6baac53 | 2019-05-24 02:09:13 +0700 | [diff] [blame] | 884 | /* Chuwi Hi10 Plus (CWI527) */ |
| 885 | .driver_data = (void *)&chuwi_hi10_plus_data, |
| 886 | .matches = { |
| 887 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), |
| 888 | DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 plus tablet"), |
| 889 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
| 890 | }, |
| 891 | }, |
| 892 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 893 | /* Chuwi Vi8 (CWI506) */ |
| 894 | .driver_data = (void *)&chuwi_vi8_data, |
| 895 | .matches = { |
| 896 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 897 | DMI_MATCH(DMI_PRODUCT_NAME, "i86"), |
| 898 | DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"), |
| 899 | }, |
| 900 | }, |
| 901 | { |
Hans de Goede | b94b807 | 2020-01-15 17:35:54 +0100 | [diff] [blame] | 902 | /* Chuwi Vi8 Plus (CWI519) */ |
| 903 | .driver_data = (void *)&chuwi_vi8_plus_data, |
| 904 | .matches = { |
| 905 | DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), |
| 906 | DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"), |
| 907 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
| 908 | }, |
| 909 | }, |
| 910 | { |
Hans de Goede | b4c8681 | 2018-06-08 23:45:57 +0200 | [diff] [blame] | 911 | /* Chuwi Vi10 (CWI505) */ |
| 912 | .driver_data = (void *)&chuwi_vi10_data, |
| 913 | .matches = { |
| 914 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), |
| 915 | DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"), |
| 916 | DMI_MATCH(DMI_SYS_VENDOR, "ilife"), |
| 917 | DMI_MATCH(DMI_PRODUCT_NAME, "S165"), |
| 918 | }, |
| 919 | }, |
| 920 | { |
Giang Le | a0c8097 | 2019-08-03 21:12:22 +0700 | [diff] [blame] | 921 | /* Chuwi Surbook Mini (CWI540) */ |
| 922 | .driver_data = (void *)&chuwi_surbook_mini_data, |
| 923 | .matches = { |
| 924 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), |
| 925 | DMI_MATCH(DMI_PRODUCT_NAME, "C3W6_AP108_4G"), |
| 926 | }, |
| 927 | }, |
| 928 | { |
Hans de Goede | c72d95e | 2018-07-01 11:32:56 +0200 | [diff] [blame] | 929 | /* Connect Tablet 9 */ |
| 930 | .driver_data = (void *)&connect_tablet9_data, |
| 931 | .matches = { |
| 932 | DMI_MATCH(DMI_SYS_VENDOR, "Connect"), |
| 933 | DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"), |
| 934 | }, |
| 935 | }, |
| 936 | { |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 937 | /* CUBE iwork8 Air */ |
| 938 | .driver_data = (void *)&cube_iwork8_air_data, |
| 939 | .matches = { |
| 940 | DMI_MATCH(DMI_SYS_VENDOR, "cube"), |
| 941 | DMI_MATCH(DMI_PRODUCT_NAME, "i1-TF"), |
| 942 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
| 943 | }, |
| 944 | }, |
| 945 | { |
youling257 | cda5915 | 2018-07-31 17:32:56 +0800 | [diff] [blame] | 946 | /* Cube KNote i1101 */ |
| 947 | .driver_data = (void *)&cube_knote_i1101_data, |
| 948 | .matches = { |
| 949 | DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), |
| 950 | DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"), |
| 951 | DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"), |
| 952 | DMI_MATCH(DMI_PRODUCT_NAME, "i1101"), |
| 953 | }, |
| 954 | }, |
| 955 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 956 | /* DEXP Ursus 7W */ |
| 957 | .driver_data = (void *)&dexp_ursus_7w_data, |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 958 | .matches = { |
| 959 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 960 | DMI_MATCH(DMI_PRODUCT_NAME, "7W"), |
| 961 | }, |
| 962 | }, |
| 963 | { |
| 964 | /* Digma Citi E200 */ |
| 965 | .driver_data = (void *)&digma_citi_e200_data, |
| 966 | .matches = { |
| 967 | DMI_MATCH(DMI_SYS_VENDOR, "Digma"), |
| 968 | DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"), |
| 969 | DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), |
| 970 | }, |
| 971 | }, |
| 972 | { |
Hans de Goede | 46c54cf | 2020-12-24 14:51:58 +0100 | [diff] [blame] | 973 | /* Estar Beauty HD (MID 7316R) */ |
| 974 | .driver_data = (void *)&estar_beauty_hd_data, |
| 975 | .matches = { |
| 976 | DMI_MATCH(DMI_SYS_VENDOR, "Estar"), |
| 977 | DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"), |
| 978 | }, |
| 979 | }, |
| 980 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 981 | /* GP-electronic T701 */ |
| 982 | .driver_data = (void *)&gp_electronic_t701_data, |
| 983 | .matches = { |
| 984 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 985 | DMI_MATCH(DMI_PRODUCT_NAME, "T701"), |
| 986 | DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"), |
| 987 | }, |
| 988 | }, |
| 989 | { |
| 990 | /* I.T.Works TW701 (same hardware as the Trekstor ST70416-6) */ |
| 991 | .driver_data = (void *)&trekstor_surftab_wintron70_data, |
| 992 | .matches = { |
| 993 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 994 | DMI_MATCH(DMI_PRODUCT_NAME, "i71c"), |
| 995 | DMI_MATCH(DMI_BIOS_VERSION, "itWORKS.G.WI71C.JGBMRB"), |
| 996 | }, |
| 997 | }, |
| 998 | { |
Hans de Goede | f078d05 | 2019-08-04 15:40:23 +0200 | [diff] [blame] | 999 | /* Irbis TW90 */ |
| 1000 | .driver_data = (void *)&irbis_tw90_data, |
| 1001 | .matches = { |
| 1002 | DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), |
| 1003 | DMI_MATCH(DMI_PRODUCT_NAME, "TW90"), |
| 1004 | }, |
| 1005 | }, |
| 1006 | { |
Hans de Goede | c9aa128 | 2020-11-24 12:04:54 +0100 | [diff] [blame] | 1007 | /* Irbis TW118 */ |
| 1008 | .driver_data = (void *)&irbis_tw118_data, |
| 1009 | .matches = { |
| 1010 | DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), |
| 1011 | DMI_MATCH(DMI_PRODUCT_NAME, "TW118"), |
| 1012 | }, |
| 1013 | }, |
| 1014 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1015 | /* I.T.Works TW891 */ |
| 1016 | .driver_data = (void *)&itworks_tw891_data, |
| 1017 | .matches = { |
| 1018 | DMI_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), |
| 1019 | DMI_MATCH(DMI_PRODUCT_NAME, "TW891"), |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1020 | }, |
| 1021 | }, |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 1022 | { |
Hans de Goede | 828615f | 2018-05-30 12:43:39 +0200 | [diff] [blame] | 1023 | /* Jumper EZpad 6 Pro */ |
| 1024 | .driver_data = (void *)&jumper_ezpad_6_pro_data, |
| 1025 | .matches = { |
| 1026 | DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), |
| 1027 | DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), |
| 1028 | DMI_MATCH(DMI_BIOS_VERSION, "5.12"), |
| 1029 | /* Above matches are too generic, add bios-date match */ |
| 1030 | DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"), |
| 1031 | }, |
| 1032 | }, |
| 1033 | { |
Benjamin Renz | 504a435 | 2019-04-29 17:46:57 +0200 | [diff] [blame] | 1034 | /* Jumper EZpad 6 Pro B */ |
| 1035 | .driver_data = (void *)&jumper_ezpad_6_pro_b_data, |
| 1036 | .matches = { |
| 1037 | DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), |
| 1038 | DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), |
| 1039 | DMI_MATCH(DMI_BIOS_VERSION, "5.12"), |
| 1040 | /* Above matches are too generic, add bios-date match */ |
| 1041 | DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"), |
| 1042 | }, |
| 1043 | }, |
| 1044 | { |
Hans de Goede | ee7b0d3 | 2019-11-12 15:17:11 +0100 | [diff] [blame] | 1045 | /* Jumper EZpad 6 m4 */ |
| 1046 | .driver_data = (void *)&jumper_ezpad_6_m4_data, |
| 1047 | .matches = { |
| 1048 | DMI_MATCH(DMI_SYS_VENDOR, "jumper"), |
| 1049 | DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), |
| 1050 | /* Jumper8.S106x.A00C.1066 with the version dropped */ |
| 1051 | DMI_MATCH(DMI_BIOS_VERSION, "Jumper8.S106x"), |
| 1052 | }, |
| 1053 | }, |
| 1054 | { |
Hans de Goede | ae5919d | 2021-01-28 12:36:53 +0100 | [diff] [blame^] | 1055 | /* Jumper EZpad 7 */ |
| 1056 | .driver_data = (void *)&jumper_ezpad_7_data, |
| 1057 | .matches = { |
| 1058 | DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), |
| 1059 | DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), |
| 1060 | /* Jumper12x.WJ2012.bsBKRCP05 with the version dropped */ |
| 1061 | DMI_MATCH(DMI_BIOS_VERSION, "Jumper12x.WJ2012.bsBKRCP"), |
| 1062 | }, |
| 1063 | }, |
| 1064 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1065 | /* Jumper EZpad mini3 */ |
| 1066 | .driver_data = (void *)&jumper_ezpad_mini3_data, |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 1067 | .matches = { |
| 1068 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1069 | /* jumperx.T87.KFBNEEA02 with the version-nr dropped */ |
| 1070 | DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), |
| 1071 | }, |
| 1072 | }, |
| 1073 | { |
Hans de Goede | f25b630 | 2018-12-04 10:20:04 +0100 | [diff] [blame] | 1074 | /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */ |
| 1075 | .driver_data = (void *)&trekstor_primebook_c11_data, |
| 1076 | .matches = { |
| 1077 | DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), |
| 1078 | DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"), |
| 1079 | }, |
| 1080 | }, |
| 1081 | { |
Hans de Goede | efe813d | 2020-09-01 10:07:52 +0200 | [diff] [blame] | 1082 | /* MP Man Converter 9 */ |
| 1083 | .driver_data = (void *)&mpman_converter9_data, |
| 1084 | .matches = { |
| 1085 | DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"), |
| 1086 | DMI_MATCH(DMI_PRODUCT_NAME, "Converter9"), |
| 1087 | }, |
| 1088 | }, |
| 1089 | { |
Hans de Goede | e415da3 | 2020-04-01 10:03:48 +0200 | [diff] [blame] | 1090 | /* MP Man MPWIN895CL */ |
| 1091 | .driver_data = (void *)&mpman_mpwin895cl_data, |
| 1092 | .matches = { |
| 1093 | DMI_MATCH(DMI_SYS_VENDOR, "MPMAN"), |
| 1094 | DMI_MATCH(DMI_PRODUCT_NAME, "MPWIN8900CL"), |
| 1095 | }, |
| 1096 | }, |
| 1097 | { |
Gabriel Lazar | e79e74a | 2019-03-15 15:31:14 +0200 | [diff] [blame] | 1098 | /* Myria MY8307 */ |
| 1099 | .driver_data = (void *)&myria_my8307_data, |
| 1100 | .matches = { |
| 1101 | DMI_MATCH(DMI_SYS_VENDOR, "Complet Electro Serv"), |
| 1102 | DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"), |
| 1103 | }, |
| 1104 | }, |
| 1105 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1106 | /* Onda oBook 20 Plus */ |
| 1107 | .driver_data = (void *)&onda_obook_20_plus_data, |
| 1108 | .matches = { |
| 1109 | DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), |
| 1110 | DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"), |
| 1111 | }, |
| 1112 | }, |
| 1113 | { |
Hans de Goede | 01b6b7e | 2018-10-10 15:16:40 +0200 | [diff] [blame] | 1114 | /* ONDA V80 plus v3 (P80PSBG9V3A01501) */ |
| 1115 | .driver_data = (void *)&onda_v80_plus_v3_data, |
| 1116 | .matches = { |
| 1117 | DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"), |
| 1118 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS") |
| 1119 | }, |
| 1120 | }, |
| 1121 | { |
Jun Bo Bi | ee08f57 | 2018-07-01 17:47:14 -0400 | [diff] [blame] | 1122 | /* ONDA V820w DualOS */ |
| 1123 | .driver_data = (void *)&onda_v820w_32g_data, |
| 1124 | .matches = { |
| 1125 | DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), |
| 1126 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS") |
| 1127 | }, |
| 1128 | }, |
| 1129 | { |
Maksim Karasev | 295615f | 2020-04-21 16:25:48 +0300 | [diff] [blame] | 1130 | /* ONDA V891 v5 */ |
| 1131 | .driver_data = (void *)&onda_v891_v5_data, |
| 1132 | .matches = { |
| 1133 | DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), |
| 1134 | DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), |
| 1135 | DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D869CJABNRBA06"), |
| 1136 | }, |
| 1137 | }, |
| 1138 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1139 | /* ONDA V891w revision P891WBEBV1B00 aka v1 */ |
| 1140 | .driver_data = (void *)&onda_v891w_v1_data, |
| 1141 | .matches = { |
| 1142 | DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), |
| 1143 | DMI_EXACT_MATCH(DMI_BOARD_NAME, "ONDA Tablet"), |
| 1144 | DMI_EXACT_MATCH(DMI_BOARD_VERSION, "V001"), |
| 1145 | /* Exact match, different versions need different fw */ |
| 1146 | DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"), |
| 1147 | }, |
| 1148 | }, |
| 1149 | { |
youling257 | c0d7308 | 2018-06-18 15:11:44 +0200 | [diff] [blame] | 1150 | /* ONDA V891w Dual OS P891DCF2V1A01274 64GB */ |
| 1151 | .driver_data = (void *)&onda_v891w_v3_data, |
| 1152 | .matches = { |
| 1153 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 1154 | DMI_MATCH(DMI_PRODUCT_NAME, "ONDA Tablet"), |
| 1155 | DMI_MATCH(DMI_BIOS_VERSION, "ONDA.D890HBBNR0A"), |
| 1156 | }, |
| 1157 | }, |
| 1158 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1159 | /* Pipo W2S */ |
| 1160 | .driver_data = (void *)&pipo_w2s_data, |
| 1161 | .matches = { |
| 1162 | DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), |
| 1163 | DMI_MATCH(DMI_PRODUCT_NAME, "W2S"), |
| 1164 | }, |
| 1165 | }, |
| 1166 | { |
Tim Josten | f95eafb | 2020-01-03 16:00:59 +0100 | [diff] [blame] | 1167 | /* Pipo W11 */ |
| 1168 | .driver_data = (void *)&pipo_w11_data, |
| 1169 | .matches = { |
| 1170 | DMI_MATCH(DMI_SYS_VENDOR, "PIPO"), |
| 1171 | DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."), |
| 1172 | /* Above matches are too generic, add bios-ver match */ |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 1173 | DMI_MATCH(DMI_BIOS_VERSION, "JS-BI-10.6-SF133GR300-GA55B-024-F"), |
Tim Josten | f95eafb | 2020-01-03 16:00:59 +0100 | [diff] [blame] | 1174 | }, |
| 1175 | }, |
| 1176 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1177 | /* Ployer Momo7w (same hardware as the Trekstor ST70416-6) */ |
| 1178 | .driver_data = (void *)&trekstor_surftab_wintron70_data, |
| 1179 | .matches = { |
| 1180 | DMI_MATCH(DMI_SYS_VENDOR, "Shenzhen PLOYER"), |
| 1181 | DMI_MATCH(DMI_PRODUCT_NAME, "MOMO7W"), |
| 1182 | /* Exact match, different versions need different fw */ |
| 1183 | DMI_MATCH(DMI_BIOS_VERSION, "MOMO.G.WI71C.MABMRBA02"), |
| 1184 | }, |
| 1185 | }, |
| 1186 | { |
| 1187 | /* Point of View mobii wintab p800w (v2.0) */ |
| 1188 | .driver_data = (void *)&pov_mobii_wintab_p800w_v20_data, |
| 1189 | .matches = { |
| 1190 | DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), |
| 1191 | DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), |
| 1192 | DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1014"), |
| 1193 | /* Above matches are too generic, add bios-date match */ |
| 1194 | DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"), |
| 1195 | }, |
| 1196 | }, |
| 1197 | { |
Hans de Goede | 0f511ed | 2020-10-15 21:49:49 +0200 | [diff] [blame] | 1198 | /* Predia Basic tablet) */ |
| 1199 | .driver_data = (void *)&predia_basic_data, |
| 1200 | .matches = { |
| 1201 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 1202 | DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), |
| 1203 | /* Above matches are too generic, add bios-version match */ |
| 1204 | DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"), |
| 1205 | }, |
| 1206 | }, |
| 1207 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1208 | /* Point of View mobii wintab p800w (v2.1) */ |
| 1209 | .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data, |
| 1210 | .matches = { |
| 1211 | DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), |
| 1212 | DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), |
| 1213 | DMI_MATCH(DMI_BIOS_VERSION, "3BAIR1013"), |
| 1214 | /* Above matches are too generic, add bios-date match */ |
| 1215 | DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"), |
| 1216 | }, |
| 1217 | }, |
| 1218 | { |
Hans de Goede | 8335ebc | 2018-12-20 22:21:50 +0100 | [diff] [blame] | 1219 | /* Point of View mobii wintab p1006w (v1.0) */ |
| 1220 | .driver_data = (void *)&pov_mobii_wintab_p1006w_v10_data, |
| 1221 | .matches = { |
| 1222 | DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 1223 | DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"), |
| 1224 | /* Note 105b is Foxcon's USB/PCI vendor id */ |
| 1225 | DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"), |
| 1226 | DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"), |
| 1227 | }, |
| 1228 | }, |
| 1229 | { |
Daniel Gorbea Ainz | 3caa6f3 | 2019-10-23 20:53:23 +0200 | [diff] [blame] | 1230 | /* Schneider SCT101CTM */ |
| 1231 | .driver_data = (void *)&schneider_sct101ctm_data, |
| 1232 | .matches = { |
| 1233 | DMI_MATCH(DMI_SYS_VENDOR, "Default string"), |
| 1234 | DMI_MATCH(DMI_PRODUCT_NAME, "SCT101CTM"), |
| 1235 | }, |
| 1236 | }, |
| 1237 | { |
Wiktor Ciurej | 97e130f | 2020-04-02 18:13:13 +0200 | [diff] [blame] | 1238 | /* Techbite Arc 11.6 */ |
| 1239 | .driver_data = (void *)&techbite_arc_11_6_data, |
| 1240 | .matches = { |
| 1241 | DMI_MATCH(DMI_SYS_VENDOR, "mPTech"), |
| 1242 | DMI_MATCH(DMI_PRODUCT_NAME, "techBite Arc 11.6"), |
| 1243 | DMI_MATCH(DMI_BOARD_NAME, "G8316_272B"), |
| 1244 | }, |
| 1245 | }, |
| 1246 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1247 | /* Teclast X3 Plus */ |
| 1248 | .driver_data = (void *)&teclast_x3_plus_data, |
| 1249 | .matches = { |
| 1250 | DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), |
| 1251 | DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"), |
| 1252 | DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"), |
| 1253 | }, |
| 1254 | }, |
| 1255 | { |
| 1256 | /* Teclast X98 Plus II */ |
| 1257 | .driver_data = (void *)&teclast_x98plus2_data, |
| 1258 | .matches = { |
| 1259 | DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), |
| 1260 | DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"), |
| 1261 | }, |
| 1262 | }, |
| 1263 | { |
Hans de Goede | cacad0b | 2018-10-04 14:34:45 +0200 | [diff] [blame] | 1264 | /* Trekstor Primebook C11 */ |
| 1265 | .driver_data = (void *)&trekstor_primebook_c11_data, |
| 1266 | .matches = { |
| 1267 | DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), |
| 1268 | DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"), |
| 1269 | }, |
| 1270 | }, |
| 1271 | { |
Hans de Goede | 37d960a | 2019-08-18 13:04:51 +0200 | [diff] [blame] | 1272 | /* Trekstor Primebook C11B (same touchscreen as the C11) */ |
| 1273 | .driver_data = (void *)&trekstor_primebook_c11_data, |
| 1274 | .matches = { |
| 1275 | DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), |
| 1276 | DMI_MATCH(DMI_PRODUCT_NAME, "PRIMEBOOK C11B"), |
| 1277 | }, |
| 1278 | }, |
| 1279 | { |
Hans de Goede | 6a655a0 | 2018-06-08 23:45:56 +0200 | [diff] [blame] | 1280 | /* Trekstor Primebook C13 */ |
| 1281 | .driver_data = (void *)&trekstor_primebook_c13_data, |
| 1282 | .matches = { |
| 1283 | DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), |
| 1284 | DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"), |
Hans de Goede | 6b8e7d8 | 2017-03-22 16:55:54 +0100 | [diff] [blame] | 1285 | }, |
| 1286 | }, |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 1287 | { |
Marian Cepok | 30394a8 | 2018-10-08 09:25:05 +0200 | [diff] [blame] | 1288 | /* Trekstor Primetab T13B */ |
| 1289 | .driver_data = (void *)&trekstor_primetab_t13b_data, |
| 1290 | .matches = { |
| 1291 | DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), |
| 1292 | DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"), |
| 1293 | }, |
| 1294 | }, |
| 1295 | { |
Bernhard Übelacker | f4c12d4 | 2017-11-26 19:32:58 +0100 | [diff] [blame] | 1296 | /* TrekStor SurfTab twin 10.1 ST10432-8 */ |
Hans de Goede | d6b0d7d | 2018-06-08 23:45:55 +0200 | [diff] [blame] | 1297 | .driver_data = (void *)&trekstor_surftab_twin_10_1_data, |
Bernhard Übelacker | f4c12d4 | 2017-11-26 19:32:58 +0100 | [diff] [blame] | 1298 | .matches = { |
| 1299 | DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), |
| 1300 | DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"), |
| 1301 | }, |
| 1302 | }, |
| 1303 | { |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 1304 | /* Trekstor Surftab Wintron 7.0 ST70416-6 */ |
Hans de Goede | d6b0d7d | 2018-06-08 23:45:55 +0200 | [diff] [blame] | 1305 | .driver_data = (void *)&trekstor_surftab_wintron70_data, |
Hans de Goede | 5b7bb3a | 2017-04-09 11:07:44 +0200 | [diff] [blame] | 1306 | .matches = { |
| 1307 | DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), |
| 1308 | DMI_MATCH(DMI_PRODUCT_NAME, "ST70416-6"), |
| 1309 | /* Exact match, different versions need different fw */ |
| 1310 | DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"), |
| 1311 | }, |
| 1312 | }, |
Hans de Goede | d9ca30b | 2017-05-07 14:35:15 +0200 | [diff] [blame] | 1313 | { |
Hans de Goede | 4245c15 | 2018-01-16 20:24:15 +0100 | [diff] [blame] | 1314 | /* Trekstor Surftab Wintron 7.0 ST70416-6, newer BIOS */ |
Hans de Goede | d6b0d7d | 2018-06-08 23:45:55 +0200 | [diff] [blame] | 1315 | .driver_data = (void *)&trekstor_surftab_wintron70_data, |
Hans de Goede | 4245c15 | 2018-01-16 20:24:15 +0100 | [diff] [blame] | 1316 | .matches = { |
| 1317 | DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"), |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 1318 | DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab wintron 7.0 ST70416-6"), |
Hans de Goede | 4245c15 | 2018-01-16 20:24:15 +0100 | [diff] [blame] | 1319 | /* Exact match, different versions need different fw */ |
| 1320 | DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA05"), |
| 1321 | }, |
| 1322 | }, |
| 1323 | { |
Bernhard Übelacker | 6b29030 | 2020-05-15 17:59:12 +0200 | [diff] [blame] | 1324 | /* Trekstor Yourbook C11B (same touchscreen as the Primebook C11) */ |
| 1325 | .driver_data = (void *)&trekstor_primebook_c11_data, |
| 1326 | .matches = { |
| 1327 | DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), |
| 1328 | DMI_MATCH(DMI_PRODUCT_NAME, "YOURBOOK C11B"), |
| 1329 | }, |
| 1330 | }, |
| 1331 | { |
Andrew Dunai | 06b2ee0 | 2020-05-05 15:15:18 +0300 | [diff] [blame] | 1332 | /* Vinga Twizzle J116 */ |
| 1333 | .driver_data = (void *)&vinga_twizzle_j116_data, |
| 1334 | .matches = { |
| 1335 | DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"), |
| 1336 | }, |
| 1337 | }, |
| 1338 | { |
Hans de Goede | 24e2bb3 | 2018-03-09 15:03:58 +0100 | [diff] [blame] | 1339 | /* Yours Y8W81, same case and touchscreen as Chuwi Vi8 */ |
| 1340 | .driver_data = (void *)&chuwi_vi8_data, |
| 1341 | .matches = { |
| 1342 | DMI_MATCH(DMI_SYS_VENDOR, "YOURS"), |
| 1343 | DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"), |
| 1344 | }, |
| 1345 | }, |
Andy Shevchenko | 65fce35 | 2020-05-05 15:44:45 +0300 | [diff] [blame] | 1346 | { } |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1347 | }; |
| 1348 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1349 | static const struct ts_dmi_data *ts_data; |
Dmitry Torokhov | f22265b | 2017-04-03 20:25:14 -0700 | [diff] [blame] | 1350 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1351 | static void ts_dmi_add_props(struct i2c_client *client) |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1352 | { |
Dmitry Torokhov | e105396 | 2017-04-03 20:25:13 -0700 | [diff] [blame] | 1353 | struct device *dev = &client->dev; |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1354 | int error; |
| 1355 | |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1356 | if (has_acpi_companion(dev) && |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1357 | !strncmp(ts_data->acpi_name, client->name, I2C_NAME_SIZE)) { |
| 1358 | error = device_add_properties(dev, ts_data->properties); |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1359 | if (error) |
| 1360 | dev_err(dev, "failed to add properties: %d\n", error); |
| 1361 | } |
| 1362 | } |
| 1363 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1364 | static int ts_dmi_notifier_call(struct notifier_block *nb, |
Andy Shevchenko | df532c1 | 2020-01-09 17:34:05 +0200 | [diff] [blame] | 1365 | unsigned long action, void *data) |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1366 | { |
| 1367 | struct device *dev = data; |
Dmitry Torokhov | e105396 | 2017-04-03 20:25:13 -0700 | [diff] [blame] | 1368 | struct i2c_client *client; |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1369 | |
| 1370 | switch (action) { |
| 1371 | case BUS_NOTIFY_ADD_DEVICE: |
Dmitry Torokhov | e105396 | 2017-04-03 20:25:13 -0700 | [diff] [blame] | 1372 | client = i2c_verify_client(dev); |
| 1373 | if (client) |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1374 | ts_dmi_add_props(client); |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1375 | break; |
| 1376 | |
| 1377 | default: |
| 1378 | break; |
| 1379 | } |
| 1380 | |
| 1381 | return 0; |
| 1382 | } |
| 1383 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1384 | static struct notifier_block ts_dmi_notifier = { |
| 1385 | .notifier_call = ts_dmi_notifier_call, |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1386 | }; |
| 1387 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1388 | static int __init ts_dmi_init(void) |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1389 | { |
Dmitry Torokhov | f22265b | 2017-04-03 20:25:14 -0700 | [diff] [blame] | 1390 | const struct dmi_system_id *dmi_id; |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1391 | int error; |
| 1392 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1393 | dmi_id = dmi_first_match(touchscreen_dmi_table); |
Dmitry Torokhov | f22265b | 2017-04-03 20:25:14 -0700 | [diff] [blame] | 1394 | if (!dmi_id) |
| 1395 | return 0; /* Not an error */ |
| 1396 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1397 | ts_data = dmi_id->driver_data; |
Hans de Goede | b94b807 | 2020-01-15 17:35:54 +0100 | [diff] [blame] | 1398 | /* Some dmi table entries only provide an efi_embedded_fw_desc */ |
| 1399 | if (!ts_data->properties) |
| 1400 | return 0; |
Dmitry Torokhov | f22265b | 2017-04-03 20:25:14 -0700 | [diff] [blame] | 1401 | |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1402 | error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier); |
Hans de Goede | cef9dd8 | 2017-01-23 18:35:30 +0100 | [diff] [blame] | 1403 | if (error) |
| 1404 | pr_err("%s: failed to register i2c bus notifier: %d\n", |
| 1405 | __func__, error); |
| 1406 | |
| 1407 | return error; |
| 1408 | } |
| 1409 | |
| 1410 | /* |
| 1411 | * We are registering out notifier after i2c core is initialized and i2c bus |
| 1412 | * itself is ready (which happens at postcore initcall level), but before |
| 1413 | * ACPI starts enumerating devices (at subsys initcall level). |
| 1414 | */ |
Hans de Goede | 7442178 | 2018-06-08 23:45:58 +0200 | [diff] [blame] | 1415 | arch_initcall(ts_dmi_init); |