From patchwork Tue Jun 21 03:42:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 584063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 309F5C433EF for ; Tue, 21 Jun 2022 03:42:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345059AbiFUDmc (ORCPT ); Mon, 20 Jun 2022 23:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344337AbiFUDmb (ORCPT ); Mon, 20 Jun 2022 23:42:31 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B732631E; Mon, 20 Jun 2022 20:42:30 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 36AA1320098E; Mon, 20 Jun 2022 23:42:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 20 Jun 2022 23:42:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1655782948; x=1655869348; bh=AP zgP+RiSPGLCgXWajedsYV2f6Mhd3R/GY/RwZrbvPY=; b=KLDJJEyltNuCFohgqM ZmIUIEXmLlK0Uy/XDnRchpWdBtMJDNNoEc2s1pYWwwlnxnEsuywbU37TmKaaLL+6 CLXQyTOA4aszzlKFQCgIr2QC+OSePzZBkxcsnkO2ZaMTxGCt6rkY2k89soLHJnPF 8Iv9UQ4tPapfYu02PC1Krjeq/J8++JYizu+elfeTyOvVeR4+Bl5pJRLFb9pQ0YhV TRNk9UYNN8usflEkqu7QEyVb+y5u9bGa38wEenO8MCgZuVTDSTIiBbYhOB1B+ePk wCyT+W6vnlKkTs9yFTaRq/MDpPbpywHL9TXXA8f4iMIfeISW69HzzvGE60XWCjUK 6Jqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1655782948; x=1655869348; bh=APzgP+RiSPGLC gXWajedsYV2f6Mhd3R/GY/RwZrbvPY=; b=F4y5ZNHIXq/aTUalLHtttvbBRZ12S LpwFWuNvmCQSarPfZtF7+Wboo2BgZg5IYWCyEpTfhzd4NawyKS9supBEtFnU35bi nw4TK0KElvKVaUsBls51GZ0PP/l7ouAqZ2FtwZK25w8LtEDK+D4DmTr+kjEccv4K CDlqdQcf8yUH2eTMEaqOxGC+hK6oMDyat8/NP5BtdF+x7okeYIreycscpK10m/Wt fSF5kdA0TwTIxhPUaBBf2m7JtE3r5XByele5P/xX0ipes0kdogDONhzsge8h6Fa7 qXSvzk7PS/wCmILgaZ+9peO67Qhtk/0QmLD8VtMmLeITqjZBhV+p23xDA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefvddgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jun 2022 23:42:28 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: gpio: Add AXP221/AXP223/AXP809 compatibles Date: Mon, 20 Jun 2022 22:42:21 -0500 Message-Id: <20220621034224.38995-2-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621034224.38995-1-samuel@sholland.org> References: <20220621034224.38995-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org These PMICs each have 2 GPIOs with the same register layout as AXP813, but without an ADC function. Signed-off-by: Samuel Holland --- Changes in v2: - Combine multiple "const"s in the binding into an "enum" .../devicetree/bindings/gpio/x-powers,axp209-gpio.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml index 0f628b088cec..14486aee97b4 100644 --- a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml @@ -19,7 +19,13 @@ properties: oneOf: - enum: - x-powers,axp209-gpio + - x-powers,axp221-gpio - x-powers,axp813-gpio + - items: + - enum: + - x-powers,axp223-gpio + - x-powers,axp809-gpio + - const: x-powers,axp221-gpio - items: - const: x-powers,axp803-gpio - const: x-powers,axp813-gpio From patchwork Tue Jun 21 03:42:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 583716 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE7C6C43334 for ; Tue, 21 Jun 2022 03:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345148AbiFUDmi (ORCPT ); Mon, 20 Jun 2022 23:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345090AbiFUDmd (ORCPT ); Mon, 20 Jun 2022 23:42:33 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 306EF1EC79; Mon, 20 Jun 2022 20:42:33 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B42073200413; Mon, 20 Jun 2022 23:42:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 20 Jun 2022 23:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1655782951; x=1655869351; bh=Lx uWI7fwqUJxo8RalFUvW8brkX0rNqDAgLS/C3jwWOM=; b=e7K2mVJZDmTrc470vv XbdFJ71hbK8iS+o1Atn7nY+g3n9tpEkn+YiY1D2nJIjUjQOnSgxY+8pANso3ZPfb GwboWO3Opn2k3RfMFd+HHjDDZTobjBFxkMD/h0bM2OW80WqeCmIviZZS3F05z6vb r5zifmydTiNupFLXg5NC4KwvaJrGfLijxvG37iS6Sj3Tzb62EFiEh535vqbkEkPJ 8hcOW7JonDOwaSBm4537LxJRKU8jol1JjrTbv7fAFJpenM2jCzKMJ7oJGlH79mcs sYjlnnDaPEr1JNvvIyokeU+LO2X03EJzH8aRGYH/TB6vcgqk2N4u28KPJNW1gikF HwnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1655782951; x=1655869351; bh=LxuWI7fwqUJxo 8RalFUvW8brkX0rNqDAgLS/C3jwWOM=; b=eLjLryZYKEw1lLLccdtjDoM1LjY9M o4Mt2Uy5PDhT1evtiv07d1eHcUhjctMItqsHJaku5ZuhG0FU9Q/7zvZgYXuPopUI CkC0jZE0vdgE29QuKxaSO8y9GnU+4ObGdmAKnqvkQY9psgBkDmbujAmt59LixDEG nDOlZbtsDXAsrkygLTqmPC0FP6buTupjwWxdQAYJWzL/zGJB+V2i5oec1nWEtde9 u1v4oNqlFFAA/Cjb2jdeQMdskhg7U0vue5HGty34o+z4lKvYSW9hXt5JVb/nf8WD j4UOMm+9Wic1oLsvhykz+x5/dn5p9PfCyUnRQZFnVuwXYN3LsrWqrWCkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefvddgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jun 2022 23:42:30 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] mfd: axp20x: Add AXP221/AXP223/AXP809 GPIO cells Date: Mon, 20 Jun 2022 22:42:22 -0500 Message-Id: <20220621034224.38995-3-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621034224.38995-1-samuel@sholland.org> References: <20220621034224.38995-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org These PMICs all contain a compatible GPIO controller. Signed-off-by: Samuel Holland Reviewed-by: Chen-Yu Tsai --- (no changes since v1) drivers/mfd/axp20x.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 8161a5dc68e8..88a212a8168c 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -619,6 +619,9 @@ static const struct mfd_cell axp20x_cells[] = { static const struct mfd_cell axp221_cells[] = { { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp221-gpio", + }, { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp22x_pek_resources), .resources = axp22x_pek_resources, @@ -645,6 +648,9 @@ static const struct mfd_cell axp221_cells[] = { static const struct mfd_cell axp223_cells[] = { { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp221-gpio", + }, { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp22x_pek_resources), .resources = axp22x_pek_resources, @@ -785,6 +791,9 @@ static const struct mfd_cell axp806_cells[] = { static const struct mfd_cell axp809_cells[] = { { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp221-gpio", + }, { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp809_pek_resources), .resources = axp809_pek_resources, From patchwork Tue Jun 21 03:42:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 584062 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9D66C433EF for ; Tue, 21 Jun 2022 03:42:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345281AbiFUDmw (ORCPT ); Mon, 20 Jun 2022 23:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345190AbiFUDmn (ORCPT ); Mon, 20 Jun 2022 23:42:43 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 979B2205E1; Mon, 20 Jun 2022 20:42:35 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 43C1F32008FC; Mon, 20 Jun 2022 23:42:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Jun 2022 23:42:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1655782953; x=1655869353; bh=E1 xy502tT2o6kQP7RzONuNL2uQA+shIpVy7y307P1/M=; b=ejrcg7P9aU9tLfhcw0 aBFwTRROuKoxX2lFcWhQqjciNpZv3cjTYCUXfs7UyDA0CxLGT1db5h0DpsMsyl70 pwugrcNneV03xT8/ZWjoCnY1b/nW1Y4sMYNhwESMCXwRaybOnSo299yO4ULi482S FvmxuGHtvftHIMDNoNALcGvSzIaizP/j1azMhaB6cWpkg2WSGh93lTPbXDzpoukC Jadph9oSW4KE0Wyh2Qd6xakf23+fZ/LhDvYWnR0A0XY8FYEkC1oab6utDNQzQyF4 XwhAYbqT12HLmAwRy2sgwfqjZ9SWH2h8FrfIqdGP7XB+TyumQPydz+VVq/5pq7jq 3O0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1655782953; x=1655869353; bh=E1xy502tT2o6k QP7RzONuNL2uQA+shIpVy7y307P1/M=; b=ZSIKUCA8opETMy25KJ6SqrKdb7Hh4 llyj18qehsm7khzQqYkFBIulQUc4ZetBpAjZURyUPv6L6fMmXrijdCrEC7jJJ6JN V2DpVJe1wIlRNZcgR9qM9aTCkvQrxkQOPakHXgn0zcqtXh1NACZwOu+2RUX7rz7V u0oD3StsXxupoGWQk5uYkBKO1oeWWZDSligbG7/KLjNRxGETblFK8qJt+QVaIyux 1duztXOZi+IupN+sMpRshywnZdYd6JpsFswY6GDcQc01YTv1+LmAxPiMnOlZm4Jj b2uwOO9+jJG1b7wNtNBR/9/1s5n0zW5z+GIklZXwTSlfJ9xMq1f1ACg/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefvddgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jun 2022 23:42:33 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] pinctrl: axp209: Support the AXP221/AXP223/AXP809 variant Date: Mon, 20 Jun 2022 22:42:23 -0500 Message-Id: <20220621034224.38995-4-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621034224.38995-1-samuel@sholland.org> References: <20220621034224.38995-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org These PMICs each have 2 GPIOs with the same register layout as AXP813, but without an ADC function. They all fall back to the AXP221 compatible string, so only that one needs to be listed in the driver. Signed-off-by: Samuel Holland Reviewed-by: Chen-Yu Tsai --- (no changes since v1) drivers/pinctrl/pinctrl-axp209.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-axp209.c b/drivers/pinctrl/pinctrl-axp209.c index 207cbae3a7bf..7ab20ac15391 100644 --- a/drivers/pinctrl/pinctrl-axp209.c +++ b/drivers/pinctrl/pinctrl-axp209.c @@ -73,7 +73,7 @@ static const struct pinctrl_pin_desc axp209_pins[] = { PINCTRL_PIN(2, "GPIO2"), }; -static const struct pinctrl_pin_desc axp813_pins[] = { +static const struct pinctrl_pin_desc axp22x_pins[] = { PINCTRL_PIN(0, "GPIO0"), PINCTRL_PIN(1, "GPIO1"), }; @@ -87,9 +87,16 @@ static const struct axp20x_pctrl_desc axp20x_data = { .adc_mux = AXP20X_MUX_ADC, }; +static const struct axp20x_pctrl_desc axp22x_data = { + .pins = axp22x_pins, + .npins = ARRAY_SIZE(axp22x_pins), + .ldo_mask = BIT(0) | BIT(1), + .gpio_status_offset = 0, +}; + static const struct axp20x_pctrl_desc axp813_data = { - .pins = axp813_pins, - .npins = ARRAY_SIZE(axp813_pins), + .pins = axp22x_pins, + .npins = ARRAY_SIZE(axp22x_pins), .ldo_mask = BIT(0) | BIT(1), .adc_mask = BIT(0), .gpio_status_offset = 0, @@ -388,6 +395,7 @@ static int axp20x_build_funcs_groups(struct platform_device *pdev) static const struct of_device_id axp20x_pctl_match[] = { { .compatible = "x-powers,axp209-gpio", .data = &axp20x_data, }, + { .compatible = "x-powers,axp221-gpio", .data = &axp22x_data, }, { .compatible = "x-powers,axp813-gpio", .data = &axp813_data, }, { } }; From patchwork Tue Jun 21 03:42:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 583715 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA68AC43334 for ; Tue, 21 Jun 2022 03:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345332AbiFUDmy (ORCPT ); Mon, 20 Jun 2022 23:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345127AbiFUDmv (ORCPT ); Mon, 20 Jun 2022 23:42:51 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EDA220BEB; Mon, 20 Jun 2022 20:42:38 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CF57E32004AE; Mon, 20 Jun 2022 23:42:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 20 Jun 2022 23:42:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1655782956; x=1655869356; bh=8+ kpyGFjwm1UBofAO7xT80QECZvTQRm9biCZ/RYfokc=; b=it63xThXVfY3WE0i72 vgILBXfJAv/1mQZfy9gvJqV6F3QvwtrmWk4dXoD6dBrMt2ZZwzwsj7OrQsjhka5N 2rkmpqZ+9UnPfRru/xLSAZv6M8qk/FifY9VmlmPNRXhaH16grHnFc0CZGRNaRDKW 1wghVFaos3Qu4InwwUvMlUP3kZXnda4ewbHm/WKv3l2CRvPX5OfLfKOAJWJJ0hwt iW/vDgaFXY+acOR9m452Opmukw/iWhMi4532hrQYnzydLwzKv9YpAtwm7px6Kjvp fffeSn0lEi5LZRZ+YPDQCfiNiLQsM9e2GRfuXSAuIeyXeJk9vvOGrZu2qGFeYHdS loJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1655782956; x=1655869356; bh=8+kpyGFjwm1UB ofAO7xT80QECZvTQRm9biCZ/RYfokc=; b=cuhN6LRnOFUy3ufxG2vB/PZV3wxn9 gUbR4Uim8aGsnipy+pPtv8VcdzAHyrk7OxEUKkYZPAg3tXQQNObScwt9PluDLzBe Mo5+J0mV/O12kiJiDMuHBiITSpCjpaLUUmP6YAoKDx5hNF5pY+YdvyuLXjEIsEm6 05NVocZ0TIOBghDcYG2JrmgvCB0XpH+KqYg7xctdQrfGMZy4X7QyoL+5R1hALZHW sTG3kFg2QQf0Auy2mbJgVOYXtq9tMcR/hRobsyeKkam5gf8S3M5lWtU4y83Ag1Bx qWEHOCvhvyXnCh1MJwb4bPyyqyyywFc0spapXRmj990evCnmkQOz8SAMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefvddgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jun 2022 23:42:35 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] ARM: dts: axp22x/axp809: Add GPIO controller nodes Date: Mon, 20 Jun 2022 22:42:24 -0500 Message-Id: <20220621034224.38995-5-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621034224.38995-1-samuel@sholland.org> References: <20220621034224.38995-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org These PMICs all contain a GPIO controller. Now that the binding is documented, wire up the controller in the device tree. Signed-off-by: Samuel Holland --- (no changes since v1) arch/arm/boot/dts/axp22x.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/axp809.dtsi | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm/boot/dts/axp22x.dtsi index a020c12b2884..5c233c84be92 100644 --- a/arch/arm/boot/dts/axp22x.dtsi +++ b/arch/arm/boot/dts/axp22x.dtsi @@ -67,6 +67,24 @@ battery_power_supply: battery-power { status = "disabled"; }; + axp_gpio: gpio { + compatible = "x-powers,axp221-gpio"; + gpio-controller; + #gpio-cells = <2>; + + /omit-if-no-ref/ + gpio0_ldo: gpio0-ldo-pin { + pins = "GPIO0"; + function = "ldo"; + }; + + /omit-if-no-ref/ + gpio1_ldo: gpio1-ldo-pin { + pins = "GPIO1"; + function = "ldo"; + }; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>; diff --git a/arch/arm/boot/dts/axp809.dtsi b/arch/arm/boot/dts/axp809.dtsi index ab8e5f2d9246..da92b105f3b0 100644 --- a/arch/arm/boot/dts/axp809.dtsi +++ b/arch/arm/boot/dts/axp809.dtsi @@ -50,4 +50,23 @@ &axp809 { compatible = "x-powers,axp809"; interrupt-controller; #interrupt-cells = <1>; + + axp_gpio: gpio { + compatible = "x-powers,axp809-gpio", + "x-powers,axp221-gpio"; + gpio-controller; + #gpio-cells = <2>; + + /omit-if-no-ref/ + gpio0_ldo: gpio0-ldo-pin { + pins = "GPIO0"; + function = "ldo"; + }; + + /omit-if-no-ref/ + gpio1_ldo: gpio1-ldo-pin { + pins = "GPIO1"; + function = "ldo"; + }; + }; };