All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701
@ 2017-05-07 12:35 Hans de Goede
  2017-05-08 15:40 ` Darren Hart
  2017-05-08 15:41 ` Darren Hart
  0 siblings, 2 replies; 4+ messages in thread
From: Hans de Goede @ 2017-05-07 12:35 UTC (permalink / raw)
  To: Darren Hart; +Cc: Hans de Goede, platform-driver-x86

Add touchscreen info for the GP-electronic T701 tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/platform/x86/silead_dmi.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
index a3a57d93cf06..db3a877d2160 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -80,6 +80,19 @@ static const struct silead_ts_dmi_data surftab_wintron70_st70416_6_data = {
 	.properties	= surftab_wintron70_st70416_6_props,
 };
 
+static const struct property_entry gp_electronic_t701_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
+	PROPERTY_ENTRY_STRING("firmware-name",
+			      "gsl1680-gp-electronic-t701.fw"),
+	{ }
+};
+
+static const struct silead_ts_dmi_data gp_electronic_t701_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= gp_electronic_t701_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -117,6 +130,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
 		},
 	},
+	{
+		/* GP-electronic T701 */
+		.driver_data = (void *)&gp_electronic_t701_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
+			DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
+		},
+	},
 	{ },
 };
 
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701
  2017-05-07 12:35 [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701 Hans de Goede
@ 2017-05-08 15:40 ` Darren Hart
  2017-05-08 19:49   ` Hans de Goede
  2017-05-08 15:41 ` Darren Hart
  1 sibling, 1 reply; 4+ messages in thread
From: Darren Hart @ 2017-05-08 15:40 UTC (permalink / raw)
  To: Hans de Goede; +Cc: platform-driver-x86

On Sun, May 07, 2017 at 02:35:15PM +0200, Hans de Goede wrote:
> Add touchscreen info for the GP-electronic T701 tablet.
> 

Ugh, this is exactly the kind of thing ACPI _DSD was intended to solve. Not a
lot we can do about the vendors not including the info in the DSDT of course,
but...  ugh.

I'm curious, are the vendors involved in driving these patches? If so, have you
asked them if they are aware of _DSD and if they would consider using it so they
can avoid having to patch the driver for every instance of a product using this
touchscreen?

> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Queued to testing, thanks Hans.

-- 
Darren Hart
VMware Open Source Technology Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701
  2017-05-07 12:35 [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701 Hans de Goede
  2017-05-08 15:40 ` Darren Hart
@ 2017-05-08 15:41 ` Darren Hart
  1 sibling, 0 replies; 4+ messages in thread
From: Darren Hart @ 2017-05-08 15:41 UTC (permalink / raw)
  To: Hans de Goede; +Cc: platform-driver-x86

Just noticed LKML not Cc'd. Please Cc LKML on all patches to the Linux kernel.

On Sun, May 07, 2017 at 02:35:15PM +0200, Hans de Goede wrote:
> Add touchscreen info for the GP-electronic T701 tablet.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/platform/x86/silead_dmi.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
> index a3a57d93cf06..db3a877d2160 100644
> --- a/drivers/platform/x86/silead_dmi.c
> +++ b/drivers/platform/x86/silead_dmi.c
> @@ -80,6 +80,19 @@ static const struct silead_ts_dmi_data surftab_wintron70_st70416_6_data = {
>  	.properties	= surftab_wintron70_st70416_6_props,
>  };
>  
> +static const struct property_entry gp_electronic_t701_props[] = {
> +	PROPERTY_ENTRY_U32("touchscreen-size-x", 960),
> +	PROPERTY_ENTRY_U32("touchscreen-size-y", 640),
> +	PROPERTY_ENTRY_STRING("firmware-name",
> +			      "gsl1680-gp-electronic-t701.fw"),
> +	{ }
> +};
> +
> +static const struct silead_ts_dmi_data gp_electronic_t701_data = {
> +	.acpi_name	= "MSSL1680:00",
> +	.properties	= gp_electronic_t701_props,
> +};
> +
>  static const struct dmi_system_id silead_ts_dmi_table[] = {
>  	{
>  		/* CUBE iwork8 Air */
> @@ -117,6 +130,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
>  			DMI_MATCH(DMI_BIOS_VERSION, "TREK.G.WI71C.JGBMRBA04"),
>  		},
>  	},
> +	{
> +		/* GP-electronic T701 */
> +		.driver_data = (void *)&gp_electronic_t701_data,
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "T701"),
> +			DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"),
> +		},
> +	},
>  	{ },
>  };
>  
> -- 
> 2.12.2
> 
> 

-- 
Darren Hart
VMware Open Source Technology Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701
  2017-05-08 15:40 ` Darren Hart
@ 2017-05-08 19:49   ` Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2017-05-08 19:49 UTC (permalink / raw)
  To: Darren Hart; +Cc: platform-driver-x86

Hi,

On 08-05-17 17:40, Darren Hart wrote:
> On Sun, May 07, 2017 at 02:35:15PM +0200, Hans de Goede wrote:
>> Add touchscreen info for the GP-electronic T701 tablet.
>>
> 
> Ugh, this is exactly the kind of thing ACPI _DSD was intended to solve. Not a
> lot we can do about the vendors not including the info in the DSDT of course,
> but...  ugh.
> 
> I'm curious, are the vendors involved in driving these patches?

Nope this is just a spare-time project of mine helping people who
want to run mainline Linux on various Bay Trail and Cherry Trail devices.

Regards,

Hans

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-08 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-07 12:35 [PATCH] platform/x86: silead_dmi: Add touchscreen info for GP-electronic T701 Hans de Goede
2017-05-08 15:40 ` Darren Hart
2017-05-08 19:49   ` Hans de Goede
2017-05-08 15:41 ` Darren Hart

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.