From: Matti Vaittinen <matti.vaittinen@linux.dev>
To: Matti Vaittinen <mazziesaccount@gmail.com>,
Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
Matti Vaittinen <matti.vaittinen@linux.dev>
Cc: Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Matti Vaittinen <mazziesaccount@gmail.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Michael Walle <mwalle@kernel.org>,
mfd@lists.linux.dev, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org
Subject: [PATCH v3 03/10] dt-bindings: regulator: ROHM BD73800 regulators
Date: Wed, 2 Sep 2026 14:04:15 +0300 [thread overview]
Message-ID: <b6a28f05f3ebb85c8e915fbc1e523388fc50ad40.1788346553.git.mazziesaccount@gmail.com> (raw)
In-Reply-To: <cover.1788346553.git.mazziesaccount@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4561 bytes --]
From: Matti Vaittinen <mazziesaccount@gmail.com>
Add bindings for the BUCKs and LDOs on ROHM BD73800. The PMIC state
specific voltages can be set in same fashion as with a few other ROHM
PMICs (for example with BD718[15,28,37,47,50,79]). Same properties are
recycled :)
The LDOs 1 and 4 can use different voltage ranges depending on the OTP
configuration.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
---
Revision history:
v3:
- No changes
v1 => v2:
- Description of the state specific voltages moved to own file and
referenced from it (because multiple PMIC bindings used them).
The dt checker's documentation reference checker warns about the link to
the MFD binding - which will be introduced in next commit. These commits
have kind of a chicken and egg issue as MFD is referencing regulator
properties introduced in this patch.
I could squash these but IMO, this is clearer for the reviewers. AFAICS,
Both MFD and regulator subsystems tend to be busy. I could also split
adding the MFD comment reference to own patch which would be after the
patch adding the MFD binding, but having own patch for just adding the
comment is a bit meh.
So, I decided to live with the broken doc-link between these two
patches.
---
.../regulator/rohm,bd73800-regulator.yaml | 99 +++++++++++++++++++
1 file changed, 99 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd73800-regulator.yaml
diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd73800-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd73800-regulator.yaml
new file mode 100644
index 000000000000..2db4585272c5
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/rohm,bd73800-regulator.yaml
@@ -0,0 +1,99 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/rohm,bd73800-regulator.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ROHM BD73800 Power Management Integrated Circuit regulators
+
+maintainers:
+ - Matti Vaittinen <mazziesaccount@gmail.com>
+
+description: |
+ This module is part of the ROHM BD73800 MFD device. For more details
+ see Documentation/devicetree/bindings/mfd/rohm,bd73800-pmic.yaml.
+
+ The regulator controller is represented as a sub-node of the PMIC node
+ on the device tree.
+
+ Regulator nodes should be named to buck<number> and ldo<number>.
+ The valid names for BD73800 regulator nodes are
+ buck1, buck2, buck3, buck4, buck5, buck6, buck7, buck8
+ ldo1, ldo2, ldo3, ldo4
+
+patternProperties:
+ "^buck[1-8]$":
+ type: object
+ description:
+ Properties for a single BUCK regulator.
+ allOf:
+ - $ref: regulator.yaml#
+ - $ref: rohm,pmic-states.yaml#
+
+ properties:
+ regulator-name:
+ pattern: "^buck[1-8]$"
+ description:
+ should be "buck1", ..., "buck8"
+
+ rohm,dvs-run-voltage:
+ minimum: 0
+ maximum: 3500000
+
+ rohm,dvs-idle-voltage:
+ minimum: 0
+ maximum: 3500000
+
+ rohm,dvs-suspend-voltage:
+ minimum: 0
+ maximum: 3500000
+
+ # BUCKs 1,2,3,4 and 8 support voltages 0.5 - 1.3V
+ # BUCK 5 supports voltages 0.3 - 1.3V
+ # BUCKs 6 and 7 support voltages 1.5 - 3.5V
+
+ required:
+ - regulator-name
+
+ unevaluatedProperties: false
+
+ "^ldo[1-4]$":
+ type: object
+ description:
+ Properties for single LDO regulator.
+ allOf:
+ - $ref: regulator.yaml#
+ - $ref: rohm,pmic-states.yaml#
+
+ properties:
+ regulator-name:
+ pattern: "^ldo[1-4]$"
+ description:
+ should be "ldo1", ..., "ldo4"
+
+ rohm,dvs-run-voltage:
+ minimum: 0
+ maximum: 1
+
+ rohm,dvs-idle-voltage:
+ minimum: 0
+ maximum: 1
+
+ rohm,dvs-suspend-voltage:
+ minimum: 0
+ maximum: 1
+
+ rohm,ldo-range-high:
+ type: boolean
+ description:
+ LDO1 and LDO3 voltage ranges can be "high" or "low" depending on
+ OTP. Indicate that the "high" range is used. See comment below
+ for voltages.
+
+ # LDOs 2 and 4 support voltages 0.75 - 3.3V
+ # LDOs 1 and 3 may support different ranges depending on OTP.
+ # either 0.6 - 1.8V or 0.75 - 3.3V.
+
+ unevaluatedProperties: false
+
+additionalProperties: false
--
2.55.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-09-02 11:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 11:03 [PATCH v3 00/10] Support ROHM BD73800 Matti Vaittinen
2026-09-02 11:03 ` [PATCH v3 01/10] dt-bindings: mfd: common ROHM PMIC properties Matti Vaittinen
2026-09-02 11:04 ` [PATCH v3 02/10] dt-bindings: rohm,bd*: Ref common ROHM bindings Matti Vaittinen
2026-09-02 11:04 ` Matti Vaittinen [this message]
2026-09-04 14:34 ` [PATCH v3 03/10] dt-bindings: regulator: ROHM BD73800 regulators Rob Herring (Arm)
2026-09-02 11:04 ` [PATCH v3 04/10] dt-bindings: mfd: ROHM BD73800 PMIC Matti Vaittinen
2026-09-04 14:34 ` Rob Herring
2026-09-02 11:04 ` [PATCH v3 05/10] mfd: Support for ROHM BD73800 PMIC core Matti Vaittinen
2026-09-02 13:24 ` Bartosz Golaszewski
2026-09-02 11:05 ` [PATCH v3 06/10] rtc: bd70528: Support RTC on ROHM BD73800 Matti Vaittinen
2026-09-02 11:05 ` [PATCH v3 07/10] regulator: bd71828: Support " Matti Vaittinen
2026-09-02 11:05 ` [PATCH v3 08/10] clk: bd718x7: " Matti Vaittinen
2026-09-04 8:24 ` Jerome Brunet
2026-09-08 12:01 ` Sverdlin, Alexander
2026-09-02 11:07 ` [PATCH v3 09/10] gpio: bd73800: Support ROHM BD73800 PMIC GPIOs Matti Vaittinen
2026-09-02 12:39 ` Linus Walleij
2026-09-03 5:02 ` Matti Vaittinen
2026-09-02 12:58 ` Bartosz Golaszewski
2026-09-03 5:00 ` Matti Vaittinen
2026-09-03 7:53 ` Bartosz Golaszewski
2026-09-02 11:07 ` [PATCH v3 10/10] MAINTAINERS: Add ROHM BD73800 PMIC files Matti Vaittinen
2026-09-08 11:44 ` Sverdlin, Alexander
2026-09-10 16:03 ` [PATCH v3 00/10] Support ROHM BD73800 Lee Jones
2026-09-11 4:27 ` Matti Vaittinen
2026-09-15 11:20 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6a28f05f3ebb85c8e915fbc1e523388fc50ad40.1788346553.git.mazziesaccount@gmail.com \
--to=matti.vaittinen@linux.dev \
--cc=alexandre.belloni@bootlin.com \
--cc=bmasney+clk@redhat.com \
--cc=brgl@kernel.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=mazziesaccount@gmail.com \
--cc=mfd@lists.linux.dev \
--cc=mwalle@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®