blob: e8849f6ec1284b6baf5c222042f2e54d9f5ef6f2 [file] [log] [blame]
Praveen Chidambarama1f98282012-11-29 09:56:57 -07001/* Copyright (c) 2013 The Linux Foundation. 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>;
23 qcom,saw2-cfg = <0x01>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080024 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070025 qcom,saw2-spm-ctl = <0x0>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080026 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
27 qcom,saw2-spm-cmd-spc = [00 20 10 80 30 90 5b 60 03 60 3b 76 76
28 0b 94 5b 80 10 06 26 30 0f];
29 qcom,saw2-spm-cmd-pc = [00 20 10 80 30 90 5b 60 07 60 3b 76 76
30 0b 94 5b 80 10 06 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070031 };
32
33 qcom,spm@f9099000 {
34 compatible = "qcom,spm-v2";
35 #address-cells = <1>;
36 #size-cells = <1>;
37 reg = <0xf9099000 0x1000>;
38 qcom,core-id = <1>;
39 qcom,saw2-ver-reg = <0xfd0>;
40 qcom,saw2-cfg = <0x01>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080041 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070042 qcom,saw2-spm-ctl = <0x0>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080043 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
44 qcom,saw2-spm-cmd-spc = [00 20 10 80 30 90 5b 60 03 60 3b 76 76
45 0b 94 5b 80 10 06 26 30 0f];
46 qcom,saw2-spm-cmd-pc = [00 20 10 80 30 90 5b 60 07 60 3b 76 76
47 0b 94 5b 80 10 06 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070048 };
49
50 qcom,spm@f90a9000 {
51 compatible = "qcom,spm-v2";
52 #address-cells = <1>;
53 #size-cells = <1>;
54 reg = <0xf90a9000 0x1000>;
55 qcom,core-id = <2>;
56 qcom,saw2-ver-reg = <0xfd0>;
57 qcom,saw2-cfg = <0x01>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080058 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070059 qcom,saw2-spm-ctl = <0x0>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080060 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
61 qcom,saw2-spm-cmd-spc = [00 20 10 80 30 90 5b 60 03 60 3b 76 76
62 0b 94 5b 80 10 06 26 30 0f];
63 qcom,saw2-spm-cmd-pc = [00 20 10 80 30 90 5b 60 07 60 3b 76 76
64 0b 94 5b 80 10 06 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070065 };
66
67 qcom,spm@f90b9000 {
68 compatible = "qcom,spm-v2";
69 #address-cells = <1>;
70 #size-cells = <1>;
71 reg = <0xf90b9000 0x1000>;
72 qcom,core-id = <3>;
73 qcom,saw2-ver-reg = <0xfd0>;
74 qcom,saw2-cfg = <0x01>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080075 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070076 qcom,saw2-spm-ctl = <0x0>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080077 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
78 qcom,saw2-spm-cmd-spc = [00 20 10 80 30 90 5b 60 03 60 3b 76 76
79 0b 94 5b 80 10 06 26 30 0f];
80 qcom,saw2-spm-cmd-pc = [00 20 10 80 30 90 5b 60 07 60 3b 76 76
81 0b 94 5b 80 10 06 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070082 };
83
84 qcom,spm@f9012000 {
85 compatible = "qcom,spm-v2";
86 #address-cells = <1>;
87 #size-cells = <1>;
88 reg = <0xf9012000 0x1000>;
89 qcom,core-id = <0xffff>; /* L2/APCS SAW */
90 qcom,saw2-ver-reg = <0xfd0>;
91 qcom,saw2-cfg = <0x14>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080092 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070093 qcom,saw2-spm-ctl = <0x0>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -070094 qcom,saw2-pmic-data0 = <0x02030080>;
95 qcom,saw2-pmic-data1 = <0x00030000>;
96 qcom,vctl-timeout-us = <50>;
97 qcom,vctl-port = <0x0>;
98 qcom,phase-port = <0x1>;
99 qcom,pfm-port = <0x2>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -0800100 qcom,saw2-spm-cmd-ret = [00 03 00 7b 0f];
101 qcom,saw2-spm-cmd-pc = [00 32 b0 10 e0 d0 6b c0 42 f0
102 11 07 01 b0 4e c0 d0 12 e0 6b 50 02 32
103 50 f0 7b 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700104 };
105
106 qcom,lpm-resources {
107 compatible = "qcom,lpm-resources";
108 #address-cells = <1>;
109 #size-cells = <0>;
110
111 qcom,lpm-resources@0 {
112 reg = <0x0>;
113 qcom,name = "vdd-dig";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700114 qcom,type = <0x61706d73>; /* "smpa" */
115 qcom,id = <0x01>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700116 qcom,key = <0x6e726f63>; /* "corn" */
117 qcom,init-value = <5>; /* Super Turbo */
118 };
119
120 qcom,lpm-resources@1 {
121 reg = <0x1>;
122 qcom,name = "vdd-mem";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700123 qcom,type = <0x616F646C>; /* "ldoa" */
124 qcom,id = <0x03>;
125 qcom,key = <0x6e726f63>; /* "corn" */
126 qcom,init-value = <3>; /* Active */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700127 };
128
129 qcom,lpm-resources@2 {
130 reg = <0x2>;
131 qcom,name = "pxo";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700132 qcom,type = <0x306b6c63>; /* "clk0" */
133 qcom,id = <0x00>;
134 qcom,key = <0x62616e45>; /* "Enab" */
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700135 qcom,init-value = "xo_on";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700136 };
137
138 qcom,lpm-resources@3 {
139 reg = <0x3>;
140 qcom,name = "l2";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700141 qcom,local-resource-type;
142 qcom,init-value = "l2_cache_retention";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700143 };
144 };
145
146 qcom,lpm-levels {
147 compatible = "qcom,lpm-levels";
148 #address-cells = <1>;
149 #size-cells = <0>;
150
151 qcom,lpm-level@0 {
152 reg = <0x0>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700153 qcom,mode = "wfi";
154 qcom,xo = "xo_on";
155 qcom,l2 = "l2_cache_active";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700156 qcom,vdd-mem-upper-bound = <5>; /* SUPER TURBO */
157 qcom,vdd-mem-lower-bound = <3>; /* NORMAL */
158 qcom,vdd-dig-upper-bound = <5>; /* SUPER TURBO */
159 qcom,vdd-dig-lower-bound = <3>; /* NORMAL */
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700160 qcom,irqs-detectable;
161 qcom,gpio-detectable;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700162 qcom,latency-us = <1>;
163 qcom,ss-power = <784>;
164 qcom,energy-overhead = <190000>;
165 qcom,time-overhead = <100>;
166 };
167
168 qcom,lpm-level@1 {
169 reg = <0x1>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700170 qcom,mode = "standalone_pc";
171 qcom,xo = "xo_on";
172 qcom,l2 = "l2_cache_active";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700173 qcom,vdd-mem-upper-bound = <5>; /* SUPER TURBO */
174 qcom,vdd-mem-lower-bound = <3>; /* NORMAL */
175 qcom,vdd-dig-upper-bound = <5>; /* SUPER TURBO */
176 qcom,vdd-dig-lower-bound = <3>; /* NORMAL */
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700177 qcom,irqs-detectable;
178 qcom,gpio-detectable;
179 qcom,latency-us = <3000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700180 qcom,ss-power = <725>;
181 qcom,energy-overhead = <99500>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700182 qcom,time-overhead = <3130>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700183 };
184
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700185 qcom,lpm-level@2 {
186 reg = <0x2>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700187 qcom,mode = "pc";
188 qcom,xo = "xo_on";
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700189 qcom,l2 = "l2_cache_retention";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700190 qcom,vdd-mem-upper-bound = <5>; /* SUPER TURBO */
191 qcom,vdd-mem-lower-bound = <3>; /* NORMAL */
192 qcom,vdd-dig-upper-bound = <5>; /* SUPER TURBO */
193 qcom,vdd-dig-lower-bound = <3>; /* NORMAL */
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700194 qcom,irqs-detectable;
195 qcom,gpio-detectable;
196 qcom,latency-us = <8000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700197 qcom,ss-power = <138>;
198 qcom,energy-overhead = <1208400>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700199 qcom,time-overhead = <9200>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700200 };
201
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700202 qcom,lpm-level@3 {
203 reg = <0x3>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700204 qcom,mode = "pc";
205 qcom,xo = "xo_on";
206 qcom,l2 = "l2_cache_pc";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700207 qcom,vdd-mem-upper-bound = <3>; /* NORMAL */
208 qcom,vdd-mem-lower-bound = <2>; /* SVS SOC */
209 qcom,vdd-dig-upper-bound = <3>; /* NORMAL */
210 qcom,vdd-dig-lower-bound = <2>; /* SVS SOC */
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700211 qcom,irqs-detectable;
212 qcom,gpio-detectable;
213 qcom,latency-us = <9000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700214 qcom,ss-power = <110>;
215 qcom,energy-overhead = <1250300>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700216 qcom,time-overhead = <9500>;
217 };
218
219 qcom,lpm-level@4 {
220 reg = <0x4>;
221 qcom,mode = "pc";
222 qcom,xo = "xo_off";
223 qcom,l2 = "l2_cache_pc";
224 qcom,vdd-mem-upper-bound = <5>; /* SUPER TURBO */
225 qcom,vdd-mem-lower-bound = <3>; /* NORMAL */
226 qcom,vdd-dig-upper-bound = <5>; /* SUPER TURBO */
227 qcom,vdd-dig-lower-bound = <3>; /* NORMAL */
228 qcom,latency-us = <16300>;
229 qcom,ss-power = <63>;
230 qcom,energy-overhead = <2128000>;
231 qcom,time-overhead = <24200>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700232 };
233
234 qcom,lpm-level@5 {
235 reg = <0x5>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700236 qcom,mode = "pc";
237 qcom,xo = "xo_off";
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700238 qcom,l2 = "l2_cache_pc";
239 qcom,vdd-mem-upper-bound = <3>; /* NORMAL */
240 qcom,vdd-mem-lower-bound = <2>; /* SVS SOC */
241 qcom,vdd-dig-upper-bound = <3>; /* NORMAL */
242 qcom,vdd-dig-lower-bound = <2>; /* SVS SOC */
243 qcom,latency-us = <24000>;
244 qcom,ss-power = <10>;
245 qcom,energy-overhead = <3202600>;
246 qcom,time-overhead = <33000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700247 };
248
249 qcom,lpm-level@6 {
250 reg = <0x6>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700251 qcom,mode = "pc";
252 qcom,xo = "xo_off";
253 qcom,l2 = "l2_cache_pc";
Priyanka Mathur759f1ea2013-03-18 11:53:24 -0700254 qcom,vdd-mem-upper-bound = <2>; /* SVS SOC */
255 qcom,vdd-mem-lower-bound = <0>; /* RETENTION */
256 qcom,vdd-dig-upper-bound = <2>; /* SVS SOC */
257 qcom,vdd-dig-lower-bound = <0>; /* RETENTION */
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700258 qcom,latency-us = <26000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700259 qcom,ss-power = <2>;
260 qcom,energy-overhead = <4252000>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700261 qcom,time-overhead = <38000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700262 };
263 };
264
265 qcom,pm-boot {
266 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700267 qcom,mode = "tz";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700268 };
269
270 qcom,mpm@fc4281d0 {
271 compatible = "qcom,mpm-v2";
272 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
273 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
274 reg-names = "vmpm", "ipc";
275 interrupts = <0 171 1>;
276
277 qcom,ipc-bit-offset = <1>;
278
279 qcom,gic-parent = <&intc>;
280 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
281 <53 104>, /* mdss_irq */
282 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Priyanka Mathur6ad1cb62013-04-02 19:21:03 -0700283 <2 216>, /* tsens_upper_lower_int */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800284 <0xff 56>, /* q6_wdog_expired_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700285 <0xff 57>, /* mss_to_apps_irq(0) */
286 <0xff 58>, /* mss_to_apps_irq(1) */
287 <0xff 59>, /* mss_to_apps_irq(2) */
288 <0xff 60>, /* mss_to_apps_irq(3) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800289 <0xff 61>, /* mss_a2_bam_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700290 <0xff 173>, /* o_wcss_apss_smd_hi */
291 <0xff 174>, /* o_wcss_apss_smd_med */
292 <0xff 175>, /* o_wcss_apss_smd_low */
293 <0xff 176>, /* o_wcss_apss_smsm_irq */
294 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
295 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
296 <0xff 179>, /* o_wcss_apss_asic_intr
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800297 <0xff 181>, /* o_wcss_apss_wdog_bite_and_reset_rdy */
298 <0xff 161>, /* lpass_irq_out_spare[4] /
299 <0xff 162>, /* lpass_irq_out_spare[5]*/
300 <0xff 234>, /* lpass_irq_out_spare[6]*/
301 <0xff 235>, /* lpass_irq_out_spare[7]*/
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700302 <0xff 188>, /* lpass_irq_out_apcs(0) */
303 <0xff 189>, /* lpass_irq_out_apcs(1) */
304 <0xff 190>, /* lpass_irq_out_apcs(2) */
305 <0xff 191>, /* lpass_irq_out_apcs(3) */
306 <0xff 192>, /* lpass_irq_out_apcs(4) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700307 <0xff 194>, /* lpass_irq_out_apcs(6) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700308 <0xff 200>, /* rpm_ipc(4) */
309 <0xff 201>, /* rpm_ipc(5) */
310 <0xff 202>, /* rpm_ipc(6) */
311 <0xff 203>, /* rpm_ipc(7) */
312 <0xff 204>, /* rpm_ipc(24) */
313 <0xff 205>, /* rpm_ipc(25) */
314 <0xff 206>, /* rpm_ipc(26) */
315 <0xff 207>, /* rpm_ipc(27) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800316 <0xff 258>, /* rpm_ipc(28) */
317 <0xff 259>, /* rpm_ipc(29) */
318 <0xff 275>, /* rpm_ipc(30) */
319 <0xff 276>, /* rpm_ipc(31) */
320 <0xff 269>, /* rpm_wdog_expired_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700321 <0xff 240>; /* summary_irq_kpss */
322
323 qcom,gpio-parent = <&msmgpio>;
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800324 qcom,gpio-map = <3 1>,
325 <4 4 >,
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700326 <5 5 >,
327 <6 9 >,
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800328 <7 13>,
329 <8 17>,
330 <9 21>,
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700331 <10 27>,
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800332 <11 29>,
333 <12 31>,
334 <13 33>,
335 <14 35>,
336 <15 37>,
337 <16 38>,
338 <17 39>,
339 <18 41>,
340 <19 46>,
341 <20 48>,
342 <21 49>,
343 <22 50>,
344 <23 51>,
345 <24 52>,
346 <25 54>,
347 <26 62>,
348 <27 63>,
349 <28 64>,
350 <29 65>,
351 <30 66>,
352 <31 67>,
353 <32 68>,
354 <33 69>,
355 <34 71>,
356 <35 72>,
357 <36 106>,
358 <37 107>,
359 <38 108>,
360 <39 109>,
361 <40 110>,
362 <54 111>,
363 <55 113>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700364 };
365
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800366 qcom,pm-8x60@fe805664 {
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700367 compatible = "qcom,pm-8x60";
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800368 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700369 qcom,pc-mode = "tz_l2_int";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700370 qcom,use-sync-timer;
Priyanka Mathur85b52cf2013-04-12 16:54:35 -0700371 qcom,pc-resets-timer;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700372 };
373
Priyanka Mathuref0f4fa2013-04-03 12:40:03 -0700374 qcom,rpm-log@fc19dc00 {
375 compatible = "qcom,rpm-log";
376 reg = <0xfc19dc00 0x4000>;
377 qcom,rpm-addr-phys = <0xfc000000>;
378 qcom,offset-version = <4>;
379 qcom,offset-page-buffer-addr = <36>;
380 qcom,offset-log-len = <40>;
381 qcom,offset-log-len-mask = <44>;
382 qcom,offset-page-indices = <56>;
383 };
384
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700385 qcom,rpm-stats@0xfc19dbd0{
386 compatible = "qcom,rpm-stats";
387 reg = <0xfc19dbd0 0x1000>;
388 reg-names = "phys_addr_base";
389 qcom,sleep-stats-version = <2>;
390 };
391};