From mboxrd@z Thu Jan 1 00:00:00 1970 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 6AE5CC00140 for ; Mon, 15 Aug 2022 04:35:39 +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: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:In-Reply-To:References: List-Owner; bh=HUatlwPwWTSKNcJZNz9ItAjjiZtJKHQKNmYQMOx0KxA=; b=ZyOLRSYz6deoD4 e6QbawqXb/2y+dN9waonk1j523LqOVvT8P3W5s8cEzrQqfmL3xni41jXaG+7zq48CWXqGzPV5mWt8 0S/Sbb0vMYYLlBIlF+NIzLdzm65cHLeAer4BG/TdpGE1BD34cceEIbKigrlx2RMRpFzoRrgP1IxXs mkbkds/rf80UdLWHJ0srCUJp66xql5h/6+INNM4L511hg2PmnRyF0ggQYjGG/TB4lZrpclkC3CEEX VwUuEDjuzEFvRGjLdsXf7wILUYWNNqv7buEBG0p/KljwT09bhdQpa4sFDY4dixXCN10OgwLPWFOYd 7TWpwMBogUYdtAfvRV3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNRoJ-00BEeg-5P; Mon, 15 Aug 2022 04:34:43 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNRoF-00BEdT-NY for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 04:34:41 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E3CCB320039A; Mon, 15 Aug 2022 00:34:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 15 Aug 2022 00:34:39 -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 :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1660538077; x=1660624477; bh=SZ5v7SwKxKRGgP+cCIUCQcwi+ uzQ6nY+5CX8LY/PRvU=; b=r0dmwSkDzL2DJSVK1OllhF1cmFKiWGI1fsuZQTYeC yunxoXucbTAowbsN0JMLq6MfQdfl2dfUedoM7Stu+dSq6d3S+0au//HvXpt9kTAx rKUN8oqDITU+D+yJPeao0jqqrapbumDV4+H+5enHQ5GqWTKp26p/IjUGHndwqGTV upMKbLozzGtW3wKqbl8ml9omlKJ38zWZyRXnRMNa0KMcC/FXf4p5mhf2kLGEQK8d NVCOLrwXkNwvp9TviSTDZjF4IGEEIMRbWa9DoibgGBndLeWn9YUUU0ch8NcOu5uN Al7xzYsM5rVik9F2NxedANzEQwFKUlBXWCed4n4hbfjUQ== 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:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1660538077; x=1660624477; bh=SZ5v7SwKxKRGgP+cCIUCQcwi+uzQ6nY+5CX 8LY/PRvU=; b=a+As4MBWRZZfnaH6SVQ3b8RutI94ecUfSFXawbhGynFHGXSI1HC Fz5IXhM8+xjurIbi1GGGXeUOPAzxLHJ0K8UkBqX4hiWorgdUTZKQmFQW6XuHWYff 7T7R6NS/IzSJkGBHvMhPmli8AqkoGf/e5qKR1+t2OjCd6N/sMt8nvXntTzzjfFe8 Ytza7W40iKMLG6zeDqJaKyiJPov3r0fGLDyi3Da9VDUNuWGSjMdmkBApBK9YcuMH E5GxPsw1Fcg04anucc9tRUwK8nA0vknL9nAp4WYSgfNS0uf7y4YiPG+6vu51En88 G9zlw7fvAQRCIEWRfRX6J2OGAgHQccmLxwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehuddgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeehffethedtteffgfefteetjedvfeelueevudffgfeutdejvdehledv vdffhfevnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgu rdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Aug 2022 00:34:36 -0400 (EDT) From: Samuel Holland To: Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Samuel Holland , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v3 0/4] regulator: Add support for Allwinner D1 LDOs Date: Sun, 14 Aug 2022 23:34:31 -0500 Message-Id: <20220815043436.20170-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220814_213439_814823_E22DDECE X-CRM114-Status: GOOD ( 14.30 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds bindings and a driver for the two pairs of LDOs inside the Allwinner D1 SoC. A binding and driver change is required for the SRAM controller, to accept the regulators device as its child node. The new example in the SRAM controller binding uses the compatible string added in this series: https://lore.kernel.org/lkml/20220815041248.53268-1-samuel@sholland.org/ 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 patch 3) - Adjust control flow in sun20i_regulator_get_regmap() for clarity - 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: - Remove syscon property from bindings - Update binding examples to fix warnings and provide context - Use decimal numbers for .n_voltages instead of field widths - Get the regmap from the parent device instead of a property/phandle Samuel Holland (4): regulator: dt-bindings: Add Allwinner D1 LDOs regulator: sun20i: Add support for Allwinner D1 LDOs dt-bindings: sram: sunxi-sram: Add optional regulators child soc: sunxi: sram: Only iterate over SRAM children .../allwinner,sun20i-d1-analog-ldos.yaml | 74 ++++++ .../allwinner,sun20i-d1-system-ldos.yaml | 37 +++ .../allwinner,sun4i-a10-system-control.yaml | 29 +++ drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/sun20i-regulator.c | 232 ++++++++++++++++++ drivers/soc/sunxi/sunxi_sram.c | 3 + 7 files changed, 384 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-analog-ldos.yaml create mode 100644 Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml create mode 100644 drivers/regulator/sun20i-regulator.c -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel