Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2367593imn; Mon, 1 Aug 2022 23:21:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t5iVhlFo+Y3P3aH5NIlP4yOBcJ9tFNXtRMZJuShiAaJFc2sGaTisLbZiHPi0bm6Ymgknvi X-Received: by 2002:a63:d0:0:b0:411:f92b:8e6c with SMTP id 199-20020a6300d0000000b00411f92b8e6cmr15893969pga.108.1659421283764; Mon, 01 Aug 2022 23:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659421283; cv=none; d=google.com; s=arc-20160816; b=hPGfEAQAV6mzPa56EgVK3/wevoE/am6eVQ3m8DYBwrXuAmIFH7WUijOm6/osSEoDRU ziMdNPYCD+NWug/xD4hETbNR633DYfBTRnDK1N4TSEhvJEOHO0trHUTcaWsW3PZqByFP sDy1JWgtmfhA043CvxzDvD0HsVzBKMxiw7f9BhyNagB0mrCiNNNt4i20WUIQdNrNjj2F paf1X1YiSiypPGEoToOl1fQ+d8Xp1j7EprkrHtE2jr43jfE8XTsy2rDn3gWtNByrztzS 1nzFlRzc6oAaORXxXOSFV4eJKuhktjJN1dtmHEfAuTDH2lA9p5NThXig+UYIz7ulnb0s M0Dg== 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 :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=Ge7j60aibO5Z3y1t3igfL1XiHvVASWRdGw8tdLd4ALc=; b=iKDgtjn8ptRZ8PphNCqZJEydC9ATsN6OFEXd7kFMFzl9DW3NO5goroaDVmXCvtc5U6 FGFYGwQ/cM++sPvCFWH8HM92u8Rfc2nFxOFtMsZysUGjDhSvhGxTWmqKQOX8QUudDh4G fKlDvVbMmJ4+dwqb51bKfbPMK5oqaSinzqvcTofHR112RhIsdcJtDmXXT2IsGQXbZn+E LOUFcFHIFv2+xA4QbF2i/3VN4NpfZvEHmgj0UlAkFTVVshcEX5wubySKzqf6aKstmcXh ZqUjLL91lcTl3t73f71iMu8sp75edtKfqMBxPEJR4IO83MCfRw/9ljwjdwC/RUGIshpy QzxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=DqN9XOld; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CWo9eJtm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g21-20020a170902d1d500b0016b9cf35991si12603089plb.250.2022.08.01.23.21.09; Mon, 01 Aug 2022 23:21:23 -0700 (PDT) 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=fm1 header.b=DqN9XOld; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CWo9eJtm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235653AbiHBFcW (ORCPT + 99 others); Tue, 2 Aug 2022 01:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbiHBFcV (ORCPT ); Tue, 2 Aug 2022 01:32:21 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 982671E3C2; Mon, 1 Aug 2022 22:32:20 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 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