Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3030784pxu; Mon, 14 Dec 2020 18:32:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyp8BgZE7eA9e3mQDAfKddhWbmeo2D8YU/5xESMI+BSUp/+3CaymYpZ7OQqgEAul7EDAin X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr27202080edb.191.1607999569885; Mon, 14 Dec 2020 18:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607999569; cv=none; d=google.com; s=arc-20160816; b=G2ifVndQTlX9nyKrDJsthzTbGy5Ju1vffUriwAlFeYB6MjmL3fsjF60BgUYMRGB0gu y+yY+TWzk1gb5fLyvs0orv936DUZ9yYNyHsuaK+eX/Hp1u7kjNfdviPYZLMXutIgXiE7 oSA2wn17iYkm4HaoRO6m81yLSC7C3dx7jWYzSo0zmPRY/7AmHRr71Kv1/IBI1AQ0LRnV +IPH3wk8aGci0TOrXdvEu2744e2Scf2l3n/KxEqlJscO3j4FBqe1tWIrRbcj5ml9NENz LYlJ/QlZz0nJr7P8JZQzXJXAMWP4w9azFQzcpfj72WbD+/WG/Yz9UzZn2eNarLnGI1gK rReQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=rlJesvO02XRib3evTvRGmopwbf3p0rOlLaDIIlFCX9c=; b=0948vqV9tuGNeHlFIfGdyTEz5ri4jqR0HI8rOhUYf4OSYFjU+eBXX1/miAXgvZmB5I ZPK1LwSUL3loH/hlxREJrr5P5SheYphVashVE+JY0zQxP1aX6XCA5jsse9ILltZdwopg CY3z3diPo2dTph4WWiVjlUn4egZSMA5aApQ0xt9Yl08Pbdg1zGUZkIzn0bArJlnmwnCy HaL+Pe5XLEVppTCPtgdMBiU9KeR59gwud3B8KWkhdp2sMzh2mKzlyFKftrYJjkvPxo3q QvWEccDw3ZWff4HTUoL4wQHpox5qP5Jmqkkm3qMsCcUoK2iFX2++FPEq02EBSZGuQL6d I84g== 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si176559ejz.630.2020.12.14.18.32.27; Mon, 14 Dec 2020 18:32:49 -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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502042AbgLNT2I (ORCPT + 99 others); Mon, 14 Dec 2020 14:28:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:47320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408289AbgLNRgz (ORCPT ); Mon, 14 Dec 2020 12:36:55 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Sasha Levin , russianneuromancer Subject: [PATCH 5.4 21/36] platform/x86: touchscreen_dmi: Add info for the Irbis TW118 tablet Date: Mon, 14 Dec 2020 18:28:05 +0100 Message-Id: <20201214172544.344106850@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172543.302523401@linuxfoundation.org> References: <20201214172543.302523401@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit c9aa128080cbce92f8715a9328f88d8ca3134279 ] Add touchscreen info for the Irbis TW118 tablet. Reported-and-tested-by: russianneuromancer Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20201124110454.114286-1-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/platform/x86/touchscreen_dmi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 1c7d8324ff5c2..1e072dbba30d6 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -264,6 +264,21 @@ static const struct ts_dmi_data irbis_tw90_data = { .properties = irbis_tw90_props, }; +static const struct property_entry irbis_tw118_props[] = { + PROPERTY_ENTRY_U32("touchscreen-min-x", 20), + PROPERTY_ENTRY_U32("touchscreen-min-y", 30), + PROPERTY_ENTRY_U32("touchscreen-size-x", 1960), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1510), + PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-irbis-tw118.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + { } +}; + +static const struct ts_dmi_data irbis_tw118_data = { + .acpi_name = "MSSL1680:00", + .properties = irbis_tw118_props, +}; + static const struct property_entry itworks_tw891_props[] = { PROPERTY_ENTRY_U32("touchscreen-min-x", 1), PROPERTY_ENTRY_U32("touchscreen-min-y", 5), @@ -758,6 +773,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "TW90"), }, }, + { + /* Irbis TW118 */ + .driver_data = (void *)&irbis_tw118_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "IRBIS"), + DMI_MATCH(DMI_PRODUCT_NAME, "TW118"), + }, + }, { /* I.T.Works TW891 */ .driver_data = (void *)&itworks_tw891_data, -- 2.27.0