From patchwork Thu Jan 17 14:27:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Renz X-Patchwork-Id: 10768307 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 0A45813A4 for ; Thu, 17 Jan 2019 14:27:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA5AC2E8F2 for ; Thu, 17 Jan 2019 14:27:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB57D3004F; Thu, 17 Jan 2019 14:27:26 +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 787832E8F2 for ; Thu, 17 Jan 2019 14:27:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725982AbfAQO1Z (ORCPT ); Thu, 17 Jan 2019 09:27:25 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35884 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfAQO1Z (ORCPT ); Thu, 17 Jan 2019 09:27:25 -0500 Received: by mail-wm1-f66.google.com with SMTP id p6so1271416wmc.1 for ; Thu, 17 Jan 2019 06:27:24 -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=wNex8AG+b2VXvfFhL/kUyJNYgDpALMrQBVbye02emdM=; b=OwF4VsRhubzk3cm2+qNXzVRSsnmCL7QZXNA5ax0Sk6mnSadr9lxyhlveG3FCR3wKYJ SqfLadkvJPPiMZ/cMGxGYALQqp15KFie2qhQc6AMlEgVDn4lxUTP3tVXPckW7IS3iJJo rssO0zOz1imWKUa1d8tpCh1OFcUTvh7+yRT6xTrOoGC1uRAItmT+BN7rJ7yi0ynWsJx+ dgFAoyYaml0JW0wm8mzSQqdHm8DmbtwZ4/v8kh48yITqWbv6REV5+XAlMqE9oySzrxKz izKlNzmyAD0R7S83pA5lVtpGYUeb/QZO+Yq9l9BuADQZMb+Wk829OeEkvfYOlVbLFF96 kZ1g== 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=wNex8AG+b2VXvfFhL/kUyJNYgDpALMrQBVbye02emdM=; b=BpmeL0MC140q8jaO5t1WwFhRMx85ne6q+eIIMHLxeJNC95XK0iMhQpVajvWZnjSB9g ubLHC+B2yLS6MFZH2QltDhU4MymPYyHLLhZjAP4rxv+NUTwBS1FWcWupRxIxy/4LCuJM 6LwSq3KQRFDKn48NlZ4y9539gfOl2CSzs7M80DhRyZrFIWCkvkQTn4aBqWZMc37y2xXm fmQmROBcdY1Gdno7FRfg4wHWD1WduvLs8MTaPml5s+BF86eY1geLRiuROrdNYWLHSAvg Dy6t4umqT5SxFkv2DoNN/ttCFraEM0NPc3+YgBJeCs1KgAIgTpNd8a2rIn+cqnuQJ2ms rXiw== X-Gm-Message-State: AJcUukdJOJ820tqVg2RZ/ikUu+dw+odeGAKiO4newuEW0mBKRnJNb6Jd SiwR+85AtmGMJB4nNJQ+UYM= X-Google-Smtp-Source: ALg8bN68tq6PpaarWdQj52ejdeP/Mtcof2OiS9co5Qobyk/WUACcfeAJj44SPLyVHVApcyJloEho/g== X-Received: by 2002:a1c:868a:: with SMTP id i132mr11622381wmd.49.1547735243776; Thu, 17 Jan 2019 06:27:23 -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 g129sm37638083wmf.39.2019.01.17.06.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 06:27:22 -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] Silead: add 'jumper ezpad 6 pro b' dmi matches to touchscreen_dmi.c Date: Thu, 17 Jan 2019 15:27:16 +0100 Message-Id: <20190117142716.4715-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 --- drivers/platform/x86/touchscreen_dmi.c | 34 ++++++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 8c5d47c0aea6..80956b6624c6 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, @@ -614,14 +640,6 @@ static const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BIOS_VERSION, "jumperx.T87.KFBNEEA"), }, }, - { - /* Mediacom Flexbook Edge 11 (same hw as TS Primebook C11) */ - .driver_data = (void *)&trekstor_primebook_c11_data, - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "MEDIACOM"), - DMI_MATCH(DMI_PRODUCT_NAME, "FlexBook edge11 - M-FBE11"), - }, - }, { /* Onda oBook 20 Plus */ .driver_data = (void *)&onda_obook_20_plus_data,