blob: d31a65c94d80cb0abe3cec0f7e115f85531408fa [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];
27 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 07 60 3b 76 76
28 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];
44 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 07 60 3b 76 76
45 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];
59 qcom,saw2-spm-cmd-spc = [00 20 10 80 30 90 5b 60 03 60 3b 76 76
60 0b 94 5b 80 10 06 26 30 0f];
61 qcom,saw2-spm-cmd-pc = [00 20 10 80 30 90 5b 60 07 60 3b 76 76
62 0b 94 5b 80 10 06 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];
78 qcom,saw2-spm-cmd-pc = [20 10 80 30 90 5b 60 07 60 3b 76 76
79 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];
Priyanka Mathur1e597f92013-02-05 12:14:20 -080099 qcom,saw2-spm-cmd-pc = [00 32 b0 10 e0 d0 6b c0 42 f0
Priyanka Mathur9c9927f2013-07-02 16:45:30 -0700100 11 07 01 b0 50 4e 02 02 c0 d0 12 e0 6b 02 32
101 50 f0 0f]; /*APCS_PMIC_OFF_L2RAM_OFF*/
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700102 };
103
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700104 qcom,lpm-levels {
105 compatible = "qcom,lpm-levels";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600106 qcom,default-l2-state = "l2_cache_active";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700107 #address-cells = <1>;
108 #size-cells = <0>;
109
110 qcom,lpm-level@0 {
111 reg = <0x0>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700112 qcom,mode = "wfi";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700113 qcom,l2 = "l2_cache_active";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700114 qcom,latency-us = <1>;
115 qcom,ss-power = <784>;
116 qcom,energy-overhead = <190000>;
117 qcom,time-overhead = <100>;
118 };
119
120 qcom,lpm-level@1 {
121 reg = <0x1>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700122 qcom,mode = "standalone_pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700123 qcom,l2 = "l2_cache_active";
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700124 qcom,latency-us = <3000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700125 qcom,ss-power = <725>;
126 qcom,energy-overhead = <99500>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700127 qcom,time-overhead = <3130>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700128 };
129
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700130 qcom,lpm-level@2 {
131 reg = <0x2>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700132 qcom,mode = "pc";
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700133 qcom,l2 = "l2_cache_retention";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600134 qcom,latency-us = <20000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700135 qcom,ss-power = <138>;
136 qcom,energy-overhead = <1208400>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700137 qcom,time-overhead = <9200>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700138 };
139
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700140 qcom,lpm-level@3 {
141 reg = <0x3>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700142 qcom,mode = "pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700143 qcom,l2 = "l2_cache_pc";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600144 qcom,latency-us = <30000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700145 qcom,ss-power = <110>;
146 qcom,energy-overhead = <1250300>;
Priyanka Mathur4c1d0cd2013-04-03 16:43:20 -0700147 qcom,time-overhead = <9500>;
148 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700149 };
150
151 qcom,pm-boot {
152 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700153 qcom,mode = "tz";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700154 };
155
156 qcom,mpm@fc4281d0 {
157 compatible = "qcom,mpm-v2";
158 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
159 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
160 reg-names = "vmpm", "ipc";
161 interrupts = <0 171 1>;
162
163 qcom,ipc-bit-offset = <1>;
164
165 qcom,gic-parent = <&intc>;
166 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
167 <53 104>, /* mdss_irq */
168 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Priyanka Mathur6ad1cb62013-04-02 19:21:03 -0700169 <2 216>, /* tsens_upper_lower_int */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800170 <0xff 56>, /* q6_wdog_expired_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700171 <0xff 57>, /* mss_to_apps_irq(0) */
172 <0xff 58>, /* mss_to_apps_irq(1) */
173 <0xff 59>, /* mss_to_apps_irq(2) */
174 <0xff 60>, /* mss_to_apps_irq(3) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800175 <0xff 61>, /* mss_a2_bam_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700176 <0xff 173>, /* o_wcss_apss_smd_hi */
177 <0xff 174>, /* o_wcss_apss_smd_med */
178 <0xff 175>, /* o_wcss_apss_smd_low */
179 <0xff 176>, /* o_wcss_apss_smsm_irq */
180 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
181 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
182 <0xff 179>, /* o_wcss_apss_asic_intr
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800183 <0xff 181>, /* o_wcss_apss_wdog_bite_and_reset_rdy */
184 <0xff 161>, /* lpass_irq_out_spare[4] /
185 <0xff 162>, /* lpass_irq_out_spare[5]*/
186 <0xff 234>, /* lpass_irq_out_spare[6]*/
187 <0xff 235>, /* lpass_irq_out_spare[7]*/
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700188 <0xff 188>, /* lpass_irq_out_apcs(0) */
189 <0xff 189>, /* lpass_irq_out_apcs(1) */
190 <0xff 190>, /* lpass_irq_out_apcs(2) */
191 <0xff 191>, /* lpass_irq_out_apcs(3) */
192 <0xff 192>, /* lpass_irq_out_apcs(4) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700193 <0xff 194>, /* lpass_irq_out_apcs(6) */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700194 <0xff 200>, /* rpm_ipc(4) */
195 <0xff 201>, /* rpm_ipc(5) */
196 <0xff 202>, /* rpm_ipc(6) */
197 <0xff 203>, /* rpm_ipc(7) */
198 <0xff 204>, /* rpm_ipc(24) */
199 <0xff 205>, /* rpm_ipc(25) */
200 <0xff 206>, /* rpm_ipc(26) */
201 <0xff 207>, /* rpm_ipc(27) */
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800202 <0xff 258>, /* rpm_ipc(28) */
203 <0xff 259>, /* rpm_ipc(29) */
204 <0xff 275>, /* rpm_ipc(30) */
205 <0xff 276>, /* rpm_ipc(31) */
206 <0xff 269>, /* rpm_wdog_expired_irq */
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700207 <0xff 240>; /* summary_irq_kpss */
208
209 qcom,gpio-parent = <&msmgpio>;
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800210 qcom,gpio-map = <3 1>,
211 <4 4 >,
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700212 <5 5 >,
213 <6 9 >,
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800214 <7 13>,
215 <8 17>,
216 <9 21>,
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700217 <10 27>,
Priyanka Mathurc59331f2013-02-15 12:41:12 -0800218 <11 29>,
219 <12 31>,
220 <13 33>,
221 <14 35>,
222 <15 37>,
223 <16 38>,
224 <17 39>,
225 <18 41>,
226 <19 46>,
227 <20 48>,
228 <21 49>,
229 <22 50>,
230 <23 51>,
231 <24 52>,
232 <25 54>,
233 <26 62>,
234 <27 63>,
235 <28 64>,
236 <29 65>,
237 <30 66>,
238 <31 67>,
239 <32 68>,
240 <33 69>,
241 <34 71>,
242 <35 72>,
243 <36 106>,
244 <37 107>,
245 <38 108>,
246 <39 109>,
247 <40 110>,
248 <54 111>,
249 <55 113>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700250 };
251
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800252 qcom,pm-8x60@fe805664 {
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700253 compatible = "qcom,pm-8x60";
Priyanka Mathur29b2bd22013-02-22 14:48:09 -0800254 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700255 qcom,pc-mode = "tz_l2_int";
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700256 qcom,use-sync-timer;
Priyanka Mathur85b52cf2013-04-12 16:54:35 -0700257 qcom,pc-resets-timer;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700258 };
259
Priyanka Mathurbd7633132013-05-21 17:01:56 -0700260 qcom,cpu-sleep-status@f9088008{
261 compatible = "qcom,cpu-sleep-status";
262 reg = <0xf9088008 0x100>;
263 qcom,cpu-alias-addr = <0x10000>;
264 qcom,sleep-status-mask= <0x80000>;
265 };
266
Priyanka Mathuref0f4fa2013-04-03 12:40:03 -0700267 qcom,rpm-log@fc19dc00 {
268 compatible = "qcom,rpm-log";
269 reg = <0xfc19dc00 0x4000>;
270 qcom,rpm-addr-phys = <0xfc000000>;
271 qcom,offset-version = <4>;
272 qcom,offset-page-buffer-addr = <36>;
273 qcom,offset-log-len = <40>;
274 qcom,offset-log-len-mask = <44>;
275 qcom,offset-page-indices = <56>;
276 };
277
Priyanka Mathur1a9747c2013-04-23 17:49:13 -0700278 qcom,rpm-stats@fc19dba0 {
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700279 compatible = "qcom,rpm-stats";
Priyanka Mathur1a9747c2013-04-23 17:49:13 -0700280 reg = <0xfc19dba0 0x1000>;
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700281 reg-names = "phys_addr_base";
282 qcom,sleep-stats-version = <2>;
283 };
Girish Mahadevan01a3f602013-05-20 12:13:48 -0600284
285 qcom,rpm-rbcpr-stats@fc000000 {
286 compatible = "qcom,rpmrbcpr-stats";
287 reg = <0xfc000000 0x1a0000>;
288 qcom,start-offset = <0x190010>;
289 };
Praveen Chidambarama1f98282012-11-29 09:56:57 -0700290};