xref: /linux/Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
126fe7d1dSMike Looijmans# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
226fe7d1dSMike Looijmans# Copyright (C) 2020 Topic Embedded Products
326fe7d1dSMike Looijmans%YAML 1.2
426fe7d1dSMike Looijmans---
51ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/ltc4162-l.yaml#
61ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
726fe7d1dSMike Looijmans
826fe7d1dSMike Looijmanstitle: Linear Technology (Analog Devices) LTC4162-L Charger
926fe7d1dSMike Looijmans
1026fe7d1dSMike Looijmansmaintainers:
1126fe7d1dSMike Looijmans  - Mike Looijmans <mike.looijmans@topic.nl>
1226fe7d1dSMike Looijmans
1326fe7d1dSMike Looijmansdescription: |
1426fe7d1dSMike Looijmans  The LTC ® 4162-L is an advanced monolithic synchronous step-down switching
1526fe7d1dSMike Looijmans  battery charger and PowerPath (TM) manager that seamlessly manages power
1626fe7d1dSMike Looijmans  distribution between input sources such as wall adapters, backplanes, solar
1726fe7d1dSMike Looijmans  panels, etc., and a rechargeable Lithium-Ion/Polymer battery.
1826fe7d1dSMike Looijmans
1926fe7d1dSMike Looijmans  Specifications about the charger can be found at:
2026fe7d1dSMike Looijmans    https://www.analog.com/en/products/ltc4162-s.html
2126fe7d1dSMike Looijmans
2226fe7d1dSMike Looijmansproperties:
2326fe7d1dSMike Looijmans  compatible:
2426fe7d1dSMike Looijmans    enum:
2526fe7d1dSMike Looijmans      - lltc,ltc4162-l
2626fe7d1dSMike Looijmans
2726fe7d1dSMike Looijmans  reg:
2826fe7d1dSMike Looijmans    maxItems: 1
2926fe7d1dSMike Looijmans    description: I2C address of the charger.
3026fe7d1dSMike Looijmans
3126fe7d1dSMike Looijmans  lltc,rsnsb-micro-ohms:
3226fe7d1dSMike Looijmans    description: Battery sense resistor in microohm.
3326fe7d1dSMike Looijmans    minimum: 1000
3426fe7d1dSMike Looijmans
3526fe7d1dSMike Looijmans  lltc,rsnsi-micro-ohms:
3626fe7d1dSMike Looijmans    description: Input current sense resistor in microohm.
3726fe7d1dSMike Looijmans    minimum: 1000
3826fe7d1dSMike Looijmans
3926fe7d1dSMike Looijmans  lltc,cell-count:
4026fe7d1dSMike Looijmans    $ref: /schemas/types.yaml#/definitions/uint32
4126fe7d1dSMike Looijmans    description: |
4226fe7d1dSMike Looijmans      Number of battery cells. If not provided, will be obtained from the chip
4326fe7d1dSMike Looijmans      once the external power is applied. Omit this when the number of cells
4426fe7d1dSMike Looijmans      is somewhat dynamic. Without it, several measurements will return 0 until
4526fe7d1dSMike Looijmans      the charger is connected to an external supply.
4626fe7d1dSMike Looijmans
4726fe7d1dSMike Looijmansrequired:
4826fe7d1dSMike Looijmans  - compatible
4926fe7d1dSMike Looijmans  - reg
5026fe7d1dSMike Looijmans  - lltc,rsnsb-micro-ohms
5126fe7d1dSMike Looijmans  - lltc,rsnsi-micro-ohms
5226fe7d1dSMike Looijmans
5326fe7d1dSMike LooijmansadditionalProperties: false
5426fe7d1dSMike Looijmans
5526fe7d1dSMike Looijmansexamples:
5626fe7d1dSMike Looijmans  - |
57*20a72af1SRob Herring    i2c {
5826fe7d1dSMike Looijmans      #address-cells = <1>;
5926fe7d1dSMike Looijmans      #size-cells = <0>;
6026fe7d1dSMike Looijmans      charger: battery-charger@68 {
6126fe7d1dSMike Looijmans              compatible = "lltc,ltc4162-l";
6226fe7d1dSMike Looijmans              reg = <0x68>;
6326fe7d1dSMike Looijmans              lltc,rsnsb-micro-ohms = <10000>;
6426fe7d1dSMike Looijmans              lltc,rsnsi-micro-ohms = <16000>;
6526fe7d1dSMike Looijmans              lltc,cell-count = <2>;
6626fe7d1dSMike Looijmans      };
6726fe7d1dSMike Looijmans    };
68