From patchwork Sun Jul 1 18:18:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Bo Bi X-Patchwork-Id: 10500047 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 8EB4560532 for ; Sun, 1 Jul 2018 18:19:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8032228736 for ; Sun, 1 Jul 2018 18:19:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74CEC28746; Sun, 1 Jul 2018 18:19:18 +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 2437028736 for ; Sun, 1 Jul 2018 18:19:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964784AbeGASTR (ORCPT ); Sun, 1 Jul 2018 14:19:17 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:46526 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933960AbeGASTL (ORCPT ); Sun, 1 Jul 2018 14:19:11 -0400 Received: by mail-io0-f193.google.com with SMTP id p7-v6so445017ioh.13 for ; Sun, 01 Jul 2018 11:19:11 -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=MvoaXGwtCsmWGKc1QbbIcp4Lxruemr2FG7+WZghWszQ=; b=pXEL+EcIuN8Im5MME3jk44UYKPBBI7yX1m2jvcSM3hLh4I5+43cGyioA7Q1srHng12 ewMVWE7KfG0cy6VAR/0MOMfZT4uQjpVkOGcJo45IQmKFGru60y2o/PYkMIrDtwYO5vbW 4KaLJvwIfJiHmek+VP82dAJIyedgjJYBwQYsWB445qFFwjzeqN1C1XQ2JxS3No+nyjvs FBbVUhzGOQLMdOrW5/ZJW8+Y2giPP8Mt/SJ18/viU1UTYaNg7BgS7xXY5fb/HmS5Ep4N He8lfenMnASU8w8nfvvXSyxkmsX2T8maH9dbYc8xSCaZfybi4v2CHx67xEWBoUQmYXMR ZlKA== 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=MvoaXGwtCsmWGKc1QbbIcp4Lxruemr2FG7+WZghWszQ=; b=pdvKA7XnYKgPiebJMVSLnWnh24JDNNqlGlAE3tdXvphfwOEDxYb/j4qm8Mlt2o8o4o 04wpWLHuVBvV1D9IL9R0b3a+SE3iXNhuH/odhKvnRGknqbD/Y2oh8lGRqnoeeivbUgWo 4uQAkkMljs80HyIk8Dmsp2xt8X5nzO4Qd1JMeUJqhBgVwdH5cA4Atp82Z/q0h8soEmH9 MAOzRojOh7n0Vcol/EXzmnd+lZ8oRwGi9uOeN3/7XD7J7Xxvqz2hqZxkBvju785ZmDI5 ATrWk+LOBOFqQuEidsXAkYTXqiuCpRCwBifK0WwoFXyAFSq4mCsnSEQfPqDRzuwLPPz0 zB5Q== X-Gm-Message-State: APt69E1ozA9ePsiRl2T+2pIHdbb5ezoChotRTPO76IDwmdqxv3TB/Ndg EYVvWq1vKesP5h9bJFoeVK8vs6Eq X-Google-Smtp-Source: AAOMgpeBPu7L4rSGwCrdjafP/RtVSBbYHKIRvlxlqaY7yuViUnUtHLbmB0rXb1vqKJps4XzssPtFEg== X-Received: by 2002:a6b:e619:: with SMTP id g25-v6mr17751237ioh.42.1530469150320; Sun, 01 Jul 2018 11:19:10 -0700 (PDT) Received: from alienarch.lan (toroon4828w-lp130-01-76-71-113-250.dsl.bell.ca. [76.71.113.250]) by smtp.googlemail.com with ESMTPSA id n11-v6sm3116504itn.40.2018.07.01.11.19.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 11:19:09 -0700 (PDT) From: Jun Bo Bi To: linux-input@vger.kernel.org Cc: jambonmcyeah@gmail.com, hdegoede@redhat.com, vhart@infradead.org, andy@infradead.org Subject: [PATCH] platform/x86: silead_dmi: Add touchscreen platform data for the Onda V820w tablet Date: Sun, 1 Jul 2018 14:18:50 -0400 Message-Id: <20180701181850.8064-1-jambonmcyeah@gmail.com> X-Mailer: git-send-email 2.18.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 Signed-off-by: Jun Bo Bi --- drivers/platform/x86/silead_dmi.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c index 853a7ce4601c..c2d6707745f1 100644 --- a/drivers/platform/x86/silead_dmi.c +++ b/drivers/platform/x86/silead_dmi.c @@ -326,6 +326,22 @@ static const struct silead_ts_dmi_data onda_v891w_v1_data = { .properties = onda_v891w_v1_props, }; +static const struct property_entry onda_v820w_32g_props[] = { + PROPERTY_ENTRY_U32("touchscreen-size-x", 1140), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1665), + PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), + PROPERTY_ENTRY_STRING("firmware-name", + "gsl1680-onda-v820w-32g.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct silead_ts_dmi_data onda_v820w_32g_data = { + .acpi_name = "MSSL1680:00", + .properties = onda_v820w_32g_props, +}; + static const struct dmi_system_id silead_ts_dmi_table[] = { { /* CUBE iwork8 Air */ @@ -554,6 +570,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = { DMI_EXACT_MATCH(DMI_BIOS_VERSION, "ONDA.W89EBBN08"), }, }, + { + /* ONDA V820w DualOS */ + .driver_data = (void *)&onda_v820w_32g_data, + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "ONDA"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "V820w DualOS") + }, + }, { }, };