ROHM BD72720 Power Management Integrated Circuit

Schema identifier ($id): "http://devicetree.org/schemas/mfd/rohm,bd72720-pmic.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"

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.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "rohm,bd72720"

reg — required here #

I2C slave address.

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — required here #

Exact value (const): 2

The first cell is the pin number and the second cell is used to specify flags. See the gpio binding document for more information.

clocks — required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 0

clock-output-names — not listed as required here #

Exact value (const): "bd71828-32k-out"

rohm,clkout-open-drain — not listed as required here #

clk32kout mode. Set to 1 for "open-drain" or 0 for "cmos".

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 1

rohm,charger-sense-resistor-micro-ohms — not listed as required here #

Minimum value (minimum): 10000

Maximum value (maximum): 50000

BD72720 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.

regulators — required here #

Shared schema rule ($ref): /schemas/regulator/rohm,bd72720-regulator.yaml

List of child nodes that specify the regulators.

leds — not listed as required here #

Shared schema rule ($ref): /schemas/leds/rohm,bd71828-leds.yaml

rohm,pin-fault_b — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

BD72720 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.

Allowed values (enum): "faultb", "readyind", "gpo", "pwrseq"

Properties matching a name pattern (patternProperties) #

^rohm,pin-dvs[0-1]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

BD72720 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.

Allowed values (enum): "dvs-input", "gpi", "gpo", "pwrseq"

^rohm,pin-exten[0-1]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

BD72720 has an OTP option to use exten0-pin for different purposes. Set this property accordingly. OTP0 - GPO OTP1 - Power sequencer output.

