From patchwork Mon Dec 3 10:15:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB4BB14E2 for ; Mon, 3 Dec 2018 10:16:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBF0D2B067 for ; Mon, 3 Dec 2018 10:16:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFA842B069; Mon, 3 Dec 2018 10:16:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD1EA2B067 for ; Mon, 3 Dec 2018 10:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726132AbeLCKQV (ORCPT ); Mon, 3 Dec 2018 05:16:21 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36564 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeLCKQU (ORCPT ); Mon, 3 Dec 2018 05:16:20 -0500 Received: by mail-wm1-f65.google.com with SMTP id a18so5035458wmj.1 for ; Mon, 03 Dec 2018 02:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5GE2KwXHdmFr5oCC22e/Lvz0b5SuqoPfxF8T36urY/E=; b=RvZno6/0JHq/8Xiol/Kt3VuPZ4p/5AvZzsoU6w+UUYJ2GkP/CNSz+D4aPaIaIbydM2 Y2IK1Jmq3RW1WfissAlI9ayUVu1GXy0NN0a+CU1olE4c83QNfn3lztxrbLZdJ4cpr9iK YEmDQcjrIhkCt7rF/pEzpix0PFBTpNIYsa6so= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5GE2KwXHdmFr5oCC22e/Lvz0b5SuqoPfxF8T36urY/E=; b=CJ4GzYd5+FOZBxtKAqgeewpWbuzVVHdULSQr6yPeBUvmKk13t2zMPlnA9/mMmPiMdN ExvCEwEo24KB5yn0NOESAWHnOghxB0++Q89KIA1vapxBRfikRigvTIhP9RIP0rN2kqrQ NPOQlc9YsXtr06yiCZNhu0xlt1bkvMsd3t6WaXM2ggQdWG8q7xjHqvqc9UKIF6VKn29E CQBLAeQkq4dUAHMq0INJmeBZ9KoGp1kXkwQrYtVlMB2KIxFO5R9+Zpf3SKvzwFFWmZY2 zi2dJhoC4GI+jWQs4rVHxeJhv9Q3xswVskU1YDQsqqhH/8ZNtTGXAtjodNiOw1MiiQ5W DcnA== X-Gm-Message-State: AA+aEWap/KxQ0NaOhuStqFkNizK9ulHiF+eNqViadKKsdZIyQePq92PJ 0Ai6RabkqmU3jNWbWiFw7g/z0w== X-Google-Smtp-Source: AFSGD/WOhsI5EdV6mfsBy0JoWQcCWF0qkVDxZsqN4qBQohApKBD6fQdYmq6QY1bCO0Zsk3Lry3/Wqg== X-Received: by 2002:a1c:99ce:: with SMTP id b197mr1882465wme.75.1543832155599; Mon, 03 Dec 2018 02:15:55 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:55 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 1/9] dt-bindings: gpio-axp209: Add AXP803 GPIOs compatible (w/ AXP813 fallback) Date: Mon, 3 Dec 2018 15:45:39 +0530 Message-Id: <20181203101547.16835-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP AXP803 PMIC has two GPIO's which is similar to the one in AXP813 PMIC. Add a compatible string for it with AXP813 fallback compatible string, in this case the AXP813 driver can be used. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt index fc42b2caa06d..c8c5d20856c9 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt @@ -12,6 +12,7 @@ Required properties: - compatible: Should be one of: - "x-powers,axp209-gpio" - "x-powers,axp813-gpio" + - "x-powers,axp803-gpio", "x-powers,axp813-gpio" - #gpio-cells: Should be two. The first cell is the pin number and the second is the GPIO flags. - gpio-controller: Marks the device node as a GPIO controller. From patchwork Mon Dec 3 10:15:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 388D514E2 for ; Mon, 3 Dec 2018 10:16:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 298362B06C for ; Mon, 3 Dec 2018 10:16:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E1CF2B06E; Mon, 3 Dec 2018 10:16:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9A8D2B06C for ; Mon, 3 Dec 2018 10:16:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726204AbeLCKQW (ORCPT ); Mon, 3 Dec 2018 05:16:22 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36566 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbeLCKQV (ORCPT ); Mon, 3 Dec 2018 05:16:21 -0500 Received: by mail-wm1-f65.google.com with SMTP id a18so5035506wmj.1 for ; Mon, 03 Dec 2018 02:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/Q2u/tsrKoFDIiu0ywRZGBRmyE9C0XxC7FQu/e+jYmo=; b=Dx0gfsblRMX9FXRsJeWDOVVS1Ou2kN17Ghlg+jFLYYBX1w5e0bAAchVy7BVj//q8Bl u26+f7NuhTrm7wYMrohRpsoahmqOft/uwXZBGESohEAcWfmGGeUnar/iqFeV2UiJ8DOP gP+wX804ilnrQPaEE8Lwd2aK7l8A9QAQ+AZB8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/Q2u/tsrKoFDIiu0ywRZGBRmyE9C0XxC7FQu/e+jYmo=; b=MjmNdNg1c3vJB1MYlrX/Mv0s30U85KMApTbO/NulCY/koR0Ey8Z7i2+rHquEupnTRH SNNVqM2YdPgiUdvC078j7d5EfQzjB9+hHnM5AZSPOTjvZZmbnC5MtmXRTyfny6hN2LZz hI0mx68RPLL1KpY/hBYBpbnq0wrGVt4Z10eS9j8VKw6pHwVPwTUfyy5FNXIQ6wJBJhae f3F+AwaZ3nSEJYxndi1Wi4zY09zj8DgaruoV8cOgynVqo+EP1G88XJlbFrGj53GYn1gE rUi3FxIvH+555hvLJMBnyVPWGG31Zjs/Cduwb9tiDyJTtT03SsUdex+Rp3UGxIaAASG5 JwHg== X-Gm-Message-State: AA+aEWamfdA3U4nW2A57jYsX4wofNfRFUpI9FZkpNZq5Xl/qhENztTlC vDc6e6rme0SozfXBdbuu0xIW4g== X-Google-Smtp-Source: AFSGD/Xkb2Xg2dWYgiGc5OJlhI2rqzN65UM2OiIMep0FsUPJ+jjr+tORjc21oDot04SvQjaILZV0KA== X-Received: by 2002:a1c:13d1:: with SMTP id 200mr4440209wmt.4.1543832156825; Mon, 03 Dec 2018 02:15:56 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:56 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 2/9] mfd: axp20x: Add GPIO/pinctrl support for AXP803 Date: Mon, 3 Dec 2018 15:45:40 +0530 Message-Id: <20181203101547.16835-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add GPIO/pinctrl support for AXP803. This will reuse the similar compatible to that of AXP813, since both PMIC GPIO's are same. Signed-off-by: Jagan Teki --- drivers/mfd/axp20x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 0be511dd93d0..bc705ba49c3f 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -731,8 +731,12 @@ static const struct mfd_cell axp803_cells[] = { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, + }, { + .name = "axp20x-regulator", + }, { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp813-gpio", }, - { .name = "axp20x-regulator" }, }; static const struct mfd_cell axp806_self_working_cells[] = { From patchwork Mon Dec 3 10:15:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0CEA13BF for ; Mon, 3 Dec 2018 10:16:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A08642B06C for ; Mon, 3 Dec 2018 10:16:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94AD12B06E; Mon, 3 Dec 2018 10:16:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DA0F2B06C for ; Mon, 3 Dec 2018 10:16:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbeLCKQX (ORCPT ); Mon, 3 Dec 2018 05:16:23 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38497 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbeLCKQX (ORCPT ); Mon, 3 Dec 2018 05:16:23 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so11483740wrw.5 for ; Mon, 03 Dec 2018 02:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O05pEMsjPvSm8OsI4DmhPRSk9+B31/RzfWZxO3ZP0hs=; b=CdtOUgRd7fKTLnNnApGPpwX5/e1tQjDrTcncF5Me4HkjmwfnmkhMlrZz1HqvJjLXT/ sEKv6G9X5uUdL8V81quIJdVbM+WUzBKgHM2fX36kdItiuq3OjQSXyS/ZIa/MhVCGCYmw TRFqlCEAcpVWwiiaFbpcWaf9KYTT3yQtsdKXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O05pEMsjPvSm8OsI4DmhPRSk9+B31/RzfWZxO3ZP0hs=; b=CrmgGkF6htnrNqMFy3Ip5Yb9IdvJNYvj7sdvGKrxEwIuWNP86uUb/myXgDDcpfxGYB mcpIb36DfC6a2vegvIlDkg8xiJBLnKYWOsrp/svw5/is7jZI1pWBh3bJ/R/Z45yIZd6W /joB+gqH1hl8mCzcHbFPxDPU4RI6Hkys3tEDl4rSxFQuYm1E3bMvjdPdiTf+qXTOwkbw iD6t2qYsoz+aUf8Vf48UVui101Yv6ru8D+s3emuPTBtQ6HXAUK9h0QoIMBxxEjVCpF8w CqunaiEZ2n6EPnHIns7XTjGr/eWy0bCVLc4Rnkwo821GvaEavxIKj1d/xFHXvmHAtV8e 96yQ== X-Gm-Message-State: AA+aEWZjIMCL4F3gptR93pmp4+7hgsSWaUe+eiYe46j3mBJ/o7BeVU5z Sww3FoCG/+5GinUu3ac1mp8LmA== X-Google-Smtp-Source: AFSGD/Uxa3NMQLBGsOsZ0LU5sErOBIuU/IbCycZtoat/FVE7R+MSb+HMM6jhcqw7T7YHjI2wwMe62A== X-Received: by 2002:adf:ae1a:: with SMTP id x26mr12893016wrc.0.1543832158090; Mon, 03 Dec 2018 02:15:58 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:57 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 3/9] arm64: allwinner: dts: axp803: Add GPIO DT node Date: Mon, 3 Dec 2018 15:45:41 +0530 Message-Id: <20181203101547.16835-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add GPIO/pinctrl node for AXP803 PMIC. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index e5eae8bafc42..c6b95980d476 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -49,6 +49,13 @@ interrupt-controller; #interrupt-cells = <1>; + axp_gpio: axp-gpio { + compatible = "x-powers,axp803-gpio", + "x-powers,axp813-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>; From patchwork Mon Dec 3 10:15:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A38613BF for ; Mon, 3 Dec 2018 10:16:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF7F62B06C for ; Mon, 3 Dec 2018 10:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E37472B06E; Mon, 3 Dec 2018 10:16:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82CA22B06C for ; Mon, 3 Dec 2018 10:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725888AbeLCKRA (ORCPT ); Mon, 3 Dec 2018 05:17:00 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37688 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbeLCKQY (ORCPT ); Mon, 3 Dec 2018 05:16:24 -0500 Received: by mail-wr1-f68.google.com with SMTP id j10so11477072wru.4 for ; Mon, 03 Dec 2018 02:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wg4zCKkS5SfqlTRPj9JdiOkThqwhYO31sOTuFqJbv8g=; b=P4REhBT+SdcfxIfpb6eF0vbf+VMAT8ksV6a8YaOzCwDqLMOQx7fsYDoG6NREqfZsht csYkt25uMUuqcf6TSBQO7c57wNp4s7tlEiQ4rgmoQgjHeOnZM5bdEM7mE5sWhFbwd9/Y JzGC0CPNQfrCc8oHzKFL7G18BY+mWAJOdDpH4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Wg4zCKkS5SfqlTRPj9JdiOkThqwhYO31sOTuFqJbv8g=; b=XHAwzytmNEemptkciIX0qhFo3DowXPGIlrreRVcW8Qp9NkHP/SDd1J1qJFq3BeJ8j3 l3hLTSuI6SEoBsLWPjUZiuv+usF9Kr59UfTiftuZkw3OoqKUURQhC2sIv7vDw3G3eA7U +6e4Wuh+VoCSsvbwz1x5OF2imIpOOWl9iS6YOqoHoYAS9stLao0+fEJAQi0wQLYTMQfJ 9EYz9rbsEbALvIyKafcCBYFvRxISIjpuWZAExhtkfaZIeYvCSeKDi5ViF2ekN80V6iep ywmAFL9oMv0PrPWS3vP2irX7K6Bo4cWAoDC09cWH3e7ePAIafFC3QnYEo7taRdsO0aCD 1J2w== X-Gm-Message-State: AA+aEWbaSj69lTDq+2QPlDOx3sT00oeLBFx6gCpoFmT7KTfO1IlBxg5Y D1Q9zbu+8gwtN2OkIasrICDMfw== X-Google-Smtp-Source: AFSGD/UOV3gw0B7fO0cTvmV+8AhL+IERt/3Sh8OSHR90BdAk+ZC3xvxFiQia66+W1PEyVGFPnn8kjQ== X-Received: by 2002:adf:e983:: with SMTP id h3mr13012473wrm.232.1543832159477; Mon, 03 Dec 2018 02:15:59 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:15:58 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 4/9] arm64: allwinner: dts: axp803: Set GPIO0/1 pinmux for LD0s Date: Mon, 3 Dec 2018 15:45:42 +0530 Message-Id: <20181203101547.16835-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GPIO0, GPIO1 can be used as LDO like ldo_io0, ldo_io1 in AXP803. So, attach the LDO GPIO pins along with pinctrl properties. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm64/boot/dts/allwinner/axp803.dtsi index c6b95980d476..b0d6b3c3cf38 100644 --- a/arch/arm64/boot/dts/allwinner/axp803.dtsi +++ b/arch/arm64/boot/dts/allwinner/axp803.dtsi @@ -54,6 +54,16 @@ "x-powers,axp813-gpio"; gpio-controller; #gpio-cells = <2>; + + gpio0_ldo: gpio0-ldo { + pins = "GPIO0"; + function = "ldo"; + }; + + gpio1_ldo: gpio1-ldo { + pins = "GPIO1"; + function = "ldo"; + }; }; regulators { @@ -137,12 +147,16 @@ }; reg_ldo_io0: ldo-io0 { + pinctrl-names = "default"; + pinctrl-0 = <&gpio0_ldo>; regulator-name = "ldo-io0"; status = "disabled"; }; reg_ldo_io1: ldo-io1 { regulator-name = "ldo-io1"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio1_ldo>; status = "disabled"; }; From patchwork Mon Dec 3 10:15:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D74BD1731 for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4D022B069 for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEDEB2B06A; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 613462B06A for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbeLCKQ1 (ORCPT ); Mon, 3 Dec 2018 05:16:27 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38129 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbeLCKQZ (ORCPT ); Mon, 3 Dec 2018 05:16:25 -0500 Received: by mail-wm1-f68.google.com with SMTP id m22so5021713wml.3 for ; Mon, 03 Dec 2018 02:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hgaDQkDoibMUUGBXHBCGeXaaQAL52VCnVF1GrXldIPA=; b=qttEOSB6GTEdB2OuW1Pefb35HbJoo1ypye9EEESvp0KQdEXeck7X/4G+NzF6sEtQ42 lCBi/SoHtLsgVKHmFmKTaf6ZNA7Tx3aLcmdqT7PYckms5U03hBMQM/ZXfVTy5ViRecPf /hhgkKie+Sv+Tv+9WkcSPMJN22IFiBeiJDQ4c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hgaDQkDoibMUUGBXHBCGeXaaQAL52VCnVF1GrXldIPA=; b=ZlTYaY5qavfuXPxDihGhnPRZpKVKT3b8Ef0aq/+18J9+qa8XzmMxFBU9xsBRauQi0g QJ3quWpQTMsbEjQZKvw7qVrxZyZ41BErzArCc9bJd39AC/r8E9FLaoo8ZG71ARwI8UJf NWuA7CytuqrU6idaWMPPxpYIHbskTCJsmyXjJJ6Gwc6TJWA0g+58pN6f+PwnT5s0lmS0 L3D0yrvU5N6Sxg7HaOKgIW2Qn7jUlBsaYO0Xlwvumqup6WU48hZf6EWEsJ30Ko+H4rNp g7iOq69mMX77tCK0hHuPk3NzfPeXtHjSj/Z2gC2mrA58qLA91LK4+S6GRW+QYuuqVDRI S8Dg== X-Gm-Message-State: AA+aEWby9wVALMcZY0L/uwOvFl3pOGtJ2STA0fHxwp/mjJ9ppEK8yVfo CgGV07vQdHidctk3Ykydqd6v8w== X-Google-Smtp-Source: AFSGD/Xwlld3xeI/VFBtGMFL3KEijSd8n3gf8wwOqT+DCZYgY8B5vXaZDaW2545VwtZiaF1uGzx6sg== X-Received: by 2002:a1c:4c10:: with SMTP id z16mr8051912wmf.117.1543832160747; Mon, 03 Dec 2018 02:16:00 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:00 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 5/9] dt-bindings: input: touchscreen: goodix: Document vcc-supply property Date: Mon, 3 Dec 2018 15:45:43 +0530 Message-Id: <20181203101547.16835-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP vcc-supply property is need for some Goodix CTP controller like GT5663 where 3.3V external pull-up regulator connected via controller VCC pin. So, document the same as optional property. 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..604766e347ce 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) + - vcc-supply : 3v3 regulator phandle for controller VCC pin Example: From patchwork Mon Dec 3 10:15:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B88FF13BF for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A85F52B069 for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B4B92B06E; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B2CD2B069 for ; Mon, 3 Dec 2018 10:16:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726050AbeLCKQu (ORCPT ); Mon, 3 Dec 2018 05:16:50 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45308 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbeLCKQ1 (ORCPT ); Mon, 3 Dec 2018 05:16:27 -0500 Received: by mail-wr1-f66.google.com with SMTP id v6so11451643wrr.12 for ; Mon, 03 Dec 2018 02:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MX6hF1WvT6/jnjg/Hvxrw/jbX1gmvj02z43j9IhctPk=; b=ctOtaMPGCmFOsRrqLmlS+E6Vf5lZ8qOMRYKnnfunQTf7jPddBD4Q5tt6umguIojCEq svzBj6FKXHKdjaclTZh12ET5K/gRPnVZLmEl1EYH7z9QIKUQ5QYGqsHgSQVKfgyKZaqw BCRT0CB1J7fK1u+aQQ6PLGAMYUdPKWUF/rHVU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MX6hF1WvT6/jnjg/Hvxrw/jbX1gmvj02z43j9IhctPk=; b=VdCz8butpb1FTWsxAq7luB2+vrGTX93xbzzbLhp45srZnQVczeodqpx6mGPXR5t0kq nTOuGTAaDvUNlLhaHhpRhSV2ckNQSBSTdn43BjpNW2IH38W8QLlcKJd8odTMq+IXBjNf RqS2k7738zGvMpVD4uvvHo4mhhI+nDed7lbXKFDrHOlnD6LLEp+0ZZIcBghdTk9VPfpT WhwyPNLwm5/tIn382/oLT3MypyDa4HNxoazs2QYyWTYmbmtbuec4jQ3woC2mTMka+WiB QJIr8tJNKK7BkK6jD2wGyBnEH38Nk+TZW7wYDcCYbLXcFdJBfps0Irj0rHqDCcyOHKtd thSA== X-Gm-Message-State: AA+aEWa7nzSw3Fak61WKAE+gLLYl2Omlzc7SouFSTJ7BdT72Yp+59Rbr 0e92ZZB6DD3fdwfpGtH3+brt4A== X-Google-Smtp-Source: AFSGD/XZrkrloQ5/rvxj/0OMNRHVR0EheGpmH5OuudxmqmlBlo2LoDkZaoKHippBpsUviaxdeZIqzA== X-Received: by 2002:a5d:448f:: with SMTP id j15mr9244659wrq.108.1543832161996; Mon, 03 Dec 2018 02:16:01 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:01 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 6/9] Input: goodix - Add vcc-supply regulator support Date: Mon, 3 Dec 2018 15:45:44 +0530 Message-Id: <20181203101547.16835-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP vcc-supply property is need for some Goodix CTP controller like GT5663 where 3.3V external pull-up regulator connected via controller VCC pin. So, enable the regulator for those it attached the vcc-supply. Signed-off-by: Jagan Teki --- drivers/input/touchscreen/goodix.c | 39 ++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index f2d9c2c41885..7adcf1491609 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 *vcc; struct gpio_desc *gpiod_int; struct gpio_desc *gpiod_rst; u16 id; @@ -58,6 +60,7 @@ struct goodix_ts_data { #define GOODIX_GPIO_INT_NAME "irq" #define GOODIX_GPIO_RST_NAME "reset" +#define GOODIX_VCC_CTP_NAME "vcc" #define GOODIX_MAX_HEIGHT 4096 #define GOODIX_MAX_WIDTH 4096 @@ -525,12 +528,24 @@ static int goodix_get_gpio_config(struct goodix_ts_data *ts) { int error; struct device *dev; + struct regulator *regulator; struct gpio_desc *gpiod; if (!ts->client) return -EINVAL; dev = &ts->client->dev; + regulator = devm_regulator_get(dev, GOODIX_VCC_CTP_NAME); + if (IS_ERR(regulator)) { + error = PTR_ERR(regulator); + if (error != -EPROBE_DEFER) + dev_err(dev, "Failed to get vcc regulator: %d\n", + error); + return error; + } + + ts->vcc = regulator; + /* Get the interrupt GPIO pin number */ gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN); if (IS_ERR(gpiod)) { @@ -786,25 +801,34 @@ static int goodix_ts_probe(struct i2c_client *client, if (error) return error; + /* power the controller */ + if (ts->vcc) { + error = regulator_enable(ts->vcc); + if (error) { + dev_err(&client->dev, "Controller fail to enable vcc\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,17 +847,22 @@ 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: + if (ts->vcc) + regulator_disable(ts->vcc); + return error; } static int goodix_ts_remove(struct i2c_client *client) From patchwork Mon Dec 3 10:15:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C142E13BF for ; Mon, 3 Dec 2018 10:16:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1F612B068 for ; Mon, 3 Dec 2018 10:16:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A60BC2B06A; Mon, 3 Dec 2018 10:16:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55DBA2B068 for ; Mon, 3 Dec 2018 10:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbeLCKQ3 (ORCPT ); Mon, 3 Dec 2018 05:16:29 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40509 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbeLCKQ2 (ORCPT ); Mon, 3 Dec 2018 05:16:28 -0500 Received: by mail-wr1-f65.google.com with SMTP id p4so11474101wrt.7 for ; Mon, 03 Dec 2018 02:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sYIR92ZSRt6P2LabORDc+r2SZD6NGN2vTfFdELLfLf4=; b=qC8oqrq55XITG+IaBKgDlrqKba/eWXMICT8ZW/Rcc4w4V6RiseMUjyfrfmbtTpyUDd 0mBjZRf+m3qaDu0DTvoS/QChJeSM09sBOq9ACkMw0YHJ6WxFEYFT8xBCcWPVTdkEU7AA dTa0Ib7KnK7tI8rzBqeja78V/ZEzDQy+/L0sM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sYIR92ZSRt6P2LabORDc+r2SZD6NGN2vTfFdELLfLf4=; b=IqmviMZDrwv+UWHm/GgddO9z+gl92ohX4JiLGpdpUwlOMifHbp8IPHef0Bkj7HNoyE CLiu7H8D/YZDOwSCsfuhwBnb4E0zQ3LTdufHyAGCkVSGZ492xB/NdvS9y8sml64BOHuU JNZzyjgxvOE4jRSghvjqprQE2Z7tk+bRCajiRbPW3tBDCmzspxkJggxMVvRyngE1hsNC 1yHNxd6gbwdPRNefW5NnG52VF0hL2v91uudWwcr6RDzkjAsl5UojNsME8GgQpSKgOSci CWKM46kOjpz/rrX2wCaE4W8+Sas6L0x/bLk99TOuEGTEbJ30rW+ofzasxhvk4B+T37XT q9Dw== X-Gm-Message-State: AA+aEWbDAsJBHoYTLiQXmUC08xvDqY29nnOsl5W0e5qkCZWzG6HmsUpL sAe2YwUbuIN9GEB8zgeqHfA/Mg== X-Google-Smtp-Source: AFSGD/Vm4W738LcPT1s/CT/dGj4WK/IiXywz4IEpkGYPcV0L5ZaqAwwt1Y6p2GtyZ5p6627XpfOOdg== X-Received: by 2002:adf:83a7:: with SMTP id 36mr13550244wre.13.1543832163368; Mon, 03 Dec 2018 02:16:03 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.16.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:02 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 7/9] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible Date: Mon, 3 Dec 2018 15:45:45 +0530 Message-Id: <20181203101547.16835-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GT5663 is capacitive touch controller with customized smart wakeup gestures, the existing goodix driver will work by phandle vcc-supply regulator. So, document compatible and example node for the same. Signed-off-by: Jagan Teki --- .../bindings/input/touchscreen/goodix.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.txt b/Documentation/devicetree/bindings/input/touchscreen/goodix.txt index 604766e347ce..1898d3dde8e1 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" @@ -42,3 +43,15 @@ Example: /* ... */ }; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + vcc-supply = <®_ldo_io0>; + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; From patchwork Mon Dec 3 10:15:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709095 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E9C813BF for ; Mon, 3 Dec 2018 10:16:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E11B2B068 for ; Mon, 3 Dec 2018 10:16:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81E0E2B06A; Mon, 3 Dec 2018 10:16:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38EA42B068 for ; Mon, 3 Dec 2018 10:16:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726054AbeLCKQk (ORCPT ); Mon, 3 Dec 2018 05:16:40 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33342 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbeLCKQ3 (ORCPT ); Mon, 3 Dec 2018 05:16:29 -0500 Received: by mail-wm1-f66.google.com with SMTP id r24so6585553wmh.0 for ; Mon, 03 Dec 2018 02:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ENkdUwpMYIjikqqc1QhQM7T86CeGAWnXemUcHFbD02o=; b=aYTFU2MZ7/ghfls+aRabDUkSrsGcTIia9n7+ti02Ikl0zukh3A5R4+kPd/2PL9dVlB bVX28R9dBILXBboU99T758EvRQ64ucicqi4xbZOoPQA5xl4i9UJk2Jbr0oWzlYaAXKFE tBKfHjUHlUL1LsIpIe6D3i3HT+8bCZcuwP61U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ENkdUwpMYIjikqqc1QhQM7T86CeGAWnXemUcHFbD02o=; b=NY9mbT3PZhrL59MTObH/VUndLofbbgTHOtwjWh1X9aA1iDBQLdW/Uci/0J53LWNZLy P+vzu0QOYS7qFZfRwo00HE44yf/JI0ance79kx1qyyjpYxyp6N5NrowicBDtJb8CwhJZ tpHn7os+Gi06UDgfVIvk1uJaiBdOsdCYu7X5Q22nFNo+2II+x6gHPEcsVOEqUgc9btyn +dj69sMnq2YOetAkP+XMGVEsTOoX2etfXIdsGGDieFFJPvgnj7/9dlFjztGvquxIYYnW aUi6T0/gOOR2FO2OUZ6hAIk32Z6Zq73iJsLeq38ypZt5xLYFQW+2yb3QwsRYqIqJyTCr OUxg== X-Gm-Message-State: AA+aEWa3v0xKHCcesPtPzCUP3VNY3vHbmHCHTGr770dPlhrAqrRL9z9u bjUYZeA8RtTUYWggG6PNkj/dDw== X-Google-Smtp-Source: AFSGD/X7xfmFlqfllOFSoXoL/fsvUc05xC8M823dMGYQDptYklNoaRsVfRUi3/sznjvgXljdefiipw== X-Received: by 2002:a1c:13d1:: with SMTP id 200mr4440666wmt.4.1543832164583; Mon, 03 Dec 2018 02:16:04 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.16.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:04 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 8/9] Input: goodix - Add GT5663 CTP support Date: Mon, 3 Dec 2018 15:45:46 +0530 Message-Id: <20181203101547.16835-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GT5663 is capacitive touch controller with customized smart wakeup gestures, the existing goodix driver will work by phandle vcc-supply regulator. So, add compatible for the same. Signed-off-by: Jagan Teki --- drivers/input/touchscreen/goodix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index 7adcf1491609..0c09512bcdea 100644 --- a/drivers/input/touchscreen/goodix.c +++ b/drivers/input/touchscreen/goodix.c @@ -971,6 +971,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" }, From patchwork Mon Dec 3 10:15:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC10D14E2 for ; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD5742B068 for ; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0FDE2B069; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB142B067 for ; Mon, 3 Dec 2018 10:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbeLCKQc (ORCPT ); Mon, 3 Dec 2018 05:16:32 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54051 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbeLCKQa (ORCPT ); Mon, 3 Dec 2018 05:16:30 -0500 Received: by mail-wm1-f65.google.com with SMTP id y1so5089188wmi.3 for ; Mon, 03 Dec 2018 02:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rcmd27QWJ4xmppTvwllwY6JeAM/zSw/3F56Tx3gVCeQ=; b=jlRr82vuqkK0mmH/legr7UuT2SR17Izjlh427s+xfWa7DmENHl9PTVPMRQg+2yZaVu t61q4G+qv5aM+Yho3fsirfrh5a4+/c6/1eUWio8l1K6LoIMCJRu4ILsS+8pk983poCaF QIbIl9qeY5dAErs7Q4rfb9Wl9XjygP+uAHQRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Rcmd27QWJ4xmppTvwllwY6JeAM/zSw/3F56Tx3gVCeQ=; b=UDKpFcsu7/O/rCzkkoDJ/V6n+b09LuSbp6ayvScjlOhV7AJl8/VMU3rGiRD/foN/9D g4g3ZL5NIY92lbtvEWLurj26fVkBf7nk3VErrT5r261kVhCQowaE54Pera/XwDcOnvGY cz2v653mlPDOdArYBjE6TuPmMz40HfGZGQ4jA9QA9YPhv9n8s+XOi/1eggiBdnk9HTHE PNt5vBxFQyUAHq0ggtm8ejSuWZIPWSQufOip15lrwoThCRF7rqoHKpJMnT5UxviZUDOM q4Ic3qhniuGPhr7x4q5H5TOoB2/0Lx7VPhTCInqttIe2x96Ck0O0lLrgBzxeA5XRPyPb uS9g== X-Gm-Message-State: AA+aEWa/s1BIHVANCEp541fRpBXSzH+mhyh3uxiuiuT4jFyHC8QDvPpt oqlWrPOI5GlQgFTf7XiTF8AgkvZZhtU= X-Google-Smtp-Source: AFSGD/XtKq3es9+911MegfWg8xs36aHwaMEywK0bx9cUOLdLgmGC8tOga7v8E9RG6igPmIUh54Mt9g== X-Received: by 2002:a1c:27c6:: with SMTP id n189mr7546256wmn.108.1543832165929; Mon, 03 Dec 2018 02:16:05 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.16.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:05 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 9/9] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Mon, 3 Dec 2018 15:45:47 +0530 Message-Id: <20181203101547.16835-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add Goodix GT5663 capacitive touch controller node on Amarula A64-Relic board. The CTP connected to board with, - SDA, SCK from i2c1 - GPIO-LD0 as vcc supply - PH4 gpio as interrupt pin - PH8 gpio as reset pin - X and Y axis are inverted Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 9ac6d773188b..913fcdff828e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -88,6 +88,28 @@ status = "okay"; }; +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + vcc-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + +&i2c1_pins { + bias-pull-up; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; @@ -251,6 +273,13 @@ regulator-name = "vdd-cpus"; }; +®_ldo_io0 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; };