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
43 - 2 # when external power is connected
47 description: polling interval (in ms)
48 $ref: /schemas/types.yaml#/definitions/uint32
51 description: battery status
53 - 0 # battery always present
55 - 2 # check presence via fuel gauge
56 - 3 # check presence via charger
58 cm-fullbatt-vchkdrop-volt:
59 description: voltage drop before restarting charging in uV
60 $ref: /schemas/types.yaml#/definitions/uint32
62 cm-fullbatt-vchkdrop-ms:
66 description: voltage of full battery in uV
67 $ref: /schemas/types.yaml#/definitions/uint32
70 description: state of charge to consider as full battery in %
71 $ref: /schemas/types.yaml#/definitions/uint32
74 description: capcity to consider as full battery in uAh
75 $ref: /schemas/types.yaml#/definitions/uint32
78 description: name of external thermometer's thermal zone
79 $ref: /schemas/types.yaml#/definitions/string
82 description: limits of discharging duration in ms
83 $ref: /schemas/types.yaml#/definitions/uint32
86 description: limits of charging duration in ms
87 $ref: /schemas/types.yaml#/definitions/uint32
90 description: critical cold temperature of battery for charging in deci-degree celsius
91 $ref: /schemas/types.yaml#/definitions/uint32
93 cm-battery-cold-in-minus:
94 description: if set cm-battery-cold temperature is in minus degrees
98 description: critical hot temperature of battery for charging in deci-degree celsius
99 $ref: /schemas/types.yaml#/definitions/uint32
101 cm-battery-temp-diff:
102 description: temperature difference to allow recharging in deci-degree celsius
103 $ref: /schemas/types.yaml#/definitions/uint32
107 description: regulator consumer, named according to cm-regulator-name
108 $ref: /schemas/types.yaml#/definitions/phandle
110 "^regulator[@-][0-9]$":
114 description: name of charger regulator
115 $ref: /schemas/types.yaml#/definitions/string
120 additionalProperties: false
127 description: name of charger cable
144 description: name of extcon dev
145 $ref: /schemas/types.yaml#/definitions/string
148 description: minimum current of cable in uA
149 $ref: /schemas/types.yaml#/definitions/uint32
152 description: maximum current of cable in uA
153 $ref: /schemas/types.yaml#/definitions/uint32
159 additionalProperties: false
166 additionalProperties: false
171 compatible = "charger-manager";
172 chg-reg-supply = <&charger_regulator>;
175 /* Always polling ON : 30s */
177 cm-poll-interval = <30000>;
179 cm-fullbatt-vchkdrop-volt = <150000>;
180 cm-fullbatt-soc = <100>;
182 cm-battery-stat = <3>;
184 cm-chargers = "charger0", "charger1", "charger2";
186 cm-fuel-gauge = "fuelgauge0";
188 cm-thermal-zone = "thermal_zone.1";
189 /* in deci centigrade */
190 cm-battery-cold = <50>;
191 cm-battery-cold-in-minus;
192 cm-battery-hot = <800>;
193 cm-battery-temp-diff = <100>;
195 /* Allow charging for 5hr */
196 cm-charging-max = <18000000>;
197 /* Allow discharging for 2hr */
198 cm-discharging-max = <7200000>;
201 cm-regulator-name = "chg-reg";
203 cm-cable-name = "USB";
204 cm-cable-extcon = "extcon-dev.0";
205 cm-cable-min = <475000>;
206 cm-cable-max = <500000>;
209 cm-cable-name = "SDP";
210 cm-cable-extcon = "extcon-dev.0";
211 cm-cable-min = <650000>;
212 cm-cable-max = <675000>;