1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: "http://devicetree.org/schemas/power/supply/bq25890.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: Binding for bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
30 ti,battery-regulation-voltage:
31 $ref: /schemas/types.yaml#/definitions/uint32
32 description: maximum charging voltage (in uV)
35 $ref: /schemas/types.yaml#/definitions/uint32
36 description: maximum charging current (in uA)
38 ti,termination-current:
39 $ref: /schemas/types.yaml#/definitions/uint32
41 charge will be terminated when current in constant-voltage phase
42 drops below this value (in uA)
45 $ref: /schemas/types.yaml#/definitions/uint32
46 description: maximum charge current during precharge phase (in uA)
48 ti,minimum-sys-voltage:
49 $ref: /schemas/types.yaml#/definitions/uint32
51 when battery is charging and it is below minimum system voltage,
52 the system will be regulated above minimum-sys-voltage setting (in uV)
55 $ref: /schemas/types.yaml#/definitions/uint32
56 description: VBUS voltage level in boost mode (in uV)
59 $ref: /schemas/types.yaml#/definitions/uint32
60 description: maximum allowed current draw in boost mode (in uA)
63 description: boost mode frequency will be 500kHz, otherwise 1.5MHz
68 ILIM resistor will be used and the input current will be the lower
69 between the resistor setting and the IINLIM register setting
72 ti,thermal-regulation-threshold:
73 $ref: /schemas/types.yaml#/definitions/uint32
75 temperature above which the charge current is lowered, to avoid overheating
76 (in degrees Celsius). If omitted, the default setting will be used (120 degrees)
78 ti,ibatcomp-micro-ohms:
79 description: value of a resistor in series with the battery (in Micro Ohms)
81 ti,ibatcomp-clamp-microvolt:
82 description: max. charging voltage adjustment due to expected voltage drop on in-series resistor
88 - ti,battery-regulation-voltage
90 - ti,termination-current
91 - ti,precharge-current
92 - ti,minimum-sys-voltage
94 - ti,boost-max-current
96 additionalProperties: false
100 #include <dt-bindings/interrupt-controller/irq.h>
102 #address-cells = <1>;
106 compatible = "ti,bq25890";
109 interrupt-parent = <&gpio1>;
110 interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
112 ti,battery-regulation-voltage = <4200000>;
113 ti,charge-current = <1000000>;
114 ti,termination-current = <50000>;
115 ti,precharge-current = <128000>;
116 ti,minimum-sys-voltage = <3600000>;
117 ti,boost-voltage = <5000000>;
118 ti,boost-max-current = <1000000>;
121 ti,thermal-regulation-threshold = <120>;