blob: bd752fbce2c3b85efa5504ccb41da21e2387581b [file] [log] [blame]
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08001/dts-v1/;
2
Andy Grossd44cbb12016-06-09 22:45:11 -05003#include <dt-bindings/interrupt-controller/arm-gic.h>
Stephen Boyd3933d262014-01-16 17:25:03 -08004#include <dt-bindings/clock/qcom,gcc-msm8974.h>
Bhushan Shah73bae192016-07-29 11:39:07 +05305#include <dt-bindings/gpio/gpio.h>
Bjorn Andersson769907a2016-03-28 18:32:36 -07006#include <dt-bindings/reset/qcom,gcc-msm8974.h>
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +05307#include "skeleton.dtsi"
Stephen Boyd3933d262014-01-16 17:25:03 -08008
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08009/ {
10 model = "Qualcomm MSM8974";
11 compatible = "qcom,msm8974";
12 interrupt-parent = <&intc>;
13
Bjorn Andersson6297c4b2015-06-26 14:50:17 -070014 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18
Bjorn Anderssonca3971c2015-12-27 17:17:40 -080019 mpss@08000000 {
20 reg = <0x08000000 0x5100000>;
21 no-map;
22 };
23
24 mba@00d100000 {
25 reg = <0x0d100000 0x100000>;
26 no-map;
27 };
28
29 reserved@0d200000 {
30 reg = <0x0d200000 0xa00000>;
31 no-map;
32 };
33
Bjorn Andersson6f04d7c2016-08-22 22:57:46 -070034 adsp_region: adsp@0dc00000 {
Bjorn Anderssonca3971c2015-12-27 17:17:40 -080035 reg = <0x0dc00000 0x1900000>;
36 no-map;
37 };
38
39 venus@0f500000 {
40 reg = <0x0f500000 0x500000>;
41 no-map;
42 };
43
Bjorn Andersson6297c4b2015-06-26 14:50:17 -070044 smem_region: smem@fa00000 {
45 reg = <0xfa00000 0x200000>;
46 no-map;
47 };
Bjorn Anderssonca3971c2015-12-27 17:17:40 -080048
49 tz@0fc00000 {
50 reg = <0x0fc00000 0x160000>;
51 no-map;
52 };
53
Bjorn Andersson97311192016-03-28 18:32:37 -070054 rfsa@0fd60000 {
55 reg = <0x0fd60000 0x20000>;
56 no-map;
57 };
58
59 rmtfs@0fd80000 {
60 reg = <0x0fd80000 0x180000>;
Bjorn Anderssonca3971c2015-12-27 17:17:40 -080061 no-map;
62 };
Bjorn Andersson6297c4b2015-06-26 14:50:17 -070063 };
64
Rohit Vaswani2ab27992013-11-01 10:10:40 -070065 cpus {
66 #address-cells = <1>;
67 #size-cells = <0>;
68 interrupts = <1 9 0xf04>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -070069
Ivan T. Ivanov1e20223d2017-02-03 20:36:28 +020070 CPU0: cpu@0 {
Kumar Galaba082202014-05-28 12:01:29 -050071 compatible = "qcom,krait";
72 enable-method = "qcom,kpss-acc-v2";
Rohit Vaswani2ab27992013-11-01 10:10:40 -070073 device_type = "cpu";
74 reg = <0>;
75 next-level-cache = <&L2>;
76 qcom,acc = <&acc0>;
Lina Iyer8c76a632015-03-25 14:25:30 -060077 qcom,saw = <&saw0>;
Lina Iyerd596d622015-03-25 14:25:33 -060078 cpu-idle-states = <&CPU_SPC>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -070079 };
80
Ivan T. Ivanov1e20223d2017-02-03 20:36:28 +020081 CPU1: cpu@1 {
Kumar Galaba082202014-05-28 12:01:29 -050082 compatible = "qcom,krait";
83 enable-method = "qcom,kpss-acc-v2";
Rohit Vaswani2ab27992013-11-01 10:10:40 -070084 device_type = "cpu";
85 reg = <1>;
86 next-level-cache = <&L2>;
87 qcom,acc = <&acc1>;
Lina Iyer8c76a632015-03-25 14:25:30 -060088 qcom,saw = <&saw1>;
Lina Iyerd596d622015-03-25 14:25:33 -060089 cpu-idle-states = <&CPU_SPC>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -070090 };
91
Ivan T. Ivanov1e20223d2017-02-03 20:36:28 +020092 CPU2: cpu@2 {
Kumar Galaba082202014-05-28 12:01:29 -050093 compatible = "qcom,krait";
94 enable-method = "qcom,kpss-acc-v2";
Rohit Vaswani2ab27992013-11-01 10:10:40 -070095 device_type = "cpu";
96 reg = <2>;
97 next-level-cache = <&L2>;
98 qcom,acc = <&acc2>;
Lina Iyer8c76a632015-03-25 14:25:30 -060099 qcom,saw = <&saw2>;
Lina Iyerd596d622015-03-25 14:25:33 -0600100 cpu-idle-states = <&CPU_SPC>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700101 };
102
Ivan T. Ivanov1e20223d2017-02-03 20:36:28 +0200103 CPU3: cpu@3 {
Kumar Galaba082202014-05-28 12:01:29 -0500104 compatible = "qcom,krait";
105 enable-method = "qcom,kpss-acc-v2";
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700106 device_type = "cpu";
107 reg = <3>;
108 next-level-cache = <&L2>;
109 qcom,acc = <&acc3>;
Lina Iyer8c76a632015-03-25 14:25:30 -0600110 qcom,saw = <&saw3>;
Lina Iyerd596d622015-03-25 14:25:33 -0600111 cpu-idle-states = <&CPU_SPC>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700112 };
113
114 L2: l2-cache {
115 compatible = "cache";
116 cache-level = <2>;
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700117 qcom,saw = <&saw_l2>;
118 };
Lina Iyerd596d622015-03-25 14:25:33 -0600119
120 idle-states {
121 CPU_SPC: spc {
122 compatible = "qcom,idle-state-spc",
123 "arm,idle-state";
124 entry-latency-us = <150>;
125 exit-latency-us = <200>;
126 min-residency-us = <2000>;
127 };
128 };
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700129 };
130
Rajendra Nayakc59ffb52016-08-17 10:48:44 +0530131 thermal-zones {
132 cpu-thermal0 {
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135
136 thermal-sensors = <&tsens 5>;
137
138 trips {
139 cpu_alert0: trip0 {
140 temperature = <75000>;
141 hysteresis = <2000>;
142 type = "passive";
143 };
144 cpu_crit0: trip1 {
145 temperature = <110000>;
146 hysteresis = <2000>;
147 type = "critical";
148 };
149 };
150 };
151
152 cpu-thermal1 {
153 polling-delay-passive = <250>;
154 polling-delay = <1000>;
155
156 thermal-sensors = <&tsens 6>;
157
158 trips {
159 cpu_alert1: trip0 {
160 temperature = <75000>;
161 hysteresis = <2000>;
162 type = "passive";
163 };
164 cpu_crit1: trip1 {
165 temperature = <110000>;
166 hysteresis = <2000>;
167 type = "critical";
168 };
169 };
170 };
171
172 cpu-thermal2 {
173 polling-delay-passive = <250>;
174 polling-delay = <1000>;
175
176 thermal-sensors = <&tsens 7>;
177
178 trips {
179 cpu_alert2: trip0 {
180 temperature = <75000>;
181 hysteresis = <2000>;
182 type = "passive";
183 };
184 cpu_crit2: trip1 {
185 temperature = <110000>;
186 hysteresis = <2000>;
187 type = "critical";
188 };
189 };
190 };
191
192 cpu-thermal3 {
193 polling-delay-passive = <250>;
194 polling-delay = <1000>;
195
196 thermal-sensors = <&tsens 8>;
197
198 trips {
199 cpu_alert3: trip0 {
200 temperature = <75000>;
201 hysteresis = <2000>;
202 type = "passive";
203 };
204 cpu_crit3: trip1 {
205 temperature = <110000>;
206 hysteresis = <2000>;
207 type = "critical";
208 };
209 };
210 };
211 };
212
Stephen Boyd3bff5472014-02-21 11:09:50 +0000213 cpu-pmu {
214 compatible = "qcom,krait-pmu";
215 interrupts = <1 7 0xf04>;
216 };
217
Stephen Boyd30fc4212016-01-06 17:41:51 -0800218 clocks {
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530219 xo_board: xo_board {
Stephen Boyd30fc4212016-01-06 17:41:51 -0800220 compatible = "fixed-clock";
221 #clock-cells = <0>;
222 clock-frequency = <19200000>;
223 };
224
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530225 sleep_clk: sleep_clk {
Stephen Boyd30fc4212016-01-06 17:41:51 -0800226 compatible = "fixed-clock";
227 #clock-cells = <0>;
228 clock-frequency = <32768>;
229 };
230 };
231
Kumar Galaba082202014-05-28 12:01:29 -0500232 timer {
233 compatible = "arm,armv7-timer";
234 interrupts = <1 2 0xf08>,
235 <1 3 0xf08>,
236 <1 4 0xf08>,
237 <1 1 0xf08>;
238 clock-frequency = <19200000>;
239 };
240
Bjorn Andersson6f04d7c2016-08-22 22:57:46 -0700241 adsp-pil {
242 compatible = "qcom,msm8974-adsp-pil";
243
244 interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>,
245 <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
246 <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
247 <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
248 <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
249 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
250
251 cx-supply = <&pm8841_s2>;
252
Jonathan Neuschäfer4d931752017-03-07 03:22:00 +0100253 clocks = <&xo_board>;
254 clock-names = "xo";
255
Bjorn Andersson6f04d7c2016-08-22 22:57:46 -0700256 memory-region = <&adsp_region>;
257
258 qcom,smem-states = <&adsp_smp2p_out 0>;
259 qcom,smem-state-names = "stop";
260 };
261
Stephen Boydd0bfd7c2015-10-08 13:34:09 -0500262 smem {
263 compatible = "qcom,smem";
264
265 memory-region = <&smem_region>;
266 qcom,rpm-msg-ram = <&rpm_msg_ram>;
267
268 hwlocks = <&tcsr_mutex 3>;
269 };
270
Bjorn Andersson3028cba2016-08-22 22:57:45 -0700271 smp2p-adsp {
272 compatible = "qcom,smp2p";
273 qcom,smem = <443>, <429>;
274
275 interrupt-parent = <&intc>;
276 interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
277
278 qcom,ipc = <&apcs 8 10>;
279
280 qcom,local-pid = <0>;
281 qcom,remote-pid = <2>;
282
283 adsp_smp2p_out: master-kernel {
284 qcom,entry-name = "master-kernel";
285 #qcom,smem-state-cells = <1>;
286 };
287
288 adsp_smp2p_in: slave-kernel {
289 qcom,entry-name = "slave-kernel";
290
291 interrupt-controller;
292 #interrupt-cells = <2>;
293 };
294 };
295
Bjorn Andersson5d3178c2016-03-28 18:32:39 -0700296 smp2p-modem {
297 compatible = "qcom,smp2p";
298 qcom,smem = <435>, <428>;
299
300 interrupt-parent = <&intc>;
301 interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
302
303 qcom,ipc = <&apcs 8 14>;
304
305 qcom,local-pid = <0>;
306 qcom,remote-pid = <1>;
307
308 modem_smp2p_out: master-kernel {
309 qcom,entry-name = "master-kernel";
Andy Gross30f1e2d2016-06-12 01:20:11 -0500310 #qcom,smem-state-cells = <1>;
Bjorn Andersson5d3178c2016-03-28 18:32:39 -0700311 };
312
313 modem_smp2p_in: slave-kernel {
314 qcom,entry-name = "slave-kernel";
315
316 interrupt-controller;
317 #interrupt-cells = <2>;
318 };
319 };
320
Bjorn Andersson7ccb11e2015-12-27 17:51:13 -0800321 smp2p-wcnss {
322 compatible = "qcom,smp2p";
323 qcom,smem = <451>, <431>;
324
325 interrupt-parent = <&intc>;
326 interrupts = <0 143 IRQ_TYPE_EDGE_RISING>;
327
328 qcom,ipc = <&apcs 8 18>;
329
330 qcom,local-pid = <0>;
331 qcom,remote-pid = <4>;
332
333 wcnss_smp2p_out: master-kernel {
334 qcom,entry-name = "master-kernel";
335
Andy Gross30f1e2d2016-06-12 01:20:11 -0500336 #qcom,smem-state-cells = <1>;
Bjorn Andersson7ccb11e2015-12-27 17:51:13 -0800337 };
338
339 wcnss_smp2p_in: slave-kernel {
340 qcom,entry-name = "slave-kernel";
341
342 interrupt-controller;
343 #interrupt-cells = <2>;
344 };
345 };
346
Bjorn Andersson9af88b22015-12-27 17:47:08 -0800347 smsm {
348 compatible = "qcom,smsm";
349
350 #address-cells = <1>;
351 #size-cells = <0>;
352
353 qcom,ipc-1 = <&apcs 8 13>;
354 qcom,ipc-2 = <&apcs 8 9>;
355 qcom,ipc-3 = <&apcs 8 19>;
356
357 apps_smsm: apps@0 {
358 reg = <0>;
359
Andy Gross30f1e2d2016-06-12 01:20:11 -0500360 #qcom,smem-state-cells = <1>;
Bjorn Andersson9af88b22015-12-27 17:47:08 -0800361 };
362
363 modem_smsm: modem@1 {
364 reg = <1>;
365 interrupts = <0 26 IRQ_TYPE_EDGE_RISING>;
366
367 interrupt-controller;
368 #interrupt-cells = <2>;
369 };
370
371 adsp_smsm: adsp@2 {
372 reg = <2>;
373 interrupts = <0 157 IRQ_TYPE_EDGE_RISING>;
374
375 interrupt-controller;
376 #interrupt-cells = <2>;
377 };
378
379 wcnss_smsm: wcnss@7 {
380 reg = <7>;
381 interrupts = <0 144 IRQ_TYPE_EDGE_RISING>;
382
383 interrupt-controller;
384 #interrupt-cells = <2>;
385 };
386 };
387
Andy Grosse0e7da52016-06-03 18:25:29 -0500388 firmware {
389 scm {
390 compatible = "qcom,scm";
391 clocks = <&gcc GCC_CE1_CLK>, <&gcc GCC_CE1_AXI_CLK>, <&gcc GCC_CE1_AHB_CLK>;
392 clock-names = "core", "bus", "iface";
393 };
394 };
395
Rohit Vaswani2aec37c2013-12-20 11:09:15 -0800396 soc: soc {
397 #address-cells = <1>;
398 #size-cells = <1>;
399 ranges;
400 compatible = "simple-bus";
401
402 intc: interrupt-controller@f9000000 {
403 compatible = "qcom,msm-qgic2";
404 interrupt-controller;
405 #interrupt-cells = <3>;
406 reg = <0xf9000000 0x1000>,
407 <0xf9002000 0x1000>;
408 };
409
Bjorn Andersson45b0ef02015-06-26 14:50:18 -0700410 apcs: syscon@f9011000 {
411 compatible = "syscon";
412 reg = <0xf9011000 0x1000>;
413 };
414
Rajendra Nayakc59ffb52016-08-17 10:48:44 +0530415 qfprom: qfprom@fc4bc000 {
416 #address-cells = <1>;
417 #size-cells = <1>;
418 compatible = "qcom,qfprom";
419 reg = <0xfc4bc000 0x1000>;
420 tsens_calib: calib@d0 {
421 reg = <0xd0 0x18>;
422 };
423 tsens_backup: backup@440 {
424 reg = <0x440 0x10>;
425 };
426 };
427
428 tsens: thermal-sensor@fc4a8000 {
429 compatible = "qcom,msm8974-tsens";
430 reg = <0xfc4a8000 0x2000>;
431 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
432 nvmem-cell-names = "calib", "calib_backup";
433 #thermal-sensor-cells = <1>;
434 };
435
Stephen Boyd47c5a5d2013-12-20 11:09:19 -0800436 timer@f9020000 {
437 #address-cells = <1>;
438 #size-cells = <1>;
439 ranges;
440 compatible = "arm,armv7-timer-mem";
441 reg = <0xf9020000 0x1000>;
442 clock-frequency = <19200000>;
443
444 frame@f9021000 {
445 frame-number = <0>;
446 interrupts = <0 8 0x4>,
447 <0 7 0x4>;
448 reg = <0xf9021000 0x1000>,
449 <0xf9022000 0x1000>;
450 };
451
452 frame@f9023000 {
453 frame-number = <1>;
454 interrupts = <0 9 0x4>;
455 reg = <0xf9023000 0x1000>;
456 status = "disabled";
457 };
458
459 frame@f9024000 {
460 frame-number = <2>;
461 interrupts = <0 10 0x4>;
462 reg = <0xf9024000 0x1000>;
463 status = "disabled";
464 };
465
466 frame@f9025000 {
467 frame-number = <3>;
468 interrupts = <0 11 0x4>;
469 reg = <0xf9025000 0x1000>;
470 status = "disabled";
471 };
472
473 frame@f9026000 {
474 frame-number = <4>;
475 interrupts = <0 12 0x4>;
476 reg = <0xf9026000 0x1000>;
477 status = "disabled";
478 };
479
480 frame@f9027000 {
481 frame-number = <5>;
482 interrupts = <0 13 0x4>;
483 reg = <0xf9027000 0x1000>;
484 status = "disabled";
485 };
486
487 frame@f9028000 {
488 frame-number = <6>;
489 interrupts = <0 14 0x4>;
490 reg = <0xf9028000 0x1000>;
491 status = "disabled";
492 };
493 };
494
Lina Iyer8c76a632015-03-25 14:25:30 -0600495 saw0: power-controller@f9089000 {
496 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
497 reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
498 };
499
500 saw1: power-controller@f9099000 {
501 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
502 reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
503 };
504
505 saw2: power-controller@f90a9000 {
506 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
507 reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
508 };
509
510 saw3: power-controller@f90b9000 {
511 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
512 reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
513 };
514
515 saw_l2: power-controller@f9012000 {
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700516 compatible = "qcom,saw2";
517 reg = <0xf9012000 0x1000>;
518 regulator;
519 };
520
521 acc0: clock-controller@f9088000 {
522 compatible = "qcom,kpss-acc-v2";
523 reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
524 };
525
526 acc1: clock-controller@f9098000 {
527 compatible = "qcom,kpss-acc-v2";
528 reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
529 };
530
531 acc2: clock-controller@f90a8000 {
532 compatible = "qcom,kpss-acc-v2";
533 reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
534 };
535
536 acc3: clock-controller@f90b8000 {
537 compatible = "qcom,kpss-acc-v2";
538 reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
539 };
540
Stephen Boyd74e848f2013-12-20 11:09:18 -0800541 restart@fc4ab000 {
542 compatible = "qcom,pshold";
543 reg = <0xfc4ab000 0x4>;
544 };
Stephen Boyd3933d262014-01-16 17:25:03 -0800545
546 gcc: clock-controller@fc400000 {
547 compatible = "qcom,gcc-msm8974";
548 #clock-cells = <1>;
549 #reset-cells = <1>;
Rajendra Nayak89c7e672015-10-01 14:56:02 +0530550 #power-domain-cells = <1>;
Stephen Boyd3933d262014-01-16 17:25:03 -0800551 reg = <0xfc400000 0x4000>;
552 };
553
Bjorn Anderssonb4e745e2015-06-26 14:50:16 -0700554 tcsr_mutex_block: syscon@fd484000 {
555 compatible = "syscon";
556 reg = <0xfd484000 0x2000>;
557 };
558
Stephen Boyd3933d262014-01-16 17:25:03 -0800559 mmcc: clock-controller@fd8c0000 {
560 compatible = "qcom,mmcc-msm8974";
561 #clock-cells = <1>;
562 #reset-cells = <1>;
Rajendra Nayak89c7e672015-10-01 14:56:02 +0530563 #power-domain-cells = <1>;
Stephen Boyd3933d262014-01-16 17:25:03 -0800564 reg = <0xfd8c0000 0x6000>;
565 };
566
Bjorn Anderssonb4e745e2015-06-26 14:50:16 -0700567 tcsr_mutex: tcsr-mutex {
568 compatible = "qcom,tcsr-mutex";
569 syscon = <&tcsr_mutex_block 0 0x80>;
570
571 #hwlock-cells = <1>;
572 };
573
Stephen Boydd0bfd7c2015-10-08 13:34:09 -0500574 rpm_msg_ram: memory@fc428000 {
575 compatible = "qcom,rpm-msg-ram";
Bjorn Andersson6297c4b2015-06-26 14:50:17 -0700576 reg = <0xfc428000 0x4000>;
Bjorn Andersson6297c4b2015-06-26 14:50:17 -0700577 };
578
Bhushan Shah5cae8a92016-07-13 13:04:26 +0530579 blsp1_uart1: serial@f991d000 {
580 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
581 reg = <0xf991d000 0x1000>;
582 interrupts = <0 107 0x0>;
583 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
584 clock-names = "core", "iface";
585 status = "disabled";
586 };
587
Stephen Boyd10bfcfe2015-06-16 14:31:44 -0700588 blsp1_uart2: serial@f991e000 {
Stephen Boyd3933d262014-01-16 17:25:03 -0800589 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
590 reg = <0xf991e000 0x1000>;
591 interrupts = <0 108 0x0>;
592 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
593 clock-names = "core", "iface";
Kumar Galaba082202014-05-28 12:01:29 -0500594 status = "disabled";
Stephen Boyd3933d262014-01-16 17:25:03 -0800595 };
Stanimir Varbanov19f4f8c2014-02-07 11:23:07 +0200596
Georgi Djakov3e944c72014-01-31 16:21:56 +0200597 sdhci@f9824900 {
598 compatible = "qcom,sdhci-msm-v4";
599 reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
600 reg-names = "hc_mem", "core_mem";
601 interrupts = <0 123 0>, <0 138 0>;
602 interrupt-names = "hc_irq", "pwr_irq";
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530603 clocks = <&gcc GCC_SDCC1_APPS_CLK>,
604 <&gcc GCC_SDCC1_AHB_CLK>,
605 <&xo_board>;
606 clock-names = "core", "iface", "xo";
Georgi Djakov3e944c72014-01-31 16:21:56 +0200607 status = "disabled";
608 };
609
610 sdhci@f98a4900 {
611 compatible = "qcom,sdhci-msm-v4";
612 reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
613 reg-names = "hc_mem", "core_mem";
614 interrupts = <0 125 0>, <0 221 0>;
615 interrupt-names = "hc_irq", "pwr_irq";
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530616 clocks = <&gcc GCC_SDCC2_APPS_CLK>,
617 <&gcc GCC_SDCC2_AHB_CLK>,
618 <&xo_board>;
619 clock-names = "core", "iface", "xo";
Georgi Djakov3e944c72014-01-31 16:21:56 +0200620 status = "disabled";
621 };
622
Stanimir Varbanov19f4f8c2014-02-07 11:23:07 +0200623 rng@f9bff000 {
624 compatible = "qcom,prng";
625 reg = <0xf9bff000 0x200>;
626 clocks = <&gcc GCC_PRNG_AHB_CLK>;
627 clock-names = "core";
628 };
Ivan T. Ivanov7d7db8d2014-02-06 17:28:49 +0200629
630 msmgpio: pinctrl@fd510000 {
631 compatible = "qcom,msm8974-pinctrl";
632 reg = <0xfd510000 0x4000>;
633 gpio-controller;
634 #gpio-cells = <2>;
635 interrupt-controller;
636 #interrupt-cells = <2>;
637 interrupts = <0 208 0>;
Ivan T. Ivanov7d7db8d2014-02-06 17:28:49 +0200638 };
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530639
Bjorn Andersson89af1c22016-03-28 18:32:38 -0700640 i2c@f9924000 {
641 status = "disabled";
642 compatible = "qcom,i2c-qup-v2.1.1";
643 reg = <0xf9924000 0x1000>;
644 interrupts = <0 96 IRQ_TYPE_NONE>;
645 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
646 clock-names = "core", "iface";
647 #address-cells = <1>;
648 #size-cells = <0>;
649 };
650
Bjorn Andersson580df592015-11-23 21:54:34 -0800651 blsp_i2c8: i2c@f9964000 {
652 status = "disabled";
653 compatible = "qcom,i2c-qup-v2.1.1";
654 reg = <0xf9964000 0x1000>;
655 interrupts = <0 102 IRQ_TYPE_NONE>;
656 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
657 clock-names = "core", "iface";
658 #address-cells = <1>;
659 #size-cells = <0>;
660 };
661
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530662 blsp_i2c11: i2c@f9967000 {
Michael Opdenacker04edde22015-10-13 14:02:00 +0200663 status = "disabled";
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530664 compatible = "qcom,i2c-qup-v2.1.1";
665 reg = <0xf9967000 0x1000>;
666 interrupts = <0 105 IRQ_TYPE_NONE>;
667 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
668 clock-names = "core", "iface";
669 #address-cells = <1>;
670 #size-cells = <0>;
Andy Gross938b4d42016-06-09 22:45:27 -0500671 dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
672 dma-names = "tx", "rx";
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530673 };
Ivan T. Ivanovaf22e462015-02-03 14:17:58 +0200674
675 spmi_bus: spmi@fc4cf000 {
676 compatible = "qcom,spmi-pmic-arb";
677 reg-names = "core", "intr", "cnfg";
678 reg = <0xfc4cf000 0x1000>,
679 <0xfc4cb000 0x1000>,
680 <0xfc4ca000 0x1000>;
681 interrupt-names = "periph_irq";
682 interrupts = <0 190 0>;
683 qcom,ee = <0>;
684 qcom,channel = <0>;
685 #address-cells = <2>;
686 #size-cells = <0>;
687 interrupt-controller;
688 #interrupt-cells = <4>;
689 };
Andy Grossd44cbb12016-06-09 22:45:11 -0500690
691 blsp2_dma: dma-controller@f9944000 {
692 compatible = "qcom,bam-v1.4.0";
693 reg = <0xf9944000 0x19000>;
694 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
695 clocks = <&gcc GCC_BLSP2_AHB_CLK>;
696 clock-names = "bam_clk";
697 #dma-cells = <1>;
698 qcom,ee = <0>;
699 };
Bjorn Andersson769907a2016-03-28 18:32:36 -0700700
701 usb1_phy: usb-phy@f9a55000 {
702 compatible = "qcom,usb-otg-snps";
703
704 reg = <0xf9a55000 0x400>;
705 interrupts-extended = <&intc 0 134 0>, <&intc 0 140 0>,
706 <&spmi_bus 0 0x9 0 0>;
707 interrupt-names = "core_irq", "async_irq", "pmic_id_irq";
708
709 vddcx-supply = <&pm8841_s2>;
710 v3p3-supply = <&pm8941_l24>;
711 v1p8-supply = <&pm8941_l6>;
712
713 dr_mode = "otg";
714 qcom,phy-init-sequence = <0x63 0x81 0xfffffff>;
715 qcom,otg-control = <1>;
716 qcom,phy-num = <0>;
717
718 resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>;
719 reset-names = "phy", "link";
720
721 clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>,
722 <&gcc GCC_USB_HS_AHB_CLK>;
723 clock-names = "phy", "core", "iface";
724
725 status = "disabled";
726 };
727
728 usb@f9a55000 {
729 compatible = "qcom,ci-hdrc";
730 reg = <0xf9a55000 0x400>;
731 dr_mode = "otg";
732 interrupts = <0 134 0>, <0 140 0>;
733 interrupt-names = "core_irq", "async_irq";
734 usb-phy = <&usb1_phy>;
735
736 status = "disabled";
737 };
Ivan T. Ivanov1e20223d2017-02-03 20:36:28 +0200738
739 etr@fc322000 {
740 compatible = "arm,coresight-tmc", "arm,primecell";
741 reg = <0xfc322000 0x1000>;
742
743 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
744 clock-names = "apb_pclk", "atclk";
745
746 port {
747 etr_in: endpoint {
748 slave-mode;
749 remote-endpoint = <&replicator_out0>;
750 };
751 };
752 };
753
754 tpiu@fc318000 {
755 compatible = "arm,coresight-tpiu", "arm,primecell";
756 reg = <0xfc318000 0x1000>;
757
758 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
759 clock-names = "apb_pclk", "atclk";
760
761 port {
762 tpiu_in: endpoint {
763 slave-mode;
764 remote-endpoint = <&replicator_out1>;
765 };
766 };
767 };
768
769 replicator@fc31c000 {
770 compatible = "qcom,coresight-replicator1x", "arm,primecell";
771 reg = <0xfc31c000 0x1000>;
772
773 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
774 clock-names = "apb_pclk", "atclk";
775
776 ports {
777 #address-cells = <1>;
778 #size-cells = <0>;
779
780 port@0 {
781 reg = <0>;
782 replicator_out0: endpoint {
783 remote-endpoint = <&etr_in>;
784 };
785 };
786 port@1 {
787 reg = <1>;
788 replicator_out1: endpoint {
789 remote-endpoint = <&tpiu_in>;
790 };
791 };
792 port@2 {
793 reg = <0>;
794 replicator_in: endpoint {
795 slave-mode;
796 remote-endpoint = <&etf_out>;
797 };
798 };
799 };
800 };
801
802 etf@fc307000 {
803 compatible = "arm,coresight-tmc", "arm,primecell";
804 reg = <0xfc307000 0x1000>;
805
806 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
807 clock-names = "apb_pclk", "atclk";
808
809 ports {
810 #address-cells = <1>;
811 #size-cells = <0>;
812
813 port@0 {
814 reg = <0>;
815 etf_out: endpoint {
816 remote-endpoint = <&replicator_in>;
817 };
818 };
819 port@1 {
820 reg = <0>;
821 etf_in: endpoint {
822 slave-mode;
823 remote-endpoint = <&merger_out>;
824 };
825 };
826 };
827 };
828
829 funnel@fc31b000 {
830 compatible = "arm,coresight-funnel", "arm,primecell";
831 reg = <0xfc31b000 0x1000>;
832
833 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
834 clock-names = "apb_pclk", "atclk";
835
836 ports {
837 #address-cells = <1>;
838 #size-cells = <0>;
839
840 /*
841 * Not described input ports:
842 * 0 - connected trought funnel to Audio, Modem and
843 * Resource and Power Manager CPU's
844 * 2...7 - not-connected
845 */
846 port@1 {
847 reg = <1>;
848 merger_in1: endpoint {
849 slave-mode;
850 remote-endpoint = <&funnel1_out>;
851 };
852 };
853 port@8 {
854 reg = <0>;
855 merger_out: endpoint {
856 remote-endpoint = <&etf_in>;
857 };
858 };
859 };
860 };
861
862 funnel@fc31a000 {
863 compatible = "arm,coresight-funnel", "arm,primecell";
864 reg = <0xfc31a000 0x1000>;
865
866 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
867 clock-names = "apb_pclk", "atclk";
868
869 ports {
870 #address-cells = <1>;
871 #size-cells = <0>;
872
873 /*
874 * Not described input ports:
875 * 0 - not-connected
876 * 1 - connected trought funnel to Multimedia CPU
877 * 2 - connected to Wireless CPU
878 * 3 - not-connected
879 * 4 - not-connected
880 * 6 - not-connected
881 * 7 - connected to STM
882 */
883 port@5 {
884 reg = <5>;
885 funnel1_in5: endpoint {
886 slave-mode;
887 remote-endpoint = <&kpss_out>;
888 };
889 };
890 port@8 {
891 reg = <0>;
892 funnel1_out: endpoint {
893 remote-endpoint = <&merger_in1>;
894 };
895 };
896 };
897 };
898
899 funnel@fc345000 { /* KPSS funnel only 4 inputs are used */
900 compatible = "arm,coresight-funnel", "arm,primecell";
901 reg = <0xfc345000 0x1000>;
902
903 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
904 clock-names = "apb_pclk", "atclk";
905
906 ports {
907 #address-cells = <1>;
908 #size-cells = <0>;
909
910 port@0 {
911 reg = <0>;
912 kpss_in0: endpoint {
913 slave-mode;
914 remote-endpoint = <&etm0_out>;
915 };
916 };
917 port@1 {
918 reg = <1>;
919 kpss_in1: endpoint {
920 slave-mode;
921 remote-endpoint = <&etm1_out>;
922 };
923 };
924 port@2 {
925 reg = <2>;
926 kpss_in2: endpoint {
927 slave-mode;
928 remote-endpoint = <&etm2_out>;
929 };
930 };
931 port@3 {
932 reg = <3>;
933 kpss_in3: endpoint {
934 slave-mode;
935 remote-endpoint = <&etm3_out>;
936 };
937 };
938 port@8 {
939 reg = <0>;
940 kpss_out: endpoint {
941 remote-endpoint = <&funnel1_in5>;
942 };
943 };
944 };
945 };
946
947 etm@fc33c000 {
948 compatible = "arm,coresight-etm4x", "arm,primecell";
949 reg = <0xfc33c000 0x1000>;
950
951 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
952 clock-names = "apb_pclk", "atclk";
953
954 cpu = <&CPU0>;
955
956 port {
957 etm0_out: endpoint {
958 remote-endpoint = <&kpss_in0>;
959 };
960 };
961 };
962
963 etm@fc33d000 {
964 compatible = "arm,coresight-etm4x", "arm,primecell";
965 reg = <0xfc33d000 0x1000>;
966
967 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
968 clock-names = "apb_pclk", "atclk";
969
970 cpu = <&CPU1>;
971
972 port {
973 etm1_out: endpoint {
974 remote-endpoint = <&kpss_in1>;
975 };
976 };
977 };
978
979 etm@fc33e000 {
980 compatible = "arm,coresight-etm4x", "arm,primecell";
981 reg = <0xfc33e000 0x1000>;
982
983 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
984 clock-names = "apb_pclk", "atclk";
985
986 cpu = <&CPU2>;
987
988 port {
989 etm2_out: endpoint {
990 remote-endpoint = <&kpss_in2>;
991 };
992 };
993 };
994
995 etm@fc33f000 {
996 compatible = "arm,coresight-etm4x", "arm,primecell";
997 reg = <0xfc33f000 0x1000>;
998
999 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1000 clock-names = "apb_pclk", "atclk";
1001
1002 cpu = <&CPU3>;
1003
1004 port {
1005 etm3_out: endpoint {
1006 remote-endpoint = <&kpss_in3>;
1007 };
1008 };
1009 };
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08001010 };
Bjorn Andersson45b0ef02015-06-26 14:50:18 -07001011
1012 smd {
1013 compatible = "qcom,smd";
1014
Bjorn Andersson3028cba2016-08-22 22:57:45 -07001015 adsp {
1016 interrupts = <0 156 IRQ_TYPE_EDGE_RISING>;
1017
1018 qcom,ipc = <&apcs 8 8>;
1019 qcom,smd-edge = <1>;
1020 };
1021
Bjorn Andersson5d3178c2016-03-28 18:32:39 -07001022 modem {
1023 interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
1024
1025 qcom,ipc = <&apcs 8 12>;
1026 qcom,smd-edge = <0>;
1027 };
1028
Bjorn Andersson45b0ef02015-06-26 14:50:18 -07001029 rpm {
1030 interrupts = <0 168 1>;
1031 qcom,ipc = <&apcs 8 0>;
1032 qcom,smd-edge = <15>;
1033
1034 rpm_requests {
1035 compatible = "qcom,rpm-msm8974";
1036 qcom,smd-channels = "rpm_requests";
1037
1038 pm8841-regulators {
1039 compatible = "qcom,rpm-pm8841-regulators";
1040
1041 pm8841_s1: s1 {};
1042 pm8841_s2: s2 {};
1043 pm8841_s3: s3 {};
1044 pm8841_s4: s4 {};
1045 pm8841_s5: s5 {};
1046 pm8841_s6: s6 {};
1047 pm8841_s7: s7 {};
1048 pm8841_s8: s8 {};
1049 };
1050
1051 pm8941-regulators {
1052 compatible = "qcom,rpm-pm8941-regulators";
1053
1054 pm8941_s1: s1 {};
1055 pm8941_s2: s2 {};
1056 pm8941_s3: s3 {};
1057 pm8941_5v: s4 {};
1058
1059 pm8941_l1: l1 {};
1060 pm8941_l2: l2 {};
1061 pm8941_l3: l3 {};
1062 pm8941_l4: l4 {};
1063 pm8941_l5: l5 {};
1064 pm8941_l6: l6 {};
1065 pm8941_l7: l7 {};
1066 pm8941_l8: l8 {};
1067 pm8941_l9: l9 {};
1068 pm8941_l10: l10 {};
1069 pm8941_l11: l11 {};
1070 pm8941_l12: l12 {};
1071 pm8941_l13: l13 {};
1072 pm8941_l14: l14 {};
1073 pm8941_l15: l15 {};
1074 pm8941_l16: l16 {};
1075 pm8941_l17: l17 {};
1076 pm8941_l18: l18 {};
1077 pm8941_l19: l19 {};
1078 pm8941_l20: l20 {};
1079 pm8941_l21: l21 {};
1080 pm8941_l22: l22 {};
1081 pm8941_l23: l23 {};
1082 pm8941_l24: l24 {};
1083
1084 pm8941_lvs1: lvs1 {};
1085 pm8941_lvs2: lvs2 {};
1086 pm8941_lvs3: lvs3 {};
1087
1088 pm8941_5vs1: 5vs1 {};
1089 pm8941_5vs2: 5vs2 {};
1090 };
1091 };
1092 };
1093 };
Bhushan Shah0485ef82016-07-29 11:39:08 +05301094
Bhushan Shah73bae192016-07-29 11:39:07 +05301095 vreg_boost: vreg-boost {
1096 compatible = "regulator-fixed";
1097
1098 regulator-name = "vreg-boost";
1099 regulator-min-microvolt = <3150000>;
1100 regulator-max-microvolt = <3150000>;
1101
1102 regulator-always-on;
1103 regulator-boot-on;
1104
1105 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
1106 enable-active-high;
1107
1108 pinctrl-names = "default";
1109 pinctrl-0 = <&boost_bypass_n_pin>;
1110 };
Bhushan Shah0485ef82016-07-29 11:39:08 +05301111 vreg_vph_pwr: vreg-vph-pwr {
1112 compatible = "regulator-fixed";
1113 regulator-name = "vph-pwr";
1114
1115 regulator-min-microvolt = <3600000>;
1116 regulator-max-microvolt = <3600000>;
1117
1118 regulator-always-on;
1119 };
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08001120};