From: Hans de Goede <hdegoede@redhat.com>
To: Phoenix Chen <asbeltogf@gmail.com>
Cc: ilpo.jarvinen@linux.intel.com, linux-input@vger.kernel.org,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/platform/x86/touchscreen_dmi.c: Add touch config
Date: Fri, 26 Jan 2024 20:25:20 +0100 [thread overview]
Message-ID: <d2600cc6-332f-4a6b-9eb4-b84fa4aa033f@redhat.com> (raw)
In-Reply-To: <20240126095308.5042-1-asbeltogf@gmail.com>
Hi,
On 1/26/24 10:53, Phoenix Chen wrote:
> Added touch screen info for TECLAST X16 Plus tablet.
>
> Signed-off-by: Phoenix Chen <asbeltogf@gmail.com>
Thank you for your patch/series, I've applied this patch
(series) to my review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
And thank you for also adding the embedded_fw data so that is
will work out of the box for end users.
I will include this patch in my next fixes pull-req to Linus
for the current kernel development cycle.
Regards,
Hans
> ---
> drivers/platform/x86/touchscreen_dmi.c | 35 ++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
> index 0c6733772698..7aee5e9ff2b8 100644
> --- a/drivers/platform/x86/touchscreen_dmi.c
> +++ b/drivers/platform/x86/touchscreen_dmi.c
> @@ -944,6 +944,32 @@ static const struct ts_dmi_data teclast_tbook11_data = {
> .properties = teclast_tbook11_props,
> };
>
> +static const struct property_entry teclast_x16_plus_props[] = {
> + PROPERTY_ENTRY_U32("touchscreen-min-x", 8),
> + PROPERTY_ENTRY_U32("touchscreen-min-y", 14),
> + PROPERTY_ENTRY_U32("touchscreen-size-x", 1916),
> + PROPERTY_ENTRY_U32("touchscreen-size-y", 1264),
> + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
> + PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-teclast-x16-plus.fw"),
> + PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> + PROPERTY_ENTRY_BOOL("silead,home-button"),
> + { }
> +};
> +
> +static const struct ts_dmi_data teclast_x16_plus_data = {
> + .embedded_fw = {
> + .name = "silead/gsl3692-teclast-x16-plus.fw",
> + .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 },
> + .length = 43560,
> + .sha256 = { 0x9d, 0xb0, 0x3d, 0xf1, 0x00, 0x3c, 0xb5, 0x25,
> + 0x62, 0x8a, 0xa0, 0x93, 0x4b, 0xe0, 0x4e, 0x75,
> + 0xd1, 0x27, 0xb1, 0x65, 0x3c, 0xba, 0xa5, 0x0f,
> + 0xcd, 0xb4, 0xbe, 0x00, 0xbb, 0xf6, 0x43, 0x29 },
> + },
> + .acpi_name = "MSSL1680:00",
> + .properties = teclast_x16_plus_props,
> +};
> +
> static const struct property_entry teclast_x3_plus_props[] = {
> PROPERTY_ENTRY_U32("touchscreen-size-x", 1980),
> PROPERTY_ENTRY_U32("touchscreen-size-y", 1500),
> @@ -1612,6 +1638,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_SKU, "E5A6_A1"),
> },
> },
> + {
> + /* Teclast X16 Plus */
> + .driver_data = (void *)&teclast_x16_plus_data,
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
> + DMI_MATCH(DMI_PRODUCT_SKU, "D3A5_A1"),
> + },
> + },
> {
> /* Teclast X3 Plus */
> .driver_data = (void *)&teclast_x3_plus_data,
prev parent reply other threads:[~2024-01-26 19:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-26 9:53 [PATCH] drivers/platform/x86/touchscreen_dmi.c: Add touch config Phoenix Chen
2024-01-26 19:25 ` Hans de Goede [this message]
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=d2600cc6-332f-4a6b-9eb4-b84fa4aa033f@redhat.com \
--to=hdegoede@redhat.com \
--cc=asbeltogf@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.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;
as well as URLs for NNTP newsgroup(s).