max77802.txt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Binding for Maxim MAX77802 regulators
  2. This is a part of device tree bindings of MAX77802 multi-function device.
  3. More information can be found in bindings/mfd/max77802.txt file.
  4. The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO)
  5. regulators that can be controlled over I2C.
  6. Following properties should be present in main device node of the MFD chip.
  7. Optional properties:
  8. - inb1-supply: The input supply for BUCK1
  9. - inb2-supply: The input supply for BUCK2
  10. - inb3-supply: The input supply for BUCK3
  11. - inb4-supply: The input supply for BUCK4
  12. - inb5-supply: The input supply for BUCK5
  13. - inb6-supply: The input supply for BUCK6
  14. - inb7-supply: The input supply for BUCK7
  15. - inb8-supply: The input supply for BUCK8
  16. - inb9-supply: The input supply for BUCK9
  17. - inb10-supply: The input supply for BUCK10
  18. - inl1-supply: The input supply for LDO8 and LDO15
  19. - inl2-supply: The input supply for LDO17, LDO27, LDO30 and LDO35
  20. - inl3-supply: The input supply for LDO3, LDO5, LDO6 and LDO7
  21. - inl4-supply: The input supply for LDO10, LDO11, LDO13 and LDO14
  22. - inl5-supply: The input supply for LDO9 and LDO19
  23. - inl6-supply: The input supply for LDO4, LDO21, LDO24 and LDO33
  24. - inl7-supply: The input supply for LDO18, LDO20, LDO28 and LDO29
  25. - inl9-supply: The input supply for LDO12, LDO23, LDO25, LDO26, LDO32 and LDO34
  26. - inl10-supply: The input supply for LDO1 and LDO2
  27. Optional nodes:
  28. - regulators : The regulators of max77802 have to be instantiated
  29. under subnode named "regulators" using the following format.
  30. regulator-name {
  31. standard regulator constraints....
  32. };
  33. refer Documentation/devicetree/bindings/regulator/regulator.txt
  34. The regulator node name should be initialized with a string to get matched
  35. with their hardware counterparts as follow. The valid names are:
  36. -LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30
  37. and 32-35.
  38. example: LDO1, LDO2, LDO35.
  39. -BUCKn : for BUCKs, where n can lie in range 1 to 10.
  40. example: BUCK1, BUCK5, BUCK10.
  41. The max77802 regulator supports two different operating modes: Normal and Low
  42. Power Mode. Some regulators support the modes to be changed at startup or by
  43. the consumers during normal operation while others only support to change the
  44. mode during system suspend. The standard regulator suspend states binding can
  45. be used to configure the regulator operating mode.
  46. The regulators that support the standard "regulator-initial-mode" property,
  47. changing their mode during normal operation are: LDOs 1, 3, 20 and 21.
  48. The possible values for "regulator-initial-mode" and "regulator-mode" are:
  49. 1: Normal regulator voltage output mode.
  50. 3: Low Power which reduces the quiescent current down to only 1uA
  51. The list of valid modes are defined in the dt-bindings/clock/maxim,max77802.h
  52. header and can be included by device tree source files.
  53. The standard "regulator-mode" property can only be used for regulators that
  54. support changing their mode to Low Power Mode during suspend. These regulators
  55. are: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has
  56. been enabled for the given suspend state using "regulator-on-in-suspend" and
  57. has not been disabled for that state using "regulator-off-in-suspend".
  58. Example:
  59. max77802@09 {
  60. compatible = "maxim,max77802";
  61. interrupt-parent = <&wakeup_eint>;
  62. interrupts = <26 0>;
  63. reg = <0x09>;
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. inb1-supply = <&parent_reg>;
  67. regulators {
  68. ldo1_reg: LDO1 {
  69. regulator-name = "vdd_1v0";
  70. regulator-min-microvolt = <1000000>;
  71. regulator-max-microvolt = <1000000>;
  72. regulator-always-on;
  73. regulator-initial-mode = <MAX77802_OPMODE_LP>;
  74. };
  75. ldo11_reg: LDO11 {
  76. regulator-name = "vdd_ldo11";
  77. regulator-min-microvolt = <1900000>;
  78. regulator-max-microvolt = <1900000>;
  79. regulator-always-on;
  80. regulator-state-mem {
  81. regulator-on-in-suspend;
  82. regulator-mode = <MAX77802_OPMODE_LP>;
  83. };
  84. };
  85. buck1_reg: BUCK1 {
  86. regulator-name = "vdd_mif";
  87. regulator-min-microvolt = <950000>;
  88. regulator-max-microvolt = <1300000>;
  89. regulator-always-on;
  90. regulator-boot-on;
  91. };
  92. };