maxim,max8971.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/supply/maxim,max8971.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX8971 IC charger
  7. maintainers:
  8. - Svyatoslav Ryhel <clamor95@gmail.com>
  9. description:
  10. The MAX8971 is a compact, high-frequency, high-efficiency switch-mode charger
  11. for a one-cell lithium-ion (Li+) battery.
  12. allOf:
  13. - $ref: power-supply.yaml#
  14. properties:
  15. compatible:
  16. const: maxim,max8971
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. monitored-battery: true
  22. port:
  23. description:
  24. An optional port node to link the extcon device to detect type of plug.
  25. $ref: /schemas/graph.yaml#/properties/port
  26. required:
  27. - compatible
  28. - reg
  29. - interrupts
  30. unevaluatedProperties: false
  31. examples:
  32. - |
  33. #include <dt-bindings/gpio/gpio.h>
  34. #include <dt-bindings/interrupt-controller/irq.h>
  35. i2c {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. charger@35 {
  39. compatible = "maxim,max8971";
  40. reg = <0x35>;
  41. interrupt-parent = <&gpio>;
  42. interrupts = <74 IRQ_TYPE_LEVEL_LOW>;
  43. monitored-battery = <&battery>;
  44. port {
  45. charger_input: endpoint {
  46. remote-endpoint = <&extcon_output>;
  47. };
  48. };
  49. };
  50. };
  51. ...