linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add touchscreen platform data for the Teclast X3 Plus tablet.
@ 2018-01-23 11:18 Alberto Ponces
  2018-01-23 14:50 ` Hans de Goede
  2018-01-23 18:33 ` [PATCH v2] platform/x86: silead_dmi: " Alberto Ponces
  0 siblings, 2 replies; 8+ messages in thread
From: Alberto Ponces @ 2018-01-23 11:18 UTC (permalink / raw)
  To: linux-input
  Cc: ponces26, Hans de Goede, Darren Hart, Andy Shevchenko,
	platform-driver-x86, linux-kernel

Add touchscreen platform data for the Teclast X3 Plus tablet.

Signed-off-by: Alberto Ponces <ponces26@gmail.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 266535c..d4c1190 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -171,6 +171,20 @@ static const struct silead_ts_dmi_data digma_citi_e200_data = {
 	.properties	= digma_citi_e200_props,
 };
 
+static const struct property_entry teclast_x3_plus_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	PROPERTY_ENTRY_BOOL("silead,home-button"),
+	{ }
+};
+
+static const struct silead_ts_dmi_data teclast_x3_plus_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= teclast_x3_plus_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -271,6 +285,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
 		},
 	},
+	{
+		/* Teclast X3 Plus */
+		.driver_data = (void *)&teclast_x3_plus_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"),
+			DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"),
+		},
+	},
 	{ },
 };
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-24  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 11:18 [PATCH] Add touchscreen platform data for the Teclast X3 Plus tablet Alberto Ponces
2018-01-23 14:50 ` Hans de Goede
2018-01-23 18:33 ` [PATCH v2] platform/x86: silead_dmi: " Alberto Ponces
2018-01-23 23:27   ` Darren Hart
2018-01-24  0:37     ` Dmitry Torokhov
2018-01-24  1:02       ` Darren Hart
2018-01-24  1:18         ` Dmitry Torokhov
2018-01-24  9:51           ` Alberto Ponces

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).