From patchwork Thu Dec 8 08:41:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13068095 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC082C4332F for ; Thu, 8 Dec 2022 08:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y/5XhQtg9nB6ifvIcyqwFhDaSTvPvULNGHaEz4IaU5o=; b=bwg+DhamnLM3Ab uvHWOk3WcJRjBgtqQg9EbLOSSPz0keLYMn1lFWvJIpRsI3Uhn8y0gEQZur3c2W4kNlegTubq65a/U JPIj2IwRDRFlXDkCho1WyWK2gw13C9iGFClLjcxudMwkg1tzqEazmZd1ZadjsEr/EXfiMsGHrv2gr a0VKPBDQS3B0gnZ7zFo93SSKBaK2cyys7iPhNR57ptxplOiVHzD82/gWFayGgrXZtwTy/JumALHd6 qviO2I3ZEwfG0O3QtwvCgUSfcfBUydR6v/6t2W4PcKS8JBq54Cg2YuxFqz54ieqKJc3bZ51ebiYKO 8hxjwTk9n40TyfuuKKfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3CU2-00AClA-6l; Thu, 08 Dec 2022 08:42:22 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3CTP-00ABg5-0d for linux-arm-kernel@lists.infradead.org; Thu, 08 Dec 2022 08:41:46 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2FD483200906; Thu, 8 Dec 2022 03:41:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 08 Dec 2022 03:41:42 -0500 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=1670488900; x=1670575300; bh=Y4 KCKXVaENSRVN00f2GbvWBH6oOhV6DuwIHsvQ+bvOk=; b=f6jbVl8/MLRXRKn+hc aEYC6Isn940f5xt37/09uTYbtaVaMXFnONaNi14ZCT82jyU5SLwWMlO8ufGt7yZ6 1XZbFHBAi8A7BZJxjIMWxldLHbGg122B0yNaymgI7i7Zp1lZ8j0T9+qamdqQkfVJ +mgww/AoU4l8BOrF7AurP8elG9iBIHeaDoBUzd7EluhPXqRP8U2buOCuQ2rMrl3u t/6I92X4ajfx/1GZboZI9884LngGv651N9jJpsZi5NrKPtNoLvZhmDRSnSE4MDqG KgNOvBrrCmX6BcgfACDpIasA+lJiEJOpI7aYKGl13D4e2E9QbX/4YGCj6IGOMEUe MUew== 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=1670488900; x=1670575300; bh=Y4KCKXVaENSRV N00f2GbvWBH6oOhV6DuwIHsvQ+bvOk=; b=E6Ohn3LNjBaRpGxOEItJun2tLEIqX msDTduJpZ8JQLm2DsPlKuoZUF8DG+r+p9uGdJkRWuD8t3gbQlUseR4AGFxdG4uYP egDRnXiWt1j7AaI8SbA86uXEelX6+vzIYjVKG0T0P0CyVPMdkfxqMUDBiYZioso/ bfvsGmIIkASQBnWD4gN7ppT72ehHmXKPLMek4YpaCreWlpXHMdJ5RWllQ8thso7w 5SE2hpH+Ks+KqfEUJ1/EFmXW9+fSaaoyW4kij69ym9ev1TzOUCboai0kgrLnoGKJ HTYhe0TxOAKAg6m8TMbIkhBvMochlZrmGedPnjavRM/RRjqvIRk5IPUlA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Dec 2022 03:41:39 -0500 (EST) From: Samuel Holland To: Liam Girdwood , Mark Brown Cc: Chen-Yu Tsai , Krzysztof Kozlowski , Andre Przywara , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jernej Skrabec , Rob Herring , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Samuel Holland , Andrew Lunn , Heiko Stuebner , Maxime Ripard , Krzysztof Kozlowski Subject: [PATCH v5 3/4] dt-bindings: sram: sunxi-sram: Add regulators child Date: Thu, 8 Dec 2022 02:41:26 -0600 Message-Id: <20221208084127.17443-4-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221208084127.17443-1-samuel@sholland.org> References: <20221208084127.17443-1-samuel@sholland.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221208_004145_179320_E36DC68B X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some sunxi SoCs have in-package regulators controlled by a register in the system control MMIO block. Allow a child node for this regulator device in addition to SRAM child nodes. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Samuel Holland --- (no changes since v4) Changes in v4: - Remove unevaluatedProperties from regulators schema reference Changes in v3: - Require the regulators node to have a unit address - Reference the regulator schema from the SRAM controller schema - Move the system LDOs example to the SRAM controller schema - Reorder the patches so the example passes validation Changes in v2: - New patch for v2 .../allwinner,sun4i-a10-system-control.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml index 98a7dc7f467d..c487ac9521e9 100644 --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml @@ -56,6 +56,9 @@ properties: ranges: true patternProperties: + "^regulators@[0-9a-f]+$": + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml# + "^sram@[a-z0-9]+": type: object @@ -130,3 +133,28 @@ examples: }; }; }; + + - | + syscon@3000000 { + compatible = "allwinner,sun20i-d1-system-control"; + reg = <0x3000000 0x1000>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + regulators@3000150 { + compatible = "allwinner,sun20i-d1-system-ldos"; + reg = <0x3000150 0x4>; + + reg_ldoa: ldoa { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + reg_ldob: ldob { + regulator-name = "vcc-dram"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + }; + }; + };