Commit c7be85a3 authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Lee Jones
Browse files

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: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/6eaa9f08848c27c462e156e31ae5bdfd33bf2fe7.1771938507.git.mazziesaccount@gmail.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 92601fb9
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
@@ -4,19 +4,19 @@
$id: http://devicetree.org/schemas/mfd/rohm,bd72720-pmic.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ROHM BD72720 Power Management Integrated Circuit
title: ROHM BD72720 and BD73900 Power Management Integrated Circuits

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

description:
  BD72720 is a single-chip power management IC for battery-powered portable
  devices. The BD72720 integrates 10 bucks and 11 LDOs, and a 3000 mA
  switching charger. The IC also includes a Coulomb counter, a real-time
  clock (RTC), GPIOs and a 32.768 kHz clock gate.
  BD72720 and BD73900 are single-chip power management ICs for
  battery-powered portable devices. They integrate 10 bucks and 11 LDOs,
  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.

# In addition to the properties found from the charger node, the ROHM BD72720
# uses properties from a static battery node. Please see the:
# 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
#
# Following properties are used
@@ -48,7 +48,12 @@ description:

properties:
  compatible:
    const: rohm,bd72720
    oneOf:
      - const: rohm,bd72720

      - items:
          - const: rohm,bd73900
          - const: rohm,bd72720

  reg:
    description:
@@ -84,7 +89,7 @@ properties:
    minimum: 10000
    maximum: 50000
    description:
      BD72720 has a SAR ADC for measuring charging currents. External sense
      PMIC has a SAR ADC for measuring charging currents. External sense
      resistor (RSENSE in data sheet) should be used. If some other but
      30 mOhm resistor is used the resistance value should be given here in
      micro Ohms.
@@ -100,7 +105,7 @@ properties:
  rohm,pin-fault_b:
    $ref: /schemas/types.yaml#/definitions/string
    description:
      BD72720 has an OTP option to use fault_b-pin for different
      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'
@@ -116,7 +121,7 @@ patternProperties:
  "^rohm,pin-dvs[0-1]$":
    $ref: /schemas/types.yaml#/definitions/string
    description:
      BD72720 has 4 different OTP options to determine the use of dvs<X>-pins.
      PMIC has 4 different OTP options to determine the use of dvs<X>-pins.
      OTP0 - regulator RUN state control.
      OTP1 - GPI.
      OTP2 - GPO.
@@ -130,7 +135,7 @@ patternProperties:

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