maxim,max14577.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/maxim,max14577.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX14577/MAX77836 MicroUSB and Companion Power Management IC
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. This is a part of device tree bindings for Maxim MAX14577/MAX77836 MicroUSB
  11. Integrated Circuit (MUIC).
  12. The Maxim MAX14577 is a MicroUSB and Companion Power Management IC which
  13. includes voltage safeout regulators, charger and MicroUSB management IC.
  14. The Maxim MAX77836 is a MicroUSB and Companion Power Management IC which
  15. includes voltage safeout and LDO regulators, charger, fuel-gauge and MicroUSB
  16. management IC.
  17. properties:
  18. compatible:
  19. enum:
  20. - maxim,max14577
  21. - maxim,max77836
  22. interrupts:
  23. maxItems: 1
  24. reg:
  25. maxItems: 1
  26. wakeup-source: true
  27. charger:
  28. $ref: /schemas/power/supply/maxim,max14577.yaml
  29. extcon:
  30. type: object
  31. additionalProperties: false
  32. properties:
  33. compatible:
  34. enum:
  35. - maxim,max14577-muic
  36. - maxim,max77836-muic
  37. required:
  38. - compatible
  39. regulators:
  40. $ref: /schemas/regulator/maxim,max14577.yaml
  41. required:
  42. - compatible
  43. - interrupts
  44. - reg
  45. - charger
  46. allOf:
  47. - if:
  48. properties:
  49. compatible:
  50. contains:
  51. const: maxim,max14577
  52. then:
  53. properties:
  54. charger:
  55. properties:
  56. compatible:
  57. const: maxim,max14577-charger
  58. extcon:
  59. properties:
  60. compatible:
  61. const: maxim,max14577-muic
  62. regulator:
  63. properties:
  64. compatible:
  65. const: maxim,max14577-regulator
  66. else:
  67. properties:
  68. charger:
  69. properties:
  70. compatible:
  71. const: maxim,max77836-charger
  72. extcon:
  73. properties:
  74. compatible:
  75. const: maxim,max77836-muic
  76. regulator:
  77. properties:
  78. compatible:
  79. const: maxim,max77836-regulator
  80. additionalProperties: false
  81. examples:
  82. - |
  83. #include <dt-bindings/interrupt-controller/irq.h>
  84. i2c {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. pmic@25 {
  88. compatible = "maxim,max14577";
  89. reg = <0x25>;
  90. interrupt-parent = <&gpx1>;
  91. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  92. extcon {
  93. compatible = "maxim,max14577-muic";
  94. };
  95. regulators {
  96. compatible = "maxim,max14577-regulator";
  97. SAFEOUT {
  98. regulator-name = "SAFEOUT";
  99. };
  100. CHARGER {
  101. regulator-name = "CHARGER";
  102. regulator-min-microamp = <90000>;
  103. regulator-max-microamp = <950000>;
  104. regulator-boot-on;
  105. };
  106. };
  107. charger {
  108. compatible = "maxim,max14577-charger";
  109. maxim,constant-uvolt = <4350000>;
  110. maxim,fast-charge-uamp = <450000>;
  111. maxim,eoc-uamp = <50000>;
  112. maxim,ovp-uvolt = <6500000>;
  113. };
  114. };
  115. };
  116. - |
  117. #include <dt-bindings/interrupt-controller/irq.h>
  118. i2c {
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. pmic@25 {
  122. compatible = "maxim,max77836";
  123. interrupt-parent = <&gpx1>;
  124. interrupts = <5 IRQ_TYPE_NONE>;
  125. reg = <0x25>;
  126. wakeup-source;
  127. extcon {
  128. compatible = "maxim,max77836-muic";
  129. };
  130. regulators {
  131. compatible = "maxim,max77836-regulator";
  132. SAFEOUT {
  133. regulator-name = "SAFEOUT";
  134. };
  135. CHARGER {
  136. regulator-name = "CHARGER";
  137. regulator-min-microamp = <45000>;
  138. regulator-max-microamp = <475000>;
  139. regulator-boot-on;
  140. };
  141. LDO1 {
  142. regulator-name = "MOT_2.7V";
  143. regulator-min-microvolt = <1100000>;
  144. regulator-max-microvolt = <2700000>;
  145. };
  146. LDO2 {
  147. regulator-name = "UNUSED_LDO2";
  148. regulator-min-microvolt = <800000>;
  149. regulator-max-microvolt = <3950000>;
  150. };
  151. };
  152. charger {
  153. compatible = "maxim,max77836-charger";
  154. maxim,constant-uvolt = <4350000>;
  155. maxim,fast-charge-uamp = <225000>;
  156. maxim,eoc-uamp = <7500>;
  157. maxim,ovp-uvolt = <6500000>;
  158. };
  159. };
  160. };