Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 4good touchscreen support to silead driver #428

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions drivers/platform/x86/silead_dmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ static const struct silead_ts_dmi_data surftab_wintron70_st70416_6_data = {
.properties = surftab_wintron70_st70416_6_props,
};

static struct property_entry good_t803i_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 1720),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1138),
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-4good-t803i.fw"),
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
{ }
};

static const struct silead_ts_dmi_data good_t803i_data = {
.acpi_name = "MSSL1680:00",
.properties = good_t803i_props,
};

static const struct dmi_system_id silead_ts_dmi_table[] = {
{
/* CUBE iwork8 Air */
Expand Down Expand Up @@ -117,6 +131,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
},
},
{
/* 4GOOD T803i */
.driver_data = (void *)&good_t803i_data,
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
DMI_MATCH(DMI_PRODUCT_NAME, "i806"),
},
},
{ },
};

Expand Down