| .. | .. |
|---|
| 15 | 15 | - inl67-supply: The input supply for REG_LDO3 and REG_LDO4 |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | Any standard regulator properties can be used to configure the single regulator. |
|---|
| 18 | +regulator-initial-mode, regulator-allowed-modes and regulator-mode could be |
|---|
| 19 | +specified using mode values from dt-bindings/regulator/active-semi,8945a-regulator.h |
|---|
| 20 | +file. |
|---|
| 18 | 21 | |
|---|
| 19 | 22 | The valid names for regulators are: |
|---|
| 20 | 23 | REG_DCDC1, REG_DCDC2, REG_DCDC3, REG_LDO1, REG_LDO2, REG_LDO3, REG_LDO4. |
|---|
| 21 | 24 | |
|---|
| 22 | 25 | Example: |
|---|
| 26 | + |
|---|
| 27 | +#include <dt-bindings/regulator/active-semi,8945a-regulator.h> |
|---|
| 28 | + |
|---|
| 23 | 29 | pmic@5b { |
|---|
| 24 | 30 | compatible = "active-semi,act8945a"; |
|---|
| 25 | 31 | reg = <0x5b>; |
|---|
| .. | .. |
|---|
| 32 | 38 | regulator-min-microvolt = <1350000>; |
|---|
| 33 | 39 | regulator-max-microvolt = <1350000>; |
|---|
| 34 | 40 | regulator-always-on; |
|---|
| 41 | + |
|---|
| 42 | + regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>, |
|---|
| 43 | + <ACT8945A_REGULATOR_MODE_LOWPOWER>; |
|---|
| 44 | + regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>; |
|---|
| 45 | + |
|---|
| 46 | + regulator-state-mem { |
|---|
| 47 | + regulator-on-in-suspend; |
|---|
| 48 | + regulator-suspend-min-microvolt=<1400000>; |
|---|
| 49 | + regulator-suspend-max-microvolt=<1400000>; |
|---|
| 50 | + regulator-changeable-in-suspend; |
|---|
| 51 | + regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>; |
|---|
| 52 | + }; |
|---|
| 35 | 53 | }; |
|---|
| 36 | 54 | |
|---|
| 37 | 55 | vdd_1v2_reg: REG_DCDC2 { |
|---|
| .. | .. |
|---|
| 39 | 57 | regulator-min-microvolt = <1100000>; |
|---|
| 40 | 58 | regulator-max-microvolt = <1300000>; |
|---|
| 41 | 59 | regulator-always-on; |
|---|
| 60 | + |
|---|
| 61 | + regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>, |
|---|
| 62 | + <ACT8945A_REGULATOR_MODE_LOWPOWER>; |
|---|
| 63 | + regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>; |
|---|
| 64 | + |
|---|
| 65 | + regulator-state-mem { |
|---|
| 66 | + regulator-off-in-suspend; |
|---|
| 67 | + }; |
|---|
| 42 | 68 | }; |
|---|
| 43 | 69 | |
|---|
| 44 | 70 | vdd_3v3_reg: REG_DCDC3 { |
|---|
| .. | .. |
|---|
| 53 | 79 | regulator-min-microvolt = <2500000>; |
|---|
| 54 | 80 | regulator-max-microvolt = <2500000>; |
|---|
| 55 | 81 | regulator-always-on; |
|---|
| 82 | + |
|---|
| 83 | + regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>, |
|---|
| 84 | + <ACT8945A_REGULATOR_MODE_LOWPOWER>; |
|---|
| 85 | + regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>; |
|---|
| 86 | + |
|---|
| 87 | + regulator-state-mem { |
|---|
| 88 | + regulator-off-in-suspend; |
|---|
| 89 | + }; |
|---|
| 56 | 90 | }; |
|---|
| 57 | 91 | |
|---|
| 58 | 92 | vdd_3v3_lp_reg: REG_LDO2 { |
|---|