regulator.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 mV/uS)
  13. Example:
  14. xyzreg: regulator@0 {
  15. regulator-min-microvolt = <1000000>;
  16. regulator-max-microvolt = <2500000>;
  17. regulator-always-on;
  18. vin-supply = <&vin>;
  19. };
  20. Regulator Consumers:
  21. Consumer nodes can reference one or more of its supplies/
  22. regulators using the below bindings.
  23. - <name>-supply: phandle to the regulator node
  24. These are the same bindings that a regulator in the above
  25. example used to reference its own supply, in which case
  26. its just seen as a special case of a regulator being a
  27. consumer itself.
  28. Example of a consumer device node (mmc) referencing two
  29. regulators (twl_reg1 and twl_reg2),
  30. twl_reg1: regulator@0 {
  31. ...
  32. ...
  33. ...
  34. };
  35. twl_reg2: regulator@1 {
  36. ...
  37. ...
  38. ...
  39. };
  40. mmc: mmc@0x0 {
  41. ...
  42. ...
  43. vmmc-supply = <&twl_reg1>;
  44. vmmcaux-supply = <&twl_reg2>;
  45. };