public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets
@ 2017-12-20 10:30 Hans de Goede
  2017-12-20 10:30 ` [PATCH 1/2] platform/x86: silead_dmi: add entry for Chuwi Hi8 tablet Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hans de Goede @ 2017-12-20 10:30 UTC (permalink / raw)
  To: Darren Hart, Andy Shevchenko
  Cc: Hans de Goede, platform-driver-x86, linux-kernel

Hi Andy, et al,

Here are 2 patches to add entries for 2 more Chuwi tablet models to
silead_dmi.c. Note that these are for 2 different tablets, even though
the entries look similar.

I've based this series on top of the review-andy branch for easy merging,
the first patch is not mine, but I've picked it up and used it as a base
for this series to avoid conflicts.

Regards,

Hans

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

* [PATCH 1/2] platform/x86: silead_dmi: add entry for Chuwi Hi8 tablet
  2017-12-20 10:30 [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Hans de Goede
@ 2017-12-20 10:30 ` Hans de Goede
  2017-12-20 10:30 ` [PATCH 2/2] platform/x86: silead_dmi: Add entry for the Chuwi Vi8 tablet Hans de Goede
  2017-12-20 21:47 ` [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Darren Hart
  2 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2017-12-20 10:30 UTC (permalink / raw)
  To: Darren Hart, Andy Shevchenko
  Cc: Hans de Goede, platform-driver-x86, linux-kernel, Maruyama Shohei

From: Maruyama Shohei <cheat.sc.linux@outlook.com>

This commit add entry for Chuwi Hi8 tablet.

Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com>
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 89bd924fb8dc..21fdce159877 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -203,6 +203,20 @@ static const struct silead_ts_dmi_data onda_obook_20_plus_data = {
 	.properties	= onda_obook_20_plus_props,
 };
 
+static const struct property_entry chuwi_hi8_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
+	PROPERTY_ENTRY_BOOL("silead,home-button"),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi8.fw"),
+	{ }
+};
+
+static const struct silead_ts_dmi_data chuwi_hi8_data = {
+	.acpi_name      = "MSSL0001:00",
+	.properties     = chuwi_hi8_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -319,6 +333,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
 		},
 	},
+	{
+		/* Chuwi Hi8 */
+		.driver_data = (void *)&chuwi_hi8_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "ilife"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
+		},
+	},
 	{ },
 };
 
-- 
2.14.3

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

* [PATCH 2/2] platform/x86: silead_dmi: Add entry for the Chuwi Vi8 tablet
  2017-12-20 10:30 [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Hans de Goede
  2017-12-20 10:30 ` [PATCH 1/2] platform/x86: silead_dmi: add entry for Chuwi Hi8 tablet Hans de Goede
@ 2017-12-20 10:30 ` Hans de Goede
  2017-12-20 21:47 ` [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Darren Hart
  2 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2017-12-20 10:30 UTC (permalink / raw)
  To: Darren Hart, Andy Shevchenko
  Cc: Hans de Goede, platform-driver-x86, linux-kernel

Add touchscreen platform data for the Chuwi Vi8 tablet.

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

diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c
index 21fdce159877..09b589fb79d4 100644
--- a/drivers/platform/x86/silead_dmi.c
+++ b/drivers/platform/x86/silead_dmi.c
@@ -217,6 +217,21 @@ static const struct silead_ts_dmi_data chuwi_hi8_data = {
 	.properties     = chuwi_hi8_props,
 };
 
+static const struct property_entry chuwi_vi8_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 1724),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
+	PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-chuwi-vi8.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	PROPERTY_ENTRY_BOOL("silead,home-button"),
+	{ }
+};
+
+static const struct silead_ts_dmi_data chuwi_vi8_data = {
+	.acpi_name      = "MSSL1680:00",
+	.properties     = chuwi_vi8_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -341,6 +356,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "S806"),
 		},
 	},
+	{
+		/* Chuwi Vi8 (CWI506) */
+		.driver_data = (void *)&chuwi_vi8_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "i86"),
+			DMI_MATCH(DMI_BIOS_VERSION, "CHUWI.D86JLBNR"),
+		},
+	},
 	{ },
 };
 
-- 
2.14.3

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

* Re: [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets
  2017-12-20 10:30 [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Hans de Goede
  2017-12-20 10:30 ` [PATCH 1/2] platform/x86: silead_dmi: add entry for Chuwi Hi8 tablet Hans de Goede
  2017-12-20 10:30 ` [PATCH 2/2] platform/x86: silead_dmi: Add entry for the Chuwi Vi8 tablet Hans de Goede
@ 2017-12-20 21:47 ` Darren Hart
  2017-12-21 14:03   ` Andy Shevchenko
  2 siblings, 1 reply; 5+ messages in thread
From: Darren Hart @ 2017-12-20 21:47 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Andy Shevchenko, platform-driver-x86, linux-kernel

On Wed, Dec 20, 2017 at 11:30:07AM +0100, Hans de Goede wrote:
> Hi Andy, et al,
> 
> Here are 2 patches to add entries for 2 more Chuwi tablet models to
> silead_dmi.c. Note that these are for 2 different tablets, even though
> the entries look similar.
> 
> I've based this series on top of the review-andy branch for easy merging,

OK, will leave this to andy to pull in then.

-- 
Darren Hart
VMware Open Source Technology Center

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

* Re: [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets
  2017-12-20 21:47 ` [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Darren Hart
@ 2017-12-21 14:03   ` Andy Shevchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2017-12-21 14:03 UTC (permalink / raw)
  To: Darren Hart; +Cc: Hans de Goede, Andy Shevchenko, Platform Driver, linux-kernel

On Wed, Dec 20, 2017 at 11:47 PM, Darren Hart <dvhart@infradead.org> wrote:
> On Wed, Dec 20, 2017 at 11:30:07AM +0100, Hans de Goede wrote:
>> Hi Andy, et al,
>>
>> Here are 2 patches to add entries for 2 more Chuwi tablet models to
>> silead_dmi.c. Note that these are for 2 different tablets, even though
>> the entries look similar.
>>
>> I've based this series on top of the review-andy branch for easy merging,
>
> OK, will leave this to andy to pull in then.

Both applied to my review and testing queue, thanks!


-- 
With Best Regards,
Andy Shevchenko

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

end of thread, other threads:[~2017-12-21 14:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 10:30 [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Hans de Goede
2017-12-20 10:30 ` [PATCH 1/2] platform/x86: silead_dmi: add entry for Chuwi Hi8 tablet Hans de Goede
2017-12-20 10:30 ` [PATCH 2/2] platform/x86: silead_dmi: Add entry for the Chuwi Vi8 tablet Hans de Goede
2017-12-20 21:47 ` [PATCH 0/2] platform/x86: silead_dmi: Add entries for 2 Chuwi tablets Darren Hart
2017-12-21 14:03   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox