blob: 17d3fce06dbc79acc7bf352efce2b8f803fa4a45 [file] [log] [blame]
Girish Mahadevan90a2f662012-11-01 09:34:46 -06001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -06002 *
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 Chidambaramaa9d52b2012-04-02 11:09:47 -060014 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>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060021 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060022 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= <0x20000400>;
27 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060028 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Priyanka Mathur60ac7582012-10-03 15:13:32 -070029 qcom,saw2-spm-cmd-ret = [42 1b 00 d0 c0 a0 90 03 d0 98 a2 c0
30 0b 00 42 1b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060031 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
32 10 0b 30 06 26 30 0f];
33 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
34 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060035 };
36
37 qcom,spm@f9099000 {
38 compatible = "qcom,spm-v2";
39 #address-cells = <1>;
40 #size-cells = <1>;
41 reg = <0xf9099000 0x1000>;
42 qcom,core-id = <1>;
43 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060044 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060045 qcom,saw2-avs-ctl = <0>;
46 qcom,saw2-avs-hysteresis = <0>;
47 qcom,saw2-avs-limit = <0>;
48 qcom,saw2-avs-dly= <0>;
49 qcom,saw2-spm-dly= <0x20000400>;
50 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060051 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Priyanka Mathur60ac7582012-10-03 15:13:32 -070052 qcom,saw2-spm-cmd-ret = [42 1b 00 d0 c0 a0 90 03 d0 98 a2 c0
53 0b 00 42 1b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060054 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
55 10 0b 30 06 26 30 0f];
56 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
57 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060058 };
59
60 qcom,spm@f90a9000 {
61 compatible = "qcom,spm-v2";
62 #address-cells = <1>;
63 #size-cells = <1>;
64 reg = <0xf90a9000 0x1000>;
65 qcom,core-id = <2>;
66 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060067 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060068 qcom,saw2-avs-ctl = <0>;
69 qcom,saw2-avs-hysteresis = <0>;
70 qcom,saw2-avs-limit = <0>;
71 qcom,saw2-avs-dly= <0>;
72 qcom,saw2-spm-dly= <0x20000400>;
73 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060074 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Priyanka Mathur60ac7582012-10-03 15:13:32 -070075 qcom,saw2-spm-cmd-ret = [42 1b 00 d0 c0 a0 90 03 d0 98 a2 c0
76 0b 00 42 1b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060077 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
78 10 0b 30 06 26 30 0f];
79 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
80 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060081 };
82
83 qcom,spm@f90b9000 {
84 compatible = "qcom,spm-v2";
85 #address-cells = <1>;
86 #size-cells = <1>;
87 reg = <0xf90b9000 0x1000>;
88 qcom,core-id = <3>;
89 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -060090 qcom,saw2-cfg = <0x01>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -060091 qcom,saw2-avs-ctl = <0>;
92 qcom,saw2-avs-hysteresis = <0>;
93 qcom,saw2-avs-limit = <0>;
94 qcom,saw2-avs-dly= <0>;
95 qcom,saw2-spm-dly= <0x20000400>;
96 qcom,saw2-spm-ctl = <0x1>;
Mahesh Sivasubramanian11373322012-06-14 11:17:20 -060097 qcom,saw2-spm-cmd-wfi = [03 0b 0f];
Priyanka Mathur60ac7582012-10-03 15:13:32 -070098 qcom,saw2-spm-cmd-ret = [42 1b 00 d0 c0 a0 90 03 d0 98 a2 c0
99 0b 00 42 1b 0f];
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600100 qcom,saw2-spm-cmd-spc = [00 20 80 10 90 a0 b0 03 3b 98 a2 b0 82
101 10 0b 30 06 26 30 0f];
102 qcom,saw2-spm-cmd-pc = [00 20 80 10 90 a0 b0 07 3b 98 a2 b0 82
103 10 0b 30 06 26 30 0f];
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600104 };
105
106 qcom,spm@f9012000 {
107 compatible = "qcom,spm-v2";
108 #address-cells = <1>;
109 #size-cells = <1>;
110 reg = <0xf9012000 0x1000>;
111 qcom,core-id = <0xffff>; /* L2/APCS SAW */
112 qcom,saw2-ver-reg = <0xfd0>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600113 qcom,saw2-cfg = <0x14>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600114 qcom,saw2-avs-ctl = <0>;
115 qcom,saw2-avs-hysteresis = <0>;
116 qcom,saw2-avs-limit = <0>;
117 qcom,saw2-avs-dly= <0>;
118 qcom,saw2-spm-dly= <0x20000400>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600119 qcom,saw2-spm-ctl = <0x1>;
Praveen Chidambaram32e3a9e2012-08-22 11:32:52 -0600120 qcom,saw2-pmic-data0 = <0x02030080>;
121 qcom,saw2-pmic-data1 = <0x00030000>;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600122 qcom,vctl-timeout-us = <50>;
Mahesh Sivasubramanian635237e2012-08-10 10:14:35 -0600123 qcom,vctl-port = <0x0>;
124 qcom,phase-port = <0x1>;
Praveen Chidambaramb7253e42012-07-12 16:20:48 -0600125 qcom,pfm-port = <0x2>;
Mahesh Sivasubramaniana6af6182012-11-01 17:19:51 -0600126 qcom,saw2-spm-cmd-ret = [1f 00 20 03 22 00 0f];
Mahesh Sivasubramanianb9297082012-10-03 18:01:26 -0600127 qcom,saw2-spm-cmd-gdhs = [00 20 32 42 07 44 22 50 02 32 50 0f];
128 qcom,saw2-spm-cmd-pc = [00 10 32 b0 11 42 07 01 b0 12 44
129 50 02 32 50 0f];
Praveen Chidambaram48197dd2013-03-21 15:51:43 -0600130 qcom,L2-spm-is-apcs-master;
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600131 };
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600132
133 qcom,lpm-levels {
134 compatible = "qcom,lpm-levels";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600135 qcom,default-l2-state = "l2_cache_retention";
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600136 #address-cells = <1>;
137 #size-cells = <0>;
138
139 qcom,lpm-level@0 {
140 reg = <0x0>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700141 qcom,mode = "wfi";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700142 qcom,l2 = "l2_cache_active";
Girish Mahadevan02d7bba2012-11-16 17:11:04 -0700143 qcom,latency-us = <1>;
144 qcom,ss-power = <784>;
145 qcom,energy-overhead = <190000>;
146 qcom,time-overhead = <100>;
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600147 };
148
149 qcom,lpm-level@1 {
150 reg = <0x1>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700151 qcom,mode = "retention";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700152 qcom,l2 = "l2_cache_active";
Girish Mahadevan02d7bba2012-11-16 17:11:04 -0700153 qcom,latency-us = <75>;
154 qcom,ss-power = <735>;
155 qcom,energy-overhead = <77341>;
156 qcom,time-overhead = <105>;
Priyanka Mathur60ac7582012-10-03 15:13:32 -0700157 };
158
Girish Mahadevan86a851c2013-02-08 17:21:33 -0700159
Priyanka Mathur60ac7582012-10-03 15:13:32 -0700160 qcom,lpm-level@2 {
161 reg = <0x2>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700162 qcom,mode = "standalone_pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700163 qcom,l2 = "l2_cache_active";
Girish Mahadevan02d7bba2012-11-16 17:11:04 -0700164 qcom,latency-us = <95>;
165 qcom,ss-power = <725>;
166 qcom,energy-overhead = <99500>;
167 qcom,time-overhead = <130>;
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600168 };
169
Priyanka Mathur60ac7582012-10-03 15:13:32 -0700170 qcom,lpm-level@3 {
171 reg = <0x3>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700172 qcom,mode = "pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700173 qcom,l2 = "l2_cache_gdhs";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600174 qcom,latency-us = <20000>;
Girish Mahadevan02d7bba2012-11-16 17:11:04 -0700175 qcom,ss-power = <138>;
176 qcom,energy-overhead = <1208400>;
177 qcom,time-overhead = <3200>;
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600178 };
179
Priyanka Mathur60ac7582012-10-03 15:13:32 -0700180 qcom,lpm-level@4 {
181 reg = <0x4>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700182 qcom,mode = "pc";
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700183 qcom,l2 = "l2_cache_pc";
Girish Mahadevanc45b4c72013-04-24 14:07:11 -0600184 qcom,latency-us = <30000>;
Girish Mahadevan02d7bba2012-11-16 17:11:04 -0700185 qcom,ss-power = <110>;
186 qcom,energy-overhead = <1250300>;
187 qcom,time-overhead = <3500>;
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600188 };
Praveen Chidambaram85b7b282012-04-16 13:45:15 -0600189 };
Praveen Chidambaram7d4167b2012-04-30 17:37:48 -0600190
191 qcom,pm-boot {
192 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700193 qcom,mode = "tz";
Praveen Chidambaram7d4167b2012-04-30 17:37:48 -0600194 };
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600195
196 qcom,mpm@fc4281d0 {
197 compatible = "qcom,mpm-v2";
198 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
Mahesh Sivasubramanian75178902012-08-24 19:43:50 -0600199 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600200 reg-names = "vmpm", "ipc";
201 interrupts = <0 171 1>;
202
Mahesh Sivasubramanian75178902012-08-24 19:43:50 -0600203 qcom,ipc-bit-offset = <1>;
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600204
205 qcom,gic-parent = <&intc>;
Siddartha Mohanadosse511a6e2013-05-10 09:54:02 -0700206 qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
207 <47 165>, /* usb30_hs_phy_irq */
Manu Gautam512a6902013-03-14 17:20:23 +0530208 <50 172>, /* usb1_hs_async_wakeup_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600209 <53 104>, /* mdss_irq */
Mahesh Sivasubramanian512efcc2012-09-07 11:16:02 -0600210 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600211 <0xff 57>, /* mss_to_apps_irq(0) */
212 <0xff 58>, /* mss_to_apps_irq(1) */
213 <0xff 59>, /* mss_to_apps_irq(2) */
214 <0xff 60>, /* mss_to_apps_irq(3) */
215 <0xff 173>, /* o_wcss_apss_smd_hi */
216 <0xff 174>, /* o_wcss_apss_smd_med */
217 <0xff 175>, /* o_wcss_apss_smd_low */
218 <0xff 176>, /* o_wcss_apss_smsm_irq */
219 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
220 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
Venkat Devarasetty4f6edc72013-08-19 15:08:48 +0530221 <0xff 179>, /* o_wcss_apss_asic_intr */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600222
223 <0xff 188>, /* lpass_irq_out_apcs(0) */
224 <0xff 189>, /* lpass_irq_out_apcs(1) */
225 <0xff 190>, /* lpass_irq_out_apcs(2) */
226 <0xff 191>, /* lpass_irq_out_apcs(3) */
227 <0xff 192>, /* lpass_irq_out_apcs(4) */
228 <0xff 193>, /* lpass_irq_out_apcs(5) */
229 <0xff 194>, /* lpass_irq_out_apcs(6) */
230 <0xff 195>, /* lpass_irq_out_apcs(7) */
231 <0xff 196>, /* lpass_irq_out_apcs(8) */
232 <0xff 197>, /* lpass_irq_out_apcs(9) */
233 <0xff 200>, /* rpm_ipc(4) */
234 <0xff 201>, /* rpm_ipc(5) */
235 <0xff 202>, /* rpm_ipc(6) */
236 <0xff 203>, /* rpm_ipc(7) */
237 <0xff 204>, /* rpm_ipc(24) */
238 <0xff 205>, /* rpm_ipc(25) */
239 <0xff 206>, /* rpm_ipc(26) */
240 <0xff 207>, /* rpm_ipc(27) */
241 <0xff 240>; /* summary_irq_kpss */
242
243 qcom,gpio-parent = <&msmgpio>;
244 qcom,gpio-map = <3 102>,
245 <4 1 >,
246 <5 5 >,
247 <6 9 >,
248 <7 18>,
249 <8 20>,
250 <9 24>,
251 <10 27>,
252 <11 28>,
253 <12 34>,
254 <13 35>,
255 <14 37>,
256 <15 42>,
257 <16 44>,
258 <17 46>,
259 <18 50>,
260 <19 54>,
261 <20 59>,
262 <21 61>,
263 <22 62>,
264 <23 64>,
265 <24 65>,
266 <25 66>,
267 <26 67>,
268 <27 68>,
269 <28 71>,
270 <29 72>,
271 <30 73>,
272 <31 74>,
273 <32 75>,
274 <33 77>,
275 <34 79>,
276 <35 80>,
277 <36 82>,
278 <37 86>,
279 <38 92>,
280 <39 93>,
Manu Gautam57c88122013-03-11 14:27:11 +0530281 <40 95>,
282 <41 144>;
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600283 };
Mahesh Sivasubramanianaa684392012-08-14 14:56:33 -0600284
Praveen Chidambaramf27a5152013-02-01 11:44:53 -0700285 qcom,pm-8x60@fe805664 {
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600286 compatible = "qcom,pm-8x60";
Mahesh Sivasubramanian2de89eb2013-03-11 16:53:37 -0600287 #address-cells = <1>;
288 #size-cells = <1>;
289 ranges;
Praveen Chidambaramf27a5152013-02-01 11:44:53 -0700290 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700291 qcom,pc-mode = "tz_l2_int";
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600292 qcom,use-sync-timer;
Mahesh Sivasubramanian59ffcb02013-05-31 15:08:15 -0600293 };
Mahesh Sivasubramanian2de89eb2013-03-11 16:53:37 -0600294
Mahesh Sivasubramanian59ffcb02013-05-31 15:08:15 -0600295 qcom,cpu-sleep-status@f9088008 {
296 compatible = "qcom,cpu-sleep-status";
297 reg = <0xf9088008 0x4>;
298 qcom,cpu-alias-addr = <0x10000>;
299 qcom,sleep-status-mask= <0x80000>;
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600300 };
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700301
Priyanka Mathur787ebcd2012-12-10 15:06:19 -0800302 qcom,rpm-log@fc19dc00 {
303 compatible = "qcom,rpm-log";
304 reg = <0xfc19dc00 0x4000>;
305 qcom,rpm-addr-phys = <0xfc000000>;
306 qcom,offset-version = <4>;
307 qcom,offset-page-buffer-addr = <36>;
308 qcom,offset-log-len = <40>;
309 qcom,offset-log-len-mask = <44>;
310 qcom,offset-page-indices = <56>;
311 };
312
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700313 qcom,rpm-stats@fc19dba0 {
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700314 compatible = "qcom,rpm-stats";
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700315 reg = <0xfc19dba0 0x1000>;
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700316 reg-names = "phys_addr_base";
317 qcom,sleep-stats-version = <2>;
318 };
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600319};