From patchwork Thu Mar 21 08:21:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863029 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 3662F1575 for ; Thu, 21 Mar 2019 08:21:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E93C29F21 for ; Thu, 21 Mar 2019 08:21:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12DC429FE7; Thu, 21 Mar 2019 08:21:44 +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 B1D5E29F21 for ; Thu, 21 Mar 2019 08:21:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727977AbfCUIVV (ORCPT ); Thu, 21 Mar 2019 04:21:21 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38611 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbfCUIVV (ORCPT ); Thu, 21 Mar 2019 04:21:21 -0400 Received: by mail-pf1-f195.google.com with SMTP id 10so3830905pfo.5 for ; Thu, 21 Mar 2019 01:21:20 -0700 (PDT) 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=YMUNzEzuNv5+/G7LTk2UNMwsYgPjYrZ+abL8baBFG1I=; b=J/YsD8di/55xadaz8dvQEnlByFKXWpDWuyPthAKmZnRlx+9Nkxo8XX25M51UZnP3ZJ xjRB63poBciyqTWuhw41lz/GkHOVl7e22QDTaFWj9HiPmGLvwmd9+5ov5xZpoY735fWW xZE3z0vpB8Tq10rvjJ1ujaVT/NkweRSMnAMXE= 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=YMUNzEzuNv5+/G7LTk2UNMwsYgPjYrZ+abL8baBFG1I=; b=f/r8gjesTHt9JKHNMqsEqgbht7Iz2GQsqfhSubeSHgEg1GrWIvkDj7vLHeeRXCMMoH xheCzp1WdctmyzFbncqQRiA8PTEJRs1WmpMlzsdfSY5uYd0ZmTnwTUWO9eDypvAyrMR0 URCrJEF/zN70cAuHgSnd7N9hev0T5mPwkZ6Xfms3hRwn5NMCjjohu19bX6+1O2as9HNG bzpSgYkxUxdG0avhRVGEZ9ewbwOmvEWO6UJxwuGg69wgtM8nHJstz4/1G/UHqa6HvWYm aiW2rQ1I/JBJ3i63S7VO5fxgs4TwBYpDWS2h102aEFDNfvnyDzBPzbKF2PoY2RMXe0Th ZQIw== X-Gm-Message-State: APjAAAWqnBT/EMf8zxusWsZTqfxcZNH0qKiQlewzVFU88gvksf4O5c07 hjU2/XiYz1oEg+I6DJfhoaDrzg== X-Google-Smtp-Source: APXvYqw0vT4bnNimJrk86UnIp+C1drymPdpGuM6BqyJ7N3fxlEb8G+5phcT8jCw5YAydtbCQFd0LgA== X-Received: by 2002:a17:902:a5c9:: with SMTP id t9mr2228455plq.196.1553156480222; Thu, 21 Mar 2019 01:21:20 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id b138sm6288681pfb.48.2019.03.21.01.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 01:21:19 -0700 (PDT) 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 v7 1/4] dt-bindings: input: touchscreen: goodix: Document regulator properties Date: Thu, 21 Mar 2019 13:51:01 +0530 Message-Id: <20190321082104.2874-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321082104.2874-1-jagan@amarulasolutions.com> References: <20190321082104.2874-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 8cf0b4d38a7e..255673250bbd 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt @@ -19,6 +19,8 @@ Optional properties: - irq-gpios : GPIO pin used for IRQ. The driver uses the interrupt gpio pin as output to reset the device. - reset-gpios : GPIO pin used for reset + - AVDD28-supply : Analog power supply regulator on AVDD28 pin + - VDDIO-supply : GPIO power supply regulator on VDDIO pin - touchscreen-inverted-x - touchscreen-inverted-y - touchscreen-size-x From patchwork Thu Mar 21 08:21:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863027 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 36ED51575 for ; Thu, 21 Mar 2019 08:21:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E92B29F21 for ; Thu, 21 Mar 2019 08:21:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1275829FEC; Thu, 21 Mar 2019 08:21:42 +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 01F2629F21 for ; Thu, 21 Mar 2019 08:21:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728017AbfCUIVZ (ORCPT ); Thu, 21 Mar 2019 04:21:25 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44012 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728016AbfCUIVZ (ORCPT ); Thu, 21 Mar 2019 04:21:25 -0400 Received: by mail-pg1-f195.google.com with SMTP id l11so3692698pgq.10 for ; Thu, 21 Mar 2019 01:21:24 -0700 (PDT) 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=z/xVWk5dO82lfFtPDZKsgcg1B373xfEKm8H/gQlJdy0=; b=BI0LV8Tt8sSLmhJe3nAFyPo7lb8y/OS0Gr5C9Lq776TM8mqM3139hGFjSJo6IGbs7D P6YmUlG9rivqEbPZ6Ld/k7M38Ptt1WM8J1KiQBqyOJKmv6u4pvz4XV+wC8IS13DhdZ5U hgi30t3VQhBFAzs5QJ0r35KnTw639Y688lVjc= 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=z/xVWk5dO82lfFtPDZKsgcg1B373xfEKm8H/gQlJdy0=; b=C0y9IaZmTWpy7tF+nN74VsVWJyo3bLQUCvIhXEocX+hN4h8uR7mtt7yJqzfMlT6tnh rpjn4EUKmxhHhXrHMYliclZJAgVeFdTwBI5aIJl7IKe0xWHf6eDVRR8x4TEyrDA6tqwl bXSFrJYown+miHF1Kr4P1jGmqo4cwpvMyYz58gtlzQz79hIQ8M0HFIoxEcSMclZLrzsQ kYRfE34XHSpkxnGDVsydtweh76PfAXEeGuUlQeCnWdkNRltk9wFhhJcznpnqgGereJo7 XkcPL5BrxjavMzhQtf6ErhRKXPlZ2iHKPIUqT24agI9lUTneTfzXityANWs7wlVFBFQ2 ZUHg== X-Gm-Message-State: APjAAAVMCG8nyAL/VOow59zfdgYJQnhcVezbN+GA/pM0qvr0LqlrS8l9 grTrNFA9/iBsv68ACksMQIQsHg== X-Google-Smtp-Source: APXvYqzWCnQK3/GdCmEVC61sBBIBJyff2uu2R7M0sbChSWzOx/5oKkQTwWB5oeyLnwr3dEymFKDjBw== X-Received: by 2002:aa7:82d7:: with SMTP id f23mr2151127pfn.114.1553156484117; Thu, 21 Mar 2019 01:21:24 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id b138sm6288681pfb.48.2019.03.21.01.21.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 01:21:23 -0700 (PDT) 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 v7 2/4] Input: goodix - Add regulators suppot Date: Thu, 21 Mar 2019 13:51:02 +0530 Message-Id: <20190321082104.2874-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321082104.2874-1-jagan@amarulasolutions.com> References: <20190321082104.2874-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 f57d82220a88..de5b80a08f41 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; @@ -532,6 +535,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)) { @@ -764,6 +785,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) { @@ -789,6 +821,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 Thu Mar 21 08:21:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863025 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 6DE986C2 for ; Thu, 21 Mar 2019 08:21:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55C5429F21 for ; Thu, 21 Mar 2019 08:21:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49E7229FCD; Thu, 21 Mar 2019 08:21:39 +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 F203629F21 for ; Thu, 21 Mar 2019 08:21:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728039AbfCUIV3 (ORCPT ); Thu, 21 Mar 2019 04:21:29 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36397 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727887AbfCUIV3 (ORCPT ); Thu, 21 Mar 2019 04:21:29 -0400 Received: by mail-pg1-f196.google.com with SMTP id r124so3723505pgr.3 for ; Thu, 21 Mar 2019 01:21:28 -0700 (PDT) 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=6aoqLYQZIT86Ut1f16fYi5QgoUZkcEWYGhmNaJd7vFc=; b=bUn2PwUhGhtRsvxfvBhnRmxvWHNn+TEEOcyTTd98twmTXS08GHaL3kLBCO1HuLJ9ZN kLrq73FA30qGy93HxrPEWPjFyE/zJNXYab9hvg50NfDT2A9hGercLlksLmDLss/2QWK0 +bHoADzzOiKVmyvfVdS/qs6AhOgVRK0juJZ68= 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=6aoqLYQZIT86Ut1f16fYi5QgoUZkcEWYGhmNaJd7vFc=; b=j6HrmerIH8vnishdXxwqJOnIO1wncscWZETny3clMtWMHheX20jNYhrsC5BcA8Jzt4 7pDn3aJofE/jFy4Hw2DWqjNDALYpMMLdHYv+P4zcFBsw97pUVZRvmAMLOST1I72p5lVB shmNE7UJYlmkVtHuluPoWNaEAsNPQCVX/iV7WZ8v+0YmD4vyFvXOo4dm52IjoKThEhWf HckVs4bn6oGFrmfpD3IP7hj9dz7ymx1UajU6RTLXOcluH4xlpbyLKIHzQMBOJPpBNPBt 4RZzDjJCq36zTOGXoCmwTk5ZRBimD5CfjQGWeeQaUqw1pCUz2jNzFrJUUNZdKGT0+lS7 NYqA== X-Gm-Message-State: APjAAAXtCSzjnEBFc/FDWONmblR9DBhnjTAAseY+6Gma1EZ3pmVPh4pg pDNVWwjGZuO2V7wyu880+KcAEQ== X-Google-Smtp-Source: APXvYqymoM32RrBaGjgzQUiIP4RtxwvVP/neCuILi0DhT4kmeyYgQamdl1OlR8q6Ahy0c3Re5eLILQ== X-Received: by 2002:a62:e502:: with SMTP id n2mr2146664pff.242.1553156488261; Thu, 21 Mar 2019 01:21:28 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id b138sm6288681pfb.48.2019.03.21.01.21.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 01:21:27 -0700 (PDT) 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 v7 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Thu, 21 Mar 2019 13:51:03 +0530 Message-Id: <20190321082104.2874-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321082104.2874-1-jagan@amarulasolutions.com> References: <20190321082104.2874-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 255673250bbd..fc03ea4cf5ab 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,gt5688" or "goodix,gt911" or "goodix,gt9110" From patchwork Thu Mar 21 08:21:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10863023 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 9D7CE6C2 for ; Thu, 21 Mar 2019 08:21:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8553929F21 for ; Thu, 21 Mar 2019 08:21:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7742329FCD; Thu, 21 Mar 2019 08:21:35 +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 12D9E29F21 for ; Thu, 21 Mar 2019 08:21:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728055AbfCUIVd (ORCPT ); Thu, 21 Mar 2019 04:21:33 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46130 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbfCUIVd (ORCPT ); Thu, 21 Mar 2019 04:21:33 -0400 Received: by mail-pf1-f194.google.com with SMTP id 9so3572516pfj.13 for ; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) 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=JHR4URZIW7IuMIK7c59NYIYWSg7ZlWSVaAjtcwyfIJ0=; b=WzUQJvKPl79/7o0FSclrCsgoRVYxCRoAkgOAPVBLh0ACdJRDgTr24XRkbSXxw+zMqk Q6/FboI49UBoyGizUkRU59eUYsuJfQx/AmCWn3GaYKC3ExeB+VIMyOnDKUDvuvGv3QlZ aXREbLKeKlOst5s/h/LaUvbsju9RvrHTz3rA8= 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=JHR4URZIW7IuMIK7c59NYIYWSg7ZlWSVaAjtcwyfIJ0=; b=hGQv8fQ5pIibnsdy4krcYEgfUikDk22QZhYEUj3j16QAzkMHTfK3j8bwCeB6mP71It QX0K2PrCyZCRL4wyTLx6TtvaGEbh91+ROmP8wweNn0GH/X9IUhDHa4EBfagShxbdky0k SSBD+SPZZJdqOm1T7VoXrLGD7Gj5+5/vk/FLGfR/rw+SLyN7wlmpIrqoK+leDhlhmQnH 7XQUw/z7j3R0qdZthOgqyBepVA4wwok2elwlEiBG2iDPkdKQzpVM0pX5VnmYn+XpkD5h Vn+Dx1fYmcvkhZcUiaHa2gO/7itCsyPUfZYkfj6DO0kH2OTONh52DxTWfAqrML+s6Z9O k4NA== X-Gm-Message-State: APjAAAVJMY1VHoJnn4+7A+o+ZON4Cof+aIE7ihC+0N3qoEdV7i0LygX9 Gu/YXJdbHZ/QsBj6DwFDC6MfFQ== X-Google-Smtp-Source: APXvYqy2B31ROp3oDkFeGxOL+UKJN7lVGkY+cfTNpymD/B891rTzLISg2HmucXgBUzFDhaS+tWtuFQ== X-Received: by 2002:a63:c511:: with SMTP id f17mr2207375pgd.202.1553156492116; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.234]) by smtp.gmail.com with ESMTPSA id b138sm6288681pfb.48.2019.03.21.01.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 01:21:31 -0700 (PDT) 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 v7 4/4] Input: goodix - Add GT5663 CTP support Date: Thu, 21 Mar 2019 13:51:04 +0530 Message-Id: <20190321082104.2874-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190321082104.2874-1-jagan@amarulasolutions.com> References: <20190321082104.2874-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 de5b80a08f41..c558b091749c 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: case 5688: return >1x_chip_data; @@ -1003,6 +1004,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,gt5688" }, { .compatible = "goodix,gt911" }, { .compatible = "goodix,gt9110" },