Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2826158pxv; Mon, 12 Jul 2021 02:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhjebJXExfrJjdDJZH01gVmCojhteV5G4Dvhvfq/EPi1IqJXZm9jYTnIbqsFCtO5ybUgvI X-Received: by 2002:a05:6402:501:: with SMTP id m1mr64289454edv.163.1626083658887; Mon, 12 Jul 2021 02:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626083658; cv=none; d=google.com; s=arc-20160816; b=nr49uQBCDkbBLLk0/honVBHQSUSgakcwBGUAwxn+6LUjXE47hjn0IKeais+GFhcEKm 4IGrhb9/cpRGe7EvZ5fDBLKWI8BTVACsYEkSg5x+QpVJlNgWxuWASjoSpMuWvvtWLdQT Uhn5YoOLUwlAARpJ8FvANaeLuUmLmLVixP2jQPs+gEqPX1VNZCkwwmul8dEh7z/jJAP0 eDBVjKhb4DeqcK8Xee7rAmknKpv+cz3IdRLmHDO/IRKfpWbr2dNrbnJ2gmKeWt2p93N0 u8Pm4ACnT70gvwWkUBfy6Fcg9OfyRw+W32TDTt7e4FaxcHceN/rIeYP3U/0Jp5Eahu9z 8tfg== 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=7/98hA/voeyaYo2OAxbhA07JO2jTzRl1ESDzQI470Rc=; b=CV0Zl5zDOQR8al61e1sV6GmQOMvekUzfOyPJk3BnS3Qu9ii8hap7cYxyeHSWt38rAU HklMSkUS4tl8CEPWm1ISaBGw/EodWze4mS0gRwsmbYKIDkji/FI63xbXEFEKaEZHiBKi ueg33fr+Zf4aDFJvhknrrJv5XMOZrfJElDKt1KADmle5nxCoSeal457YDERHghRRL7Ku LuyXZn4ViJolsvoCPUiEElONALEjiJBLO0F4nMPCl6j9CM6V8HTwUUlDsThanqOsQSeu dHuVq6jvnT1gij79zlP4F+Zy/vG8B6soc2+6ksP3olHjH30YEe+919g8EFwzzW/K0e3G Smjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RSewphT+; 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 ak17si19184091ejc.728.2021.07.12.02.53.56; Mon, 12 Jul 2021 02:54:18 -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=RSewphT+; 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 S239976AbhGLGxP (ORCPT + 99 others); Mon, 12 Jul 2021 02:53:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:34412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236782AbhGLGjS (ORCPT ); Mon, 12 Jul 2021 02:39:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 432DD6117A; Mon, 12 Jul 2021 06:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626071684; bh=5YQzn5VTPGA3RcWIpzC4eQz/17IKiMjdivRT+lqiYjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RSewphT+HjmU6kQZNO6eOE6UTI9YIuBeB4HCFIV0iEqde0EsyT+x8bhVZD/61etED uPhnKRUmG6R9++rZbjkXD53+AmKInYBWngO2fLgrFgJlD5ZdOzHmpUYdtIcV6v1Xcv o+BZuklSimsvjtUp5GZGC2Kozr8+mbuNvYs5BCW8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bastien Nocera , Hans de Goede , Sasha Levin Subject: [PATCH 5.10 175/593] platform/x86: touchscreen_dmi: Add info for the Goodix GT912 panel of TM800A550L tablets Date: Mon, 12 Jul 2021 08:05:35 +0200 Message-Id: <20210712060902.264623669@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060843.180606720@linuxfoundation.org> References: <20210712060843.180606720@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 fcd8cf0e3e48f4c66af82c8e799c37cb0cccffe0 ] The Bay Trail Glavey TM800A550L tablet, which ships with Android installed from the factory, uses a GT912 touchscreen controller which needs to have its firmware uploaded by the OS to work (this is a first for a x86 based device with a Goodix touchscreen controller). Add a touchscreen_dmi entry for this which specifies the filenames to use for the firmware and config files needed for this. Note this matches on a GDIX1001 ACPI HID, while the original DSDT uses a HID of GODX0911. For the touchscreen to work on these devices a DSDT override is necessary to fix a missing IRQ and broken GPIO settings in the ACPI-resources for the touchscreen. This override also changes the HID to the standard GDIX1001 id typically used for Goodix touchscreens. The DSDT override is available here: https://fedorapeople.org/~jwrdegoede/glavey-tm800a550l-dsdt-override/ Reviewed-by: Bastien Nocera Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20210504185746.175461-5-hdegoede@redhat.com Signed-off-by: Sasha Levin --- drivers/platform/x86/touchscreen_dmi.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index ebae21b78327..99260915122c 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platform/x86/touchscreen_dmi.c @@ -316,6 +316,18 @@ static const struct ts_dmi_data gdix1001_01_upside_down_data = { .properties = gdix1001_upside_down_props, }; +static const struct property_entry glavey_tm800a550l_props[] = { + PROPERTY_ENTRY_STRING("firmware-name", "gt912-glavey-tm800a550l.fw"), + PROPERTY_ENTRY_STRING("goodix,config-name", "gt912-glavey-tm800a550l.cfg"), + PROPERTY_ENTRY_U32("goodix,main-clk", 54), + { } +}; + +static const struct ts_dmi_data glavey_tm800a550l_data = { + .acpi_name = "GDIX1001:00", + .properties = glavey_tm800a550l_props, +}; + static const struct property_entry gp_electronic_t701_props[] = { PROPERTY_ENTRY_U32("touchscreen-size-x", 960), PROPERTY_ENTRY_U32("touchscreen-size-y", 640), @@ -1012,6 +1024,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "eSTAR BEAUTY HD Intel Quad core"), }, }, + { /* Glavey TM800A550L */ + .driver_data = (void *)&glavey_tm800a550l_data, + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"), + DMI_MATCH(DMI_BOARD_NAME, "Aptio CRB"), + /* Above strings are too generic, also match on BIOS version */ + DMI_MATCH(DMI_BIOS_VERSION, "ZY-8-BI-PX4S70VTR400-X423B-005-D"), + }, + }, { /* GP-electronic T701 */ .driver_data = (void *)&gp_electronic_t701_data, -- 2.30.2