Skip to content

Commit 3bf1669

Browse files
committed
platform/x86: touchscreen_dmi: Add info for the Chuwi HiBook (CWI514) tablet
Add touchscreen info for the Chuwi HiBook (CWI514) 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/20210905130210.32810-1-hdegoede@redhat.com
1 parent 4c4a3d7 commit 3bf1669

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

‎drivers/platform/x86/touchscreen_dmi.c‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,33 @@ static const struct ts_dmi_data chuwi_hi10_pro_data = {
141141
.properties = chuwi_hi10_pro_props,
142142
};
143143

144+
static const struct property_entry chuwi_hibook_props[] = {
145+
PROPERTY_ENTRY_U32("touchscreen-min-x", 30),
146+
PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
147+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1892),
148+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1276),
149+
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
150+
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
151+
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hibook.fw"),
152+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
153+
PROPERTY_ENTRY_BOOL("silead,home-button"),
154+
{ }
155+
};
156+
157+
static const struct ts_dmi_data chuwi_hibook_data = {
158+
.embedded_fw = {
159+
.name = "silead/gsl1680-chuwi-hibook.fw",
160+
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
161+
.length = 40392,
162+
.sha256 = { 0xf7, 0xc0, 0xe8, 0x5a, 0x6c, 0xf2, 0xeb, 0x8d,
163+
0x12, 0xc4, 0x45, 0xbf, 0x55, 0x13, 0x4c, 0x1a,
164+
0x13, 0x04, 0x31, 0x08, 0x65, 0x73, 0xf7, 0xa8,
165+
0x1b, 0x7d, 0x59, 0xc9, 0xe6, 0x97, 0xf7, 0x38 },
166+
},
167+
.acpi_name = "MSSL0017:00",
168+
.properties = chuwi_hibook_props,
169+
};
170+
144171
static const struct property_entry chuwi_vi8_props[] = {
145172
PROPERTY_ENTRY_U32("touchscreen-min-x", 4),
146173
PROPERTY_ENTRY_U32("touchscreen-min-y", 6),
@@ -979,6 +1006,16 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
9791006
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
9801007
},
9811008
},
1009+
{
1010+
/* Chuwi HiBook (CWI514) */
1011+
.driver_data = (void *)&chuwi_hibook_data,
1012+
.matches = {
1013+
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
1014+
DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
1015+
/* Above matches are too generic, add bios-date match */
1016+
DMI_MATCH(DMI_BIOS_DATE, "05/07/2016"),
1017+
},
1018+
},
9821019
{
9831020
/* Chuwi Vi8 (CWI506) */
9841021
.driver_data = (void *)&chuwi_vi8_data,

0 commit comments

Comments
 (0)