Skip to content

Commit

Permalink
platform/x86: touchscreen_dmi: Add info for the BUSH Bush Windows tablet
Browse files Browse the repository at this point in the history
Add touchscreen info for the BUSH Bush Windows tablet.

It was tested using gslx680_ts_acpi module and on patched kernel
installed on device.

Link: onitake/gsl-firmware#215
Link: systemd/systemd#29268
Signed-off-by: Tomasz Swiatek <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
  • Loading branch information
stpf99 authored and jwrdegoede committed Oct 4, 2023
1 parent cbf9256 commit 34c271e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions drivers/platform/x86/touchscreen_dmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ static const struct ts_dmi_data archos_101_cesium_educ_data = {
.properties = archos_101_cesium_educ_props,
};

static const struct property_entry bush_bush_windows_tablet_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 1850),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
PROPERTY_ENTRY_BOOL("silead,home-button"),
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-bush-bush-windows-tablet.fw"),
{ }
};

static const struct ts_dmi_data bush_bush_windows_tablet_data = {
.acpi_name = "MSSL1680:00",
.properties = bush_bush_windows_tablet_props,
};

static const struct property_entry chuwi_hi8_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
Expand Down Expand Up @@ -1070,6 +1085,13 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "ARCHOS 101 Cesium Educ"),
},
},
{
/* Bush Windows tablet */
.driver_data = (void *)&bush_bush_windows_tablet_data,
.matches = {
DMI_MATCH(DMI_PRODUCT_NAME, "Bush Windows tablet"),
},
},
{
/* Chuwi Hi8 */
.driver_data = (void *)&chuwi_hi8_data,
Expand Down

0 comments on commit 34c271e

Please sign in to comment.