95 lines · yaml
1# SPDX-License-Identifier: GPL-2.02# Copyright (C) 2020 Texas Instruments Incorporated3%YAML 1.24---5$id: http://devicetree.org/schemas/power/supply/bq27xxx.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: TI BQ27XXX fuel gauge family9 10maintainers:11 - Pali Rohár <pali@kernel.org>12 - Andrew F. Davis <afd@ti.com>13 - Sebastian Reichel <sre@kernel.org>14 15description: |16 Support various Texas Instruments fuel gauge devices that share similar17 register maps and power supply properties18 19allOf:20 - $ref: power-supply.yaml#21 22properties:23 compatible:24 enum:25 - ti,bq2720026 - ti,bq2721027 - ti,bq27500 # deprecated, use revision specific property below28 - ti,bq27510 # deprecated, use revision specific property below29 - ti,bq27520 # deprecated, use revision specific property below30 - ti,bq27500-131 - ti,bq27510g132 - ti,bq27510g233 - ti,bq27510g334 - ti,bq27520g135 - ti,bq27520g236 - ti,bq27520g337 - ti,bq27520g438 - ti,bq2752139 - ti,bq2753040 - ti,bq2753141 - ti,bq2754142 - ti,bq2754243 - ti,bq2754644 - ti,bq2774245 - ti,bq2754546 - ti,bq2741147 - ti,bq2742148 - ti,bq2742549 - ti,bq2742650 - ti,bq2744151 - ti,bq2762152 - ti,bq27z56153 - ti,bq28z61054 - ti,bq34z10055 - ti,bq78z10056 57 reg:58 maxItems: 159 description: integer, I2C address of the fuel gauge.60 61 monitored-battery:62 description: |63 The fuel gauge uses the following battery properties:64 - energy-full-design-microwatt-hours65 - charge-full-design-microamp-hours66 - voltage-min-design-microvolt67 Both or neither of the *-full-design-*-hours properties must be set.68 69 power-supplies: true70 71required:72 - compatible73 - reg74additionalProperties: false75 76examples:77 - |78 bat: battery {79 compatible = "simple-battery";80 voltage-min-design-microvolt = <3200000>;81 energy-full-design-microwatt-hours = <5290000>;82 charge-full-design-microamp-hours = <1430000>;83 };84 85 i2c {86 #address-cells = <1>;87 #size-cells = <0>;88 89 bq27510g3: fuel-gauge@55 {90 compatible = "ti,bq27510g3";91 reg = <0x55>;92 monitored-battery = <&bat>;93 };94 };95