blob: f735b65b7b8d22e4c196a4a017175435eda314a5 [file] [log] [blame]
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -06001/* 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&soc {
14 qcom,spm@f9089000 {
15 compatible = "qcom,spm-v2";
16 #address-cells = <1>;
17 #size-cells = <1>;
18 reg = <0xf9089000 0x1000>;
19 qcom,core-id = <0>;
20 qcom,saw2-ver-reg = <0xfd0>;
21 qcom,saw2-cfg = <0x01>;
22 qcom,saw2-avs-ctl = <0>;
23 qcom,saw2-avs-hysteresis = <0>;
24 qcom,saw2-avs-limit = <0>;
25 qcom,saw2-avs-dly= <0>;
26 qcom,saw2-spm-dly= <0x3C102800>;
27 qcom,saw2-spm-ctl = <0x1>;
28 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
29 qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
30 qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
31 30 06 26 30 0F];
32 qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
33 30 06 26 30 0F];
34 };
35
36 qcom,spm@f9099000 {
37 compatible = "qcom,spm-v2";
38 #address-cells = <1>;
39 #size-cells = <1>;
40 reg = <0xf9099000 0x1000>;
41 qcom,core-id = <1>;
42 qcom,saw2-ver-reg = <0xfd0>;
43 qcom,saw2-cfg = <0x01>;
44 qcom,saw2-avs-ctl = <0>;
45 qcom,saw2-avs-hysteresis = <0>;
46 qcom,saw2-avs-limit = <0>;
47 qcom,saw2-avs-dly= <0>;
48 qcom,saw2-spm-dly= <0x3C102800>;
49 qcom,saw2-spm-ctl = <0x1>;
50 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
51 qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
52 qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
53 30 06 26 30 0F];
54 qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
55 30 06 26 30 0F];
56 };
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>;
65 qcom,saw2-cfg = <0x01>;
66 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= <0x3C102800>;
71 qcom,saw2-spm-ctl = <0x1>;
72 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
73 qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
74 qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
75 30 06 26 30 0F];
76 qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
77 30 06 26 30 0F];
78 };
79
80 qcom,spm@f90b9000 {
81 compatible = "qcom,spm-v2";
82 #address-cells = <1>;
83 #size-cells = <1>;
84 reg = <0xf90b9000 0x1000>;
85 qcom,core-id = <3>;
86 qcom,saw2-ver-reg = <0xfd0>;
87 qcom,saw2-cfg = <0x01>;
88 qcom,saw2-avs-ctl = <0>;
89 qcom,saw2-avs-hysteresis = <0>;
90 qcom,saw2-avs-limit = <0>;
91 qcom,saw2-avs-dly= <0>;
92 qcom,saw2-spm-dly= <0x3C102800>;
93 qcom,saw2-spm-ctl = <0x1>;
94 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
95 qcom,saw2-spm-cmd-ret = [42 1b 00 d8 5B 03 d8 5b 0b 00 42 1b 0f];
96 qcom,saw2-spm-cmd-spc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
97 30 06 26 30 0F];
98 qcom,saw2-spm-cmd-pc = [00 20 80 10 E8 5B 03 3B E8 5B 82 10 0B
99 30 06 26 30 0F];
100 };
101
102 qcom,spm@f9012000 {
103 compatible = "qcom,spm-v2";
104 #address-cells = <1>;
105 #size-cells = <1>;
106 reg = <0xf9012000 0x1000>;
107 qcom,core-id = <0xffff>; /* L2/APCS SAW */
108 qcom,saw2-ver-reg = <0xfd0>;
109 qcom,saw2-cfg = <0x14>;
110 qcom,saw2-avs-ctl = <0>;
111 qcom,saw2-avs-hysteresis = <0>;
112 qcom,saw2-avs-limit = <0>;
113 qcom,saw2-avs-dly= <0>;
114 qcom,saw2-spm-dly= <0x3C102800>;
115 qcom,saw2-spm-ctl = <0x1>;
116 qcom,saw2-pmic-data0 = <0x02030080>;
117 qcom,saw2-pmic-data1 = <0x00030000>;
118 qcom,vctl-timeout-us = <50>;
119 qcom,vctl-port = <0x0>;
120 qcom,phase-port = <0x1>;
121 qcom,pfm-port = <0x2>;
122 qcom,saw2-spm-cmd-ret = [1f 00 03 00 0f];
Matt Wagantall3b337872014-01-29 19:01:52 -0800123 qcom,saw2-spm-cmd-gdhs = [00 32 42 03 44 50 02 32 50 0f];
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600124 qcom,saw2-spm-cmd-pc = [00 10 32 b0 11 42 07 01 b0 12 44
125 50 02 32 50 0f];
Stepan Moskovchenko49364d32013-08-27 17:58:47 -0700126 qcom,L2-spm-is-apcs-master;
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600127 };
128
129 qcom,lpm-levels {
130 compatible = "qcom,lpm-levels";
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600131 qcom,allow-synced-levels;
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600132 qcom,default-l2-state = "l2_cache_retention";
133 #address-cells = <1>;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600134 #size-cells = <1>;
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600135
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600136 qcom,cpu-modes {
137 compatible = "qcom,cpu-modes";
138 qcom,cpu-mode@0 {
139 qcom,mode = "wfi";
140 qcom,latency-us = <1>;
141 qcom,ss-power = <715>;
142 qcom,energy-overhead = <17700>;
143 qcom,time-overhead = <2>;
144 };
145
146 qcom,cpu-mode@1 {
147 qcom,mode = "retention";
148 qcom,latency-us = <35>;
149 qcom,ss-power = <542>;
150 qcom,energy-overhead = <34920>;
151 qcom,time-overhead = <40>;
152 };
153
154 qcom,cpu-mode@2 {
155 qcom,mode = "standalone_pc";
156 qcom,latency-us = <300>;
157 qcom,ss-power = <476>;
158 qcom,energy-overhead = <225300>;
159 qcom,time-overhead = <350>;
160 };
161
162 qcom,cpu-mode@3 {
163 qcom,mode = "pc";
164 qcom,latency-us = <500>;
165 qcom,ss-power = <400>;
166 qcom,energy-overhead = <280000>;
167 qcom,time-overhead = <500>;
168 qcom,use-broadcast-timer;
169 };
170
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600171 };
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600172 qcom,system-modes {
173 compatible = "qcom,system-modes";
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600174
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600175 qcom,system-mode@0 {
176 qcom,l2 = "l2_cache_gdhs";
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530177 qcom,latency-us = <500>;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600178 qcom,ss-power = <163>;
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530179 qcom,energy-overhead = <577736>;
180 qcom,time-overhead = <1000>;
181 qcom,min-cpu-mode= "standalone_pc";
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600182 qcom,sync-cpus;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600183 };
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600184
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600185 qcom,system-mode@1 {
186 qcom,l2 = "l2_cache_pc";
187 qcom,latency-us = <30000>;
188 qcom,ss-power = <83>;
189 qcom,energy-overhead = <2274420>;
190 qcom,time-overhead = <6605>;
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600191 qcom,min-cpu-mode = "pc";
192 qcom,sync-cpus;
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530193 qcom,send-rpm-sleep-set;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600194 };
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600195 };
196 };
197
198 qcom,pm-boot {
199 compatible = "qcom,pm-boot";
200 qcom,mode = "tz";
201 };
202
203 qcom,mpm@fc4281d0 {
204 compatible = "qcom,mpm-v2";
205 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
206 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
207 reg-names = "vmpm", "ipc";
208 interrupts = <0 171 1>;
209
210 qcom,ipc-bit-offset = <1>;
211
212 qcom,gic-parent = <&intc>;
213 qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
214 <47 165>, /* usb30_hs_phy_irq */
215 <50 172>, /* usb1_hs_async_wakeup_irq */
216 <53 104>, /* mdss_irq */
217 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Girish S Ghongdemath9ae57b22013-12-19 13:56:34 -0800218 <0xff 18>, /* APCx_qgicQTmrSecPhysIrptReq */
219 <0xff 19>, /* APCx_qgicQTmrSecPhysIrptReq */
220 <0xff 25>, /* APCx_qgicExtFaultIrptReq */
Saravana Kannandc9ca452014-01-02 10:44:24 -0800221 <0xff 33>, /* APCC_qgicL2PerfMonIrptReq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530222 <0xff 34>, /* APCC_qgicL2ErrorIrptReq */
223 <0xff 35>, /* WDT_barkInt */
224 <0xff 40>, /* qtimer_phy_irq */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600225 <0xff 56>, /* modem_watchdog */
226 <0xff 57>, /* mss_to_apps_irq(0) */
227 <0xff 58>, /* mss_to_apps_irq(1) */
228 <0xff 59>, /* mss_to_apps_irq(2) */
229 <0xff 60>, /* mss_to_apps_irq(3) */
230 <0xff 61>, /* mss_a2_bam_irq */
231 <0xff 70>, /* iommu_pmon_nonsecure_irq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530232 <0xff 74>, /* osmmu_CIrpt[1] */
233 <0xff 75>, /* osmmu_CIrpt[0] */
234 <0xff 77>, /* osmmu_CIrpt[0] */
235 <0xff 78>, /* osmmu_CIrpt[0] */
236 <0xff 79>, /* osmmu_CIrpt[0] */
237 <0xff 94>, /* osmmu_CIrpt[0] */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600238 <0xff 97>, /* iommu_nonsecure_irq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530239 <0xff 99>, /* msm_iommu_pmon_nonsecure_irq */
240 <0xff 102>, /* osmmu_CIrpt[1] */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600241 <0xff 105>, /* iommu_pmon_nonsecure_irq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530242 <0xff 109>, /* ocmem_dm_nonsec_irq */
243 <0xff 126>, /* bam_irq[0] */
Girish S Ghongdemath9ae57b22013-12-19 13:56:34 -0800244 <0xff 140>, /* uart_dm_intr */
Girish S Ghongdemath615c1ab2014-01-22 15:59:29 -0800245 <0xff 146>, /* uart_dm_intr: blsp2_uart_2_irq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530246 <0xff 155>, /* sdcc_irq[0] */
Girish S Ghongdemath9ae57b22013-12-19 13:56:34 -0800247 <0xff 157>, /* sdcc_irq[0] */
248 <0xff 159>, /* sdcc_irq[0] */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530249 <0xff 163>, /* usb30_ee1_irq */
250 <0xff 170>, /* sdcc_pwr_cmd_irq */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600251 <0xff 173>, /* o_wcss_apss_smd_hi */
252 <0xff 174>, /* o_wcss_apss_smd_med */
253 <0xff 175>, /* o_wcss_apss_smd_low */
254 <0xff 176>, /* o_wcss_apss_smsm_irq */
255 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
256 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
257 <0xff 179>, /* o_wcss_apss_asic_intr */
258
259 <0xff 181>, /* wcnss watchdog */
260 <0xff 188>, /* lpass_irq_out_apcs(0) */
261 <0xff 189>, /* lpass_irq_out_apcs(1) */
262 <0xff 190>, /* lpass_irq_out_apcs(2) */
263 <0xff 191>, /* lpass_irq_out_apcs(3) */
264 <0xff 192>, /* lpass_irq_out_apcs(4) */
265 <0xff 193>, /* lpass_irq_out_apcs(5) */
266 <0xff 194>, /* lpass_irq_out_apcs(6) */
267 <0xff 195>, /* lpass_irq_out_apcs(7) */
268 <0xff 196>, /* lpass_irq_out_apcs(8) */
269 <0xff 197>, /* lpass_irq_out_apcs(9) */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530270 <0xff 198>, /* coresight-tmc-etr interrupt */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600271 <0xff 200>, /* rpm_ipc(4) */
272 <0xff 201>, /* rpm_ipc(5) */
273 <0xff 202>, /* rpm_ipc(6) */
274 <0xff 203>, /* rpm_ipc(7) */
275 <0xff 204>, /* rpm_ipc(24) */
276 <0xff 205>, /* rpm_ipc(25) */
277 <0xff 206>, /* rpm_ipc(26) */
278 <0xff 207>, /* rpm_ipc(27) */
279 <0xff 211>, /* usb_dwc3_otg */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530280 <0xff 240>, /* summary_irq_kpss */
Girish S Ghongdemath9ae57b22013-12-19 13:56:34 -0800281 <0xff 253>, /* sdcc_pwr_cmd_irq */
282 <0xff 256>, /* sdcc_pwr_cmd_irq */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530283 <0xff 268>, /* bam_irq[1] */
284 <0xff 270>, /* bam_irq[0] */
285 <0xff 271>; /* bam_irq[0] */
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600286
287 qcom,gpio-parent = <&msmgpio>;
288 qcom,gpio-map = <3 102>,
289 <4 1 >,
290 <5 5 >,
291 <6 9 >,
292 <7 18>,
293 <8 20>,
294 <9 24>,
295 <10 27>,
296 <11 28>,
297 <12 34>,
298 <13 35>,
299 <14 37>,
300 <15 42>,
301 <16 44>,
302 <17 46>,
303 <18 50>,
304 <19 54>,
305 <20 59>,
306 <21 61>,
307 <22 62>,
308 <23 64>,
309 <24 65>,
310 <25 66>,
311 <26 67>,
312 <27 68>,
313 <28 71>,
314 <29 72>,
315 <30 73>,
316 <31 74>,
317 <32 75>,
318 <33 77>,
319 <34 79>,
320 <35 80>,
321 <36 82>,
322 <37 86>,
323 <38 92>,
324 <39 93>,
325 <40 95>,
326 <41 144>;
327 };
328
329 qcom,pm-8x60@fe805664 {
330 compatible = "qcom,pm-8x60";
331 #address-cells = <1>;
332 #size-cells = <1>;
333 ranges;
334 reg = <0xfe805664 0x40>;
335 qcom,pc-mode = "tz_l2_int";
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600336 qcom,cpus-as-clocks;
337
338 qcom,pm-snoc-client {
339 compatible = "qcom,pm-snoc-client";
340 qcom,msm-bus,name = "ocimem_snoc";
341 qcom,msm-bus,num-cases = <2>;
342 qcom,msm-bus,num-paths = <1>;
343 qcom,msm-bus,active-only;
344 qcom,msm-bus,vectors-KBps =
345 <54 585 0 0>,
346 <54 585 0 800000>;
347 };
348 };
349
350 qcom,cpu-sleep-status@f9088008{
351 compatible = "qcom,cpu-sleep-status";
352 reg = <0xf9088008 0x100>;
353 qcom,cpu-alias-addr = <0x10000>;
354 qcom,sleep-status-mask= <0x80000>;
355 };
356
357 qcom,rpm-log@fc19dc00 {
358 compatible = "qcom,rpm-log";
359 reg = <0xfc19dc00 0x4000>;
360 qcom,rpm-addr-phys = <0xfc000000>;
361 qcom,offset-version = <4>;
362 qcom,offset-page-buffer-addr = <36>;
363 qcom,offset-log-len = <40>;
364 qcom,offset-log-len-mask = <44>;
365 qcom,offset-page-indices = <56>;
366 };
367
368 qcom,rpm-stats@fc19dba0 {
369 compatible = "qcom,rpm-stats";
370 reg = <0xfc19dba0 0x1000>;
371 reg-names = "phys_addr_base";
372 qcom,sleep-stats-version = <2>;
373 };
374
375 qcom,rpm-rbcpr-stats@fc000000 {
376 compatible = "qcom,rpmrbcpr-stats";
377 reg = <0xfc000000 0x1a0000>;
378 qcom,start-offset = <0x190010>;
379 };
Anil kumar mamidalafb7809d2014-01-17 17:29:14 +0530380
381 qcom,rpm-master-stats@fc428150 {
382 compatible = "qcom,rpm-master-stats";
383 reg = <0xfc428150 0x3200>;
384 qcom,masters = "APSS", "MPSS", "LPSS", "PRONTO";
385 qcom,master-stats-version = <2>;
386 qcom,master-offset = <2560>;
387 };
Mahesh Sivasubramaniane5e0c042013-08-14 10:59:11 -0600388};