* [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet
@ 2018-10-08 7:25 Marian Cepok
2018-10-19 12:48 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Marian Cepok @ 2018-10-08 7:25 UTC (permalink / raw)
To: hdegoede; +Cc: dvhart, andy, linux-input, platform-driver-x86, linux-kernel
Add touchscreen info for the Trekstor Primetab T13B tablet.
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marian Cepok <marian.cepok@gmail.com>
---
drivers/platform/x86/touchscreen_dmi.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
index cb204f973491..c07954f0efc6 100644
--- a/drivers/platform/x86/touchscreen_dmi.c
+++ b/drivers/platform/x86/touchscreen_dmi.c
@@ -381,6 +381,22 @@ static const struct ts_dmi_data trekstor_primebook_c13_data = {
.properties = trekstor_primebook_c13_props,
};
+static const struct property_entry trekstor_primetab_t13b_props[] = {
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
+ PROPERTY_ENTRY_STRING("firmware-name",
+ "gsl1680-trekstor-primetab-t13b.fw"),
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+ PROPERTY_ENTRY_BOOL("silead,home-button"),
+ PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+ { }
+};
+
+static const struct ts_dmi_data trekstor_primetab_t13b_data = {
+ .acpi_name = "MSSL1680:00",
+ .properties = trekstor_primetab_t13b_props,
+};
+
static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
@@ -648,6 +664,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
},
},
+ {
+ /* Trekstor Primetab T13B */
+ .driver_data = (void *)&trekstor_primetab_t13b_data,
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
+ },
+ },
{
/* TrekStor SurfTab twin 10.1 ST10432-8 */
.driver_data = (void *)&trekstor_surftab_twin_10_1_data,
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet
2018-10-08 7:25 [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet Marian Cepok
@ 2018-10-19 12:48 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2018-10-19 12:48 UTC (permalink / raw)
To: marian.cepok
Cc: Hans de Goede, Darren Hart, Andy Shevchenko, linux-input,
Platform Driver, Linux Kernel Mailing List
On Mon, Oct 8, 2018 at 10:25 AM Marian Cepok <marian.cepok@gmail.com> wrote:
>
> Add touchscreen info for the Trekstor Primetab T13B tablet.
>
Pushed to my review and testing queue, thanks!
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
> Signed-off-by: Marian Cepok <marian.cepok@gmail.com>
> ---
> drivers/platform/x86/touchscreen_dmi.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
> index cb204f973491..c07954f0efc6 100644
> --- a/drivers/platform/x86/touchscreen_dmi.c
> +++ b/drivers/platform/x86/touchscreen_dmi.c
> @@ -381,6 +381,22 @@ static const struct ts_dmi_data trekstor_primebook_c13_data = {
> .properties = trekstor_primebook_c13_props,
> };
>
> +static const struct property_entry trekstor_primetab_t13b_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 2500),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1900),
> + PROPERTY_ENTRY_STRING("firmware-name",
> + "gsl1680-trekstor-primetab-t13b.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + PROPERTY_ENTRY_BOOL("silead,home-button"),
> + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
> + { }
> +};
> +
> +static const struct ts_dmi_data trekstor_primetab_t13b_data = {
> + .acpi_name = "MSSL1680:00",
> + .properties = trekstor_primetab_t13b_props,
> +};
> +
> static const struct property_entry trekstor_surftab_twin_10_1_props[] = {
> PROPERTY_ENTRY_U32("touchscreen-size-x", 1900),
> PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
> @@ -648,6 +664,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
> },
> },
> + {
> + /* Trekstor Primetab T13B */
> + .driver_data = (void *)&trekstor_primetab_t13b_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"),
> + },
> + },
> {
> /* TrekStor SurfTab twin 10.1 ST10432-8 */
> .driver_data = (void *)&trekstor_surftab_twin_10_1_data,
> --
> 2.17.1
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-19 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-08 7:25 [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet Marian Cepok
2018-10-19 12:48 ` 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).