TI bq256xx Switch Mode Buck Charger

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq256xx.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

The bq256xx devices are a family of highly-integrated battery charge management and system power management ICs for single cell Li-ion and Li- polymer batteries.

Datasheets:
  - https://www.ti.com/lit/ds/symlink/bq25600.pdf
  - https://www.ti.com/lit/ds/symlink/bq25601.pdf
  - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
  - https://www.ti.com/lit/ds/symlink/bq25618.pdf
  - https://www.ti.com/lit/ds/symlink/bq25619.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq25600", "ti,bq25601", "ti,bq25600d", "ti,bq25601d", "ti,bq25611d", "ti,bq25618", "ti,bq25619"

reg — required here #

Maximum number of items (maxItems): 1

ti,watchdog-timeout-ms — not listed as required here #

Default value (default): 0

Watchdog timer in ms. 0 (default) disables the watchdog

Minimum value (minimum): 0

Maximum value (maximum): 160000

Allowed values (enum): 0, 40000, 80000, 160000

input-voltage-limit-microvolt — not listed as required here #

Minimum input voltage limit in µV with a 100000 µV step

Minimum value (minimum): 3900000

Maximum value (maximum): 5400000

input-current-limit-microamp — not listed as required here #

Maximum input current limit in µA with a 100000 µA step

Minimum value (minimum): 100000

Maximum value (maximum): 3200000

monitored-battery — required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Interrupt sends an active low, 256 μs pulse to host to report the charger device status and faults.

ti,no-thermistor — not listed as required here #

Value type (type): "boolean"

Indicates that no thermistor is connected to the TS pin

Required in this object (required): "compatible", "reg", "monitored-battery"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,bq25600", "ti,bq25601", "ti,bq25600d", "ti,bq25601d"

When the condition matches (then) #

Properties and child nodes (properties)

ti,no-thermistor — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
  compatible = "simple-battery";
  constant-charge-current-max-microamp = <2040000>;
  constant-charge-voltage-max-microvolt = <4352000>;
  precharge-current-microamp = <180000>;
  charge-term-current-microamp = <180000>;
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {

  clock-frequency = <400000>;

  #address-cells = <1>;
  #size-cells = <0>;

  charger@6b {
    compatible = "ti,bq25601";
    reg = <0x6b>;
    monitored-battery = <&bat>;

    interrupt-parent = <&gpio1>;
    interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
    ti,watchdog-timeout-ms = <40000>;

    input-voltage-limit-microvolt = <4500000>;
    input-current-limit-microamp = <2400000>;
   };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

Edit this page