1eda8ffccSDan Murphy# SPDX-License-Identifier: GPL-2.0
2eda8ffccSDan Murphy# Copyright (C) 2020 Texas Instruments Incorporated
3eda8ffccSDan Murphy%YAML 1.2
4eda8ffccSDan Murphy---
51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/bq27xxx.yaml#
61ea78ec5SKrzysztof Kozlowski$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
530827425dSDan Murphy      - ti,bq28z610
543e8282a3SKrzysztof Kozlowski      - ti,bq34z100
5583ee0681SLI Qingwu      - ti,bq78z100
56eda8ffccSDan Murphy
57eda8ffccSDan Murphy  reg:
58eda8ffccSDan Murphy    maxItems: 1
59eda8ffccSDan Murphy    description: integer, I2C address of the fuel gauge.
60eda8ffccSDan Murphy
61eda8ffccSDan Murphy  monitored-battery:
62eda8ffccSDan Murphy    description: |
63eda8ffccSDan Murphy       The fuel gauge uses the following battery properties:
64eda8ffccSDan Murphy       - energy-full-design-microwatt-hours
65eda8ffccSDan Murphy       - charge-full-design-microamp-hours
66eda8ffccSDan Murphy       - voltage-min-design-microvolt
67eda8ffccSDan Murphy       Both or neither of the *-full-design-*-hours properties must be set.
68eda8ffccSDan Murphy
69eda8ffccSDan Murphy  power-supplies: true
70eda8ffccSDan Murphy
71eda8ffccSDan Murphyrequired:
72eda8ffccSDan Murphy  - compatible
73eda8ffccSDan Murphy  - reg
74eda8ffccSDan MurphyadditionalProperties: false
75eda8ffccSDan Murphy
76eda8ffccSDan Murphyexamples:
77eda8ffccSDan Murphy  - |
78eda8ffccSDan Murphy    bat: battery {
79eda8ffccSDan Murphy      compatible = "simple-battery";
80eda8ffccSDan Murphy      voltage-min-design-microvolt = <3200000>;
81eda8ffccSDan Murphy      energy-full-design-microwatt-hours = <5290000>;
82eda8ffccSDan Murphy      charge-full-design-microamp-hours = <1430000>;
83eda8ffccSDan Murphy    };
84eda8ffccSDan Murphy
85*20a72af1SRob Herring    i2c {
86*20a72af1SRob Herring      #address-cells = <1>;
87*20a72af1SRob Herring      #size-cells = <0>;
88*20a72af1SRob Herring
89eda8ffccSDan Murphy      bq27510g3: fuel-gauge@55 {
90eda8ffccSDan Murphy        compatible = "ti,bq27510g3";
91eda8ffccSDan Murphy        reg = <0x55>;
92eda8ffccSDan Murphy        monitored-battery = <&bat>;
93eda8ffccSDan Murphy      };
94eda8ffccSDan Murphy    };
95