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: 177 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A15E83F9B9 for ; Thu, 21 Mar 2019 09:21:22 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id f1sf4988723pgv.12 for ; Thu, 21 Mar 2019 01:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553156481; cv=pass; d=google.com; s=arc-20160816; b=HcQVF90SiJTQ7mkoqLPOGBYtn9Roi4Pvna3LIPx6JDhAYKl6sx4V7vPZBBhiJg3ecI Tgn2rbD8pqL7gMKSBN6GbRIkmqiZPnJk2TJVozQUdntbtHGG/JNzZhymI/WIYKf9eNrQ o6E3su4kEsUcCYx/PqtxJa8QBTdKLIdj/NB6+qD8Gnb4tSmr+YyXwXACGoroke8fUhvb Oalcw0XYtOvMxTLXMafgzANVMD/vbU3160Nms/YL/uZxQriL12BOthouGtvWlrGz4lgK xqNVJg7k6cqOmK7t82xBJ/PO9fm72cEgjaiId//kLx+8GpS5exOdcEGBu2bz+PZ+UpeT khHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Hz8uYXzwAOJs5dWZ1DE/RunRZmMzupA5ScNMfgqN934=; b=Fn3zXmUtCk2XT9ptsYvwTWZhmhaF9Do3Kr07x2uL/5+22BKeFd2NzW3RSB7CvT659F v+X/pW2gO4k5T13YhGYqc9GY0Fmbbvg5fT8RTfAXmFFvUh0XQ3vmhVpN5dwMUYP/gtBn BYI5Gd7jjz5+KJwdkLNK0S1dsET00YHn1FQPjVuNtQcc9qPToxBXsEYNGbkHhYzLJ/bl 4yuc/bzJWb5WfMuwlPzesCI7aVsGSq+u7p5GUFJgO2/9ZjIsmU8M7ni+k5TXfD0yiLNh M9L1RP8e/BCFZuVS66jZh518H0UGDKlqU48A00hoTf4YjBO/YUFyPhs+Uzqs21DEIQxA hs6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/YsD8di"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Hz8uYXzwAOJs5dWZ1DE/RunRZmMzupA5ScNMfgqN934=; b=ZZlQx7aLJpXwtxDLghwQsukdVo0I1EACqJP+q97casHfTAwJcFflr3IEhD8DnBuj9s E6w6KirdcSy2VShZRgC0ENsLI6RY08X/Yk0iboNkgmSLmcOl6yDZnpp3euZjH0Yvvsuc /exee6gDYL/2ilDkucDGsdmJxrkQO0HPcImGM= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Hz8uYXzwAOJs5dWZ1DE/RunRZmMzupA5ScNMfgqN934=; b=sR9m59k42uM7VEyWc9pNHNzB1MCrY3B0dqxuoZZa7onW+xZwQ53a14ktizFXMGjpN0 Hem08MHaP4gRpe4t9+btAigEV8iXFsmCfN5ZWyoUcyW1QwhjeoTj51S6JOTrll8l54tF M/22AmBXKM6JPJemNuuUzHWKQ2i2qh5gb0vvAHpmBGaRzq2xnTCfw1LvzOl3ypz9BhMd lLdUrYqHyKqwErL8dQU8mU0FlybGGwh7G+tdOYCPUHf9qxS1PCm1eM61/QCuZBFn9MGw AwAHLZNmWufvqEwiVCbjJvtyyxUmH2dP3kRBhNkJTvwJS+DmAovEoqhcl8YlDc8E4dSO PuRg== X-Gm-Message-State: APjAAAVlf+X4UVY0Mjq1YeOT1/WLnBpmHlrSeD4hQKwXnS3ZXWC8LqMc kPWn2ayMY/JHZVZgOG2SQc67lil5 X-Google-Smtp-Source: APXvYqyBgcsr2vJKshcHSNEkuxR7G5TqTNEhxbXRnyQQ+PfTxjGroqiSvsQlbF+yJFsdkE/4k2kQXA== X-Received: by 2002:a17:902:b108:: with SMTP id q8mr174346plr.1.1553156481024; Thu, 21 Mar 2019 01:21:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1281:: with SMTP id 1ls2071293pfs.4.gmail; Thu, 21 Mar 2019 01:21:20 -0700 (PDT) X-Received: by 2002:a65:6548:: with SMTP id a8mr2191816pgw.103.1553156480622; Thu, 21 Mar 2019 01:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156480; cv=none; d=google.com; s=arc-20160816; b=o6wCG/r1MXtVpfBjfHPc/dl9ZeWeuefQss+jSQ8ilFNrpGF8d96ahtOGSBSiOSXL43 YSAgMyYZhXX/YE0AMiflSplpRXAQqf33qeRxgxrLPf3rVZDj104jsDU0udj/If7VvfSH JUwWly/7rfrei/PsryHdG64luPlhi5EQ682kIHBoGaOWFUGInhhxTaqCd942QG1dOsjl XPa7XWtHr+X4FNz1d2AlKevyH7E6qq6oWDzGDsq2Pv5xScsT/TaXQQxmYGTDG5Zr4TTA 6ZRO1OHs9ZWaEW8PuFAVv9uZwHmnLPcs2sPLzF9mll59BczwlhbMbDwwZH3IIE8ZErYN /t2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YMUNzEzuNv5+/G7LTk2UNMwsYgPjYrZ+abL8baBFG1I=; b=jWsyjruNlVJMHMbIGDxexskuSepA56G5HIfKUjmOOYxShk2rG2VsC2ZwzxrzkYnG8Z G+V3TRnQkH8/tbE7DdK/KDUgB6ymhsC4l0cYegqRqhfMXOHgz36DLxscORUrgeEBF7Pg NXm+Q6SZwlhcJftdiuSxRe1Nildv/GonH+bJ0bbOTGCTLicqDz85ump97+bE3zFqaXhR j5PF3RzeaPIbbKBqiGkl1v1Ml8y/ImU76m4H4MNV66AHj5UyyC8gpFcBSZOzqM8Wtsfm WxwexP8tvBsqxVKF4GwnbHKG46v8dCFKbCOKaG4GrbWycApDXf8ERg1j5qCOYwSj6Hhx QjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/YsD8di"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 92sor6289324plw.48.2019.03.21.01.21.20 for (Google Transport Security); Thu, 21 Mar 2019 01:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/YsD8di"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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: 178 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EE73A3F9B9 for ; Thu, 21 Mar 2019 09:21:25 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id 14sf4897567pfh.10 for ; Thu, 21 Mar 2019 01:21:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553156484; cv=pass; d=google.com; s=arc-20160816; b=W70Cfo6GTjUoZR12h63VvAWMGKFVXASTpLBa8pi0gBv8iltr8hOjjcCyBazy+9b6GH sTwRdqDh6IzKaRu/W/icpD8nYnyc9RiUOjznElpLSSS/BfezYCxO10iHnKuhxifEwNEK si7AwBbhPeN2PLxwKQ972Pfx55nvRcL9mbT5D52NziZew+0nQGJpralaekdkczEFipOr ayQkLdh7b/SS5x1c3CNP6YOyQ9j3VrCSshQK0VVt1YXFFgDsWexk308YcjdZvWcDYaIq 2BhgqnaPGXrtsCXiGeTyz8EapaFThNBc5oRchsRLEOGjQIzGeD/t+obDRZ/6G26Dcfvp 4GUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=uMijz6cHH7uZLYVr3vbC5y9gkYPxgOAi3QKfQcvtiL0=; b=e2MDjSf2GdSc96ZvIZOFjZtSURfSkHTmdIVNNQFCzxlz0em4vy+OSv2l3K4S7z/R+O P6dxIflPlddk0JVi762SQtu7hemt2NhpNZRU8fhVhjWZ7WlaKIAhu2u/CqGdCzC6AtwK m1aetH2k580Rmlw2ypkbezSlOGDtglfrssm1iHpcXE8ELZa3HyDvX6UYd6fWkCSFj10a tHpox5EQLUMLMdvl9kYD9THEtJ/jx8AEO6BvTXib/ET2WME0HDn9HgeK3AkjSVca6RV3 r0Gq61ld8VHOj33g78woSfzWCd9XGpmV7AC6iQMeJqWkTZr/iUbBhMrJYDmUs5zyu4YK AIiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BI0LV8Tt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=uMijz6cHH7uZLYVr3vbC5y9gkYPxgOAi3QKfQcvtiL0=; b=WoM6yA8as9MYS2IyZRoGQe/Da6yP28nJqei3d2a4ijGzR7Gg39pHwFDtC4neqBTYBq yRRiPMY6HRHDTehFGMG68vHz5qVCMQkye+vpCO/FeMqtESQj1sxkU4gxIHEkK07qWCly 2LS/9R3cfesfFukTCQ6C+JzKhX5J7I7a1NQg4= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=uMijz6cHH7uZLYVr3vbC5y9gkYPxgOAi3QKfQcvtiL0=; b=owWFxGge8FWazxgsCKp6eUSut8CJ9niklNCICblC9NrCbgOOVQjyv6QhFHAY1QrTSY uG+r9waTKT+NZ9gC8Y1dJ1GQZ+irF2Fy9r9mPJwxFScGd+9u1btfpieOr5Ph3AL7BybJ Gja7c97hFvDhJC+7Xsvyp90AhNY73Ar6yhtWif4NLShrrT62xntRDYPUIPq8V4dghHEa k4jbFCCs0tJ7+fWpW6qN6jizGu7KQ8HLSNBrzfj6cl2YceDMwrKynPe+NagY2lRewywo 9fhO2a4Y/FB0JJT2bwxNhlYA3BwBgWCbM3RfMO6QoYnuLBX34BNpkOVdrJ/0DIvTwWs+ Y72g== X-Gm-Message-State: APjAAAXapRu+JyDUT70IoBbXt80f1Ksi7CNUCrWYX0USkuelYz0BUvcE 0FgY5x7m/BF6KIxs7F9HGm16lYgm X-Google-Smtp-Source: APXvYqw8UvjwdPXO+T01H3KdSOmR51CEx9boWrZ7p0DT54h0Cp0F1r/+MRuAdYCMQIr7PDaVADBsSA== X-Received: by 2002:a62:7553:: with SMTP id q80mr103049pfc.17.1553156484805; Thu, 21 Mar 2019 01:21:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:164d:: with SMTP id 74ls2066034pfw.7.gmail; Thu, 21 Mar 2019 01:21:24 -0700 (PDT) X-Received: by 2002:a65:50c8:: with SMTP id s8mr2191071pgp.308.1553156484410; Thu, 21 Mar 2019 01:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156484; cv=none; d=google.com; s=arc-20160816; b=tcCWftqdggR62u3IqhrdqGhLeyK/yLbkSU9FJpIIaME1tykl/13kJgE9QO4SwWMwnE N7kKGs+7KnJj7bFthRTNl+jXu5IWCjVZtd8PJqGuvqej2cRvccmjonDAOpNftCJRYw9T WhoslvWJFzJqa9j7m58zuCORIpS/MCdsj/5cdlkBY3+lNZRvLuiWfMRpxt0KJkW5sSVc CNp8rqrih5Qa+ZBwCRcMarGHwI89Gy6dCXroENXL8SOgiUouTysWSNyQ9r69lccR8udn NlegkP3MvDP0/orw/6fWacl70BL6MZjyngUg+YHZD/kvYuE0da0B5Xsh+hHyaLS/94ZL exyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=z/xVWk5dO82lfFtPDZKsgcg1B373xfEKm8H/gQlJdy0=; b=YSRO3DalWd8cqjfEYAl4Ts4t3hmmk/lQz8y6vPeoc/1EMq4wbKa09bXOK7BqsW8Cft 1kg1FxICajDe/Q6ULZZ/jP9KUgtpfsO1ru5fDshRbO4KKDDZnvbwQp7t+1YC8TV3GK7H JZZqm9VgOMhC2mG05o7hSSp63Q1AJEKEW7QSWUMG2GKphNN8qNQ1kLjk/bUnZOlEcDZq cioT3IgkHJlGth6GE458oYndLMZWDuEyufOwU7ZGhGHN1ywHvfIMjPTHmQlPkELl+oQs WRUhTtiEFKreiXFqBCJtbMKdOzklJMIFJe1ExiCQsldfctzQD7hkU54iJJ+Mlbpce9T8 5hXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BI0LV8Tt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o19sor4470347pfa.65.2019.03.21.01.21.24 for (Google Transport Security); Thu, 21 Mar 2019 01:21:24 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BI0LV8Tt; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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: 179 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EC9463F9B9 for ; Thu, 21 Mar 2019 09:21:29 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id h15sf4965163pgi.19 for ; Thu, 21 Mar 2019 01:21:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553156488; cv=pass; d=google.com; s=arc-20160816; b=Qx50qO1EEoDX3ev5ePgXw9SXwSfjSnl6K4a2R+fjCGvA9PqGUtUaMK/XCE8m+UP2iO IRi2TZRPeOZqbDl3SAETjyO4VmUIDh2xBcOfQo/e/wFbz+TNowhFzXh9943hI0Wc3E6d qPqoUDM+AsC2njCkR2Q0If2QOtVlTCAm8ogIrs/6X9NJCaxPTVDOInB1awuzPqRIbdr6 xhl2bE+6Hg69nN5BWIqegt0L/dftlt1eOmWtBTns84hBkpg+a22c6gz/fgO9tWyNKQ3Q G8DrfYVbC3CfSoQ6z7FSb9Jdt0Vr5ziVdBBFfRpvq8UGsRitz/4GwX/O5Z9eyAjK425U j1eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f0VPPCvChrtXUczuYufNyJJYiGvwqwi9EEUK0cMTr+0=; b=YVjikQzvE6CChfeMqxTmsX0X1fehspmc0SYm71KYGhh2VO3flrxzjKWRmGXHYZR6Br 2cYq0w/Y4ImAHjv/0kbUe1U+DFMEBpLs9y58n+q2qdwmomxZJuxRtEv5danAwqmxy7jQ lIwK8r12O0F5c0/dmXoih2nCPnCJhaQ0gxUP/+jmN6jaSn27hABRw8lbq4azZ0NpmbG9 3XJqPZupu2FwHZ+3UW4tSA8dZw86ir79nosITOjc2ZIPv0keJv2VtXnrSD6k24yGlKRn E3XAZg79GSQ4P3C3rxJhxhj/1zCKlKoKTsyqKiFodwEe9+XW9arNs9NRD3jWCFTtQnnp kNUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bUn2PwUh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=f0VPPCvChrtXUczuYufNyJJYiGvwqwi9EEUK0cMTr+0=; b=DJVKfguvfi3h8QsQrvC00J2D8yMtjiJPG/9W74W2skkX/HvDi23B9GICKjMoc6Kt12 H5b+xzKCKhsq2kpzmAdtJFSBdNTEce3/J7z5bQ1Y/yaRjmeIR9hH2vhxyLzYqcFsK409 N9g15oHBLIHMZJzUxnJn1T5DP3IdxufQ+jGDY= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=f0VPPCvChrtXUczuYufNyJJYiGvwqwi9EEUK0cMTr+0=; b=ZCqQVm5/jw5JeijF2BWn71ng1g1W7Y/80gnl4pJYfYcRmhqbDMbzONEMF/NzT7Xchy 7S5l0UBnEfPjJlXzlLL6ZB6rO1EnIo7/s1HkO5F/ez2aHaaKjteAAkxtVuXx0UE+1bnR S1LJbMf2sQ93GYxSXlsz9hAGOQjKY2c4gg6dBlalhExfMeKNbsILWHZV3YprGNa3WSw7 rgpqyh0vAhZdQ99/ZsEQxRh54xrnIp41Yo6UHrqMAHHASvYApDE+hLJyhPIXsa2gP6wW erpkgdjNyqNP077qqDJ/s+fz8Sc6pRdC2T42KKoWGY+qhebi1YdsXwHqm6XzkHBNguNJ eFlw== X-Gm-Message-State: APjAAAUmEN5gkfQRjigh8j2D6UZQ0Jluzpv9ySJ3k6t0VlQXQw1GCT2x XPJUE9z+j7ohAnPiV4Tvdfgc1+nQ X-Google-Smtp-Source: APXvYqx82lYVJPV1QQZb4ihxgZ9IR3pW0/QlEQe7Na/iV22TzR0dDdb3I+iHvXDdknCenCM/QqnQZA== X-Received: by 2002:a17:902:b901:: with SMTP id bf1mr22020plb.90.1553156488797; Thu, 21 Mar 2019 01:21:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1281:: with SMTP id 1ls2071400pfs.4.gmail; Thu, 21 Mar 2019 01:21:28 -0700 (PDT) X-Received: by 2002:a63:af06:: with SMTP id w6mr2180460pge.338.1553156488505; Thu, 21 Mar 2019 01:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156488; cv=none; d=google.com; s=arc-20160816; b=0SqSOZTwxVGL1NGRZe5UiVwjXf2vYoRaJ6vlW8SZTaUtWZRo+aelVTsPDiMYtjwAUH 8B9LSCIN/lvw1nJsD5EPRC/3lFaFDslySO8IdHL9k/T9GjRX/3YWln6oxxmB5o0q04FT 34se3v2itmOb/OlOvML5pzSpfFO3juApUMZZAAXrOb5wCdEONQQrFBWlZe5X2UxoUbLO uh6O7juTXFidCmT/Tlz9tX8Au7Iscz0j1YMxuH26fTje3RXcvj0qWDnoCi77WqRH+8Yb 1UZh7PI80j3+UhhQ7/G7qlksH+qvA998Scz2Q0uTkyQVEp34wY4HcflyxaojMAYF8qRg jFEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6aoqLYQZIT86Ut1f16fYi5QgoUZkcEWYGhmNaJd7vFc=; b=WST6qlH43kKfg4n2H6Lcn4DDimoiRqNUvQ7FYMVZegYTldiUKnqn3yTqD+ETVs10MN HyMhpleIG8YC7mhyvQ4gdv4g/TXMqAEnR+G5DcBZnbLAqa6Y79tzf1QlPtSjQzLv8BWQ ilocUA8+CjwpWxg9tj4xDVO6OYM23KI+HLzbgcKTuH+l6rl2da5nKkfxw9CNJi+AqAF9 cYC+3sSFjnWBzUyEOK2Jydnd26uOvBa7M0G2mk/0OGroyDkL+HAfghyXs+9rp9Hyf+R3 Uniw1dkScKo1ZBV8eeHaPSfVdLrl4JFSmbxn4t0cjJupnCMtLzBnehvSy9xfENpuU5Vp gACQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bUn2PwUh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b15sor4641500pfb.23.2019.03.21.01.21.28 for (Google Transport Security); Thu, 21 Mar 2019 01:21:28 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bUn2PwUh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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: 180 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E52033F9B9 for ; Thu, 21 Mar 2019 09:21:33 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id z14sf297659pgv.0 for ; Thu, 21 Mar 2019 01:21:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1553156492; cv=pass; d=google.com; s=arc-20160816; b=rpdQGynJpmkViIvvUIn+4HMjJm2LmxF01gu1dG8wjFmxtLoik1X9aOwgcTjArOkts5 sJObP9F4HCCAR+xJZZ67yLzWLPv0uehIZWP8WLsDzXxC4z87OrnuoOqbB40AT3AgRFmH vBOnc+HuEdnvQTOgCHFc+OIx1je9yLS5jD+3WdMjGP8sRWV8pdbjNHgVSnzM0PTyw6ka Ul0d8MZPBk0L6lKKgw7ObG5b6gofnFllp+g5JpJdBACY4rJtIZ0qwKb6s4IiWGLx1Kve cLUIzkkhXg6IiK4TXSPqZb02j2cotMFAo8nXnc9xNgKqoZ9b/yrzC/SnE0jqwkr0j/o3 WT/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=E5p7zYCGQNvdz1KP1Veo/SMhYBqrskS3DB6vMHPlDyQ+abC6dfSOmFx50Q2U6qEWAa zRNsuxcyZzef0J/Gn4NGOWhk06NPNhsuvIsXfCvydIeJikE5dlaZZHH+VFn1OdL2CfRP Y71h1VnPUv63CeNbzui43L2hCwinybzlsZE5NsA54IRIvQDnAXMeMqvBJpG6g0AahZCt ta1veWQ6hmIKKG2gfGG+W6Hksu3camuJjkR/4N94KRvcwomjSKFMna6rdBz9KIYvQx4i Uul+SHCxmRiijtNo12S/a0GFdxBJHQl9MZJxO9/OUwBbYyrd64M+cXs5rgCqChfuhQ3Y LHLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=hEzBkTDzhMHIUPNVxjXDarOep/Jyf8EtnwuoCKBXf2nsms/GJyZTvQ2PqVzIxSIGvJ lh3ppoe7QF0FDNYqb9kjKOAvvY5ZSeuDILKCzY1Sviq9EdMSXR+M8f1dx3mLZiCyws+f NC5g4Hv3XAyENkGiUZE727Wohv0wFjg9YRNnc= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=Zq80foLUFlOCyN9Oq+ol2aQpIAQrNQBu3gjaT1JkrOg=; b=mhMitsKbODsYZ+QfRSVexr6JiiIDCL4Rj/eND+B4Ks01GrLXt+moyN+r7T/wMEgkTO XXd+U2ZzvXBGoaTm1g7T/ixSYmIqn7C+x9M6n72kmVRTsM66Aa3TNRVlA/1ZcTPfzJ0B 7Q7FhNdqhk6O0BLfgSCLd9jzbqVqGKID6jNRZTv3lgNmuAZgQBJ0pECrALJNz6l6KQC2 Eav01EV+IHS35p+sA+E4RemIHfNlRNrVNRfFBmz2H5MU7ma+T6c3m8UdL7MASAmQZ+An hkD8PD/Jb6LYuCvaTqXTtcFi3AfWkReLlrIJoC8Z/rEgiJDKzSyPkA7cuWlO8HaTfUy+ PHJQ== X-Gm-Message-State: APjAAAX5T8phgQXO2lzAInuZAkXa4tj+ihoCYpusG1a50O/35PZX3oo5 gaC85majK7Qmt4zYHsDHykEbSsxF X-Google-Smtp-Source: APXvYqxF6Qez/yX9KNlsfe3kzcmdb7EJiQzhId3PtU4U5lbEBCKbkIDW6jPzBmm5N/Qbign950YxZw== X-Received: by 2002:aa7:8149:: with SMTP id d9mr101289pfn.53.1553156492739; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2ad7:: with SMTP id q206ls1890551pgq.12.gmail; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) X-Received: by 2002:a62:6c6:: with SMTP id 189mr2128010pfg.36.1553156492358; Thu, 21 Mar 2019 01:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156492; cv=none; d=google.com; s=arc-20160816; b=YYkuf6DHmZXy/I3/otmt158oXDPnHsIDLJwt31xedw6nZAQxZ/jUs3+7X1jsxC5GLe DjsIGfvXiOQaTWgBRZ6B4C8W/P63ndfrEBCnvCFRyXi5cIic4AXymR+XbOYUrtsKqw9x xJTlqMeHSErpo9Y6Ac8GDUhgvSSmqN0ZsDixvYM7NP2AHMfw9NP2Be+xYZfv1TkI0Fir /U9dZZ2Rk5xf9lpg6NJP/hxlXLPcNETiXDiXYBWoz6hlwASoQSnUa0LVvwVj2/r3BqhM 6lxslsV8in3CWW5fgNjdhF27KernsNUR3rzMPTGp4Pf9E+d+mCFP910OylrLf48l8mOZ ++LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=JHR4URZIW7IuMIK7c59NYIYWSg7ZlWSVaAjtcwyfIJ0=; b=VEbM1gmbtSsf0/0ew9nA3h+JWNGdF3+axGRjZMe2pDHoq1Xqym07wGbLQCSySnjEpt HrheZaosmzF9UPV7c7TL0FSqZNwpwkmXH7LJmsnSnr9t6CYFE4oc0WG2qHIbKgvme/ur Cz5SYWVhyUuzvDWKEd3sEUf6s30yqweiJCUgLlKQ+EPu7pWYzvmjQ7eglaj9189YALoO EFaZd9iATiYc4/cBFotYLgWSUmkxFan/S7tQ9gKIx7aI21kC6QZdHKvXSgtSnEzjLd92 sXfCV1mHZGxTVDEKm10jyMv2OOr0YTU2imHhGLaiebtVG2wSCLylI3zwx8h/rI8bfBP7 7Vsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f18sor4847793pgv.68.2019.03.21.01.21.32 for (Google Transport Security); Thu, 21 Mar 2019 01:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WzUQJvKP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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" },