max8998.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. - interrupts: Interrupt specifiers for two interrupt sources.
  19. - First interrupt specifier is for main interrupt.
  20. - Second interrupt specifier is for power-on/-off interrupt.
  21. - max8998,pmic-buck1-dvs-gpios: GPIO specifiers for two host gpios used
  22. for buck 1 dvs. The format of the gpio specifier depends on the gpio
  23. controller.
  24. - max8998,pmic-buck2-dvs-gpio: GPIO specifier for host gpio used
  25. for buck 2 dvs. The format of the gpio specifier depends on the gpio
  26. controller.
  27. - max8998,pmic-buck1-default-dvs-idx: Default voltage setting selected from
  28. the possible 4 options selectable by the dvs gpios. The value of this
  29. property should be 0, 1, 2 or 3. If not specified or out of range,
  30. a default value of 0 is taken.
  31. - max8998,pmic-buck2-default-dvs-idx: Default voltage setting selected from
  32. the possible 2 options selectable by the dvs gpios. The value of this
  33. property should be 0 or 1. If not specified or out of range, a default
  34. value of 0 is taken.
  35. - max8998,pmic-buck-voltage-lock: If present, disallows changing of
  36. preprogrammed buck dvfs voltages.
  37. Additional properties required if max8998,pmic-buck1-dvs-gpios is defined:
  38. - max8998,pmic-buck1-dvs-voltage: An array of 4 voltage values in microvolts
  39. for buck1 regulator that can be selected using dvs gpio.
  40. Additional properties required if max8998,pmic-buck2-dvs-gpio is defined:
  41. - max8998,pmic-buck2-dvs-voltage: An array of 2 voltage values in microvolts
  42. for buck2 regulator that can be selected using dvs gpio.
  43. Regulators: All the regulators of MAX8998 to be instantiated shall be
  44. listed in a child node named 'regulators'. Each regulator is represented
  45. by a child node of the 'regulators' node.
  46. regulator-name {
  47. /* standard regulator bindings here */
  48. };
  49. Following regulators of the MAX8998 PMIC block are supported. Note that
  50. the 'n' in regulator name, as in LDOn or BUCKn, represents the LDO or BUCK
  51. number as described in MAX8998 datasheet.
  52. - LDOn
  53. - valid values for n are 2 to 17
  54. - Example: LDO2, LDO10, LDO17
  55. - BUCKn
  56. - valid values for n are 1 to 4.
  57. - Example: BUCK1, BUCK2, BUCK3, BUCK4
  58. - ENVICHG: Battery Charging Current Monitor Output. This is a fixed
  59. voltage type regulator
  60. - ESAFEOUT1: (ldo19)
  61. - ESAFEOUT2: (ld020)
  62. Standard regulator bindings are used inside regulator subnodes. Check
  63. Documentation/devicetree/bindings/regulator/regulator.txt
  64. for more details.
  65. Example:
  66. pmic@66 {
  67. compatible = "maxim,max8998-pmic";
  68. reg = <0x66>;
  69. interrupt-parent = <&wakeup_eint>;
  70. interrupts = <4 0>, <3 0>;
  71. /* Buck 1 DVS settings */
  72. max8998,pmic-buck1-default-dvs-idx = <0>;
  73. max8998,pmic-buck1-dvs-gpios = <&gpx0 0 1 0 0>, /* SET1 */
  74. <&gpx0 1 1 0 0>; /* SET2 */
  75. max8998,pmic-buck1-dvs-voltage = <1350000>, <1300000>,
  76. <1000000>, <950000>;
  77. /* Buck 2 DVS settings */
  78. max8998,pmic-buck2-default-dvs-idx = <0>;
  79. max8998,pmic-buck2-dvs-gpio = <&gpx0 0 3 0 0>; /* SET3 */
  80. max8998,pmic-buck2-dvs-voltage = <1350000>, <1300000>;
  81. /* Regulators to instantiate */
  82. regulators {
  83. ldo2_reg: LDO2 {
  84. regulator-name = "VDD_ALIVE_1.1V";
  85. regulator-min-microvolt = <1100000>;
  86. regulator-max-microvolt = <1100000>;
  87. regulator-always-on;
  88. };
  89. buck1_reg: BUCK1 {
  90. regulator-name = "VDD_ARM_1.2V";
  91. regulator-min-microvolt = <950000>;
  92. regulator-max-microvolt = <1350000>;
  93. regulator-always-on;
  94. regulator-boot-on;
  95. };
  96. };
  97. };