TI BQ27XXX fuel gauge family

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

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

Maintainers (maintainers): "Pali Rohár <pali@kernel.org>", "Andrew F. Davis <afd@ti.com>", "Sebastian Reichel <sre@kernel.org>"

Support various Texas Instruments fuel gauge devices that share similar register maps and power supply properties

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,bq27200", "ti,bq27210", "ti,bq27500", "ti,bq27510", "ti,bq27520", "ti,bq27500-1", "ti,bq27510g1", "ti,bq27510g2", "ti,bq27510g3", "ti,bq27520g1", "ti,bq27520g2", "ti,bq27520g3", "ti,bq27520g4", "ti,bq27521", "ti,bq27530", "ti,bq27531", "ti,bq27541", "ti,bq27542", "ti,bq27546", "ti,bq27742", "ti,bq27545", "ti,bq27411", "ti,bq27421", "ti,bq27425", "ti,bq27426", "ti,bq27441", "ti,bq27621", "ti,bq27z561", "ti,bq28z610", "ti,bq34z100", "ti,bq78z100"

reg — required here #

Maximum number of items (maxItems): 1

integer, I2C address of the fuel gauge.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

the SOC_INT or GPOUT pin

monitored-battery — not listed as required here #

The fuel gauge uses the following battery properties: - energy-full-design-microwatt-hours - charge-full-design-microamp-hours - voltage-min-design-microvolt Both or neither of the *-full-design-*-hours properties must be set.

power-supplies — not listed as required here #

true — No constraints added by this property rule.

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,bq27200", "ti,bq27210", "ti,bq27500", "ti,bq27510", "ti,bq27520", "ti,bq27500-1", "ti,bq27510g1", "ti,bq27510g2", "ti,bq27521", "ti,bq27541", "ti,bq27542", "ti,bq27546", "ti,bq27742", "ti,bq27545", "ti,bq27411", "ti,bq27z561", "ti,bq28z610", "ti,bq34z100", "ti,bq78z100"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

false — Not permitted by this property rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

bat: battery {
  compatible = "simple-battery";
  voltage-min-design-microvolt = <3200000>;
  energy-full-design-microwatt-hours = <5290000>;
  charge-full-design-microamp-hours = <1430000>;
};

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

  bq27510g3: fuel-gauge@55 {
    compatible = "ti,bq27510g3";
    reg = <0x55>;
    monitored-battery = <&bat>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

Line 24: deprecated, use revision specific property below

Line 25: deprecated, use revision specific property below

Line 26: deprecated, use revision specific property below

Line 81: deprecated, use revision specific property below

Line 82: deprecated, use revision specific property below

Line 83: deprecated, use revision specific property below

Edit this page