Allowed values (enum): "gpo", "pwrseq"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#clock-cells", "regulators", "gpio-controller", "#gpio-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    pmic: pmic@4b {
        compatible = "rohm,bd72720";
        reg = <0x4b>;

        interrupt-parent = <&gpio1>;
        interrupts = <29 IRQ_TYPE_LEVEL_LOW>;

        clocks = <&osc 0>;
        #clock-cells = <0>;
        clock-output-names = "bd71828-32k-out";

        gpio-controller;
        #gpio-cells = <2>;

        rohm,pin-dvs0 = "gpi";
        rohm,pin-dvs1 = "gpi";
        rohm,pin-exten0 = "gpo";
        rohm,pin-exten1 = "gpo";
        rohm,pin-fault_b = "faultb";

        rohm,charger-sense-resistor-micro-ohms = <10000>;

        regulators {
            buck1 {
                regulator-name = "buck1";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <2000000>;
                regulator-ramp-delay = <2500>;
            };
            buck2 {
                regulator-name = "buck2";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <2000000>;
                regulator-ramp-delay = <2500>;
            };
            buck3 {
                regulator-name = "buck3";
                regulator-min-microvolt = <1200000>;
                regulator-max-microvolt = <2000000>;
            };
            buck4 {
                regulator-name = "buck4";
                regulator-min-microvolt = <1000000>;
                regulator-max-microvolt = <1800000>;
            };
            buck5 {
                regulator-name = "buck5";
                regulator-min-microvolt = <2500000>;
                regulator-max-microvolt = <3300000>;
            };
            buck6 {
                regulator-name = "buck6";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <2000000>;
                regulator-ramp-delay = <2500>;
            };
            buck7 {
                regulator-name = "buck7";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <2000000>;
                regulator-ramp-delay = <2500>;
            };
            buck8 {
                regulator-name = "buck8";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <1700000>;
                regulator-ramp-delay = <2500>;
                rohm,dvs-run-voltage = <1700000>;
                rohm,dvs-idle-voltage = <1>;
                rohm,dvs-suspend-voltage = <1>;
                rohm,dvs-lpsr-voltage = <0>;
                regulator-boot-on;
            };
            buck9 {
                regulator-name = "buck9";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <1700000>;
                regulator-ramp-delay = <2500>;
                rohm,dvs-run-voltage = <1700000>;
                rohm,dvs-idle-voltage = <1>;
                rohm,dvs-suspend-voltage = <1>;
                rohm,dvs-lpsr-voltage = <0>;
                regulator-boot-on;
            };
            buck10 {
                regulator-name = "buck10";
                regulator-min-microvolt = <500000>;
                regulator-max-microvolt = <1700000>;
                regulator-ramp-delay = <2500>;
                rohm,dvs-run-voltage = <1700000>;
                rohm,dvs-idle-voltage = <1>;
                rohm,dvs-suspend-voltage = <1>;
                rohm,dvs-lpsr-voltage = <0>;
                regulator-boot-on;
            };
            ldo1 {
                regulator-name = "ldo1";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo2 {
                regulator-name = "ldo2";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo3 {
                regulator-name = "ldo3";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo4 {
                regulator-name = "ldo4";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo5 {
                regulator-name = "ldo5";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo6 {
                regulator-name = "ldo6";
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
            };
            ldo7 {
                regulator-name = "ldo7";
                regulator-min-microvolt = <800000>;
                regulator-max-microvolt = <3300000>;
            };
            ldo8 {
                regulator-name = "ldo8";
                regulator-min-microvolt = <750000>;
                regulator-max-microvolt = <3300000>;
                rohm,dvs-suspend-voltage = <0>;
                rohm,dvs-lpsr-voltage = <1>;
                rohm,dvs-run-voltage = <750000>;
            };
            ldo9 {
                regulator-name = "ldo9";
                regulator-min-microvolt = <750000>;
                regulator-max-microvolt = <3300000>;
                rohm,dvs-suspend-voltage = <0>;
                rohm,dvs-lpsr-voltage = <1>;
                rohm,dvs-run-voltage = <750000>;
            };
            ldo10 {
                regulator-name = "ldo10";
                regulator-min-microvolt = <750000>;
                regulator-max-microvolt = <3300000>;
                rohm,dvs-suspend-voltage = <0>;
                rohm,dvs-lpsr-voltage = <1>;
                rohm,dvs-run-voltage = <750000>;
            };
            ldo11 {
                regulator-name = "ldo11";
                regulator-min-microvolt = <750000>;
                regulator-max-microvolt = <3300000>;
                rohm,dvs-suspend-voltage = <0>;
                rohm,dvs-lpsr-voltage = <1>;
                rohm,dvs-run-voltage = <750000>;
            };
        };

        leds {
            compatible = "rohm,bd71828-leds";

            led-1 {
                rohm,led-compatible = "bd71828-grnled";
                function = LED_FUNCTION_INDICATOR;
                color = <LED_COLOR_ID_GREEN>;
            };
            led-2 {
                rohm,led-compatible = "bd71828-ambled";
                function = LED_FUNCTION_CHARGING;
                color = <LED_COLOR_ID_AMBER>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 18: In addition to the properties found from the charger node, the ROHM BD72720

Line 19: uses properties from a static battery node. Please see the:

Line 20: Documentation/devicetree/bindings/power/supply/battery.yaml

Line 21:

Line 22: Following properties are used

Line 23: when present:

Line 24:

Line 25: charge-full-design-microamp-hours: Battry capacity in mAh

Line 26: voltage-max-design-microvolt: Maximum voltage

Line 27: voltage-min-design-microvolt: Minimum voltage system is still operating.

Line 28: degrade-cycle-microamp-hours: Capacity lost due to aging at each full

Line 29: charge cycle.

Line 30: ocv-capacity-celsius: Array of OCV table temperatures. 1/table.

Line 31: ocv-capacity-table-<N>: Table of OCV voltage/SOC pairs. Corresponds

Line 32: N.th temperature in ocv-capacity-celsius

Line 33:

Line 34: volt-drop-thresh-microvolt: Threshold for starting the VDR correction

Line 35: volt-drop-soc: Table of capacity values matching the

Line 36: values in VDR tables.

Line 37:

Line 38: volt-drop-temperatures-millicelsius: Temperatures corresponding to the volage

Line 39: drop values given in volt-drop-[0-9]-microvolt

Line 40:

Line 41: volt-drop-[0-9]-microvolt: VDR table for a temperature specified in

Line 42: volt-drop-temperatures-millicelsius

Line 43:

Line 44: VDR tables are (usually) determined for a specific battery by ROHM.

Line 45: The battery node would then be referred from the charger node:

Line 46:

Line 47: monitored-battery = <&battery>;

Edit this page