12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 22eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel 32eb4d8dcSEmmanuel Vadot%YAML 1.2 42eb4d8dcSEmmanuel Vadot--- 5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/bq2415x.yaml# 6b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 72eb4d8dcSEmmanuel Vadot 8*8bab661aSEmmanuel Vadottitle: TI bq2415x Li-Ion Charger 92eb4d8dcSEmmanuel Vadot 102eb4d8dcSEmmanuel Vadotmaintainers: 112eb4d8dcSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel VadotallOf: 142eb4d8dcSEmmanuel Vadot - $ref: power-supply.yaml# 152eb4d8dcSEmmanuel Vadot 162eb4d8dcSEmmanuel Vadotproperties: 172eb4d8dcSEmmanuel Vadot compatible: 182eb4d8dcSEmmanuel Vadot enum: 192eb4d8dcSEmmanuel Vadot - ti,bq24150 202eb4d8dcSEmmanuel Vadot - ti,bq24150a 212eb4d8dcSEmmanuel Vadot - ti,bq24151 222eb4d8dcSEmmanuel Vadot - ti,bq24151a 232eb4d8dcSEmmanuel Vadot - ti,bq24152 242eb4d8dcSEmmanuel Vadot - ti,bq24153 252eb4d8dcSEmmanuel Vadot - ti,bq24153a 262eb4d8dcSEmmanuel Vadot - ti,bq24155 272eb4d8dcSEmmanuel Vadot - ti,bq24156 282eb4d8dcSEmmanuel Vadot - ti,bq24156a 292eb4d8dcSEmmanuel Vadot - ti,bq24158 302eb4d8dcSEmmanuel Vadot 312eb4d8dcSEmmanuel Vadot reg: 322eb4d8dcSEmmanuel Vadot maxItems: 1 332eb4d8dcSEmmanuel Vadot 342eb4d8dcSEmmanuel Vadot ti,current-limit: 352eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 362eb4d8dcSEmmanuel Vadot description: initial maximum current charger can pull from power supply in mA. 372eb4d8dcSEmmanuel Vadot 382eb4d8dcSEmmanuel Vadot ti,weak-battery-voltage: 392eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 402eb4d8dcSEmmanuel Vadot description: | 412eb4d8dcSEmmanuel Vadot weak battery voltage threshold in mV. 422eb4d8dcSEmmanuel Vadot The chip will use slow precharge if battery voltage is below this value. 432eb4d8dcSEmmanuel Vadot 442eb4d8dcSEmmanuel Vadot ti,battery-regulation-voltage: 452eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 462eb4d8dcSEmmanuel Vadot description: maximum charging voltage in mV. 472eb4d8dcSEmmanuel Vadot 482eb4d8dcSEmmanuel Vadot ti,charge-current: 492eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 502eb4d8dcSEmmanuel Vadot description: maximum charging current in mA. 512eb4d8dcSEmmanuel Vadot 522eb4d8dcSEmmanuel Vadot ti,termination-current: 532eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 542eb4d8dcSEmmanuel Vadot description: | 552eb4d8dcSEmmanuel Vadot charge will be terminated when current in constant-voltage phase drops 562eb4d8dcSEmmanuel Vadot below this value (in mA). 572eb4d8dcSEmmanuel Vadot 582eb4d8dcSEmmanuel Vadot ti,resistor-sense: 592eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 602eb4d8dcSEmmanuel Vadot description: value of sensing resistor in milliohm. 612eb4d8dcSEmmanuel Vadot 622eb4d8dcSEmmanuel Vadot ti,usb-charger-detection: 632eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 642eb4d8dcSEmmanuel Vadot description: phandle to usb charger detection device (required for auto mode) 652eb4d8dcSEmmanuel Vadot 662eb4d8dcSEmmanuel Vadotrequired: 672eb4d8dcSEmmanuel Vadot - compatible 682eb4d8dcSEmmanuel Vadot - reg 692eb4d8dcSEmmanuel Vadot - ti,current-limit 702eb4d8dcSEmmanuel Vadot - ti,weak-battery-voltage 712eb4d8dcSEmmanuel Vadot - ti,battery-regulation-voltage 722eb4d8dcSEmmanuel Vadot - ti,charge-current 732eb4d8dcSEmmanuel Vadot - ti,termination-current 742eb4d8dcSEmmanuel Vadot - ti,resistor-sense 752eb4d8dcSEmmanuel Vadot 762eb4d8dcSEmmanuel VadotadditionalProperties: false 772eb4d8dcSEmmanuel Vadot 782eb4d8dcSEmmanuel Vadotexamples: 792eb4d8dcSEmmanuel Vadot - | 802eb4d8dcSEmmanuel Vadot i2c0 { 812eb4d8dcSEmmanuel Vadot #address-cells = <1>; 822eb4d8dcSEmmanuel Vadot #size-cells = <0>; 832eb4d8dcSEmmanuel Vadot 842eb4d8dcSEmmanuel Vadot charger@6b { 852eb4d8dcSEmmanuel Vadot compatible = "ti,bq24150a"; 862eb4d8dcSEmmanuel Vadot reg = <0x6b>; 872eb4d8dcSEmmanuel Vadot 882eb4d8dcSEmmanuel Vadot ti,current-limit = <100>; 892eb4d8dcSEmmanuel Vadot ti,weak-battery-voltage = <3400>; 902eb4d8dcSEmmanuel Vadot ti,battery-regulation-voltage = <4200>; 912eb4d8dcSEmmanuel Vadot ti,charge-current = <650>; 922eb4d8dcSEmmanuel Vadot ti,termination-current = <100>; 932eb4d8dcSEmmanuel Vadot ti,resistor-sense = <68>; 942eb4d8dcSEmmanuel Vadot 952eb4d8dcSEmmanuel Vadot ti,usb-charger-detection = <&isp1704>; 962eb4d8dcSEmmanuel Vadot }; 972eb4d8dcSEmmanuel Vadot }; 98