gpio-regulator.txt 1011 B

12345678910111213141516171819202122232425262728293031323334353637
  1. GPIO controlled regulators
  2. Required properties:
  3. - compatible : Must be "regulator-gpio".
  4. - states : Selection of available voltages and GPIO configs.
  5. if there are no states, then use a fixed regulator
  6. Optional properties:
  7. - enable-gpio : GPIO to use to enable/disable the regulator.
  8. - gpios : GPIO group used to control voltage.
  9. - startup-delay-us : Startup time in microseconds.
  10. - enable-active-high : Polarity of GPIO is active high (default is low).
  11. Any property defined as part of the core regulator binding defined in
  12. regulator.txt can also be used.
  13. Example:
  14. mmciv: gpio-regulator {
  15. compatible = "regulator-gpio";
  16. regulator-name = "mmci-gpio-supply";
  17. regulator-min-microvolt = <1800000>;
  18. regulator-max-microvolt = <2600000>;
  19. regulator-boot-on;
  20. enable-gpio = <&gpio0 23 0x4>;
  21. gpios = <&gpio0 24 0x4
  22. &gpio0 25 0x4>;
  23. states = <1800000 0x3
  24. 2200000 0x2
  25. 2600000 0x1
  26. 2900000 0x0>;
  27. startup-delay-us = <100000>;
  28. enable-active-high;
  29. };