regulator.txt 1.9 KB

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