18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci# Copyright (C) 2020 Texas Instruments Incorporated
38c2ecf20Sopenharmony_ci%YAML 1.2
48c2ecf20Sopenharmony_ci---
58c2ecf20Sopenharmony_ci$id: "http://devicetree.org/schemas/power/supply/bq25980.yaml#"
68c2ecf20Sopenharmony_ci$schema: "http://devicetree.org/meta-schemas/core.yaml#"
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_cititle: TI BQ25980 Flash Charger
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_cimaintainers:
118c2ecf20Sopenharmony_ci  - Dan Murphy <dmurphy@ti.com>
128c2ecf20Sopenharmony_ci  - Ricardo Rivera-Matos <r-rivera-matos@ti.com>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cidescription: |
158c2ecf20Sopenharmony_ci  The BQ25980, BQ25975, and BQ25960 are a series of flash chargers intended
168c2ecf20Sopenharmony_ci  for use in high-power density portable electronics. These inductorless
178c2ecf20Sopenharmony_ci  switching chargers can provide over 97% efficiency by making use of the
188c2ecf20Sopenharmony_ci  switched capacitor architecture.
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciallOf:
218c2ecf20Sopenharmony_ci  - $ref: power-supply.yaml#
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciproperties:
248c2ecf20Sopenharmony_ci  compatible:
258c2ecf20Sopenharmony_ci    enum:
268c2ecf20Sopenharmony_ci      - ti,bq25980
278c2ecf20Sopenharmony_ci      - ti,bq25975
288c2ecf20Sopenharmony_ci      - ti,bq25960
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci  reg:
318c2ecf20Sopenharmony_ci    maxItems: 1
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci  ti,watchdog-timeout-ms:
348c2ecf20Sopenharmony_ci    description: |
358c2ecf20Sopenharmony_ci      Watchdog timer in milli seconds. 0 disables the watchdog.
368c2ecf20Sopenharmony_ci    default: 0
378c2ecf20Sopenharmony_ci    minimum: 0
388c2ecf20Sopenharmony_ci    maximum: 300000
398c2ecf20Sopenharmony_ci    enum: [ 0, 5000, 10000, 50000, 300000]
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  ti,sc-ovp-limit-microvolt:
428c2ecf20Sopenharmony_ci    description: |
438c2ecf20Sopenharmony_ci      Minimum input voltage limit in micro volts with a when the charger is in
448c2ecf20Sopenharmony_ci      switch cap mode. 100000 micro volt step.
458c2ecf20Sopenharmony_ci    default: 17800000
468c2ecf20Sopenharmony_ci    minimum: 14000000
478c2ecf20Sopenharmony_ci    maximum: 22000000
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci  ti,sc-ocp-limit-microamp:
508c2ecf20Sopenharmony_ci    description: |
518c2ecf20Sopenharmony_ci      Maximum input current limit in micro amps with a 100000 micro amp step.
528c2ecf20Sopenharmony_ci    minimum: 100000
538c2ecf20Sopenharmony_ci    maximum: 3300000
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci  ti,bypass-ovp-limit-microvolt:
568c2ecf20Sopenharmony_ci    description: |
578c2ecf20Sopenharmony_ci      Minimum input voltage limit in micro volts with a when the charger is in
588c2ecf20Sopenharmony_ci      switch cap mode. 50000 micro volt step.
598c2ecf20Sopenharmony_ci    minimum: 7000000
608c2ecf20Sopenharmony_ci    maximum: 12750000
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci  ti,bypass-ocp-limit-microamp:
638c2ecf20Sopenharmony_ci    description: |
648c2ecf20Sopenharmony_ci      Maximum input current limit in micro amps with a 100000 micro amp step.
658c2ecf20Sopenharmony_ci    minimum: 100000
668c2ecf20Sopenharmony_ci    maximum: 3300000
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci  ti,bypass-enable:
698c2ecf20Sopenharmony_ci    type: boolean
708c2ecf20Sopenharmony_ci    description: Enables bypass mode at boot time
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci  interrupts:
738c2ecf20Sopenharmony_ci    description: |
748c2ecf20Sopenharmony_ci      Indicates that the device state has changed.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci  monitored-battery:
778c2ecf20Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/phandle
788c2ecf20Sopenharmony_ci    description: phandle to the battery node being monitored
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_cirequired:
818c2ecf20Sopenharmony_ci  - compatible
828c2ecf20Sopenharmony_ci  - reg
838c2ecf20Sopenharmony_ci  - monitored-battery
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciunevaluatedProperties: false
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ciexamples:
888c2ecf20Sopenharmony_ci  - |
898c2ecf20Sopenharmony_ci    bat: battery {
908c2ecf20Sopenharmony_ci      compatible = "simple-battery";
918c2ecf20Sopenharmony_ci      constant-charge-current-max-microamp = <4000000>;
928c2ecf20Sopenharmony_ci      constant-charge-voltage-max-microvolt = <8400000>;
938c2ecf20Sopenharmony_ci      precharge-current-microamp = <160000>;
948c2ecf20Sopenharmony_ci      charge-term-current-microamp = <160000>;
958c2ecf20Sopenharmony_ci    };
968c2ecf20Sopenharmony_ci    #include <dt-bindings/gpio/gpio.h>
978c2ecf20Sopenharmony_ci    #include <dt-bindings/interrupt-controller/irq.h>
988c2ecf20Sopenharmony_ci    i2c0 {
998c2ecf20Sopenharmony_ci      #address-cells = <1>;
1008c2ecf20Sopenharmony_ci      #size-cells = <0>;
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci      bq25980: charger@65 {
1038c2ecf20Sopenharmony_ci          compatible = "ti,bq25980";
1048c2ecf20Sopenharmony_ci          reg = <0x65>;
1058c2ecf20Sopenharmony_ci          interrupt-parent = <&gpio1>;
1068c2ecf20Sopenharmony_ci          interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
1078c2ecf20Sopenharmony_ci          ti,watchdog-timer = <0>;
1088c2ecf20Sopenharmony_ci          ti,sc-ocp-limit-microamp = <2000000>;
1098c2ecf20Sopenharmony_ci          ti,sc-ovp-limit-microvolt = <17800000>;
1108c2ecf20Sopenharmony_ci          monitored-battery = <&bat>;
1118c2ecf20Sopenharmony_ci      };
1128c2ecf20Sopenharmony_ci    };
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci...
115