[PATCH v2 02/10] dt-bindings: rohm,bd*: Ref common ROHM bindings
From: Matti Vaittinen
Date: Tue Aug 04 2026 - 06:29:56 EST
From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
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@xxxxxxxxx>
---
Revision history:
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:
signature.asc
Description: PGP signature