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