regulator.txt 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Voltage/Current Regulators
  2. Optional properties:
  3. - regulator-name: A string used as a descriptive name for regulator outputs
  4. - regulator-min-microvolt: smallest voltage consumers may set
  5. - regulator-max-microvolt: largest voltage consumers may set
  6. - regulator-microvolt-offset: Offset applied to voltages to compensate for voltage drops
  7. - regulator-min-microamp: smallest current consumers may set
  8. - regulator-max-microamp: largest current consumers may set
  9. - regulator-input-current-limit-microamp: maximum input current regulator allows
  10. - regulator-always-on: boolean, regulator should never be disabled
  11. - regulator-boot-on: bootloader/firmware enabled regulator
  12. - regulator-allow-bypass: allow the regulator to go into bypass mode
  13. - regulator-allow-set-load: allow the regulator performance level to be configured
  14. - <name>-supply: phandle to the parent supply/regulator node
  15. - regulator-ramp-delay: ramp delay for regulator(in uV/us)
  16. For hardware which supports disabling ramp rate, it should be explicitly
  17. initialised to zero (regulator-ramp-delay = <0>) for disabling ramp delay.
  18. - regulator-enable-ramp-delay: The time taken, in microseconds, for the supply
  19. rail to reach the target voltage, plus/minus whatever tolerance the board
  20. design requires. This property describes the total system ramp time
  21. required due to the combination of internal ramping of the regulator itself,
  22. and board design issues such as trace capacitance and load on the supply.
  23. - regulator-settling-time-us: Settling time, in microseconds, for voltage
  24. change if regulator have the constant time for any level voltage change.
  25. This is useful when regulator have exponential voltage change.
  26. - regulator-settling-time-up-us: Settling time, in microseconds, for voltage
  27. increase if the regulator needs a constant time to settle after voltage
  28. increases of any level. This is useful for regulators with exponential
  29. voltage changes.
  30. - regulator-settling-time-down-us: Settling time, in microseconds, for voltage
  31. decrease if the regulator needs a constant time to settle after voltage
  32. decreases of any level. This is useful for regulators with exponential
  33. voltage changes.
  34. - regulator-soft-start: Enable soft start so that voltage ramps slowly
  35. - regulator-state-mem sub-root node for Suspend-to-RAM mode
  36. : suspend to memory, the device goes to sleep, but all data stored in memory,
  37. only some external interrupt can wake the device.
  38. - regulator-state-disk sub-root node for Suspend-to-DISK mode
  39. : suspend to disk, this state operates similarly to Suspend-to-RAM,
  40. but includes a final step of writing memory contents to disk.
  41. - regulator-state-[mem/disk] node has following common properties:
  42. - regulator-on-in-suspend: regulator should be on in suspend state.
  43. - regulator-off-in-suspend: regulator should be off in suspend state.
  44. - regulator-suspend-min-microvolt: minimum voltage may be set in
  45. suspend state.
  46. - regulator-suspend-max-microvolt: maximum voltage may be set in
  47. suspend state.
  48. - regulator-suspend-microvolt: the default voltage which regulator
  49. would be set in suspend. This property is now deprecated, instead
  50. setting voltage for suspend mode via the API which regulator
  51. driver provides is recommended.
  52. - regulator-changeable-in-suspend: whether the default voltage and
  53. the regulator on/off in suspend can be changed in runtime.
  54. - regulator-mode: operating mode in the given suspend state.
  55. The set of possible operating modes depends on the capabilities of
  56. every hardware so the valid modes are documented on each regulator
  57. device tree binding document.
  58. - regulator-initial-mode: initial operating mode. The set of possible operating
  59. modes depends on the capabilities of every hardware so each device binding
  60. documentation explains which values the regulator supports.
  61. - regulator-allowed-modes: list of operating modes that software is allowed to
  62. configure for the regulator at run-time. Elements may be specified in any
  63. order. The set of possible operating modes depends on the capabilities of
  64. every hardware so each device binding document explains which values the
  65. regulator supports.
  66. - regulator-system-load: Load in uA present on regulator that is not captured by
  67. any consumer request.
  68. - regulator-pull-down: Enable pull down resistor when the regulator is disabled.
  69. - regulator-over-current-protection: Enable over current protection.
  70. - regulator-active-discharge: tristate, enable/disable active discharge of
  71. regulators. The values are:
  72. 0: Disable active discharge.
  73. 1: Enable active discharge.
  74. Absence of this property will leave configuration to default.
  75. - regulator-coupled-with: Regulators with which the regulator
  76. is coupled. The linkage is 2-way - all coupled regulators should be linked
  77. with each other. A regulator should not be coupled with its supplier.
  78. - regulator-coupled-max-spread: Max spread between voltages of coupled regulators
  79. in microvolts.
  80. Deprecated properties:
  81. - regulator-compatible: If a regulator chip contains multiple
  82. regulators, and if the chip's binding contains a child node that
  83. describes each regulator, then this property indicates which regulator
  84. this child node is intended to configure. If this property is missing,
  85. the node's name will be used instead.
  86. Example:
  87. xyzreg: regulator@0 {
  88. regulator-min-microvolt = <1000000>;
  89. regulator-max-microvolt = <2500000>;
  90. regulator-always-on;
  91. vin-supply = <&vin>;
  92. regulator-state-mem {
  93. regulator-on-in-suspend;
  94. };
  95. };
  96. Regulator Consumers:
  97. Consumer nodes can reference one or more of its supplies/
  98. regulators using the below bindings.
  99. - <name>-supply: phandle to the regulator node
  100. These are the same bindings that a regulator in the above
  101. example used to reference its own supply, in which case
  102. its just seen as a special case of a regulator being a
  103. consumer itself.
  104. Example of a consumer device node (mmc) referencing two
  105. regulators (twl_reg1 and twl_reg2),
  106. twl_reg1: regulator@0 {
  107. ...
  108. ...
  109. ...
  110. };
  111. twl_reg2: regulator@1 {
  112. ...
  113. ...
  114. ...
  115. };
  116. mmc: mmc@0 {
  117. ...
  118. ...
  119. vmmc-supply = <&twl_reg1>;
  120. vmmcaux-supply = <&twl_reg2>;
  121. };