* [PATCH 0/1] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13
@ 2017-12-25 12:45 Hans de Goede
2017-12-25 12:45 ` [PATCH] " Hans de Goede
0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2017-12-25 12:45 UTC (permalink / raw)
To: Darren Hart, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, linux-kernel
Hi All,
Note this applies on top of the silead_dmi patches already queued on
Andy's review-andy branch.
Regards,
Hans
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13
2017-12-25 12:45 [PATCH 0/1] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13 Hans de Goede
@ 2017-12-25 12:45 ` Hans de Goede
2017-12-28 9:10 ` Andy Shevchenko
0 siblings, 1 reply; 3+ messages in thread
From: Hans de Goede @ 2017-12-25 12:45 UTC (permalink / raw)
To: Darren Hart, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, linux-kernel
Add touchscreen platform data for the Trekstor Primebook C13 laptop.
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 09b589fb79d4..713446ee3b61 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -232,6 +232,21 @@ static const struct silead_ts_dmi_data chuwi_vi8_data = {
.properties = chuwi_vi8_props,
};
+static const struct property_entry trekstor_primebook_c13_props[] = {
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
+ PROPERTY_ENTRY_STRING("firmware-name",
+ "gsl1680-trekstor-primebook-c13.fw"),
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+ PROPERTY_ENTRY_BOOL("silead,home-button"),
+ { }
+};
+
+static const struct silead_ts_dmi_data trekstor_primebook_c13_data = {
+ .acpi_name = "MSSL1680:00",
+ .properties = trekstor_primebook_c13_props,
+};
+
static const struct dmi_system_id silead_ts_dmi_table[] = {
{
/* CUBE iwork8 Air */
@@ -365,6 +380,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
},
},
+ {
+ /* Trekstor Primebook C13 */
+ .driver_data = (void *)&trekstor_primebook_c13_data,
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
+ },
+ },
{ },
};
--
2.14.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13
2017-12-25 12:45 ` [PATCH] " Hans de Goede
@ 2017-12-28 9:10 ` Andy Shevchenko
0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2017-12-28 9:10 UTC (permalink / raw)
To: Hans de Goede
Cc: Darren Hart, Andy Shevchenko, Platform Driver, Linux Kernel Mailing List
On Mon, Dec 25, 2017 at 2:45 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> Add touchscreen platform data for the Trekstor Primebook C13 laptop.
>
Pushed to my review and testing queue, thanks!
Note, the rest now on it's way to for-next (via testing)
> 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 09b589fb79d4..713446ee3b61 100644
> --- a/drivers/platform/x86/silead_dmi.c
> +++ b/drivers/platform/x86/silead_dmi.c
> @@ -232,6 +232,21 @@ static const struct silead_ts_dmi_data chuwi_vi8_data = {
> .properties = chuwi_vi8_props,
> };
>
> +static const struct property_entry trekstor_primebook_c13_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 2624),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1920),
> + PROPERTY_ENTRY_STRING("firmware-name",
> + "gsl1680-trekstor-primebook-c13.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + PROPERTY_ENTRY_BOOL("silead,home-button"),
> + { }
> +};
> +
> +static const struct silead_ts_dmi_data trekstor_primebook_c13_data = {
> + .acpi_name = "MSSL1680:00",
> + .properties = trekstor_primebook_c13_props,
> +};
> +
> static const struct dmi_system_id silead_ts_dmi_table[] = {
> {
> /* CUBE iwork8 Air */
> @@ -365,6 +380,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
> DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
> },
> },
> + {
> + /* Trekstor Primebook C13 */
> + .driver_data = (void *)&trekstor_primebook_c13_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"),
> + },
> + },
> { },
> };
>
> --
> 2.14.3
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-28 9:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-25 12:45 [PATCH 0/1] platform/x86: silead_dmi: Add entry for the Trekstor Primebook C13 Hans de Goede
2017-12-25 12:45 ` [PATCH] " Hans de Goede
2017-12-28 9:10 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®