blob: 28597443977bce2dbafe9285bc2d585a80412ccc [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
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070013&soc {
Praveen Chidambarama1f98282012-11-29 09:56:57 -070014 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>;
Priyanka Mathurb9c8e532013-06-20 14:22:30 -070021 qcom,saw2-cfg = <0x00>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080022 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070023 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080024 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070025 qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
26 0b 94 5b 80 10 26 30 0f];
Murali Nalajalad489e492013-09-05 13:24:16 +053027 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070028 0b 94 5b 80 10 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070029 };
30
31 qcom,spm@f9099000 {
32 compatible = "qcom,spm-v2";
33 #address-cells = <1>;
34 #size-cells = <1>;
35 reg = <0xf9099000 0x1000>;
36 qcom,core-id = <1>;
37 qcom,saw2-ver-reg = <0xfd0>;
Priyanka Mathurb9c8e532013-06-20 14:22:30 -070038 qcom,saw2-cfg = <0x00>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080039 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070040 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080041 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070042 qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
43 0b 94 5b 80 10 26 30 0f];
Murali Nalajalad489e492013-09-05 13:24:16 +053044 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070045 0b 94 5b 80 10 26 30 0f];
46 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -070047
48 qcom,spm@f90a9000 {
49 compatible = "qcom,spm-v2";
50 #address-cells = <1>;
51 #size-cells = <1>;
52 reg = <0xf90a9000 0x1000>;
53 qcom,core-id = <2>;
54 qcom,saw2-ver-reg = <0xfd0>;
Priyanka Mathurb9c8e532013-06-20 14:22:30 -070055 qcom,saw2-cfg = <0x00>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080056 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070057 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080058 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
Murali Nalajala68cfa4b2013-10-25 18:20:13 +053059 qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
60 0b 94 5b 80 10 26 30 0f];
61 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
62 0b 94 5b 80 10 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070063 };
64
65 qcom,spm@f90b9000 {
66 compatible = "qcom,spm-v2";
67 #address-cells = <1>;
68 #size-cells = <1>;
69 reg = <0xf90b9000 0x1000>;
70 qcom,core-id = <3>;
71 qcom,saw2-ver-reg = <0xfd0>;
Priyanka Mathurb9c8e532013-06-20 14:22:30 -070072 qcom,saw2-cfg = <0x00>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080073 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070074 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080075 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070076 qcom,saw2-spm-cmd-spc = [20 10 80 30 90 5b 60 03 60 3b 76 76
77 0b 94 5b 80 10 26 30 0f];
Murali Nalajalad489e492013-09-05 13:24:16 +053078 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070079 0b 94 5b 80 10 26 30 0f];
Praveen Chidambarama1f98282012-11-29 09:56:57 -070080 };
81
82 qcom,spm@f9012000 {
83 compatible = "qcom,spm-v2";
84 #address-cells = <1>;
85 #size-cells = <1>;
86 reg = <0xf9012000 0x1000>;
87 qcom,core-id = <0xffff>; /* L2/APCS SAW */
88 qcom,saw2-ver-reg = <0xfd0>;
89 qcom,saw2-cfg = <0x14>;
Priyanka Mathur1e597f92013-02-05 12:14:20 -080090 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur41d69e82013-04-02 18:26:43 -070091 qcom,saw2-spm-ctl = <0x0>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -070092 qcom,saw2-pmic-data0 = <0x02030080>;
93 qcom,saw2-pmic-data1 = <0x00030000>;
94 qcom,vctl-timeout-us = <50>;
95 qcom,vctl-port = <0x0>;
96 qcom,phase-port = <0x1>;
97 qcom,pfm-port = <0x2>;
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070098 qcom,saw2-spm-cmd-ret = [00 03 00 0f];
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +053099 qcom,saw2-spm-cmd-gdhs = [00 20 32 6b c0 e0 d0 42 03 50
Priyanka Mathurc6586612013-08-01 18:03:28 -0700100 4e 02 02 d0 e0 c0 22 6b 02 32 50 0f];
Priyanka Mathur1e597f92013-02-05 12:14:20 -0800101 qcom,saw2-spm-cmd-pc = [00 32 b0 10 e0 d0 6b c0 42 f0
Priyanka Mathur9c9927f2013-07-02 16:45:30 -0700102 11 07 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
103 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
Murali Nalajalacd646e52013-10-15 13:14:39 +0530104 qcom,saw2-spm-cmd-pc-no-rpm = [00 32 b0 10 e0 d0 6b c0 42 f0
105 11 03 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
106 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
Praveen Chidambaram48197dd2013-03-21 15:51:43 -0600107 qcom,L2-spm-is-apcs-master;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700108 };
109
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700110 qcom,lpm-levels {
111 compatible = "qcom,lpm-levels";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600112 qcom,default-l2-state = "l2_cache_active";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700113 #address-cells = <1>;
114 #size-cells = <0>;
115
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600116 qcm,cpu-modes {
117 compatible = "qcom,cpu-modes";
118
119 qcom,cpu-modes@0 {
120 qcom,mode = "wfi";
121 qcom,latency-us = <1>;
122 qcom,ss-power = <530>;
123 qcom,energy-overhead = <52800>;
124 qcom,time-overhead = <100>;
125 };
126
127 qcom,cpu-modes@1 {
128 qcom,mode = "standalone_pc";
129 qcom,latency-us = <500>;
130 qcom,ss-power = <410>;
131 qcom,energy-overhead = <603400>;
132 qcom,time-overhead = <1200>;
133 qcom,use-broadcast-timer;
134 };
135
136 qcom,cpu-modes@2 {
137 qcom,mode = "pc";
138 qcom,latency-us = <550>;
139 qcom,ss-power = <372>;
140 qcom,energy-overhead = <700000>;
141 qcom,time-overhead = <1410>;
142 qcom,use-broadcast-timer;
143 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700144 };
145
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600146 qcom,system-modes {
147 compatible = "qcom,system-modes";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700148
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600149 qcom,system-modes@0 {
150 qcom,l2 = "l2_cache_gdhs";
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530151 qcom,latency-us = <700>;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600152 qcom,ss-power = <372>;
153 qcom,energy-overhead = <738750>;
154 qcom,time-overhead = <1410>;
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530155 qcom,min-cpu-mode= "standalone_pc";
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600156 qcom,sync-cpus;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600157 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700158
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600159 qcom,system-modes@1 {
160 qcom,l2 = "l2_cache_pc_no_rpm";
161 qcom,latency-us = <1000>;
162 qcom,ss-power = <315>;
163 qcom,energy-overhead = <1027150>;
164 qcom,time-overhead = <2400>;
Mahesh Sivasubramanian704ea9c2013-12-13 17:37:15 -0700165 qcom,min-cpu-mode= "standalone_pc";
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600166 qcom,sync-cpus;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600167 };
Murali Nalajalacd646e52013-10-15 13:14:39 +0530168
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600169 qcom,system-modes@2 {
170 qcom,l2 = "l2_cache_pc";
171 qcom,latency-us = <12700>;
172 qcom,ss-power = <315>;
173 qcom,energy-overhead = <1027150>;
174 qcom,time-overhead = <2400>;
Mahesh Sivasubramanian65c62362013-05-08 14:30:06 -0600175 qcom,min-cpu-mode= "pc";
176 qcom,sync-cpus;
Anil kumar mamidalaa39a3352014-02-06 20:42:01 +0530177 qcom,send-rpm-sleep-set;
Mahesh Sivasubramaniandab0ec32013-10-24 15:09:31 -0600178 };
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700179 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700180 };
181
182 qcom,pm-boot {
183 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700184 qcom,mode = "tz";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700185 };
186
187 qcom,mpm@fc4281d0 {
188 compatible = "qcom,mpm-v2";
189 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
190 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
191 reg-names = "vmpm", "ipc";
192 interrupts = <0 171 1>;
193
194 qcom,ipc-bit-offset = <1>;
195
196 qcom,gic-parent = <&intc>;
197 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
198 <53 104>, /* mdss_irq */
199 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Priyanka Mathur6ad1cb62013-04-02 19:21:03 -0700200 <2 216>, /* tsens_upper_lower_int */
Murali Nalajala9a9150a2013-09-11 19:37:58 +0530201 <41 63>, /* dino_gen_purpose_irq35 */
Anil kumar mamidala0222ec52013-12-04 17:56:25 +0530202 <0xff 18>, /* APC_qgicQTmrSecPhysIrptReq */
203 <0xff 19>, /* APC_qgicQTmrNonSecPhysIrptReq */
204 <0xff 35>, /* WDT_barkInt */
205 <0xff 40>, /* qtmr_phy_irq[0] */
206 <0xff 47>, /* rbif_irq[0] */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800207 <0xff 56>, /* q6_wdog_expired_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700208 <0xff 57>, /* mss_to_apps_irq(0) */
209 <0xff 58>, /* mss_to_apps_irq(1) */
210 <0xff 59>, /* mss_to_apps_irq(2) */
211 <0xff 60>, /* mss_to_apps_irq(3) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800212 <0xff 61>, /* mss_a2_bam_irq */
Anil kumar mamidala0222ec52013-12-04 17:56:25 +0530213 <0xff 65>, /* o_gc_sys_irq[0] */
214 <0xff 74>, /* venus0_mmu_cirpt[1] */
215 <0xff 75>, /* venus0_mmu_cirpt[0] */
216 <0xff 78>, /* mdss_mmu_cirpt[0] */
217 <0xff 79>, /* mdss_mmu_cirpt[1] */
218 <0xff 97>, /* camss_vfe_mmu_cirpt[1] */
219 <0xff 102>, /* camss_jpeg_mmu_cirpt[1] */
220 <0xff 109>, /* ocmem_dm_nonsec_irq */
221 <0xff 131>, /* blsp1_qup_5_irq */
222 <0xff 141>, /* blsp1_uart_3_irq */
223 <0xff 155>, /* sdc1_irq(0) */
224 <0xff 157>, /* sdc2_irq(0) */
225 <0xff 161>, /* lpass_irq_out_spare[4] */
226 <0xff 162>, /* lpass_irq_out_spare[5]*/
227 <0xff 170>, /* sdc1_pwr_cmd_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700228 <0xff 173>, /* o_wcss_apss_smd_hi */
229 <0xff 174>, /* o_wcss_apss_smd_med */
230 <0xff 175>, /* o_wcss_apss_smd_low */
231 <0xff 176>, /* o_wcss_apss_smsm_irq */
232 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
233 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
Anil kumar mamidala0222ec52013-12-04 17:56:25 +0530234 <0xff 179>, /* o_wcss_apss_asic_intr */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800235 <0xff 181>, /* o_wcss_apss_wdog_bite_and_reset_rdy */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700236 <0xff 188>, /* lpass_irq_out_apcs(0) */
237 <0xff 189>, /* lpass_irq_out_apcs(1) */
238 <0xff 190>, /* lpass_irq_out_apcs(2) */
239 <0xff 191>, /* lpass_irq_out_apcs(3) */
240 <0xff 192>, /* lpass_irq_out_apcs(4) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700241 <0xff 194>, /* lpass_irq_out_apcs(6) */
Murali Nalajalaa325c162013-11-27 16:09:04 +0530242 <0xff 198>, /* QDSS - u_qdss */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700243 <0xff 200>, /* rpm_ipc(4) */
244 <0xff 201>, /* rpm_ipc(5) */
245 <0xff 202>, /* rpm_ipc(6) */
246 <0xff 203>, /* rpm_ipc(7) */
247 <0xff 204>, /* rpm_ipc(24) */
248 <0xff 205>, /* rpm_ipc(25) */
249 <0xff 206>, /* rpm_ipc(26) */
250 <0xff 207>, /* rpm_ipc(27) */
Anil kumar mamidala0222ec52013-12-04 17:56:25 +0530251 <0xff 234>, /* lpass_irq_out_spare[6]*/
252 <0xff 235>, /* lpass_irq_out_spare[7]*/
253 <0xff 240>, /* summary_irq_kpss */
254 <0xff 253>, /* sdc2_pwr_cmd_irq */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800255 <0xff 258>, /* rpm_ipc(28) */
256 <0xff 259>, /* rpm_ipc(29) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800257 <0xff 269>, /* rpm_wdog_expired_irq */
Anil kumar mamidala0222ec52013-12-04 17:56:25 +0530258 <0xff 270>, /* blsp1_bam_irq[0] */
259 <0xff 275>, /* rpm_ipc(30) */
260 <0xff 276>; /* rpm_ipc(31) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700261
262 qcom,gpio-parent = <&msmgpio>;
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800263 qcom,gpio-map = <3 1>,
Priyanka Mathure3a28d42013-08-02 12:51:48 -0700264 <4 5 >,
265 <5 9 >,
266 <6 14>,
267 <7 15>,
268 <8 32>,
269 <9 33>,
270 <10 34>,
271 <11 35>,
272 <12 41>,
273 <13 42>,
274 <14 72>,
275 <15 73>,
276 <16 74>,
277 <17 75>,
278 <18 76>,
279 <19 77>,
280 <20 78>,
281 <21 79>,
282 <22 80>,
283 <23 81>,
284 <24 82>,
285 <25 83>,
286 <26 84>,
287 <27 85>,
288 <28 87>,
289 <29 90>,
290 <30 91>,
291 <31 92>,
292 <32 93>,
293 <33 94>,
294 <34 95>,
295 <35 96>,
296 <36 97>,
297 <37 98>,
298 <38 99>,
299 <39 100>,
300 <40 101>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700301 };
302
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800303 qcom,pm-8x60@fe805664 {
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700304 compatible = "qcom,pm-8x60";
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800305 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700306 qcom,pc-mode = "tz_l2_int";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700307 qcom,use-sync-timer;
Priyanka Mathur85b52cf2013-04-12 16:54:35 -0700308 qcom,pc-resets-timer;
Patrick Dalyb86df502013-11-05 14:27:13 -0800309 qcom,cpus-as-clocks;
310 qcom,synced-clocks;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700311 };
312
Priyanka Mathurbd7633132013-05-21 17:01:56 -0700313 qcom,cpu-sleep-status@f9088008{
314 compatible = "qcom,cpu-sleep-status";
315 reg = <0xf9088008 0x100>;
316 qcom,cpu-alias-addr = <0x10000>;
317 qcom,sleep-status-mask= <0x80000>;
318 };
319
Priyanka Mathuref0f4fa2013-04-03 12:40:03 -0700320 qcom,rpm-log@fc19dc00 {
321 compatible = "qcom,rpm-log";
322 reg = <0xfc19dc00 0x4000>;
323 qcom,rpm-addr-phys = <0xfc000000>;
324 qcom,offset-version = <4>;
325 qcom,offset-page-buffer-addr = <36>;
326 qcom,offset-log-len = <40>;
327 qcom,offset-log-len-mask = <44>;
328 qcom,offset-page-indices = <56>;
329 };
330
Priyanka Mathur1a9747c2013-04-23 17:49:13 -0700331 qcom,rpm-stats@fc19dba0 {
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700332 compatible = "qcom,rpm-stats";
Priyanka Mathur1a9747c2013-04-23 17:49:13 -0700333 reg = <0xfc19dba0 0x1000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700334 reg-names = "phys_addr_base";
335 qcom,sleep-stats-version = <2>;
336 };
Girish Mahadevan01a3f602013-05-20 12:13:48 -0600337
338 qcom,rpm-rbcpr-stats@fc000000 {
339 compatible = "qcom,rpmrbcpr-stats";
340 reg = <0xfc000000 0x1a0000>;
341 qcom,start-offset = <0x190010>;
342 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700343};