From patchwork Thu Jun 16 06:09:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 582385 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 DA479C433EF for ; Thu, 16 Jun 2022 06:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358952AbiFPGJZ (ORCPT ); Thu, 16 Jun 2022 02:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358981AbiFPGJW (ORCPT ); Thu, 16 Jun 2022 02:09:22 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4AAE252BF; Wed, 15 Jun 2022 23:09:21 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 86B2F32009BE; Thu, 16 Jun 2022 02:09:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 16 Jun 2022 02:09:21 -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=1655359760; x=1655446160; bh=Oa skLM2rsVB8WYN8miwGXG1amlwpVFT97kyPItB/L34=; b=B2s02t8eovzTmtzEqK e1CUB84rCa3V8SbFRXBvzXRzBF3rxVchBq1XlQKmy6aUKdiv04K/dLvZd0gSf6J1 7T8G19GhCtCkIam++7ecyRmX/ztSBPnWJZd6PX+nIuI3sPr7DTgcoC9TTe6lMEfw s1YxpFH+4lGtvkE+8XS+BCCcFr2PDqRG2EbwsUKigIDW6KiFfQj0bqYhIr6nQ05I /M+dlKBIO090yHa0a2I3lQSw64T9cco2oES4C76ZCJlw89X8ACANPUiMlVgwWrVm S1pVW3IQyfJxLVr30NA9ENMgGmJ+Eqf4SCU7ISMYkIvdpUFGAR0eRmHT0vd08fXq Khcw== 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=1655359760; x=1655446160; bh=OaskLM2rsVB8W YN8miwGXG1amlwpVFT97kyPItB/L34=; b=UJMXvnWhqJU3aJ8/DxPUuGl/7V7nb njcG2ncKOTXDBSGACSexVndcrMBDtPZ45nRsfJkYwaNfG99GXqfOVZo3R7oo17i3 FJQvv/5kFsutACkLIW+FwyKr97sl0duH6kJDcpdM/znera7AY9nxaYwpacDWq8wB CZhFes/2EJV3iEW1lmHTrv9GK+Eento/UiM9GgOlFGM3BuOcMjTNf4xRKRc6B5Xe O1uxW+8o8mMG9GorBuBy3hfikEmaaVOjDxMMepFj227NuZgsgg9jCUi22nA+Ak8a JGcm7ODL8FvUyLmzlM4jV40mOgmSBzoYlmQ+q+EyhBa51uopwE5jMgGmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 02:09:19 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: gpio: Add AXP221/AXP223/AXP809 compatibles Date: Thu, 16 Jun 2022 01:09:12 -0500 Message-Id: <20220616060915.48325-2-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220616060915.48325-1-samuel@sholland.org> References: <20220616060915.48325-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 --- .../devicetree/bindings/gpio/x-powers,axp209-gpio.yaml | 7 +++++++ 1 file changed, 7 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..6faa3ef28960 100644 --- a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml @@ -19,7 +19,14 @@ properties: oneOf: - enum: - x-powers,axp209-gpio + - x-powers,axp221-gpio - x-powers,axp813-gpio + - items: + - const: x-powers,axp223-gpio + - const: x-powers,axp221-gpio + - items: + - const: x-powers,axp809-gpio + - const: x-powers,axp221-gpio - items: - const: x-powers,axp803-gpio - const: x-powers,axp813-gpio From patchwork Thu Jun 16 06:09:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 582684 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 379E3C43334 for ; Thu, 16 Jun 2022 06:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359000AbiFPGJb (ORCPT ); Thu, 16 Jun 2022 02:09:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359006AbiFPGJa (ORCPT ); Thu, 16 Jun 2022 02:09:30 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABB6D29828; Wed, 15 Jun 2022 23:09:24 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 5D4403200B93; Thu, 16 Jun 2022 02:09:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 16 Jun 2022 02:09:24 -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=1655359762; x=1655446162; bh=vz nRDmlsb3zTjKCOceYDuGVn1WQxrFjMwm/ALiW9ePA=; b=rl3sp9hOPvz3C0ndZ3 irR9rMiB3QyZTl6B946b3+/YWwGZ745+V1mqz03/xBpAHVG/Mlzfu851c1dHsxIP G0WQYWX/p/DHMLuqJOVTnv4DImaF4ULRHSDcEb2FRxtG5JAVZeL6PGvqSvj2dmbX 8W6YVuFf3FIOgD6IHjQP37d7mXsI2AgBpyE5lJOfyDoNk/dWrSaZdn6z2PAfSIAg udgtBYIYKH8JuwIRT/lAkterwehK5XTUj/4jX9omUIwS8iv9KyC0g/WP0ymeoclb frL6Fk+tGZTrtC1SAbana69rGtVbwheyOkbv5cCx5j4JwVIPwhT2VVQRJNVS9KLz COQA== 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=1655359762; x=1655446162; bh=vznRDmlsb3zTj KCOceYDuGVn1WQxrFjMwm/ALiW9ePA=; b=Nb1jXD3F9NeGHW5HGa4/oKlcmvWrh NWPE34E2kZnZs9udAcvthSA2sqHECfO8+7kyGxwQuj4cjWoQr6WW50nG22/QZ3gC 258gq4pBWvRnsNlswadBdYyYTX1dpaxO7vx3Dtx++w8P3RwzDKLA1ux/sZ2bWehJ 5RutMocfm6DU+etmUjLSTqojVUAguoW5jSjoi5qv5cx47hlQagxNCv5MXLjxBJ5l u5nlxX4IAXw5saf9WGDchm/fdygJYypLuapacdAr5kdt3VuBjIdfGBAeUppb27jk TBmFlX6giBYhwLIbwH9pB8RFl/85nQeP9ms6/uQMo+/g9/sPCTYFzUL2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 02:09:21 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] mfd: axp20x: Add AXP221/AXP223/AXP809 GPIO cells Date: Thu, 16 Jun 2022 01:09:13 -0500 Message-Id: <20220616060915.48325-3-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220616060915.48325-1-samuel@sholland.org> References: <20220616060915.48325-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 --- 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 Thu Jun 16 06:09:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 582384 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 AF1A4CCA47A for ; Thu, 16 Jun 2022 06:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359019AbiFPGJc (ORCPT ); Thu, 16 Jun 2022 02:09:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359012AbiFPGJa (ORCPT ); Thu, 16 Jun 2022 02:09:30 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CE22AE31; Wed, 15 Jun 2022 23:09:27 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C96123200B89; Thu, 16 Jun 2022 02:09:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 16 Jun 2022 02:09:26 -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=1655359765; x=1655446165; bh=Wp QPo7pmmXPFcZpqgi6pg7aulqg71qCMS9O5OKvOTSk=; b=hS+NI950tjavec7au1 N80n1ca/2Df1cwURXnMmf7XrhK4fj6OOCfjbQGonlc1TwJcvlLc6yrN7hoJoOTDj Brd7cyhTjN/W6Lf/MdcsoyZ4Y8736RSu3NKwSivwT+xrecdpIlCLZEh0CEzF+gEv iiIeDdwSLZPj1KzQuayba54kIlYRhe9GkpkwT5LhEH6IuzGk3XzguIqtOvW6EMT3 F7JN9MsiuIGFiC4A7EHk/5YLGRt6/uF6bNr5Aq/xQDzvacW0hif7VbZwljfe46cj 0ecAlkptb1caxVOk11NMbclSiYggVjKJU+njJXfM+X5Y2AU6yy3Ho+Q3VgCUvnIO jUew== 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=1655359765; x=1655446165; bh=WpQPo7pmmXPFc Zpqgi6pg7aulqg71qCMS9O5OKvOTSk=; b=PMBetWNY7VysMfnpxryA7xrX9WfsB I/NTr2kARcBi0Z3yzmI1P2K8cTy4/iP/W7OwafshuDsug/j004N+++53SZ1zL5Ue 0UEjLXmm3UfqrGeHHr7U67ME8Njt902hAOXjv5EJkvpHxYUREcaLnw1CS9llGR5b jT9ho3d6QzNYFtY+jUyYlP+xGJ4AUsDq9XJStYbeECeKTG8knmSrNjE+rgVPxw6t IRVrW8c6yflUl7/CbkM+iVewcCfUu6OBGjP3/bFqEwOlQST8/2XSEgy1Kc7gFpcD HFRy91KmzovxsHmeKzN8YzbxjxhfisoVYIrBWnK1ugFgd98cMLm/ekzHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 02:09:24 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] pinctrl: axp209: Support the AXP221/AXP223/AXP809 variant Date: Thu, 16 Jun 2022 01:09:14 -0500 Message-Id: <20220616060915.48325-4-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220616060915.48325-1-samuel@sholland.org> References: <20220616060915.48325-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: Linus Walleij --- 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 Thu Jun 16 06:09:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 582383 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 90C89C433EF for ; Thu, 16 Jun 2022 06:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359043AbiFPGJi (ORCPT ); Thu, 16 Jun 2022 02:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359016AbiFPGJd (ORCPT ); Thu, 16 Jun 2022 02:09:33 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C708C2E9DD; Wed, 15 Jun 2022 23:09:29 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 41B063200A57; Thu, 16 Jun 2022 02:09:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 16 Jun 2022 02:09:29 -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=1655359767; x=1655446167; bh=Q6 7Ot5tdbFGVjczMQOtyiP3EgCUjO/QaLYKLX+IzOvo=; b=eyFK0Vy99b3mJB/2NK fT1vC3q0wpxdZxR6Egmp65PmMxB08X14az1d72oN3D9SyD11p8w28Gi5cULbrz18 cihax6t8H4fq5SOlqf6N3PqUb5dGlEoWO/12aduSmB8irN/MJzxMAdZQVrjo5k1/ RbLLX7l4hUqb7gKwXo1Q7GxjElFbfaPh3oIAlLyVDGaVvR9lOCOGlz6E0tA3saJZ CMzZgXE/53s3R8iH6+0ZWlZcYyJNkpAa7UmdYchCoXlFY6Z6/dXUkeOyIerxJ3VI s47VuwRUz289oCS5s5pV4qA5Fs+7cFDH/lmECUIZfhXaBKG4jF0N+glOxx3cqYd2 Bj+g== 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=1655359767; x=1655446167; bh=Q67Ot5tdbFGVj czMQOtyiP3EgCUjO/QaLYKLX+IzOvo=; b=UwcL5PYe3LP6t/voujdgO89tALhl+ 7iojztLB1Yr50yWzUBUjx+Wrx2KDX5V+AiM6ChCk4aqPyCLPnihQeb/3FFajFRIa P02ZG3eHJRf82mbxO1V2/F6LFE2OBj9E7721uMQ4kkKGCOPUyKiIMsuQWLbdfPx4 80vQn/JUJ9I+Fb1Sb9VxBKX88HmGT9VtmakSDzyOdOtEypSIaFLOM3xaeSEHFoKe txyp3lSGRruLU5Q8xXd5WOOMjhREMKK7avfyREWz6s0QfcVtIFyLFt95WbscrOd3 0QB81t/7QMevEFoUY8rOZYcEzVnUphIyyNIlv5qAYIpBkyUMflYQTpyMg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeeh gfdufeeitdevteenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Jun 2022 02:09:27 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Lee Jones , Linus Walleij , linux-gpio@vger.kernel.org Cc: Krzysztof Kozlowski , devicetree@vger.kernel.org, Rob Herring , Samuel Holland , Bartosz Golaszewski , linux-kernel@vger.kernel.org Subject: [PATCH 4/4] ARM: dts: axp22x/axp809: Add GPIO controller nodes Date: Thu, 16 Jun 2022 01:09:15 -0500 Message-Id: <20220616060915.48325-5-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220616060915.48325-1-samuel@sholland.org> References: <20220616060915.48325-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 --- 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"; + }; + }; };