blob: 793d27b945dcc4220b6153cd7309bbf02a79735e [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
15/ {
16 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";
41 qcom,resource-type = <0>;
42 qcom,type = <0x616F646C>; /* "ldoa" */
43 qcom,id = <0x0A>;
44 qcom,key = <0x6e726f63>; /* "corn" */
Mahesh Sivasubramanianb76fb5e2012-11-05 14:40:09 -070045 qcom,init-value = <5>; /* Super Turbo */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070046 };
47
48 qcom,lpm-resources@1 {
49 reg = <0x1>;
50 qcom,name = "vdd-mem";
51 qcom,resource-type = <0>;
52 qcom,type = <0x616F646C>; /* "ldoa" */
53 qcom,id = <0x0C>;
54 qcom,key = <0x7675>; /* "uv" */
Mahesh Sivasubramanianb76fb5e2012-11-05 14:40:09 -070055 qcom,init-value = <1050000>; /* Super Turbo */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070056 };
57
58 qcom,lpm-resources@2 {
59 reg = <0x2>;
60 qcom,name = "pxo";
61 qcom,resource-type = <0>;
62 qcom,type = <0x306b6c63>; /* "clk0" */
63 qcom,id = <0x00>;
64 qcom,key = <0x62616e45>; /* "Enab" */
Mahesh Sivasubramanianb76fb5e2012-11-05 14:40:09 -070065 qcom,init-value = <1>; /* On */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070066 };
67 };
68
69 qcom,lpm-levels {
70 compatible = "qcom,lpm-levels";
71 #address-cells = <1>;
72 #size-cells = <0>;
73
Priyanka Mathurd61f67f2013-01-17 11:16:06 -080074 qcom,use-qtimer;
75
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070076 qcom,lpm-level@0 {
77 reg = <0x0>;
78 qcom,mode = <0>; /* MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT */
79 qcom,xo = <1>; /* ON */
80 qcom,l2 = <3>; /* ACTIVE */
81 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
82 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
83 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
84 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -070085 qcom,irqs-detectable;
86 qcom.gpios-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -070087 qcom,latency-us = <100>;
88 qcom,ss-power = <8000>;
89 qcom,energy-overhead = <100000>;
90 qcom,time-overhead = <1>;
91 };
92
93 qcom,lpm-level@1 {
94 reg = <0x1>;
95 qcom,mode = <2>; /* MSM_PM_SLEEP_MODE_STANDALONE_POWER_COLLAPSE */
96 qcom,xo = <1>; /* ON */
97 qcom,l2 = <3>; /* ACTIVE */
98 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
99 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
100 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
101 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700102 qcom,irqs-detectable;
103 qcom.gpios-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700104 qcom,latency-us = <2000>;
105 qcom,ss-power = <5000>;
106 qcom,energy-overhead = <60100000>;
107 qcom,time-overhead = <3000>;
108 };
109
110 qcom,lpm-level@2 {
111 reg = <0x2>;
112 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
113 qcom,xo = <1>; /* ON */
114 qcom,l2 = <1>; /* GDHS */
115 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
116 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
117 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
118 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700119 qcom,irqs-detectable;
120 qcom.gpios-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700121 qcom,latency-us = <3500>;
122 qcom,ss-power = <5000>;
123 qcom,energy-overhead = <60350000>;
124 qcom,time-overhead = <6300>;
125 };
126
127 qcom,lpm-level@3 {
128 reg = <0x3>;
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700129 qcom,mode = <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
130 qcom,xo = <1>; /* ON */
131 qcom,l2 = <0>; /* GDHS */
132 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
133 qcom,vdd-mem-lower-bound = <950000>; /* SVS SOC */
134 qcom,vdd-dig-upper-bound = <4>; /* NORMAL */
135 qcom,vdd-dig-lower-bound = <3>; /* SVS SOC */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700136 qcom,irqs-detectable;
137 qcom.gpios-detectable;
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700138 qcom,latency-us = <4500>;
139 qcom,ss-power = <5000>;
140 qcom,energy-overhead = <60350000>;
141 qcom,time-overhead = <7300>;
142 };
143
144 qcom,lpm-level@4 {
145 reg = <0x4>;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700146 qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
147 qcom,xo = <0>; /* OFF */
148 qcom,l2 = <0>; /* OFF */
149 qcom,vdd-mem-upper-bound = <1050000>; /* SUPER TURBO */
150 qcom,vdd-mem-lower-bound = <950000>; /* NORMAL */
151 qcom,vdd-dig-upper-bound = <6>; /* SUPER TURBO */
152 qcom,vdd-dig-lower-bound = <4>; /* NORMAL */
Mahesh Sivasubramanianb71ce092013-01-08 13:44:23 -0700153 qcom,irqs-detectable;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700154 qcom,latency-us = <6800>;
155 qcom,ss-power = <2000>;
156 qcom,energy-overhead = <71850000>;
157 qcom,time-overhead = <13300>;
158 };
159
Girish Mahadevane5db1ba2012-11-06 14:55:41 -0700160 qcom,lpm-level@5 {
161 reg = <0x5>;
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700162 qcom,mode= <3>; /* MSM_PM_SLEEP_MODE_POWER_COLLAPSE */
163 qcom,xo = <0>; /* OFF */
164 qcom,l2 = <0>; /* OFF */
165 qcom,vdd-mem-upper-bound = <950000>; /* SVS SOC */
166 qcom,vdd-mem-lower-bound = <675000>; /* RETENTION */
167 qcom,vdd-dig-upper-bound = <3>; /* SVS SOC */
168 qcom,vdd-dig-lower-bound = <1>; /* RETENTION */
169 qcom,latency-us = <9800>;
170 qcom,ss-power = <0>;
171 qcom,energy-overhead = <76350000>;
172 qcom,time-overhead = <28300>;
173 };
174 };
175
176 qcom,pm-boot {
177 compatible = "qcom,pm-boot";
178 qcom,mode = <0>; /* MSM_PM_BOOT_CONFIG_TZ */
179 };
180
181 qcom,mpm@fc4281d0 {
182 compatible = "qcom,mpm-v2";
183 reg = <0xfc4281d0 0x1000>, /* MSM_RPM_MPM_BASE 4K */
184 <0xf9011008 0x4>; /* MSM_APCS_GCC_BASE 4K */
185 reg-names = "vmpm", "ipc";
186 interrupts = <0 171 1>;
187
188 qcom,ipc-bit-offset = <1>;
189
190 qcom,gic-parent = <&intc>;
Girish Mahadevan38f51a52012-12-11 17:02:22 -0700191 qcom,gic-map = <47 172>, /* usb2_hsic_async_wakeup_irq */
192 <62 222>, /* ee0_krait_hlos_spmi_periph_irq */
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700193 <0xff 208>; /* summary_irq_kpss */
194
195 qcom,gpio-parent = <&msmgpio>;
196 qcom,gpio-map = <4 1>,
197 <5 5>,
198 <6 9>,
199 <7 18>,
200 <8 20>,
201 <9 24>,
202 <10 27>,
203 <11 28>,
204 <12 34>,
205 <13 35>,
206 <14 37>,
207 <15 42>,
208 <16 44>,
209 <17 46>,
210 <18 50>,
211 <19 54>,
212 <20 59>,
213 <21 61>,
214 <22 62>,
215 <23 64>,
216 <24 65>,
217 <25 66>,
218 <26 67>,
219 <27 68>,
220 <28 71>,
221 <29 72>,
222 <30 73>,
223 <31 74>,
224 <32 75>,
225 <33 77>,
226 <34 79>,
227 <35 80>,
228 <36 82>,
229 <37 86>;
230 };
231
232 qcom,pm-8x60 {
233 compatible = "qcom,pm-8x60";
234 qcom,pc-mode = <2>; /*MSM_PC_TZ_L2_EXT */
235 qcom,use-sync-timer;
236 };
Girish Mahadevan832a10f2012-11-07 15:41:09 -0700237
238 qcom,rpm-stats@fc19dbd0 {
239 compatible = "qcom,rpm-stats";
240 reg = <0xfc19dbd0 0x1000>;
241 reg-names = "phys_addr_base";
242 qcom,sleep-stats-version = <2>;
243 };
Girish Mahadevanfc5f5c32012-10-23 16:27:28 -0700244};