From patchwork Sat Dec 15 15:17:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10732269 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 03CB113BF for ; Sat, 15 Dec 2018 15:18:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6BEC2A20B for ; Sat, 15 Dec 2018 15:18:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB0922A21A; Sat, 15 Dec 2018 15:18:32 +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 90CF42A20B for ; Sat, 15 Dec 2018 15:18:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730481AbeLOPSZ (ORCPT ); Sat, 15 Dec 2018 10:18:25 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:43381 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730471AbeLOPSZ (ORCPT ); Sat, 15 Dec 2018 10:18:25 -0500 Received: by mail-yb1-f193.google.com with SMTP id d136so3473286ybh.10 for ; Sat, 15 Dec 2018 07:18:24 -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=g+i/SEh9cZHqNUWg5gf3ZLOdQNwFkh7jlgcXDwSIMm9FqDuLSCXQQUF1Nvdhz0SdAH 288121am77WfEtHk9JQwnYIwnIn2wSkloCdm4aIzvVoYAv6PVK4WmOwukj/HP4cJ/3Vj +Rdy97KqFVDz+hfIgRpJ0Ndi3k0P1jwUhOD8M= 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=qICvryRVdIypqwD8C/G0krmE+NqBfF5HUDc6SJ+KM8LgBQGm+3xkKzt3yAYKsqVkX0 GU12f0A+QdQmUYsf1uTBANM/J8tqhsq3STefs7hA+BXbrgFWXHcSbcAKtxMU1il9azQ4 Jv7u6z8mXdSQB5xPpQoYVJiVaszGn8aH/gUhVhJhjxDG6Ge8THSUa48WP+LmAD8WGbqH Ioxw82CRaRV5Ym5my2UulW6uf490saTWZkHmCaA66Ofr4ajcHnYE30Bt7ANDhGzi2v1t lKjpo4CrzW/iSim+kDb2nrtbqQLaPHR3CR6BoK9B+nF2rf+4O4P51JXRPC4+lY9y7wtX UlTA== X-Gm-Message-State: AA+aEWaLMjnbg8z08bMqsZjuWMjNcp/lSSXRyQ+RBnwCT3UPC8IAxKq0 rOlbbyZfrAKKL1n6aOdV9LohyQ== X-Google-Smtp-Source: AFSGD/Uoj97klWTZgUmr4LF9/Nhz3cawHt+FRDR0zdk91JA5OM40Zr/O45CJIHoVWo5RGfH37FuD1Q== X-Received: by 2002:a25:ae60:: with SMTP id g32mr7291451ybe.66.1544887104176; Sat, 15 Dec 2018 07:18:24 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id x203sm2855664ywd.41.2018.12.15.07.18.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 07:18:23 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov Cc: Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 1/4] dt-bindings: input: touchscreen: goodix: Document AVDD28-supply property Date: Sat, 15 Dec 2018 20:47:59 +0530 Message-Id: <20181215151802.18592-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181215151802.18592-1-jagan@amarulasolutions.com> References: <20181215151802.18592-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 Sat Dec 15 15:18:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10732271 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 3375713BF for ; Sat, 15 Dec 2018 15:18:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4362A20B for ; Sat, 15 Dec 2018 15:18:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13E492A21A; Sat, 15 Dec 2018 15:18:34 +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 A8B0F2A20B for ; Sat, 15 Dec 2018 15:18:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730529AbeLOPSc (ORCPT ); Sat, 15 Dec 2018 10:18:32 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:44473 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729687AbeLOPSc (ORCPT ); Sat, 15 Dec 2018 10:18:32 -0500 Received: by mail-yw1-f65.google.com with SMTP id i22so3521480ywa.11 for ; Sat, 15 Dec 2018 07:18:31 -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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=evQM7WvDHyHl5fGSTI8wfMF0MVUtL2cz6E7uBIpl/mRLocsnoZoNG/BWNFKcMelVse pCSXMYRL00wTxKRlXOXxw8dYrzCRO/Kk9mCH3H1UJmvVXNzdFIxLWUpcBTtsnU8dbLTC DUwgmHRuqA0HB5CAJXV3yzHkMkzWRL1ecxcV8= 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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=JW4PKqS+R16uXVCQrEGkT1Z4i1gusDhtHJAZhoMIvSYjhXmR0i/XCO+TLC5O7dHsbH MCTz6/sVTUIbAtQ9fjwd2Dt0XTODBuEcEEdGbGPmEWzZKhewNbLu9+RfUQTucfjLJHml eXsil4Nnqz4axgYa/0q3qTGvZiCbBkAO7rG0oYL7r8GEmEO7casJAV8JNha3oc8QYlCF n0j/C/FGD5I5XEvO7EUJw66Yp6FMGx7YEEnmVd9KdVLGIxOnvU0w8uFWSuuPShqt3OD2 eSRfqbaZIHYbr+V0bZzuMZFJzzhU+XXlISRLoz4uduBn4WtHmhri7hnCtAQtTFXMC7rs koPQ== X-Gm-Message-State: AA+aEWaE3rCYSL6qCrkbfl8kDBZg4fCte6SuGLmweMTB7mriIIHwahTs AiaeDFfcQ1osJXAIhkpJwZ8NAQ== X-Google-Smtp-Source: AFSGD/Wi6tAd7HmjDwzb6rDJzvGE0fYLx4X4BSO1sbNxUJUmMsC65tNTm0UHMPKsvuNGTTEIO4Yqkg== X-Received: by 2002:a81:37c3:: with SMTP id e186mr7399784ywa.506.1544887111397; Sat, 15 Dec 2018 07:18:31 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id x203sm2855664ywd.41.2018.12.15.07.18.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 07:18:30 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov Cc: Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 2/4] Input: goodix - Add AVDD28-supply regulator support Date: Sat, 15 Dec 2018 20:48:00 +0530 Message-Id: <20181215151802.18592-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181215151802.18592-1-jagan@amarulasolutions.com> References: <20181215151802.18592-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 | 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 Sat Dec 15 15:18:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10732273 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 9A97F112C for ; Sat, 15 Dec 2018 15:18:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 897C72A0A8 for ; Sat, 15 Dec 2018 15:18:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D2152A24C; Sat, 15 Dec 2018 15:18:40 +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 0D77C2A0A8 for ; Sat, 15 Dec 2018 15:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730566AbeLOPSj (ORCPT ); Sat, 15 Dec 2018 10:18:39 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:32889 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729747AbeLOPSi (ORCPT ); Sat, 15 Dec 2018 10:18:38 -0500 Received: by mail-yw1-f65.google.com with SMTP id v20so2145654ywc.0 for ; Sat, 15 Dec 2018 07:18:38 -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=GOd9gV/fEGy6FOrXnP/Dt+RS/POB9a6/AbK+YNka40WG3lCAWgHQrrtbX1Uip602dD FdsYlCEHcAZnut5J5ejI9Yz84uXN5uUu8DTrk7EC0TBUoSC30IjcztzdFxV/SK/SJC2/ z9cYzdfEcPmIsx1i08F/i9JgpfFDqA79kNMwo= 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=ej56y18RF7kf3VErFXvanN+YHYTz4XQJl0T2a6WU5/Fz2KRrWrUTdlpVSiSppqG1Um PG1GWPduU2bOp0QhQ16kqdQeK87MMdgPZsguhPy2tRd000kk+tHMC0Kxvf/5RV4AGNn6 wrTjIp2V6hOb2TWM38OBXbXFNB7PdAjUknVjY9MLJRZTq9ml1uZfDpf8iIm1+vOAlFI+ I6mkL776rBdrMypOdG/+o4Mj7HhBbhotgWgw0s8QinEq9zlAsUppk7Aq1rfdjY2TnPK4 z4fXJ2S3nds5p6lyoULApU8cM0LBEiFIWQMAdRsRKSzcOgevy61v7FuYGcXpqCz9SMbz fv4g== X-Gm-Message-State: AA+aEWbPiRm1dTHXcPhe6WU6iPDHpLpXM17VbJDEJtGYUtlCNbG9IHRU u/hZyFrTXpSigqXDPz/HPv6YEQ== X-Google-Smtp-Source: AFSGD/U8d0Wp3GGo7id10vjkQ6Wazer4sjVtNPz1LPizeCW3sOvrtgc1Hd4mOLGC2Mg8Mnj4y4aDqA== X-Received: by 2002:a81:918a:: with SMTP id i132mr7542052ywg.256.1544887117576; Sat, 15 Dec 2018 07:18:37 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id x203sm2855664ywd.41.2018.12.15.07.18.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 07:18:37 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov Cc: Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Sat, 15 Dec 2018 20:48:01 +0530 Message-Id: <20181215151802.18592-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181215151802.18592-1-jagan@amarulasolutions.com> References: <20181215151802.18592-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 --- 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 Sat Dec 15 15:18:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10732275 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 B081113BF for ; Sat, 15 Dec 2018 15:18:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CFEE2A388 for ; Sat, 15 Dec 2018 15:18:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D58D2A391; Sat, 15 Dec 2018 15:18:52 +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 3DC522A374 for ; Sat, 15 Dec 2018 15:18:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730599AbeLOPSq (ORCPT ); Sat, 15 Dec 2018 10:18:46 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:36205 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730595AbeLOPSq (ORCPT ); Sat, 15 Dec 2018 10:18:46 -0500 Received: by mail-yw1-f65.google.com with SMTP id i73so2370995ywg.3 for ; Sat, 15 Dec 2018 07:18:45 -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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=fVC6bKaw6eqbYhWUKZX23R39GST/ZuU1lG12A703cH45erfwRMm0OjP+T+HAkUsGQ3 lOpiLk1qedrJHUuG5AfLQl0/UXhlMyAtKzBGvg/Hy3D6Hu/v4diYnx9e4QQtHWTmFuXl 7G+QoLwCkykn81om7orz2ysgyh8AMKu6qjcso= 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=b64OrCzpkBhBPxz+s7EaIWhK4ECBr/e6mbWn47yzKROZINZthuzozz3vQlfr84sVAW A99W4/RSpo4kudzU4cXgPg+awurGcHipSZiidcQkOQ/8o0HsdSZH3ZA1kCuj59tAE94r Ux9VDA+7cXUisiK//J4V5YGMvTXsGF/QcfiQaOXJStunHnCF+6rWtkWimbHlFprMUKgN XaJxWmnKuN63co6Q3o+1xEi6xF2560bH+Ms5I/3/X1l4GG9zFGqeSjP5HJdSSzSHHJFe 3oFy7wYEiIFUa55O8lwBriQFhhJwPDog/DiZOMMQ//Kg+xmAg3jktNqga3nspFLYFrgl GRQw== X-Gm-Message-State: AA+aEWZNNGJd/wINp1o2n9rK4HOsO7iYXsL7Jswah9uzeF4yf6/RfAje ct8JnH4IeluszZGZQogB6PLWPg== X-Google-Smtp-Source: AFSGD/Ulz76WX+AW4X53a/2eSH1TIJPOeiA5LM2XPzlX5Pp0a21wqE6EHbbXPpiLnwUgRGYcG3VF1Q== X-Received: by 2002:a81:ad1a:: with SMTP id l26mr6951367ywh.324.1544887125255; Sat, 15 Dec 2018 07:18:45 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id x203sm2855664ywd.41.2018.12.15.07.18.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 07:18:44 -0800 (PST) From: Jagan Teki To: Dmitry Torokhov Cc: Chen-Yu Tsai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 4/4] Input: goodix - Add GT5663 CTP support Date: Sat, 15 Dec 2018 20:48:02 +0530 Message-Id: <20181215151802.18592-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181215151802.18592-1-jagan@amarulasolutions.com> References: <20181215151802.18592-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 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" },