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