blob: 1d10f8c931ca4a5181f632dccd7f3c8aeee84121 [file] [log] [blame]
Priyanka Mathurd61f67f2013-01-17 11:16:06 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -07002 *
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
13/include/ "skeleton.dtsi"
14
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070015&soc {
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070016 qcom,spm@f9009000 {
17 compatible = "qcom,spm-v2";
18 #address-cells = <1>;
19 #size-cells = <1>;
20 reg = <0xf9009000 0x1000>;
21 qcom,core-id = <0>;
22 qcom,saw2-ver-reg = <0xfd0>;
23 qcom,saw2-cfg = <0x101>;
24 qcom,saw2-spm-dly= <0>;
25 qcom,saw2-spm-ctl = <0x1>;
26 qcom,saw2-spm-cmd-wfi = [04 03 04 0f];
27 qcom,saw2-spm-cmd-spc = [34 04 44 14 24 54 03 54 44 14 04 24
28 3e 0f];
29 qcom,saw2-spm-cmd-pc = [34 04 44 14 24 54 07 54 44 14 04 24
30 3e 0f];
31 };
32
33 qcom,lpm-resources {
34 compatible = "qcom,lpm-resources";
35 #address-cells = <1>;
36 #size-cells = <0>;
37
38 qcom,lpm-resources@0 {
39 reg = <0x0>;
40 qcom,name = "vdd-dig";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070041 qcom,type = <0x616F646C>; /* "ldoa" */
42 qcom,id = <0x0A>;
43 qcom,key = <0x6e726f63>; /* "corn" */
Mahesh Sivasubramanianb76fb5e2012-11-05 14:40:09 -070044 qcom,init-value = <5>; /* Super Turbo */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070045 };
46
47 qcom,lpm-resources@1 {
48 reg = <0x1>;
49 qcom,name = "vdd-mem";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070050 qcom,type = <0x616F646C>; /* "ldoa" */
51 qcom,id = <0x0C>;
52 qcom,key = <0x7675>; /* "uv" */
Mahesh Sivasubramanianb76fb5e2012-11-05 14:40:09 -070053 qcom,init-value = <1050000>; /* Super Turbo */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070054 };
55
56 qcom,lpm-resources@2 {
57 reg = <0x2>;
58 qcom,name = "pxo";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070059 qcom,type = <0x306b6c63>; /* "clk0" */
60 qcom,id = <0x00>;
61 qcom,key = <0x62616e45>; /* "Enab" */
Archana Sathyakumare6a35102013-01-31 16:18:49 -070062 qcom,init-value = "xo_on";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070063 };
64 };
65
66 qcom,lpm-levels {
67 compatible = "qcom,lpm-levels";
68 #address-cells = <1>;
69 #size-cells = <0>;
70
Priyanka Mathurd61f67f2013-01-17 11:16:06 -080071 qcom,use-qtimer;
72
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070073 qcom,lpm-level@0 {
74 reg = <0x0>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -070075 qcom,mode = "wfi";
76 qcom,xo = "xo_on";
77 qcom,l2 = "l2_cache_active";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070078 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
79 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
80 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
81 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -070082 qcom,irqs-detectable;
Priyanka Mathur04933822013-03-25 18:41:01 -070083 qcom,gpio-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070084 qcom,latency-us = <100>;
85 qcom,ss-power = <8000>;
86 qcom,energy-overhead = <100000>;
87 qcom,time-overhead = <1>;
88 };
89
90 qcom,lpm-level@1 {
91 reg = <0x1>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -070092 qcom,mode = "standalone_pc";
93 qcom,xo = "xo_on";
94 qcom,l2 = "l2_cache_active";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070095 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
96 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
97 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
98 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -070099 qcom,irqs-detectable;
Priyanka Mathur04933822013-03-25 18:41:01 -0700100 qcom,gpio-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700101 qcom,latency-us = <2000>;
102 qcom,ss-power = <5000>;
103 qcom,energy-overhead = <60100000>;
104 qcom,time-overhead = <3000>;
105 };
106
107 qcom,lpm-level@2 {
108 reg = <0x2>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700109 qcom,mode = "pc";
110 qcom,xo = "xo_on";
111 qcom,l2 = "l2_cache_gdhs";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700112 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
113 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
114 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
115 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700116 qcom,irqs-detectable;
Priyanka Mathur04933822013-03-25 18:41:01 -0700117 qcom,gpio-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700118 qcom,latency-us = <3500>;
119 qcom,ss-power = <5000>;
120 qcom,energy-overhead = <60350000>;
121 qcom,time-overhead = <6300>;
122 };
123
124 qcom,lpm-level@3 {
125 reg = <0x3>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700126 qcom,mode = "pc";
127 qcom,xo = "xo_on";
128 qcom,l2 = "l2_cache_pc";
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700129 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
130 qcom,vdd-mem-lower-bound = <950000>; /* SVS SOC */
131 qcom,vdd-dig-upper-bound = <4>; /* NORMAL */
132 qcom,vdd-dig-lower-bound = <3>; /* SVS SOC */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700133 qcom,irqs-detectable;
Priyanka Mathur04933822013-03-25 18:41:01 -0700134 qcom,gpio-detectable;
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700135 qcom,latency-us = <4500>;
136 qcom,ss-power = <5000>;
137 qcom,energy-overhead = <60350000>;
138 qcom,time-overhead = <7300>;
139 };
140
141 qcom,lpm-level@4 {
142 reg = <0x4>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700143 qcom,mode = "pc";
144 qcom,xo = "xo_off";
145 qcom,l2 = "l2_cache_pc";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700146 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
147 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
148 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
149 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700150 qcom,irqs-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700151 qcom,latency-us = <6800>;
152 qcom,ss-power = <2000>;
153 qcom,energy-overhead = <71850000>;
154 qcom,time-overhead = <13300>;
155 };
156
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700157 qcom,lpm-level@5 {
158 reg = <0x5>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700159 qcom,mode = "pc";
160 qcom,xo = "xo_off";
161 qcom,l2 = "l2_cache_pc";
Girish Mahadevane4d30402013-03-04 16:41:13 -0700162 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
163 qcom,vdd-mem-lower-bound = <950000>; /* SVS SOC */
164 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
165 qcom,vdd-dig-lower-bound = <3>; /* SVS SOC */
166 qcom,irqs-detectable;
167 qcom,latency-us = <8000>;
168 qcom,ss-power = <1800>;
169 qcom,energy-overhead = <71950000>;
170 qcom,time-overhead = <15300>;
171 };
172
173 qcom,lpm-level@6 {
174 reg = <0x6>;
Archana Sathyakumare6a35102013-01-31 16:18:49 -0700175 qcom,mode = "pc";
176 qcom,xo = "xo_off";
177 qcom,l2 = "l2_cache_pc";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700178 qcom,vdd-mem-upper-bound = <950000>; /* SVS SOC */
179 qcom,vdd-mem-lower-bound = <675000>; /* RETENTION */
180 qcom,vdd-dig-upper-bound = <3>; /* SVS SOC */
181 qcom,vdd-dig-lower-bound = <1>; /* RETENTION */
182 qcom,latency-us = <9800>;
183 qcom,ss-power = <0>;
184 qcom,energy-overhead = <76350000>;
185 qcom,time-overhead = <28300>;
186 };
187 };
188
189 qcom,pm-boot {
190 compatible = "qcom,pm-boot";
Archana Sathyakumar28441012013-02-01 17:45:38 -0700191 qcom,mode = "tz";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700192 };
193
194 qcom,mpm@fc4281d0 {
195 compatible = "qcom,mpm-v2";
196 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
197 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
198 reg-names = "vmpm", "ipc";
199 interrupts = <0 171 1>;
200
201 qcom,ipc-bit-offset = <1>;
202
203 qcom,gic-parent = <&intc>;
Siddartha Mohanadosse511a6e2013-05-10 09:54:02 -0700204 qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
205 <47 172>, /* usb2_hsic_async_wakeup_irq */
Girish Mahadevan0e3f0ca2013-02-19 17:22:44 -0700206 <41 180>, /* usb_async_wakeup_irq */
207 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
208 <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) */
212 <0xff 173>, /* o_wcss_apss_smd_hi */
213 <0xff 174>, /* o_wcss_apss_smd_med */
214 <0xff 175>, /* o_wcss_apss_smd_lo */
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 */
218 <0xff 179>, /* o_wcss_apss_asic_intr */
219 <0xff 188>, /* q6ss_irq_out(4) */
220 <0xff 189>, /* q6ss_irq_out(5) */
221 <0xff 190>, /* q6ss_irq_out(6) */
222 <0xff 191>, /* q6ss_irq_out(7) */
223 <0xff 192>, /* audio_out0_irq */
224 <0xff 193>, /* midi_arm_irq */
225 <0xff 194>, /* q6ss_wdog_exp_irq */
226 <0xff 195>, /* slimbus_core_ee1_irq */
227 <0xff 196>, /* bam_irq(1) */
228 <0xff 197>, /* qdss_irq_out(7) */
229 <0xff 200>, /* rpm_ipc(4) */
230 <0xff 201>, /* rpm_ipc(5) */
231 <0xff 202>, /* rpm_ipc(6) */
232 <0xff 203>, /* rpm_ipc(7) */
233 <0xff 204>, /* rpm_ipc(24) */
234 <0xff 205>, /* rpm_ipc(25) */
235 <0xff 206>, /* rpm_ipc(26) */
236 <0xff 207>, /* rpm_ipc(27) */
237 <0xff 240>; /* summary_irq_kpss */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700238
239 qcom,gpio-parent = <&msmgpio>;
240 qcom,gpio-map = <4 1>,
241 <5 5>,
242 <6 9>,
243 <7 18>,
244 <8 20>,
245 <9 24>,
246 <10 27>,
247 <11 28>,
248 <12 34>,
249 <13 35>,
250 <14 37>,
251 <15 42>,
252 <16 44>,
253 <17 46>,
254 <18 50>,
255 <19 54>,
256 <20 59>,
257 <21 61>,
258 <22 62>,
259 <23 64>,
260 <24 65>,
261 <25 66>,
262 <26 67>,
263 <27 68>,
264 <28 71>,
265 <29 72>,
266 <30 73>,
267 <31 74>,
268 <32 75>,
269 <33 77>,
270 <34 79>,
271 <35 80>,
272 <36 82>,
273 <37 86>;
274 };
275
276 qcom,pm-8x60 {
277 compatible = "qcom,pm-8x60";
Archana Sathyakumar2b91dc82013-02-01 17:38:23 -0700278 qcom,pc-mode = "tz_l2_ext";
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700279 qcom,use-sync-timer;
280 };
Girish Mahadevan832a10f2012-11-07 15:41:09 -0700281
Priyanka Mathur6e91f4b2012-12-10 15:07:53 -0800282 qcom,rpm-log@fc19dc00 {
283 compatible = "qcom,rpm-log";
284 reg = <0xfc19dc00 0x4000>;
285 qcom,rpm-addr-phys = <0xfc000000>;
286 qcom,offset-version = <4>;
287 qcom,offset-page-buffer-addr = <36>;
288 qcom,offset-log-len = <40>;
289 qcom,offset-log-len-mask = <44>;
290 qcom,offset-page-indices = <56>;
291 };
292
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700293 qcom,rpm-stats@fc19dba0 {
Girish Mahadevan832a10f2012-11-07 15:41:09 -0700294 compatible = "qcom,rpm-stats";
Priyanka Mathur953b34a2013-04-11 16:13:30 -0700295 reg = <0xfc19dba0 0x1000>;
Girish Mahadevan832a10f2012-11-07 15:41:09 -0700296 reg-names = "phys_addr_base";
297 qcom,sleep-stats-version = <2>;
298 };
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700299};