Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Matti Vaittinen and committed by
Lee Jones
c7be85a3 92601fb9

+17 -12
+17 -12
Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml
··· 4 4 $id: http://devicetree.org/schemas/mfd/rohm,bd72720-pmic.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: ROHM BD72720 Power Management Integrated Circuit 7 + title: ROHM BD72720 and BD73900 Power Management Integrated Circuits 8 8 9 9 maintainers: 10 10 - Matti Vaittinen <mazziesaccount@gmail.com> 11 11 12 12 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. 17 17 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: 20 20 # Documentation/devicetree/bindings/power/supply/battery.yaml 21 21 # 22 22 # Following properties are used ··· 48 48 49 49 properties: 50 50 compatible: 51 - const: rohm,bd72720 51 + oneOf: 52 + - const: rohm,bd72720 53 + 54 + - items: 55 + - const: rohm,bd73900 56 + - const: rohm,bd72720 52 57 53 58 reg: 54 59 description: ··· 89 84 minimum: 10000 90 85 maximum: 50000 91 86 description: 92 - BD72720 has a SAR ADC for measuring charging currents. External sense 87 + PMIC has a SAR ADC for measuring charging currents. External sense 93 88 resistor (RSENSE in data sheet) should be used. If some other but 94 89 30 mOhm resistor is used the resistance value should be given here in 95 90 micro Ohms. ··· 105 100 rohm,pin-fault_b: 106 101 $ref: /schemas/types.yaml#/definitions/string 107 102 description: 108 - BD72720 has an OTP option to use fault_b-pin for different 103 + PMIC has an OTP option to use fault_b-pin for different 109 104 purposes. Set this property accordingly. OTP options are 110 105 OTP0 - bi-directional FAULT_B or READY indicator depending on a 111 106 'sub option' ··· 121 116 "^rohm,pin-dvs[0-1]$": 122 117 $ref: /schemas/types.yaml#/definitions/string 123 118 description: 124 - BD72720 has 4 different OTP options to determine the use of dvs<X>-pins. 119 + PMIC has 4 different OTP options to determine the use of dvs<X>-pins. 125 120 OTP0 - regulator RUN state control. 126 121 OTP1 - GPI. 127 122 OTP2 - GPO. ··· 135 130 136 131 "^rohm,pin-exten[0-1]$": 137 132 $ref: /schemas/types.yaml#/definitions/string 138 - description: BD72720 has an OTP option to use exten0-pin for different 133 + description: PMIC has an OTP option to use exten0-pin for different 139 134 purposes. Set this property accordingly. 140 135 OTP0 - GPO 141 136 OTP1 - Power sequencer output.