1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/bq2415x.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: TI bq2415x Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
35 $ref: /schemas/types.yaml#/definitions/uint32
36 description: initial maximum current charger can pull from power supply in mA.
38 ti,weak-battery-voltage:
39 $ref: /schemas/types.yaml#/definitions/uint32
41 weak battery voltage threshold in mV.
42 The chip will use slow precharge if battery voltage is below this value.
44 ti,battery-regulation-voltage:
45 $ref: /schemas/types.yaml#/definitions/uint32
46 description: maximum charging voltage in mV.
49 $ref: /schemas/types.yaml#/definitions/uint32
50 description: maximum charging current in mA.
52 ti,termination-current:
53 $ref: /schemas/types.yaml#/definitions/uint32
55 charge will be terminated when current in constant-voltage phase drops
56 below this value (in mA).
59 $ref: /schemas/types.yaml#/definitions/uint32
60 description: value of sensing resistor in milliohm.
62 ti,usb-charger-detection:
63 $ref: /schemas/types.yaml#/definitions/phandle
64 description: phandle to usb charger detection device (required for auto mode)
70 - ti,weak-battery-voltage
71 - ti,battery-regulation-voltage
73 - ti,termination-current
76 additionalProperties: false
85 compatible = "ti,bq24150a";
88 ti,current-limit = <100>;
89 ti,weak-battery-voltage = <3400>;
90 ti,battery-regulation-voltage = <4200>;
91 ti,charge-current = <650>;
92 ti,termination-current = <100>;
93 ti,resistor-sense = <68>;
95 ti,usb-charger-detection = <&isp1704>;