Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4037217rwj; Tue, 20 Dec 2022 05:24:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4A90/hAxogbHxKf/NIAvp2o3+2wLELsVW0OnWpYINI1qqnOx3icnPiC11xwGsEebwno/iu X-Received: by 2002:a17:902:d58f:b0:189:8141:e827 with SMTP id k15-20020a170902d58f00b001898141e827mr49116218plh.56.1671542695308; Tue, 20 Dec 2022 05:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671542695; cv=none; d=google.com; s=arc-20160816; b=UL38Gaf+T4meiABUxeqHbYoTlwQre5Uj5TORUdXVjqtUeQN4NlA0oUJS/GTrTWsdus fjjSh54wAUN8CfdA4lJYEojGUguf1P+6ad6WCSf1CC+lHlCO9js0MIAYohzy+3ayCNEy qtyvhc5EmiYxReTpYhMLQ/gBJBfU9DeRWn9EcQSFC6A/StuDVsVTICwxrxrs0g9UAgjv tebdoMF3ChSgM6mIAP/FaELrSfiRCIOB1mkT1eLcU6lqLUOhFsxBhsMO8h6WU287YfpC xr3msW5PmFBEOPae+HrSs2COLSPquVkzHY7Ft+e4wFC6dMwKU3rTQ2Sg66j/lWZer1lC ztmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=MeF+loUfLla3SLpOMCygh1/fpaH0ayyGK6IQfRkdgm4=; b=cczfGzdK3b7UprBdZ4V61LxMsEcNKQnZNS8UomuAm8qZoCd7+K2lybqCzxiiSyqt1L RG0/wwnkjs9Vs9S134cv0WHKx9vE0KLLMDbd3XiL6L8Ta+TAAgpuCjssJl2im9O6a8Jn qWPurf23Qr96D+wpdios5xX5xYN3PDTHdgQAK9cp5sH0tesdVnaTe8HaDKAgSlpsfmkt S9NTjdn8U6mSS8RZHPzGvB7IIS+YRLZT2uCgIxZE6GNjfJ4CbOD8RrjO3OJ5b2rc8lhO OcvW6J2NYg4Wg8p4uvMgdGw04sqiz+fhDf9xJ7cKMR1PA1bGxlQG+z0TwrTQgglRoclo 3q1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mvz-labor-lb.de header.s=mvz1903 header.b="I9UHBq/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mvz-labor-lb.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902daca00b00170f6f728d4si14747306plx.543.2022.12.20.05.24.45; Tue, 20 Dec 2022 05:24:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mvz-labor-lb.de header.s=mvz1903 header.b="I9UHBq/v"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mvz-labor-lb.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233346AbiLTMU6 (ORCPT + 70 others); Tue, 20 Dec 2022 07:20:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbiLTMUo (ORCPT ); Tue, 20 Dec 2022 07:20:44 -0500 X-Greylist: delayed 569 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 20 Dec 2022 04:20:37 PST Received: from mx.mvz-labor-lb.de (mx.mvz-labor-lb.de [IPv6:2a01:4f8:c2c:899::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA2D18B05; Tue, 20 Dec 2022 04:20:37 -0800 (PST) Received: from webmail.labor (p57803e15.dip0.t-ipconnect.de [87.128.62.21]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.mvz-labor-lb.de (Postfix) with ESMTPSA id 9D07B3E8A6; Tue, 20 Dec 2022 13:11:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvz-labor-lb.de; s=mvz1903; t=1671538265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=MeF+loUfLla3SLpOMCygh1/fpaH0ayyGK6IQfRkdgm4=; b=I9UHBq/v2G0mw3TRViJ+kz895YLKuZjmnzFJUn/XBYQ0QNWIbUWXcrXcFgris490OqDZAG iIPh91gJ+PPEwdQSjnW0Ypd7TCwp/E9B3zGsNc38lbu/Vk0+caJoPRHHkXi5xaww6OI37U Be7wQgA5/K4lnbMbpt6Xi/GzQ0kTI1I= Received: from localhost (localhost.localdomain [127.0.0.1]) by webmail.labor (Postfix) with ESMTP id 144A4300C002; Tue, 20 Dec 2022 13:11:05 +0100 (CET) X-Virus-Scanned: amavisd-new at mvz-labor-lb.de Received: from webmail.labor ([127.0.0.1]) by localhost (webmail.labor [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sidZv4dgWY0o; Tue, 20 Dec 2022 13:11:05 +0100 (CET) Received: from LLGMVZLB-0037 (LLGMVZLB-0037.mvz.labor [10.30.4.35]) by webmail.labor (Postfix) with ESMTPS id E7E30300C001; Tue, 20 Dec 2022 13:11:04 +0100 (CET) Date: Tue, 20 Dec 2022 13:11:03 +0100 From: Michael Klein To: Hans de Goede , Mark Gross , linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: touchscreen_dmi: Add info for the CSL Panther Tab HD Message-ID: <20221220121103.uiwn5l7fii2iggct@LLGMVZLB-0037> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add touchscreen info for the CSL Panther Tab HD. Signed-off-by: Michael Klein --- drivers/platform/x86/touchscreen_dmi.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index baae3120efd0..f00995390fdf 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -264,6 +264,23 @@ static const struct ts_dmi_data connect_tablet9_data = { .properties = connect_tablet9_props, }; +static const struct property_entry csl_panther_tab_hd_props[] = { + PROPERTY_ENTRY_U32("touchscreen-min-x", 1), + PROPERTY_ENTRY_U32("touchscreen-min-y", 20), + PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1526), + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), + PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), + PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-csl-panther-tab-hd.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + { } +}; + +static const struct ts_dmi_data csl_panther_tab_hd_data = { + .acpi_name = "MSSL1680:00", + .properties = csl_panther_tab_hd_props, +}; + static const struct property_entry cube_iwork8_air_props[] = { PROPERTY_ENTRY_U32("touchscreen-min-x", 1), PROPERTY_ENTRY_U32("touchscreen-min-y", 3), @@ -1124,6 +1141,14 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Tablet 9"), }, }, + { + /* CSL Panther Tab HD */ + .driver_data = (void *)&csl_panther_tab_hd_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "CSL Computer GmbH & Co. KG"), + DMI_MATCH(DMI_PRODUCT_NAME, "CSL Panther Tab HD"), + }, + }, { /* CUBE iwork8 Air */ .driver_data = (void *)&cube_iwork8_air_data, -- 2.37.2