TI BQ2419x Li-Ion Battery Charger

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

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

Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq24190", "ti,bq24192", "ti,bq24192i", "ti,bq24193", "ti,bq24196", "ti,bq24296", "ti,bq24297"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

ce-gpios — not listed as required here #

Active low Charge Enable pin. Battery charging is enabled when REG01[5:4] = 01 and CE pin is Low. CE pin must be pulled high or low.

Maximum number of items (maxItems): 1

usb-otg-vbus — not listed as required here #

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

Regulator that is used to control the VBUS voltage direction for either USB host mode or for charging on the OTG port

ti,system-minimum-microvolt — not listed as required here #

when power is connected and the battery is below minimum system voltage, the system will be regulated above this setting.

omit-battery-class — not listed as required here #

Value type (type): "boolean"

If this property is set, the operating system does not try to create a battery device.

monitored-battery — not listed as required here #

phandle to a "simple-battery" compatible node.

This property must be a phandle to a node using the format described
in battery.yaml, with the following properties being required:
- precharge-current-microamp: maximum charge current during precharge phase
                              (typically 20% of battery capacity).
- charge-term-current-microamp: a charge cycle terminates when the battery voltage is
                                above recharge threshold, and the current is below this
                                setting (typically 10% of battery capacity).

Required in this object (required): "compatible", "reg", "interrupts"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

bat: battery {
  compatible = "simple-battery";
  precharge-current-microamp = <256000>;
  charge-term-current-microamp = <128000>;
};

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

  charger@6a {
    compatible = "ti,bq24190";
    reg = <0x6a>;
    interrupt-parent = <&gpiochip>;
    interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
    monitored-battery = <&bat>;
    ti,system-minimum-microvolt = <3200000>;

    usb_otg_vbus: usb-otg-vbus { };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 2: Copyright (C) 2021 Sebastian Reichel

Edit this page