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 A4859C00140 for ; Tue, 2 Aug 2022 05:33:46 +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=2dbBaTErKnMpmyKyAcyodOLBuMrdMG7I5O4wnuQyhxg=; b=omuy/VYxkOYKPK qN52Wr2Lb4TI8NaYIhzVUTqZqxH6TyZrBTBVI4TJUedwhZvbsKybmhzU95TDEfFqtIpJQeYUQpWBQ 0Q+lvOtf2cVugX9h7fzfG1LIjSEINIy0pW7unqPSxzmrzDdoqc5mgWZOXl9CPjlrBpacoYVBHIyxm SE20jy7FOyCp4MFWUwcrx/LY/1N+uv4+VmM0nsymtq7zqmn3iqPD0lNw2PTiSV3evjDbYv2lUrQPF 68+LR/vFBGvruZVhhfwh1GQ8giR5YmC6o6QuZzJMWYsGoXVhaXANl3eUwqm8z0p52swSK0WlwGm42 SRGdsnL8+hC1d8nC4uOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIkWG-00AcfH-No; Tue, 02 Aug 2022 05:32:40 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIkVz-00AcU5-F3 for linux-arm-kernel@lists.infradead.org; Tue, 02 Aug 2022 05:32:26 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 8B42832002FB; Tue, 2 Aug 2022 01:32:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 02 Aug 2022 01:32:17 -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=fm1; t=1659418336; x=1659504736; bh=Ge7j60aibO5Z3y1t3igfL1XiH vVASWRdGw8tdLd4ALc=; b=DqN9XOld1FRNUaNogihvjIjp+3hRdExCCEr20meH/ y7xjWi2mTic18LDU6jJ+rO3hx1t9RxJkAjK9aRQvIYeTlT66yKaiZPoCnbBH1bI0 4syLc+ds5zNTBSc2b6VjO3ohqD2/g6ZG2+kzuF/R2hdh+Z4JpXlIh9BPhSM7muwt Vh/N1H9xYI9QtRTLu00JwzPbJ6bqCmKtKTlbPb+dsoZA0V5flhwkV5gy+4DQ9WSU XIDcJEgyZyG/sKFxLbc83cw4nbCYiNnhT88gFu5dmEilNpW65iE1zEiLG85d+h8f PyfdNd5MUtQPHErnUbE2tWrtZNsYH+q/xtiPEq0y7FKHQ== 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=fm3; t= 1659418336; x=1659504736; bh=Ge7j60aibO5Z3y1t3igfL1XiHvVASWRdGw8 tdLd4ALc=; b=CWo9eJtmJMI7y7XwTQWQvRbspJcOEdc63kMzDpevPy7yUT0Ituo cKWrTlu25+72m7F/59cmbsGZYvFYufYuNTZFh07oWvIyNerRv3w/GCp8iBQo0JEk eKX142ikBnyhlHJgzmU+MpB1o1mFrNIs6iKsRHXYdPLdDRHvxRBxRbttFqAZ8DBb zaFEAZcLCvq8FqtFTUO94HEExPw3zp3Y9KCWnDrqwJjED2/ZOa65t06z207QUPcv zoSjuohrRd4BjCHJ3STA3RFQuturO4DpPJnjouTRhhmIDhgSP51x8yBZSg+zUSM5 F192WXpctQd2hP4WCO0KLFdgOh7CudUuM/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvgedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Aug 2022 01:32:15 -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 v2 0/4] regulator: Add support for Allwinner D1 LDOs Date: Tue, 2 Aug 2022 00:32:09 -0500 Message-Id: <20220802053213.3645-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-20220801_223223_594036_E07E6612 X-CRM114-Status: GOOD ( 12.11 ) 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 preparatory binding and driver change is required for the SRAM controller, so the regulators device can be its child node. 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): dt-bindings: sram: sunxi-sram: Add optional regulators child soc: sunxi: sram: Only iterate over SRAM children regulator: dt-bindings: Add Allwinner D1 LDOs regulator: sun20i: Add support for Allwinner D1 LDOs .../allwinner,sun20i-d1-analog-ldos.yaml | 65 +++++ .../allwinner,sun20i-d1-system-ldos.yaml | 57 +++++ .../allwinner,sun4i-a10-system-control.yaml | 3 + drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/sun20i-regulator.c | 232 ++++++++++++++++++ drivers/soc/sunxi/sunxi_sram.c | 3 + 7 files changed, 369 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