From patchwork Tue Feb 12 11:24:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10807777 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 7873213B5 for ; Tue, 12 Feb 2019 11:25:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E832A673 for ; Tue, 12 Feb 2019 11:25:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 575152A710; Tue, 12 Feb 2019 11:25:29 +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 EA6C32A673 for ; Tue, 12 Feb 2019 11:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729033AbfBLLY4 (ORCPT ); Tue, 12 Feb 2019 06:24:56 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34732 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728971AbfBLLYz (ORCPT ); Tue, 12 Feb 2019 06:24:55 -0500 Received: by mail-pl1-f193.google.com with SMTP id w4so1167530plz.1 for ; Tue, 12 Feb 2019 03:24:54 -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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=G8w8fphBPXuj3iBildqXBEz+tKWOTChJi5Z+AlxcFyYgpOnhsjVpJ/YZFIoYya6bq+ lONaDnBOTiiUn6x1Dp9fNTnutBd5UyL58GyYlmbOoy4Dmhl5Dg/h05MJx9XsA6Q/M2Hs hhpmeb5b+we3YP/QS1O7KyMC7vYfbvaCe49P0= 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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=FpHDSlPXxjJn+lFujIdk2KjWA4JCmcXHGDSsaAgeYEgb8EPvuwTwA8g9h3vgg7rhHP eaQgwG/WROGNETPsIfx/2vIPuJivLVEqfVcqpXHHn058Dwm2Cp05TEd/mk/FDO/fQanp DiQmcifScTAej1bx0y1BCZuklFineHv+5pcdEut7xYee8Z87cwn1oQVJVolZWFgsO7tp gBl3+IjLkusWjSH999xf3C3rPJqUqJjW/uAWeSj/z0qKHGRJqjeyRsN8A/dcKbcClVmg 4dpDAje99B0cFQMLW0MisVdWinveqNcPQ+m4YyT2t67zrrReuXvA5zHK9zzRKw+zN4mw rLPA== X-Gm-Message-State: AHQUAuY4Fa60sTu6usDX15hE/rHvFNw91wcqbKfYKumaVsuSbogn+mtm opUNf9cnaTKOU1MXc2BXI+zGPw== X-Google-Smtp-Source: AHgI3IZ1KKRlIKJSIhCoNaqVEMSLdHPFzuXNCIw5K0cRVx6r/Ew/kq4DECmyPVAwmGSS0C5yhy9zag== X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr3409148plh.302.1549970694385; Tue, 12 Feb 2019 03:24:54 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id q28sm22399460pgl.35.2019.02.12.03.24.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 03:24:53 -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 , Jagan Teki Subject: [PATCH v4 1/4] dt-bindings: input: touchscreen: goodix: Document AVDD28-supply property Date: Tue, 12 Feb 2019 16:54:36 +0530 Message-Id: <20190212112439.2025-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190212112439.2025-1-jagan@amarulasolutions.com> References: <20190212112439.2025-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 Most of the Goodix CTP controllers are supply with AVDD28 pin. which need to supply for controllers like GT5663 on some boards to trigger the power. So, document the supply property so-that the require boards that used on GT5663 can enable it via device tree. Signed-off-by: Jagan Teki --- 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 f7e95c52f3c7..c4622c983e08 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -23,6 +23,7 @@ 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 Example: From patchwork Tue Feb 12 11:24:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10807773 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 C1AF96C2 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B16D22A673 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5EA32A710; Tue, 12 Feb 2019 11:25:04 +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 3CC572A673 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbfBLLZD (ORCPT ); Tue, 12 Feb 2019 06:25:03 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34739 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729466AbfBLLY6 (ORCPT ); Tue, 12 Feb 2019 06:24:58 -0500 Received: by mail-pl1-f195.google.com with SMTP id w4so1167586plz.1 for ; Tue, 12 Feb 2019 03:24:58 -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=KymeUwjgm1K3Y8XpxtdBBwhSts22Nd+Sh6iYQzrT0QA=; b=OMjXcPzd7yYj9evtSeUM1prt5u0z6HVdH8LS6bH42VWdypGwM9vtoVklqWPDQkHeTf ti/kuDFFLwT8nyVH7ey2UklJ5mL/btGhac3KGK9n/SbO3kGY5x3tBlZpEdldidnjwsk7 gh6HPtkGzpyqBNf6qpkxv+fUgyEKOx/+P3fFA= 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=KymeUwjgm1K3Y8XpxtdBBwhSts22Nd+Sh6iYQzrT0QA=; b=iXZsf0cKV8tRsk8K4uf0bZ1hbgATSvRb/5NwZ5VIr49UV+lBQjnI9MaM0X4TIWNVJK apOqtao6dlQru0rDr2yEzLvmhwRNSmn0VZ9EwOFP3nNLbwAAGHIGcfoGvAJF3UUCxV6Q zHN+i+CD0Td06Y5b/KrCzy0xRB88BzMcEw8E4kOgF9Q0g1YEqpsH7lqw/5OPFHeyqZlX 4R4mB93h/o14aBHEjP9MsYZp3xlbcHctMhuxJIMdTwFfOi4jEW+NlCRilH9AgKxzdLrw 6FkwCXfpyHz1hkyK8Yce6ON2wpYEuMel9cU2KOreT2bbJswUh+HIMdcICveEIFOhotJ2 Rrwg== X-Gm-Message-State: AHQUAuY6AnhJIm8ao3VIgL40Sntki3QlApYw8KLdKrymURMtXYJbIAp8 bpMXexlb6vhuLi+DydnuATcAIw== X-Google-Smtp-Source: AHgI3IZw60aAAchUpY16XpvuA+i8sfcAb3jxXBzGpTa0jZ273epu3pEv6Q9I0VV1zHZffTgRjiSqyQ== X-Received: by 2002:a17:902:b615:: with SMTP id b21mr3533559pls.338.1549970697857; Tue, 12 Feb 2019 03:24:57 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id q28sm22399460pgl.35.2019.02.12.03.24.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 03:24:57 -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 , Jagan Teki Subject: [PATCH v4 2/4] Input: goodix - Add AVDD28-supply regulator support Date: Tue, 12 Feb 2019 16:54:37 +0530 Message-Id: <20190212112439.2025-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190212112439.2025-1-jagan@amarulasolutions.com> References: <20190212112439.2025-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 have AVDD28 pin connected to voltage regulator which may not be turned on by default, like for GT5663. Add support for such ctp used boards by adding voltage regulator handling code to goodix ctp driver. Signed-off-by: Jagan Teki --- drivers/input/touchscreen/goodix.c | 44 ++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f2d9c2c41885..e92b90be1ac2 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,7 @@ struct goodix_ts_data { struct touchscreen_properties prop; unsigned int max_touch_num; unsigned int int_trigger_type; + struct regulator *avdd28; struct gpio_desc *gpiod_int; struct gpio_desc *gpiod_rst; u16 id; @@ -761,6 +763,13 @@ 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; + + regulator_disable(ts->avdd28); +} + static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id *id) { @@ -786,25 +795,46 @@ static int goodix_ts_probe(struct i2c_client *client, if (error) return error; + ts->avdd28 = devm_regulator_get(&client->dev, "AVDD28"); + if (IS_ERR(ts->avdd28)) { + error = PTR_ERR(ts->avdd28); + if (error != -EPROBE_DEFER) + dev_err(&client->dev, + "Failed to get AVDD28 regulator: %d\n", error); + return error; + } + + /* power the controller */ + error = regulator_enable(ts->avdd28); + if (error) { + dev_err(&client->dev, "Controller fail to enable AVDD28\n"); + return error; + } + + error = devm_add_action_or_reset(&client->dev, + goodix_disable_regulator, ts); + if (error) + return error; + if (ts->gpiod_int && ts->gpiod_rst) { /* reset the controller */ error = goodix_reset(ts); if (error) { dev_err(&client->dev, "Controller reset failed.\n"); - return error; + goto error; } } error = goodix_i2c_test(client); if (error) { dev_err(&client->dev, "I2C communication failure: %d\n", error); - return error; + goto error; } error = goodix_read_version(ts); if (error) { dev_err(&client->dev, "Read version failed.\n"); - return error; + goto error; } ts->chip = goodix_get_chip_data(ts->id); @@ -823,17 +853,21 @@ static int goodix_ts_probe(struct i2c_client *client, dev_err(&client->dev, "Failed to invoke firmware loader: %d\n", error); - return error; + goto error; } return 0; } else { error = goodix_configure_dev(ts); if (error) - return error; + goto error; } return 0; + +error: + regulator_disable(ts->avdd28); + return error; } static int goodix_ts_remove(struct i2c_client *client) From patchwork Tue Feb 12 11:24:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10807771 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 99B511669 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89A8B2A6A0 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C1C42B496; Tue, 12 Feb 2019 11:25:04 +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 1B80B2A6A0 for ; Tue, 12 Feb 2019 11:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbfBLLZD (ORCPT ); Tue, 12 Feb 2019 06:25:03 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35518 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728819AbfBLLZB (ORCPT ); Tue, 12 Feb 2019 06:25:01 -0500 Received: by mail-pl1-f196.google.com with SMTP id p8so1165827plo.2 for ; Tue, 12 Feb 2019 03:25:01 -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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=jb8tmixTe8vNIL0kFX68s8W7CQ32XaRvscPfqyFo0sP+lASF0aiI+WJqVLrfn/Isps c7MgUj7qIWkbJQ1YWzW+81uqBYqlRZ9x+8T4AbqXr5Ry819P6/j1SkqAA/TmcxolvjgD EXSs9LS4BzPRD/fEoYy4lYWEXnyqS5dsaioL4= 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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=WemIIK07l2rmPJeVjsr0E5oo/86cD2oyPkZM+3swchnNyDzxJeM8Mz7t5eMEgoww6T wOxSF/kGIT4d21GrAIM4r9370KSrMfNxu/zannOFVL5kHitasspCy9W5HKiMAsKQKbPZ CdXMNchG6zSrgP4PG6Ts/EVa4kJFpdSsCZbss/RDTbK2PGTyoaeOZEUb5fqjuXqQFwby GFWtJ8pQ7teIkrjgndMXxEH9qhry841X45EW5slbm9ua+ppKzzcM+GiGIBEiVGFSfJi5 6vfmMw55Pl3CiYKv/BxKx+cXY4t5OrnrNsbkOVk5YOOvWeFb6Zh1PkK+XTsYRsoucC4g 09Zg== X-Gm-Message-State: AHQUAua4TTLej4oFJO0IJJXrQpWombPFgR+Dnv0iw4WDx2dgovu1nYTv JZGFzQCMRToECHmoT63Xo2Egkg== X-Google-Smtp-Source: AHgI3Iae63XfS6haCAMBSISZHqmTtoPiV6gNNuJFxw9sBjKPkdaMfhC/sOLcGN0yZ9gzlZsX5irZDg== X-Received: by 2002:a17:902:2bc9:: with SMTP id l67mr3540022plb.241.1549970701206; Tue, 12 Feb 2019 03:25:01 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id q28sm22399460pgl.35.2019.02.12.03.24.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 03:25:00 -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 , Jagan Teki Subject: [PATCH v4 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Tue, 12 Feb 2019 16:54:38 +0530 Message-Id: <20190212112439.2025-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190212112439.2025-1-jagan@amarulasolutions.com> References: <20190212112439.2025-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 c4622c983e08..59c89276e6bb 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 12 11:24:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10807775 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 125266C2 for ; Tue, 12 Feb 2019 11:25:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00AD72A673 for ; Tue, 12 Feb 2019 11:25:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E73F02A710; Tue, 12 Feb 2019 11:25:07 +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 8F0FB2A673 for ; Tue, 12 Feb 2019 11:25:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729504AbfBLLZG (ORCPT ); Tue, 12 Feb 2019 06:25:06 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46321 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729499AbfBLLZF (ORCPT ); Tue, 12 Feb 2019 06:25:05 -0500 Received: by mail-pg1-f194.google.com with SMTP id w7so1098163pgp.13 for ; Tue, 12 Feb 2019 03:25:05 -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=5jN1AEYXn1oTS8hv3nCa5g6mHOWe4184ZoqP3aZRC2A=; b=Zorl0OBnsEZ3WXSdMUxKLQZqEZ3CXkhgtEuipWlqZsyQy96VWSN8+UGfnGGLw8kKQE 0THRWJFKPZOiOHxCBZGAGDsypDOVGUBa/9pXUJRCOniPl7tigqK81aBNLDGfTcM1w92I 8RVrwh5L95rtw8KYUO+qdBYzUjZp1EoRUfPUg= 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=5jN1AEYXn1oTS8hv3nCa5g6mHOWe4184ZoqP3aZRC2A=; b=cMhdAyPI59zILO14fmQwjohWk1RlqQmhpFAZvDMGf5ud3tIUQbNcwW+k8Hchbwq14E G2WmuDUM8w4/pULE/G+QR41PmrEidHA/e5HORTYxHe+ch0Uiv9y3SRZL9SoKltXfHwtZ 3gyri3DUSbUvcPFW6JknFDLgFyEX77F7/3ipOZ+SL6OCn3DHg0Gvgxwd7mcE/yv0ThGb 3NG1PcxvkZb4b4t4pgL8qO4UEXvp2NHAgNqVLGAxOYRF7O4ch7H2vWhV1bhAfyNOBsnG mc8kNepT/bRYOvtz0+e5WhFYPyGWCL+IXMNDHSgTt+Wlw6lfVDGMFJIpPsgRQlO9E7te VSIw== X-Gm-Message-State: AHQUAubE+F63WZCnaJIV8IMtpNOy2KuqjaltaOa0i1gEJJmvNBc4P5Tx OJriBT2zEQQ8swh0XmHF7HF/jw== X-Google-Smtp-Source: AHgI3IYpJkLOgwEvgrN30KB4Xz09IsHt+0WLdxDUbvSjjF3tCLxTgzilXaAw63FSVifHZ2b+hNZSIw== X-Received: by 2002:a65:424c:: with SMTP id d12mr3224976pgq.126.1549970705026; Tue, 12 Feb 2019 03:25:05 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id q28sm22399460pgl.35.2019.02.12.03.25.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 03:25:04 -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 , Jagan Teki Subject: [PATCH v4 4/4] Input: goodix - Add GT5663 CTP support Date: Tue, 12 Feb 2019 16:54:39 +0530 Message-Id: <20190212112439.2025-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190212112439.2025-1-jagan@amarulasolutions.com> References: <20190212112439.2025-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 e92b90be1ac2..9a676dec79c6 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -218,6 +218,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: @@ -976,6 +977,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" },