regulator.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. - qcom,consumer-supplies: flattened list of supply and dev_name pairs
  13. This property is used to support regulator consumers that have no device
  14. tree node. An empty string, "", can be used to specify a null device
  15. name. A null device name is used to allow calls such as:
  16. regulator_get(NULL, "pll_vdd").
  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. qcom,consumer-supplies = "pll_vdd", "", "lcd_vcc", "foo.1";
  24. };
  25. Regulator Consumers:
  26. Consumer nodes can reference one or more of its supplies/
  27. regulators using the below bindings.
  28. - <name>-supply: phandle to the regulator node
  29. These are the same bindings that a regulator in the above
  30. example used to reference its own supply, in which case
  31. its just seen as a special case of a regulator being a
  32. consumer itself.
  33. Example of a consumer device node (mmc) referencing two
  34. regulators (twl_reg1 and twl_reg2),
  35. twl_reg1: regulator@0 {
  36. ...
  37. ...
  38. ...
  39. };
  40. twl_reg2: regulator@1 {
  41. ...
  42. ...
  43. ...
  44. };
  45. mmc: mmc@0x0 {
  46. ...
  47. ...
  48. vmmc-supply = <&twl_reg1>;
  49. vmmcaux-supply = <&twl_reg2>;
  50. };