Received: by 10.192.165.148 with SMTP id m20csp2596590imm; Sun, 29 Apr 2018 02:37:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDDVqbFhNnNxgpM3NoyJOJyYjALL/iEQ6/cr1q7a9MdQxbnyjq3bdyhzpJTlXKzVb1eGlW X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10-v6mr8763335plb.329.1524994652317; Sun, 29 Apr 2018 02:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524994652; cv=none; d=google.com; s=arc-20160816; b=FkJz4cCSAsktyHquJDXfGwesNkHCrjjJzKZ/+6wEwMzkTe5XFu3Zg7EdzNFeaotXtP VeKqhfNIzSEnEFJiDc72yW/bU5KxTiWzoqSG31Xj2PCD1COC1qxlKPbPc21sQnkE2dzb /y3Tivf6KA73mkTY+RAuvHWz0JKTxV8R+DfAm1NdL0BPbjoe8q6gfwpZ3XFYjDXBoncm K8DlDMETuHy1YEr3+lfP5P3PLSyCHV8W3REXp/CqL3JWcVI9HJb3wzjAZs3Hxr3ybcnT rF77ZoCHyNnhgfsILq+dPej3z8UssdrICAkOKBoItrV/mjst2lHe8W4bmO8nJoFRMVNW vWtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tX7xHUZE9sjOHWOewoJwLTQwl6rqNAny7H/FR8esXwY=; b=RFljM+KfqTGEq1bCe2vgMKVAupwRMlzphbhk6BRfWq7w5hYUpj6cO3xyJoj8N2rdHS AIPzURSIDJJGwy7cosTwsfGjbWkNEzowx3vvJE+ovarOMLJLYe33pq+opkNPulexyL4W y4yDHAbLw+N3csk2LA/V4ZsshROKQPX1Nv/D46LlR0NyCeHRocoi3GouAYOikC1Fv7YE 3gx24ReQ0Ftj2tiV6My29ZbfLY4fjbObSbFBR6kf+JmVvTCR2EvhQgYCtlxCAKSvJX97 Jhm3Mb6udk1dmxVCYpBTXpIh7CSaBVeCYEfgAPBXOKBPphwYfXxVeuApKlAPx+ZaAPVf QEVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si5336502plj.143.2018.04.29.02.37.18; Sun, 29 Apr 2018 02:37:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349AbeD2Jgm (ORCPT + 99 others); Sun, 29 Apr 2018 05:36:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42540 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753288AbeD2JgW (ORCPT ); Sun, 29 Apr 2018 05:36:22 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3C47FEB715; Sun, 29 Apr 2018 09:36:21 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 072A4215CDA7; Sun, 29 Apr 2018 09:36:17 +0000 (UTC) From: Hans de Goede To: Ard Biesheuvel , "Luis R . Rodriguez" , Greg Kroah-Hartman , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: Hans de Goede , Peter Jones , Dave Olsthoorn , Will Deacon , Andy Lutomirski , Matt Fleming , David Howells , Mimi Zohar , Josh Triplett , dmitry.torokhov@gmail.com, mfuzzey@parkeon.com, Kalle Valo , Arend Van Spriel , Linus Torvalds , nbroeking@me.com, bjorn.andersson@linaro.org, Torsten Duwe , Kees Cook , x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 5/5] platform/x86: touchscreen_dmi: Add info for the Chuwi Vi8 Plus tablet Date: Sun, 29 Apr 2018 11:35:58 +0200 Message-Id: <20180429093558.5411-6-hdegoede@redhat.com> In-Reply-To: <20180429093558.5411-1-hdegoede@redhat.com> References: <20180429093558.5411-1-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sun, 29 Apr 2018 09:36:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sun, 29 Apr 2018 09:36:21 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'hdegoede@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add touchscreen info for the Chuwi Vi8 Plus tablet. This tablet uses a Chipone ICN8505 touchscreen controller, with the firmware used by the touchscreen embedded in the EFI firmware. Acked-by: Andy Shevchenko Acked-by: Ard Biesheuvel Signed-off-by: Hans de Goede --- drivers/platform/x86/touchscreen_dmi.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 6488cd50ba79..5fdb6fe878f4 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -301,6 +301,22 @@ static const struct ts_dmi_data teclast_x3_plus_data = { .properties = teclast_x3_plus_props, }; +static const struct property_entry efi_embedded_fw_props[] = { + PROPERTY_ENTRY_BOOL("efi-embedded-firmware"), + { } +}; + +static const struct ts_dmi_data chuwi_vi8_plus_data = { + .embedded_fw = { + .name = "chipone/icn8505-HAMP0002.fw", + .prefix = { 0xb0, 0x07, 0x00, 0x00, 0xe4, 0x07, 0x00, 0x00 }, + .length = 35012, + .crc = 0x74dfd3fc, + }, + .acpi_name = "CHPN0001:00", + .properties = efi_embedded_fw_props, +}; + const struct dmi_system_id touchscreen_dmi_table[] = { { /* CUBE iwork8 Air */ @@ -487,6 +503,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Y8W81"), }, }, + { + /* Chuwi Vi8 Plus (CWI506) */ + .driver_data = (void *)&chuwi_vi8_plus_data, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hampoo"), + DMI_MATCH(DMI_PRODUCT_NAME, "D2D3_Vi8A1"), + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), + }, + }, { }, }; -- 2.17.0