@@ -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
@@ -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
@@ -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