16d3dd362SDan Murphy# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 26d3dd362SDan Murphy# Copyright (C) 2020 Texas Instruments Incorporated 36d3dd362SDan Murphy%YAML 1.2 46d3dd362SDan Murphy--- 51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/bq25980.yaml# 61ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml# 76d3dd362SDan Murphy 86d3dd362SDan Murphytitle: TI BQ25980 Flash Charger 96d3dd362SDan Murphy 106d3dd362SDan Murphymaintainers: 1107d1caa4SKrzysztof Kozlowski - Andrew Davis <afd@ti.com> 126d3dd362SDan Murphy 136d3dd362SDan Murphydescription: | 146d3dd362SDan Murphy The BQ25980, BQ25975, and BQ25960 are a series of flash chargers intended 156d3dd362SDan Murphy for use in high-power density portable electronics. These inductorless 166d3dd362SDan Murphy switching chargers can provide over 97% efficiency by making use of the 176d3dd362SDan Murphy switched capacitor architecture. 186d3dd362SDan Murphy 196d3dd362SDan MurphyallOf: 206d3dd362SDan Murphy - $ref: power-supply.yaml# 216d3dd362SDan Murphy 226d3dd362SDan Murphyproperties: 236d3dd362SDan Murphy compatible: 246d3dd362SDan Murphy enum: 256d3dd362SDan Murphy - ti,bq25980 266d3dd362SDan Murphy - ti,bq25975 276d3dd362SDan Murphy - ti,bq25960 286d3dd362SDan Murphy 296d3dd362SDan Murphy reg: 306d3dd362SDan Murphy maxItems: 1 316d3dd362SDan Murphy 326d3dd362SDan Murphy ti,watchdog-timeout-ms: 336d3dd362SDan Murphy description: | 346d3dd362SDan Murphy Watchdog timer in milli seconds. 0 disables the watchdog. 356d3dd362SDan Murphy default: 0 366d3dd362SDan Murphy minimum: 0 376d3dd362SDan Murphy maximum: 300000 386d3dd362SDan Murphy enum: [ 0, 5000, 10000, 50000, 300000] 396d3dd362SDan Murphy 406d3dd362SDan Murphy ti,sc-ovp-limit-microvolt: 416d3dd362SDan Murphy description: | 426d3dd362SDan Murphy Minimum input voltage limit in micro volts with a when the charger is in 436d3dd362SDan Murphy switch cap mode. 100000 micro volt step. 446d3dd362SDan Murphy default: 17800000 456d3dd362SDan Murphy minimum: 14000000 466d3dd362SDan Murphy maximum: 22000000 476d3dd362SDan Murphy 486d3dd362SDan Murphy ti,sc-ocp-limit-microamp: 496d3dd362SDan Murphy description: | 506d3dd362SDan Murphy Maximum input current limit in micro amps with a 100000 micro amp step. 516d3dd362SDan Murphy minimum: 100000 526d3dd362SDan Murphy maximum: 3300000 536d3dd362SDan Murphy 546d3dd362SDan Murphy ti,bypass-ovp-limit-microvolt: 556d3dd362SDan Murphy description: | 566d3dd362SDan Murphy Minimum input voltage limit in micro volts with a when the charger is in 576d3dd362SDan Murphy switch cap mode. 50000 micro volt step. 586d3dd362SDan Murphy minimum: 7000000 596d3dd362SDan Murphy maximum: 12750000 606d3dd362SDan Murphy 616d3dd362SDan Murphy ti,bypass-ocp-limit-microamp: 626d3dd362SDan Murphy description: | 636d3dd362SDan Murphy Maximum input current limit in micro amps with a 100000 micro amp step. 646d3dd362SDan Murphy minimum: 100000 656d3dd362SDan Murphy maximum: 3300000 666d3dd362SDan Murphy 676d3dd362SDan Murphy ti,bypass-enable: 686d3dd362SDan Murphy type: boolean 696d3dd362SDan Murphy description: Enables bypass mode at boot time 706d3dd362SDan Murphy 716d3dd362SDan Murphy interrupts: 720499220dSRob Herring maxItems: 1 736d3dd362SDan Murphy description: | 746d3dd362SDan Murphy Indicates that the device state has changed. 756d3dd362SDan Murphy 766d3dd362SDan Murphy monitored-battery: 776d3dd362SDan Murphy $ref: /schemas/types.yaml#/definitions/phandle 786d3dd362SDan Murphy description: phandle to the battery node being monitored 796d3dd362SDan Murphy 806d3dd362SDan Murphyrequired: 816d3dd362SDan Murphy - compatible 826d3dd362SDan Murphy - reg 836d3dd362SDan Murphy - monitored-battery 846d3dd362SDan Murphy 856d3dd362SDan MurphyunevaluatedProperties: false 866d3dd362SDan Murphy 876d3dd362SDan Murphyexamples: 886d3dd362SDan Murphy - | 896d3dd362SDan Murphy bat: battery { 906d3dd362SDan Murphy compatible = "simple-battery"; 916d3dd362SDan Murphy constant-charge-current-max-microamp = <4000000>; 926d3dd362SDan Murphy constant-charge-voltage-max-microvolt = <8400000>; 936d3dd362SDan Murphy precharge-current-microamp = <160000>; 946d3dd362SDan Murphy charge-term-current-microamp = <160000>; 956d3dd362SDan Murphy }; 966d3dd362SDan Murphy #include <dt-bindings/gpio/gpio.h> 976d3dd362SDan Murphy #include <dt-bindings/interrupt-controller/irq.h> 98*20a72af1SRob Herring i2c { 996d3dd362SDan Murphy #address-cells = <1>; 1006d3dd362SDan Murphy #size-cells = <0>; 1016d3dd362SDan Murphy 1026d3dd362SDan Murphy bq25980: charger@65 { 1036d3dd362SDan Murphy compatible = "ti,bq25980"; 1046d3dd362SDan Murphy reg = <0x65>; 1056d3dd362SDan Murphy interrupt-parent = <&gpio1>; 1066d3dd362SDan Murphy interrupts = <16 IRQ_TYPE_EDGE_FALLING>; 107656eb419SThierry Reding ti,watchdog-timeout-ms = <0>; 1086d3dd362SDan Murphy ti,sc-ocp-limit-microamp = <2000000>; 1096d3dd362SDan Murphy ti,sc-ovp-limit-microvolt = <17800000>; 1106d3dd362SDan Murphy monitored-battery = <&bat>; 1116d3dd362SDan Murphy }; 1126d3dd362SDan Murphy }; 1136d3dd362SDan Murphy 1146d3dd362SDan Murphy... 115