regulator.txt 1.7 KB

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