regulator.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Deprecated properties:
  17. - regulator-compatible: If a regulator chip contains multiple
  18. regulators, and if the chip's binding contains a child node that
  19. describes each regulator, then this property indicates which regulator
  20. this child node is intended to configure. If this property is missing,
  21. the node's name will be used instead.
  22. Example:
  23. xyzreg: regulator@0 {
  24. regulator-min-microvolt = <1000000>;
  25. regulator-max-microvolt = <2500000>;
  26. regulator-always-on;
  27. vin-supply = <&vin>;
  28. };
  29. Regulator Consumers:
  30. Consumer nodes can reference one or more of its supplies/
  31. regulators using the below bindings.
  32. - <name>-supply: phandle to the regulator node
  33. These are the same bindings that a regulator in the above
  34. example used to reference its own supply, in which case
  35. its just seen as a special case of a regulator being a
  36. consumer itself.
  37. Example of a consumer device node (mmc) referencing two
  38. regulators (twl_reg1 and twl_reg2),
  39. twl_reg1: regulator@0 {
  40. ...
  41. ...
  42. ...
  43. };
  44. twl_reg2: regulator@1 {
  45. ...
  46. ...
  47. ...
  48. };
  49. mmc: mmc@0x0 {
  50. ...
  51. ...
  52. vmmc-supply = <&twl_reg1>;
  53. vmmcaux-supply = <&twl_reg2>;
  54. };