ltc4162-l.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. # Copyright (C) 2020 Topic Embedded Products
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/power/supply/ltc4162-l.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Linear Technology (Analog Devices) LTC4162-L Charger
  8. maintainers:
  9. - Mike Looijmans <mike.looijmans@topic.nl>
  10. description: |
  11. The LTC ® 4162-L is an advanced monolithic synchronous step-down switching
  12. battery charger and PowerPath (TM) manager that seamlessly manages power
  13. distribution between input sources such as wall adapters, backplanes, solar
  14. panels, etc., and a rechargeable Lithium-Ion/Polymer battery.
  15. Specifications about the charger can be found at:
  16. https://www.analog.com/en/products/ltc4162-l.html
  17. https://www.analog.com/en/products/ltc4162-f.html
  18. https://www.analog.com/en/products/ltc4162-s.html
  19. https://www.analog.com/en/products/ltc4015.html
  20. properties:
  21. compatible:
  22. enum:
  23. - lltc,ltc4015
  24. - lltc,ltc4162-f
  25. - lltc,ltc4162-l
  26. - lltc,ltc4162-s
  27. reg:
  28. maxItems: 1
  29. description: I2C address of the charger.
  30. lltc,rsnsb-micro-ohms:
  31. description: Battery sense resistor in microohm.
  32. minimum: 1000
  33. lltc,rsnsi-micro-ohms:
  34. description: Input current sense resistor in microohm.
  35. minimum: 1000
  36. lltc,cell-count:
  37. $ref: /schemas/types.yaml#/definitions/uint32
  38. description: |
  39. Number of battery cells. If not provided, will be obtained from the chip
  40. once the external power is applied. Omit this when the number of cells
  41. is somewhat dynamic. Without it, several measurements will return 0 until
  42. the charger is connected to an external supply.
  43. required:
  44. - compatible
  45. - reg
  46. - lltc,rsnsb-micro-ohms
  47. - lltc,rsnsi-micro-ohms
  48. additionalProperties: false
  49. examples:
  50. - |
  51. i2c {
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. charger: battery-charger@68 {
  55. compatible = "lltc,ltc4162-l";
  56. reg = <0x68>;
  57. lltc,rsnsb-micro-ohms = <10000>;
  58. lltc,rsnsi-micro-ohms = <16000>;
  59. lltc,cell-count = <2>;
  60. };
  61. };