* [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primebook C11 convertible
@ 2018-10-04 12:34 Hans de Goede
2018-10-19 11:56 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2018-10-04 12:34 UTC (permalink / raw)
To: Darren Hart, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, linux-kernel, Alicia Hormann
Add touchscreen info for the Trekstor Primebook C11 convertible.
Cc: Alicia Hormann <ahormann@gmx.net>
Suggested-by: Alicia Hormann <ahormann@gmx.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.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 f30337d68007..4e6fdc1fbfdf 100644
--- a/drivers/platform/x86/touchscreen_dmi.c
+++ b/drivers/platform/x86/touchscreen_dmi.c
@@ -421,6 +421,22 @@ static const struct ts_dmi_data teclast_x98plus2_data = {
.properties = teclast_x98plus2_props,
};
+static const struct property_entry trekstor_primebook_c11_props[] = {
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
+ PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+ PROPERTY_ENTRY_STRING("firmware-name",
+ "gsl1680-trekstor-primebook-c11.fw"),
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+ PROPERTY_ENTRY_BOOL("silead,home-button"),
+ { }
+};
+
+static const struct ts_dmi_data trekstor_primebook_c11_data = {
+ .acpi_name = "MSSL1680:00",
+ .properties = trekstor_primebook_c11_props,
+};
+
static const struct property_entry trekstor_primebook_c13_props[] = {
PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
@@ -706,6 +722,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
},
},
+ {
+ /* Trekstor Primebook C11 */
+ .driver_data = (void *)&trekstor_primebook_c11_data,
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
+ },
+ },
{
/* Trekstor Primebook C13 */
.driver_data = (void *)&trekstor_primebook_c13_data,
--
2.19.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primebook C11 convertible
2018-10-04 12:34 [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primebook C11 convertible Hans de Goede
@ 2018-10-19 11:56 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2018-10-19 11:56 UTC (permalink / raw)
To: Hans de Goede
Cc: Darren Hart, Andy Shevchenko, Platform Driver,
Linux Kernel Mailing List, ahormann
On Thu, Oct 4, 2018 at 3:35 PM Hans de Goede <hdegoede@redhat.com> wrote:
>
> Add touchscreen info for the Trekstor Primebook C11 convertible.
>
Applied, thanks!
> Cc: Alicia Hormann <ahormann@gmx.net>
> Suggested-by: Alicia Hormann <ahormann@gmx.net>
> Signed-off-by: Hans de Goede <hdegoede@redhat.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 f30337d68007..4e6fdc1fbfdf 100644
> --- a/drivers/platform/x86/touchscreen_dmi.c
> +++ b/drivers/platform/x86/touchscreen_dmi.c
> @@ -421,6 +421,22 @@ static const struct ts_dmi_data teclast_x98plus2_data = {
> .properties = teclast_x98plus2_props,
> };
>
> +static const struct property_entry trekstor_primebook_c11_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 1970),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1530),
> + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
> + PROPERTY_ENTRY_STRING("firmware-name",
> + "gsl1680-trekstor-primebook-c11.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + PROPERTY_ENTRY_BOOL("silead,home-button"),
> + { }
> +};
> +
> +static const struct ts_dmi_data trekstor_primebook_c11_data = {
> + .acpi_name = "MSSL1680:00",
> + .properties = trekstor_primebook_c11_props,
> +};
> +
> static const struct property_entry trekstor_primebook_c13_props[] = {
> PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
> PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
> @@ -706,6 +722,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"),
> },
> },
> + {
> + /* Trekstor Primebook C11 */
> + .driver_data = (void *)&trekstor_primebook_c11_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C11"),
> + },
> + },
> {
> /* Trekstor Primebook C13 */
> .driver_data = (void *)&trekstor_primebook_c13_data,
> --
> 2.19.0
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-19 11:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-04 12:34 [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primebook C11 convertible Hans de Goede
2018-10-19 11:56 ` Andy Shevchenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.