brintos

brintos / linux-shallow public Read only

0
0
Text · 3.4 KiB · 0ad302a Raw
128 lines · yaml
1# SPDX-License-Identifier: GPL-2.02# Copyright (C) 2021 Sebastian Reichel3%YAML 1.24---5$id: http://devicetree.org/schemas/power/supply/bq25890.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Bq25890, bq25892, bq25895 and bq25896 Li-Ion Charger9 10maintainers:11  - Sebastian Reichel <sre@kernel.org>12 13allOf:14  - $ref: power-supply.yaml#15 16properties:17  compatible:18    oneOf:19      - enum:20          - ti,bq2589021      - items:22          - enum:23              - ti,bq2589224              - ti,bq2589525              - ti,bq2589626          - const: ti,bq2589027 28  reg:29    maxItems: 130 31  interrupts:32    maxItems: 133 34  ti,battery-regulation-voltage:35    $ref: /schemas/types.yaml#/definitions/uint3236    description: maximum charging voltage (in uV)37 38  ti,charge-current:39    $ref: /schemas/types.yaml#/definitions/uint3240    description: maximum charging current (in uA)41 42  ti,termination-current:43    $ref: /schemas/types.yaml#/definitions/uint3244    description: |45      charge will be terminated when current in constant-voltage phase46      drops below this value (in uA)47 48  ti,precharge-current:49    $ref: /schemas/types.yaml#/definitions/uint3250    description: maximum charge current during precharge phase (in uA)51 52  ti,minimum-sys-voltage:53    $ref: /schemas/types.yaml#/definitions/uint3254    description: |55      when battery is charging and it is below minimum system voltage,56      the system will be regulated above minimum-sys-voltage setting (in uV)57 58  ti,boost-voltage:59    $ref: /schemas/types.yaml#/definitions/uint3260    description: VBUS voltage level in boost mode (in uV)61 62  ti,boost-max-current:63    $ref: /schemas/types.yaml#/definitions/uint3264    description: maximum allowed current draw in boost mode (in uA)65 66  ti,boost-low-freq:67    description: boost mode frequency will be 500kHz, otherwise 1.5MHz68    type: boolean69 70  ti,use-ilim-pin:71    description: |72      ILIM resistor will be used and the input current will be the lower73      between the resistor setting and the IINLIM register setting74    type: boolean75 76  ti,thermal-regulation-threshold:77    $ref: /schemas/types.yaml#/definitions/uint3278    description: |79      temperature above which the charge current is lowered, to avoid overheating80      (in degrees Celsius). If omitted, the default setting will be used (120 degrees)81 82  ti,ibatcomp-micro-ohms:83    description: value of a resistor in series with the battery (in Micro Ohms)84 85  ti,ibatcomp-clamp-microvolt:86    description: max. charging voltage adjustment due to expected voltage drop on in-series resistor87 88required:89  - compatible90  - reg91  - interrupts92  - ti,battery-regulation-voltage93  - ti,charge-current94  - ti,termination-current95  - ti,precharge-current96  - ti,minimum-sys-voltage97  - ti,boost-voltage98  - ti,boost-max-current99 100unevaluatedProperties: false101 102examples:103  - |104    #include <dt-bindings/interrupt-controller/irq.h>105    i2c {106      #address-cells = <1>;107      #size-cells = <0>;108 109      charger@6a {110        compatible = "ti,bq25890";111        reg = <0x6a>;112 113        interrupt-parent = <&gpio1>;114        interrupts = <16 IRQ_TYPE_EDGE_FALLING>;115 116        ti,battery-regulation-voltage = <4200000>;117        ti,charge-current = <1000000>;118        ti,termination-current = <50000>;119        ti,precharge-current = <128000>;120        ti,minimum-sys-voltage = <3600000>;121        ti,boost-voltage = <5000000>;122        ti,boost-max-current = <1000000>;123 124        ti,use-ilim-pin;125        ti,thermal-regulation-threshold = <120>;126      };127    };128