Skip to content

Commit b94b807

Browse files
jwrdegoedegregkh
authored andcommitted
platform/x86: touchscreen_dmi: Add info for the Chuwi Vi8 Plus tablet
Add touchscreen info for the Chuwi Vi8 Plus tablet. This tablet uses a Chipone ICN8505 touchscreen controller, with the firmware used by the touchscreen embedded in the EFI firmware. Acked-by: Andy Shevchenko <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 835e1b8 commit b94b807

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ static const struct ts_dmi_data chuwi_vi8_data = {
132132
.properties = chuwi_vi8_props,
133133
};
134134

135+
static const struct ts_dmi_data chuwi_vi8_plus_data = {
136+
.embedded_fw = {
137+
.name = "chipone/icn8505-HAMP0002.fw",
138+
.prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 },
139+
.length = 35012,
140+
.sha256 = { 0x93, 0xe5, 0x49, 0xe0, 0xb6, 0xa2, 0xb4, 0xb3,
141+
0x88, 0x96, 0x34, 0x97, 0x5e, 0xa8, 0x13, 0x78,
142+
0x72, 0x98, 0xb8, 0x29, 0xeb, 0x5c, 0xa7, 0xf1,
143+
0x25, 0x13, 0x43, 0xf4, 0x30, 0x7c, 0xfc, 0x7c },
144+
},
145+
};
146+
135147
static const struct property_entry chuwi_vi10_props[] = {
136148
PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
137149
PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
@@ -742,6 +754,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
742754
DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
743755
},
744756
},
757+
{
758+
/* Chuwi Vi8 Plus (CWI519) */
759+
.driver_data = (void *)&chuwi_vi8_plus_data,
760+
.matches = {
761+
DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"),
762+
DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"),
763+
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
764+
},
765+
},
745766
{
746767
/* Chuwi Vi10 (CWI505) */
747768
.driver_data = (void *)&chuwi_vi10_data,
@@ -1145,6 +1166,9 @@ static int __init ts_dmi_init(void)
11451166
return 0; /* Not an error */
11461167

11471168
ts_data = dmi_id->driver_data;
1169+
/* Some dmi table entries only provide an efi_embedded_fw_desc */
1170+
if (!ts_data->properties)
1171+
return 0;
11481172

11491173
error = bus_register_notifier(&i2c_bus_type, &ts_dmi_notifier);
11501174
if (error)

0 commit comments

Comments
 (0)