blob: 31d5a8f86f8829f54e28e6dba583da0726d75975 [file] [log] [blame]
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -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 Chidambaramc8af25e2012-12-19 11:27:36 -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 Mathur03048552013-02-11 18:15:13 -080022 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070023 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur03048552013-02-11 18:15:13 -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 Nalajala92c6f2e2013-08-07 18:28:13 +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 Chidambaramc8af25e2012-12-19 11:27:36 -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 Mathur03048552013-02-11 18:15:13 -080039 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070040 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur03048552013-02-11 18:15:13 -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 Nalajala92c6f2e2013-08-07 18:28:13 +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];
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -070046 };
47
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 Mathur03048552013-02-11 18:15:13 -080056 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070057 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur3c4d7692013-03-18 11:09:35 -070058 qcom,saw2-spm-cmd-wfi = [60 03 60 0b 0f];
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070059 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];
Murali Nalajala92c6f2e2013-08-07 18:28:13 +053061 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 03 60 3b 76 76
Priyanka Mathur9c9927f2013-07-02 16:45:30 -070062 0b 94 5b 80 10 26 30 0f];
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -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 Mathur03048552013-02-11 18:15:13 -080073 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur37ec54a2013-07-02 16:49:04 -070074 qcom,saw2-spm-ctl = <0x8>;
Priyanka Mathur3c4d7692013-03-18 11:09:35 -070075 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 Nalajala92c6f2e2013-08-07 18:28:13 +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 Chidambaramc8af25e2012-12-19 11:27:36 -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 Mathur03048552013-02-11 18:15:13 -080090 qcom,saw2-spm-dly= <0x3c102800>;
Priyanka Mathur4bc42012013-03-14 13:01:14 -070091 qcom,saw2-spm-ctl = <0x0>;
Priyanka Mathur3c4d7692013-03-18 11:09:35 -070092 qcom,saw2-pmic-data0 = <0x02030080>;
93 qcom,saw2-pmic-data1 = <0x00030000>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -070094 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];
Priyanka Mathur4c548b82013-08-02 11:44:21 -070099 qcom,saw2-spm-cmd-gdhs = [00 20 32 6b c0 e0 d0 42 07 50
100 4e 02 02 d0 e0 c0 22 6b 02 32 50 0f];
Murali Nalajalacd7b28f2013-10-10 11:15:26 +0530101 qcom,saw2-spm-cmd-pc-no-rpm = [00 32 b0 10 e0 d0 6b c0 42 f0
102 11 03 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
103 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
Priyanka Mathur3c4d7692013-03-18 11:09:35 -0700104 qcom,saw2-spm-cmd-pc = [00 32 b0 10 e0 d0 6b c0 42 f0
Priyanka Mathur9c9927f2013-07-02 16:45:30 -0700105 11 07 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 Chidambaramc8af25e2012-12-19 11:27:36 -0700108 };
109
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -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 Chidambaramc8af25e2012-12-19 11:27:36 -0700113 #address-cells = <1>;
114 #size-cells = <0>;
115
116 qcom,lpm-level@0 {
117 reg = <0x0>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700118 qcom,mode = "wfi";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700119 qcom,l2 = "l2_cache_active";
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700120 qcom,latency-us = <1>;
Murali Nalajala0c8150b2013-09-24 08:23:11 +0530121 qcom,ss-power = <530>;
122 qcom,energy-overhead = <52800>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700123 qcom,time-overhead = <100>;
124 };
125
126 qcom,lpm-level@1 {
127 reg = <0x1>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700128 qcom,mode = "standalone_pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700129 qcom,l2 = "l2_cache_active";
Murali Nalajala0c8150b2013-09-24 08:23:11 +0530130 qcom,latency-us = <500>;
131 qcom,ss-power = <410>;
132 qcom,energy-overhead = <603400>;
133 qcom,time-overhead = <1200>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700134 };
135
Priyanka Mathur69f3e902013-03-18 17:15:07 -0700136 qcom,lpm-level@2 {
137 reg = <0x2>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700138 qcom,mode = "pc";
Priyanka Mathur359d6852013-08-02 11:46:43 -0700139 qcom,l2 = "l2_cache_gdhs";
Murali Nalajala0c8150b2013-09-24 08:23:11 +0530140 qcom,latency-us = <10700>;
141 qcom,ss-power = <372>;
142 qcom,energy-overhead = <738750>;
143 qcom,time-overhead = <1410>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700144 };
145
Priyanka Mathur69f3e902013-03-18 17:15:07 -0700146 qcom,lpm-level@3 {
147 reg = <0x3>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700148 qcom,mode = "pc";
Murali Nalajalacd7b28f2013-10-10 11:15:26 +0530149 qcom,l2 = "l2_cache_pc_no_rpm";
150 qcom,latency-us = <1000>;
151 qcom,ss-power = <315>;
152 qcom,energy-overhead = <1027150>;
153 qcom,time-overhead = <2400>;
154 };
155
156 qcom,lpm-level@4 {
157 reg = <0x4>;
158 qcom,mode = "pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700159 qcom,l2 = "l2_cache_pc";
Murali Nalajala0c8150b2013-09-24 08:23:11 +0530160 qcom,latency-us = <11000>;
161 qcom,ss-power = <315>;
162 qcom,energy-overhead = <1027150>;
163 qcom,time-overhead = <2400>;
Priyanka Mathur69f3e902013-03-18 17:15:07 -0700164 };
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700165 };
166
167 qcom,pm-boot {
168 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700169 qcom,mode = "tz";
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700170 };
171
172 qcom,mpm@fc4281d0 {
173 compatible = "qcom,mpm-v2";
174 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
175 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
176 reg-names = "vmpm", "ipc";
177 interrupts = <0 171 1>;
178
179 qcom,ipc-bit-offset = <1>;
180
181 qcom,gic-parent = <&intc>;
182 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
183 <53 104>, /* mdss_irq */
184 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Priyanka Mathur6ad1cb62013-04-02 19:21:03 -0700185 <2 216>, /* tsens_upper_lower_int */
Priyanka Mathur1e2f3802013-08-12 12:22:08 -0700186 <0xff 18>, /* APC_qgicQTmrSecPhysIrptReq */
187 <0xff 19>, /* APC_qgicQTmrNonSecPhysIrptReq */
188 <0xff 35>, /* WDT_barkInt */
189 <0xff 40>, /* qtmr_phy_irq[0] */
190 <0xff 47>, /* rbif_irq[0] */
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800191 <0xff 56>, /* q6_wdog_expired_irq */
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700192 <0xff 57>, /* mss_to_apps_irq(0) */
193 <0xff 58>, /* mss_to_apps_irq(1) */
194 <0xff 59>, /* mss_to_apps_irq(2) */
195 <0xff 60>, /* mss_to_apps_irq(3) */
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800196 <0xff 61>, /* mss_a2_bam_irq */
Priyanka Mathur1e2f3802013-08-12 12:22:08 -0700197 <0xff 65>, /* o_gc_sys_irq[0] */
198 <0xff 74>, /* venus0_mmu_cirpt[1] */
199 <0xff 75>, /* venus0_mmu_cirpt[0] */
200 <0xff 78>, /* mdss_mmu_cirpt[0] */
201 <0xff 79>, /* mdss_mmu_cirpt[1] */
202 <0xff 97>, /* camss_vfe_mmu_cirpt[1] */
203 <0xff 102>, /* camss_jpeg_mmu_cirpt[1] */
204 <0xff 109>, /* ocmem_dm_nonsec_irq */
205 <0xff 131>, /* blsp1_qup_5_irq */
206 <0xff 141>, /* blsp1_uart_3_irq */
207 <0xff 155>, /* sdc1_irq(0) */
208 <0xff 157>, /* sdc2_irq(0) */
209 <0xff 161>, /* lpass_irq_out_spare[4] */
210 <0xff 162>, /* lpass_irq_out_spare[5]*/
211 <0xff 170>, /* sdc1_pwr_cmd_irq */
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700212 <0xff 173>, /* o_wcss_apss_smd_hi */
213 <0xff 174>, /* o_wcss_apss_smd_med */
214 <0xff 175>, /* o_wcss_apss_smd_low */
215 <0xff 176>, /* o_wcss_apss_smsm_irq */
216 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
217 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
Venkat Devarasetty4f6edc72013-08-19 15:08:48 +0530218 <0xff 179>, /* o_wcss_apss_asic_intr */
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800219 <0xff 181>, /* o_wcss_apss_wdog_bite_and_reset_rdy */
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700220 <0xff 188>, /* lpass_irq_out_apcs(0) */
221 <0xff 189>, /* lpass_irq_out_apcs(1) */
222 <0xff 190>, /* lpass_irq_out_apcs(2) */
223 <0xff 191>, /* lpass_irq_out_apcs(3) */
224 <0xff 192>, /* lpass_irq_out_apcs(4) */
Priyanka Mathur1e2f3802013-08-12 12:22:08 -0700225 <0xff 194>, /* lpass_irq_out_apcs(6) */
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700226 <0xff 200>, /* rpm_ipc(4) */
227 <0xff 201>, /* rpm_ipc(5) */
228 <0xff 202>, /* rpm_ipc(6) */
229 <0xff 203>, /* rpm_ipc(7) */
230 <0xff 204>, /* rpm_ipc(24) */
231 <0xff 205>, /* rpm_ipc(25) */
232 <0xff 206>, /* rpm_ipc(26) */
233 <0xff 207>, /* rpm_ipc(27) */
Priyanka Mathur1e2f3802013-08-12 12:22:08 -0700234 <0xff 234>, /* lpass_irq_out_spare[6]*/
235 <0xff 235>, /* lpass_irq_out_spare[7]*/
236 <0xff 240>, /* summary_irq_kpss */
237 <0xff 253>, /* sdc2_pwr_cmd_irq */
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800238 <0xff 258>, /* rpm_ipc(28) */
239 <0xff 259>, /* rpm_ipc(29) */
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800240 <0xff 269>, /* rpm_wdog_expired_irq */
Priyanka Mathur1e2f3802013-08-12 12:22:08 -0700241 <0xff 270>, /* blsp1_bam_irq[0] */
242 <0xff 275>, /* rpm_ipc(30) */
243 <0xff 276>; /* rpm_ipc(31) */
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700244
245 qcom,gpio-parent = <&msmgpio>;
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800246 qcom,gpio-map = <3 1>,
247 <4 4 >,
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700248 <5 5 >,
249 <6 9 >,
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800250 <7 13>,
251 <8 17>,
252 <9 21>,
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700253 <10 27>,
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800254 <11 29>,
255 <12 31>,
256 <13 33>,
257 <14 35>,
258 <15 37>,
259 <16 38>,
260 <17 39>,
261 <18 41>,
262 <19 46>,
263 <20 48>,
264 <21 49>,
265 <22 50>,
266 <23 51>,
267 <24 52>,
268 <25 54>,
269 <26 62>,
270 <27 63>,
271 <28 64>,
272 <29 65>,
273 <30 66>,
274 <31 67>,
275 <32 68>,
276 <33 69>,
277 <34 71>,
278 <35 72>,
279 <36 106>,
280 <37 107>,
281 <38 108>,
282 <39 109>,
283 <40 110>,
Murali Nalajala99724f42013-09-25 14:46:19 +0530284 <41 115>,
Priyanka Mathur4d074d52013-02-15 12:36:04 -0800285 <54 111>,
286 <55 113>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700287 };
288
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800289 qcom,pm-8x60@fe805664 {
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700290 compatible = "qcom,pm-8x60";
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800291 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700292 qcom,pc-mode = "tz_l2_int";
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700293 qcom,use-sync-timer;
Priyanka Mathur6bd02e72013-04-11 17:00:55 -0700294 qcom,pc-resets-timer;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700295 };
296
Priyanka Mathurbd7633132013-05-21 17:01:56 -0700297 qcom,cpu-sleep-status@f9088008{
298 compatible = "qcom,cpu-sleep-status";
299 reg = <0xf9088008 0x100>;
300 qcom,cpu-alias-addr = <0x10000>;
301 qcom,sleep-status-mask= <0x80000>;
302 };
303
Priyanka Mathuref0f4fa2013-04-03 12:40:03 -0700304 qcom,rpm-log@fc19dc00 {
305 compatible = "qcom,rpm-log";
306 reg = <0xfc19dc00 0x4000>;
307 qcom,rpm-addr-phys = <0xfc000000>;
308 qcom,offset-version = <4>;
309 qcom,offset-page-buffer-addr = <36>;
310 qcom,offset-log-len = <40>;
311 qcom,offset-log-len-mask = <44>;
312 qcom,offset-page-indices = <56>;
313 };
314
Priyanka Mathur3d1ff532013-04-23 17:38:21 -0700315 qcom,rpm-stats@fc19dba0 {
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700316 compatible = "qcom,rpm-stats";
Priyanka Mathur3d1ff532013-04-23 17:38:21 -0700317 reg = <0xfc19dba0 0x1000>;
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700318 reg-names = "phys_addr_base";
319 qcom,sleep-stats-version = <2>;
320 };
Girish Mahadevan947b8032013-05-20 12:11:27 -0600321
322 qcom,rpm-rbcpr-stats@fc000000 {
323 compatible = "qcom,rpmrbcpr-stats";
324 reg = <0xfc000000 0x1a0000>;
325 qcom,start-offset = <0x190010>;
326 };
Murali Nalajala07c067f2013-08-08 19:22:24 +0530327
328 qcom,rpm-master-stats@fc428150 {
329 compatible = "qcom,rpm-master-stats";
330 reg = <0xfc428150 0x3200>;
331 qcom,masters = "APSS", "MPSS", "LPSS", "PRONTO";
332 qcom,master-stats-version = <2>;
333 qcom,master-offset = <2560>;
334 };
Praveen Chidambaramc8af25e2012-12-19 11:27:36 -0700335};