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