All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: touchscreen_dmi: Add info for the Nuvision NES11 tablet
@ 2020-02-11  7:52 James Buren
  0 siblings, 0 replies; only message in thread
From: James Buren @ 2020-02-11  7:52 UTC (permalink / raw)
  To: linux-input; +Cc: James Buren

Add touchscreen info for the Nuvision NES11 tablet.

Signed-off-by: James Buren <braewoods+lkml@braewoods.net>
---
 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 93177e6e5ecd..33f91eb3c61f 100644
--- a/drivers/platform/x86/touchscreen_dmi.c
+++ b/drivers/platform/x86/touchscreen_dmi.c
@@ -357,6 +357,22 @@ static const struct ts_dmi_data myria_my8307_data = {
 	.properties	= myria_my8307_props,
 };
 
+static const struct property_entry nuvision_nes11_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-min-x", 39),
+	PROPERTY_ENTRY_U32("touchscreen-min-y", 31),
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1949),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1508),
+	PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-nuvision-nes11.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	{ }
+};
+
+static const struct ts_dmi_data nuvision_nes11_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= nuvision_nes11_props,
+};
+
 static const struct property_entry onda_obook_20_plus_props[] = {
 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1728),
 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1148),
@@ -856,6 +872,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "MY8307"),
 		},
 	},
+	{
+		/* Nuvision NES11 */
+		.driver_data = (void *)&nuvision_nes11_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Nuvision"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "NES11"),
+		},
+	},
 	{
 		/* Onda oBook 20 Plus */
 		.driver_data = (void *)&onda_obook_20_plus_data,
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-11  8:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11  7:52 [PATCH] platform/x86: touchscreen_dmi: Add info for the Nuvision NES11 tablet James Buren

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.