Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp492193pxu; Thu, 3 Dec 2020 05:41:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy3deMiOEU+jAZLLah/gCBPcfw4LZcHA/9g1WOxy2HXEjByUg1Fra5AibIz0PfhQz1tbm6 X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr2512372ejk.187.1607002893097; Thu, 03 Dec 2020 05:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002893; cv=none; d=google.com; s=arc-20160816; b=xWKid8f4ejSnckd+HGorVHUaxhfxKmhBCgfRig0+maklvVvyNcQqbnNrfokJ5pODJ+ STQHF9QjLyIZpv57mEWNH2FNF0Hc7DklJeHcbDteBS+VeGfVQdbUe0LAMcvmxb5lR+SH nfqKeG/szpHbWeQYz/EJbCZ/KWqaOkeu5qqeF4exJjGQj0ye7gOwE84GW2s4UNeBNxjW RAZANtwXZXswUcmizGUfj7tgsZQLhFS2r8tPHOy004uomULop0CXmQ3eF9JAwxce5nnM Xt08DbnfiKv2rPZcNJpP2Uyr/Mj/NjeChbUmGKKfT0uoOkVsVxYdf9c3Tj6XHkaPc6R9 /DSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5ZpU5+9n6XjSmuD02n58B3JPk4BMgELxt15/VOyjrqg=; b=jS6ElsKbUi2xZaja+ah9D+P3bO0+b3Tg1mK+XfZ4hL20o8ys4eI7xAyJKZep6Y3WwE dilpIDPHWaJngI7HgNvs0kXnPjH8J5uYt61iFFDmW5JKhlCEVpqoKkRqUZngJYj1O457 AtIV7eQkoUoM3KoRGp4yXIgu1ybvlayL3Rm0wpXHkfrUSqorwYCqG/hC+j3WKeybP+qK pkEEOu4oeWTWSP39BBKLTJyTQTdYYpJhEZ8tViaQe4Gm3Nio2K8dPKQNttXASFET8QU1 laGkiATX50Epg0IETrmn5G3XMLj625Ip1Wn40Nzm1+kcAn+UcPBkbL6qiSEYt1To1tUD BGvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si1098873ejz.414.2020.12.03.05.41.04; Thu, 03 Dec 2020 05:41:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436858AbgLCNhC (ORCPT + 99 others); Thu, 3 Dec 2020 08:37:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:47782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436609AbgLCNaa (ORCPT ); Thu, 3 Dec 2020 08:30:30 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , Andy Shevchenko , Sasha Levin , linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 36/39] platform/x86: touchscreen_dmi: Add info for the Predia Basic tablet Date: Thu, 3 Dec 2020 08:28:30 -0500 Message-Id: <20201203132834.930999-36-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201203132834.930999-1-sashal@kernel.org> References: <20201203132834.930999-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 0f511edc6ac12f1ccf1c6c2d4412f5ed7ba426a6 ] Add touchscreen info for the Predia Basic tablet. Signed-off-by: Hans de Goede Acked-by: Andy Shevchenko Link: https://lore.kernel.org/r/20201015194949.50566-1-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/platform/x86/touchscreen_dmi.c | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index dda60f89c9512..26cbf7cc8129c 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -623,6 +623,23 @@ static const struct ts_dmi_data pov_mobii_wintab_p1006w_v10_data = { .properties = pov_mobii_wintab_p1006w_v10_props, }; +static const struct property_entry predia_basic_props[] = { + PROPERTY_ENTRY_U32("touchscreen-min-x", 3), + PROPERTY_ENTRY_U32("touchscreen-min-y", 10), + PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1144), + PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), + PROPERTY_ENTRY_STRING("firmware-name", "gsl3680-predia-basic.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct ts_dmi_data predia_basic_data = { + .acpi_name = "MSSL1680:00", + .properties = predia_basic_props, +}; + static const struct property_entry schneider_sct101ctm_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 1715), PROPERTY_ENTRY_U32("touchscreen-size-y", 1140), @@ -1109,6 +1126,16 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BIOS_DATE, "10/24/2014"), }, }, + { + /* Predia Basic tablet) */ + .driver_data = (void *)&predia_basic_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), + DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), + /* Above matches are too generic, add bios-version match */ + DMI_MATCH(DMI_BIOS_VERSION, "Mx.WT107.KUBNGEA"), + }, + }, { /* Point of View mobii wintab p800w (v2.1) */ .driver_data = (void *)&pov_mobii_wintab_p800w_v21_data, -- 2.27.0