max8998.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. * Maxim MAX8998, National/TI LP3974 multi-function device
  2. The Maxim MAX8998 is a multi-function device which includes voltage/current
  3. regulators, real time clock, battery charging controller and several
  4. other sub-blocks. It is interfaced using an I2C interface. Each sub-block
  5. is addressed by the host system using different i2c slave address.
  6. PMIC sub-block
  7. --------------
  8. The PMIC sub-block contains a number of voltage and current regulators,
  9. with controllable parameters and dynamic voltage scaling capability.
  10. In addition, it includes a real time clock and battery charging controller
  11. as well. It is accessible at I2C address 0x66.
  12. Required properties:
  13. - compatible: Should be one of the following:
  14. - "maxim,max8998" for Maxim MAX8998
  15. - "national,lp3974" or "ti,lp3974" for National/TI LP3974.
  16. - reg: Specifies the i2c slave address of the pmic block. It should be 0x66.
  17. Optional properties:
  18. - interrupt-parent: Specifies the phandle of the interrupt controller to which
  19. the interrupts from MAX8998 are routed to.
  20. - interrupts: Interrupt specifiers for two interrupt sources.
  21. - First interrupt specifier is for main interrupt.
  22. - Second interrupt specifier is for power-on/-off interrupt.
  23. - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used
  24. for buck 1 dvs. The format of the gpio specifier depends on the gpio
  25. controller.
  26. - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used
  27. for buck 2 dvs. The format of the gpio specifier depends on the gpio
  28. controller.
  29. - max8998,pmic-buck1-default-dvs-idx: Default voltage setting selected from
  30. the possible 4 options selectable by the dvs gpios. The value of this
  31. property should be 0, 1, 2 or 3. If not specified or out of range,
  32. a default value of 0 is taken.
  33. - max8998,pmic-buck2-default-dvs-idx: Default voltage setting selected from
  34. the possible 2 options selectable by the dvs gpios. The value of this
  35. property should be 0 or 1. If not specified or out of range, a default
  36. value of 0 is taken.
  37. - max8998,pmic-buck-voltage-lock: If present, disallows changing of
  38. preprogrammed buck dvfs voltages.
  39. Additional properties required if max8998,pmic-buck1-dvs-gpios is defined:
  40. - max8998,pmic-buck1-dvs-voltage: An array of 4 voltage values in microvolts
  41. for buck1 regulator that can be selected using dvs gpio.
  42. Additional properties required if max8998,pmic-buck2-dvs-gpio is defined:
  43. - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in microvolts
  44. for buck2 regulator that can be selected using dvs gpio.
  45. Regulators: All the regulators of MAX8998 to be instantiated shall be
  46. listed in a child node named 'regulators'. Each regulator is represented
  47. by a child node of the 'regulators' node.
  48. regulator-name {
  49. /* standard regulator bindings here */
  50. };
  51. Following regulators of the MAX8998 PMIC block are supported. Note that
  52. the 'n' in regulator name, as in LDOn or BUCKn, represents the LDO or BUCK
  53. number as described in MAX8998 datasheet.
  54. - LDOn
  55. - valid values for n are 2 to 17
  56. - Example: LDO2, LDO10, LDO17
  57. - BUCKn
  58. - valid values for n are 1 to 4.
  59. - Example: BUCK1, BUCK2, BUCK3, BUCK4
  60. - ENVICHG: Battery Charging Current Monitor Output. This is a fixed
  61. voltage type regulator
  62. - ESAFEOUT1: (ldo19)
  63. - ESAFEOUT2: (ld020)
  64. Standard regulator bindings are used inside regulator subnodes. Check
  65. Documentation/devicetree/bindings/regulator/regulator.txt
  66. for more details.
  67. Example:
  68. pmic@66 {
  69. compatible = "maxim,max8998-pmic";
  70. reg = <0x66>;
  71. interrupt-parent = <&wakeup_eint>;
  72. interrupts = <4 0>, <3 0>;
  73. /* Buck 1 DVS settings */
  74. max8998,pmic-buck1-default-dvs-idx = <0>;
  75. max8998,pmic-buck1-dvs-gpios = <&gpx0 0 1 0 0>, /* SET1 */
  76. <&gpx0 1 1 0 0>; /* SET2 */
  77. max8998,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
  78. <1000000>, <950000>;
  79. /* Buck 2 DVS settings */
  80. max8998,pmic-buck2-default-dvs-idx = <0>;
  81. max8998,pmic-buck2-dvs-gpio = <&gpx0 0 3 0 0>; /* SET3 */
  82. max8998,pmic-buck2-dvs-voltage = <1350000>, <1300000>;
  83. /* Regulators to instantiate */
  84. regulators {
  85. ldo2_reg: LDO2 {
  86. regulator-name = "VDD_ALIVE_1.1V";
  87. regulator-min-microvolt = <1100000>;
  88. regulator-max-microvolt = <1100000>;
  89. regulator-always-on;
  90. };
  91. buck1_reg: BUCK1 {
  92. regulator-name = "VDD_ARM_1.2V";
  93. regulator-min-microvolt = <950000>;
  94. regulator-max-microvolt = <1350000>;
  95. regulator-always-on;
  96. regulator-boot-on;
  97. };
  98. };
  99. };