Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp666290rwb; Thu, 8 Dec 2022 01:04:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xUa8c2QtiSUGi7Eo9WT+n3I/VpELjx+ytxA/NKzWlAK5uXTMJ22GcxVQznyrocnQJ7OTQ X-Received: by 2002:a17:906:fc0d:b0:7c0:d4c7:c00d with SMTP id ov13-20020a170906fc0d00b007c0d4c7c00dmr18028231ejb.345.1670490281455; Thu, 08 Dec 2022 01:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670490281; cv=none; d=google.com; s=arc-20160816; b=KU5g3L7aKqjsHZCucEV0VBpU//tD8ZgqKu8SMXMIxHBLbFYQEv5LA6DWjvi0cezc+T 5JZHriFxQQ1/tsr4cex5rhtCgWOwXkAW2TOhv3C5iNCIfjnOlDYgn7TgFrcVlj+AxdJI kQrHj5B5o7JTB1ZfZLilpvZYJWLmcIaJBvYM7XwK73J0dQYofaxFfWflGavgVyQIPGjB D8kdT9IrC3IBu1eLXuq0483ZIzqS5D2A0ICUG9TC4HZ4w8t9BCOHfaPm1sk0hagNG9Mm msCJdAJeMwAHZlCww5opm2rtK/GaNxwlnHgH9a2v3CADRSxl5OKP/zCpsc57FoeCmc0S DSVA== 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=Y4KCKXVaENSRVN00f2GbvWBH6oOhV6DuwIHsvQ+bvOk=; b=EeQOhW8FBnNLeVkY6DIbWkjFMZGhtXWDLv+ffstaHEFDcrgO8n45hv54xDrRxmWZff Q0L5sDtBbKPJfY34l4TGMerD9w2H9dmeA6Fl3/0M5QL4ckx25Ohq2xI95/rtGmZYdm9Z IJOgPmHuDd8S7mzEpaSaZatPtnLg++FPJnIncc09yUG4BJGB9fKPyCcIIbuZJCWHFo63 be+5/bRk0W3CbiBGm7CtqaDlGoHw8zROMdQXXNxcZJ5jfdPsQsVeLrV0qHZNCJ0xwXCq mZxuXLmFnAz0VuqLQv8/K0nd8HKjNNOty/bagnCLDwSMdW36s2Vx99sDjnS+Rd7PysKV DDBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b="f6jbVl8/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=E6Ohn3LN; 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 qb27-20020a1709077e9b00b007ade4c97618si6478564ejc.930.2022.12.08.01.04.23; Thu, 08 Dec 2022 01:04:41 -0800 (PST) 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="f6jbVl8/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=E6Ohn3LN; 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 S229972AbiLHImF (ORCPT + 72 others); Thu, 8 Dec 2022 03:42:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiLHIln (ORCPT ); Thu, 8 Dec 2022 03:41:43 -0500 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 025D461BA5; Thu, 8 Dec 2022 00:41:43 -0800 (PST) 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 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_H2,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 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>; + }; + }; + }; -- 2.37.4