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,
Sverdlin@mva-rohm, Alexander <alexander.sverdlin@siemens.com>
Subject: [PATCH v4 02/10] dt-bindings: rohm,bd*: Ref common ROHM bindings
Date: Wed, 16 Sep 2026 09:07:36 +0300 [thread overview]
Message-ID: <3cf6bb01a3a129f2b0b1d6418049dbdb1711873a.1789538455.git.mazziesaccount@gmail.com> (raw)
In-Reply-To: <cover.1789538455.git.mazziesaccount@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5379 bytes --]
From: Matti Vaittinen <mazziesaccount@gmail.com>
The commonly used ROHM PMIC bindings were added into
rohm,pmic-pins.yaml. Keeping commonly used properties in one file can
ease both the maintaining the bindings and the reviewing process.
Reference the common bindings from rohm,pmic-pins.yaml, instead of
declaring them from the scratch for every PMIC using them. Keep the PMIC
variant specific information (like supported pin functions) in PMIC the
specific files, so unsupported values won't be allowed.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
---
Revision history:
v3 => :
- No changes
v2:
- New patch
---
.../bindings/mfd/rohm,bd71815-pmic.yaml | 9 +++---
.../bindings/mfd/rohm,bd71828-pmic.yaml | 9 +++---
.../bindings/mfd/rohm,bd72720-pmic.yaml | 29 +++----------------
3 files changed, 12 insertions(+), 35 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml
index 4fc78efaa550..0a67de054674 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml
@@ -15,6 +15,9 @@ description: |
for LED and a 500 mA single-cell linear charger. Also included is a Coulomb
counter, a real-time clock (RTC), and a 32.768 kHz clock gate and two GPOs.
+allOf:
+ - $ref: rohm,pmic-pins.yaml#
+
properties:
compatible:
const: rohm,bd71815
@@ -44,11 +47,7 @@ properties:
clock-output-names:
const: bd71815-32k-out
- rohm,clkout-open-drain:
- description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 0
- maximum: 1
+ rohm,clkout-open-drain: true
rohm,charger-sense-resistor-micro-ohms:
minimum: 10000
diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
index 09e7d68e92bf..e5043dec990d 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml
@@ -15,6 +15,9 @@ description: |
single-cell linear charger. Also included is a Coulomb counter, a real-time
clock (RTC), and a 32.768 kHz clock gate.
+allOf:
+ - $ref: rohm,pmic-pins.yaml#
+
properties:
compatible:
oneOf:
@@ -49,11 +52,7 @@ properties:
clock-output-names:
const: bd71828-32k-out
- rohm,clkout-open-drain:
- description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 0
- maximum: 1
+ rohm,clkout-open-drain: true
rohm,charger-sense-resistor-micro-ohms:
minimum: 10000
diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml
index b094542339e8..52d0f6e4ef0f 100644
--- a/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml
@@ -15,6 +15,9 @@ description:
and a 3000 mA switching charger. ICs also include a Coulomb counter,
a real-time clock (RTC), GPIOs and a 32.768 kHz clock gate.
+allOf:
+ - $ref: rohm,pmic-pins.yaml#
+
# In addition to the properties found from the charger node, PMICs
# use properties from a static battery node. Please see the:
# Documentation/devicetree/bindings/power/supply/battery.yaml
@@ -80,10 +83,7 @@ properties:
clock-output-names:
const: bd71828-32k-out
- rohm,clkout-open-drain:
- description: clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".
- $ref: /schemas/types.yaml#/definitions/uint32
- maximum: 1
+ rohm,clkout-open-drain: true
rohm,charger-sense-resistor-micro-ohms:
minimum: 10000
@@ -103,14 +103,6 @@ properties:
$ref: /schemas/leds/rohm,bd71828-leds.yaml
rohm,pin-fault_b:
- $ref: /schemas/types.yaml#/definitions/string
- description:
- PMIC has an OTP option to use fault_b-pin for different
- purposes. Set this property accordingly. OTP options are
- OTP0 - bi-directional FAULT_B or READY indicator depending on a
- 'sub option'
- OTP1 - GPO
- OTP2 - Power sequencer output.
enum:
- faultb
- readyind
@@ -119,14 +111,6 @@ properties:
patternProperties:
"^rohm,pin-dvs[0-1]$":
- $ref: /schemas/types.yaml#/definitions/string
- description:
- PMIC has 4 different OTP options to determine the use of dvs<X>-pins.
- OTP0 - regulator RUN state control.
- OTP1 - GPI.
- OTP2 - GPO.
- OTP3 - Power sequencer output.
- This property specifies the use of the pin.
enum:
- dvs-input
- gpi
@@ -134,11 +118,6 @@ patternProperties:
- pwrseq
"^rohm,pin-exten[0-1]$":
- $ref: /schemas/types.yaml#/definitions/string
- description: PMIC has an OTP option to use exten0-pin for different
- purposes. Set this property accordingly.
- OTP0 - GPO
- OTP1 - Power sequencer output.
enum:
- gpo
- pwrseq
--
2.55.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-09-16 6:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 6:04 [PATCH v4 00/10] Support ROHM BD73800 Matti Vaittinen
2026-09-16 6:06 ` [PATCH v4 01/10] dt-bindings: mfd: common ROHM PMIC properties Matti Vaittinen
2026-09-16 6:07 ` Matti Vaittinen [this message]
2026-09-16 6:08 ` [PATCH v4 03/10] dt-bindings: regulator: ROHM BD73800 regulators Matti Vaittinen
2026-09-16 6:08 ` [PATCH v4 04/10] dt-bindings: mfd: ROHM BD73800 PMIC Matti Vaittinen
2026-09-16 6:09 ` [PATCH v4 05/10] mfd: Support for ROHM BD73800 PMIC core Matti Vaittinen
2026-09-16 6:09 ` [PATCH v4 06/10] rtc: bd70528: Support RTC on ROHM BD73800 Matti Vaittinen
2026-09-16 6:10 ` [PATCH v4 07/10] regulator: bd71828: Support " Matti Vaittinen
2026-09-16 6:11 ` [PATCH v4 08/10] clk: bd718x7: " Matti Vaittinen
2026-09-16 6:12 ` [PATCH v4 09/10] gpio: bd73800: Support ROHM BD73800 PMIC GPIOs Matti Vaittinen
2026-09-16 17:31 ` Linus Walleij
2026-09-17 4:47 ` Matti Vaittinen
2026-09-16 6:12 ` [PATCH v4 10/10] MAINTAINERS: Add ROHM BD73800 PMIC files Matti Vaittinen
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=3cf6bb01a3a129f2b0b1d6418049dbdb1711873a.1789538455.git.mazziesaccount@gmail.com \
--to=matti.vaittinen@linux.dev \
--cc=Sverdlin@mva-rohm \
--cc=alexander.sverdlin@siemens.com \
--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®