regulator.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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-soft-start: Enable soft start so that voltage ramps slowly
  24. - regulator-state-mem sub-root node for Suspend-to-RAM mode
  25. : suspend to memory, the device goes to sleep, but all data stored in memory,
  26. only some external interrupt can wake the device.
  27. - regulator-state-disk sub-root node for Suspend-to-DISK mode
  28. : suspend to disk, this state operates similarly to Suspend-to-RAM,
  29. but includes a final step of writing memory contents to disk.
  30. - regulator-state-[mem/disk] node has following common properties:
  31. - regulator-on-in-suspend: regulator should be on in suspend state.
  32. - regulator-off-in-suspend: regulator should be off in suspend state.
  33. - regulator-suspend-microvolt: regulator should be set to this voltage
  34. in suspend.
  35. - regulator-mode: operating mode in the given suspend state.
  36. The set of possible operating modes depends on the capabilities of
  37. every hardware so the valid modes are documented on each regulator
  38. device tree binding document.
  39. - regulator-initial-mode: initial operating mode. The set of possible operating
  40. modes depends on the capabilities of every hardware so each device binding
  41. documentation explains which values the regulator supports.
  42. - regulator-system-load: Load in uA present on regulator that is not captured by
  43. any consumer request.
  44. - regulator-pull-down: Enable pull down resistor when the regulator is disabled.
  45. - regulator-over-current-protection: Enable over current protection.
  46. - regulator-active-discharge: tristate, enable/disable active discharge of
  47. regulators. The values are:
  48. 0: Disable active discharge.
  49. 1: Enable active discharge.
  50. Absence of this property will leave configuration to default.
  51. Deprecated properties:
  52. - regulator-compatible: If a regulator chip contains multiple
  53. regulators, and if the chip's binding contains a child node that
  54. describes each regulator, then this property indicates which regulator
  55. this child node is intended to configure. If this property is missing,
  56. the node's name will be used instead.
  57. Example:
  58. xyzreg: regulator@0 {
  59. regulator-min-microvolt = <1000000>;
  60. regulator-max-microvolt = <2500000>;
  61. regulator-always-on;
  62. vin-supply = <&vin>;
  63. regulator-state-mem {
  64. regulator-on-in-suspend;
  65. };
  66. };
  67. Regulator Consumers:
  68. Consumer nodes can reference one or more of its supplies/
  69. regulators using the below bindings.
  70. - <name>-supply: phandle to the regulator node
  71. These are the same bindings that a regulator in the above
  72. example used to reference its own supply, in which case
  73. its just seen as a special case of a regulator being a
  74. consumer itself.
  75. Example of a consumer device node (mmc) referencing two
  76. regulators (twl_reg1 and twl_reg2),
  77. twl_reg1: regulator@0 {
  78. ...
  79. ...
  80. ...
  81. };
  82. twl_reg2: regulator@1 {
  83. ...
  84. ...
  85. ...
  86. };
  87. mmc: mmc@0x0 {
  88. ...
  89. ...
  90. vmmc-supply = <&twl_reg1>;
  91. vmmcaux-supply = <&twl_reg2>;
  92. };