Skip to content

Commit 01b6b7e

Browse files
jwrdegoedeandy-shev
authored andcommitted
platform/x86: touchscreen_dmi: Add info for the Onda V80 Plus v3 tablet
Add touchscreen platform data for the Onda V80 Plus v3 tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 30394a8 commit 01b6b7e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,24 @@ static const struct ts_dmi_data onda_obook_20_plus_data = {
237237
.properties = onda_obook_20_plus_props,
238238
};
239239

240+
static const struct property_entry onda_v80_plus_v3_props[] = {
241+
PROPERTY_ENTRY_U32("touchscreen-min-x", 22),
242+
PROPERTY_ENTRY_U32("touchscreen-min-y", 15),
243+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1698),
244+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
245+
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
246+
PROPERTY_ENTRY_STRING("firmware-name",
247+
"gsl3676-onda-v80-plus-v3.fw"),
248+
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
249+
PROPERTY_ENTRY_BOOL("silead,home-button"),
250+
{ }
251+
};
252+
253+
static const struct ts_dmi_data onda_v80_plus_v3_data = {
254+
.acpi_name = "MSSL1680:00",
255+
.properties = onda_v80_plus_v3_props,
256+
};
257+
240258
static const struct property_entry onda_v820w_32g_props[] = {
241259
PROPERTY_ENTRY_U32("touchscreen-size-x", 1665),
242260
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
@@ -587,6 +605,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = {
587605
DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"),
588606
},
589607
},
608+
{
609+
/* ONDA V80 plus v3 (P80PSBG9V3A01501) */
610+
.driver_data = (void *)&onda_v80_plus_v3_data,
611+
.matches = {
612+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONDA"),
613+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V80 PLUS")
614+
},
615+
},
590616
{
591617
/* ONDA V820w DualOS */
592618
.driver_data = (void *)&onda_v820w_32g_data,

0 commit comments

Comments
 (0)