Skip to content

Commit b4c8681

Browse files
jwrdegoedeandy-shev
authored andcommitted
platform/x86: silead_dmi: Add touchscreen info for the Chuwi Vi10 tablet
Add touchscreen info for the 10" Chuwi Vi10 (CWI505) tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 6a655a0 commit b4c8681

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

drivers/platform/x86/silead_dmi.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ static const struct silead_ts_dmi_data chuwi_vi8_data = {
7070
.properties = chuwi_vi8_props,
7171
};
7272

73+
static const struct property_entry chuwi_vi10_props[] = {
74+
PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
75+
PROPERTY_ENTRY_U32("touchscreen-min-y", 4),
76+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1858),
77+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
78+
PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-chuwi-vi10.fw"),
79+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
80+
PROPERTY_ENTRY_BOOL("silead,home-button"),
81+
{ }
82+
};
83+
84+
static const struct silead_ts_dmi_data chuwi_vi10_data = {
85+
.acpi_name = "MSSL0002:00",
86+
.properties = chuwi_vi10_props,
87+
};
88+
7389
static const struct property_entry cube_iwork8_air_props[] = {
7490
PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
7591
PROPERTY_ENTRY_U32("touchscreen-size-y", 900),
@@ -364,6 +380,16 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
364380
DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
365381
},
366382
},
383+
{
384+
/* Chuwi Vi10 (CWI505) */
385+
.driver_data = (void *)&chuwi_vi10_data,
386+
.matches = {
387+
DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
388+
DMI_MATCH(DMI_BOARD_NAME, "BYT-PF02"),
389+
DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
390+
DMI_MATCH(DMI_PRODUCT_NAME, "S165"),
391+
},
392+
},
367393
{
368394
/* CUBE iwork8 Air */
369395
.driver_data = (void *)&cube_iwork8_air_data,

0 commit comments

Comments
 (0)