1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 Binding for the legacy charger manager driver.
14 Please do not use for new products.
18 const: charger-manager
21 description: name of chargers
22 $ref: /schemas/types.yaml#/definitions/string-array
25 $ref: /schemas/types.yaml#/definitions/uint32
29 description: name of battery fuel gauge
30 $ref: /schemas/types.yaml#/definitions/string
33 description: name of the charger manager
35 $ref: /schemas/types.yaml#/definitions/string
38 description: polling mode
39 $ref: /schemas/types.yaml#/definitions/uint32
44 - 2 # when external power is connected
48 description: polling interval (in ms)
49 $ref: /schemas/types.yaml#/definitions/uint32
52 description: battery status
53 $ref: /schemas/types.yaml#/definitions/uint32
55 - 0 # battery always present
57 - 2 # check presence via fuel gauge
58 - 3 # check presence via charger
60 cm-fullbatt-vchkdrop-volt:
61 description: voltage drop before restarting charging in uV
62 $ref: /schemas/types.yaml#/definitions/uint32
64 cm-fullbatt-vchkdrop-ms:
68 description: voltage of full battery in uV
69 $ref: /schemas/types.yaml#/definitions/uint32
72 description: state of charge to consider as full battery in %
73 $ref: /schemas/types.yaml#/definitions/uint32
76 description: capcity to consider as full battery in uAh
77 $ref: /schemas/types.yaml#/definitions/uint32
80 description: name of external thermometer's thermal zone
81 $ref: /schemas/types.yaml#/definitions/string
84 description: limits of discharging duration in ms
85 $ref: /schemas/types.yaml#/definitions/uint32
88 description: limits of charging duration in ms
89 $ref: /schemas/types.yaml#/definitions/uint32
92 description: critical cold temperature of battery for charging in deci-degree celsius
93 $ref: /schemas/types.yaml#/definitions/uint32
95 cm-battery-cold-in-minus:
96 description: if set cm-battery-cold temperature is in minus degrees
100 description: critical hot temperature of battery for charging in deci-degree celsius
101 $ref: /schemas/types.yaml#/definitions/uint32
103 cm-battery-temp-diff:
104 description: temperature difference to allow recharging in deci-degree celsius
105 $ref: /schemas/types.yaml#/definitions/uint32
109 description: regulator consumer, named according to cm-regulator-name
110 $ref: /schemas/types.yaml#/definitions/phandle
112 "^regulator[@-][0-9]$":
116 description: name of charger regulator
117 $ref: /schemas/types.yaml#/definitions/string
122 additionalProperties: false
129 description: name of charger cable
146 description: name of extcon dev
147 $ref: /schemas/types.yaml#/definitions/string
150 description: minimum current of cable in uA
151 $ref: /schemas/types.yaml#/definitions/uint32
154 description: maximum current of cable in uA
155 $ref: /schemas/types.yaml#/definitions/uint32
161 additionalProperties: false
168 additionalProperties: false
173 compatible = "charger-manager";
174 chg-reg-supply = <&charger_regulator>;
177 /* Always polling ON : 30s */
179 cm-poll-interval = <30000>;
181 cm-fullbatt-vchkdrop-volt = <150000>;
182 cm-fullbatt-soc = <100>;
184 cm-battery-stat = <3>;
186 cm-chargers = "charger0", "charger1", "charger2";
188 cm-fuel-gauge = "fuelgauge0";
190 cm-thermal-zone = "thermal_zone.1";
191 /* in deci centigrade */
192 cm-battery-cold = <50>;
193 cm-battery-cold-in-minus;
194 cm-battery-hot = <800>;
195 cm-battery-temp-diff = <100>;
197 /* Allow charging for 5hr */
198 cm-charging-max = <18000000>;
199 /* Allow discharging for 2hr */
200 cm-discharging-max = <7200000>;
203 cm-regulator-name = "chg-reg";
205 cm-cable-name = "USB";
206 cm-cable-extcon = "extcon-dev.0";
207 cm-cable-min = <475000>;
208 cm-cable-max = <500000>;
211 cm-cable-name = "SDP";
212 cm-cable-extcon = "extcon-dev.0";
213 cm-cable-min = <650000>;
214 cm-cable-max = <675000>;