brintos

brintos / linux-shallow public Read only

0
0
Text · 2.3 KiB · 1382234 Raw
98 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/bq2415x.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: TI bq2415x Li-Ion Charger9 10maintainers:11  - Sebastian Reichel <sre@kernel.org>12 13allOf:14  - $ref: power-supply.yaml#15 16properties:17  compatible:18    enum:19      - ti,bq2415020      - ti,bq24150a21      - ti,bq2415122      - ti,bq24151a23      - ti,bq2415224      - ti,bq2415325      - ti,bq24153a26      - ti,bq2415527      - ti,bq2415628      - ti,bq24156a29      - ti,bq2415830 31  reg:32    maxItems: 133 34  ti,current-limit:35    $ref: /schemas/types.yaml#/definitions/uint3236    description: initial maximum current charger can pull from power supply in mA.37 38  ti,weak-battery-voltage:39    $ref: /schemas/types.yaml#/definitions/uint3240    description: |41      weak battery voltage threshold in mV.42      The chip will use slow precharge if battery voltage is below this value.43 44  ti,battery-regulation-voltage:45    $ref: /schemas/types.yaml#/definitions/uint3246    description: maximum charging voltage in mV.47 48  ti,charge-current:49    $ref: /schemas/types.yaml#/definitions/uint3250    description: maximum charging current in mA.51 52  ti,termination-current:53    $ref: /schemas/types.yaml#/definitions/uint3254    description: |55      charge will be terminated when current in constant-voltage phase drops56      below this value (in mA).57 58  ti,resistor-sense:59    $ref: /schemas/types.yaml#/definitions/uint3260    description: value of sensing resistor in milliohm.61 62  ti,usb-charger-detection:63    $ref: /schemas/types.yaml#/definitions/phandle64    description: phandle to usb charger detection device (required for auto mode)65 66required:67  - compatible68  - reg69  - ti,current-limit70  - ti,weak-battery-voltage71  - ti,battery-regulation-voltage72  - ti,charge-current73  - ti,termination-current74  - ti,resistor-sense75 76additionalProperties: false77 78examples:79  - |80    i2c {81      #address-cells = <1>;82      #size-cells = <0>;83 84      charger@6b {85        compatible = "ti,bq24150a";86        reg = <0x6b>;87 88        ti,current-limit = <100>;89        ti,weak-battery-voltage = <3400>;90        ti,battery-regulation-voltage = <4200>;91        ti,charge-current = <650>;92        ti,termination-current = <100>;93        ti,resistor-sense = <68>;94 95        ti,usb-charger-detection = <&isp1704>;96      };97    };98