Skip to content

Commit ff945d0

Browse files
jwrdegoedegregkh
authored andcommitted
platform/x86: touchscreen_dmi: Add info for the Chuwi Hi10 Pro (CWI529) tablet
[ Upstream commit e68671e ] Add touchscreen info for the Chuwi Hi10 Pro (CWI529) tablet. This includes info for getting the firmware directly from the UEFI, so that the user does not need to manually install the firmware in /lib/firmware/silead. This change will make the touchscreen on these devices work OOTB, without requiring any manual setup. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210520093228.7439-1-hdegoede@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5fbc70e commit ff945d0

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎drivers/platform/x86/touchscreen_dmi.c‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,32 @@ static const struct ts_dmi_data chuwi_hi10_plus_data = {
115115
.properties = chuwi_hi10_plus_props,
116116
};
117117

118+
static const struct property_entry chuwi_hi10_pro_props[] = {
119+
PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
120+
PROPERTY_ENTRY_U32("touchscreen-min-y", 8),
121+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1912),
122+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1272),
123+
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
124+
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"),
125+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
126+
PROPERTY_ENTRY_BOOL("silead,home-button"),
127+
{ }
128+
};
129+
130+
static const struct ts_dmi_data chuwi_hi10_pro_data = {
131+
.embedded_fw = {
132+
.name = "silead/gsl1680-chuwi-hi10-pro.fw",
133+
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
134+
.length = 42504,
135+
.sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00,
136+
0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c,
137+
0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98,
138+
0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 },
139+
},
140+
.acpi_name = "MSSL1680:00",
141+
.properties = chuwi_hi10_pro_props,
142+
};
143+
118144
static const struct property_entry chuwi_vi8_props[] = {
119145
PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
120146
PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
@@ -872,6 +898,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
872898
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
873899
},
874900
},
901+
{
902+
/* Chuwi Hi10 Prus (CWI597) */
903+
.driver_data = (void *)&chuwi_hi10_pro_data,
904+
.matches = {
905+
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
906+
DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
907+
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
908+
},
909+
},
875910
{
876911
/* Chuwi Vi8 (CWI506) */
877912
.driver_data = (void *)&chuwi_vi8_data,

0 commit comments

Comments
 (0)