max8997-regulator.txt 5.1 KB

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