BQ25703A Charger Manager/Buck/Boost Converter

Schema identifier ($id): "http://devicetree.org/schemas/mfd/ti,bq25703a.yaml#"

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

Maintainers (maintainers): "Chris Morgan <macromorgan@hotmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/power/supply/power-supply.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,bq25703a"

reg — required here #

Exact value (const): 107

input-current-limit-microamp — required here #

Maximum total input current allowed used for both charging and powering the device.

Minimum value (minimum): 50000

Maximum value (maximum): 6400000

Default value (default): 3250000

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

monitored-battery — required here #

A minimum of constant-charge-current-max-microamp, constant-charge-voltage-max-microvolt, and voltage-min-design-microvolt are required.

regulators — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Boost converter regulator output of bq257xx.

Properties and child nodes (properties) #

vbus — not listed as required here

Value type (type): "object"

Shared schema rule ($ref): /schemas/regulator/regulator.yaml

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

false

Not allowed by this rule.

Properties and child nodes (properties)

regulator-name — required here

true — No constraints added by this property rule.

regulator-min-microamp — required here

Minimum value (minimum): 0

Maximum value (maximum): 6350000

regulator-max-microamp — required here

Minimum value (minimum): 0

Maximum value (maximum): 6350000

regulator-min-microvolt — required here

Minimum value (minimum): 4480000

Maximum value (maximum): 20800000

regulator-max-microvolt — required here

Minimum value (minimum): 4480000

Maximum value (maximum): 20800000

enable-gpios — not listed as required here

The BQ25703 may require both a register write and a GPIO toggle to enable the boost regulator.

Required in this object (required): "regulator-name", "regulator-min-microamp", "regulator-max-microamp", "regulator-min-microvolt", "regulator-max-microvolt"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "input-current-limit-microamp", "monitored-battery", "power-supplies"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    bq25703: charger@6b {
        compatible = "ti,bq25703a";
        reg = <0x6b>;
        input-current-limit-microamp = <5000000>;
        interrupt-parent = <&gpio0>;
        interrupts = <RK_PD5 IRQ_TYPE_LEVEL_LOW>;
        monitored-battery = <&battery>;
        power-supplies = <&fusb302>;

        regulators {
            usb_otg_vbus: vbus {
                enable-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
                regulator-max-microamp = <960000>;
                regulator-max-microvolt = <5088000>;
                regulator-min-microamp = <512000>;
                regulator-min-microvolt = <4992000>;
                regulator-name = "usb_otg_vbus";
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page