From patchwork Tue Jan 23 18:33:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alberto Ponces X-Patchwork-Id: 10180919 X-Patchwork-Delegate: dvhart@infradead.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 429A26019D for ; Tue, 23 Jan 2018 18:34:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F854284FC for ; Tue, 23 Jan 2018 18:34:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 320DC28522; Tue, 23 Jan 2018 18:34:12 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable 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 DC33D284FC for ; Tue, 23 Jan 2018 18:34:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752224AbeAWSdw (ORCPT ); Tue, 23 Jan 2018 13:33:52 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:43904 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbeAWSdv (ORCPT ); Tue, 23 Jan 2018 13:33:51 -0500 Received: by mail-wm0-f68.google.com with SMTP id g1so3722753wmg.2; Tue, 23 Jan 2018 10:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GC6odK07D63D/yI6s51ZoEYRf4kIjij3jMIC6pd1Wwk=; b=fvppF3RuliYFooq8d2Cuu8EjM6I7OUQ25mXOGnWDojjPRwcwr8Bq7VfA2DUhYs2n3l X6PosL/LZ/cG/V2oujWrhv773dBuGL3uTfvTiQ50kp0MGOExDrrOofXE5QNkUmFwHOp7 OB/dxpdV+/+lmFaRIDQnbsg3ds8mH0SY6bjAXcVWSEVWzc3rV2RQdstuvRneSw2XIPoL wk1t0qi3wDVeUO6DbLINozbDEJR8Y4tj56wCc/ZLNmc+a2gzHX6zAKDCHzdMSPx5Airp xf0jz09jf+IcrZZVCVoSKYC+NcB12xmZ6wLJMIcc5gp03g5rWtMeL4nBhdedYFChy0nA PulA== 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:in-reply-to :references; bh=GC6odK07D63D/yI6s51ZoEYRf4kIjij3jMIC6pd1Wwk=; b=XFKyBUBaYI/4XDlu7bbvGlcQM1ofXeFfzhk/Auyrzt9fLXH/N2nFJLRgVsVeZ6CjIh XFW48xMll6RP7bavnJQEXQNTIczB0Ln/OQ6PjhTnOekC/6huMTlYp8NDMTbeX3KDy/i4 fAfVeCWJ69J/WHN3Stx18rsrS9z1MO6riXf79ao8m7bbiwAd+aKyboyusBq3a7Er+L+s ZUxqturrqEd+qNzMA1K4vnInoEqnH/EMIw04Aadh+scp8qxupr3AhjuG3w9sez+qHm/O xIi6K28fu3U6eXLSxjnJcTNYrMC+x8zYgr9Hesa1rNwlzj0NXsF315clNqOibZgIkhlO u+0Q== X-Gm-Message-State: AKwxytd1qJJqPDEArOARRad7Th5yyVs/JimTq7/rjXsApmVkl//nOShh 0b9ewP8AaWhdf2Ef2cvf5WYtfsabukk= X-Google-Smtp-Source: AH8x227zwxdkKMgPPl9Q1PmsHJWEyjREMySeVMGHT0RZk3FADeKMqqTzvELWpVK5JY5B/ITvYemgdg== X-Received: by 10.28.169.200 with SMTP id s191mr2793865wme.9.1516732429304; Tue, 23 Jan 2018 10:33:49 -0800 (PST) Received: from NB-003F00054.cmf.criticalmanufacturing.com (218.233.115.89.rev.vodafone.pt. [89.115.233.218]) by smtp.googlemail.com with ESMTPSA id u27sm1233148wrf.77.2018.01.23.10.33.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jan 2018 10:33:48 -0800 (PST) From: Alberto Ponces To: linux-input@vger.kernel.org Cc: ponces26@gmail.com, Hans de Goede , Darren Hart , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] platform/x86: silead_dmi: Add touchscreen platform data for the Teclast X3 Plus tablet Date: Tue, 23 Jan 2018 18:33:38 +0000 Message-Id: <1516732419-125-1-git-send-email-ponces26@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516706288-177-1-git-send-email-ponces26@gmail.com> References: <1516706288-177-1-git-send-email-ponces26@gmail.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add touchscreen platform data for the Teclast X3 Plus tablet. Reviewed-by: Hans de Goede Signed-off-by: Alberto Ponces --- drivers/platform/x86/silead_dmi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c index 048a82f..3a62409 100644 --- a/drivers/platform/x86/silead_dmi.c +++ b/drivers/platform/x86/silead_dmi.c @@ -263,6 +263,20 @@ static const struct silead_ts_dmi_data teclast_x98plus2_data = { .properties = teclast_x98plus2_props, }; +static const struct property_entry teclast_x3_plus_props[] = { + PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), + PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-teclast-x3-plus.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct silead_ts_dmi_data teclast_x3_plus_data = { + .acpi_name = "MSSL1680:00", + .properties = teclast_x3_plus_props, +}; + static const struct dmi_system_id silead_ts_dmi_table[] = { { /* CUBE iwork8 Air */ @@ -423,6 +437,15 @@ static const struct dmi_system_id silead_ts_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "X98 Plus II"), }, }, + { + /* Teclast X3 Plus */ + .driver_data = (void *)&teclast_x3_plus_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TECLAST"), + DMI_MATCH(DMI_PRODUCT_NAME, "X3 Plus"), + DMI_MATCH(DMI_BOARD_NAME, "X3 Plus"), + }, + }, { }, };