xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq27xxx.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot# Copyright (C) 2020 Texas Instruments Incorporated
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/bq27xxx.yaml#
6b97ee269SEmmanuel 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
552eb4d8dcSEmmanuel 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       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
69c66ec88fSEmmanuel Vadot  power-supplies: true
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadotrequired:
72c66ec88fSEmmanuel Vadot  - compatible
73c66ec88fSEmmanuel Vadot  - reg
74c66ec88fSEmmanuel VadotadditionalProperties: false
75c66ec88fSEmmanuel Vadot
76c66ec88fSEmmanuel Vadotexamples:
77c66ec88fSEmmanuel Vadot  - |
78c66ec88fSEmmanuel Vadot    bat: battery {
79c66ec88fSEmmanuel Vadot      compatible = "simple-battery";
80c66ec88fSEmmanuel Vadot      voltage-min-design-microvolt = <3200000>;
81c66ec88fSEmmanuel Vadot      energy-full-design-microwatt-hours = <5290000>;
82c66ec88fSEmmanuel Vadot      charge-full-design-microamp-hours = <1430000>;
83c66ec88fSEmmanuel Vadot    };
84c66ec88fSEmmanuel Vadot
85*fac71e4eSEmmanuel Vadot    i2c {
86*fac71e4eSEmmanuel Vadot      #address-cells = <1>;
87*fac71e4eSEmmanuel Vadot      #size-cells = <0>;
88*fac71e4eSEmmanuel 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