Skip to content

Commit c11619a

Browse files
Ckathjwrdegoede
authored andcommitted
platform/x86: touchscreen_dmi: add nanote-next quirk
Add touschscreen info for the nanote next (UMPC-03-SR). After checking with multiple owners the DMI info really is this generic. Signed-off-by: Ckath <ckath@yandex.ru> Link: https://lore.kernel.org/r/e8dda83a-10ae-42cf-a061-5d29be0d193a@yandex.ru Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 8e8895c commit c11619a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,21 @@ static const struct ts_dmi_data rwc_nanote_p8_data = {
840840
.properties = rwc_nanote_p8_props,
841841
};
842842

843+
static const struct property_entry rwc_nanote_next_props[] = {
844+
PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
845+
PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
846+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1785),
847+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1145),
848+
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
849+
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-next.fw"),
850+
{ }
851+
};
852+
853+
static const struct ts_dmi_data rwc_nanote_next_data = {
854+
.acpi_name = "MSSL1680:00",
855+
.properties = rwc_nanote_next_props,
856+
};
857+
843858
static const struct property_entry schneider_sct101ctm_props[] = {
844859
PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
845860
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
@@ -1589,6 +1604,17 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
15891604
DMI_MATCH(DMI_PRODUCT_SKU, "0001")
15901605
},
15911606
},
1607+
{
1608+
/* RWC NANOTE NEXT */
1609+
.driver_data = (void *)&rwc_nanote_next_data,
1610+
.matches = {
1611+
DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1612+
DMI_MATCH(DMI_BOARD_NAME, "To be filled by O.E.M."),
1613+
DMI_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
1614+
/* Above matches are too generic, add bios-version match */
1615+
DMI_MATCH(DMI_BIOS_VERSION, "S8A70R100-V005"),
1616+
},
1617+
},
15921618
{
15931619
/* Schneider SCT101CTM */
15941620
.driver_data = (void *)&schneider_sct101ctm_data,

0 commit comments

Comments
 (0)