From patchwork Fri Jan 10 16:26:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 205865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B65E3C282DD for ; Fri, 10 Jan 2020 16:27:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AD49206ED for ; Fri, 10 Jan 2020 16:27:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b="pHTCdmoC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbgAJQ12 (ORCPT ); Fri, 10 Jan 2020 11:27:28 -0500 Received: from hermes.aosc.io ([199.195.250.187]:50212 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgAJQ11 (ORCPT ); Fri, 10 Jan 2020 11:27:27 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 61F3E46F40; Fri, 10 Jan 2020 16:27:22 +0000 (UTC) From: Icenowy Zheng To: Dmitry Torokhov , Rob Herring , Mark Rutland , Bastien Nocera , Jagan Teki Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 1/3] dt-bindings: input: touchscreen: add compatible string for Goodix GT917S Date: Sat, 11 Jan 2020 00:26:06 +0800 Message-Id: <20200110162608.1066397-2-icenowy@aosc.io> In-Reply-To: <20200110162608.1066397-1-icenowy@aosc.io> References: <20200110162608.1066397-1-icenowy@aosc.io> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.io; s=dkim; t=1578673646; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=TK+NyESN/Ep9ZZLYo5jYOpPJ8VYhZVrLGzGek6/8uLo=; b=pHTCdmoCBw3ZkjvG1gChvmwGxFIm3WDdAB9zy7igDfAWX98lLulOd4lT2vmCWA5AEULJaf awYCgqkmugx5Mnh3JYasnhL0OOxklRMkN607yrloFvEpM7cdIZkIym5XLvepZwlcVYAdUz gBiXmb+9slgj251ASfLtGO36nu7TKWU= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Goodix GT917S is a new touchscreen chip from Goodix. Add its compatible string to the device tree binding. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/input/touchscreen/goodix.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt index fc03ea4cf5ab..c5447b136eb3 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -8,6 +8,7 @@ Required properties: or "goodix,gt911" or "goodix,gt9110" or "goodix,gt912" + or "goodix,gt917s" or "goodix,gt927" or "goodix,gt9271" or "goodix,gt928" From patchwork Fri Jan 10 16:26:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 205864 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB77BC282DD for ; Fri, 10 Jan 2020 16:27:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4A1E2072A for ; Fri, 10 Jan 2020 16:27:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=aosc.io header.i=@aosc.io header.b="pakWsdvw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725937AbgAJQ1w (ORCPT ); Fri, 10 Jan 2020 11:27:52 -0500 Received: from hermes.aosc.io ([199.195.250.187]:50250 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgAJQ1w (ORCPT ); Fri, 10 Jan 2020 11:27:52 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 7A75D46F4B; Fri, 10 Jan 2020 16:27:45 +0000 (UTC) From: Icenowy Zheng To: Dmitry Torokhov , Rob Herring , Mark Rutland , Bastien Nocera , Jagan Teki Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 3/3] Input: goodix - Add support for Goodix GT917S Date: Sat, 11 Jan 2020 00:26:08 +0800 Message-Id: <20200110162608.1066397-4-icenowy@aosc.io> In-Reply-To: <20200110162608.1066397-1-icenowy@aosc.io> References: <20200110162608.1066397-1-icenowy@aosc.io> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.io; s=dkim; t=1578673671; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=fUcO8MBlL3O+0Chjy85nPyBXPKjGbI6Ws5fExVUlrCw=; b=pakWsdvwVQBYzjCmWUDAvQ/tCK8Kj+i1YXk5l3VTiewS+zfEHI6dzqgvZP9p6n4lqcPR3u jBkX0GaDfFrkQurk10SH7uCa7ruDlEFuficiflxUMb6wiOeNll2VyhgnVR0G1iDrDDgDMw Xt3l9y99Fe5x+rCvT0m+/Vpn7RjOsrE= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Goodix GT917S is a touchscreen chip from Goodix that is in the GT1x family. Add its support by assigning the gt1x config to it. Signed-off-by: Icenowy Zheng --- drivers/input/touchscreen/goodix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index bfd067d7145e..43d8e1b8fb7f 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -239,7 +239,8 @@ static const struct goodix_chip_data *goodix_get_chip_data(const char *id) { if (!strcmp(id, "1151") || !strcmp(id, "5663") || - !strcmp(id, "5688")) + !strcmp(id, "5688") || + !strcmp(id, "917S")) return >1x_chip_data; if (!strcmp(id, "911") || @@ -1047,6 +1048,7 @@ static const struct of_device_id goodix_of_match[] = { { .compatible = "goodix,gt911" }, { .compatible = "goodix,gt9110" }, { .compatible = "goodix,gt912" }, + { .compatible = "goodix,gt917s" }, { .compatible = "goodix,gt927" }, { .compatible = "goodix,gt9271" }, { .compatible = "goodix,gt928" },