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: 97 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yb1-f197.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id E22712E545D for ; Sat, 15 Dec 2018 16:18:25 +0100 (CET) Received: by mail-yb1-f197.google.com with SMTP id o13-v6sf4705343ybq.17 for ; Sat, 15 Dec 2018 07:18:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544887104; cv=pass; d=google.com; s=arc-20160816; b=wu8dQj0TJi/8muMb4R1lwkbu3rRJ6F5txfYmlVbF0Q2Q666cc8g12uNNRkqBsrXR5E wLzf/maPbrGbkf6VJVbFlshZbk1QVbyo88TlUUFmId61yqGvpejy5pBWaG0COHzVyDyX DE2f26A0nRw+WK1Mntz7K2JJ8w/nLlGPg6/VjIQPZc911p4kYRjELZTd4/21JsAI0JxR kPTjOYd3Fxc3xk0J0wIycdUlgRT3pFGpbdqwmkLDMZsgO350EDOhd3hlaprvmbisjhI3 5nzXcM4Kzbw12SfAlN7H8mgJaKk/6+mI6dPhTWsAcpy4gMchZz8ug6W1Q/VF4c2xpywR 7//g== 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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=urPTSeXhfqWE5d16g9C2AydF5Q5eqZYCjJY4w3auxobg0jLWTeWm2diobJgmTEib/N 280fTGkPnoLT/6TW792DHBHZ/6T5mza6NjULPxHiJxJmd/GofqRmMonHvFeAK9ofqWYC yFpVc/S6r/CyBvu3nISwYUSEBvwj8HPvYdNeh4QcP3ZVm88Zz9zcUifW/xu98B8RgOP4 vyIH3fqda39WyaKAMBEgN0+hnKRW7sYBORHks03E7BPRh/9iUmcFyktC2CIk2KGzwtcT 26XcuEEf8+WKcwMnSVuAHa+VEDAMjTxNFwZeLYrcJHsRYiWSTmke98pa+Vm4G1V8IzoI FyHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="g+i/SEh9"; 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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=E5DS+cy7aSBo8gkNmqHFCtnFtl9vVAsbFVNfdunyHyV/6llLgdQAnC4DBSQYmqFD3x cjhOqKkMaGJWfMv0xtsE8uMoNk4KN1mkOWptG/4o2ta+bl6gtYtzI8DXh2yvXQGeIbd4 LBiyD1tlFLj8YotYhUvrKJ66LydVP1ruZJJYg= 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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=TvkWUEnPho/g0ZZUBmN0AtLfuNoSKT/TjtrFJW4yL9Qb1RFC4PGqeE6iB93ZeuwR7n SYhvcdW0GuinZJaY1YUDHIxPPp5GxNCDGIIULx1jRnvWjXh23eY9669yIcm6Imhf7Ty/ ihIA9vs7e2HZQlhqfsPsonU08WAT6Jacz0vGcB7a0G6SlWsrhiI2zczAtdDaoaqzR629 3j13ln/pE7L7nk3J6aPaWcXihK3YGI4j9ZN/nLFZU8joU6KhDrggy3haNEB7gmrTe8Cr Ug9Uj3KAlbBef3+kYqCHhcVTAb5BrnLxqVVasAwm8widRfSxycgMiVItZ/YtMdBpAv/5 EP/Q== X-Gm-Message-State: AA+aEWarfcyGNuhhS2uI2ALKXBOS/jadBUfC+a2DFWYtVOv4Cud0o+j6 F6uWaqHMNKmZDiDon9R5h9J5Xh63 X-Google-Smtp-Source: AFSGD/VHzDOu14WckZh+8NMjHlMCTlDXel8fY60SWiJ4P43bmlErWW1Bje7FxJz+3VyV5UMYpGvwbQ== X-Received: by 2002:a25:2003:: with SMTP id g3mr4316893ybg.100.1544887104865; Sat, 15 Dec 2018 07:18:24 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a81:3b0f:: with SMTP id i15ls5579009ywa.7.gmail; Sat, 15 Dec 2018 07:18:24 -0800 (PST) X-Received: by 2002:a81:5356:: with SMTP id h83mr7192101ywb.8.1544887104539; Sat, 15 Dec 2018 07:18:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544887104; cv=none; d=google.com; s=arc-20160816; b=KYU2C5HiUNNVku/TL7IkJ13UzZXuOKUeRdt0VVLtat3lmL0ZAxrKLDb4DxsmiQYJli TtyotPjGRi0p+rDAEx6egHgswB+VelA95XvQhCfck9l6vMVXhIN9q2vRAWXi7i3SVsIN 26NU05A//sY45QpMHDPQkY/Bb1EVR7ijEl7wFbWeirO/wF3kgxvgTR2z+gnH/Gxa6rux Dlp1ldaM13OgHjTqmPMW0w1YRveyf7XtOpRNpGz2fIWw/WFHBGWLxfg8Pa9F4GNOZNDz zI/wrs2BaBBEsgm3nhGfHLTEH75JYaD2lAn+8TWlPUK0DNUWQ7upMBB2e7PJB4mwmy2j qKbw== 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=/RnVmA/kb8L4Yz4fb0H81a9TQRGfgVwPZ/JkhxzRPgU=; b=NFKJCmkMuPIY130CrbN+dnDCfrEEFn4WFIkbOWE2avBNEpQFSFDgh5M/2AywSZO24L t/B9/zz5DznSg38mUCDgctlviRqXfaudYclFd0QpZfjVUdQPe9dQbJCtWOs18onExBNT KvFcTFy2ZS/5urhl8xPkTj9WFJTL1Dc2NCAKUr74FTz8DzIH7vuHq8k20d0mA1+wcMwZ Sq1JJmH9ueaxLD/WPwlZWDd+GUTtnPaHV7iOWbdNq+jsPiw+n/GvdBxciCP5PTA4OlUr F369Fk4Ruy7EZCjBc0Xhik6Au0X5b/lNhzDeriHzoMnMpxQUwo9thedXPJ+7cv4KWaXF A+WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="g+i/SEh9"; 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 i10sor3436469ybq.110.2018.12.15.07.18.24 for (Google Transport Security); Sat, 15 Dec 2018 07:18:24 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="g+i/SEh9"; 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 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: 98 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yw1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 149392E545D for ; Sat, 15 Dec 2018 16:18:33 +0100 (CET) Received: by mail-yw1-f71.google.com with SMTP id d78sf5368785ywa.19 for ; Sat, 15 Dec 2018 07:18:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544887112; cv=pass; d=google.com; s=arc-20160816; b=vUHUiNCcW3kc9RuA5winOTRKpb+ILAUOc3Fxi2Cgd7brZU4piTBgR+rblW7Agr3fAS 6AcRdHtmTQy7cy5Q4+6+9+8ftO8nW/X4NLt7bQX3ZF2cA2rstDmwFWLjJFXAaJxXUPkN wdmZ9VPvMemJmd6VcLXVF/72PNPpcuwoCBVVfJRI7GekgYsZqE65GwIZ6l6EHXsDfeJz +chZjYKLQb6RDqLKrecRR4E7/A12/Qnli9/ii+6svwFafH46PKtSa9ZKnUICXS0W5pPy wk2EkplLPLzTpzK0pdA83S7XK0nf6s/QZFyLiYR+REJNPP+uwR8Qrw2zNifWepJmeVO9 x8Yg== 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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=YxQyDokMPx5e2nLzuqbPA7Bwxl5g9fwy+tJtGbXXpyXnLworbiDM3kdJM6DPFrOWgw 6mrC9WPSny0X3Bw+kmscGV7yPWsHNoFpelb/25jpfvQlhULOcyeLQxvdngB36I62+0m8 nr82KRv84PcF7dgHoSdrJNiewbGIq2D8CxMTedmeFu1bcmjxTu6v85GKK4SaOfeY7sOP lCT7KiUdF61xGXD29q8Vm+MjdGQj+Svp4qRtkX7jmOwy/66XLBnqo+ecGkJBZoU09R7w KAWBZyip3oj18xZDXSconkMO01+ZC1Vwy1bYsjhXgI39eFn/hwhCtA8a9hhNIe6dG2Ky zmyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=evQM7WvD; 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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=IV6C1DN7qdyC58dGBcyUItrm4v7+5k2m9EXsgjRF0oHQ0P/u+tJso+3BXRWnCcJ40S tj+zav+8VrNBscZ/bzNaIXgnH5VMQBkyG4Lf5E/umx24pFlTf66JpL1NxQmvYgtnLg5z h1GQqBKiRelPjgOD2p2SiotSlLWeXwm5VumQc= 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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=eerdLC9I5145g5aswxEDqZJNtHld8aZiPanPl1ek/Gz72mwT7lBclsUv+UuncHDt7U Tl81y92lVtkun5MptJ8dr4wP76JXBNccRkVWvFSvMwk3kwbOovlFc/47CrNkAayXVilt DMnGdLFitO1VzT1qjaImCuntQJiPb/zHLMK+0Xu1xy81DiOWZWVd2RHPQROExmgntnLL 0cRq9dYW/szMPP8aSVIzMkYiCZrXSkD2MsA/0oXOzU+YavOcDGC42gjBwO08XYPqPegr qx8NAVPHV2UqzYyEkJm9bK/boIGk93PgZH3HoNS2AvVc+FGgO/5fETKhQ+KqW94oV98o B/6g== X-Gm-Message-State: AA+aEWaTSS7p5DcRpW5yKfIYY2nkugG/TXBWoNAyyCRvezRcCSBsmZnK PBO8+u5LWZXKt/2ZXL0p+6tgXDIt X-Google-Smtp-Source: AFSGD/UdO29pkTVuKQVFvGuVdSE5WwjjNNIYrdNbr62XYlFCFx/w6DJPZ8RexMXd0ohSJ64hIMHTXg== X-Received: by 2002:a5b:f4f:: with SMTP id y15-v6mr3738866ybr.30.1544887112052; Sat, 15 Dec 2018 07:18:32 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a25:b901:: with SMTP id x1-v6ls1844543ybj.7.gmail; Sat, 15 Dec 2018 07:18:31 -0800 (PST) X-Received: by 2002:a25:748b:: with SMTP id p133mr7152066ybc.222.1544887111759; Sat, 15 Dec 2018 07:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544887111; cv=none; d=google.com; s=arc-20160816; b=V0pLxFf/fjFsG5Dpqbqcfyc+bQ5ePTt5hm2pHfLOKJzQ64tUBeA7arh3E5fYx3buEb FNww3prXLMzhlK7+p7COPpU+nyd67xBXxax6nRYOtf/sUR7B8a4M+wA5/0LRrpfQrcN4 LjpbSDIVN8Xq4pacrDao7X+w45MnZo7oLo6ZOnjvuAC7dUA4rRUgbOVkXW53d9eRTniK xyjeqxqwhR7sGZQuc588JnrOTgNdzt3zcylZkTAA5Hui6C+TwTYUASWs0r+pLmPzPrqX fKfOYHqpqSO4QRqs51IHQsKdFj7JOLgtwKzGScchUAhLyoICLxaXOPtcHOxmzwNMR/at em9w== 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=duKzC7XIbmzTlndaKTXS3J2cZIplwvKfqW+lEcLnAYs=; b=VECi1uuHsDfxcPngVQE+w7eW/FwQGml7j98hkVKfB090QdsKO/vgrTqMvXjKPXtGSx lUqlatxxUbg3cT7hdbPPJzcrjJb1bStbr4eK8bK4Q1FEE9EOw1HXRazpTxGWvTkg4t5n UIUa6AwQPPXevjzokp7FXPzXI/ETJRBaDUcK0RADxtOyDFnCfKodZeKz3Qq547flBwTP fkXUMhDCvK6uAgJopQUe4nLEea9RWSBUHo5RMvj0fHM5+hHsTQkXCHJe+5Jo2SDWF/S9 mRIMszTrSTQXI5ODhMZfPBOmsEK/afRNTWNhQxUNzT7+xrJi6YXuJg59bDli9YDEjeep EAHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=evQM7WvD; 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 f4sor1229022ywk.87.2018.12.15.07.18.31 for (Google Transport Security); Sat, 15 Dec 2018 07:18: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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=evQM7WvD; 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 --- 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: 99 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yw1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 2C4F72E545D for ; Sat, 15 Dec 2018 16:18:39 +0100 (CET) Received: by mail-yw1-f71.google.com with SMTP id l7sf1804802ywh.16 for ; Sat, 15 Dec 2018 07:18:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544887118; cv=pass; d=google.com; s=arc-20160816; b=LJPb2amOTqJtiBmGhNmmQvO1r78/H0dmEtdOaB7YiOlteNk36FT6x1B7v6iB42T4qy 7k3Uv0NCaztKznbRPo2ahE34nzwJSWA2pgWpFU7Y/HTqLJLEYpBFPULAnKAeURMpPJnS fD51StP5rQOPa40M3+FsxY0S+0ONYm1Df1uQ8iqVozyTdYvJXMnruq5b1+2HbIQz48o7 IOwinXyr7LDuQwDEyG2RftoGTYsooBlPKtOFxGN8YYxbQVSG9n3EP87MoUxC22UQ/ypN /C2OZwmP3oOfgsxB77XfRjCfA35zv1qLzPu8QnR53W3fwKs0SuBLKNmKxMn5EytgrwqT AaXA== 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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=0AvV0pDChuZJV9zU/Kfushjmn5rYlLVywntkQhLeycot4DKjA3cEoSyKBKh67EVi6A rkNLWw+jKKBDCGe6rHinwdP21WFpT3N9FkIrbfzBI9M8ddTYvKSKM1s/nf8XHd1eMh+a wtxrE/Pq0IlvnGzjDCAksiv3SCU9yeeJp7D6SEXQsPKoe0h0UtYVGRIqKtRZ7LG/KOGf xsfWffvYZNLCh+6T3Xb1PBTHpvpVDqewbNv/ZpLh/mOsLZxldvBw2URZ/BAO1c6EfEDD tZUOEYD7bJ0PUld9LB8TdnYGZJM+qWE4sXAVxTD8Grld5rjvQlELl2egBVHfDA97iCSy pP7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="GOd9gV/f"; 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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=Dj7smlxvdL6Q2FaTAjlzRz9cZtf4dI2WpuW/Hv9uP35HJ19P2j2Y9VwfcEdvmOzhLY PzM6NddFeA51xVthJBH5vfjUtHTwE6olB38UQ/sfZkmGr5AhDZzr1IeXb6M3swxg/3I7 /dM7i8XmMyghro7yRG4OHSKhkp6FWerGQu4Xw= 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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=ASpJjx4V+u5tPT43BZGSfOGD3CsSCuLer34z8Y5PowFHsLEP90zIt+t+yh7D22deYR eCo/+K1JEkcM8umRPBYg7wffN7uK7hot7N07wedwbDTmzat/IO2A4lGkdi4e1jMEzKgU aDyQB2HG4hLI5/HPagBD38FnfVvYbejeWuPxQLmSdErxEHlz/IzHLEj96AavNoDg/rWP od29Ivg+dDiSFybI1WJm+Z+V3i72XE9xhHPPQuq6leqTPfzwIG6EiBQvjZTSUhXCowpV EzZ5F4Md4o55eJObWVDAAZPxWo94VAsOlaZr6apOkudngEl4HnfuVa+1mUmHOeu/8Pr+ Rl7A== X-Gm-Message-State: AA+aEWYYLhjoJ1/0jcsWVn3Lizbg0Yn8Lusy6v6QMTNdCc+WjcgITNAv N/eETxLH/dXAxVL+DPSmh+Wp5Gam X-Google-Smtp-Source: AFSGD/U0Ndtdg/uz4+nxmZACygXjkKJKYVrBXiJeuh7UiB0+fGi7bKULy78cO9ENzxksuWyonONdsw== X-Received: by 2002:a25:d8f:: with SMTP id 137mr3936770ybn.99.1544887118142; Sat, 15 Dec 2018 07:18:38 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a25:4d6:: with SMTP id 205ls1780633ybe.12.gmail; Sat, 15 Dec 2018 07:18:37 -0800 (PST) X-Received: by 2002:a25:d752:: with SMTP id o79mr7132625ybg.357.1544887117873; Sat, 15 Dec 2018 07:18:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544887117; cv=none; d=google.com; s=arc-20160816; b=KNqhcOs3evASYfeOxT8BaraykMqBcXEv9pNIWGI0h00j4XjI4N0306M2dS3s0bvn+P JUwdCqum4JNwLAyirmVy3+iAS9m3iFtPgYJdEi5j682SIZPlw5j7sb7LBm1TIhfh6PGD k79VmzXaESdVspHGOEDUsaszyYyz0OLx5qwKLOcsr1K8o0+M84tOaZqXqU0tvgxe349n b0lni2qhj+r3yiQ5xXu/UreZxkmv7ldeMM4irW2kNU5uGPfv2+nx4a4mdaTOgSAuqovD SPssQq6HKmwOQiwFLvpbpcRLKw2gTxbjfvFl7i/rZk8XTJch3Xg5LZctLB8NQSGS1l0W 0Qbw== 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=1Rkz1AmMpKZd1fV18RILezy4fqM6DWDhnKRct6ucDF8=; b=hcgCUQBTMF/ODVxIPsoL50HJgBEuVocOpqMkC5bAOtcEyKlMcm+lUx5nEc+lDroFJn DaNQ6wmVHJ5RBqUXD39eDdb2VRoalEopfkDm1+e/VoYaZPqdt5x2UkR3QBvQPitrdJc0 wThwJOvZnL8urXysFx/Y+sWshgtFEKpKXPv0nCHW8yWvcuT8AlUKUuJjV8UJT43CzwBl OWMWDOfIajYmiMAmxxeggzpJOvD0kS4qxthjx7huWuPDGwMXflDWQ3Z0L1qUdCdZ4dD4 kMCdKeUhsx2U5+P5NUO8ykMl3/uVuLnF509evJ8i92SVwT3Sa2ze8UjqWa7NOHTh3nj+ 3jww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="GOd9gV/f"; 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 r16sor1111040ywa.19.2018.12.15.07.18.37 for (Google Transport Security); Sat, 15 Dec 2018 07:18:37 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="GOd9gV/f"; 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 --- 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: 100 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yb1-f198.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id CB1C62E545D for ; Sat, 15 Dec 2018 16:18:46 +0100 (CET) Received: by mail-yb1-f198.google.com with SMTP id s10-v6sf4775331ybj.5 for ; Sat, 15 Dec 2018 07:18:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544887125; cv=pass; d=google.com; s=arc-20160816; b=jeBq+1Mo0m/J7fLbI9EX35Rq0RcbDX13zpW+3YxF3kjT8byDX0JDdTIU/Zsvrr1AEL jSxfu765iBLeZQ4kO9R+tXqp0pWeHDkdhiG/zBKoETgn750BlCeH1heVYKQbxhpnNWwg JESO3h/HGpei9S10uNqRvZt5KaVHOEjPLCWz/jLtH4nlfjtvPdLhMiA9v0oxRhqzjmH0 ifqJTPFKZyFHbyZhMyxk0t0VK+2bR+FeyLC/mqwf/cQ4/P2fK7z1FAA68rq7qJ28NSpG Rqkje2jchf5TM2x09hCgEp1jopr3kr050q8kdcL60MrAGZYKiP1LPjbSnsKURDo+BM3Q i8Mw== 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=YU0sq7hyBUJBNetrs1hupNLA39K75zJV5KMoLw5M7DHLRO3msv7sr9KzJmlIBOrtZh tx/fLVoc9R9dedBR4GOnEZw9AAvhDWLOYeIxY6ZxIApk/Rm8gH+Jlys5A5bK9pKOqnhy VYtKr2zdcmZaAfDejWGWW+NCuAd6onkvnMejzx0dy2cqMVYJsQB3rPP8wYquAWlw7gDP Te8SjLLTGJFxZOMiNFA1b6IQuL0W141HU+GZvcxHQOmKCEtiv1AyiMxYmveFIJWTfO5v TzGYBpzhWgCmz+HWTGxA16S5OkEAm6ycD2bNZ21a2ptLaoDHqtlurg10XqnVhy+q+Xm6 KKDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fVC6bKaw; 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=AE1dbyXPnaXEBYb2pKPYeQW2bBc1uFoqZgL7vG4fIhp0lO0Pve+o+MnzQvUrfj2FBg 3V2H9gqA7L5hVR2r4sSuSzp3JAKTphB8aSItynoQothbHTZDjadBuqI6ET+pD/vFUSjq sTAGprPLY0x1nco9X/zKzv7kah3781vndVYGM= 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=jQXKThSbrvg3IullhDKyVWMajUjL/sapm8hNPgFGQjVT1xMjZYrDI9k1CmucnHPxIi BdlfwKay5ww1vjt6oLc4zozzKnlJJXEx+nfSPfK5XUyAX37XvVVVyuVwUw8DQvMNXgVz 131a58HToMiHwUN/oL689sWxq3YwJ/sWe1wh1OB16qIozI+n3MkqeCnU2kDnBpx73ogS FVjjlYuiYLcINmlGhJ+0aEiqLtYVmC6yNZcWt511CNY+Qn4HOy+km793SYz+FXyxKqij zFJk7FjK7erfTEQNfyqwa+kMgktwM8GgR7tLz9K8VIn1ZSvPSpvWG7G5S3sWuZOt8a+y aCCA== X-Gm-Message-State: AA+aEWZSW8ugAhOOjnFlrXpK4n7e5GwW9JEKlU0QmQwlJIOn8v+QHy2F +gnJpO9wcA3Oq5yyCDzDE7kEYEu2 X-Google-Smtp-Source: AFSGD/Urnziart8NzrBXQiW7IMHuHS71EvtPlApCOGxIy/HJXhlQjcUWjd9bDTPe8ntG5NewUNuTKA== X-Received: by 2002:a25:2105:: with SMTP id h5mr3038447ybh.102.1544887125804; Sat, 15 Dec 2018 07:18:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a25:b812:: with SMTP id v18-v6ls1778411ybj.14.gmail; Sat, 15 Dec 2018 07:18:45 -0800 (PST) X-Received: by 2002:a25:4981:: with SMTP id w123mr7106008yba.347.1544887125556; Sat, 15 Dec 2018 07:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544887125; cv=none; d=google.com; s=arc-20160816; b=FgJvcjZ30ogX68JiU8WwmeyiZdq1eV40mB8KNDFBD2fxcyQgGZGKDtl18trEbDGGlK 3PoVCqH5n9xKY+z5N2WVPG8U9U8TFgRf/GCy9olJgRLxt1I9iOFYkOtm2B4XdBdeON1H 7DhgsFm9HCTjWW/3e5V18IGY86+lJjIC0Yz03MJT6x0F4WRXjG/oF79imJtjzn85Pldz dAJZcNf2fvvc6sOM14i1OuYHgewJaAOMJsQ00yEBNHjsW+pS2AwjJ0YM76O9sYEfPIbA msu3N6ttvONYDSc5+RV7fQaZTHDnheVOR3hIRenPwTGGdOgnU6tCVL1VoAOI0QRyFLHh uFtQ== 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=u6EgDcE8CqeNPfSXbwSTx5LLeFBg8mTxzA16z58qpO4=; b=ZSwiiZzwVqS7AyMXzFkC11QMqgJNHzCbiM91UWKURPyNsj4hq+8qf2p1aAzwyEuAAy EDyUopcV5qs7SrI9xd5C8wqx0isYh4z3HZvmRvGOHE8VJ76eztgvOkJuaGMi8Q7Cqybq 0ERLvD4UMzSOTRgsTwapIvtlPnZy9eGXTzJMByh3n+sv/cP+szkVNG9IWlpa48yRuQgf +bHWcf05669e9a8jl/XBjIhegP4MFQlwTDN4/dhc9EBddJWniyYQ5MdaIerpQLFcYg40 g31cYWDaQ1vimH4UJJF8lvdKXpH3HByRcyd8T82yN0rm/MDd0Y7PK8Axt8vfNi71MZdP kGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fVC6bKaw; 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 f82sor1092646ywf.92.2018.12.15.07.18.45 for (Google Transport Security); Sat, 15 Dec 2018 07:18:45 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fVC6bKaw; 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 --- 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" },