From patchwork Wed Dec 5 23:52:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10715115 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 9B99017D5 for ; Wed, 5 Dec 2018 23:52:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AAF12E1D9 for ; Wed, 5 Dec 2018 23:52:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A9D52E1F8; Wed, 5 Dec 2018 23:52:38 +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 610A62E1CD for ; Wed, 5 Dec 2018 23:52:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727575AbeLEXwc (ORCPT ); Wed, 5 Dec 2018 18:52:32 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38388 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728489AbeLEXwc (ORCPT ); Wed, 5 Dec 2018 18:52:32 -0500 Received: by mail-wm1-f68.google.com with SMTP id m22so14706382wml.3 for ; Wed, 05 Dec 2018 15:52:30 -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:mime-version :content-transfer-encoding; bh=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=ojQM4UTUB8kZmgqURs1XcmR2d2CHy+4UJTRQa9ultIw82NLt4YdJyqfgJy1n8OId41 JjORmLT7tTXOh5h4i8ShAl80mJY7/jouv83Kn8Ri0MCqldtI2BCcjFS93whiHUmaXFkp fIs+6PgznWffILv35Fj7Ilrz7Y5QHC/2mfLLU= 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:mime-version :content-transfer-encoding; bh=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=ntyn9djlDWWCUW5haaUWAudX0hcmtdJmyv+xV+j2aEbX9ZzPpbq40OXKPIkMAQluwM LS2s8meAmPtAdQtXQbo7R9ESK7JJD4Aqo9VIyPqav8SHUJkXqFjp+yLeDtDy0qU1efQp t/pcEwJUcWFTWBvB+ZO+YZ8mG6fpGB/6XLFJZocEgrPmtxDuud+QoYRwIDYXrfXGsbxX PEmLwXEeN1ZX9yTAkiFl79GRYjCM6NQRzJ9oBaRrAM9DMmedqfiCnUEbLm2KT+JIahWT Vf/tYM1YFV1s0IA//qyTlhO7YtihHKzaZxG9OANooEqci9nDNz8zHvDE676uXPzYJh3H Wqsg== X-Gm-Message-State: AA+aEWZkMh84CldAfwmSUmlbr5hsB6egDwWMSJbl8qEoSPI7EArVAX5z 3fJZBGN5q4Y0vvcvk+qJidVbVg== X-Google-Smtp-Source: AFSGD/X8R+x8XzOlAAY7qIWjGrfWTNlSph8zGsN/UxuV0PRexFDdSHxvVyQyvBJhnQRgsu6kLwE22w== X-Received: by 2002:a7b:ce84:: with SMTP id q4mr18497621wmj.105.1544053950027; Wed, 05 Dec 2018 15:52:30 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id x15sm19113324wrs.27.2018.12.05.15.52.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 15:52:29 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v2 1/4] dt-bindings: input: touchscreen: goodix: Document AVDD28-supply property Date: Thu, 6 Dec 2018 05:22:17 +0530 Message-Id: <20181205235220.3461-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 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 required board that used on GT5663 can enable it via device tree. Signed-off-by: Jagan Teki --- Changes for v2: - Rename vcc-supply with AVDD28-supply 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 Wed Dec 5 23:52:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10715121 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 0220D13BB for ; Wed, 5 Dec 2018 23:52:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4BDF2E1CD for ; Wed, 5 Dec 2018 23:52:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D64612E1F8; Wed, 5 Dec 2018 23:52:57 +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 BAC4D2E1CD for ; Wed, 5 Dec 2018 23:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbeLEXwe (ORCPT ); Wed, 5 Dec 2018 18:52:34 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36726 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727762AbeLEXwd (ORCPT ); Wed, 5 Dec 2018 18:52:33 -0500 Received: by mail-wm1-f68.google.com with SMTP id a18so14718060wmj.1 for ; Wed, 05 Dec 2018 15:52:32 -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=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=SFZLKqa07jB+I+9eKm/4rEpndVBtrkls+WtaeK//lYJ70sIBn921bc3UrDOUl7o+cH iuTSK1kY1gKmCK5ghMdhMwZfGOJlZjxdm8DIfzb6VgLA6OOtd3yHi9bQnrNDnObYXwks gcD/1l75Mf6FjBOWHVcX+vSwEYaKtF866HsuI= 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=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=JXXWmB5py8JMv7mLcDkfRAlp5nr6CUXKxRl5i+Jm/chCEys/+ZU6cvQ2aeQqE1keRZ VI/cp0cBCXxomCyuuJts4gjm6Mz0AXjN27duyUE2PAMTNfO+KwvNY1HbE99/m8GcnZ/y jBPtzEBl1+c1Fbm7jozerjBFuBfyiogkrk7c55dgEn7wJV0wHb1rkkSw8e/sV6NXK8PK OMU7H51cXK4Wv+vXkGHBRv9KX5/R0+mUuPYP1BmciTeYMewqEWTD0ys89ZF0buDJb7sC ksZ5/kxM9KfhOxFAXWfRq+jk98mlNwk/XMifNHTAc71VinElrlHeQSRx/VkcEIwJ/v4P bQeA== X-Gm-Message-State: AA+aEWaNqQVrVcbVPbk1qoNBYx0P3GHWJleyXHM7ueAcDxVbSBTIiPZ0 JdklZth8JPMDBjlCEp/g5jp7FA== X-Google-Smtp-Source: AFSGD/XQDNliKlJmlnBnT0V5lCbVyFo0/Mnwytx7hEowZ/u54DhqIbdefL5WpZooQ8qwGr6IzCxRLA== X-Received: by 2002:a1c:f8f:: with SMTP id 137mr17208559wmp.96.1544053951508; Wed, 05 Dec 2018 15:52:31 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id x15sm19113324wrs.27.2018.12.05.15.52.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 15:52:30 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v2 2/4] Input: goodix - Add ADVV28-supply regulator support Date: Thu, 6 Dec 2018 05:22:18 +0530 Message-Id: <20181205235220.3461-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181205235220.3461-1-jagan@amarulasolutions.com> References: <20181205235220.3461-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 --- Changes for v2: - disable regulator in remove - fix to setup regulator in probe code drivers/input/touchscreen/goodix.c | 33 +++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f2d9c2c41885..7371f6946098 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; @@ -786,25 +788,41 @@ 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; + } + 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,23 +841,28 @@ 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) { struct goodix_ts_data *ts = i2c_get_clientdata(client); + regulator_disable(ts->avdd28); if (ts->gpiod_int && ts->gpiod_rst) wait_for_completion(&ts->firmware_loading_complete); From patchwork Wed Dec 5 23:52:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10715123 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 AFD6B13BB for ; Wed, 5 Dec 2018 23:53:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A06C7294B5 for ; Wed, 5 Dec 2018 23:53:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9501C2E1CD; Wed, 5 Dec 2018 23:53: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 7F10A2E1D9 for ; Wed, 5 Dec 2018 23:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728489AbeLEXxB (ORCPT ); Wed, 5 Dec 2018 18:53:01 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36894 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728238AbeLEXwe (ORCPT ); Wed, 5 Dec 2018 18:52:34 -0500 Received: by mail-wm1-f66.google.com with SMTP id g67so14607224wmd.2 for ; Wed, 05 Dec 2018 15:52:33 -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=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=id4yHN3Vf02QJ1PJ89JVDE076s9hk+Tml7Ts8MU3pR8BZZHsx6k95l8H4TgQ3GnQ0X 4WwyhWJHam3tBgF5ccnUF0S2gd1ebuAlbU+d23XWMzwXHVt0DH/bMcMQBpd17ZycLmG2 T/g0p/rcKSHhLyuXjR0aYmkTriq4VQU/4j7K4= 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=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=sEbf30O90r636q+GbR16LyTgy+VQcDeNalF3z089WLH+3BnlWAJpJTXHUWhgWrQs5p wYvcIstiGoJS437S5EQMR4yfnpITbhFkvMG4aDCXlcr+XIyXeFZ+4RgsB+Kv5y+KNp4N nZ0YJnJIKR8xcS0B476MrjhVzWd4jswUK+Vq0aygwWeS0jJ9WUufxd6J0xCIRjjSynj7 oQSWuaqzXDslj1Vtuzca798+jd9TQyFg9mr99mknI2Ia4ozINLMhLHm5hJ1iAnasd+c1 utYS6wotZUaQwqZ5l2QHHY1ll3xtEPvRrGzjHYnxT4CnzSSJqRmCreCDYRSmB3KoTDNi NqMw== X-Gm-Message-State: AA+aEWbMxa3gMZ3YxMS4maJ+LUooHegt9tIX/13JjHgLBwsVPPMM2LnW Yxhku48PmmBeKyCc95eMX/LFtA== X-Google-Smtp-Source: AFSGD/Ul5OJP189LT1g2uSzGTdLp1sw7Bwr7ypYcykIz2JwJSN25oYXLaNdGty5fZASIuM0Fuyzjjw== X-Received: by 2002:a1c:cf82:: with SMTP id f124mr18249282wmg.95.1544053952866; Wed, 05 Dec 2018 15:52:32 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id x15sm19113324wrs.27.2018.12.05.15.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 15:52:32 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v2 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Thu, 6 Dec 2018 05:22:19 +0530 Message-Id: <20181205235220.3461-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181205235220.3461-1-jagan@amarulasolutions.com> References: <20181205235220.3461-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 --- Changes for v2: - drop example node 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 Wed Dec 5 23:52:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10715117 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 BC2DB13BB for ; Wed, 5 Dec 2018 23:52:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACA692E1CD for ; Wed, 5 Dec 2018 23:52:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A06202E1F8; Wed, 5 Dec 2018 23:52: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 879642E1CD for ; Wed, 5 Dec 2018 23:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729116AbeLEXwh (ORCPT ); Wed, 5 Dec 2018 18:52:37 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54797 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729057AbeLEXwg (ORCPT ); Wed, 5 Dec 2018 18:52:36 -0500 Received: by mail-wm1-f65.google.com with SMTP id z18so15061230wmc.4 for ; Wed, 05 Dec 2018 15:52:35 -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=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=iWwODtGL+p5+HjcFOD9WW5VmwWfFYIMYB5jTpIMby8Eoa7ES5fP6D+o6Bu+0yYt9tZ qLdkVQqSCbtDTsdjNW8KEv9abXO7grTu9z7qgSbX3n22OYHQ7CnOZh+HQp1vevlKIBgw Ai0fOtx9QKTq8YKoth5ORCAaQUzFZlsKwrJKw= 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=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=fznF+JGuekXze2I3E6fyAVJHDihQjqkDB7vcL/+ebGC+W8IRl8Ijzpk7HdQGc7Ykoq gD/85G013/6rugJUnD/IuGZK0nAfPQOm/T3Fdjf2Dlzw946XVlhRZcu2aNlaSK4w29ML V6NKp8hw0n3ZPjUBX2bwGnPdAqthOcORLMi03aGI/RzsOIf70tmqxOwR4g0piGy7Pd+x nInLvEbjNlIcdFhH0m9geXOCridWR5KkPf1lz0qMo9zB5/Qwk5M8TV0TgfPTHPtspa8W sIGaK/cp9P06uJH6+v16zTw+vIc2FnojiY6d9HZ9Czc2Mup4JQJCoR9Q9hDGnG7HRUev 4LZQ== X-Gm-Message-State: AA+aEWbOvQqvsthbk9l8Aw/eG0EMd0fkoFF13E7jbxO9B+vttjtvEq4K /9BcPUjeNjLPFDp5k+r7Ps8hVA== X-Google-Smtp-Source: AFSGD/WUtGTyXChQB4SSF3UhZTr4VvBJV5a8ZH5dzmD+Sxl8FGfrmT8vSxlL+DviCLcyzbzS2grvwQ== X-Received: by 2002:a1c:b94b:: with SMTP id j72mr17615353wmf.11.1544053954594; Wed, 05 Dec 2018 15:52:34 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id x15sm19113324wrs.27.2018.12.05.15.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 15:52:33 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov , Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v2 4/4] Input: goodix - Add GT5663 CTP support Date: Thu, 6 Dec 2018 05:22:20 +0530 Message-Id: <20181205235220.3461-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181205235220.3461-1-jagan@amarulasolutions.com> References: <20181205235220.3461-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 --- Changes for v2: - add chipdata 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 7371f6946098..735ab8e246b6 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: @@ -965,6 +966,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" },