From patchwork Fri Sep 16 04:27:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 606616 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 05A76ECAAD8 for ; Fri, 16 Sep 2022 04:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbiIPE15 (ORCPT ); Fri, 16 Sep 2022 00:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiIPE14 (ORCPT ); Fri, 16 Sep 2022 00:27:56 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D387DF6F; Thu, 15 Sep 2022 21:27:55 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 654335C021B; Fri, 16 Sep 2022 00:27:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 16 Sep 2022 00:27:55 -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=1663302475; x=1663388875; bh=Di L2PG2GPLYyviQvFsfljqZCMe4E9U/861rwG5Z393w=; b=MB7zTG8SQEPBaX9Ot2 tY+J8n7TdmNpnL0bMVPP6DelmfZAiyxOh2qVyvwJ1kwxMI6s1thRylaissHVz6FC 3iDYypwTg/uCxlNl7maMRnpr5p9szPOXMT24aF+bZ4hLujFIQn0TbHruNTOAneCQ nvRWgbxn72FDauaobaZfwSRn8p27ap1j2EWo3pWTTjybH6t2OKD2ArxUnWpAnJJG ynZlFfYbcoiW01u5GWXfAVV+5pDmPyVtLicie00tcGhC7Feb2N8s1Nccm8k1a6u+ Kn9RnXXxVPGd1A5qJYD4J+yzqh2bZGvnrVZaHbsYVoo1aeIT+5oqDmscia/R3ZKk bvVQ== 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=1663302475; x=1663388875; bh=DiL2PG2GPLYyv iQvFsfljqZCMe4E9U/861rwG5Z393w=; b=AtM5RRrFTK1SCq1ILeiSqYx4Icenk XXWdIiKJaaK0j6mDjrR8NEduxZjyA3XZrOkUI0DNspOUUs8DNl80dQzGn8RCG1Jl Jew7y4d2QmS47w20Pycn1vdFyRKjR8yLU+dGs9c27tyAAy4yN2kt4nBjQpoYXOi3 N4yNBGX1aKrOKrPWIIR+ADJWT7z+uAvBAC5s0zrv53Gg/W1CiWc0UTsJx34SelAU G7Fotm/1wbUSIy+5G/LMD0wDfvgriyKKEN8v5gBS6zbNMQ1rHcWyNgrGh1u8z7ZH iYZpP8o0NZ1invbK4fnSLvuqz4+zrKR3akkN9wbzSJY2/avPTt1IRQGRA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduledgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Sep 2022 00:27:54 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec Cc: Samuel Holland , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v3 2/2] ARM: dts: axp22x/axp809: Add GPIO controller nodes Date: Thu, 15 Sep 2022 23:27:51 -0500 Message-Id: <20220916042751.47906-3-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220916042751.47906-1-samuel@sholland.org> References: <20220916042751.47906-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org These PMICs all contain a GPIO controller. Now that the binding for this variant is documented, wire up the controller in the device tree. Signed-off-by: Samuel Holland Acked-by: Jernej Skrabec --- Changes in v3: - Remove "ldo" pinctrl children from new nodes arch/arm/boot/dts/axp22x.dtsi | 6 ++++++ arch/arm/boot/dts/axp809.dtsi | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm/boot/dts/axp22x.dtsi index a020c12b2884..f79650afd0a7 100644 --- a/arch/arm/boot/dts/axp22x.dtsi +++ b/arch/arm/boot/dts/axp22x.dtsi @@ -67,6 +67,12 @@ battery_power_supply: battery-power { status = "disabled"; }; + axp_gpio: gpio { + compatible = "x-powers,axp221-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + 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..d134d4c00bd8 100644 --- a/arch/arm/boot/dts/axp809.dtsi +++ b/arch/arm/boot/dts/axp809.dtsi @@ -50,4 +50,11 @@ &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>; + }; };