xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/ltc4162-l.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot# Copyright (C) 2020 Topic Embedded Products
35def4c47SEmmanuel Vadot%YAML 1.2
45def4c47SEmmanuel Vadot---
5b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/ltc4162-l.yaml#
6b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75def4c47SEmmanuel Vadot
85def4c47SEmmanuel Vadottitle: Linear Technology (Analog Devices) LTC4162-L Charger
95def4c47SEmmanuel Vadot
105def4c47SEmmanuel Vadotmaintainers:
115def4c47SEmmanuel Vadot  - Mike Looijmans <mike.looijmans@topic.nl>
125def4c47SEmmanuel Vadot
135def4c47SEmmanuel Vadotdescription: |
145def4c47SEmmanuel Vadot  The LTC ® 4162-L is an advanced monolithic synchronous step-down switching
155def4c47SEmmanuel Vadot  battery charger and PowerPath (TM) manager that seamlessly manages power
165def4c47SEmmanuel Vadot  distribution between input sources such as wall adapters, backplanes, solar
175def4c47SEmmanuel Vadot  panels, etc., and a rechargeable Lithium-Ion/Polymer battery.
185def4c47SEmmanuel Vadot
195def4c47SEmmanuel Vadot  Specifications about the charger can be found at:
205def4c47SEmmanuel Vadot    https://www.analog.com/en/products/ltc4162-s.html
215def4c47SEmmanuel Vadot
225def4c47SEmmanuel Vadotproperties:
235def4c47SEmmanuel Vadot  compatible:
245def4c47SEmmanuel Vadot    enum:
255def4c47SEmmanuel Vadot      - lltc,ltc4162-l
265def4c47SEmmanuel Vadot
275def4c47SEmmanuel Vadot  reg:
285def4c47SEmmanuel Vadot    maxItems: 1
295def4c47SEmmanuel Vadot    description: I2C address of the charger.
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  lltc,rsnsb-micro-ohms:
325def4c47SEmmanuel Vadot    description: Battery sense resistor in microohm.
335def4c47SEmmanuel Vadot    minimum: 1000
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  lltc,rsnsi-micro-ohms:
365def4c47SEmmanuel Vadot    description: Input current sense resistor in microohm.
375def4c47SEmmanuel Vadot    minimum: 1000
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot  lltc,cell-count:
405def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
415def4c47SEmmanuel Vadot    description: |
425def4c47SEmmanuel Vadot      Number of battery cells. If not provided, will be obtained from the chip
435def4c47SEmmanuel Vadot      once the external power is applied. Omit this when the number of cells
445def4c47SEmmanuel Vadot      is somewhat dynamic. Without it, several measurements will return 0 until
455def4c47SEmmanuel Vadot      the charger is connected to an external supply.
465def4c47SEmmanuel Vadot
475def4c47SEmmanuel Vadotrequired:
485def4c47SEmmanuel Vadot  - compatible
495def4c47SEmmanuel Vadot  - reg
505def4c47SEmmanuel Vadot  - lltc,rsnsb-micro-ohms
515def4c47SEmmanuel Vadot  - lltc,rsnsi-micro-ohms
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel VadotadditionalProperties: false
545def4c47SEmmanuel Vadot
555def4c47SEmmanuel Vadotexamples:
565def4c47SEmmanuel Vadot  - |
57*fac71e4eSEmmanuel Vadot    i2c {
585def4c47SEmmanuel Vadot      #address-cells = <1>;
595def4c47SEmmanuel Vadot      #size-cells = <0>;
605def4c47SEmmanuel Vadot      charger: battery-charger@68 {
615def4c47SEmmanuel Vadot              compatible = "lltc,ltc4162-l";
625def4c47SEmmanuel Vadot              reg = <0x68>;
635def4c47SEmmanuel Vadot              lltc,rsnsb-micro-ohms = <10000>;
645def4c47SEmmanuel Vadot              lltc,rsnsi-micro-ohms = <16000>;
655def4c47SEmmanuel Vadot              lltc,cell-count = <2>;
665def4c47SEmmanuel Vadot      };
675def4c47SEmmanuel Vadot    };
68