Przemyslaw Marczak | 5d387d0 | 2015-05-13 13:38:32 +0200 | [diff] [blame^] | 1 | Sandbox, PMIC regulators |
| 2 | |
| 3 | This device uses two drivers: |
| 4 | - drivers/power/pmic/sandbox.c (as parent I/O device) |
| 5 | - drivers/power/regulator/sandbox.c (for child regulators) |
| 6 | |
| 7 | This file describes the binding info for the REGULATOR driver. |
| 8 | |
| 9 | First, please read the binding info for the PMIC: |
| 10 | - doc/device-tree-bindings/pmic/sandbox.txt |
| 11 | |
| 12 | Required subnodes: |
| 13 | - ldoN { }; |
| 14 | - buckN { }; |
| 15 | |
| 16 | The sandbox PMIC can support: ldo1, ldo2, buck1, buck2. |
| 17 | |
| 18 | For each PMIC's regulator subnode, there is one required property: |
| 19 | - regulator-name: used for regulator uclass platform data '.name' |
| 20 | |
| 21 | Optional: |
| 22 | - regulator-min-microvolt: minimum allowed Voltage to set |
| 23 | - regulator-max-microvolt: minimum allowed Voltage to set |
| 24 | - regulator-min-microamps: minimum allowed Current limit to set (LDO1/BUCK1) |
| 25 | - regulator-max-microamps: minimum allowed Current limit to set (LDO1/BUCK1) |
| 26 | - regulator-always-on: regulator should be never disabled |
| 27 | - regulator-boot-on: regulator should be enabled by the bootloader |
| 28 | |
| 29 | Example PMIC's regulator subnodes: |
| 30 | |
| 31 | ldo1 { |
| 32 | regulator-name = "VDD_1.0V"; |
| 33 | regulator-min-microvolt = <1000000>; |
| 34 | regulator-max-microvolt = <1200000>; |
| 35 | regulator-min-microamps = <100000>; |
| 36 | regulator-max-microamps = <400000>; |
| 37 | regulator-always-on; |
| 38 | }; |
| 39 | |
| 40 | buck2 { |
| 41 | regulator-name = "VDD_1.8V"; |
| 42 | regulator-min-microvolt = <1800000>; |
| 43 | regulator-max-microvolt = <1800000>; |
| 44 | regulator-boot-on; |
| 45 | }; |