Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666486 > unrolled thread

[PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet

Started byHans de Goede <hdegoede@redhat.com>
First post2017-06-15 08:50 +0200
Last post2017-06-15 19:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet Hans de Goede <hdegoede@redhat.com> - 2017-06-15 08:50 +0200
    Re: [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for  Pipo W2S tablet Darren Hart <dvhart@infradead.org> - 2017-06-15 19:10 +0200

#1666486 — [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet

FromHans de Goede <hdegoede@redhat.com>
Date2017-06-15 08:50 +0200
Subject[PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet
Message-ID<tSwLo-7tX-1@gated-at.bofh.it>
Add touchscreen info for Pipo W2S tablet.

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 46c5e1ebfb53..25cbea307a5e 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -107,6 +107,21 @@ static const struct silead_ts_dmi_data pov_mobii_wintab_p800w_data = {
 	.properties	= pov_mobii_wintab_p800w_props,
 };
 
+static const struct property_entry pipo_w2s_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1660),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 880),
+	PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
+	PROPERTY_ENTRY_STRING("firmware-name",
+			      "gsl1680-pipo-w2s.fw"),
+	{ }
+};
+
+static const struct silead_ts_dmi_data pipo_w2s_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= pipo_w2s_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -164,6 +179,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_BIOS_DATE, "08/22/2014"),
 		},
 	},
+	{
+		/* Pipo W2S */
+		.driver_data = (void *)&pipo_w2s_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "PIPO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "W2S"),
+		},
+	},
 	{ },
 };
 
-- 
2.13.0

[toc] | [next] | [standalone]


#1666910 — Re: [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet

FromDarren Hart <dvhart@infradead.org>
Date2017-06-15 19:10 +0200
SubjectRe: [PATCH 2/2] platform/x86: silead_dmi: Add touchscreen info for Pipo W2S tablet
Message-ID<tSGro-5cj-21@gated-at.bofh.it>
In reply to#1666486
On Thu, Jun 15, 2017 at 08:48:32AM +0200, Hans de Goede wrote:
> Add touchscreen info for Pipo W2S tablet.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Queued to testing, thanks Hans!

-- 
Darren Hart
VMware Open Source Technology Center

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web