xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq27xxx.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
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
546be33864SEmmanuel Vadot      - ti,bq34z100
55*2eb4d8dcSEmmanuel Vadot      - ti,bq78z100
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot  reg:
58c66ec88fSEmmanuel Vadot    maxItems: 1
59c66ec88fSEmmanuel Vadot    description: integer, I2C address of the fuel gauge.
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot  monitored-battery:
62c66ec88fSEmmanuel Vadot    description: |
63c66ec88fSEmmanuel Vadot       phandle of battery characteristics node.
64c66ec88fSEmmanuel Vadot       The fuel gauge uses the following battery properties:
65c66ec88fSEmmanuel Vadot       - energy-full-design-microwatt-hours
66c66ec88fSEmmanuel Vadot       - charge-full-design-microamp-hours
67c66ec88fSEmmanuel Vadot       - voltage-min-design-microvolt
68c66ec88fSEmmanuel Vadot       Both or neither of the *-full-design-*-hours properties must be set.
69*2eb4d8dcSEmmanuel Vadot       See Documentation/devicetree/bindings/power/supply/battery.yaml
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot  power-supplies: true
72c66ec88fSEmmanuel Vadot
73c66ec88fSEmmanuel Vadotrequired:
74c66ec88fSEmmanuel Vadot  - compatible
75c66ec88fSEmmanuel Vadot  - reg
76c66ec88fSEmmanuel VadotadditionalProperties: false
77c66ec88fSEmmanuel Vadot
78c66ec88fSEmmanuel Vadotexamples:
79c66ec88fSEmmanuel Vadot  - |
80c66ec88fSEmmanuel Vadot    i2c0 {
81c66ec88fSEmmanuel Vadot      #address-cells = <1>;
82c66ec88fSEmmanuel Vadot      #size-cells = <0>;
83c66ec88fSEmmanuel Vadot      bat: battery {
84c66ec88fSEmmanuel Vadot        compatible = "simple-battery";
85c66ec88fSEmmanuel Vadot        voltage-min-design-microvolt = <3200000>;
86c66ec88fSEmmanuel Vadot        energy-full-design-microwatt-hours = <5290000>;
87c66ec88fSEmmanuel Vadot        charge-full-design-microamp-hours = <1430000>;
88c66ec88fSEmmanuel Vadot      };
89c66ec88fSEmmanuel Vadot
90c66ec88fSEmmanuel Vadot      bq27510g3: fuel-gauge@55 {
91c66ec88fSEmmanuel Vadot        compatible = "ti,bq27510g3";
92c66ec88fSEmmanuel Vadot        reg = <0x55>;
93c66ec88fSEmmanuel Vadot        monitored-battery = <&bat>;
94c66ec88fSEmmanuel Vadot      };
95c66ec88fSEmmanuel Vadot    };
96