Skip to content

Commit 196159d

Browse files
committed
platform/x86: touchscreen_dmi: Update info for the Chuwi Hi10 Plus (CWI527) tablet
Add info for getting the firmware directly from the UEFI for the Chuwi Hi10 Plus (CWI527), 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. Also tweak the min and width/height values a bit for more accurate position reporting. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20210905130210.32810-2-hdegoede@redhat.com
1 parent 3bf1669 commit 196159d

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎drivers/platform/x86/touchscreen_dmi.c‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,26 @@ static const struct ts_dmi_data chuwi_hi10_air_data = {
100100
};
101101

102102
static const struct property_entry chuwi_hi10_plus_props[] = {
103-
PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
104-
PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
105-
PROPERTY_ENTRY_U32("touchscreen-size-x", 1914),
106-
PROPERTY_ENTRY_U32("touchscreen-size-y", 1283),
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),
107107
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10plus.fw"),
108108
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
109109
PROPERTY_ENTRY_BOOL("silead,home-button"),
110110
{ }
111111
};
112112

113113
static const struct ts_dmi_data chuwi_hi10_plus_data = {
114+
.embedded_fw = {
115+
.name = "silead/gsl1680-chuwi-hi10plus.fw",
116+
.prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
117+
.length = 34056,
118+
.sha256 = { 0xfd, 0x0a, 0x08, 0x08, 0x3c, 0xa6, 0x34, 0x4e,
119+
0x2c, 0x49, 0x9c, 0xcd, 0x7d, 0x44, 0x9d, 0x38,
120+
0x10, 0x68, 0xb5, 0xbd, 0xb7, 0x2a, 0x63, 0xb5,
121+
0x67, 0x0b, 0x96, 0xbd, 0x89, 0x67, 0x85, 0x09 },
122+
},
114123
.acpi_name = "MSSL0017:00",
115124
.properties = chuwi_hi10_plus_props,
116125
};

0 commit comments

Comments
 (0)