From patchwork Thu Dec 8 08:41:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 13068093 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 DF53BC3A5A7 for ; Thu, 8 Dec 2022 08:43:12 +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=nH1eWkVEMvSKlJNh5jss3RN23H0oRRs+aLXrn6+s2ac=; b=AHKwozRGQuOlJ3 yEo9maI6Y+93bic5SerPWkC4qYAYzZf1PO3KemGBDAd0O+IOZAaH91yYNU/9nE8pDZ59Th4wQieZg KEKacOG7erieBsU095u0/XrK0p1XJP+/dUaprj7Q7h2q6hFwYZFhAHPbCGKcNvwpEiy2vK2O+D7Y8 d1nQMG0O57vhzx7n3esZARZ/6eoarXj/Sa1KSMin3ndGxiuRdTWFHmzrA/zr/TYPXpxtmoOi2nw+7 slgCAg19sX544zqNpdmduiG0QDLWsWfdj6Hil7bmUkY7Cue8R6+aITL7DvEAXAlHDefNN1SSrGDmw /FACXApKFjACs6+Rq0og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3CTc-00ABzr-Hv; Thu, 08 Dec 2022 08:41:56 +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 1p3CTH-00ABZ4-QW for linux-arm-kernel@lists.infradead.org; Thu, 08 Dec 2022 08:41:37 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id F3F1A3200583; Thu, 8 Dec 2022 03:41:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 08 Dec 2022 03:41:35 -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=1670488893; x=1670575293; bh=Tk CT8U+X3N1U6fotPxSufI3kcQezGdSYmJTP5FLzjnU=; b=JuRmQzN8OIcihpugbq 8WDUaOV3eHgPKYMWi0eo501/oyB2x2kSVJFHtAdc/3eIKTfLvew1PriAmMKHPZ0z yxUBG3AXIooAnsmSzrpGHq7Flyt2BLsuhOvSoWdNyGpG/aUdfPLhsMU3mhHZhhwQ 0+p9oCX1Jh8vmj7iqRwscc53LjDkQ6MPN935fEN8zYA75tkUkutV3oI/cHiNGEpV wNodbQ5InvFWPjvuM1RP+FfvpILmMPAHyRH5aL0qDu1k2LAccsBZGPJ9jkysqEdf B9pfQKzllCgCw1R64FXf6wcaee/UZgMPQB0kRjpPNgpDJIwgX6qxucS37Bovrd/x 8APQ== 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=1670488893; x=1670575293; bh=TkCT8U+X3N1U6 fotPxSufI3kcQezGdSYmJTP5FLzjnU=; b=MLAmBnAjs4Ab3z2xcLd0i1Xnfhad9 KGws1d0FhVKJhgBr30zYDM7cmQ0zn8XH75nLqxC8tEZz6rvKmCbqi31+sK2ga/iX RMcdhyan+SfSKNB/bXlp5xXXFIux/DMIz7iQqthIBAJXCNfV2Hdh20YqnLjXHiEO 86/CVVAkR9mGRKUpRxqvtDYz/N+LYWaapWKvjPvgj2+3JQRxZNN3lVtkAPVxbMXY 2jFW7JkWUlQegh0LfxroRmhooU085TK+I1Hin8NtYEHwb60ogUiky1zeu4fGe761 91m2EKGsYNriJa2I+8/IUgCuIH9ra9dsoyVXzE1F1bl0w9dEwy5jX62Wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepgffhvefhgfehjeehgfekheeuffegheffjeegheeuudeufeffhffh ueeihfeufffhnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhh ohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Dec 2022 03:41:32 -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 1/4] regulator: dt-bindings: Add Allwinner D1 system LDOs Date: Thu, 8 Dec 2022 02:41:24 -0600 Message-Id: <20221208084127.17443-2-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_004135_910880_08B91CC1 X-CRM114-Status: GOOD ( 12.65 ) 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 The Allwinner D1 SoC contains two pairs of in-package LDOs. The pair of "system" LDOs is for general purpose use. LDOA generally powers the board's 1.8 V rail. LDOB powers the in-package DRAM, where applicable. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Samuel Holland --- (no changes since v4) Changes in v4: - Fix the order of the maintainer/description sections - Replace unevaluatedProperties with "additionalProperties: false" - Drop the analog LDOs until the codec binding is ready Changes in v3: - Add "reg" property to bindings - Add "unevaluatedProperties: true" to regulator nodes - Minor changes to regulator node name patterns - Remove system-ldos example (now added in the parent binding) Changes in v2: - Remove syscon property from bindings - Update binding examples to fix warnings and provide context .../allwinner,sun20i-d1-system-ldos.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml diff --git a/Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml b/Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml new file mode 100644 index 000000000000..ec6695c8d2e3 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner D1 System LDOs + +maintainers: + - Samuel Holland + +description: + Allwinner D1 contains a pair of general-purpose LDOs which are designed to + supply power inside and outside the SoC. They are controlled by a register + within the system control MMIO space. + +properties: + compatible: + enum: + - allwinner,sun20i-d1-system-ldos + + reg: + maxItems: 1 + +patternProperties: + "^ldo[ab]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +...