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 3A84EC4332F for ; Fri, 25 Nov 2022 04:03:05 +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=Wne26kJiQHPtNcD8MNh/uf4rKDsqLoSjxwJLndy2J5k=; b=o5gmQvsLpU4yNE +GIg64y42LeexFTnW2+c9OKZMxzenLGytsBwCDbFlsk4gVcyne3GY8nG1kslCj2di5yW7WvJs4uCf uTYTOhn7JYoibLlbhlNR7NGkyH13Bb8c0kpT0ooqHA2AP2a2sH90EATMjszcMhcIFdSLL0hiv7jK/ J+VB8sks5hoHK7+DwuwyfLdqenKTtZN4vlnxLTAQm0C5d9v6NZqZEz4cjktTni/Cv34E2K84pJp1G 2QWd+uQ4k1MlbU/Yc8bF25WbRQ6SoILMdHHha+WYAF5mRQXZcbwIKev9cb4Wmgjv8w+6OtsVtLQcZ FUuqRZTWgO7TuK/Nxyww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyPuV-00CWfl-6k; Fri, 25 Nov 2022 04:01:55 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oyPty-00CWTS-5P for linux-arm-kernel@lists.infradead.org; Fri, 25 Nov 2022 04:01:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 681D45C009B; Thu, 24 Nov 2022 23:01:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 24 Nov 2022 23:01:15 -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 :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1669348875; x=1669435275; bh=ABZhlJD5S/ZKX7Bf8fIlM84g5 HAFuIAnCW2oNys0fZk=; b=E/xlqJyRjXELgidPjDVX3pkVBthvO9UTTBJmoGZ6/ v4VGLZmEtYIkEmtrdptKGpRNk7LpSFG7pG7ZgXJtppBnatVrzos/T7Wz3P5yHFMH 39n7CrAYOK87X7377cG0K3iD/Z2/e0Nc1PHOVpPWXhviQWP4GPYH7fSWmT+RwXdV b9RHEhWFrY1drViap8B/WePKFXJVoRYtim3c5IMb9x3GVRDgLWxBMDekIAqDbppd +xH+qi1ZdRGpyfH51leOmTVaYTwX0y9iLSwOiBpX4DWfNAVfwHmD1BAaPJvbZAS6 P6+VFIq9PdAbn0GibCCj9lMLhaRqkW6oGVtLi2t8QIxKQ== 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= 1669348875; x=1669435275; bh=ABZhlJD5S/ZKX7Bf8fIlM84g5HAFuIAnCW2 oNys0fZk=; b=ucHH4tyW5BMnD0GQOXFrwSYuVyZbmNkC+8oU7CA14OSXCDUHb8Y SsKiudJbN7r0ntju67eSWj2vEmYARg8edW7cfGtIpKUd+KXsEEnJvVCfKT5EnN35 Kl/7XKXNKG0Tfo8arm8wljS57yJEkp1T0kFif+QkJ+wz+cFc2z1ONxQmFKPvldxb iJfW2c2NAP+REW/6roJpedafTinWbrOoyPRmhwbpwtoQr/I5e4N6u4zWcfEpVlmR 7cbYLm2KkcEls+ywN5pLGeEFMAD4CH/ZMhLs9HtJgRRPGDE8LyOUdRAgBHRf1dA5 qa4kzBf3HnMFm5IUQcC+aV+OTpk+PGBh9lQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Nov 2022 23:01:13 -0500 (EST) From: Samuel Holland To: Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Samuel Holland , Andrew Lunn , Heiko Stuebner , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v4 0/4] regulator: Add support for Allwinner D1 system LDOs Date: Thu, 24 Nov 2022 22:01:08 -0600 Message-Id: <20221125040112.18160-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221124_200122_333619_23136842 X-CRM114-Status: GOOD ( 17.21 ) 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 the binding and driver for one of the two pairs of LDOs inside the Allwinner D1 SoC. I am splitting up the series to unblock merging the SoC devicetree; the analog LDOs are not required to boot. A binding and driver change is required for the SRAM controller, to accept the regulators device as its child node. The example for the regulator device binding is in SRAM controller binding document, per Rob's request to keep MFD examples in one place. 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 - Drop the analog LDOs until the codec binding is ready - Remove unevaluatedProperties from regulators schema reference - Check the compatible string instead of the node name 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) - 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 system LDOs regulator: sun20i: Add Allwinner D1 LDOs driver dt-bindings: sram: sunxi-sram: Add regulators child soc: sunxi: sram: Only iterate over SRAM children .../allwinner,sun20i-d1-system-ldos.yaml | 37 +++++ .../allwinner,sun4i-a10-system-control.yaml | 28 ++++ drivers/regulator/Kconfig | 8 + drivers/regulator/Makefile | 1 + drivers/regulator/sun20i-regulator.c | 150 ++++++++++++++++++ drivers/soc/sunxi/sunxi_sram.c | 3 + 6 files changed, 227 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/allwinner,sun20i-d1-system-ldos.yaml create mode 100644 drivers/regulator/sun20i-regulator.c -- 2.37.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel