blob: e39a72a797ad0b92c66ccebe21f7082534c078c3 [file] [log] [blame]
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -06001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13/include/ "skeleton.dtsi"
14
15/ {
16 qcom,spm@f9089000 {
17 compatible = "qcom,spm-v2";
18 #address-cells = <1>;
19 #size-cells = <1>;
20 reg = <0xf9089000 0x1000>;
21 qcom,core-id = <0>;
22 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060023 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060024 qcom,saw2-avs-ctl = <0>;
25 qcom,saw2-avs-hysteresis = <0>;
26 qcom,saw2-avs-limit = <0>;
27 qcom,saw2-avs-dly= <0>;
28 qcom,saw2-spm-dly= <0x20000400>;
29 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060030 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060031 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
32 10 0b 30 06 26 30 0f];
33 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
34 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060035 };
36
37 qcom,spm@f9099000 {
38 compatible = "qcom,spm-v2";
39 #address-cells = <1>;
40 #size-cells = <1>;
41 reg = <0xf9099000 0x1000>;
42 qcom,core-id = <1>;
43 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060044 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060045 qcom,saw2-avs-ctl = <0>;
46 qcom,saw2-avs-hysteresis = <0>;
47 qcom,saw2-avs-limit = <0>;
48 qcom,saw2-avs-dly= <0>;
49 qcom,saw2-spm-dly= <0x20000400>;
50 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060051 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060052 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
53 10 0b 30 06 26 30 0f];
54 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
55 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060056 };
57
58 qcom,spm@f90a9000 {
59 compatible = "qcom,spm-v2";
60 #address-cells = <1>;
61 #size-cells = <1>;
62 reg = <0xf90a9000 0x1000>;
63 qcom,core-id = <2>;
64 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060065 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060066 qcom,saw2-avs-ctl = <0>;
67 qcom,saw2-avs-hysteresis = <0>;
68 qcom,saw2-avs-limit = <0>;
69 qcom,saw2-avs-dly= <0>;
70 qcom,saw2-spm-dly= <0x20000400>;
71 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060072 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060073 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
74 10 0b 30 06 26 30 0f];
75 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
76 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060077 };
78
79 qcom,spm@f90b9000 {
80 compatible = "qcom,spm-v2";
81 #address-cells = <1>;
82 #size-cells = <1>;
83 reg = <0xf90b9000 0x1000>;
84 qcom,core-id = <3>;
85 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060086 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060087 qcom,saw2-avs-ctl = <0>;
88 qcom,saw2-avs-hysteresis = <0>;
89 qcom,saw2-avs-limit = <0>;
90 qcom,saw2-avs-dly= <0>;
91 qcom,saw2-spm-dly= <0x20000400>;
92 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060093 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060094 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
95 10 0b 30 06 26 30 0f];
96 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
97 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060098 };
99
100 qcom,spm@f9012000 {
101 compatible = "qcom,spm-v2";
102 #address-cells = <1>;
103 #size-cells = <1>;
104 reg = <0xf9012000 0x1000>;
105 qcom,core-id = <0xffff>; /* L2/APCS SAW */
106 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600107 qcom,saw2-cfg = <0x14>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600108 qcom,saw2-avs-ctl = <0>;
109 qcom,saw2-avs-hysteresis = <0>;
110 qcom,saw2-avs-limit = <0>;
111 qcom,saw2-avs-dly= <0>;
112 qcom,saw2-spm-dly= <0x20000400>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600113 qcom,saw2-spm-ctl = <0x1>;
Praveen Chidambaram32e3a9e2012-08-22 11:32:52 -0600114 qcom,saw2-pmic-data0 = <0x02030080>;
115 qcom,saw2-pmic-data1 = <0x00030000>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600116 qcom,vctl-timeout-us = <50>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600117 qcom,vctl-port = <0x0>;
118 qcom,phase-port = <0x1>;
Mahesh Sivasubramanian84743322012-09-11 12:22:39 -0600119 qcom,saw2-spm-cmd-ret = [00 20 03 22 00 0f];
Mahesh Sivasubramanianb9297082012-10-03 18:01:26 -0600120 qcom,saw2-spm-cmd-gdhs = [00 20 32 42 07 44 22 50 02 32 50 0f];
121 qcom,saw2-spm-cmd-pc = [00 10 32 b0 11 42 07 01 b0 12 44
122 50 02 32 50 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600123 };
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600124
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600125 qcom,lpm-resources {
126 compatible = "qcom,lpm-resources";
127 #address-cells = <1>;
128 #size-cells = <0>;
129
130 qcom,lpm-resources@0 {
131 reg = <0x0>;
132 qcom,name = "vdd-dig";
Girish Mahadevana9964a52012-06-29 10:14:09 -0600133 qcom,type = <0x62706d73>; /* "smpb" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600134 qcom,id = <0x02>;
Girish Mahadevana9964a52012-06-29 10:14:09 -0600135 qcom,key = <0x6e726f63>; /* "corn" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600136 };
137
138 qcom,lpm-resources@1 {
139 reg = <0x1>;
140 qcom,name = "vdd-mem";
Girish Mahadevana9964a52012-06-29 10:14:09 -0600141 qcom,type = <0x62706d73>; /* "smpb" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600142 qcom,id = <0x01>;
Girish Mahadevana9964a52012-06-29 10:14:09 -0600143 qcom,key = <0x7675>; /* "uv" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600144 };
145
146 qcom,lpm-resources@2 {
147 reg = <0x2>;
148 qcom,name = "pxo";
Girish Mahadevana9964a52012-06-29 10:14:09 -0600149 qcom,type = <0x306b6c63>; /* "clk0" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600150 qcom,id = <0x00>;
Girish Mahadevana9964a52012-06-29 10:14:09 -0600151 qcom,key = <0x62616e45>; /* "Enab" */
Girish Mahadevan40abbe12012-04-25 14:58:13 -0600152 };
153 };
154
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600155 qcom,lpm-levels {
156 compatible = "qcom,lpm-levels";
157 #address-cells = <1>;
158 #size-cells = <0>;
159
160 qcom,lpm-level@0 {
161 reg = <0x0>;
162 qcom,mode = <0>; /* MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT */
163 qcom,xo = <1>; /* ON */
164 qcom,l2 = <3>; /* ACTIVE */
165 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
166 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600167 qcom,vdd-dig-upper-bound = <5>; /* MAX */
168 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600169 qcom,latency-us = <100>;
170 qcom,ss-power = <650>;
171 qcom,energy-overhead = <801>;
172 qcom,time-overhead = <200>;
173 };
174
175 qcom,lpm-level@1 {
176 reg = <0x1>;
177 qcom,mode = <2>; /* MSM_PM_SLEEP_MODE_STANDALONE_POWER_COLLAPSE */
178 qcom,xo = <1>; /* ON */
179 qcom,l2 = <3>; /* ACTIVE */
180 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
181 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600182 qcom,vdd-dig-upper-bound = <5>; /* MAX */
183 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600184 qcom,latency-us = <2000>;
185 qcom,ss-power = <200>;
186 qcom,energy-overhead = <576000>;
187 qcom,time-overhead = <2000>;
188 };
189
190 qcom,lpm-level@2 {
191 reg = <0x2>;
192 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
193 qcom,xo = <1>; /* ON */
194 qcom,l2 = <1>; /* GDHS */
195 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
196 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600197 qcom,vdd-dig-upper-bound = <5>; /* MAX */
198 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600199 qcom,latency-us = <8500>;
200 qcom,ss-power = <51>;
201 qcom,energy-overhead = <1122000>;
202 qcom,time-overhead = <8500>;
203 };
204
205 qcom,lpm-level@3 {
206 reg = <0x3>;
207 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
208 qcom,xo = <1>; /* ON */
209 qcom,l2 = <0>; /* OFF */
210 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
211 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600212 qcom,vdd-dig-upper-bound = <5>; /* MAX */
213 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600214 qcom,latency-us = <9000>;
215 qcom,ss-power = <51>;
216 qcom,energy-overhead = <1130300>;
217 qcom,time-overhead = <9000>;
218 };
219
220 qcom,lpm-level@4 {
221 reg = <0x4>;
222 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
223 qcom,xo = <1>; /* ON */
224 qcom,l2 = <0>; /* OFF */
225 qcom,vdd-mem-upper-bound = <1050000>; /* ACTIVE */
226 qcom,vdd-mem-lower-bound = <750000>; /* RETENTION HIGH */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600227 qcom,vdd-dig-upper-bound = <3>; /* ACTIVE */
228 qcom,vdd-dig-lower-bound = <2>; /* RETENTION HIGH */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600229 qcom,latency-us = <10000>;
230 qcom,ss-power = <51>;
231 qcom,energy-overhead = <1130300>;
232 qcom,time-overhead = <10000>;
233 };
234
235 qcom,lpm-level@5 {
236 reg = <0x5>;
237 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
238 qcom,xo = <0>; /* OFF */
239 qcom,l2 = <1>; /* GDHS */
240 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
241 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600242 qcom,vdd-dig-upper-bound = <5>; /* MAX */
243 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600244 qcom,latency-us = <12000>;
245 qcom,ss-power = <14>;
246 qcom,energy-overhead = <2205900>;
247 qcom,time-overhead = <12000>;
248 };
249
250 qcom,lpm-level@6 {
251 reg = <0x6>;
252 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
253 qcom,xo = <0>; /* OFF */
254 qcom,l2 = <0>; /* OFF */
255 qcom,vdd-mem-upper-bound = <1150000>; /* MAX */
256 qcom,vdd-mem-lower-bound = <1050000>; /* ACTIVE */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600257 qcom,vdd-dig-upper-bound = <5>; /* MAX */
258 qcom,vdd-dig-lower-bound = <3>; /* ACTIVE */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600259 qcom,latency-us = <18000>;
260 qcom,ss-power = <12>;
261 qcom,energy-overhead = <2364250>;
262 qcom,time-overhead = <18000>;
263 };
264
265 qcom,lpm-level@7 {
266 reg = <0x7>;
267 qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
268 qcom,xo = <0>; /* OFF */
269 qcom,l2 = <0>; /* OFF */
270 qcom,vdd-mem-upper-bound = <1050000>; /* ACTIVE */
271 qcom,vdd-mem-lower-bound = <750000>; /* RETENTION HIGH */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600272 qcom,vdd-dig-upper-bound = <3>; /* ACTIVE */
273 qcom,vdd-dig-lower-bound = <2>; /* RETIONTION HIGH */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600274 qcom,latency-us = <23500>;
275 qcom,ss-power = <10>;
276 qcom,energy-overhead = <2667000>;
277 qcom,time-overhead = <23500>;
278 };
279
280 qcom,lpm-level@8 {
281 reg = <0x8>;
282 qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
283 qcom,xo = <0>; /* OFF */
284 qcom,l2 = <0>; /* OFF */
285 qcom,vdd-mem-upper-bound = <750000>; /* RETENTION HIGH */
286 qcom,vdd-mem-lower-bound = <750000>; /* RETENTION LOW */
Girish Mahadevana9964a52012-06-29 10:14:09 -0600287 qcom,vdd-dig-upper-bound = <2>; /* RETENTION HIGH */
288 qcom,vdd-dig-lower-bound = <0>; /* RETENTION LOW */
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600289 qcom,latency-us = <29700>;
290 qcom,ss-power = <5>;
291 qcom,energy-overhead = <2867000>;
292 qcom,time-overhead = <30000>;
293 };
294 };
Praveen Chidambaram7d4167b2012-04-30 17:37:48 -0600295
296 qcom,pm-boot {
297 compatible = "qcom,pm-boot";
298 qcom,mode = <0>; /* MSM_PM_BOOT_CONFIG_TZ */
299 };
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600300
301 qcom,mpm@fc4281d0 {
302 compatible = "qcom,mpm-v2";
303 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
Mahesh Sivasubramanian75178902012-08-24 19:43:50 -0600304 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600305 reg-names = "vmpm", "ipc";
306 interrupts = <0 171 1>;
307
Mahesh Sivasubramanian75178902012-08-24 19:43:50 -0600308 qcom,ipc-bit-offset = <1>;
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600309
310 qcom,gic-parent = <&intc>;
Mahesh Sivasubramanian25cb44d2012-09-07 11:16:02 -0600311 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600312 <53 104>, /* mdss_irq */
Mahesh Sivasubramanian512efcc2012-09-07 11:16:02 -0600313 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600314 <0xff 57>, /* mss_to_apps_irq(0) */
315 <0xff 58>, /* mss_to_apps_irq(1) */
316 <0xff 59>, /* mss_to_apps_irq(2) */
317 <0xff 60>, /* mss_to_apps_irq(3) */
318 <0xff 173>, /* o_wcss_apss_smd_hi */
319 <0xff 174>, /* o_wcss_apss_smd_med */
320 <0xff 175>, /* o_wcss_apss_smd_low */
321 <0xff 176>, /* o_wcss_apss_smsm_irq */
322 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
323 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
324 <0xff 179>, /* o_wcss_apss_asic_intr
325
326 <0xff 188>, /* lpass_irq_out_apcs(0) */
327 <0xff 189>, /* lpass_irq_out_apcs(1) */
328 <0xff 190>, /* lpass_irq_out_apcs(2) */
329 <0xff 191>, /* lpass_irq_out_apcs(3) */
330 <0xff 192>, /* lpass_irq_out_apcs(4) */
331 <0xff 193>, /* lpass_irq_out_apcs(5) */
332 <0xff 194>, /* lpass_irq_out_apcs(6) */
333 <0xff 195>, /* lpass_irq_out_apcs(7) */
334 <0xff 196>, /* lpass_irq_out_apcs(8) */
335 <0xff 197>, /* lpass_irq_out_apcs(9) */
336 <0xff 200>, /* rpm_ipc(4) */
337 <0xff 201>, /* rpm_ipc(5) */
338 <0xff 202>, /* rpm_ipc(6) */
339 <0xff 203>, /* rpm_ipc(7) */
340 <0xff 204>, /* rpm_ipc(24) */
341 <0xff 205>, /* rpm_ipc(25) */
342 <0xff 206>, /* rpm_ipc(26) */
343 <0xff 207>, /* rpm_ipc(27) */
344 <0xff 240>; /* summary_irq_kpss */
345
346 qcom,gpio-parent = <&msmgpio>;
347 qcom,gpio-map = <3 102>,
348 <4 1 >,
349 <5 5 >,
350 <6 9 >,
351 <7 18>,
352 <8 20>,
353 <9 24>,
354 <10 27>,
355 <11 28>,
356 <12 34>,
357 <13 35>,
358 <14 37>,
359 <15 42>,
360 <16 44>,
361 <17 46>,
362 <18 50>,
363 <19 54>,
364 <20 59>,
365 <21 61>,
366 <22 62>,
367 <23 64>,
368 <24 65>,
369 <25 66>,
370 <26 67>,
371 <27 68>,
372 <28 71>,
373 <29 72>,
374 <30 73>,
375 <31 74>,
376 <32 75>,
377 <33 77>,
378 <34 79>,
379 <35 80>,
380 <36 82>,
381 <37 86>,
382 <38 92>,
383 <39 93>,
384 <40 95>;
385 };
Mahesh Sivasubramanianaa684392012-08-14 14:56:33 -0600386
Mahesh Sivasubramanianfdc84f32012-09-20 21:55:44 -0600387 qcom,pc-cntr@fe805664 {
Mahesh Sivasubramanianaa684392012-08-14 14:56:33 -0600388 compatible = "qcom,pc-cntr";
Mahesh Sivasubramanianfdc84f32012-09-20 21:55:44 -0600389 reg = <0xfe805664 0x40>;
Mahesh Sivasubramanianaa684392012-08-14 14:56:33 -0600390 };
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600391};