Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 64f38c0

Browse files
Ckathgregkh
authored andcommitted
platform/x86: touchscreen_dmi: add nanote-next quirk
[ Upstream commit c11619a ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 651ba62 commit 64f38c0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

drivers/platform/x86/touchscreen_dmi.c

+26
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,21 @@ static const struct ts_dmi_data rwc_nanote_p8_data = {
885885
.properties = rwc_nanote_p8_props,
886886
};
887887

888+
static const struct property_entry rwc_nanote_next_props[] = {
889+
PROPERTY_ENTRY_U32("touchscreen-min-x", 5),
890+
PROPERTY_ENTRY_U32("touchscreen-min-y", 5),
891+
PROPERTY_ENTRY_U32("touchscreen-size-x", 1785),
892+
PROPERTY_ENTRY_U32("touchscreen-size-y", 1145),
893+
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
894+
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-rwc-nanote-next.fw"),
895+
{ }
896+
};
897+
898+
static const struct ts_dmi_data rwc_nanote_next_data = {
899+
.acpi_name = "MSSL1680:00",
900+
.properties = rwc_nanote_next_props,
901+
};
902+
888903
static const struct property_entry schneider_sct101ctm_props[] = {
889904
PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
890905
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
@@ -1648,6 +1663,17 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
16481663
DMI_MATCH(DMI_PRODUCT_SKU, "0001")
16491664
},
16501665
},
1666+
{
1667+
/* RWC NANOTE NEXT */
1668+
.driver_data = (void *)&rwc_nanote_next_data,
1669+
.matches = {
1670+
DMI_MATCH(DMI_PRODUCT_NAME, "To be filled by O.E.M."),
1671+
DMI_MATCH(DMI_BOARD_NAME, "To be filled by O.E.M."),
1672+
DMI_MATCH(DMI_BOARD_VENDOR, "To be filled by O.E.M."),
1673+
/* Above matches are too generic, add bios-version match */
1674+
DMI_MATCH(DMI_BIOS_VERSION, "S8A70R100-V005"),
1675+
},
1676+
},
16511677
{
16521678
/* Schneider SCT101CTM */
16531679
.driver_data = (void *)&schneider_sct101ctm_data,

0 commit comments

Comments
 (0)