Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 1 | GPIO controlled regulators |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : Must be "regulator-gpio". |
Lee Jones | 216f2b9 | 2012-11-14 11:51:36 +0000 | [diff] [blame] | 5 | - states : Selection of available voltages and GPIO configs. |
| 6 | if there are no states, then use a fixed regulator |
Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 7 | |
| 8 | Optional properties: |
Frank Li | dea05fe | 2012-11-12 17:58:28 +0800 | [diff] [blame] | 9 | - enable-gpio : GPIO to use to enable/disable the regulator. |
Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 10 | - gpios : GPIO group used to control voltage. |
Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 11 | - startup-delay-us : Startup time in microseconds. |
| 12 | - enable-active-high : Polarity of GPIO is active high (default is low). |
Mark Brown | 7f196ec | 2013-12-05 19:08:55 +0000 | [diff] [blame^] | 13 | - regulator-type : Specifies what is being regulated, must be either |
| 14 | "voltage" or "current", defaults to current. |
Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 15 | |
| 16 | Any property defined as part of the core regulator binding defined in |
| 17 | regulator.txt can also be used. |
| 18 | |
| 19 | Example: |
| 20 | |
| 21 | mmciv: gpio-regulator { |
| 22 | compatible = "regulator-gpio"; |
| 23 | |
| 24 | regulator-name = "mmci-gpio-supply"; |
| 25 | regulator-min-microvolt = <1800000>; |
| 26 | regulator-max-microvolt = <2600000>; |
| 27 | regulator-boot-on; |
| 28 | |
Frank Li | dea05fe | 2012-11-12 17:58:28 +0800 | [diff] [blame] | 29 | enable-gpio = <&gpio0 23 0x4>; |
Lee Jones | 006694d | 2012-10-15 14:16:59 +0100 | [diff] [blame] | 30 | gpios = <&gpio0 24 0x4 |
| 31 | &gpio0 25 0x4>; |
| 32 | states = <1800000 0x3 |
| 33 | 2200000 0x2 |
| 34 | 2600000 0x1 |
| 35 | 2900000 0x0>; |
| 36 | |
| 37 | startup-delay-us = <100000>; |
| 38 | enable-active-high; |
| 39 | }; |