Re: [PATCH v3] platform/x86: touchscreen_dmi: add Vinga J116 touchscreen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 5, 2020 at 3:16 PM Andrew Dunai <a@xxxxxx> wrote:
>
> Add support for Vinga Twizzle J116 Silead touchscreen which uses GSL1680 chip.
>

Thank you very much!
Hans, are you okay with this?

> Signed-off-by: Andrew Dunai <a@xxxxxx>
> ---
>  drivers/platform/x86/touchscreen_dmi.c | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>
> diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c
> index 93177e6e5..a3ab19ab0 100644
> --- a/drivers/platform/x86/touchscreen_dmi.c
> +++ b/drivers/platform/x86/touchscreen_dmi.c
> @@ -640,6 +640,20 @@ static const struct ts_dmi_data trekstor_surftab_wintron70_data = {
>         .properties     = trekstor_surftab_wintron70_props,
>  };
>
> +static const struct property_entry vinga_twizzle_j116_props[] = {
> +       PROPERTY_ENTRY_U32("touchscreen-size-x", 1920),
> +       PROPERTY_ENTRY_U32("touchscreen-size-y", 1280),
> +       PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-vinga-twizzle_j116.fw"),
> +       PROPERTY_ENTRY_U32("silead,max-fingers", 10),
> +       PROPERTY_ENTRY_BOOL("silead,home-button"),
> +       { }
> +};
> +
> +static const struct ts_dmi_data vinga_twizzle_j116_data = {
> +       .acpi_name      = "MSSL1680:00",
> +       .properties     = vinga_twizzle_j116_props,
> +};
> +
>  /* NOTE: Please keep this table sorted alphabetically */
>  static const struct dmi_system_id touchscreen_dmi_table[] = {
>         {
> @@ -1054,6 +1068,13 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
>                         DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"),
>                 },
>         },
> +       {
> +               /* Vinga Twizzle J116 */
> +               .driver_data = (void *)&vinga_twizzle_j116_data,
> +               .matches = {
> +                       DMI_MATCH(DMI_PRODUCT_NAME, "VINGA Twizzle J116"),
> +               },
> +       },
>         { },
>  };
>
> --
> 2.26.2
>
>


-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux