TI bq2415x Li-Ion Charger

Schema identifier ($id): "http://devicetree.org/schemas/power/supply/bq2415x.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,bq24150", "ti,bq24150a", "ti,bq24151", "ti,bq24151a", "ti,bq24152", "ti,bq24153", "ti,bq24153a", "ti,bq24155", "ti,bq24156", "ti,bq24156a", "ti,bq24158"

reg — required here #

Maximum number of items (maxItems): 1

ti,current-limit — required here #

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

initial maximum current charger can pull from power supply in mA.

ti,weak-battery-voltage — required here #

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

weak battery voltage threshold in mV. The chip will use slow precharge if battery voltage is below this value.

ti,battery-regulation-voltage — required here #

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

maximum charging voltage in mV.

ti,charge-current — required here #

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

maximum charging current in mA.

ti,termination-current — required here #

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

charge will be terminated when current in constant-voltage phase drops below this value (in mA).

ti,resistor-sense — required here #

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

value of sensing resistor in milliohm.

ti,usb-charger-detection — not listed as required here #

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

phandle to usb charger detection device (required for auto mode)

Required in this object (required): "compatible", "reg", "ti,current-limit", "ti,weak-battery-voltage", "ti,battery-regulation-voltage", "ti,charge-current", "ti,termination-current", "ti,resistor-sense"

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

false

Not allowed by this rule.

Examples (examples) #

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

  charger@6b {
    compatible = "ti,bq24150a";
    reg = <0x6b>;

    ti,current-limit = <100>;
    ti,weak-battery-voltage = <3400>;
    ti,battery-regulation-voltage = <4200>;
    ti,charge-current = <650>;
    ti,termination-current = <100>;
    ti,resistor-sense = <68>;

    ti,usb-charger-detection = <&isp1704>;
  };
};

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