Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1675035rwn; Thu, 15 Sep 2022 21:40:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5slseeCklIIbrNdmc9kfUB0hfSLI9OQrumhwNplu2RGP1QHEIZRRZEjoPysIQJcj+Uy0/5 X-Received: by 2002:a17:90a:8c8e:b0:202:883b:2644 with SMTP id b14-20020a17090a8c8e00b00202883b2644mr14212680pjo.89.1663303233738; Thu, 15 Sep 2022 21:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663303233; cv=none; d=google.com; s=arc-20160816; b=o5R4pCN0xEdZ/2c4Ccn+RcfBPhXOBnGkar/nCN3T6vZqLsvVrlNplsQJ0eS+n/YD7j rT8Do9GZwWHjwGzpXSXf8/IZbuTVxIY9+stRqkRyWuuizZk8NdyQYJiJangv/+UuxUJb ASJ73mjOLr3llNty9gM0ir4qs9iUUyQVPvmKZ+8T9ynbiMqL7lT1OPls9AJwpys1AONR XWi5Sx+M0bRyFuHxelTEpueW009tbQwYjvBAaAA2Nzu1wjni7qp9kkfM6px3Z+WMJ9rQ UJOysRTS85slR5ogpGFxJSzXVfwl6L5VSGDpkgxGvEEPxGsgGKGXrp8nbJ6SJeZkrQeX zOgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=DiL2PG2GPLYyviQvFsfljqZCMe4E9U/861rwG5Z393w=; b=hIYc/8C8fo96xZe/ixemeygFIOdMtg0cmxJ10qrs1XYiMi0QQ3IkhsVJ1O+PTs60a8 noSC6qiG1WTvRqxNXkjGMTRFeitKGBbP6YrLU2KFmKuLajzjOH0Hfp/9cTng5zIXR3bv DuQgzW9J+GBwdD9OBz6wFxaLQp/m5q+Tx4qiopnfDsH/5k8M686KYwFHxqI7DCnNU0pi GJQ2E+wNPqMnERHSM9uxup/EN5kZe0KbxY5zxpo7Yj1MxLfd4y0io3yJxx33xCSGlH5h 3iWc1YRYcRVf9QmbRGVOxG+Tof3oX/ZODniOSTRo6zE9JwBIyIwstjVRfLvVYjrqPiQo Pilw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=MB7zTG8S; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AtM5RRrF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020aa79984000000b00536b8811be7si17904965pfh.187.2022.09.15.21.40.16; Thu, 15 Sep 2022 21:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=MB7zTG8S; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AtM5RRrF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiIPE2A (ORCPT + 99 others); Fri, 16 Sep 2022 00:28:00 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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>; + }; }; -- 2.35.1