regulator.txt 1.8 KB

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