1eda8ffccSDan Murphy# SPDX-License-Identifier: GPL-2.0 2eda8ffccSDan Murphy# Copyright (C) 2020 Texas Instruments Incorporated 3eda8ffccSDan Murphy%YAML 1.2 4eda8ffccSDan Murphy--- 5eda8ffccSDan Murphy$id: "http://devicetree.org/schemas/power/supply/bq27xxx.yaml#" 6eda8ffccSDan Murphy$schema: "http://devicetree.org/meta-schemas/core.yaml#" 7eda8ffccSDan Murphy 8eda8ffccSDan Murphytitle: TI BQ27XXX fuel gauge family 9eda8ffccSDan Murphy 10eda8ffccSDan Murphymaintainers: 11eda8ffccSDan Murphy - Pali Rohár <pali@kernel.org> 12eda8ffccSDan Murphy - Andrew F. Davis <afd@ti.com> 13eda8ffccSDan Murphy - Sebastian Reichel <sre@kernel.org> 14eda8ffccSDan Murphy 15eda8ffccSDan Murphydescription: | 16eda8ffccSDan Murphy Support various Texas Instruments fuel gauge devices that share similar 17eda8ffccSDan Murphy register maps and power supply properties 18eda8ffccSDan Murphy 19eda8ffccSDan MurphyallOf: 20eda8ffccSDan Murphy - $ref: power-supply.yaml# 21eda8ffccSDan Murphy 22eda8ffccSDan Murphyproperties: 23eda8ffccSDan Murphy compatible: 24eda8ffccSDan Murphy enum: 25eda8ffccSDan Murphy - ti,bq27200 26eda8ffccSDan Murphy - ti,bq27210 27eda8ffccSDan Murphy - ti,bq27500 # deprecated, use revision specific property below 28eda8ffccSDan Murphy - ti,bq27510 # deprecated, use revision specific property below 29eda8ffccSDan Murphy - ti,bq27520 # deprecated, use revision specific property below 30eda8ffccSDan Murphy - ti,bq27500-1 31eda8ffccSDan Murphy - ti,bq27510g1 32eda8ffccSDan Murphy - ti,bq27510g2 33eda8ffccSDan Murphy - ti,bq27510g3 34eda8ffccSDan Murphy - ti,bq27520g1 35eda8ffccSDan Murphy - ti,bq27520g2 36eda8ffccSDan Murphy - ti,bq27520g3 37eda8ffccSDan Murphy - ti,bq27520g4 38eda8ffccSDan Murphy - ti,bq27521 39eda8ffccSDan Murphy - ti,bq27530 40eda8ffccSDan Murphy - ti,bq27531 41eda8ffccSDan Murphy - ti,bq27541 42eda8ffccSDan Murphy - ti,bq27542 43eda8ffccSDan Murphy - ti,bq27546 44eda8ffccSDan Murphy - ti,bq27742 45eda8ffccSDan Murphy - ti,bq27545 46eda8ffccSDan Murphy - ti,bq27411 47eda8ffccSDan Murphy - ti,bq27421 48eda8ffccSDan Murphy - ti,bq27425 49eda8ffccSDan Murphy - ti,bq27426 50eda8ffccSDan Murphy - ti,bq27441 51eda8ffccSDan Murphy - ti,bq27621 5236d1b699SDan Murphy - ti,bq27z561 53eda8ffccSDan Murphy 54eda8ffccSDan Murphy reg: 55eda8ffccSDan Murphy maxItems: 1 56eda8ffccSDan Murphy description: integer, I2C address of the fuel gauge. 57eda8ffccSDan Murphy 58eda8ffccSDan Murphy monitored-battery: 59eda8ffccSDan Murphy description: | 60eda8ffccSDan Murphy phandle of battery characteristics node. 61eda8ffccSDan Murphy The fuel gauge uses the following battery properties: 62eda8ffccSDan Murphy - energy-full-design-microwatt-hours 63eda8ffccSDan Murphy - charge-full-design-microamp-hours 64eda8ffccSDan Murphy - voltage-min-design-microvolt 65eda8ffccSDan Murphy Both or neither of the *-full-design-*-hours properties must be set. 66eda8ffccSDan Murphy See Documentation/devicetree/bindings/power/supply/battery.txt 67eda8ffccSDan Murphy 68eda8ffccSDan Murphy power-supplies: true 69eda8ffccSDan Murphy 70eda8ffccSDan Murphyrequired: 71eda8ffccSDan Murphy - compatible 72eda8ffccSDan Murphy - reg 73eda8ffccSDan MurphyadditionalProperties: false 74eda8ffccSDan Murphy 75eda8ffccSDan Murphyexamples: 76eda8ffccSDan Murphy - | 77eda8ffccSDan Murphy i2c0 { 78eda8ffccSDan Murphy #address-cells = <1>; 79eda8ffccSDan Murphy #size-cells = <0>; 80eda8ffccSDan Murphy bat: battery { 81eda8ffccSDan Murphy compatible = "simple-battery"; 82eda8ffccSDan Murphy voltage-min-design-microvolt = <3200000>; 83eda8ffccSDan Murphy energy-full-design-microwatt-hours = <5290000>; 84eda8ffccSDan Murphy charge-full-design-microamp-hours = <1430000>; 85eda8ffccSDan Murphy }; 86eda8ffccSDan Murphy 87eda8ffccSDan Murphy bq27510g3: fuel-gauge@55 { 88eda8ffccSDan Murphy compatible = "ti,bq27510g3"; 89eda8ffccSDan Murphy reg = <0x55>; 90eda8ffccSDan Murphy monitored-battery = <&bat>; 91eda8ffccSDan Murphy }; 92eda8ffccSDan Murphy }; 93