Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp492148pxu; Thu, 3 Dec 2020 05:41:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFHmZysZuuNC5lL0HXCfy6q+XGRkTbRmWfTVughoaHr8+gDboWHrtHd1vhSUamA5hMCX6g X-Received: by 2002:a17:906:174f:: with SMTP id d15mr2537762eje.15.1607002888180; Thu, 03 Dec 2020 05:41:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607002888; cv=none; d=google.com; s=arc-20160816; b=kHsm6/qgzce21buF21VUWRRX0CUhJYEBY7an+142YuDTbbd+TfcY+lP7YwBZASY5Hf OQIEmgaVrKrtvBh2+MjsmvX2qDlQh3nx9rdI7w0HPQqz8SY6NUSG3n0hVn9u2xsC52XC 3TvSr+19xOCliaq4lnQDzQBOl5FrUczG+GKcIo5jlU5/NSSs1/rtAaSP76xAm93XWwQE UoFPyfL2WeJkN2RYUbS5UNKCNRSOcCQi6APyEvqRyfMFQ1afObioAkwJGw1wUcQSn4Xt IJ1Chazm3R3s1cWkTp6Yd69iwpuapwzo9hTK0gw3286qo0bgZJXoTKMbBc3Ng/drVvkp 2hlQ== 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=0zpRbkMmu7/IFvUQCzZu4DYVw/5dkFUvVifY8DxqUv0=; b=fbc9ls+jRCtpZLxriVr3H+Z1dFo9KDYO9tz7mtgeDb52ck9W+13Fi9OgfT0jFgcrua abKj/WJeyjzUzLEbT5qE85/UaK5mzyLunHZ+/U7hS6lh/29INBiN/HD+wkSjTXtDzTLj NZmQEDcywShHO45MIaidz7oPvsbOQDynAWzUOkSgkELX42xcOzzPl5z+toIP6YXmzcQC 24kezLxtE9WgHb+5alMQ3atBOj289Uh+Zs0LGPjQzxN7Z+ztkDusfy3NVXKgIDezsngs GStmp47GRmHqFrehVsF3AwslTL/hC2TLB54PKYzHbMfzREAUf0rr1K+kCxUO7BtAwsSL dg6w== 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 g15si1082898ejx.708.2020.12.03.05.41.03; Thu, 03 Dec 2020 05:41:28 -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 S2437102AbgLCNhD (ORCPT + 99 others); Thu, 3 Dec 2020 08:37:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:47780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436608AbgLCNa3 (ORCPT ); Thu, 3 Dec 2020 08:30:29 -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 , russianneuromancer , Sasha Levin , linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 37/39] platform/x86: touchscreen_dmi: Add info for the Irbis TW118 tablet Date: Thu, 3 Dec 2020 08:28:31 -0500 Message-Id: <20201203132834.930999-37-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 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 26cbf7cc8129c..5783139d0a119 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -295,6 +295,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), @@ -953,6 +968,14 @@ 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