From patchwork Thu Jan 17 16:06:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Renz X-Patchwork-Id: 10768477 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 EAF5613A4 for ; Thu, 17 Jan 2019 16:08:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D71DF30360 for ; Thu, 17 Jan 2019 16:08:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C65B730365; Thu, 17 Jan 2019 16:08:40 +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 54C2430360 for ; Thu, 17 Jan 2019 16:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728689AbfAQQIj (ORCPT ); Thu, 17 Jan 2019 11:08:39 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44078 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbfAQQIj (ORCPT ); Thu, 17 Jan 2019 11:08:39 -0500 Received: by mail-wr1-f67.google.com with SMTP id z5so11591337wrt.11 for ; Thu, 17 Jan 2019 08:08:39 -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:mime-version :content-transfer-encoding; bh=lGFv6acT5r9RgvvrNDN65cePqzK/dV/N0yNofB6gmqs=; b=Bw5kSiCstJE+419jeOioch83Cq1941RiF8/bV4ql7lq91b6ucLleIrARP949Iqx2h5 rW1v/ivBMrh8v/fU6mF9TZdw+7pcUYxDgt5UsmZ9Pf7vmqiX68TZg1dk1Fh6H6PNxj23 Q5/VWWhwfpL6guFRHk6Ja+5nOrtTyUACxwXtV2PPglVj/aM8WrvP/Lh+6eFE139TWqRj NZE2Xvj5LD8H8D48o3b3cWd9zpmAw5RiS122r8u69spGIs6qgvNeafOP8W/aZFBdUDZT 5LiT9q3S4NDIoE0RMOnVDbPhbnmhUHBtMW1SoA1KlPTUxMrXb8X5Wgk01ghSjLrtsvS/ dVkQ== 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:mime-version :content-transfer-encoding; bh=lGFv6acT5r9RgvvrNDN65cePqzK/dV/N0yNofB6gmqs=; b=g8YE4zFDmdZrlVmtxc+bEzl7uOSCrMGRtx7SdqTcoIw0/tt8+eTPZSDt7pTx55nOCi wupUxP0jq6uWIu7alwCgblZ51kFa6cD8MJa3XZK04wOCdQeztS8aHTgxvpFseGAUWMty OVJkdBdL+Y15BfPOJy53pp+jaW8JdynYcfzrkNRt9g/cXsXcdjcmBtoxWIOMn5Eb8MCO bmT0U+eLQ8K8VkathmGfb3IEHVEzbQwtY5lpWyTYGIoJFmuBgFzCkR8P32vbhhqIDYy8 FQjVMZs+uYHZejMnBRBx21YPNmWhwGckdAmxlp3JmPVAPjTXXiFst+LJRc3bm3IMPObr NznA== X-Gm-Message-State: AJcUukepOIxhHer406l2AbHw4aFcM2Gfq/eU6CJHgmxfKJ+7YEN8HUwZ 4zobMIR5/yGjjwV3G9Pegz9qdFAB3QE= X-Google-Smtp-Source: ALg8bN6iAewrUutd+CRvN0qr8tJTs9uyzVxb7sonC9nDxjJiU1Fbjt/YAj+evMnFsYrPZZup0J2m5A== X-Received: by 2002:a5d:6a42:: with SMTP id t2mr13595437wrw.50.1547741318253; Thu, 17 Jan 2019 08:08:38 -0800 (PST) Received: from ezpad.fritz.box (HSI-KBW-46-223-48-241.hsi.kabel-badenwuerttemberg.de. [46.223.48.241]) by smtp.gmail.com with ESMTPSA id c202sm44785492wmd.40.2019.01.17.08.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 08:08:19 -0800 (PST) From: Benjamin Renz X-Google-Original-From: Benjamin Renz To: hdegoede@redhat.com Cc: linux-input@vger.kernel.org, Benjamin Renz Subject: [PATCH] Driver: Silead: add dmi match for 'jumper ezpad 6 pro b' into touchscreen_dmi.c Date: Thu, 17 Jan 2019 17:06:13 +0100 Message-Id: <20190117160613.5354-1-appswert@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 From: Benjamin Renz Signed-off-by: Benjamin Renz Reviewed-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 8c5d47c0aea6..5a03aca1a382 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -216,6 +216,21 @@ static const struct ts_dmi_data jumper_ezpad_6_pro_data = { .properties = jumper_ezpad_6_pro_props, }; +static const struct property_entry jumper_ezpad_6_pro_b_props[] = { + PROPERTY_ENTRY_U32("touchscreen-size-x", 1980), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1500), + PROPERTY_ENTRY_STRING("firmware-name", "gsl3692-jumper-ezpad-6-pro-b.fw"), + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct ts_dmi_data jumper_ezpad_6_pro_b_data = { + .acpi_name = "MSSL1680:00", + .properties = jumper_ezpad_6_pro_b_props, +}; + static const struct property_entry jumper_ezpad_mini3_props[] = { PROPERTY_ENTRY_U32("touchscreen-min-x", 23), PROPERTY_ENTRY_U32("touchscreen-min-y", 16), @@ -605,6 +620,17 @@ static const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BIOS_DATE, "08/18/2017"), }, }, + { + /* Jumper EZpad 6 Pro b*/ + .driver_data = (void *)&jumper_ezpad_6_pro_b_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Jumper"), + DMI_MATCH(DMI_PRODUCT_NAME, "EZpad"), + DMI_MATCH(DMI_BIOS_VERSION, "5.12"), + /* Above matches are too generic, add bios-date match */ + DMI_MATCH(DMI_BIOS_DATE, "04/24/2018"), + }, + }, { /* Jumper EZpad mini3 */ .driver_data = (void *)&jumper_ezpad_mini3_data,