mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Stamp <stamp497@googlemail.com>
To: hdegoede@redhat.com
Cc: linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: touchscreen_dmi.c Patch for Viglen Connect 10
Date: Wed, 27 Oct 2021 03:11:53 +0100	[thread overview]
Message-ID: <67f9a3603a52aeb8fd1463fd5786ed544e79ed05.camel@googlemail.com> (raw)

Hello. 

I previously spoke with you on a touchscreen issue

https://github.com/onitake/gsl-firmware/issues/178

With regard to that, I made a patch for touchscreen_dmi.c. It adds
parameters for the Viglen Connect 10 tablet to get its touchscreen and
home button working.

Signed-off-by: Mark Stamp <stamp497@googlemail.com>

--- touchscreen_dmi.c.orig	2021-10-27 01:26:47.842668712 +0100
+++ touchscreen_dmi.c	2021-10-27 01:27:06.426298127 +0100
@@ -938,6 +938,26 @@ static const struct ts_dmi_data trekstor
 	.properties	= trekstor_surftab_wintron70_props,
 };
 
+static const struct property_entry viglen_connect_10_props[] = {
+	//PROPERTY_ENTRY_U32("touchscreen-min-x", 20),
+	PROPERTY_ENTRY_U32("touchscreen-min-x", 0),
+	PROPERTY_ENTRY_U32("touchscreen-min-y", 0),
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1890),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
+	PROPERTY_ENTRY_U32("touchscrken-fuzz-x", 8),
+	PROPERTY_ENTRY_U32("touchscreen-fuzz-y", 6),
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-viglen-
connect-10.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	PROPERTY_ENTRY_BOOL("silead,home-button"),
+	{ }
+};
+
+static const struct ts_dmi_data viglen_connect_10_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= viglen_connect_10_props,
+};
+
 static const struct property_entry vinga_twizzle_j116_props[] = {
 	PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
 	PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
@@ -1522,6 +1542,14 @@ const struct dmi_system_id touchscreen_d
 		},
 	},
 	{
+		/* Viglen Connect 10 */
+		.driver_data = (void *)&viglen_connect_10_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Viglen Ltd."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Connect 10''
Tablet PC"),
+		},
+	},
+	{
 		/* Vinga Twizzle J116 */
 		.driver_data = (void *)&vinga_twizzle_j116_data,
 		.matches = {



             reply	other threads:[~2021-10-27  2:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27  2:11 Mark Stamp [this message]
2021-10-27 14:13 ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67f9a3603a52aeb8fd1463fd5786ed544e79ed05.camel@googlemail.com \
    --to=stamp497@googlemail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®