max14577.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. Maxim MAX14577/77836 Multi-Function Device
  2. MAX14577 is a Multi-Function Device with Micro-USB Interface Circuit, Li+
  3. Battery Charger and SFOUT LDO output for powering USB devices. It is
  4. interfaced to host controller using I2C.
  5. MAX77836 additionally contains PMIC (with two LDO regulators) and Fuel Gauge.
  6. Required properties:
  7. - compatible : Must be "maxim,max14577" or "maxim,max77836".
  8. - reg : I2C slave address for the max14577 chip (0x25 for max14577/max77836)
  9. - interrupts : IRQ line for the chip.
  10. - interrupt-parent : The parent interrupt controller.
  11. Required nodes:
  12. - charger :
  13. Node for configuring the charger driver.
  14. Required properties:
  15. - compatible : "maxim,max14577-charger"
  16. or "maxim,max77836-charger"
  17. - maxim,fast-charge-uamp : Current in uA for Fast Charge;
  18. Valid values:
  19. - for max14577: 90000 - 950000;
  20. - for max77836: 45000 - 475000;
  21. - maxim,eoc-uamp : Current in uA for End-Of-Charge mode;
  22. Valid values:
  23. - for max14577: 50000 - 200000;
  24. - for max77836: 5000 - 100000;
  25. - maxim,ovp-uvolt : OverVoltage Protection Threshold in uV;
  26. In an overvoltage condition, INT asserts and charging
  27. stops. Valid values:
  28. - 6000000, 6500000, 7000000, 7500000;
  29. - maxim,constant-uvolt : Battery Constant Voltage in uV;
  30. Valid values:
  31. - 4000000 - 4280000 (step by 20000);
  32. - 4350000;
  33. Optional nodes:
  34. - max14577-muic/max77836-muic :
  35. Node used only by extcon consumers.
  36. Required properties:
  37. - compatible : "maxim,max14577-muic" or "maxim,max77836-muic"
  38. - regulators :
  39. Required properties:
  40. - compatible : "maxim,max14577-regulator"
  41. or "maxim,max77836-regulator"
  42. May contain a sub-node per regulator from the list below. Each
  43. sub-node should contain the constraints and initialization information
  44. for that regulator. See regulator.txt for a description of standard
  45. properties for these sub-nodes.
  46. List of valid regulator names:
  47. - for max14577: CHARGER, SAFEOUT.
  48. - for max77836: CHARGER, SAFEOUT, LDO1, LDO2.
  49. The SAFEOUT is a fixed voltage regulator so there is no need to specify
  50. voltages for it.
  51. Example:
  52. #include <dt-bindings/interrupt-controller/irq.h>
  53. max14577@25 {
  54. compatible = "maxim,max14577";
  55. reg = <0x25>;
  56. interrupt-parent = <&gpx1>;
  57. interrupts = <5 IRQ_TYPE_NONE>;
  58. muic: max14577-muic {
  59. compatible = "maxim,max14577-muic";
  60. };
  61. regulators {
  62. compatible = "maxim,max14577-regulator";
  63. SAFEOUT {
  64. regulator-name = "SAFEOUT";
  65. };
  66. CHARGER {
  67. regulator-name = "CHARGER";
  68. regulator-min-microamp = <90000>;
  69. regulator-max-microamp = <950000>;
  70. regulator-boot-on;
  71. };
  72. };
  73. charger {
  74. compatible = "maxim,max14577-charger";
  75. maxim,constant-uvolt = <4350000>;
  76. maxim,fast-charge-uamp = <450000>;
  77. maxim,eoc-uamp = <50000>;
  78. maxim,ovp-uvolt = <6500000>;
  79. };
  80. };
  81. max77836@25 {
  82. compatible = "maxim,max77836";
  83. reg = <0x25>;
  84. interrupt-parent = <&gpx1>;
  85. interrupts = <5 IRQ_TYPE_NONE>;
  86. muic: max77836-muic {
  87. compatible = "maxim,max77836-muic";
  88. };
  89. regulators {
  90. compatible = "maxim,max77836-regulator";
  91. SAFEOUT {
  92. regulator-name = "SAFEOUT";
  93. };
  94. CHARGER {
  95. regulator-name = "CHARGER";
  96. regulator-min-microamp = <90000>;
  97. regulator-max-microamp = <950000>;
  98. regulator-boot-on;
  99. };
  100. LDO1 {
  101. regulator-name = "LDO1";
  102. regulator-min-microvolt = <2700000>;
  103. regulator-max-microvolt = <2700000>;
  104. };
  105. LDO2 {
  106. regulator-name = "LDO2";
  107. regulator-min-microvolt = <800000>;
  108. regulator-max-microvolt = <3950000>;
  109. };
  110. };
  111. charger {
  112. compatible = "maxim,max77836-charger";
  113. maxim,constant-uvolt = <4350000>;
  114. maxim,fast-charge-uamp = <225000>;
  115. maxim,eoc-uamp = <7500>;
  116. maxim,ovp-uvolt = <6500000>;
  117. };
  118. };