Przemyslaw Marczak | 3753f28 | 2015-04-20 20:07:48 +0200 | [diff] [blame] | 1 | Fixed Voltage regulator |
| 2 | |
| 3 | Binding: |
| 4 | The binding is done by the property "compatible" - this is different, than for |
| 5 | binding by the node prefix (doc/device-tree-bindings/regulator/regulator.txt). |
| 6 | |
| 7 | Required properties: |
| 8 | - compatible: "regulator-fixed" |
| 9 | - regulator-name: this is required by the regulator uclass |
| 10 | |
| 11 | Optional properties: |
| 12 | - gpio: GPIO to use for enable control |
John Keeping | a531aa5 | 2016-08-22 15:10:09 +0100 | [diff] [blame] | 13 | - startup-delay-us: startup time in microseconds |
Peng Fan | 2a7b06c | 2018-07-26 19:47:24 +0800 | [diff] [blame] | 14 | - u-boot,off-on-delay-us: off delay time in microseconds |
Przemyslaw Marczak | 3753f28 | 2015-04-20 20:07:48 +0200 | [diff] [blame] | 15 | - regulator constraints (binding info: regulator.txt) |
Vignesh R | dd242ab | 2016-12-07 16:55:06 +0530 | [diff] [blame] | 16 | - enable-active-high: Polarity of GPIO is Active high. If this property |
| 17 | is missing, the default assumed is Active low. |
| 18 | |
Przemyslaw Marczak | 3753f28 | 2015-04-20 20:07:48 +0200 | [diff] [blame] | 19 | |
| 20 | Other kernel-style properties, are currently not used. |
| 21 | |
| 22 | Note: |
| 23 | For the regulator constraints, driver expects that: |
| 24 | - regulator-min-microvolt is equal to regulator-max-microvolt |
| 25 | - regulator-min-microamp is equal to regulator-max-microamp |
| 26 | |
| 27 | Example: |
| 28 | fixed_regulator@0 { |
| 29 | /* Mandatory */ |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "LED_3.3V"; |
| 32 | |
| 33 | /* Optional: */ |
| 34 | gpio = <&gpc1 0 GPIO_ACTIVE_LOW>; |
| 35 | |
| 36 | /* Optional for regulator uclass */ |
| 37 | regulator-min-microvolt = <3300000>; |
| 38 | regulator-max-microvolt = <3300000>; |
| 39 | regulator-min-microamp = <15000>; |
| 40 | regulator-max-microamp = <15000>; |
| 41 | regulator-always-on; |
| 42 | regulator-boot-on; |
Vignesh R | dd242ab | 2016-12-07 16:55:06 +0530 | [diff] [blame] | 43 | enable-active-high; |
Przemyslaw Marczak | 3753f28 | 2015-04-20 20:07:48 +0200 | [diff] [blame] | 44 | }; |