Linux Input Archive on lore.kernel.org
 help / color / 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	[flat|nested] only message in thread

only message in thread, back to index

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

Linux Input Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-input/0 linux-input/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-input linux-input/ https://lore.kernel.org/linux-input \
		linux-input@vger.kernel.org
	public-inbox-index linux-input

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-input


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git