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