19c05cfafSSebastian Reichel# SPDX-License-Identifier: GPL-2.0 29c05cfafSSebastian Reichel# Copyright (C) 2021 Sebastian Reichel 39c05cfafSSebastian Reichel%YAML 1.2 49c05cfafSSebastian Reichel--- 51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/bq2415x.yaml# 61ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 79c05cfafSSebastian Reichel 89d69d47fSKrzysztof Kozlowskititle: TI bq2415x Li-Ion Charger 99c05cfafSSebastian Reichel 109c05cfafSSebastian Reichelmaintainers: 119c05cfafSSebastian Reichel - Sebastian Reichel <sre@kernel.org> 129c05cfafSSebastian Reichel 139c05cfafSSebastian ReichelallOf: 149c05cfafSSebastian Reichel - $ref: power-supply.yaml# 159c05cfafSSebastian Reichel 169c05cfafSSebastian Reichelproperties: 179c05cfafSSebastian Reichel compatible: 189c05cfafSSebastian Reichel enum: 199c05cfafSSebastian Reichel - ti,bq24150 209c05cfafSSebastian Reichel - ti,bq24150a 219c05cfafSSebastian Reichel - ti,bq24151 229c05cfafSSebastian Reichel - ti,bq24151a 239c05cfafSSebastian Reichel - ti,bq24152 249c05cfafSSebastian Reichel - ti,bq24153 259c05cfafSSebastian Reichel - ti,bq24153a 269c05cfafSSebastian Reichel - ti,bq24155 279c05cfafSSebastian Reichel - ti,bq24156 289c05cfafSSebastian Reichel - ti,bq24156a 299c05cfafSSebastian Reichel - ti,bq24158 309c05cfafSSebastian Reichel 319c05cfafSSebastian Reichel reg: 329c05cfafSSebastian Reichel maxItems: 1 339c05cfafSSebastian Reichel 349c05cfafSSebastian Reichel ti,current-limit: 359c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 369c05cfafSSebastian Reichel description: initial maximum current charger can pull from power supply in mA. 379c05cfafSSebastian Reichel 389c05cfafSSebastian Reichel ti,weak-battery-voltage: 399c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 409c05cfafSSebastian Reichel description: | 419c05cfafSSebastian Reichel weak battery voltage threshold in mV. 429c05cfafSSebastian Reichel The chip will use slow precharge if battery voltage is below this value. 439c05cfafSSebastian Reichel 449c05cfafSSebastian Reichel ti,battery-regulation-voltage: 459c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 469c05cfafSSebastian Reichel description: maximum charging voltage in mV. 479c05cfafSSebastian Reichel 489c05cfafSSebastian Reichel ti,charge-current: 499c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 509c05cfafSSebastian Reichel description: maximum charging current in mA. 519c05cfafSSebastian Reichel 529c05cfafSSebastian Reichel ti,termination-current: 539c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 549c05cfafSSebastian Reichel description: | 559c05cfafSSebastian Reichel charge will be terminated when current in constant-voltage phase drops 569c05cfafSSebastian Reichel below this value (in mA). 579c05cfafSSebastian Reichel 589c05cfafSSebastian Reichel ti,resistor-sense: 599c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 609c05cfafSSebastian Reichel description: value of sensing resistor in milliohm. 619c05cfafSSebastian Reichel 629c05cfafSSebastian Reichel ti,usb-charger-detection: 639c05cfafSSebastian Reichel $ref: /schemas/types.yaml#/definitions/phandle 649c05cfafSSebastian Reichel description: phandle to usb charger detection device (required for auto mode) 659c05cfafSSebastian Reichel 669c05cfafSSebastian Reichelrequired: 679c05cfafSSebastian Reichel - compatible 689c05cfafSSebastian Reichel - reg 699c05cfafSSebastian Reichel - ti,current-limit 709c05cfafSSebastian Reichel - ti,weak-battery-voltage 719c05cfafSSebastian Reichel - ti,battery-regulation-voltage 729c05cfafSSebastian Reichel - ti,charge-current 739c05cfafSSebastian Reichel - ti,termination-current 749c05cfafSSebastian Reichel - ti,resistor-sense 759c05cfafSSebastian Reichel 769c05cfafSSebastian ReicheladditionalProperties: false 779c05cfafSSebastian Reichel 789c05cfafSSebastian Reichelexamples: 799c05cfafSSebastian Reichel - | 80*20a72af1SRob Herring i2c { 819c05cfafSSebastian Reichel #address-cells = <1>; 829c05cfafSSebastian Reichel #size-cells = <0>; 839c05cfafSSebastian Reichel 849c05cfafSSebastian Reichel charger@6b { 859c05cfafSSebastian Reichel compatible = "ti,bq24150a"; 869c05cfafSSebastian Reichel reg = <0x6b>; 879c05cfafSSebastian Reichel 889c05cfafSSebastian Reichel ti,current-limit = <100>; 899c05cfafSSebastian Reichel ti,weak-battery-voltage = <3400>; 909c05cfafSSebastian Reichel ti,battery-regulation-voltage = <4200>; 919c05cfafSSebastian Reichel ti,charge-current = <650>; 929c05cfafSSebastian Reichel ti,termination-current = <100>; 939c05cfafSSebastian Reichel ti,resistor-sense = <68>; 949c05cfafSSebastian Reichel 959c05cfafSSebastian Reichel ti,usb-charger-detection = <&isp1704>; 969c05cfafSSebastian Reichel }; 979c05cfafSSebastian Reichel }; 98