From patchwork Tue Feb 19 10:16:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10819647 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9139D1390 for ; Tue, 19 Feb 2019 10:16:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E41729F4D for ; Tue, 19 Feb 2019 10:16:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 716042A004; Tue, 19 Feb 2019 10:16:49 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 534122A23B for ; Tue, 19 Feb 2019 10:16:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbfBSKQr (ORCPT ); Tue, 19 Feb 2019 05:16:47 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35839 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728091AbfBSKQq (ORCPT ); Tue, 19 Feb 2019 05:16:46 -0500 Received: by mail-pl1-f193.google.com with SMTP id p8so10232091plo.2 for ; Tue, 19 Feb 2019 02:16:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lmCAQkrM3/OELxKaTZyIowffx998WPjdycggg3eSGMI=; b=H2cpbeCwfhQTIUv38zu6s2pBSuogVLWOWgqhYDLCeB3cA2FZnuhWUPlg7eCU+Wk6xH Lv1f3QQ/AcAH2WL28qxqo38YV0G9iQz3dt7GMS0eVMtT4NlItY1hroIiuFjedmybdaWI 68pggjNwv2HdHfeV9gyfGCavM1ai9UXICwRvE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lmCAQkrM3/OELxKaTZyIowffx998WPjdycggg3eSGMI=; b=aQrPbrBSXEABC/tKpzj/YCwxv4M8FG+65zFGd3um6HBjApSce/tFwPlvs9fw3PrX+E jFSTg7iMfwVHvUBGvUqJcR2Jv6psOwqLdCuuOd7eCGHSm6ritQrteJ4G3zZnBwbuA1tz BoHkYA7UYOEVtjsJEOv4zL43Ht0FNStaz1Rk0okZCehr38917K4t6d4vXbOF3mxqvRyO 6dlHLSR/wmNvUKpCTDKO66GS+3URpziXSFk7AoBDuGSRBb3qoe8Y8MkHPGEMo1EH/DKT uMINAGHtXgB12S8E+xjKPgJibuk03LwN6iMMCGsO4EAtgQBu9DlCugkj1zH70P5MdNG7 bFdg== X-Gm-Message-State: AHQUAuZOwQSp0xoVYq52kMK7Ud7X1lcA+7BhBGDusisPu5jnPuP1tXC8 azHz2lFdRh+X3ea0GkwBbaiPRQ== X-Google-Smtp-Source: AHgI3IZbnFzVs/Cf3JDP7goVyO8p66u/u3/zJdkShckeSL0NSq2lMuDl0VcnjNTulqdww4PXk4PrTg== X-Received: by 2002:a17:902:1022:: with SMTP id b31mr29818832pla.141.1550571406160; Tue, 19 Feb 2019 02:16:46 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id g10sm21324011pgo.64.2019.02.19.02.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 02:16:45 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Bastien Nocera , Rob Herring Cc: Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , linux-amarula@amarulasolutions.com, Michael Trimarchi , Jagan Teki Subject: [PATCH v6 1/4] dt-bindings: input: touchscreen: goodix: Document regulator properties Date: Tue, 19 Feb 2019 15:46:26 +0530 Message-Id: <20190219101629.15977-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190219101629.15977-1-jagan@amarulasolutions.com> References: <20190219101629.15977-1-jagan@amarulasolutions.com> 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 Goodix CTP controllers support analog, digital and gpio regulator supplies on relevant controller pin configurations. Out of which AVDD28 and VDDIO regulators are required in few goodix CTP chips during power-on sequence. AVDD22, DVDD12 regulators have no relevant functionality described from datasheet [1]. So, document both AVDD28, VDDIO regulators into optional properties since few of the goodix chip do work without these regulator power-on sequence. [1] GT5663 Datasheet_English_20151106_Rev.01 Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/touchscreen/goodix.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt index f7e95c52f3c7..b9b8f196dc90 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -23,6 +23,8 @@ Optional properties: - touchscreen-inverted-y : Y axis is inverted (boolean) - touchscreen-swapped-x-y : X and Y axis are swapped (boolean) (swapping is done after inverting the axis) + - AVDD28-supply : Analog power supply regulator on AVDD28 pin + - VDDIO-supply : GPIO power supply regulator on VDDIO pin Example: From patchwork Tue Feb 19 10:16:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10819653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7EB91390 for ; Tue, 19 Feb 2019 10:17:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C581F29F4D for ; Tue, 19 Feb 2019 10:17:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B96F32A23B; Tue, 19 Feb 2019 10:17:56 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 55A0129F4D for ; Tue, 19 Feb 2019 10:17:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbfBSKQw (ORCPT ); Tue, 19 Feb 2019 05:16:52 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40028 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfBSKQv (ORCPT ); Tue, 19 Feb 2019 05:16:51 -0500 Received: by mail-pf1-f195.google.com with SMTP id h1so10026765pfo.7 for ; Tue, 19 Feb 2019 02:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dvm7bD37UxENPIb3CxBZhvUUjAINwkuHpa0t8QKOOyU=; b=V74Sk8nPzpRuIM9hMhWz8A6Pk+kksIHNzegNNBSqj9Xte5idsU/oowu7blb27RyBdV OOzPCwtX+SwTAyrNxp/GqPxoSx6ho3KGl0ROQX/ibt4Q1kyiBeOVUmXmwwH8AV9DfIJC IfDk9k36LN+SMrr9IIWqpMDLhqbSV/4KDTy7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dvm7bD37UxENPIb3CxBZhvUUjAINwkuHpa0t8QKOOyU=; b=rBdv6syufl9LtZHtX6xmgb7zj6krrPVipfpVRboVB/9itYvtd5pGt7mlGa7QnAyuBo SGJA420FZbZ1j8eKlEyalASutbW8iL907cR9jFSLohhTdjPG4FyR1eY3cjIfy9QGrLCL kgw5hIXHJlXS5/2vSH0LiUdR/BkfisZmuZ1lR6J98ENAXxKsl9CUjjCHyojOTK19A/aB +HOcx6+DODGRyiPppV1+tuIzE+luY61N+KwV/S47qAJ9DU8XT4QFXn+ueMUImDZrWS60 W0eiYDYCqSK3SbyXkDUDaoW7BveTFRr3vXDX3KR59OyemCzb++A3qaTMO9pk9JsZaOur mK7g== X-Gm-Message-State: AHQUAuZdMoznlomLimaihEsSQfNH/90/t9dFSSrIlKexTpvWU0v625Ll LJJLyzram1kRnUxwe+7pPyeGUA== X-Google-Smtp-Source: AHgI3IbM9/oPdEbZ9Ab4p/1GXgJhLqPQSGkg5xrfvZ47xEe2pkHkw+lYM5n9jg7PAoCE0qXwRoCsIw== X-Received: by 2002:a63:1c42:: with SMTP id c2mr22987546pgm.265.1550571410859; Tue, 19 Feb 2019 02:16:50 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id g10sm21324011pgo.64.2019.02.19.02.16.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 02:16:50 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Bastien Nocera , Rob Herring Cc: Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , linux-amarula@amarulasolutions.com, Michael Trimarchi , Jagan Teki Subject: [PATCH v6 2/4] Input: goodix - Add regulators suppot Date: Tue, 19 Feb 2019 15:46:27 +0530 Message-Id: <20190219101629.15977-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190219101629.15977-1-jagan@amarulasolutions.com> References: <20190219101629.15977-1-jagan@amarulasolutions.com> 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 Goodix CTP controllers require AVDD28, VDDIO regulators for power-on sequence. The delay between these regualtor operations as per Power-on Timing from datasheet[1] is 0 (T1 >= 0 usec). So, enable and disable these regulators in proper order using normal regulator functions without any delay in between. [1] GT5663 Datasheet_English_20151106_Rev.01 Signed-off-by: Jagan Teki --- drivers/input/touchscreen/goodix.c | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f2d9c2c41885..5f9e755c5bc7 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -47,6 +48,8 @@ struct goodix_ts_data { struct touchscreen_properties prop; unsigned int max_touch_num; unsigned int int_trigger_type; + struct regulator *avdd28; + struct regulator *vddio; struct gpio_desc *gpiod_int; struct gpio_desc *gpiod_rst; u16 id; @@ -531,6 +534,24 @@ static int goodix_get_gpio_config(struct goodix_ts_data *ts) return -EINVAL; dev = &ts->client->dev; + ts->avdd28 = devm_regulator_get(dev, "AVDD28"); + if (IS_ERR(ts->avdd28)) { + error = PTR_ERR(ts->avdd28); + if (error != -EPROBE_DEFER) + dev_err(dev, + "Failed to get AVDD28 regulator: %d\n", error); + return error; + } + + ts->vddio = devm_regulator_get(dev, "VDDIO"); + if (IS_ERR(ts->vddio)) { + error = PTR_ERR(ts->vddio); + if (error != -EPROBE_DEFER) + dev_err(dev, + "Failed to get VDDIO regulator: %d\n", error); + return error; + } + /* Get the interrupt GPIO pin number */ gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN); if (IS_ERR(gpiod)) { @@ -761,6 +782,17 @@ static void goodix_config_cb(const struct firmware *cfg, void *ctx) complete_all(&ts->firmware_loading_complete); } +static void goodix_disable_regulator(void *arg) +{ + struct goodix_ts_data *ts = arg; + + if (!IS_ERR(ts->vddio)) + regulator_disable(ts->vddio); + + if (!IS_ERR(ts->avdd28)) + regulator_disable(ts->avdd28); +} + static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id *id) { @@ -786,6 +818,32 @@ static int goodix_ts_probe(struct i2c_client *client, if (error) return error; + error = devm_add_action_or_reset(&client->dev, + goodix_disable_regulator, ts); + if (error) + return error; + + /* power the controller */ + if (!IS_ERR(ts->avdd28)) { + error = regulator_enable(ts->avdd28); + if (error) { + dev_err(&client->dev, + "Failed to enable AVDD28 regulator: %d\n", + error); + return error; + } + } + + if (!IS_ERR(ts->vddio)) { + error = regulator_enable(ts->vddio); + if (error) { + dev_err(&client->dev, + "Failed to enable VDDIO regulator: %d\n", + error); + return error; + } + } + if (ts->gpiod_int && ts->gpiod_rst) { /* reset the controller */ error = goodix_reset(ts); From patchwork Tue Feb 19 10:16:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10819651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5C546CB for ; Tue, 19 Feb 2019 10:17:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3B8B29F4D for ; Tue, 19 Feb 2019 10:17:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9679D2A23B; Tue, 19 Feb 2019 10:17:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 49D7329F4D for ; Tue, 19 Feb 2019 10:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbfBSKQ6 (ORCPT ); Tue, 19 Feb 2019 05:16:58 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43923 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbfBSKQ4 (ORCPT ); Tue, 19 Feb 2019 05:16:56 -0500 Received: by mail-pg1-f193.google.com with SMTP id v28so9914370pgk.10 for ; Tue, 19 Feb 2019 02:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ybvRK6PwI6dB00OCQbIKqNRM5TMInYmAEtubVRW5xbw=; b=dPmv2FfF8o3VJWuFYMHm2yr1vGewOFGUt1WOtpNyzNtsH1q9DCGodssXcRmMYlfhLG 6P5N/7qeIbfOQqp9I296fSDi2yyOTyYDHazAmzdblI5KAeY+kHnb6JXcglqpraddvYq1 /5iN9xDrmTrdgQcI6QoBR1HRa7/995yGnwDts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ybvRK6PwI6dB00OCQbIKqNRM5TMInYmAEtubVRW5xbw=; b=edi169VF3uMhRXHGMm8/0Jsd7sLALM1UzKOTUKAK7UcWwKfQKHE4k77uhcJNVgcogK x9azj+AjHnpqV6CSEXpbdy3LwhOyZTViBpr9Er/VwsazqXea4Ry60xUxUBRE5Z94+mM0 caOU2xPJl/MMrkaT4XISt4ma6sYVvhQJOCzxODigkLhPG1oPpY5zQe/XvRNUgpfMOVZv mJ0eEu1nb+q9VstsTIC0EnRt7SYAOXynfO4/6pvCczungNsWC3D6Y0TSUvBcr9aEbPa7 987Sq4lrpGJ5DGd6YHFbDysNKc+EF5g0XFbR8UaUETMzPlvbko+hEurArtIaPfev9OZv YEJQ== X-Gm-Message-State: AHQUAubFX/l3P9N1W/szFiBBt5wUOPOJfDSnkfVp4ho0XEGLx+eAGWiO c7tyo2oIqa1SPu4O2f+laLP8Vg== X-Google-Smtp-Source: AHgI3IbjWyR6rKpPzwgrUebdFkpuronj/o8271Mom9dxP1UQwJo6JkyqBjHsblgJxLYtzxKXgED46g== X-Received: by 2002:a63:1a0d:: with SMTP id a13mr23208738pga.202.1550571415942; Tue, 19 Feb 2019 02:16:55 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id g10sm21324011pgo.64.2019.02.19.02.16.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 02:16:55 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Bastien Nocera , Rob Herring Cc: Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , linux-amarula@amarulasolutions.com, Michael Trimarchi , Jagan Teki Subject: [PATCH v6 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Tue, 19 Feb 2019 15:46:28 +0530 Message-Id: <20190219101629.15977-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190219101629.15977-1-jagan@amarulasolutions.com> References: <20190219101629.15977-1-jagan@amarulasolutions.com> 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 GT5663 is capacitive touch controller with customized smart wakeup gestures, it support chipdata which is similar to existing GT1151 and require AVDD28 supply for some boards. Document the compatible for the same. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- 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 b9b8f196dc90..1dcae643427f 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -3,6 +3,7 @@ Device tree bindings for Goodix GT9xx series touchscreen controller Required properties: - compatible : Should be "goodix,gt1151" + or "goodix,gt5663" or "goodix,gt911" or "goodix,gt9110" or "goodix,gt912" From patchwork Tue Feb 19 10:16:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10819649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE4FE6CB for ; Tue, 19 Feb 2019 10:17:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC5EF2A004 for ; Tue, 19 Feb 2019 10:17:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DE5D2A23B; Tue, 19 Feb 2019 10:17:03 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 42AE62A004 for ; Tue, 19 Feb 2019 10:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728391AbfBSKRC (ORCPT ); Tue, 19 Feb 2019 05:17:02 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:41953 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbfBSKRA (ORCPT ); Tue, 19 Feb 2019 05:17:00 -0500 Received: by mail-pf1-f196.google.com with SMTP id d25so1679969pfn.8 for ; Tue, 19 Feb 2019 02:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qBAytqDvKDadHVjYVKQCnCJze4dzvzWHsSozDnE632s=; b=X51BDEbMgUnJHjUCSEf92WD8DgJl62qb1uGyuOyMtmggIHFSocT+LDz1g4u5FFSvs9 g8gn6NeXHUPwqeq6Cjl9lYuxrDolHa+e2la/lwLJOGbLb/6tGWTwANXUzMvSr6LddHeN IZns7Wv5FN9nQFy9f+092yn8vTnxhkDY0x9Fg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qBAytqDvKDadHVjYVKQCnCJze4dzvzWHsSozDnE632s=; b=mh1J5iV8nJiBX6+zAprHvRuqUDADicn8XzAipAZiLfAIoB/KDkw/zMlom9/8Gw/qmB lgem/mWW8XZXn1AMvrL9Pt82J6i5rpyHgnkX+b9z3NEV2VbZQQZndDopsrepkxmhlzqF 3rh5GktDRkSwI14/C0wWqWup67oYdmeYsQ18Hd5+H40BnX3XhnNTCcM5wBVqBELrel90 He/9L8j+MU5l/ZuiIlOYJ1Smfq2eW33O3EcSYfVSffStS94dv3TIrSRDsL1yeWzw/mp9 2dSfhfi3NLgYndFr4NES5/pIXV6Q7sTJaOX1QVKeTfyQUamaDqkkL2Rrayr1Qz1WkrVO 0X1Q== X-Gm-Message-State: AHQUAuYXYnGPWVtHy6iG9VJkQXFzGBT0sqdXigKJupCDR2jYn4mHzL0z GPEOGVBd8uORXBs+sJ4uuk6tRw== X-Google-Smtp-Source: AHgI3IZt86G3crysCdL9JyMArvzdU1t7lU/H9wizxjAOK4q/ZSvtxoq7f7MAsHRcsPi2fPjqhH3uug== X-Received: by 2002:a63:ae0e:: with SMTP id q14mr27484370pgf.151.1550571419987; Tue, 19 Feb 2019 02:16:59 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id g10sm21324011pgo.64.2019.02.19.02.16.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 02:16:59 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Bastien Nocera , Rob Herring Cc: Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Mark Rutland , linux-amarula@amarulasolutions.com, Michael Trimarchi , Jagan Teki Subject: [PATCH v6 4/4] Input: goodix - Add GT5663 CTP support Date: Tue, 19 Feb 2019 15:46:29 +0530 Message-Id: <20190219101629.15977-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190219101629.15977-1-jagan@amarulasolutions.com> References: <20190219101629.15977-1-jagan@amarulasolutions.com> 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 GT5663 is capacitive touch controller with customized smart wakeup gestures. Add support for it by adding compatible and supported chip data. The chip data on GT5663 is similar to GT1151, like - config data register has 0x8050 address - config data register max len is 240 - config data checksum has 16-bit Signed-off-by: Jagan Teki --- drivers/input/touchscreen/goodix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 5f9e755c5bc7..405246d61701 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -219,6 +219,7 @@ static const struct goodix_chip_data *goodix_get_chip_data(u16 id) { switch (id) { case 1151: + case 5663: return >1x_chip_data; case 911: @@ -1000,6 +1001,7 @@ MODULE_DEVICE_TABLE(acpi, goodix_acpi_match); #ifdef CONFIG_OF static const struct of_device_id goodix_of_match[] = { { .compatible = "goodix,gt1151" }, + { .compatible = "goodix,gt5663" }, { .compatible = "goodix,gt911" }, { .compatible = "goodix,gt9110" }, { .compatible = "goodix,gt912" },