regulator.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-always-on: boolean, regulator should never be disabled
  10. - regulator-boot-on: bootloader/firmware enabled regulator
  11. - regulator-allow-bypass: allow the regulator to go into bypass mode
  12. - <name>-supply: phandle to the parent supply/regulator node
  13. - regulator-ramp-delay: ramp delay for regulator(in uV/uS)
  14. For hardwares which support disabling ramp rate, it should be explicitly
  15. intialised to zero (regulator-ramp-delay = <0>) for disabling ramp delay.
  16. - regulator-enable-ramp-delay: The time taken, in microseconds, for the supply
  17. rail to reach the target voltage, plus/minus whatever tolerance the board
  18. design requires. This property describes the total system ramp time
  19. required due to the combination of internal ramping of the regulator itself,
  20. and board design issues such as trace capacitance and load on the supply.
  21. Deprecated properties:
  22. - regulator-compatible: If a regulator chip contains multiple
  23. regulators, and if the chip's binding contains a child node that
  24. describes each regulator, then this property indicates which regulator
  25. this child node is intended to configure. If this property is missing,
  26. the node's name will be used instead.
  27. Example:
  28. xyzreg: regulator@0 {
  29. regulator-min-microvolt = <1000000>;
  30. regulator-max-microvolt = <2500000>;
  31. regulator-always-on;
  32. vin-supply = <&vin>;
  33. };
  34. Regulator Consumers:
  35. Consumer nodes can reference one or more of its supplies/
  36. regulators using the below bindings.
  37. - <name>-supply: phandle to the regulator node
  38. These are the same bindings that a regulator in the above
  39. example used to reference its own supply, in which case
  40. its just seen as a special case of a regulator being a
  41. consumer itself.
  42. Example of a consumer device node (mmc) referencing two
  43. regulators (twl_reg1 and twl_reg2),
  44. twl_reg1: regulator@0 {
  45. ...
  46. ...
  47. ...
  48. };
  49. twl_reg2: regulator@1 {
  50. ...
  51. ...
  52. ...
  53. };
  54. mmc: mmc@0x0 {
  55. ...
  56. ...
  57. vmmc-supply = <&twl_reg1>;
  58. vmmcaux-supply = <&twl_reg2>;
  59. };