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: 58 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 72E4C2E51C0 for ; Thu, 6 Dec 2018 00:52:31 +0100 (CET) Received: by mail-wr1-f70.google.com with SMTP id q18sf16569582wrx.0 for ; Wed, 05 Dec 2018 15:52:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544053951; cv=pass; d=google.com; s=arc-20160816; b=TMB9lpauYGIc6SjEjmx4WyjAb4dDnFQyiw5ZR9pHEWjyUfTfWEDTj/DVOCUVcV2gFD eRTy6BplHrNJWJDrDo7EnyZGnJjUI1NzENg8UMy9EbmWbeW+RZH680wbm1lsS5UgLna8 xdiAGbRL+NCa940ymfrukIN0iCZRT6I7Sehx9lVrfhhXTOLnVyJRvqyJKISc1yLNFlUc IY3zzNT5hlt5PSiBH2QCdVpo2yElWFvR/hPvv66afKV45V9PgjpftvdjCu1o7gEJ1L9P jhhjRbv8SYqtI18q7TL+qRNDcwuG9ZubogWiYuW49CA8fPm7ghFyrSXxqe8njaosvPOy Epnw== 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:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=Ca54cvzzjPJ8NQYLkjNhq5AmZckGbWfwDUOd1drfaG1l8IVFKnA4NaN2/0CnIZBD6X MWyv+It0ic+7kV5eO8QjH/JayWHWAvMu0h7/F+vb3nm+pWaWB4VYl/gUgUlWFtWjnBze eIb/8+ZgOZbLGYxgfN9gxMIp4CU+GT/+7SbHqIcAqXQxDDn3NhusXhgHsPNbGHN4fjnO ModpmCN9oQLg1SDIxersjDqkZtF5rGQ4hjoKvFsluEkstRUPVz0fXkoJ+xjg2f2UqFE5 Q1w16jQyKCjSh6nN4ssEWpem+V+rlqDqgIl2H2b4USsx4LOI1mWNbEutrFDOknTzrwka 65nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ojQM4UTU; 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:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=K20n97Tj6CHjrO6s4LyN7s3L7Sdd7VuqflIPLyQo7HIoGk0e5yJVJ0PSezTCtcx64o OQ6VDDzg1iW7Pb2PEXY1mFEDtKL1aHDzc7tK0pPhzHUADKTYyE42aHYWBA03vyGk0mEf ffx5bZX/PjVUwCwXjrMDwt65W8oAK2I0DacD0= 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: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=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=VRbObztre7W8PrLqEwN01ZpMo+kN8bW0ogeZC8Uei52kRv6rlJ349syEhksTEX6LB6 9u2LUC8O3VjyzE+djl0cGFqnsZjaTLGSHhhP4HG+Dwl8ahoLgNblqIZR8qSvN0lPo8cQ M9RP+AKj5Ps/fN8v6xrIOnMpcfvXcEuUpCQ8BtsApRXKmrkHdfOb+oGveyioDnSp3FMi S8vDOupDGGqZRgTA8Rj+j9b0jDkBW4GPMNFooa5lwPhYusvPr5PHVSk3CGyTQX/nAXI+ 6/baQtHVTxJn3ro7mjVHss7MbStnAaGXeGvN7LIPPYeubDsRBWwWx1BGvtWTqVRBUBRN lk/A== X-Gm-Message-State: AA+aEWZjMQrcXPe+uKudlXBeFoE+b4vw43SVv9w6DfldRJJ/0Dx2WdS3 1KLnASvYg05wMOv8B7YItBOy9nsl X-Google-Smtp-Source: AFSGD/UZQCo097Fzpobiuq0vaJyg2MYCLCI3EM6Wrh/2jf7oCb+0qZ3zVVGmWXg0ID0CFfANgpAqRA== X-Received: by 2002:a1c:5412:: with SMTP id i18mr2696038wmb.19.1544053950916; Wed, 05 Dec 2018 15:52:30 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:eac3:: with SMTP id o3ls6668642wrn.8.gmail; Wed, 05 Dec 2018 15:52:30 -0800 (PST) X-Received: by 2002:a5d:6aca:: with SMTP id u10mr22701706wrw.310.1544053950491; Wed, 05 Dec 2018 15:52:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544053950; cv=none; d=google.com; s=arc-20160816; b=C+z5pKToSqQ+Yc22ZJ+dPdxNQeGcn0SKNm/9iDXKMyjd5CevaexU3/xAW+E5ft1EPh rYO0X4wkSRZHVE8Hinrf6fnxsFlcV2AiJN+zcgQpCPaTltY4j9ILxN1KAymluRQKMEjd qIdPFc+gUETEMjyAJ0JbWG6+LSDna8RmaangsPPyS8yqb8+DpVsMa7Nm9xqW+v6rd3OQ sMQeb+vyJHIn+GEZukDa4gI1Q7jbXkKBDvQxLqh+M16dg75/PdjEx61Kdy+BeRdD5gAI UaU7l98GiMoZbED/zmz82qYSquwwehRoIs4JR1xdTAcum9HGLdYs03OHTNb3c42MR+tH p/BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=34XkaOe01wIOoB3ST9iGxBvvN8UuZkkXm8z0RSalvoM=; b=NYRFMvmqjpuQLnNRttM1Pgk9z6J1wwa23+g89Hghix64ttUgpM6AyOLX6uzDzZcewO ASKPfgddhvr+7tiWttMMhSazvS1HvXJhXnXhWqnDqvXa6PJH6C3UuAZrHE3fCprWII36 ILt3v0ctbpFnT8omnjHACsJuAqNt6lYQF9togslHZSznqq9NjbovRlNIFXqLT320G1e7 bkIjkHgPXz3aO0DXa2BurJISLlif4sIRsH7WQtllQBihJqdpWpo2H7iaZO5MlP+4jv3b W4nVa8K0DkVR3xW5yWJwH0UNPJaL+Nwi+Hg2vVe9PNjfywz7iyD2WUAsKP4XI3xdqD0y 6oKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ojQM4UTU; 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 f124sor10084242wme.8.2018.12.05.15.52.30 for (Google Transport Security); Wed, 05 Dec 2018 15:52:30 -0800 (PST) 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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ojQM4UTU; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , 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: 59 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id CD2EC2E543F for ; Thu, 6 Dec 2018 00:52:32 +0100 (CET) Received: by mail-wr1-f72.google.com with SMTP id j6sf16270781wrw.1 for ; Wed, 05 Dec 2018 15:52:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544053952; cv=pass; d=google.com; s=arc-20160816; b=n3mgpZ5aSNRr8iqJ/XFb609+U+NaJ4mzXhfNEJH4NYaK2dqGzXA1rSctsFcPMvzvx4 dcxRDxo+sk2evPDc42cwmTntINUs59oEonGliMbJtK+gVrKohjHstWWBtcy3rWCMUa1d k0xC8OTy8gGmNwexYfCtVZoi6D2w6zjhEAvvwCfVu9FyjosyH/oAwacUHL5mQ241Ccyg JBAg6jUvH1xeuTc5wAwp4+pNdL+9a/z6lIHsnWVGKhgy3rGxdFxQHtCl/x+krO6XVqbr EMT4wADdocCz9+mxe55B2TFqtg8zU4QyqmKYQaiW47/gkgIUTZwM0LT8lPk5bsa3EDtV Lzgw== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=cMQsL5N1dyNsMiluncA2TirYl9cmNT0pzDHOG4lf/l0o9F9xsJ1MKTzR5Xp/5MEM48 NFSWqHHujXHPifoOPq2v315lYz/MO3baiEwYOphX5PbzdB8uoNAYur/64mNjGk4JaO76 Ive2UdmB2xlkuVxTohTvYEaBRCwXbzJ5W2V/riHUcDWMSdWaTiOI9E4MuhA+qbmhcqY/ n4BVVNZIYp8zND6oX0pAYZhOYE7ISHnqwgcFKGXrOYpLcryPKHNsJ8M0thKjsXY9nl9U FVHUZIRIsriOjQbG7a5QUAOesKexLIevPt7Rl6yNGUNibFm4MFXbwdYOsVvgODFPUsHn aPeA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SFZLKqa0; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=FYSAYWf/XjbhwCfvJ7OlMTCoMEknD5Mhw45s1kNG5mq/HHIykEYz9waZnJW6KKFb9B TZbF2mO4eJ8Zf89eFd8BQ2IdfCRAs8B8fXznMcp6JYH+zacZUOG1ulpIsILiIy/MsPYv JXfc4c9RujogmhPQ3DPTfZXIjLgEMad6iI5y8= 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: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=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=j38k0WPzaIkZjzYE8KLkjIAzm7muBTjVHxbNIqktPLslpLSm7fcWyGuwmgI5uAFLrR TYR7TvT0kjqYlewp/cxuEYmkVBdTQ8ewWlhQaT2DgZn1Qg0H6wm3A/aYuvgF5Sii9tph t6mkE9l5ZCKiVSkhsDhjsBaxjdXusNhSW+C55qXHL6Dv1ycjTbciUy1OCY4vh7ImldjN KW6iYAee4xm1B7HcI6icZZ+TE8kbBRLZV1G5DCb/+xG4BZk7O9KzQ4sNQG9MxhZH8TbE xCe52TFFtsRvPEQmrEx2TBDPeVswoRiVSN95U8mHN4XAaSuPxHQjfB9yq1NzbJ2Je0Kg /BHg== X-Gm-Message-State: AA+aEWacmB6IS0Cdol9tbCsavV2N5nwKko7pM1bJ/IXYg22Nc7BXmNcW Lp+BagNBe3nKqip78ayY4KHrfzbS X-Google-Smtp-Source: AFSGD/WQ2KN7nVAWNQow4Mb0dO6z/nWEo3G+CkShRGLiZCQ9WxdBfxmmqmDr9wFl3sNV2REM0YX5nA== X-Received: by 2002:adf:f40b:: with SMTP id g11mr3099984wro.20.1544053952344; Wed, 05 Dec 2018 15:52:32 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:b1c5:: with SMTP id a188ls4107471wmf.5.gmail; Wed, 05 Dec 2018 15:52:32 -0800 (PST) X-Received: by 2002:a1c:b687:: with SMTP id g129mr17281395wmf.59.1544053951920; Wed, 05 Dec 2018 15:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544053951; cv=none; d=google.com; s=arc-20160816; b=kZp52Wr31lwzTCwBFL9PPzRmmgwLn4Pfnczxf6FdBpNuXmNoPfviezc65kBIa8y6xa /+Id4CXQaBFKgjBGY7CMgee2PWv1jirYAEanzD9dMeYxaguHPd0LgsD+OEr1Z+Cpa9sa nJsnNtHcV2/xfz9J3w2BoxO8RItQuZVER98NGJ5IzZar8aL6LwpVA+jQ7Z9r4okK+QdS CZb9q0qOCKzmJSx5jE2E0RI5L0Ve739M2uU6ajqf/ORqNmmch0+foQysM/qo956e8Ejh NCJFaPGgxAuQ5+1bObtpLKE9+vWSkczSGh9sww42OmWni5LCsocBUi9X0U5XWf5VM9EX 4ARQ== 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=rBYjCviXbp1GB9pLzlbZBcnM5Y0HUWSor8mlLMpmZyM=; b=U9kCD91HsHcdT5+EeMrFsdzIs6lasP4dRwl6Dpy2qltqiM5EDnBrMx410xQpNT99HA dyXg07ZA24+5IyQO/NonvESZLgYYqoUVBh1QblGvA+e7q1Iqmei2U5NSD8YiAmlo01Oy N9cw3PZtSXxIyzkM6BSGjXF6x+pmCe6IZn+UxEbeSXm5i4hPMJdc0Q++D2xzs+ateGd/ +k3ot/KHI+tA8nS1csn0aArHtqCNPEyvoWp+QdVmRCQq622hfejsWbX3I1GZfyQV2Qkh VDYnYNOo5pvZU94eGjz2ZJBul7PpK7vNC8fRWxjW3ERRmYuvjjqPzszsBF/hIYInTtjR assg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SFZLKqa0; 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 8sor9773605wmd.6.2018.12.05.15.52.31 for (Google Transport Security); Wed, 05 Dec 2018 15:52:31 -0800 (PST) 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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SFZLKqa0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 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: 60 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id E01A32E5440 for ; Thu, 6 Dec 2018 00:52:33 +0100 (CET) Received: by mail-wr1-f72.google.com with SMTP id j10sf15767578wrt.11 for ; Wed, 05 Dec 2018 15:52:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544053953; cv=pass; d=google.com; s=arc-20160816; b=HTOTWWS5L7T04fU4EuEhjmyZ2wSQURMyiH1N79bNIiaXYpSX/h4NiM3P95S1UGOh+4 L9b+Z8dhAVis9TE6YOFi7XM7jxqMoms2as51cazfBRSqOaDIzXsPMso7n0DPhnpzLWaO 9kMM/BW8rLOvPfp/6pcQ/9dDXOl4P/gm688OapcnG47zkSGcln1fJEqiXFC8UqU6caL8 ejKErgUpA7UDyl45qcQ0BiA8tU4y0Fi3Pk7fN2De6mR11Zb2eefhijrwEW9obunPuRqN hmGVUp6FTj89Fx1stFFRgaKJNhLBAoKgg2LfofZqScZUFQPDgIKbBNUQgbJ9angwsiZz mn6Q== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=j7BhTAoqZ7WwVaeqvA+llJqXClpYnWlcbtFLgMIEZ+DEYkDfsW60zOpG1hPDslvsys IBC/50kA3f43g6i6NBJOAouBKaD9j/jjPPjKQ2yWMjpdADO2Za4SNzuv5MqMig/DiFZI GPGuAOZ8gIFgSDQ26BA+zD4cTW/Y15VZg4kCoH+kg3XU1cfrDe4rBBbGy61LcsE2CPR2 Y/Z89TJb/GNMPHNH34LiU66nQ31taZZhmY20xfv5JbsQ5VYhNIhu591q0LGbEMHbVTBo 6srgGzH/6LSxHv6ZL1x5JX5XQp719WsqXjaofdn0FFRytasNECOfoFpmaUBUTaowbPCW 1gcQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=id4yHN3V; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=Qe83YjZevUIW7ZV84flQSeKGtRlVeeOfFENtK+VpRvTfTSJygnIoDMkoq3VVRrOFxC JpDrSigJ6BvVvcXqtH7+4IlQ+JAtQ5VxRou1NYOrBTfWrCJ4Ms5tNtJmgBVBa/Qh3LuS uP7syEIb/q+96PC8HYPpo+TuF4TSVcYLLgJEg= 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: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=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=A3AocGgrEDU3ZvqT5isLhxf8KGXiqQPzwBpLl9lSJBna73LwB6GIOKJ2+fP1JhJ/BG i77uDBLiMleC8F+BNgP667CWaQiczRYGkBEo//96imXteoVYf9j0nHAMXS+dUPLA6QKM IYT0VfosGgU0Ts9l74GE3WYU/yZf1W55RUlp/o33IjXmHg+EdelOaP2gKoe5yY7zquRO Pq5tn0/85a9ADtJEt0onijtKRQwSfSAtRrVD58gkc/srzs5FzbjX8rwpEvrywdZsSfFw AdV6RXh0ynJHu2/G9Pwlr3twQHH0X3E9O3niM7SNnm1xEa9y1S+EWMaob3w33ELhY5By OQjQ== X-Gm-Message-State: AA+aEWYsSRqz57FLRtnxQCHkfWurds6oGlPGTbuMpNrAsv5tmpoDmoEp wiV6ox+8RZ8NxjjEFou29iR9MRtu X-Google-Smtp-Source: AFSGD/WqCcHOBQWaqdwVR4aiyDVR4gb8C+fd/D6JM1MlFy5L4dhyZVvgUXVmOfbRI1Mon8FNajH5EQ== X-Received: by 2002:adf:df83:: with SMTP id z3mr3178964wrl.21.1544053953675; Wed, 05 Dec 2018 15:52:33 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:5148:: with SMTP id u8ls6638227wrt.17.gmail; Wed, 05 Dec 2018 15:52:33 -0800 (PST) X-Received: by 2002:adf:f308:: with SMTP id i8mr22364902wro.219.1544053953249; Wed, 05 Dec 2018 15:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544053953; cv=none; d=google.com; s=arc-20160816; b=QN5WauHLGR4fg6SNuG4eFAljkxWfiVjfLLQlhAGCorDbXjup3sOGO9+T/cLyGymc9R z9QFBcfFUrYce2hvRAcOZvYyMEB/cz/Ag1L0bNwIkk7Zr7cqhD730Tpb4KkSgm2mj8CI 6dvE7OGJ2StrSbC8bLnNE8fEHmcpaqTT7Izj1hzGexl0PoNGP1aWjU/fRZf1u8wkCjK9 YynqTe7ZcrVd5qAk30FS3PRKAncLoj/gCCCO+b8a4PFxLmJtvtoKwac0jZtTB4OSaz3n L0wmR3mE/qAqt6sMHfkiQI4uGHbZxfuS1CZq/0JK60M5yPphYcB30+cAf1//3KrfrUYn V0Ww== 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=n9epHOq5LFKHLkiQ00/c569NHAFDtVOTxCz4SUovsHM=; b=jY7jdk2mORIRwYwpC5dj6al9XMbBv2SdQfWIuK3tTjbK8I5vas5AT7DKxM7ODUlU55 6uaRVfB6DVMBhKUyh0KgmPGy6xErruU8E0N/5PXh9Y7rn3HDUIWgvdZca3Zj7fpnej96 w7ER/QLNIdEQMfF7+VFWwFfGzmi80lvgk5iE6cEusMEFW9yCz7JyhHNU8YJv0to3p9Cu UHP32WPJAZespOUtrJIFxw0daLli5G4NlCWBabAXGWaWHqzwe6G3uq82O2wuRSvq9Rmq krJPr/T+/VgBQG8EZDL3o8n2juKth4hX93AV1oOTO9fCLTsaxFV3ow6xNdW5I5j8WCjB hzPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=id4yHN3V; 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 q201sor9636610wmg.18.2018.12.05.15.52.33 for (Google Transport Security); Wed, 05 Dec 2018 15:52:33 -0800 (PST) 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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=id4yHN3V; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 --- 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: 61 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id CBE1B2E51C0 for ; Thu, 6 Dec 2018 00:52:35 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id v7sf8691880wme.9 for ; Wed, 05 Dec 2018 15:52:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544053955; cv=pass; d=google.com; s=arc-20160816; b=bsLJVxNJYaFTEvyg5JXD88NOvO/UL1cIycWRRTOPBq9U3i4JBy6qZVXvVu2RhnpUIA wfQpYnZtgNpDwxkk9vgoCYCNqg9w1bUJuJjAFyxyp/leeAeyO/M7QSZ8a2Xbpe+vwZ6T ey9pxh9+yvRRaVYFgMaVow/xTgzNv9VET4q7sxf+NenRIXhkTKuP7fGKZkUQ8EqN1Sqo a+9wP3tILxCFEVb43okLFYUxC6YwzEIaiAR7eXdF271eo1AJfu935jGXCKbQOn/tSDjJ iP7rh4yFP9VdLPaJBvjnqQ0c7QSVa6XxmdnTJcZTk2znzTnheuhCYR/izNZUs8CKssNE RQcw== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=TD26xktOXgqbgc1xMoYgFIlhz4FVpPI5gWcgIf8Gty6bmXFDak7dc1rE6nPLW2snr8 SAWzzeW0CCtm39itVFwkjjeHUPCPIJpFcN+sZaBDOgKQOHQNEb6L7BA0yVAqVvpnZgWQ Pbc/N1OA6dgW3KriBS3X/OD4ySOmiVAg8HOu855W02aMbI8p2whf1QkUXfQ//9n6fu7F lm5o36O/LjhMWHXUvEhUjVFoJtu5Zoxk3OpGnEvSi/+81mDEuV1ENqeJZHt8KxGDMtnR 3vilhYdjyOqeWWA8xwaOMG+i4dLlhGMafrYp1xqxnScYui5nY7CHuMENDoG3ApJVl0qd 0a5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iWwODtGL; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=MgShWpkKUk9UdFmGJZAR/Hc4MWbGWfc9nGPMj9ptxKrs490iqm4s+t6dTA2kdVfnf/ PQhlQOzsOsEpSCqUANecVTAnmYHoXhfMR8B7tmCyXZoO7hVUL6ZJHSGW9456RSMwKUdf H+3Jj8kau+k8/fe6TjtbAkSClw/mnZbKPbKcg= 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: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=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=N887emXM5+VRA7vkr/rzyeCHMn+49n7dRURhWwDWssjIwmSg/YU2BMApsX+KKtbikC zR9e21yG1lK4Kk2Pkj05sKLZoCNq9BEmp1gmbMvovQS8KCV/CIxmcMBMalp4DAtMsC36 F9S4r/ZApjPgeEpxUGNkKcUdfnr9qAebgxvNAdAHYl5y4o1ooJSWnB2+aGlcCKXQKj+Y sAcWVlkPjKanf4KpqQtUus2opxpxgzQpdWQSNXYdWeciBQ/+Gz8mtsWiE9p9zdnGoPIr H4+wfBIvkJRLq5A2HuDE1E0sT+TtPWMalTmGBd1Nly97cpBhSXUCt4+Wck4hCrXDLz40 J14Q== X-Gm-Message-State: AA+aEWZgedypf43Rtxh8ZQWkJOOkA3mVTgynZjxcAklx67DI923m3cSQ y7qtyX50hp6Y1chvFTPRYSAhmlRF X-Google-Smtp-Source: AFSGD/XbC5yWcMKFL/7+M4nQ9zhOiGWaoKZUHCksZiRV31cm0PESANVCcUWPKblQfttU46mIKmIl5A== X-Received: by 2002:a7b:c188:: with SMTP id y8mr651980wmi.19.1544053955422; Wed, 05 Dec 2018 15:52:35 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:b6ac:: with SMTP id j44ls6656843wre.13.gmail; Wed, 05 Dec 2018 15:52:35 -0800 (PST) X-Received: by 2002:a5d:52ca:: with SMTP id r10mr24003773wrv.123.1544053955001; Wed, 05 Dec 2018 15:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544053954; cv=none; d=google.com; s=arc-20160816; b=mS5YXH1mckRooegSjXC2gdyi5oT9LRHd6MN0H7oomn5ysfYC6hRbyMNi02671uaLyj +5EOADjAmXKOVK5xrp7VOpmuz2f20j3VIpF0tMmqz+qanMf5lswlvWR+ZXWa7WtYukJB Nk17TspIPuyoEmHGkbR+10Az6/bMQOtODRxAr9nuvNuNwyM5pe5mV6/JSR7751cYhpq7 VnmBnQszbPI88h38RdUtliz0HYJyMZQNyFUXvCEMSmGRHUEfteLfS5SXpvhAxGQoCja7 uOUzsZAN8RmUAcofzTWRLmcmCImc4dxHZW6wiOultiQTdmQgJCxIFlK+Qcb9XADqfom7 16zg== 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=al5p6J+IXq07JJbJ8z3BhRpw1vY72Jm+LA+y8PImFhY=; b=NYbmksH7VlgQcTW8ULQy18ubPJx8eZtp7YgFdkEAOGqoVMkMxvHb3y7epOP94bqZHA 7UABo3u3l4lc8B0k8t/Y2wb1r7DdiiYuDb8Z4unjwYFTFvWVSZv0Ay+MgWXde6nteeVP FXN6tySFgo+nelxKiqZni7l8N48Qc2o55rCmHEkc6HJwPyFvOVnLCXEdmwxc8C8WL2kV L4GTH3rUsUQNbD7kgfzsEOg5nJ01FFct81zzjwx93Hs5KnkDvXr+25hSPLbNENkz6ZCp ew1ygdRy5jbM/vFAQOc5ifqgmgpViHNnQLEVAGYda186OIYZEl65HdJ076j/kyxVxs8X dy4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iWwODtGL; 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 h140-v6sor10075672wma.16.2018.12.05.15.52.34 for (Google Transport Security); Wed, 05 Dec 2018 15:52:34 -0800 (PST) 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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iWwODtGL; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 --- 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" },