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