| .. | .. |
|---|
| 34 | 34 | - inl67-supply: The input supply for LDO_REG3 and LDO_REG4 |
|---|
| 35 | 35 | |
|---|
| 36 | 36 | Any standard regulator properties can be used to configure the single regulator. |
|---|
| 37 | +regulator-initial-mode, regulator-allowed-modes and regulator-mode could be specified |
|---|
| 38 | +for act8865 using mode values from dt-bindings/regulator/active-semi,8865-regulator.h |
|---|
| 39 | +file. |
|---|
| 37 | 40 | |
|---|
| 38 | 41 | The valid names for regulators are: |
|---|
| 39 | 42 | - for act8846: |
|---|
| .. | .. |
|---|
| 46 | 49 | |
|---|
| 47 | 50 | Example: |
|---|
| 48 | 51 | -------- |
|---|
| 52 | + |
|---|
| 53 | +#include <dt-bindings/regulator/active-semi,8865-regulator.h> |
|---|
| 49 | 54 | |
|---|
| 50 | 55 | i2c1: i2c@f0018000 { |
|---|
| 51 | 56 | pmic: act8865@5b { |
|---|
| .. | .. |
|---|
| 65 | 70 | regulator-name = "VCC_1V2"; |
|---|
| 66 | 71 | regulator-min-microvolt = <1100000>; |
|---|
| 67 | 72 | regulator-max-microvolt = <1300000>; |
|---|
| 68 | | - regulator-suspend-mem-microvolt = <1150000>; |
|---|
| 69 | | - regulator-suspend-standby-microvolt = <1150000>; |
|---|
| 70 | 73 | regulator-always-on; |
|---|
| 74 | + |
|---|
| 75 | + regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>, |
|---|
| 76 | + <ACT8865_REGULATOR_MODE_LOWPOWER>; |
|---|
| 77 | + regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>; |
|---|
| 78 | + |
|---|
| 79 | + regulator-state-mem { |
|---|
| 80 | + regulator-on-in-suspend; |
|---|
| 81 | + regulator-suspend-min-microvolt = <1150000>; |
|---|
| 82 | + regulator-suspend-max-microvolt = <1150000>; |
|---|
| 83 | + regulator-changeable-in-suspend; |
|---|
| 84 | + regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>; |
|---|
| 85 | + }; |
|---|
| 71 | 86 | }; |
|---|
| 72 | 87 | |
|---|
| 73 | 88 | vcc_3v3_reg: DCDC_REG3 { |
|---|
| .. | .. |
|---|
| 82 | 97 | regulator-min-microvolt = <3300000>; |
|---|
| 83 | 98 | regulator-max-microvolt = <3300000>; |
|---|
| 84 | 99 | regulator-always-on; |
|---|
| 100 | + |
|---|
| 101 | + regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>, |
|---|
| 102 | + <ACT8865_REGULATOR_MODE_LOWPOWER>; |
|---|
| 103 | + regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>; |
|---|
| 104 | + |
|---|
| 105 | + regulator-state-mem { |
|---|
| 106 | + regulator-off-in-suspend; |
|---|
| 107 | + }; |
|---|
| 85 | 108 | }; |
|---|
| 86 | 109 | |
|---|
| 87 | 110 | vddfuse_reg: LDO_REG2 { |
|---|