regulator.txt 1.4 KB

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