blob: 18637c06566c3109e3cf744a4c361c1ce2422b6c [file] [log] [blame]
Kumar Galaf335b8a2014-04-03 14:48:22 -05001/dts-v1/;
2
3#include "skeleton.dtsi"
4#include <dt-bindings/clock/qcom,gcc-msm8960.h>
Srinivas Kandagatla223280b2015-04-10 21:43:30 +01005#include <dt-bindings/reset/qcom,gcc-msm8960.h>
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -07006#include <dt-bindings/clock/qcom,mmcc-msm8960.h>
Kumar Galaf335b8a2014-04-03 14:48:22 -05007#include <dt-bindings/soc/qcom,gsbi.h>
Pramod Gurav8b8936f2014-08-29 20:00:56 +05308#include <dt-bindings/interrupt-controller/arm-gic.h>
Kumar Galaf335b8a2014-04-03 14:48:22 -05009/ {
10 model = "Qualcomm APQ8064";
11 compatible = "qcom,apq8064";
12 interrupt-parent = <&intc>;
13
Bjorn Andersson24a9baf2015-10-22 11:13:48 -070014 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18
19 smem_region: smem@80000000 {
20 reg = <0x80000000 0x200000>;
21 no-map;
22 };
23 };
24
Kumar Galaf335b8a2014-04-03 14:48:22 -050025 cpus {
26 #address-cells = <1>;
27 #size-cells = <0>;
28
29 cpu@0 {
30 compatible = "qcom,krait";
31 enable-method = "qcom,kpss-acc-v1";
32 device_type = "cpu";
33 reg = <0>;
34 next-level-cache = <&L2>;
35 qcom,acc = <&acc0>;
36 qcom,saw = <&saw0>;
Lina Iyer06c49f22015-03-25 14:25:35 -060037 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050038 };
39
40 cpu@1 {
41 compatible = "qcom,krait";
42 enable-method = "qcom,kpss-acc-v1";
43 device_type = "cpu";
44 reg = <1>;
45 next-level-cache = <&L2>;
46 qcom,acc = <&acc1>;
47 qcom,saw = <&saw1>;
Lina Iyer06c49f22015-03-25 14:25:35 -060048 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050049 };
50
51 cpu@2 {
52 compatible = "qcom,krait";
53 enable-method = "qcom,kpss-acc-v1";
54 device_type = "cpu";
55 reg = <2>;
56 next-level-cache = <&L2>;
57 qcom,acc = <&acc2>;
58 qcom,saw = <&saw2>;
Lina Iyer06c49f22015-03-25 14:25:35 -060059 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050060 };
61
62 cpu@3 {
63 compatible = "qcom,krait";
64 enable-method = "qcom,kpss-acc-v1";
65 device_type = "cpu";
66 reg = <3>;
67 next-level-cache = <&L2>;
68 qcom,acc = <&acc3>;
69 qcom,saw = <&saw3>;
Lina Iyer06c49f22015-03-25 14:25:35 -060070 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050071 };
72
73 L2: l2-cache {
74 compatible = "cache";
75 cache-level = <2>;
76 };
Lina Iyer06c49f22015-03-25 14:25:35 -060077
78 idle-states {
79 CPU_SPC: spc {
80 compatible = "qcom,idle-state-spc",
81 "arm,idle-state";
82 entry-latency-us = <400>;
83 exit-latency-us = <900>;
84 min-residency-us = <3000>;
85 };
86 };
Kumar Galaf335b8a2014-04-03 14:48:22 -050087 };
88
89 cpu-pmu {
90 compatible = "qcom,krait-pmu";
91 interrupts = <1 10 0x304>;
92 };
93
Georgi Djakovaa269122015-12-03 16:02:55 +020094 clocks {
95 cxo_board {
96 compatible = "fixed-clock";
97 #clock-cells = <0>;
98 clock-frequency = <19200000>;
99 };
100
101 pxo_board {
102 compatible = "fixed-clock";
103 #clock-cells = <0>;
104 clock-frequency = <27000000>;
105 };
106
107 sleep_clk {
108 compatible = "fixed-clock";
109 #clock-cells = <0>;
110 clock-frequency = <32768>;
111 };
112 };
113
Bjorn Andersson24a9baf2015-10-22 11:13:48 -0700114 sfpb_mutex: hwmutex {
115 compatible = "qcom,sfpb-mutex";
116 syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
117 #hwlock-cells = <1>;
118 };
119
120 smem {
121 compatible = "qcom,smem";
122 memory-region = <&smem_region>;
123
124 hwlocks = <&sfpb_mutex 3>;
125 };
126
Bjorn Andersson2afc5282016-03-28 20:37:04 -0700127 smd {
128 compatible = "qcom,smd";
129
130 modem@0 {
131 interrupts = <0 37 IRQ_TYPE_EDGE_RISING>;
132
133 qcom,ipc = <&l2cc 8 3>;
134 qcom,smd-edge = <0>;
135
136 status = "disabled";
137 };
138
139 q6@1 {
140 interrupts = <0 90 IRQ_TYPE_EDGE_RISING>;
141
142 qcom,ipc = <&l2cc 8 15>;
143 qcom,smd-edge = <1>;
144
145 status = "disabled";
146 };
147
148 dsps@3 {
149 interrupts = <0 138 IRQ_TYPE_EDGE_RISING>;
150
151 qcom,ipc = <&sps_sic_non_secure 0x4080 0>;
152 qcom,smd-edge = <3>;
153
154 status = "disabled";
155 };
156
157 riva@6 {
158 interrupts = <0 198 IRQ_TYPE_EDGE_RISING>;
159
160 qcom,ipc = <&l2cc 8 25>;
161 qcom,smd-edge = <6>;
162
163 status = "disabled";
164 };
165 };
166
Bjorn Anderssonb4d45822016-03-28 20:37:03 -0700167 smsm {
168 compatible = "qcom,smsm";
169
170 #address-cells = <1>;
171 #size-cells = <0>;
172
173 qcom,ipc-1 = <&l2cc 8 4>;
174 qcom,ipc-2 = <&l2cc 8 14>;
175 qcom,ipc-3 = <&l2cc 8 23>;
176 qcom,ipc-4 = <&sps_sic_non_secure 0x4094 0>;
177
178 apps_smsm: apps@0 {
179 reg = <0>;
180 #qcom,state-cells = <1>;
181 };
182
183 modem_smsm: modem@1 {
184 reg = <1>;
185 interrupts = <0 38 IRQ_TYPE_EDGE_RISING>;
186
187 interrupt-controller;
188 #interrupt-cells = <2>;
189 };
190
191 q6_smsm: q6@2 {
192 reg = <2>;
193 interrupts = <0 89 IRQ_TYPE_EDGE_RISING>;
194
195 interrupt-controller;
196 #interrupt-cells = <2>;
197 };
198
199 wcnss_smsm: wcnss@3 {
200 reg = <3>;
201 interrupts = <0 204 IRQ_TYPE_EDGE_RISING>;
202
203 interrupt-controller;
204 #interrupt-cells = <2>;
205 };
206
207 dsps_smsm: dsps@4 {
208 reg = <4>;
209 interrupts = <0 137 IRQ_TYPE_EDGE_RISING>;
210
211 interrupt-controller;
212 #interrupt-cells = <2>;
213 };
214 };
215
Kumar Galaf335b8a2014-04-03 14:48:22 -0500216 soc: soc {
217 #address-cells = <1>;
218 #size-cells = <1>;
219 ranges;
220 compatible = "simple-bus";
221
Pramod Gurav8b8936f2014-08-29 20:00:56 +0530222 tlmm_pinmux: pinctrl@800000 {
223 compatible = "qcom,apq8064-pinctrl";
224 reg = <0x800000 0x4000>;
225
226 gpio-controller;
227 #gpio-cells = <2>;
228 interrupt-controller;
229 #interrupt-cells = <2>;
230 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
Pramod Guravcd6dd112014-08-29 20:00:57 +0530231
232 pinctrl-names = "default";
233 pinctrl-0 = <&ps_hold>;
Pramod Gurav8b8936f2014-08-29 20:00:56 +0530234 };
235
Bjorn Andersson24a9baf2015-10-22 11:13:48 -0700236 sfpb_wrapper_mutex: syscon@1200000 {
237 compatible = "syscon";
238 reg = <0x01200000 0x8000>;
239 };
240
Kumar Galaf335b8a2014-04-03 14:48:22 -0500241 intc: interrupt-controller@2000000 {
242 compatible = "qcom,msm-qgic2";
243 interrupt-controller;
244 #interrupt-cells = <3>;
245 reg = <0x02000000 0x1000>,
246 <0x02002000 0x1000>;
247 };
248
249 timer@200a000 {
250 compatible = "qcom,kpss-timer", "qcom,msm-timer";
251 interrupts = <1 1 0x301>,
252 <1 2 0x301>,
253 <1 3 0x301>;
254 reg = <0x0200a000 0x100>;
255 clock-frequency = <27000000>,
256 <32768>;
257 cpu-offset = <0x80000>;
258 };
259
260 acc0: clock-controller@2088000 {
261 compatible = "qcom,kpss-acc-v1";
262 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
263 };
264
265 acc1: clock-controller@2098000 {
266 compatible = "qcom,kpss-acc-v1";
267 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
268 };
269
270 acc2: clock-controller@20a8000 {
271 compatible = "qcom,kpss-acc-v1";
272 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
273 };
274
275 acc3: clock-controller@20b8000 {
276 compatible = "qcom,kpss-acc-v1";
277 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
278 };
279
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600280 saw0: power-controller@2089000 {
281 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500282 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
283 regulator;
284 };
285
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600286 saw1: power-controller@2099000 {
287 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500288 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
289 regulator;
290 };
291
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600292 saw2: power-controller@20a9000 {
293 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500294 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
295 regulator;
296 };
297
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600298 saw3: power-controller@20b9000 {
299 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500300 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
301 regulator;
302 };
303
Bjorn Anderssonb9e4c5e2016-03-28 20:37:02 -0700304 sps_sic_non_secure: sps-sic-non-secure@12100000 {
305 compatible = "syscon";
306 reg = <0x12100000 0x10000>;
307 };
308
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530309 gsbi1: gsbi@12440000 {
310 status = "disabled";
311 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600312 cell-index = <1>;
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530313 reg = <0x12440000 0x100>;
314 clocks = <&gcc GSBI1_H_CLK>;
315 clock-names = "iface";
316 #address-cells = <1>;
317 #size-cells = <1>;
318 ranges;
319
Andy Gross4105d9d2015-02-09 16:01:08 -0600320 syscon-tcsr = <&tcsr>;
321
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000322 gsbi1_i2c: i2c@12460000 {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530323 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100324 pinctrl-0 = <&i2c1_pins>;
325 pinctrl-1 = <&i2c1_pins_sleep>;
Srinivas Kandagatla64b22b22016-02-23 14:14:26 +0000326 pinctrl-names = "default", "sleep";
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530327 reg = <0x12460000 0x1000>;
328 interrupts = <0 194 IRQ_TYPE_NONE>;
329 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
330 clock-names = "core", "iface";
331 #address-cells = <1>;
332 #size-cells = <0>;
333 };
Srinivas Kandagatlab2dc04c52016-02-23 14:14:33 +0000334
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530335 };
336
337 gsbi2: gsbi@12480000 {
338 status = "disabled";
339 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600340 cell-index = <2>;
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530341 reg = <0x12480000 0x100>;
342 clocks = <&gcc GSBI2_H_CLK>;
343 clock-names = "iface";
344 #address-cells = <1>;
345 #size-cells = <1>;
346 ranges;
347
Andy Gross4105d9d2015-02-09 16:01:08 -0600348 syscon-tcsr = <&tcsr>;
349
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000350 gsbi2_i2c: i2c@124a0000 {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530351 compatible = "qcom,i2c-qup-v1.1.1";
352 reg = <0x124a0000 0x1000>;
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100353 pinctrl-0 = <&i2c2_pins>;
354 pinctrl-1 = <&i2c2_pins_sleep>;
Srinivas Kandagatla7788d432016-02-23 14:14:45 +0000355 pinctrl-names = "default", "sleep";
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530356 interrupts = <0 196 IRQ_TYPE_NONE>;
357 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
358 clock-names = "core", "iface";
359 #address-cells = <1>;
360 #size-cells = <0>;
361 };
362 };
363
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100364 gsbi3: gsbi@16200000 {
365 status = "disabled";
366 compatible = "qcom,gsbi-v1.0.0";
Srinivas Kandagatla504155c2015-07-27 14:52:19 +0100367 cell-index = <3>;
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100368 reg = <0x16200000 0x100>;
369 clocks = <&gcc GSBI3_H_CLK>;
370 clock-names = "iface";
371 #address-cells = <1>;
372 #size-cells = <1>;
373 ranges;
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000374 gsbi3_i2c: i2c@16280000 {
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100375 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100376 pinctrl-0 = <&i2c3_pins>;
377 pinctrl-1 = <&i2c3_pins_sleep>;
Srinivas Kandagatla64b22b22016-02-23 14:14:26 +0000378 pinctrl-names = "default", "sleep";
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100379 reg = <0x16280000 0x1000>;
380 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
381 clocks = <&gcc GSBI3_QUP_CLK>,
382 <&gcc GSBI3_H_CLK>;
383 clock-names = "core", "iface";
John Stultz5d31f602016-02-05 10:06:17 -0800384 #address-cells = <1>;
385 #size-cells = <0>;
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100386 };
387 };
388
Srinivas Kandagatla2a5cbc12016-02-23 14:14:50 +0000389 gsbi4: gsbi@16300000 {
390 status = "disabled";
391 compatible = "qcom,gsbi-v1.0.0";
392 cell-index = <4>;
393 reg = <0x16300000 0x03>;
394 clocks = <&gcc GSBI4_H_CLK>;
395 clock-names = "iface";
396 #address-cells = <1>;
397 #size-cells = <1>;
398 ranges;
399
400 gsbi4_i2c: i2c@16380000 {
401 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100402 pinctrl-0 = <&i2c4_pins>;
403 pinctrl-1 = <&i2c4_pins_sleep>;
Srinivas Kandagatla2a5cbc12016-02-23 14:14:50 +0000404 pinctrl-names = "default", "sleep";
405 reg = <0x16380000 0x1000>;
406 interrupts = <GIC_SPI 153 IRQ_TYPE_NONE>;
407 clocks = <&gcc GSBI4_QUP_CLK>,
408 <&gcc GSBI4_H_CLK>;
409 clock-names = "core", "iface";
410 };
411 };
412
Bjorn Andersson1099b262015-10-22 11:13:50 -0700413 gsbi5: gsbi@1a200000 {
414 status = "disabled";
415 compatible = "qcom,gsbi-v1.0.0";
416 cell-index = <5>;
417 reg = <0x1a200000 0x03>;
418 clocks = <&gcc GSBI5_H_CLK>;
419 clock-names = "iface";
420 #address-cells = <1>;
421 #size-cells = <1>;
422 ranges;
423
424 gsbi5_serial: serial@1a240000 {
425 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
426 reg = <0x1a240000 0x100>,
427 <0x1a200000 0x03>;
428 interrupts = <0 154 0x0>;
429 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
430 clock-names = "core", "iface";
431 status = "disabled";
432 };
Srinivas Kandagatlab2dc04c52016-02-23 14:14:33 +0000433
434 gsbi5_spi: spi@1a280000 {
435 compatible = "qcom,spi-qup-v1.1.1";
436 reg = <0x1a280000 0x1000>;
437 interrupts = <0 155 0>;
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100438 pinctrl-0 = <&spi5_default>;
439 pinctrl-1 = <&spi5_sleep>;
Srinivas Kandagatlab2dc04c52016-02-23 14:14:33 +0000440 pinctrl-names = "default", "sleep";
441 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
442 clock-names = "core", "iface";
443 status = "disabled";
444 #address-cells = <1>;
445 #size-cells = <0>;
446 };
Bjorn Andersson1099b262015-10-22 11:13:50 -0700447 };
448
Pramod Gurav86e252a2015-07-27 14:52:10 +0100449 gsbi6: gsbi@16500000 {
450 status = "disabled";
451 compatible = "qcom,gsbi-v1.0.0";
452 cell-index = <6>;
453 reg = <0x16500000 0x03>;
454 clocks = <&gcc GSBI6_H_CLK>;
455 clock-names = "iface";
456 #address-cells = <1>;
457 #size-cells = <1>;
458 ranges;
459
460 gsbi6_serial: serial@16540000 {
461 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
462 reg = <0x16540000 0x100>,
463 <0x16500000 0x03>;
464 interrupts = <0 156 0x0>;
465 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
466 clock-names = "core", "iface";
467 status = "disabled";
468 };
Srinivas Kandagatla806334e2016-02-23 14:15:03 +0000469
470 gsbi6_i2c: i2c@16580000 {
471 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla67b5ad52016-04-12 10:33:50 +0100472 pinctrl-0 = <&i2c6_pins>;
473 pinctrl-1 = <&i2c6_pins_sleep>;
Srinivas Kandagatla806334e2016-02-23 14:15:03 +0000474 pinctrl-names = "default", "sleep";
475 reg = <0x16580000 0x1000>;
476 interrupts = <GIC_SPI 157 IRQ_TYPE_NONE>;
477 clocks = <&gcc GSBI6_QUP_CLK>,
478 <&gcc GSBI6_H_CLK>;
479 clock-names = "core", "iface";
480 };
Pramod Gurav86e252a2015-07-27 14:52:10 +0100481 };
482
Kumar Galaf335b8a2014-04-03 14:48:22 -0500483 gsbi7: gsbi@16600000 {
484 status = "disabled";
485 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600486 cell-index = <7>;
Kumar Galaf335b8a2014-04-03 14:48:22 -0500487 reg = <0x16600000 0x100>;
488 clocks = <&gcc GSBI7_H_CLK>;
489 clock-names = "iface";
490 #address-cells = <1>;
491 #size-cells = <1>;
492 ranges;
Andy Gross4105d9d2015-02-09 16:01:08 -0600493 syscon-tcsr = <&tcsr>;
494
Pramod Guravd5d46542015-04-10 21:44:31 +0100495 gsbi7_serial: serial@16640000 {
Kumar Galaf335b8a2014-04-03 14:48:22 -0500496 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
497 reg = <0x16640000 0x1000>,
498 <0x16600000 0x1000>;
499 interrupts = <0 158 0x0>;
500 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
501 clock-names = "core", "iface";
502 status = "disabled";
503 };
504 };
505
John Stultz6a607e02015-09-18 13:31:12 +0100506 rng@1a500000 {
507 compatible = "qcom,prng";
508 reg = <0x1a500000 0x200>;
509 clocks = <&gcc PRNG_CLK>;
510 clock-names = "core";
511 };
512
Kumar Galaf335b8a2014-04-03 14:48:22 -0500513 qcom,ssbi@500000 {
514 compatible = "qcom,ssbi";
515 reg = <0x00500000 0x1000>;
516 qcom,controller-type = "pmic-arbiter";
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100517
518 pmicintc: pmic@0 {
519 compatible = "qcom,pm8921";
520 interrupt-parent = <&tlmm_pinmux>;
521 interrupts = <74 8>;
522 #interrupt-cells = <2>;
523 interrupt-controller;
524 #address-cells = <1>;
525 #size-cells = <0>;
526
527 pm8921_gpio: gpio@150 {
528
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -0800529 compatible = "qcom,pm8921-gpio",
530 "qcom,ssbi-gpio";
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100531 reg = <0x150>;
532 interrupts = <192 1>, <193 1>, <194 1>,
533 <195 1>, <196 1>, <197 1>,
534 <198 1>, <199 1>, <200 1>,
535 <201 1>, <202 1>, <203 1>,
536 <204 1>, <205 1>, <206 1>,
537 <207 1>, <208 1>, <209 1>,
538 <210 1>, <211 1>, <212 1>,
539 <213 1>, <214 1>, <215 1>,
540 <216 1>, <217 1>, <218 1>,
541 <219 1>, <220 1>, <221 1>,
542 <222 1>, <223 1>, <224 1>,
543 <225 1>, <226 1>, <227 1>,
544 <228 1>, <229 1>, <230 1>,
545 <231 1>, <232 1>, <233 1>,
546 <234 1>, <235 1>;
547
548 gpio-controller;
549 #gpio-cells = <2>;
550
551 };
Srinivas Kandagatlabce36042015-07-27 14:52:02 +0100552
553 pm8921_mpps: mpps@50 {
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -0800554 compatible = "qcom,pm8921-mpp",
555 "qcom,ssbi-mpp";
Srinivas Kandagatlabce36042015-07-27 14:52:02 +0100556 reg = <0x50>;
557 gpio-controller;
558 #gpio-cells = <2>;
559 interrupts =
560 <128 1>, <129 1>, <130 1>, <131 1>,
561 <132 1>, <133 1>, <134 1>, <135 1>,
562 <136 1>, <137 1>, <138 1>, <139 1>;
563 };
564
Srinivas Kandagatlabbf89b92015-09-18 13:31:19 +0100565 rtc@11d {
566 compatible = "qcom,pm8921-rtc";
567 interrupt-parent = <&pmicintc>;
568 interrupts = <39 1>;
569 reg = <0x11d>;
570 allow-set-time;
571 };
572
Srinivas Kandagatla3050c5f2015-09-18 13:31:25 +0100573 pwrkey@1c {
574 compatible = "qcom,pm8921-pwrkey";
575 reg = <0x1c>;
576 interrupt-parent = <&pmicintc>;
577 interrupts = <50 1>, <51 1>;
578 debounce = <15625>;
579 pull-up;
580 };
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100581 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500582 };
583
584 gcc: clock-controller@900000 {
585 compatible = "qcom,gcc-apq8064";
586 reg = <0x00900000 0x4000>;
587 #clock-cells = <1>;
588 #reset-cells = <1>;
589 };
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -0700590
Kumar Gala1e1177b2015-01-28 13:36:12 -0800591 lcc: clock-controller@28000000 {
592 compatible = "qcom,lcc-apq8064";
593 reg = <0x28000000 0x1000>;
594 #clock-cells = <1>;
595 #reset-cells = <1>;
596 };
597
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -0700598 mmcc: clock-controller@4000000 {
599 compatible = "qcom,mmcc-apq8064";
600 reg = <0x4000000 0x1000>;
601 #clock-cells = <1>;
602 #reset-cells = <1>;
603 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100604
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100605 l2cc: clock-controller@2011000 {
606 compatible = "syscon";
607 reg = <0x2011000 0x1000>;
608 };
609
610 rpm@108000 {
611 compatible = "qcom,rpm-apq8064";
612 reg = <0x108000 0x1000>;
613 qcom,ipc = <&l2cc 0x8 2>;
614
615 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
616 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
617 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
618 interrupt-names = "ack", "err", "wakeup";
619
Georgi Djakovaac1b292015-12-03 16:02:56 +0200620 rpmcc: clock-controller {
621 compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc";
622 #clock-cells = <1>;
623 };
624
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100625 regulators {
626 compatible = "qcom,rpm-pm8921-regulators";
627
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700628 pm8921_s1: s1 {};
629 pm8921_s2: s2 {};
630 pm8921_s3: s3 {};
631 pm8921_s4: s4 {};
632 pm8921_s7: s7 {};
633 pm8921_s8: s8 {};
634
635 pm8921_l1: l1 {};
636 pm8921_l2: l2 {};
637 pm8921_l3: l3 {};
638 pm8921_l4: l4 {};
639 pm8921_l5: l5 {};
640 pm8921_l6: l6 {};
641 pm8921_l7: l7 {};
642 pm8921_l8: l8 {};
643 pm8921_l9: l9 {};
644 pm8921_l10: l10 {};
645 pm8921_l11: l11 {};
646 pm8921_l12: l12 {};
647 pm8921_l14: l14 {};
648 pm8921_l15: l15 {};
649 pm8921_l16: l16 {};
650 pm8921_l17: l17 {};
651 pm8921_l18: l18 {};
652 pm8921_l21: l21 {};
653 pm8921_l22: l22 {};
654 pm8921_l23: l23 {};
655 pm8921_l24: l24 {};
656 pm8921_l25: l25 {};
657 pm8921_l26: l26 {};
658 pm8921_l27: l27 {};
659 pm8921_l28: l28 {};
660 pm8921_l29: l29 {};
661
662 pm8921_lvs1: lvs1 {};
663 pm8921_lvs2: lvs2 {};
664 pm8921_lvs3: lvs3 {};
665 pm8921_lvs4: lvs4 {};
666 pm8921_lvs5: lvs5 {};
667 pm8921_lvs6: lvs6 {};
668 pm8921_lvs7: lvs7 {};
669
670 pm8921_usb_switch: usb-switch {};
671
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100672 pm8921_hdmi_switch: hdmi-switch {
673 bias-pull-down;
674 };
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700675
676 pm8921_ncp: ncp {};
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100677 };
678 };
679
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100680 usb1_phy: phy@12500000 {
681 compatible = "qcom,usb-otg-ci";
682 reg = <0x12500000 0x400>;
683 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
684 status = "disabled";
685 dr_mode = "host";
686
687 clocks = <&gcc USB_HS1_XCVR_CLK>,
688 <&gcc USB_HS1_H_CLK>;
689 clock-names = "core", "iface";
690
691 resets = <&gcc USB_HS1_RESET>;
692 reset-names = "link";
693 };
694
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100695 usb3_phy: phy@12520000 {
696 compatible = "qcom,usb-otg-ci";
697 reg = <0x12520000 0x400>;
698 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
699 status = "disabled";
700 dr_mode = "host";
701
702 clocks = <&gcc USB_HS3_XCVR_CLK>,
703 <&gcc USB_HS3_H_CLK>;
704 clock-names = "core", "iface";
705
706 resets = <&gcc USB_HS3_RESET>;
707 reset-names = "link";
708 };
709
710 usb4_phy: phy@12530000 {
711 compatible = "qcom,usb-otg-ci";
712 reg = <0x12530000 0x400>;
713 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
714 status = "disabled";
715 dr_mode = "host";
716
717 clocks = <&gcc USB_HS4_XCVR_CLK>,
718 <&gcc USB_HS4_H_CLK>;
719 clock-names = "core", "iface";
720
721 resets = <&gcc USB_HS4_RESET>;
722 reset-names = "link";
723 };
724
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100725 gadget1: gadget@12500000 {
726 compatible = "qcom,ci-hdrc";
727 reg = <0x12500000 0x400>;
728 status = "disabled";
729 dr_mode = "peripheral";
730 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
731 usb-phy = <&usb1_phy>;
732 };
733
734 usb1: usb@12500000 {
735 compatible = "qcom,ehci-host";
736 reg = <0x12500000 0x400>;
737 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
738 status = "disabled";
739 usb-phy = <&usb1_phy>;
740 };
741
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100742 usb3: usb@12520000 {
743 compatible = "qcom,ehci-host";
744 reg = <0x12520000 0x400>;
745 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
746 status = "disabled";
747 usb-phy = <&usb3_phy>;
748 };
749
750 usb4: usb@12530000 {
751 compatible = "qcom,ehci-host";
752 reg = <0x12530000 0x400>;
753 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
754 status = "disabled";
755 usb-phy = <&usb4_phy>;
756 };
757
Srinivas Kandagatlae6293352015-04-10 21:43:56 +0100758 sata_phy0: phy@1b400000 {
759 compatible = "qcom,apq8064-sata-phy";
760 status = "disabled";
761 reg = <0x1b400000 0x200>;
762 reg-names = "phy_mem";
763 clocks = <&gcc SATA_PHY_CFG_CLK>;
764 clock-names = "cfg";
765 #phy-cells = <0>;
766 };
767
768 sata0: sata@29000000 {
769 compatible = "generic-ahci";
770 status = "disabled";
771 reg = <0x29000000 0x180>;
772 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
773
774 clocks = <&gcc SFAB_SATA_S_H_CLK>,
775 <&gcc SATA_H_CLK>,
776 <&gcc SATA_A_CLK>,
777 <&gcc SATA_RXOOB_CLK>,
778 <&gcc SATA_PMALIVE_CLK>;
779 clock-names = "slave_iface",
780 "iface",
781 "bus",
782 "rxoob",
783 "core_pmalive";
784
785 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
786 <&gcc SATA_PMALIVE_CLK>;
787 assigned-clock-rates = <100000000>, <100000000>;
788
789 phys = <&sata_phy0>;
790 phy-names = "sata-phy";
791 };
792
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100793 /* Temporary fixed regulator */
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100794 sdcc1bam:dma@12402000{
795 compatible = "qcom,bam-v1.3.0";
796 reg = <0x12402000 0x8000>;
797 interrupts = <0 98 0>;
798 clocks = <&gcc SDC1_H_CLK>;
799 clock-names = "bam_clk";
800 #dma-cells = <1>;
801 qcom,ee = <0>;
802 };
803
804 sdcc3bam:dma@12182000{
805 compatible = "qcom,bam-v1.3.0";
806 reg = <0x12182000 0x8000>;
807 interrupts = <0 96 0>;
808 clocks = <&gcc SDC3_H_CLK>;
809 clock-names = "bam_clk";
810 #dma-cells = <1>;
811 qcom,ee = <0>;
812 };
813
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100814 sdcc4bam:dma@121c2000{
815 compatible = "qcom,bam-v1.3.0";
816 reg = <0x121c2000 0x8000>;
817 interrupts = <0 95 0>;
818 clocks = <&gcc SDC4_H_CLK>;
819 clock-names = "bam_clk";
820 #dma-cells = <1>;
821 qcom,ee = <0>;
822 };
823
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100824 amba {
Masahiro Yamada2ef7d5f2016-03-09 13:26:45 +0900825 compatible = "simple-bus";
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100826 #address-cells = <1>;
827 #size-cells = <1>;
828 ranges;
829 sdcc1: sdcc@12400000 {
830 status = "disabled";
831 compatible = "arm,pl18x", "arm,primecell";
832 arm,primecell-periphid = <0x00051180>;
833 reg = <0x12400000 0x2000>;
834 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
835 interrupt-names = "cmd_irq";
836 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
837 clock-names = "mclk", "apb_pclk";
838 bus-width = <8>;
839 max-frequency = <96000000>;
840 non-removable;
841 cap-sd-highspeed;
842 cap-mmc-highspeed;
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100843 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
844 dma-names = "tx", "rx";
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100845 };
846
847 sdcc3: sdcc@12180000 {
848 compatible = "arm,pl18x", "arm,primecell";
849 arm,primecell-periphid = <0x00051180>;
850 status = "disabled";
851 reg = <0x12180000 0x2000>;
852 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
853 interrupt-names = "cmd_irq";
854 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
855 clock-names = "mclk", "apb_pclk";
856 bus-width = <4>;
857 cap-sd-highspeed;
858 cap-mmc-highspeed;
859 max-frequency = <192000000>;
860 no-1-8-v;
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100861 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
862 dma-names = "tx", "rx";
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100863 };
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100864
865 sdcc4: sdcc@121c0000 {
866 compatible = "arm,pl18x", "arm,primecell";
867 arm,primecell-periphid = <0x00051180>;
868 status = "disabled";
869 reg = <0x121c0000 0x2000>;
870 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
871 interrupt-names = "cmd_irq";
872 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
873 clock-names = "mclk", "apb_pclk";
874 bus-width = <4>;
875 cap-sd-highspeed;
876 cap-mmc-highspeed;
877 max-frequency = <48000000>;
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100878 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
879 dma-names = "tx", "rx";
880 pinctrl-names = "default";
881 pinctrl-0 = <&sdc4_gpios>;
882 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100883 };
Andy Gross4105d9d2015-02-09 16:01:08 -0600884
885 tcsr: syscon@1a400000 {
886 compatible = "qcom,tcsr-apq8064", "syscon";
887 reg = <0x1a400000 0x100>;
888 };
Stanimir Varbanovbcc74b02015-12-18 14:38:58 +0200889
890 pcie: pci@1b500000 {
891 compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
892 reg = <0x1b500000 0x1000
893 0x1b502000 0x80
894 0x1b600000 0x100
895 0x0ff00000 0x100000>;
896 reg-names = "dbi", "elbi", "parf", "config";
897 device_type = "pci";
898 linux,pci-domain = <0>;
899 bus-range = <0x00 0xff>;
900 num-lanes = <1>;
901 #address-cells = <3>;
902 #size-cells = <2>;
903 ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* I/O */
904 0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
905 interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
906 interrupt-names = "msi";
907 #interrupt-cells = <1>;
908 interrupt-map-mask = <0 0 0 0x7>;
909 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
910 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
911 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
912 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
913 clocks = <&gcc PCIE_A_CLK>,
914 <&gcc PCIE_H_CLK>,
915 <&gcc PCIE_PHY_REF_CLK>;
916 clock-names = "core", "iface", "phy";
917 resets = <&gcc PCIE_ACLK_RESET>,
918 <&gcc PCIE_HCLK_RESET>,
919 <&gcc PCIE_POR_RESET>,
920 <&gcc PCIE_PCI_RESET>,
921 <&gcc PCIE_PHY_RESET>;
922 reset-names = "axi", "ahb", "por", "pci", "phy";
923 status = "disabled";
924 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500925 };
926};
Srinivas Kandagatlaa30e78b2016-02-23 14:14:07 +0000927#include "qcom-apq8064-pins.dtsi"