* [PATCH] platform/x86: silead_dmi: Add touchscreen info for SurfTab twin 10.1
@ 2017-11-26 18:32 Hans de Goede
2017-11-28 17:44 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2017-11-26 18:32 UTC (permalink / raw)
To: Darren Hart, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, linux-kernel,
Bernhard Übelacker
From: Bernhard Übelacker <bernhardu@mailbox.org>
Add touchscreen info for the Trekstor SurfTab twin 10.1 ST10432-8
tablet. Resolution based on output of evemu-record.
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/platform/x86/silead_dmi.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
index 266535c2a72f..9a3da53202cb 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -67,6 +67,21 @@ static const struct silead_ts_dmi_data dexp_ursus_7w_data = {
.properties = dexp_ursus_7w_props,
};
+static const struct property_entry surftab_twin_10_1_st10432_8_props[] = {
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
+ PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
+ PROPERTY_ENTRY_STRING("firmware-name",
+ "gsl3670-surftab-twin-10-1-st10432-8.fw"),
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+ { }
+};
+
+static const struct silead_ts_dmi_data surftab_twin_10_1_st10432_8_data = {
+ .acpi_name = "MSSL1680:00",
+ .properties = surftab_twin_10_1_st10432_8_props,
+};
+
static const struct property_entry surftab_wintron70_st70416_6_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
@@ -198,6 +213,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
},
},
+ {
+ /* TrekStor SurfTab twin 10.1 ST10432-8 */
+ .driver_data = (void *)&surftab_twin_10_1_st10432_8_data,
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
+ },
+ },
{
/* Trekstor Surftab Wintron 7.0 ST70416-6 */
.driver_data = (void *)&surftab_wintron70_st70416_6_data,
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for SurfTab twin 10.1
2017-11-26 18:32 [PATCH] platform/x86: silead_dmi: Add touchscreen info for SurfTab twin 10.1 Hans de Goede
@ 2017-11-28 17:44 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2017-11-28 17:44 UTC (permalink / raw)
To: Hans de Goede
Cc: Darren Hart, Andy Shevchenko, Platform Driver, linux-kernel,
Bernhard Übelacker
On Sun, Nov 26, 2017 at 8:32 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> From: Bernhard Übelacker <bernhardu@mailbox.org>
>
> Add touchscreen info for the Trekstor SurfTab twin 10.1 ST10432-8
> tablet. Resolution based on output of evemu-record.
>
Pushed to review and testing queue, thanks!
> Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/platform/x86/silead_dmi.c | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
> index 266535c2a72f..9a3da53202cb 100644
> --- a/drivers/platform/x86/silead_dmi.c
> +++ b/drivers/platform/x86/silead_dmi.c
> @@ -67,6 +67,21 @@ static const struct silead_ts_dmi_data dexp_ursus_7w_data = {
> .properties = dexp_ursus_7w_props,
> };
>
> +static const struct property_entry surftab_twin_10_1_st10432_8_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
> + PROPERTY_ENTRY_U32("touchscreen-inverted-y", 1),
> + PROPERTY_ENTRY_STRING("firmware-name",
> + "gsl3670-surftab-twin-10-1-st10432-8.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + { }
> +};
> +
> +static const struct silead_ts_dmi_data surftab_twin_10_1_st10432_8_data = {
> + .acpi_name = "MSSL1680:00",
> + .properties = surftab_twin_10_1_st10432_8_props,
> +};
> +
> static const struct property_entry surftab_wintron70_st70416_6_props[] = {
> PROPERTY_ENTRY_U32("touchscreen-size-x", 884),
> PROPERTY_ENTRY_U32("touchscreen-size-y", 632),
> @@ -198,6 +213,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
> },
> },
> + {
> + /* TrekStor SurfTab twin 10.1 ST10432-8 */
> + .driver_data = (void *)&surftab_twin_10_1_st10432_8_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "TrekStor"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "SurfTab twin 10.1"),
> + },
> + },
> {
> /* Trekstor Surftab Wintron 7.0 ST70416-6 */
> .driver_data = (void *)&surftab_wintron70_st70416_6_data,
> --
> 2.14.3
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-28 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-26 18:32 [PATCH] platform/x86: silead_dmi: Add touchscreen info for SurfTab twin 10.1 Hans de Goede
2017-11-28 17:44 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).