* [PATCH] platform/x86: silead_dmi: Add entry for the Digma e200 tablet
@ 2017-10-27 10:27 Hans de Goede
2017-10-27 16:45 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2017-10-27 10:27 UTC (permalink / raw)
To: Darren Hart, Andy Shevchenko
Cc: Hans de Goede, platform-driver-x86, linux-kernel, Sergey Tshovrebov
From: Sergey Tshovrebov <sinxwal@gmail.com>
Add touchscreen platform data for the Digma e200 tablet.
Signed-off-by: Sergey Tshovrebov <sinxwal@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/platform/x86/silead_dmi.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
index ac304f2318cc..266535c2a72f 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -155,6 +155,22 @@ static const struct silead_ts_dmi_data chuwi_hi8_pro_data = {
.properties = chuwi_hi8_pro_props,
};
+static const struct property_entry digma_citi_e200_props[] = {
+ PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
+ PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
+ PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+ PROPERTY_ENTRY_STRING("firmware-name",
+ "gsl1686-digma_citi_e200.fw"),
+ PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+ PROPERTY_ENTRY_BOOL("silead,home-button"),
+ { }
+};
+
+static const struct silead_ts_dmi_data digma_citi_e200_data = {
+ .acpi_name = "MSSL1680:00",
+ .properties = digma_citi_e200_props,
+};
+
static const struct dmi_system_id silead_ts_dmi_table[] = {
{
/* CUBE iwork8 Air */
@@ -246,6 +262,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
},
},
+ {
+ /* Digma Citi E200 */
+ .driver_data = (void *)&digma_citi_e200_data,
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
+ DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
+ },
+ },
{ },
};
--
2.14.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: silead_dmi: Add entry for the Digma e200 tablet
2017-10-27 10:27 [PATCH] platform/x86: silead_dmi: Add entry for the Digma e200 tablet Hans de Goede
@ 2017-10-27 16:45 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2017-10-27 16:45 UTC (permalink / raw)
To: Hans de Goede
Cc: Darren Hart, Andy Shevchenko, Platform Driver, linux-kernel,
Sergey Tshovrebov
On Fri, Oct 27, 2017 at 1:27 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> From: Sergey Tshovrebov <sinxwal@gmail.com>
>
> Add touchscreen platform data for the Digma e200 tablet.
>
Pushed to my review and testing queue, thanks!
> Signed-off-by: Sergey Tshovrebov <sinxwal@gmail.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> drivers/platform/x86/silead_dmi.c | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
> index ac304f2318cc..266535c2a72f 100644
> --- a/drivers/platform/x86/silead_dmi.c
> +++ b/drivers/platform/x86/silead_dmi.c
> @@ -155,6 +155,22 @@ static const struct silead_ts_dmi_data chuwi_hi8_pro_data = {
> .properties = chuwi_hi8_pro_props,
> };
>
> +static const struct property_entry digma_citi_e200_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
> + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
> + PROPERTY_ENTRY_STRING("firmware-name",
> + "gsl1686-digma_citi_e200.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + PROPERTY_ENTRY_BOOL("silead,home-button"),
> + { }
> +};
> +
> +static const struct silead_ts_dmi_data digma_citi_e200_data = {
> + .acpi_name = "MSSL1680:00",
> + .properties = digma_citi_e200_props,
> +};
> +
> static const struct dmi_system_id silead_ts_dmi_table[] = {
> {
> /* CUBE iwork8 Air */
> @@ -246,6 +262,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "X1D3_C806N"),
> },
> },
> + {
> + /* Digma Citi E200 */
> + .driver_data = (void *)&digma_citi_e200_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Digma"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "CITI E200"),
> + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
> + },
> + },
> { },
> };
>
> --
> 2.14.2
>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-27 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27 10:27 [PATCH] platform/x86: silead_dmi: Add entry for the Digma e200 tablet Hans de Goede
2017-10-27 16:45 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome