brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · a76afe3 Raw
128 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (C) 2020 Texas Instruments Incorporated3%YAML 1.24---5$id: http://devicetree.org/schemas/power/supply/bq256xx.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: TI bq256xx Switch Mode Buck Charger9 10maintainers:11  - Andrew Davis <afd@ti.com>12 13description: |14  The bq256xx devices are a family of highly-integrated battery charge15  management and system power management ICs for single cell Li-ion and Li-16  polymer batteries.17 18  Datasheets:19    - https://www.ti.com/lit/ds/symlink/bq25600.pdf20    - https://www.ti.com/lit/ds/symlink/bq25601.pdf21    - https://www.ti.com/lit/ds/symlink/bq25600d.pdf22    - https://www.ti.com/lit/ds/symlink/bq25601d.pdf23    - https://www.ti.com/lit/ds/symlink/bq25611d.pdf24    - https://www.ti.com/lit/ds/symlink/bq25618.pdf25    - https://www.ti.com/lit/ds/symlink/bq25619.pdf26 27properties:28  compatible:29    enum:30      - ti,bq2560031      - ti,bq2560132      - ti,bq25600d33      - ti,bq25601d34      - ti,bq25611d35      - ti,bq2561836      - ti,bq2561937 38  reg:39    maxItems: 140 41  ti,watchdog-timeout-ms:42    default: 043    description: |44      Watchdog timer in ms. 0 (default) disables the watchdog45    minimum: 046    maximum: 16000047    enum: [ 0, 40000, 80000, 160000]48 49  input-voltage-limit-microvolt:50    description: |51       Minimum input voltage limit in µV with a 100000 µV step52    minimum: 390000053    maximum: 540000054 55  input-current-limit-microamp:56    description: |57       Maximum input current limit in µA with a 100000 µA step58    minimum: 10000059    maximum: 320000060 61  monitored-battery:62    $ref: /schemas/types.yaml#/definitions/phandle63    description: phandle to the battery node being monitored64 65  interrupts:66    maxItems: 167    description: |68      Interrupt sends an active low, 256 μs pulse to host to report the charger69      device status and faults.70 71  ti,no-thermistor:72    type: boolean73    description: Indicates that no thermistor is connected to the TS pin74 75required:76  - compatible77  - reg78  - monitored-battery79 80allOf:81  - if:82      properties:83        compatible:84          contains:85            enum:86              - ti,bq2560087              - ti,bq2560188              - ti,bq25600d89              - ti,bq25601d90    then:91      properties:92        ti,no-thermistor: false93 94additionalProperties: false95 96examples:97  - |98    bat: battery {99      compatible = "simple-battery";100      constant-charge-current-max-microamp = <2040000>;101      constant-charge-voltage-max-microvolt = <4352000>;102      precharge-current-microamp = <180000>;103      charge-term-current-microamp = <180000>;104    };105    #include <dt-bindings/gpio/gpio.h>106    #include <dt-bindings/interrupt-controller/irq.h>107    i2c {108 109      clock-frequency = <400000>;110 111      #address-cells = <1>;112      #size-cells = <0>;113 114      charger@6b {115        compatible = "ti,bq25601";116        reg = <0x6b>;117        monitored-battery = <&bat>;118 119        interrupt-parent = <&gpio1>;120        interrupts = <16 IRQ_TYPE_EDGE_FALLING>;121        ti,watchdog-timeout-ms = <40000>;122 123        input-voltage-limit-microvolt = <4500000>;124        input-current-limit-microamp = <2400000>;125       };126    };127...128