1648d3832SSebastian Reichel# SPDX-License-Identifier: GPL-2.0 2648d3832SSebastian Reichel# Copyright (C) 2021 Sebastian Reichel 3648d3832SSebastian Reichel%YAML 1.2 4648d3832SSebastian Reichel--- 51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/bq25890.yaml# 61ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 7648d3832SSebastian Reichel 89d69d47fSKrzysztof Kozlowskititle: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger 9648d3832SSebastian Reichel 10648d3832SSebastian Reichelmaintainers: 11648d3832SSebastian Reichel - Sebastian Reichel <sre@kernel.org> 12648d3832SSebastian Reichel 13648d3832SSebastian ReichelallOf: 14648d3832SSebastian Reichel - $ref: power-supply.yaml# 15648d3832SSebastian Reichel 16648d3832SSebastian Reichelproperties: 17648d3832SSebastian Reichel compatible: 1809b327c9SKrzysztof Kozlowski oneOf: 1909b327c9SKrzysztof Kozlowski - enum: 20648d3832SSebastian Reichel - ti,bq25890 2109b327c9SKrzysztof Kozlowski - items: 2209b327c9SKrzysztof Kozlowski - enum: 23648d3832SSebastian Reichel - ti,bq25892 24648d3832SSebastian Reichel - ti,bq25895 25648d3832SSebastian Reichel - ti,bq25896 2609b327c9SKrzysztof Kozlowski - const: ti,bq25890 27648d3832SSebastian Reichel 28648d3832SSebastian Reichel reg: 29648d3832SSebastian Reichel maxItems: 1 30648d3832SSebastian Reichel 31648d3832SSebastian Reichel interrupts: 32648d3832SSebastian Reichel maxItems: 1 33648d3832SSebastian Reichel 34648d3832SSebastian Reichel ti,battery-regulation-voltage: 35648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 36648d3832SSebastian Reichel description: maximum charging voltage (in uV) 37648d3832SSebastian Reichel 38648d3832SSebastian Reichel ti,charge-current: 39648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 40648d3832SSebastian Reichel description: maximum charging current (in uA) 41648d3832SSebastian Reichel 42648d3832SSebastian Reichel ti,termination-current: 43648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 44648d3832SSebastian Reichel description: | 45648d3832SSebastian Reichel charge will be terminated when current in constant-voltage phase 46648d3832SSebastian Reichel drops below this value (in uA) 47648d3832SSebastian Reichel 48648d3832SSebastian Reichel ti,precharge-current: 49648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 50648d3832SSebastian Reichel description: maximum charge current during precharge phase (in uA) 51648d3832SSebastian Reichel 52648d3832SSebastian Reichel ti,minimum-sys-voltage: 53648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 54648d3832SSebastian Reichel description: | 55648d3832SSebastian Reichel when battery is charging and it is below minimum system voltage, 56648d3832SSebastian Reichel the system will be regulated above minimum-sys-voltage setting (in uV) 57648d3832SSebastian Reichel 58648d3832SSebastian Reichel ti,boost-voltage: 59648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 60648d3832SSebastian Reichel description: VBUS voltage level in boost mode (in uV) 61648d3832SSebastian Reichel 62648d3832SSebastian Reichel ti,boost-max-current: 63648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 64648d3832SSebastian Reichel description: maximum allowed current draw in boost mode (in uA) 65648d3832SSebastian Reichel 66648d3832SSebastian Reichel ti,boost-low-freq: 67648d3832SSebastian Reichel description: boost mode frequency will be 500kHz, otherwise 1.5MHz 68648d3832SSebastian Reichel type: boolean 69648d3832SSebastian Reichel 70648d3832SSebastian Reichel ti,use-ilim-pin: 71648d3832SSebastian Reichel description: | 72648d3832SSebastian Reichel ILIM resistor will be used and the input current will be the lower 73648d3832SSebastian Reichel between the resistor setting and the IINLIM register setting 74648d3832SSebastian Reichel type: boolean 75648d3832SSebastian Reichel 76648d3832SSebastian Reichel ti,thermal-regulation-threshold: 77648d3832SSebastian Reichel $ref: /schemas/types.yaml#/definitions/uint32 78648d3832SSebastian Reichel description: | 79648d3832SSebastian Reichel temperature above which the charge current is lowered, to avoid overheating 80648d3832SSebastian Reichel (in degrees Celsius). If omitted, the default setting will be used (120 degrees) 81648d3832SSebastian Reichel 82648d3832SSebastian Reichel ti,ibatcomp-micro-ohms: 83648d3832SSebastian Reichel description: value of a resistor in series with the battery (in Micro Ohms) 84648d3832SSebastian Reichel 85648d3832SSebastian Reichel ti,ibatcomp-clamp-microvolt: 86648d3832SSebastian Reichel description: max. charging voltage adjustment due to expected voltage drop on in-series resistor 87648d3832SSebastian Reichel 88648d3832SSebastian Reichelrequired: 89648d3832SSebastian Reichel - compatible 90648d3832SSebastian Reichel - reg 91648d3832SSebastian Reichel - interrupts 92648d3832SSebastian Reichel - ti,battery-regulation-voltage 93648d3832SSebastian Reichel - ti,charge-current 94648d3832SSebastian Reichel - ti,termination-current 95648d3832SSebastian Reichel - ti,precharge-current 96648d3832SSebastian Reichel - ti,minimum-sys-voltage 97648d3832SSebastian Reichel - ti,boost-voltage 98648d3832SSebastian Reichel - ti,boost-max-current 99648d3832SSebastian Reichel 1008c9e038aSKrzysztof KozlowskiunevaluatedProperties: false 101648d3832SSebastian Reichel 102648d3832SSebastian Reichelexamples: 103648d3832SSebastian Reichel - | 104648d3832SSebastian Reichel #include <dt-bindings/interrupt-controller/irq.h> 105*20a72af1SRob Herring i2c { 106648d3832SSebastian Reichel #address-cells = <1>; 107648d3832SSebastian Reichel #size-cells = <0>; 108648d3832SSebastian Reichel 109648d3832SSebastian Reichel charger@6a { 110648d3832SSebastian Reichel compatible = "ti,bq25890"; 111648d3832SSebastian Reichel reg = <0x6a>; 112648d3832SSebastian Reichel 113648d3832SSebastian Reichel interrupt-parent = <&gpio1>; 114648d3832SSebastian Reichel interrupts = <16 IRQ_TYPE_EDGE_FALLING>; 115648d3832SSebastian Reichel 116648d3832SSebastian Reichel ti,battery-regulation-voltage = <4200000>; 117648d3832SSebastian Reichel ti,charge-current = <1000000>; 118648d3832SSebastian Reichel ti,termination-current = <50000>; 119648d3832SSebastian Reichel ti,precharge-current = <128000>; 120648d3832SSebastian Reichel ti,minimum-sys-voltage = <3600000>; 121648d3832SSebastian Reichel ti,boost-voltage = <5000000>; 122648d3832SSebastian Reichel ti,boost-max-current = <1000000>; 123648d3832SSebastian Reichel 124648d3832SSebastian Reichel ti,use-ilim-pin; 125648d3832SSebastian Reichel ti,thermal-regulation-threshold = <120>; 126648d3832SSebastian Reichel }; 127648d3832SSebastian Reichel }; 128