From dc9dc6693376b6a71a40dfe438d08ac772fdab94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=9Awi=C4=85tek?= <57900186+stpf99@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:26:21 +0200 Subject: [PATCH 1/2] Update touchscreen_dmi.c --- drivers/platform/x86/touchscreen_dmi.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index f9301a9382e741..a40a59e3e4ae23 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -26,6 +26,21 @@ struct ts_dmi_data { /* NOTE: Please keep all entries sorted alphabetically */ +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 archos_101_cesium_educ_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), @@ -1063,6 +1078,13 @@ static const struct ts_dmi_data vinga_twizzle_j116_data = { /* NOTE: Please keep this table sorted alphabetically */ const struct dmi_system_id touchscreen_dmi_table[] = { + { + /* Bush Windows tablet */ + .driver_data = (void *)&bush_bush_windows_tablet_data , + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "Bush Windows tablet"), + }, + }, { /* Archos 101 Cesium Educ */ .driver_data = (void *)&archos_101_cesium_educ_data, From 5cd76f5b5bf9817967e90fc8b37679dc9f2ed9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=9Awi=C4=85tek?= <57900186+stpf99@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:27:40 +0200 Subject: [PATCH 2/2] Update touchscreen_dmi.c --- drivers/platform/x86/touchscreen_dmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index a40a59e3e4ae23..0af0e1c2a93fe3 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -32,7 +32,7 @@ static const struct property_entry bush_bush_windows_tablet_props[] = { 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"), + PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-bush-bush-windows-tablet.fw"), { } };