blob: 886177d6fc89daced665784b3bb6ab3b0158e7ea [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];
Matt Wagantall3b337872014-01-29 19:01:52 -0800127 qcom,saw2-spm-cmd-gdhs = [00 20 32 42 03 44 22 50 02 32 50 0f];
Mahesh Sivasubramanianb9297082012-10-03 18:01:26 -0600128 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 */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530211 <0xff 34>, /* APCC_qgicL2ErrorIrptReq */
212 <0xff 35>, /* WDT_barkInt */
213 <0xff 40>, /* qtimer_phy_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600214 <0xff 57>, /* mss_to_apps_irq(0) */
215 <0xff 58>, /* mss_to_apps_irq(1) */
216 <0xff 59>, /* mss_to_apps_irq(2) */
217 <0xff 60>, /* mss_to_apps_irq(3) */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530218 <0xff 74>, /* osmmu_CIrpt[1] */
219 <0xff 75>, /* osmmu_CIrpt[0] */
220 <0xff 77>, /* osmmu_CIrpt[0] */
221 <0xff 78>, /* osmmu_CIrpt[0] */
222 <0xff 79>, /* osmmu_CIrpt[0] */
223 <0xff 94>, /* osmmu_CIrpt[0] */
224 <0xff 99>, /* msm_iommu_pmon_nonsecure_irq */
225 <0xff 102>, /* osmmu_CIrpt[1] */
226 <0xff 109>, /* ocmem_dm_nonsec_irq */
227 <0xff 126>, /* bam_irq[0] */
228 <0xff 155>, /* sdcc_irq[0] */
229 <0xff 163>, /* usb30_ee1_irq */
230 <0xff 170>, /* sdcc_pwr_cmd_irq */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600231 <0xff 173>, /* o_wcss_apss_smd_hi */
232 <0xff 174>, /* o_wcss_apss_smd_med */
233 <0xff 175>, /* o_wcss_apss_smd_low */
234 <0xff 176>, /* o_wcss_apss_smsm_irq */
235 <0xff 177>, /* o_wcss_apss_wlan_data_xfer_done */
236 <0xff 178>, /* o_wcss_apss_wlan_rx_data_avail */
Venkat Devarasetty4f6edc72013-08-19 15:08:48 +0530237 <0xff 179>, /* o_wcss_apss_asic_intr */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600238
239 <0xff 188>, /* lpass_irq_out_apcs(0) */
240 <0xff 189>, /* lpass_irq_out_apcs(1) */
241 <0xff 190>, /* lpass_irq_out_apcs(2) */
242 <0xff 191>, /* lpass_irq_out_apcs(3) */
243 <0xff 192>, /* lpass_irq_out_apcs(4) */
244 <0xff 193>, /* lpass_irq_out_apcs(5) */
245 <0xff 194>, /* lpass_irq_out_apcs(6) */
246 <0xff 195>, /* lpass_irq_out_apcs(7) */
247 <0xff 196>, /* lpass_irq_out_apcs(8) */
248 <0xff 197>, /* lpass_irq_out_apcs(9) */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530249 <0xff 198>, /* coresight-tmc-etr interrupt */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600250 <0xff 200>, /* rpm_ipc(4) */
251 <0xff 201>, /* rpm_ipc(5) */
252 <0xff 202>, /* rpm_ipc(6) */
253 <0xff 203>, /* rpm_ipc(7) */
254 <0xff 204>, /* rpm_ipc(24) */
255 <0xff 205>, /* rpm_ipc(25) */
256 <0xff 206>, /* rpm_ipc(26) */
257 <0xff 207>, /* rpm_ipc(27) */
Anji Jonnalac684fc02013-10-23 16:59:15 +0530258 <0xff 240>, /* summary_irq_kpss */
259 <0xff 268>, /* bam_irq[1] */
260 <0xff 270>, /* bam_irq[0] */
261 <0xff 271>; /* bam_irq[0] */
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600262
263 qcom,gpio-parent = <&msmgpio>;
264 qcom,gpio-map = <3 102>,
265 <4 1 >,
266 <5 5 >,
267 <6 9 >,
268 <7 18>,
269 <8 20>,
270 <9 24>,
271 <10 27>,
272 <11 28>,
273 <12 34>,
274 <13 35>,
275 <14 37>,
276 <15 42>,
277 <16 44>,
278 <17 46>,
279 <18 50>,
280 <19 54>,
281 <20 59>,
282 <21 61>,
283 <22 62>,
284 <23 64>,
285 <24 65>,
286 <25 66>,
287 <26 67>,
288 <27 68>,
289 <28 71>,
290 <29 72>,
291 <30 73>,
292 <31 74>,
293 <32 75>,
294 <33 77>,
295 <34 79>,
296 <35 80>,
297 <36 82>,
298 <37 86>,
299 <38 92>,
300 <39 93>,
Manu Gautam57c88122013-03-11 14:27:11 +0530301 <40 95>,
302 <41 144>;
Mahesh Sivasubramanian01df14d2012-05-04 17:35:55 -0600303 };
Mahesh Sivasubramanianaa684392012-08-14 14:56:33 -0600304
Praveen Chidambaramf27a5152013-02-01 11:44:53 -0700305 qcom,pm-8x60@fe805664 {
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600306 compatible = "qcom,pm-8x60";
Mahesh Sivasubramanian2de89eb2013-03-11 16:53:37 -0600307 #address-cells = <1>;
308 #size-cells = <1>;
309 ranges;
Praveen Chidambaramf27a5152013-02-01 11:44:53 -0700310 reg = <0xfe805664 0x40>;
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700311 qcom,pc-mode = "tz_l2_int";
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600312 qcom,use-sync-timer;
Saravana Kannanfd3ac302013-05-06 17:45:49 -0700313 qcom,cpus-as-clocks;
Mahesh Sivasubramanian59ffcb02013-05-31 15:08:15 -0600314 };
Mahesh Sivasubramanian2de89eb2013-03-11 16:53:37 -0600315
Mahesh Sivasubramanian59ffcb02013-05-31 15:08:15 -0600316 qcom,cpu-sleep-status@f9088008 {
317 compatible = "qcom,cpu-sleep-status";
318 reg = <0xf9088008 0x4>;
319 qcom,cpu-alias-addr = <0x10000>;
320 qcom,sleep-status-mask= <0x80000>;
Girish Mahadevan1dfeae92012-10-30 15:28:01 -0600321 };
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700322
Priyanka Mathur787ebcd2012-12-10 15:06:19 -0800323 qcom,rpm-log@fc19dc00 {
324 compatible = "qcom,rpm-log";
325 reg = <0xfc19dc00 0x4000>;
326 qcom,rpm-addr-phys = <0xfc000000>;
327 qcom,offset-version = <4>;
328 qcom,offset-page-buffer-addr = <36>;
329 qcom,offset-log-len = <40>;
330 qcom,offset-log-len-mask = <44>;
331 qcom,offset-page-indices = <56>;
332 };
333
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700334 qcom,rpm-stats@fc19dba0 {
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700335 compatible = "qcom,rpm-stats";
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700336 reg = <0xfc19dba0 0x1000>;
Priyanka Mathurc3c2e292012-10-31 12:51:38 -0700337 reg-names = "phys_addr_base";
338 qcom,sleep-stats-version = <2>;
339 };
Murali Nalajala8a8c2b22013-08-01 16:01:36 +0530340
341 qcom,rpm-master-stats@fc428150 {
342 compatible = "qcom,rpm-master-stats";
343 reg = <0xfc428150 0x3200>;
344 qcom,masters = "APSS", "MPSS", "LPSS", "PRONTO";
345 qcom,master-stats-version = <2>;
346 qcom,master-offset = <2560>;
347 };
348
Praveen Chidambaramaa9d52b2012-04-02 11:09:47 -0600349};