Skip to contentSkip to conversation

platform: x86: silead_dmi: Add entry for Insyde 7W tablets

PATCH In review Hans de Goede 2 participants 2 messages Mar 20, 2017 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform: x86: silead_dmi: Add entry for Insyde 7W tablets

Add an entry providing the necessary info to make the touchscreen work on various tablets based on the Insyde 7W whitebox tablet.

This has been tested on a DEXP Ursus 7W tablet.

---
 drivers/platform/x86/silead_dmi.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
drivers/platform/x86/silead_dmi.c +21 -0
index 02e11fd..a4399e7 100644
@@ -53,6 +53,19 @@ static const struct silead_ts_dmi_data jumper_ezpad_mini3_data = {
 	.properties	= jumper_ezpad_mini3_props,
 };
 
+static struct property_entry dexp_ursus_7w_props[] = {
+	PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
+	PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
+	PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
+	PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+	{ }
+};
+
+static const struct silead_ts_dmi_data dexp_ursus_7w_data = {
+	.acpi_name	= "MSSL1680:00",
+	.properties	= dexp_ursus_7w_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
 	{
 		/* CUBE iwork8 Air */
@@ -72,6 +85,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
 			DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
 		},
 	},
+	{
+		/* DEXP Ursus 7W */
+		.driver_data = (void *)&dexp_ursus_7w_data,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
+		},
+	},
 	{ },
 };
 
Signature · 1 line
2.9.3
#1 lore raw
Quoted 6 lines · Hans de Goede

Add an entry providing the necessary info to make the touchscreen work on various tablets based on the Insyde 7W whitebox tablet.

This has been tested on a DEXP Ursus 7W tablet.

One minor below. Otherwise looks good to me (Darren or me will take care of pushing this later on),

drivers/platform/x86/silead_dmi.c static const struct silead_ts_dmi_data jumper_ezpad_mini3_data = { · line 56

Quoted 13 lines
---
 drivers/platform/x86/silead_dmi.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
drivers/platform/x86/silead_dmi.c +1 -0
index 02e11fd..a4399e7 100644
@@ -53,6 +53,19 @@ static const struct silead_ts_dmi_data jumper_ezpad_mini3_data = {
        .properties     = jumper_ezpad_mini3_props,
 };
 
+static struct property_entry dexp_ursus_7w_props[] = {

const ?

Quoted 29 lines
drivers/platform/x86/silead_dmi.c +20 -0
+       PROPERTY_ENTRY_U32("touchscreen-size-x", 890),
+       PROPERTY_ENTRY_U32("touchscreen-size-y", 630),
+       PROPERTY_ENTRY_STRING("firmware-name", "gsl1686-dexp-ursus-7w.fw"),
+       PROPERTY_ENTRY_U32("silead,max-fingers", 10),
+       { }
+};
+
+static const struct silead_ts_dmi_data dexp_ursus_7w_data = {
+       .acpi_name      = "MSSL1680:00",
+       .properties     = dexp_ursus_7w_props,
+};
+
 static const struct dmi_system_id silead_ts_dmi_table[] = {
        {
                /* CUBE iwork8 Air */
@@ -72,6 +85,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = {
                        DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"),
                },
        },
+       {
+               /* DEXP Ursus 7W */
+               .driver_data = (void *)&dexp_ursus_7w_data,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Insyde"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "7W"),
+               },
+       },
        { },
 };
Signature · 2 lines
With Best Regards,
Andy Shevchenko