From patchwork Sun Sep 30 16:09:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marian Cepok X-Patchwork-Id: 10621443 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 9695F14BD for ; Sun, 30 Sep 2018 16:09:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F01D293B5 for ; Sun, 30 Sep 2018 16:09:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71E7A293C0; Sun, 30 Sep 2018 16:09:27 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 1BEDD293B5 for ; Sun, 30 Sep 2018 16:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728427AbeI3WnB (ORCPT ); Sun, 30 Sep 2018 18:43:01 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37593 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbeI3WnB (ORCPT ); Sun, 30 Sep 2018 18:43:01 -0400 Received: by mail-ed1-f65.google.com with SMTP id e15-v6so12052080edr.4 for ; Sun, 30 Sep 2018 09:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=bZbaNghSvNsWSGu2TI48BT+uFGGDAFgG1R2MpMRrdiY=; b=FRwyDjY7rrAltQbL1hg9W9BuN8QkKS0z5TeG56nxLtu3y2SGCR5LVlUVe234DwRCcM gH++yUgbYXFaIj6D29U8gvDGF5HjP4rz8wkEAWwbCHE9HhufZRPIGhZYtAYpN3OA7nFb 09FHypKsDJR4FUkdkh1EUYGWdgCM7wxqATmA3bPBhXsc+JegBPoegVzoCYV/Tvy9V13a 9tmtR6wM3eEDFAyYqIL1xBhPaQ2IQymVZLgnEtChZQEstG3T3eU5qcMVsUPvpSUzdwq8 h4spPzLHDQRasxbsMjyb5IkDqtN5JTgNx5m5AF5oPbgs/RfmqxT7Ro9gVxqv96PUmEZh m9bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=bZbaNghSvNsWSGu2TI48BT+uFGGDAFgG1R2MpMRrdiY=; b=oXGFr2hb7Lj1QZyg3/CanPtOPoViurV2zSnWjcgT/j9XYV9rRlOPfe5kI+Epj/bVKO GEklGbiHy4GAvMTtQcLB5nkmLidC4hgusDQ0DHiUhChM9uYgivASULip0Z+5+lOmfSLz fZccNlFY7juFSqd5E/Jq/G7R/icLAelURn06Z2uTMOQMHzXAeoUJ6ugHCvsoaVqZ8zxT U8fCJqVjXU19bGrD1NSpTi6vVzQqu4Cg2FHgGw/nhK1BiL3O69xYFgqCfKXTbYQb3jcO GvxysQla7X1y2kEaB4VAyzi+GKUa4sB9zdwxgL5UdcxgdPcQ1wASLb5Bt8odoX7cTTNS R1rg== X-Gm-Message-State: ABuFfoi7CLHPqDLJH9Rmh7kFvrQ0Y8PBBcwobvxv1O7+Cz3W8tex6VSS zHsiPDH+ii5lwLKy0DZ8B4Y= X-Google-Smtp-Source: ACcGV60JNmhvhvXLKU+p5tBCs1KIIyZgnMRyF9qzpuTT3Frlat7aX71R/jsXW6rsiLy0YRkrjTnEuQ== X-Received: by 2002:a50:852b:: with SMTP id 40-v6mr13209561edr.177.1538323763500; Sun, 30 Sep 2018 09:09:23 -0700 (PDT) Received: from mcepok-pc (200116b864ab1f0000f8a4242ab61637.dip.versatel-1u1.de. [2001:16b8:64ab:1f00:f8:a424:2ab6:1637]) by smtp.gmail.com with ESMTPSA id h19-v6sm3505587edq.23.2018.09.30.09.09.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Sep 2018 09:09:22 -0700 (PDT) Date: Sun, 30 Sep 2018 18:09:21 +0200 From: Marian Cepok To: hdegoede@redhat.com Cc: dvhart@infradead.org, andy@infradead.org, linux-input@vger.kernel.org Subject: [PATCH] platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet Message-ID: <20180930160921.GA22952@mcepok-pc> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) 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 Trekstor Primetab T13B tablet. Signed-off-by: Marian Cepok Reviewed-by: Hans de Goede --- drivers/platform/x86/touchscreen_dmi.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index cb204f973491..c07954f0efc6 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -381,6 +381,22 @@ static const struct ts_dmi_data trekstor_primebook_c13_data = { .properties = trekstor_primebook_c13_props, }; +static const struct property_entry trekstor_primetab_t13b_props[] = { + PROPERTY_ENTRY_U32("touchscreen-size-x", 2500), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1900), + PROPERTY_ENTRY_STRING("firmware-name", + "gsl1680-trekstor-primetab-t13b.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), + { } +}; + +static const struct ts_dmi_data trekstor_primetab_t13b_data = { + .acpi_name = "MSSL1680:00", + .properties = trekstor_primetab_t13b_props, +}; + static const struct property_entry trekstor_surftab_twin_10_1_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 1900), PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), @@ -648,6 +664,14 @@ static const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Primebook C13"), }, }, + { + /* Trekstor Primetab T13B */ + .driver_data = (void *)&trekstor_primetab_t13b_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TREKSTOR"), + DMI_MATCH(DMI_PRODUCT_NAME, "Primetab T13B"), + }, + }, { /* TrekStor SurfTab twin 10.1 ST10432-8 */ .driver_data = (void *)&trekstor_surftab_twin_10_1_data,