From patchwork Tue Jul 31 09:32:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: youling 257 X-Patchwork-Id: 10550541 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0BB4C1822 for ; Tue, 31 Jul 2018 09:35:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 074AB28D8E for ; Tue, 31 Jul 2018 09:35:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF60B2AA85; Tue, 31 Jul 2018 09:35:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C5D928D8E for ; Tue, 31 Jul 2018 09:35:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729987AbeGaLOf (ORCPT ); Tue, 31 Jul 2018 07:14:35 -0400 Received: from mail-pl0-f43.google.com ([209.85.160.43]:47103 "EHLO mail-pl0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729768AbeGaLOf (ORCPT ); Tue, 31 Jul 2018 07:14:35 -0400 Received: by mail-pl0-f43.google.com with SMTP id t17-v6so6887636ply.13; Tue, 31 Jul 2018 02:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=m7lOQXW3KyJGkWo1MmPVwt7BcYYw5Y3h8uYDyaHxMh8=; b=lrmd1VdU1qlCy9YPdZOzU4k6mdtLfgDNaTwoyY86Xh7UNm8lMP00J1QXFLajRZPZQQ lO0bepSDycmy1JUB1Xan7jSzFrYc6oFpBZ3+0kwiAd11ONPkw5YSAMo/5jPasXWryMKQ NeUGSq0NON9SLtVs/LuiYXxNZmctnhC6JWaN3KyW5YDmjDOSTBCiimudvqu7MiobHkOZ zFy9XjyjkdNqERzyw7PR0zH1igOusyKXftWYVcwzqcHHsOPeNj3XvElJdE0wU0n5WcqX KJBmeRdksTxC+RdnxtY1kdg8e+FqUc5zqV0iiJ1Y8hXU0GbEncD5pMvnRTPZjRxdVrFJ YG7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=m7lOQXW3KyJGkWo1MmPVwt7BcYYw5Y3h8uYDyaHxMh8=; b=FSZ+itcDJCyMu/Bjwp9jbLdVqdGV4y8DCHs4eJVL2UsWeO3ylFoqneZxRo7kYKu7Ij uSXvXZk7Ag4Z9r+B6pwgm3gU6HZPC5e0dVbCrY3rKWSe0V/kF+kWTF1nAG+0LoIYmpiU 7DpvWCA86kVZgTsBgNNaGTvyfGpDK1NAL6kLdIHokL+pTLJYxgw5dbf4+ireOrtNNsSZ otf+eSg3RCT87vAPW4eQd0rJOHnV36417MuQ/xgumiNjsx2a4omTF4pSdhkL3hm414ic ZF47Qjrf9FKp7T2AYDhJzGSh+U61ZCGu25MP1Pnt+fVMW6Kpee+9sKm6u7QYX+rVuUiX 1z9A== X-Gm-Message-State: AOUpUlFjqgMzl0p99hDoUBv43pKLwmJx4EWjDgkvUXeJyVXP/xWMQakk r8DqsGG7XKn+Vvj3IyMNxcJeqfiybcEHVA== X-Google-Smtp-Source: AAOMgpf77D+LN+gbKpiWQFGtzThzQfyirCeFdFMu63fRruICMWVZld6FOYyw2TspEsSijvkHFmoWOA== X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr19615550plo.177.1533029707745; Tue, 31 Jul 2018 02:35:07 -0700 (PDT) Received: from localhost.localdomain ([45.124.136.112]) by smtp.gmail.com with ESMTPSA id n26-v6sm14925793pgv.78.2018.07.31.02.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 02:35:07 -0700 (PDT) From: youling257 To: linux-kernel@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-input@vger.kernel.org, andy@infradead.org, dvhart@infradead.org, hdegoede@redhat.com, youling257 Subject: [PATCH] platform/x86: touchscreen_dmi: Add info for the Cube KNote i1101 tablet Date: Tue, 31 Jul 2018 17:32:56 +0800 Message-Id: <20180731093256.30533-1-youling257@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add touchscreen info for the Cube KNote i1101 tablet. Reported-and-tested-by: lkongl Signed-off-by: Hans de Goede --- drivers/platform/x86/touchscreen_dmi.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 85e425420da2..cb204f973491 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -117,6 +117,22 @@ static const struct ts_dmi_data cube_iwork8_air_data = { .properties = cube_iwork8_air_props, }; +static const struct property_entry cube_knote_i1101_props[] = { + PROPERTY_ENTRY_U32("touchscreen-min-x", 20), + PROPERTY_ENTRY_U32("touchscreen-min-y", 22), + PROPERTY_ENTRY_U32("touchscreen-size-x", 1961), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1513), + PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-cube-knote-i1101.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct ts_dmi_data cube_knote_i1101_data = { + .acpi_name = "MSSL1680:00", + .properties = cube_knote_i1101_props, +}; + static const struct property_entry dexp_ursus_7w_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 890), PROPERTY_ENTRY_U32("touchscreen-size-y", 630), @@ -458,6 +474,16 @@ static const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), }, }, + { + /* Cube KNote i1101 */ + .driver_data = (void *)&cube_knote_i1101_data, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), + DMI_MATCH(DMI_BOARD_NAME, "L1W6_I1101"), + DMI_MATCH(DMI_SYS_VENDOR, "ALLDOCUBE"), + DMI_MATCH(DMI_PRODUCT_NAME, "i1101"), + }, + }, { /* DEXP Ursus 7W */ .driver_data = (void *)&dexp_ursus_7w_data,