aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Zhong <zyw@rock-chips.com>2014-12-01 03:52:20 -0500
committerHeiko Stuebner <heiko@sntech.de>2014-12-31 10:19:18 -0500
commit5963e106df7b601a8f23cbbaac1420e4c740ada6 (patch)
tree4b78ad46f2c2a6f1568d316c5bab94a6200ec1fc
parenteecfe981cecd82791a72668a416727cb50935bdb (diff)
ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808
Add suspend-voltages and necessary pin-states for suspend on rk3288-evb-rk808 boards. global_pwroff would be pulled high when RK3288 entering suspend, this pin is a sleep signal for RK808, so RK808 could goto sleep mode, and some regulators would be disable. Signed-off-by: Chris Zhong <zyw@rock-chips.com> Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm/boot/dts/rk3288-evb-rk808.dts53
1 files changed, 52 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts
index d8c775e6d5fe..d453ddd4b476 100644
--- a/arch/arm/boot/dts/rk3288-evb-rk808.dts
+++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts
@@ -31,7 +31,7 @@
31 interrupt-parent = <&gpio0>; 31 interrupt-parent = <&gpio0>;
32 interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 32 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
33 pinctrl-names = "default"; 33 pinctrl-names = "default";
34 pinctrl-0 = <&pmic_int>; 34 pinctrl-0 = <&pmic_int &global_pwroff>;
35 rockchip,system-power-controller; 35 rockchip,system-power-controller;
36 wakeup-source; 36 wakeup-source;
37 #clock-cells = <1>; 37 #clock-cells = <1>;
@@ -50,6 +50,9 @@
50 regulator-min-microvolt = <750000>; 50 regulator-min-microvolt = <750000>;
51 regulator-max-microvolt = <1350000>; 51 regulator-max-microvolt = <1350000>;
52 regulator-name = "vdd_arm"; 52 regulator-name = "vdd_arm";
53 regulator-state-mem {
54 regulator-off-in-suspend;
55 };
53 }; 56 };
54 57
55 vdd_gpu: DCDC_REG2 { 58 vdd_gpu: DCDC_REG2 {
@@ -58,12 +61,19 @@
58 regulator-min-microvolt = <850000>; 61 regulator-min-microvolt = <850000>;
59 regulator-max-microvolt = <1250000>; 62 regulator-max-microvolt = <1250000>;
60 regulator-name = "vdd_gpu"; 63 regulator-name = "vdd_gpu";
64 regulator-state-mem {
65 regulator-on-in-suspend;
66 regulator-suspend-microvolt = <1000000>;
67 };
61 }; 68 };
62 69
63 vcc_ddr: DCDC_REG3 { 70 vcc_ddr: DCDC_REG3 {
64 regulator-always-on; 71 regulator-always-on;
65 regulator-boot-on; 72 regulator-boot-on;
66 regulator-name = "vcc_ddr"; 73 regulator-name = "vcc_ddr";
74 regulator-state-mem {
75 regulator-on-in-suspend;
76 };
67 }; 77 };
68 78
69 vcc_io: DCDC_REG4 { 79 vcc_io: DCDC_REG4 {
@@ -72,6 +82,10 @@
72 regulator-min-microvolt = <3300000>; 82 regulator-min-microvolt = <3300000>;
73 regulator-max-microvolt = <3300000>; 83 regulator-max-microvolt = <3300000>;
74 regulator-name = "vcc_io"; 84 regulator-name = "vcc_io";
85 regulator-state-mem {
86 regulator-on-in-suspend;
87 regulator-suspend-microvolt = <3300000>;
88 };
75 }; 89 };
76 90
77 vccio_pmu: LDO_REG1 { 91 vccio_pmu: LDO_REG1 {
@@ -80,6 +94,10 @@
80 regulator-min-microvolt = <3300000>; 94 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>; 95 regulator-max-microvolt = <3300000>;
82 regulator-name = "vccio_pmu"; 96 regulator-name = "vccio_pmu";
97 regulator-state-mem {
98 regulator-on-in-suspend;
99 regulator-suspend-microvolt = <3300000>;
100 };
83 }; 101 };
84 102
85 vcc_tp: LDO_REG2 { 103 vcc_tp: LDO_REG2 {
@@ -88,6 +106,9 @@
88 regulator-min-microvolt = <3300000>; 106 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>; 107 regulator-max-microvolt = <3300000>;
90 regulator-name = "vcc_tp"; 108 regulator-name = "vcc_tp";
109 regulator-state-mem {
110 regulator-off-in-suspend;
111 };
91 }; 112 };
92 113
93 vdd_10: LDO_REG3 { 114 vdd_10: LDO_REG3 {
@@ -96,6 +117,10 @@
96 regulator-min-microvolt = <1000000>; 117 regulator-min-microvolt = <1000000>;
97 regulator-max-microvolt = <1000000>; 118 regulator-max-microvolt = <1000000>;
98 regulator-name = "vdd_10"; 119 regulator-name = "vdd_10";
120 regulator-state-mem {
121 regulator-on-in-suspend;
122 regulator-suspend-microvolt = <1000000>;
123 };
99 }; 124 };
100 125
101 vcc18_lcd: LDO_REG4 { 126 vcc18_lcd: LDO_REG4 {
@@ -104,6 +129,10 @@
104 regulator-min-microvolt = <1800000>; 129 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>; 130 regulator-max-microvolt = <1800000>;
106 regulator-name = "vcc18_lcd"; 131 regulator-name = "vcc18_lcd";
132 regulator-state-mem {
133 regulator-on-in-suspend;
134 regulator-suspend-microvolt = <1800000>;
135 };
107 }; 136 };
108 137
109 vccio_sd: LDO_REG5 { 138 vccio_sd: LDO_REG5 {
@@ -112,6 +141,10 @@
112 regulator-min-microvolt = <1800000>; 141 regulator-min-microvolt = <1800000>;
113 regulator-max-microvolt = <3300000>; 142 regulator-max-microvolt = <3300000>;
114 regulator-name = "vccio_sd"; 143 regulator-name = "vccio_sd";
144 regulator-state-mem {
145 regulator-on-in-suspend;
146 regulator-suspend-microvolt = <3300000>;
147 };
115 }; 148 };
116 149
117 vdd10_lcd: LDO_REG6 { 150 vdd10_lcd: LDO_REG6 {
@@ -120,6 +153,10 @@
120 regulator-min-microvolt = <1000000>; 153 regulator-min-microvolt = <1000000>;
121 regulator-max-microvolt = <1000000>; 154 regulator-max-microvolt = <1000000>;
122 regulator-name = "vdd10_lcd"; 155 regulator-name = "vdd10_lcd";
156 regulator-state-mem {
157 regulator-on-in-suspend;
158 regulator-suspend-microvolt = <1000000>;
159 };
123 }; 160 };
124 161
125 vcc_18: LDO_REG7 { 162 vcc_18: LDO_REG7 {
@@ -128,6 +165,10 @@
128 regulator-min-microvolt = <1800000>; 165 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <1800000>; 166 regulator-max-microvolt = <1800000>;
130 regulator-name = "vcc_18"; 167 regulator-name = "vcc_18";
168 regulator-state-mem {
169 regulator-on-in-suspend;
170 regulator-suspend-microvolt = <1800000>;
171 };
131 }; 172 };
132 173
133 vcca_codec: LDO_REG8 { 174 vcca_codec: LDO_REG8 {
@@ -136,18 +177,28 @@
136 regulator-min-microvolt = <3300000>; 177 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>; 178 regulator-max-microvolt = <3300000>;
138 regulator-name = "vcca_codec"; 179 regulator-name = "vcca_codec";
180 regulator-state-mem {
181 regulator-on-in-suspend;
182 regulator-suspend-microvolt = <3300000>;
183 };
139 }; 184 };
140 185
141 vcc_wl: SWITCH_REG1 { 186 vcc_wl: SWITCH_REG1 {
142 regulator-always-on; 187 regulator-always-on;
143 regulator-boot-on; 188 regulator-boot-on;
144 regulator-name = "vcc_wl"; 189 regulator-name = "vcc_wl";
190 regulator-state-mem {
191 regulator-on-in-suspend;
192 };
145 }; 193 };
146 194
147 vcc_lcd: SWITCH_REG2 { 195 vcc_lcd: SWITCH_REG2 {
148 regulator-always-on; 196 regulator-always-on;
149 regulator-boot-on; 197 regulator-boot-on;
150 regulator-name = "vcc_lcd"; 198 regulator-name = "vcc_lcd";
199 regulator-state-mem {
200 regulator-on-in-suspend;
201 };
151 }; 202 };
152 }; 203 };
153 }; 204 };