xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq25890.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*2eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel
3*2eb4d8dcSEmmanuel Vadot%YAML 1.2
4*2eb4d8dcSEmmanuel Vadot---
5*2eb4d8dcSEmmanuel Vadot$id: "http://devicetree.org/schemas/power/supply/bq25890.yaml#"
6*2eb4d8dcSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*2eb4d8dcSEmmanuel Vadot
8*2eb4d8dcSEmmanuel Vadottitle: Binding for bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
9*2eb4d8dcSEmmanuel Vadot
10*2eb4d8dcSEmmanuel Vadotmaintainers:
11*2eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
12*2eb4d8dcSEmmanuel Vadot
13*2eb4d8dcSEmmanuel VadotallOf:
14*2eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
15*2eb4d8dcSEmmanuel Vadot
16*2eb4d8dcSEmmanuel Vadotproperties:
17*2eb4d8dcSEmmanuel Vadot  compatible:
18*2eb4d8dcSEmmanuel Vadot    enum:
19*2eb4d8dcSEmmanuel Vadot      - ti,bq25890
20*2eb4d8dcSEmmanuel Vadot      - ti,bq25892
21*2eb4d8dcSEmmanuel Vadot      - ti,bq25895
22*2eb4d8dcSEmmanuel Vadot      - ti,bq25896
23*2eb4d8dcSEmmanuel Vadot
24*2eb4d8dcSEmmanuel Vadot  reg:
25*2eb4d8dcSEmmanuel Vadot    maxItems: 1
26*2eb4d8dcSEmmanuel Vadot
27*2eb4d8dcSEmmanuel Vadot  interrupts:
28*2eb4d8dcSEmmanuel Vadot    maxItems: 1
29*2eb4d8dcSEmmanuel Vadot
30*2eb4d8dcSEmmanuel Vadot  ti,battery-regulation-voltage:
31*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
32*2eb4d8dcSEmmanuel Vadot    description: maximum charging voltage (in uV)
33*2eb4d8dcSEmmanuel Vadot
34*2eb4d8dcSEmmanuel Vadot  ti,charge-current:
35*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
36*2eb4d8dcSEmmanuel Vadot    description: maximum charging current (in uA)
37*2eb4d8dcSEmmanuel Vadot
38*2eb4d8dcSEmmanuel Vadot  ti,termination-current:
39*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
40*2eb4d8dcSEmmanuel Vadot    description: |
41*2eb4d8dcSEmmanuel Vadot      charge will be terminated when current in constant-voltage phase
42*2eb4d8dcSEmmanuel Vadot      drops below this value (in uA)
43*2eb4d8dcSEmmanuel Vadot
44*2eb4d8dcSEmmanuel Vadot  ti,precharge-current:
45*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
46*2eb4d8dcSEmmanuel Vadot    description: maximum charge current during precharge phase (in uA)
47*2eb4d8dcSEmmanuel Vadot
48*2eb4d8dcSEmmanuel Vadot  ti,minimum-sys-voltage:
49*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
50*2eb4d8dcSEmmanuel Vadot    description: |
51*2eb4d8dcSEmmanuel Vadot      when battery is charging and it is below minimum system voltage,
52*2eb4d8dcSEmmanuel Vadot      the system will be regulated above minimum-sys-voltage setting (in uV)
53*2eb4d8dcSEmmanuel Vadot
54*2eb4d8dcSEmmanuel Vadot  ti,boost-voltage:
55*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
56*2eb4d8dcSEmmanuel Vadot    description: VBUS voltage level in boost mode (in uV)
57*2eb4d8dcSEmmanuel Vadot
58*2eb4d8dcSEmmanuel Vadot  ti,boost-max-current:
59*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
60*2eb4d8dcSEmmanuel Vadot    description: maximum allowed current draw in boost mode (in uA)
61*2eb4d8dcSEmmanuel Vadot
62*2eb4d8dcSEmmanuel Vadot  ti,boost-low-freq:
63*2eb4d8dcSEmmanuel Vadot    description: boost mode frequency will be 500kHz, otherwise 1.5MHz
64*2eb4d8dcSEmmanuel Vadot    type: boolean
65*2eb4d8dcSEmmanuel Vadot
66*2eb4d8dcSEmmanuel Vadot  ti,use-ilim-pin:
67*2eb4d8dcSEmmanuel Vadot    description: |
68*2eb4d8dcSEmmanuel Vadot      ILIM resistor will be used and the input current will be the lower
69*2eb4d8dcSEmmanuel Vadot      between the resistor setting and the IINLIM register setting
70*2eb4d8dcSEmmanuel Vadot    type: boolean
71*2eb4d8dcSEmmanuel Vadot
72*2eb4d8dcSEmmanuel Vadot  ti,thermal-regulation-threshold:
73*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
74*2eb4d8dcSEmmanuel Vadot    description: |
75*2eb4d8dcSEmmanuel Vadot      temperature above which the charge current is lowered, to avoid overheating
76*2eb4d8dcSEmmanuel Vadot      (in degrees Celsius). If omitted, the default setting will be used (120 degrees)
77*2eb4d8dcSEmmanuel Vadot
78*2eb4d8dcSEmmanuel Vadot  ti,ibatcomp-micro-ohms:
79*2eb4d8dcSEmmanuel Vadot    description: value of a resistor in series with the battery (in Micro Ohms)
80*2eb4d8dcSEmmanuel Vadot
81*2eb4d8dcSEmmanuel Vadot  ti,ibatcomp-clamp-microvolt:
82*2eb4d8dcSEmmanuel Vadot    description: max. charging voltage adjustment due to expected voltage drop on in-series resistor
83*2eb4d8dcSEmmanuel Vadot
84*2eb4d8dcSEmmanuel Vadotrequired:
85*2eb4d8dcSEmmanuel Vadot  - compatible
86*2eb4d8dcSEmmanuel Vadot  - reg
87*2eb4d8dcSEmmanuel Vadot  - interrupts
88*2eb4d8dcSEmmanuel Vadot  - ti,battery-regulation-voltage
89*2eb4d8dcSEmmanuel Vadot  - ti,charge-current
90*2eb4d8dcSEmmanuel Vadot  - ti,termination-current
91*2eb4d8dcSEmmanuel Vadot  - ti,precharge-current
92*2eb4d8dcSEmmanuel Vadot  - ti,minimum-sys-voltage
93*2eb4d8dcSEmmanuel Vadot  - ti,boost-voltage
94*2eb4d8dcSEmmanuel Vadot  - ti,boost-max-current
95*2eb4d8dcSEmmanuel Vadot
96*2eb4d8dcSEmmanuel VadotadditionalProperties: false
97*2eb4d8dcSEmmanuel Vadot
98*2eb4d8dcSEmmanuel Vadotexamples:
99*2eb4d8dcSEmmanuel Vadot  - |
100*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
101*2eb4d8dcSEmmanuel Vadot    i2c0 {
102*2eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
103*2eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
104*2eb4d8dcSEmmanuel Vadot
105*2eb4d8dcSEmmanuel Vadot      charger@6a {
106*2eb4d8dcSEmmanuel Vadot        compatible = "ti,bq25890";
107*2eb4d8dcSEmmanuel Vadot        reg = <0x6a>;
108*2eb4d8dcSEmmanuel Vadot
109*2eb4d8dcSEmmanuel Vadot        interrupt-parent = <&gpio1>;
110*2eb4d8dcSEmmanuel Vadot        interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
111*2eb4d8dcSEmmanuel Vadot
112*2eb4d8dcSEmmanuel Vadot        ti,battery-regulation-voltage = <4200000>;
113*2eb4d8dcSEmmanuel Vadot        ti,charge-current = <1000000>;
114*2eb4d8dcSEmmanuel Vadot        ti,termination-current = <50000>;
115*2eb4d8dcSEmmanuel Vadot        ti,precharge-current = <128000>;
116*2eb4d8dcSEmmanuel Vadot        ti,minimum-sys-voltage = <3600000>;
117*2eb4d8dcSEmmanuel Vadot        ti,boost-voltage = <5000000>;
118*2eb4d8dcSEmmanuel Vadot        ti,boost-max-current = <1000000>;
119*2eb4d8dcSEmmanuel Vadot
120*2eb4d8dcSEmmanuel Vadot        ti,use-ilim-pin;
121*2eb4d8dcSEmmanuel Vadot        ti,thermal-regulation-threshold = <120>;
122*2eb4d8dcSEmmanuel Vadot      };
123*2eb4d8dcSEmmanuel Vadot    };
124