Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2673575pxj; Mon, 31 May 2021 07:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUPq5wVe1EYmK5qLhSqXVGeCDCqAc9IaDku6ZaCi4chrJDlkMu3hsgKMAiE4PrtR8MeJql X-Received: by 2002:aa7:c04e:: with SMTP id k14mr25366052edo.157.1622473155658; Mon, 31 May 2021 07:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473155; cv=none; d=google.com; s=arc-20160816; b=kihkQUrnRW8iQvud6idwPjkpixqLMLZBl9dbEYZYbPKfhoPhFhcDLjP0vtba7/Vusr o3yU+buXbnUIwd+XdaosmvUnC1npw5/Zy7dbgjo6Hq28e2vyuDkolcN+fEVS09bOLUoa KKF2STfUGWKyKEzn3Lj3gT+m4ou+i1kU/BWD8H2D43y7HAkoO1spzenmWOFMxMHZNJ8E jNjEfInFpUZa3ythunquAHQPJQYYNElZWtKRWsfbOYWOPv7WbXWAeoWSpoCgxpiyXX51 W5ycrDqPxZA8fCryzp1UfpFFvnXpFb+jt+A2/cUGN9w03hKq++MJxHHQttXDt/04OcTq sFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TthiOvBEOH25oPZ5O6KmH7jXj+SZo8ftJrm1y5dTVcM=; b=QHFH1GVB5+jJTUtuL16G/Dz/njCpFEm+0kx7pE/8zd9UGbHxOraAzyK4U3muvyxEBJ wRwYz/WRCyqYTbsYtNNS4TjKsmQgSdRZKDXVb0Y+pp5hyChQwE+58Yw1O3oWuEZPEoGM mlHavkMu/ynnZxgzhEPzYUySZsNvlsjVb5ihjQgaIKL0SkA1+WrT6rCyWdWgYWTf9hTe 7RV9UOSljto/k3JSdAtwu/EFdhYoxkExsXkLj5HBy7dN/cETP2gvLf7q9RbrccZfmi+y FrVTeIK3acjFXvNZfRbykzR7xU2DVfXMxCBCkYtWhVpPA+OWw7Rdg7DZ886BZg6SymOT omBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Jph21xLh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si573066edm.102.2021.05.31.07.58.50; Mon, 31 May 2021 07:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Jph21xLh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbhEaO4v (ORCPT + 99 others); Mon, 31 May 2021 10:56:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:37788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbhEaOEZ (ORCPT ); Mon, 31 May 2021 10:04:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4036F613FE; Mon, 31 May 2021 13:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468288; bh=26WxNwO+8uDhnOWKEyMtx1cDFa5fjm15bHmqxO787rI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jph21xLh5Jg9m2WzP5NLRUqaKM0C8UStYiLsDdSevD4rzBkVdbkxZtd9mPHH3lNNV B4V6IYCP0A4nArK2wsA7qzdMlKaMGtAj1UykZCuFkibJTI/U7s2D7FA9q8t6QAAxIW lHr3I0OxTGrGeFmVYDYH+7m77UNWHn2tN6/OtTV0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Sasha Levin Subject: [PATCH 5.10 186/252] platform/x86: touchscreen_dmi: Add info for the Chuwi Hi10 Pro (CWI529) tablet Date: Mon, 31 May 2021 15:14:11 +0200 Message-Id: <20210531130704.328268519@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit e68671e9e1275dfdda333c3e83b6d28963af16b6 ] Add touchscreen info for the Chuwi Hi10 Pro (CWI529) tablet. This includes info for getting the firmware directly from the UEFI, so that the user does not need to manually install the firmware in /lib/firmware/silead. This change will make the touchscreen on these devices work OOTB, without requiring any manual setup. Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20210520093228.7439-1-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/platform/x86/touchscreen_dmi.c | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index e1455f1d2472..3743d895399e 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -115,6 +115,32 @@ static const struct ts_dmi_data chuwi_hi10_plus_data = { .properties = chuwi_hi10_plus_props, }; +static const struct property_entry chuwi_hi10_pro_props[] = { + PROPERTY_ENTRY_U32("touchscreen-min-x", 8), + PROPERTY_ENTRY_U32("touchscreen-min-y", 8), + PROPERTY_ENTRY_U32("touchscreen-size-x", 1912), + PROPERTY_ENTRY_U32("touchscreen-size-y", 1272), + PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), + PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-chuwi-hi10-pro.fw"), + PROPERTY_ENTRY_U32("silead,max-fingers", 10), + PROPERTY_ENTRY_BOOL("silead,home-button"), + { } +}; + +static const struct ts_dmi_data chuwi_hi10_pro_data = { + .embedded_fw = { + .name = "silead/gsl1680-chuwi-hi10-pro.fw", + .prefix = { 0xf0, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 }, + .length = 42504, + .sha256 = { 0xdb, 0x92, 0x68, 0xa8, 0xdb, 0x81, 0x31, 0x00, + 0x1f, 0x58, 0x89, 0xdb, 0x19, 0x1b, 0x15, 0x8c, + 0x05, 0x14, 0xf4, 0x95, 0xba, 0x15, 0x45, 0x98, + 0x42, 0xa3, 0xbb, 0x65, 0xe3, 0x30, 0xa5, 0x93 }, + }, + .acpi_name = "MSSL1680:00", + .properties = chuwi_hi10_pro_props, +}; + static const struct property_entry chuwi_vi8_props[] = { PROPERTY_ENTRY_U32("touchscreen-min-x", 4), PROPERTY_ENTRY_U32("touchscreen-min-y", 6), @@ -872,6 +898,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), }, }, + { + /* Chuwi Hi10 Prus (CWI597) */ + .driver_data = (void *)&chuwi_hi10_pro_data, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"), + DMI_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"), + DMI_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"), + }, + }, { /* Chuwi Vi8 (CWI506) */ .driver_data = (void *)&chuwi_vi8_data, -- 2.30.2