Skip to content

Commit c7be85a

Browse files
M-Vaittinenlag-linaro
authored andcommitted
dt-bindings: mfd: bd72720: Add ROHM BD73900
The ROHM BD79300 is almost identical to the BD72720. Main differences are the initial values for some of the registers. Thus, it appears the BD79300 can be handled with same software as BD72720. Adding the compatible for the BD79300 enables people to use the real IC type in the device-tree instead of claiming it is BD72720. This does also help differentiating the ICs if appears it is needed. Add own compatible for the BD73900 and mark BD72720 as a fall-back. Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/6eaa9f08848c27c462e156e31ae5bdfd33bf2fe7.1771938507.git.mazziesaccount@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 92601fb commit c7be85a

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
$id: http://devicetree.org/schemas/mfd/rohm,bd72720-pmic.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: ROHM BD72720 Power Management Integrated Circuit
7+
title: ROHM BD72720 and BD73900 Power Management Integrated Circuits
88

99
maintainers:
1010
- Matti Vaittinen <mazziesaccount@gmail.com>
1111

1212
description:
13-
BD72720 is a single-chip power management IC for battery-powered portable
14-
devices. The BD72720 integrates 10 bucks and 11 LDOs, and a 3000 mA
15-
switching charger. The IC also includes a Coulomb counter, a real-time
16-
clock (RTC), GPIOs and a 32.768 kHz clock gate.
13+
BD72720 and BD73900 are single-chip power management ICs for
14+
battery-powered portable devices. They integrate 10 bucks and 11 LDOs,
15+
and a 3000 mA switching charger. ICs also include a Coulomb counter,
16+
a real-time clock (RTC), GPIOs and a 32.768 kHz clock gate.
1717

18-
# In addition to the properties found from the charger node, the ROHM BD72720
19-
# uses properties from a static battery node. Please see the:
18+
# In addition to the properties found from the charger node, PMICs
19+
# use properties from a static battery node. Please see the:
2020
# Documentation/devicetree/bindings/power/supply/battery.yaml
2121
#
2222
# Following properties are used
@@ -48,7 +48,12 @@ description:
4848

4949
properties:
5050
compatible:
51-
const: rohm,bd72720
51+
oneOf:
52+
- const: rohm,bd72720
53+
54+
- items:
55+
- const: rohm,bd73900
56+
- const: rohm,bd72720
5257

5358
reg:
5459
description:
@@ -84,7 +89,7 @@ properties:
8489
minimum: 10000
8590
maximum: 50000
8691
description:
87-
BD72720 has a SAR ADC for measuring charging currents. External sense
92+
PMIC has a SAR ADC for measuring charging currents. External sense
8893
resistor (RSENSE in data sheet) should be used. If some other but
8994
30 mOhm resistor is used the resistance value should be given here in
9095
micro Ohms.
@@ -100,7 +105,7 @@ properties:
100105
rohm,pin-fault_b:
101106
$ref: /schemas/types.yaml#/definitions/string
102107
description:
103-
BD72720 has an OTP option to use fault_b-pin for different
108+
PMIC has an OTP option to use fault_b-pin for different
104109
purposes. Set this property accordingly. OTP options are
105110
OTP0 - bi-directional FAULT_B or READY indicator depending on a
106111
'sub option'
@@ -116,7 +121,7 @@ patternProperties:
116121
"^rohm,pin-dvs[0-1]$":
117122
$ref: /schemas/types.yaml#/definitions/string
118123
description:
119-
BD72720 has 4 different OTP options to determine the use of dvs<X>-pins.
124+
PMIC has 4 different OTP options to determine the use of dvs<X>-pins.
120125
OTP0 - regulator RUN state control.
121126
OTP1 - GPI.
122127
OTP2 - GPO.
@@ -130,7 +135,7 @@ patternProperties:
130135

131136
"^rohm,pin-exten[0-1]$":
132137
$ref: /schemas/types.yaml#/definitions/string
133-
description: BD72720 has an OTP option to use exten0-pin for different
138+
description: PMIC has an OTP option to use exten0-pin for different
134139
purposes. Set this property accordingly.
135140
OTP0 - GPO
136141
OTP1 - Power sequencer output.

0 commit comments

Comments
 (0)