max8997-regulator.txt 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. * Maxim MAX8997 Voltage and Current Regulator
  2. The Maxim MAX8997 is a multi-function device which includes voltage and
  3. current regulators, rtc, charger controller and other sub-blocks. It is
  4. interfaced to the host controller using a i2c interface. Each sub-block is
  5. addressed by the host system using different i2c slave address. This document
  6. describes the bindings for 'pmic' sub-block of max8997.
  7. Required properties:
  8. - compatible: Should be "maxim,max8997-pmic".
  9. - reg: Specifies the i2c slave address of the pmic block. It should be 0x66.
  10. - max8997,pmic-buck1-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  11. units for buck1 when changing voltage using gpio dvs. Refer to [1] below
  12. for additional information.
  13. - max8997,pmic-buck2-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  14. units for buck2 when changing voltage using gpio dvs. Refer to [1] below
  15. for additional information.
  16. - max8997,pmic-buck5-dvs-voltage: A set of 8 voltage values in micro-volt (uV)
  17. units for buck5 when changing voltage using gpio dvs. Refer to [1] below
  18. for additional information.
  19. [1] If none of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
  20. property is specified, the 'max8997,pmic-buck[1/2/5]-dvs-voltage'
  21. property should specify atleast one voltage level (which would be a
  22. safe operating voltage).
  23. If either of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
  24. property is specified, then all the eight voltage values for the
  25. 'max8997,pmic-buck[1/2/5]-dvs-voltage' should be specified.
  26. Optional properties:
  27. - interrupt-parent: Specifies the phandle of the interrupt controller to which
  28. the interrupts from max8997 are delivered to.
  29. - interrupts: Interrupt specifiers for two interrupt sources.
  30. - First interrupt specifier is for 'irq1' interrupt.
  31. - Second interrupt specifier is for 'alert' interrupt.
  32. - max8997,pmic-buck1-uses-gpio-dvs: 'buck1' can be controlled by gpio dvs.
  33. - max8997,pmic-buck2-uses-gpio-dvs: 'buck2' can be controlled by gpio dvs.
  34. - max8997,pmic-buck5-uses-gpio-dvs: 'buck5' can be controlled by gpio dvs.
  35. Additional properties required if either of the optional properties are used:
  36. - max8997,pmic-ignore-gpiodvs-side-effect: When GPIO-DVS mode is used for
  37. multiple bucks, changing the voltage value of one of the bucks may affect
  38. that of another buck, which is the side effect of the change (set_voltage).
  39. Use this property to ignore such side effects and change the voltage.
  40. - max8997,pmic-buck125-default-dvs-idx: Default voltage setting selected from
  41. the possible 8 options selectable by the dvs gpios. The value of this
  42. property should be between 0 and 7. If not specified or if out of range, the
  43. default value of this property is set to 0.
  44. - max8997,pmic-buck125-dvs-gpios: GPIO specifiers for three host gpio's used
  45. for dvs. The format of the gpio specifier depends in the gpio controller.
  46. Regulators: The regulators of max8997 that have to be instantiated should be
  47. included in a sub-node named 'regulators'. Regulator nodes included in this
  48. sub-node should be of the format as listed below.
  49. regulator_name {
  50. standard regulator bindings here
  51. };
  52. The following are the names of the regulators that the max8997 pmic block
  53. supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number
  54. as per the datasheet of max8997.
  55. - LDOn
  56. - valid values for n are 1 to 18 and 21
  57. - Example: LDO0, LD01, LDO2, LDO21
  58. - BUCKn
  59. - valid values for n are 1 to 7.
  60. - Example: BUCK1, BUCK2, BUCK3, BUCK7
  61. - ENVICHG: Battery Charging Current Monitor Output. This is a fixed
  62. voltage type regulator
  63. - ESAFEOUT1: (ldo19)
  64. - ESAFEOUT2: (ld020)
  65. - CHARGER_CV: main battery charger voltage control
  66. - CHARGER: main battery charger current control
  67. - CHARGER_TOPOFF: end of charge current threshold level
  68. The bindings inside the regulator nodes use the standard regulator bindings
  69. which are documented elsewhere.
  70. Example:
  71. max8997_pmic@66 {
  72. compatible = "maxim,max8997-pmic";
  73. interrupt-parent = <&wakeup_eint>;
  74. reg = <0x66>;
  75. interrupts = <4 0>, <3 0>;
  76. max8997,pmic-buck1-uses-gpio-dvs;
  77. max8997,pmic-buck2-uses-gpio-dvs;
  78. max8997,pmic-buck5-uses-gpio-dvs;
  79. max8997,pmic-ignore-gpiodvs-side-effect;
  80. max8997,pmic-buck125-default-dvs-idx = <0>;
  81. max8997,pmic-buck125-dvs-gpios = <&gpx0 0 1 0 0>, /* SET1 */
  82. <&gpx0 1 1 0 0>, /* SET2 */
  83. <&gpx0 2 1 0 0>; /* SET3 */
  84. max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
  85. <1250000>, <1200000>,
  86. <1150000>, <1100000>,
  87. <1000000>, <950000>;
  88. max8997,pmic-buck2-dvs-voltage = <1100000>, <1100000>,
  89. <1100000>, <1100000>,
  90. <1000000>, <1000000>,
  91. <1000000>, <1000000>;
  92. max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>,
  93. <1200000>, <1200000>,
  94. <1200000>, <1200000>,
  95. <1200000>, <1200000>;
  96. regulators {
  97. ldo1_reg: LDO1 {
  98. regulator-name = "VDD_ABB_3.3V";
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. };
  102. ldo2_reg: LDO2 {
  103. regulator-name = "VDD_ALIVE_1.1V";
  104. regulator-min-microvolt = <1100000>;
  105. regulator-max-microvolt = <1100000>;
  106. regulator-always-on;
  107. };
  108. buck1_reg: BUCK1 {
  109. regulator-name = "VDD_ARM_1.2V";
  110. regulator-min-microvolt = <950000>;
  111. regulator-max-microvolt = <1350000>;
  112. regulator-always-on;
  113. regulator-boot-on;
  114. };
  115. };
  116. };