xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/bq25890.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
22eb4d8dcSEmmanuel Vadot# Copyright (C) 2021 Sebastian Reichel
32eb4d8dcSEmmanuel Vadot%YAML 1.2
42eb4d8dcSEmmanuel Vadot---
5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/bq25890.yaml#
6b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
72eb4d8dcSEmmanuel Vadot
88bab661aSEmmanuel Vadottitle: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger
92eb4d8dcSEmmanuel Vadot
102eb4d8dcSEmmanuel Vadotmaintainers:
112eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
122eb4d8dcSEmmanuel Vadot
132eb4d8dcSEmmanuel VadotallOf:
142eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
152eb4d8dcSEmmanuel Vadot
162eb4d8dcSEmmanuel Vadotproperties:
172eb4d8dcSEmmanuel Vadot  compatible:
188bab661aSEmmanuel Vadot    oneOf:
198bab661aSEmmanuel Vadot      - enum:
202eb4d8dcSEmmanuel Vadot          - ti,bq25890
218bab661aSEmmanuel Vadot      - items:
228bab661aSEmmanuel Vadot          - enum:
232eb4d8dcSEmmanuel Vadot              - ti,bq25892
242eb4d8dcSEmmanuel Vadot              - ti,bq25895
252eb4d8dcSEmmanuel Vadot              - ti,bq25896
268bab661aSEmmanuel Vadot          - const: ti,bq25890
272eb4d8dcSEmmanuel Vadot
282eb4d8dcSEmmanuel Vadot  reg:
292eb4d8dcSEmmanuel Vadot    maxItems: 1
302eb4d8dcSEmmanuel Vadot
312eb4d8dcSEmmanuel Vadot  interrupts:
322eb4d8dcSEmmanuel Vadot    maxItems: 1
332eb4d8dcSEmmanuel Vadot
342eb4d8dcSEmmanuel Vadot  ti,battery-regulation-voltage:
352eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
362eb4d8dcSEmmanuel Vadot    description: maximum charging voltage (in uV)
372eb4d8dcSEmmanuel Vadot
382eb4d8dcSEmmanuel Vadot  ti,charge-current:
392eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
402eb4d8dcSEmmanuel Vadot    description: maximum charging current (in uA)
412eb4d8dcSEmmanuel Vadot
422eb4d8dcSEmmanuel Vadot  ti,termination-current:
432eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
442eb4d8dcSEmmanuel Vadot    description: |
452eb4d8dcSEmmanuel Vadot      charge will be terminated when current in constant-voltage phase
462eb4d8dcSEmmanuel Vadot      drops below this value (in uA)
472eb4d8dcSEmmanuel Vadot
482eb4d8dcSEmmanuel Vadot  ti,precharge-current:
492eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
502eb4d8dcSEmmanuel Vadot    description: maximum charge current during precharge phase (in uA)
512eb4d8dcSEmmanuel Vadot
522eb4d8dcSEmmanuel Vadot  ti,minimum-sys-voltage:
532eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
542eb4d8dcSEmmanuel Vadot    description: |
552eb4d8dcSEmmanuel Vadot      when battery is charging and it is below minimum system voltage,
562eb4d8dcSEmmanuel Vadot      the system will be regulated above minimum-sys-voltage setting (in uV)
572eb4d8dcSEmmanuel Vadot
582eb4d8dcSEmmanuel Vadot  ti,boost-voltage:
592eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
602eb4d8dcSEmmanuel Vadot    description: VBUS voltage level in boost mode (in uV)
612eb4d8dcSEmmanuel Vadot
622eb4d8dcSEmmanuel Vadot  ti,boost-max-current:
632eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
642eb4d8dcSEmmanuel Vadot    description: maximum allowed current draw in boost mode (in uA)
652eb4d8dcSEmmanuel Vadot
662eb4d8dcSEmmanuel Vadot  ti,boost-low-freq:
672eb4d8dcSEmmanuel Vadot    description: boost mode frequency will be 500kHz, otherwise 1.5MHz
682eb4d8dcSEmmanuel Vadot    type: boolean
692eb4d8dcSEmmanuel Vadot
702eb4d8dcSEmmanuel Vadot  ti,use-ilim-pin:
712eb4d8dcSEmmanuel Vadot    description: |
722eb4d8dcSEmmanuel Vadot      ILIM resistor will be used and the input current will be the lower
732eb4d8dcSEmmanuel Vadot      between the resistor setting and the IINLIM register setting
742eb4d8dcSEmmanuel Vadot    type: boolean
752eb4d8dcSEmmanuel Vadot
762eb4d8dcSEmmanuel Vadot  ti,thermal-regulation-threshold:
772eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
782eb4d8dcSEmmanuel Vadot    description: |
792eb4d8dcSEmmanuel Vadot      temperature above which the charge current is lowered, to avoid overheating
802eb4d8dcSEmmanuel Vadot      (in degrees Celsius). If omitted, the default setting will be used (120 degrees)
812eb4d8dcSEmmanuel Vadot
822eb4d8dcSEmmanuel Vadot  ti,ibatcomp-micro-ohms:
832eb4d8dcSEmmanuel Vadot    description: value of a resistor in series with the battery (in Micro Ohms)
842eb4d8dcSEmmanuel Vadot
852eb4d8dcSEmmanuel Vadot  ti,ibatcomp-clamp-microvolt:
862eb4d8dcSEmmanuel Vadot    description: max. charging voltage adjustment due to expected voltage drop on in-series resistor
872eb4d8dcSEmmanuel Vadot
882eb4d8dcSEmmanuel Vadotrequired:
892eb4d8dcSEmmanuel Vadot  - compatible
902eb4d8dcSEmmanuel Vadot  - reg
912eb4d8dcSEmmanuel Vadot  - interrupts
922eb4d8dcSEmmanuel Vadot  - ti,battery-regulation-voltage
932eb4d8dcSEmmanuel Vadot  - ti,charge-current
942eb4d8dcSEmmanuel Vadot  - ti,termination-current
952eb4d8dcSEmmanuel Vadot  - ti,precharge-current
962eb4d8dcSEmmanuel Vadot  - ti,minimum-sys-voltage
972eb4d8dcSEmmanuel Vadot  - ti,boost-voltage
982eb4d8dcSEmmanuel Vadot  - ti,boost-max-current
992eb4d8dcSEmmanuel Vadot
1008bab661aSEmmanuel VadotunevaluatedProperties: false
1012eb4d8dcSEmmanuel Vadot
1022eb4d8dcSEmmanuel Vadotexamples:
1032eb4d8dcSEmmanuel Vadot  - |
1042eb4d8dcSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
105*fac71e4eSEmmanuel Vadot    i2c {
1062eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
1072eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
1082eb4d8dcSEmmanuel Vadot
1092eb4d8dcSEmmanuel Vadot      charger@6a {
1102eb4d8dcSEmmanuel Vadot        compatible = "ti,bq25890";
1112eb4d8dcSEmmanuel Vadot        reg = <0x6a>;
1122eb4d8dcSEmmanuel Vadot
1132eb4d8dcSEmmanuel Vadot        interrupt-parent = <&gpio1>;
1142eb4d8dcSEmmanuel Vadot        interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
1152eb4d8dcSEmmanuel Vadot
1162eb4d8dcSEmmanuel Vadot        ti,battery-regulation-voltage = <4200000>;
1172eb4d8dcSEmmanuel Vadot        ti,charge-current = <1000000>;
1182eb4d8dcSEmmanuel Vadot        ti,termination-current = <50000>;
1192eb4d8dcSEmmanuel Vadot        ti,precharge-current = <128000>;
1202eb4d8dcSEmmanuel Vadot        ti,minimum-sys-voltage = <3600000>;
1212eb4d8dcSEmmanuel Vadot        ti,boost-voltage = <5000000>;
1222eb4d8dcSEmmanuel Vadot        ti,boost-max-current = <1000000>;
1232eb4d8dcSEmmanuel Vadot
1242eb4d8dcSEmmanuel Vadot        ti,use-ilim-pin;
1252eb4d8dcSEmmanuel Vadot        ti,thermal-regulation-threshold = <120>;
1262eb4d8dcSEmmanuel Vadot      };
1272eb4d8dcSEmmanuel Vadot    };
128