From patchwork Sun Dec 10 22:02:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nerijus Baliunas X-Patchwork-Id: 10104041 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 8016A602D8 for ; Sun, 10 Dec 2017 22:11:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72873292A5 for ; Sun, 10 Dec 2017 22:11:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 676B8292A7; Sun, 10 Dec 2017 22:11: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=-6.9 required=2.0 tests=BAYES_00,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 10170292A5 for ; Sun, 10 Dec 2017 22:11:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbdLJWKq (ORCPT ); Sun, 10 Dec 2017 17:10:46 -0500 Received: from bluegene.sat.lt ([88.119.145.12]:42268 "HELO bluegene.sat.lt" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752228AbdLJWKp (ORCPT ); Sun, 10 Dec 2017 17:10:45 -0500 Received: (qmail 47852 invoked by uid 500); 10 Dec 2017 22:04:02 -0000 X-Qmail-Scanner-Diagnostics: from data-214-110.cgates.lt by bluegene.sat.lt (envelope-from , uid 101) with qmail-scanner-2.11st (clamdscan: 0.99.2/24114. esets: 4.0.81 spamassassin: 3.4.1. perlscan: 2.11st. Clear:RC:1(5.20.214.110):. Processed in 0.01228 secs); 10 Dec 2017 22:04:02 -0000 Received: from data-214-110.cgates.lt (HELO nerijus.sat.lt) (5.20.214.110) by bluegene.sat.lt with SMTP; 10 Dec 2017 22:04:02 -0000 Received: (qmail 19386 invoked by uid 500); 10 Dec 2017 22:02:14 -0000 From: Nerijus Baliunas To: Hans de Goede , linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Nerijus Baliunas Subject: [PATCH] Add touchscreen platform data for the Onda oBook 20 Plus tablet. Date: Mon, 11 Dec 2017 00:02:13 +0200 Message-Id: <20171210220213.19290-1-nerijus@users.sourceforge.net> X-Mailer: git-send-email 2.14.3 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 Signed-off-by: Nerijus Baliƫnas Acked-by: Hans de Goede --- drivers/platform/x86/silead_dmi.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c index 266535c2a72f..414293e8c448 100644 --- a/drivers/platform/x86/silead_dmi.c +++ b/drivers/platform/x86/silead_dmi.c @@ -171,6 +171,23 @@ static const struct silead_ts_dmi_data digma_citi_e200_data = { .properties = digma_citi_e200_props, }; +static const struct property_entry onda_obook_20_plus_props[] = { + PROPERTY_ENTRY_U32("touchscreen-size-x", 1728), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1148), + PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"), + PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), + PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), + PROPERTY_ENTRY_STRING("firmware-name", "gsl3676-onda-obook-20-plus.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct silead_ts_dmi_data onda_obook_20_plus_data = { + .acpi_name = "MSSL1680:00", + .properties = onda_obook_20_plus_props, +}; + static const struct dmi_system_id silead_ts_dmi_table[] = { { /* CUBE iwork8 Air */ @@ -271,6 +288,14 @@ static const struct dmi_system_id silead_ts_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), }, }, + { + /* Onda oBook 20 Plus */ + .driver_data = (void *)&onda_obook_20_plus_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ONDA"), + DMI_MATCH(DMI_PRODUCT_NAME, "OBOOK 20 PLUS"), + }, + }, { }, };