Skip to content

Commit bfe9217

Browse files
committed
platform/x86: touchscreen_dmi: Enable pen support on the Chuwi Hi10 Plus and Pro
Both the Chuwi Hi10 Plus (CWI527) and the Chuwi Hi10 Pro (CWI529) tablets support being used together with the Hi H2 pen. Add the necessary properties to enable the new support for this in the silead touchscreen driver. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 16bbe38 commit bfe9217

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ static const struct property_entry chuwi_hi10_plus_props[] = {
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"),
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),
110113
{ }
111114
};
112115

@@ -136,6 +139,9 @@ static const struct property_entry chuwi_hi10_pro_props[] = {
136139
PROPERTY_ENTRY_U32_ARRAY("silead,efi-fw-min-max", chuwi_hi10_pro_efi_min_max),
137140
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
138141
PROPERTY_ENTRY_BOOL("silead,home-button"),
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),
139145
{ }
140146
};
141147

0 commit comments

Comments
 (0)