blob: 9a644ad85c2b9e3b4830673c08bfc69adfb08db0 [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. Ivanov1e202232017-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. Ivanov1e202232017-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. Ivanov1e202232017-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. Ivanov1e202232017-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
253 memory-region = <&adsp_region>;
254
255 qcom,smem-states = <&adsp_smp2p_out 0>;
256 qcom,smem-state-names = "stop";
257 };
258
Stephen Boydd0bfd7c2015-10-08 13:34:09 -0500259 smem {
260 compatible = "qcom,smem";
261
262 memory-region = <&smem_region>;
263 qcom,rpm-msg-ram = <&rpm_msg_ram>;
264
265 hwlocks = <&tcsr_mutex 3>;
266 };
267
Bjorn Andersson3028cba2016-08-22 22:57:45 -0700268 smp2p-adsp {
269 compatible = "qcom,smp2p";
270 qcom,smem = <443>, <429>;
271
272 interrupt-parent = <&intc>;
273 interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
274
275 qcom,ipc = <&apcs 8 10>;
276
277 qcom,local-pid = <0>;
278 qcom,remote-pid = <2>;
279
280 adsp_smp2p_out: master-kernel {
281 qcom,entry-name = "master-kernel";
282 #qcom,smem-state-cells = <1>;
283 };
284
285 adsp_smp2p_in: slave-kernel {
286 qcom,entry-name = "slave-kernel";
287
288 interrupt-controller;
289 #interrupt-cells = <2>;
290 };
291 };
292
Bjorn Andersson5d3178c2016-03-28 18:32:39 -0700293 smp2p-modem {
294 compatible = "qcom,smp2p";
295 qcom,smem = <435>, <428>;
296
297 interrupt-parent = <&intc>;
298 interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
299
300 qcom,ipc = <&apcs 8 14>;
301
302 qcom,local-pid = <0>;
303 qcom,remote-pid = <1>;
304
305 modem_smp2p_out: master-kernel {
306 qcom,entry-name = "master-kernel";
Andy Gross30f1e2d2016-06-12 01:20:11 -0500307 #qcom,smem-state-cells = <1>;
Bjorn Andersson5d3178c2016-03-28 18:32:39 -0700308 };
309
310 modem_smp2p_in: slave-kernel {
311 qcom,entry-name = "slave-kernel";
312
313 interrupt-controller;
314 #interrupt-cells = <2>;
315 };
316 };
317
Bjorn Andersson7ccb11e2015-12-27 17:51:13 -0800318 smp2p-wcnss {
319 compatible = "qcom,smp2p";
320 qcom,smem = <451>, <431>;
321
322 interrupt-parent = <&intc>;
323 interrupts = <0 143 IRQ_TYPE_EDGE_RISING>;
324
325 qcom,ipc = <&apcs 8 18>;
326
327 qcom,local-pid = <0>;
328 qcom,remote-pid = <4>;
329
330 wcnss_smp2p_out: master-kernel {
331 qcom,entry-name = "master-kernel";
332
Andy Gross30f1e2d2016-06-12 01:20:11 -0500333 #qcom,smem-state-cells = <1>;
Bjorn Andersson7ccb11e2015-12-27 17:51:13 -0800334 };
335
336 wcnss_smp2p_in: slave-kernel {
337 qcom,entry-name = "slave-kernel";
338
339 interrupt-controller;
340 #interrupt-cells = <2>;
341 };
342 };
343
Bjorn Andersson9af88b22015-12-27 17:47:08 -0800344 smsm {
345 compatible = "qcom,smsm";
346
347 #address-cells = <1>;
348 #size-cells = <0>;
349
350 qcom,ipc-1 = <&apcs 8 13>;
351 qcom,ipc-2 = <&apcs 8 9>;
352 qcom,ipc-3 = <&apcs 8 19>;
353
354 apps_smsm: apps@0 {
355 reg = <0>;
356
Andy Gross30f1e2d2016-06-12 01:20:11 -0500357 #qcom,smem-state-cells = <1>;
Bjorn Andersson9af88b22015-12-27 17:47:08 -0800358 };
359
360 modem_smsm: modem@1 {
361 reg = <1>;
362 interrupts = <0 26 IRQ_TYPE_EDGE_RISING>;
363
364 interrupt-controller;
365 #interrupt-cells = <2>;
366 };
367
368 adsp_smsm: adsp@2 {
369 reg = <2>;
370 interrupts = <0 157 IRQ_TYPE_EDGE_RISING>;
371
372 interrupt-controller;
373 #interrupt-cells = <2>;
374 };
375
376 wcnss_smsm: wcnss@7 {
377 reg = <7>;
378 interrupts = <0 144 IRQ_TYPE_EDGE_RISING>;
379
380 interrupt-controller;
381 #interrupt-cells = <2>;
382 };
383 };
384
Andy Grosse0e7da52016-06-03 18:25:29 -0500385 firmware {
386 scm {
387 compatible = "qcom,scm";
388 clocks = <&gcc GCC_CE1_CLK>, <&gcc GCC_CE1_AXI_CLK>, <&gcc GCC_CE1_AHB_CLK>;
389 clock-names = "core", "bus", "iface";
390 };
391 };
392
Rohit Vaswani2aec37c2013-12-20 11:09:15 -0800393 soc: soc {
394 #address-cells = <1>;
395 #size-cells = <1>;
396 ranges;
397 compatible = "simple-bus";
398
399 intc: interrupt-controller@f9000000 {
400 compatible = "qcom,msm-qgic2";
401 interrupt-controller;
402 #interrupt-cells = <3>;
403 reg = <0xf9000000 0x1000>,
404 <0xf9002000 0x1000>;
405 };
406
Bjorn Andersson45b0ef02015-06-26 14:50:18 -0700407 apcs: syscon@f9011000 {
408 compatible = "syscon";
409 reg = <0xf9011000 0x1000>;
410 };
411
Rajendra Nayakc59ffb52016-08-17 10:48:44 +0530412 qfprom: qfprom@fc4bc000 {
413 #address-cells = <1>;
414 #size-cells = <1>;
415 compatible = "qcom,qfprom";
416 reg = <0xfc4bc000 0x1000>;
417 tsens_calib: calib@d0 {
418 reg = <0xd0 0x18>;
419 };
420 tsens_backup: backup@440 {
421 reg = <0x440 0x10>;
422 };
423 };
424
425 tsens: thermal-sensor@fc4a8000 {
426 compatible = "qcom,msm8974-tsens";
427 reg = <0xfc4a8000 0x2000>;
428 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
429 nvmem-cell-names = "calib", "calib_backup";
430 #thermal-sensor-cells = <1>;
431 };
432
Stephen Boyd47c5a5d2013-12-20 11:09:19 -0800433 timer@f9020000 {
434 #address-cells = <1>;
435 #size-cells = <1>;
436 ranges;
437 compatible = "arm,armv7-timer-mem";
438 reg = <0xf9020000 0x1000>;
439 clock-frequency = <19200000>;
440
441 frame@f9021000 {
442 frame-number = <0>;
443 interrupts = <0 8 0x4>,
444 <0 7 0x4>;
445 reg = <0xf9021000 0x1000>,
446 <0xf9022000 0x1000>;
447 };
448
449 frame@f9023000 {
450 frame-number = <1>;
451 interrupts = <0 9 0x4>;
452 reg = <0xf9023000 0x1000>;
453 status = "disabled";
454 };
455
456 frame@f9024000 {
457 frame-number = <2>;
458 interrupts = <0 10 0x4>;
459 reg = <0xf9024000 0x1000>;
460 status = "disabled";
461 };
462
463 frame@f9025000 {
464 frame-number = <3>;
465 interrupts = <0 11 0x4>;
466 reg = <0xf9025000 0x1000>;
467 status = "disabled";
468 };
469
470 frame@f9026000 {
471 frame-number = <4>;
472 interrupts = <0 12 0x4>;
473 reg = <0xf9026000 0x1000>;
474 status = "disabled";
475 };
476
477 frame@f9027000 {
478 frame-number = <5>;
479 interrupts = <0 13 0x4>;
480 reg = <0xf9027000 0x1000>;
481 status = "disabled";
482 };
483
484 frame@f9028000 {
485 frame-number = <6>;
486 interrupts = <0 14 0x4>;
487 reg = <0xf9028000 0x1000>;
488 status = "disabled";
489 };
490 };
491
Lina Iyer8c76a632015-03-25 14:25:30 -0600492 saw0: power-controller@f9089000 {
493 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
494 reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
495 };
496
497 saw1: power-controller@f9099000 {
498 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
499 reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
500 };
501
502 saw2: power-controller@f90a9000 {
503 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
504 reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
505 };
506
507 saw3: power-controller@f90b9000 {
508 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
509 reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
510 };
511
512 saw_l2: power-controller@f9012000 {
Rohit Vaswani2ab27992013-11-01 10:10:40 -0700513 compatible = "qcom,saw2";
514 reg = <0xf9012000 0x1000>;
515 regulator;
516 };
517
518 acc0: clock-controller@f9088000 {
519 compatible = "qcom,kpss-acc-v2";
520 reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
521 };
522
523 acc1: clock-controller@f9098000 {
524 compatible = "qcom,kpss-acc-v2";
525 reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
526 };
527
528 acc2: clock-controller@f90a8000 {
529 compatible = "qcom,kpss-acc-v2";
530 reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
531 };
532
533 acc3: clock-controller@f90b8000 {
534 compatible = "qcom,kpss-acc-v2";
535 reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
536 };
537
Stephen Boyd74e848f2013-12-20 11:09:18 -0800538 restart@fc4ab000 {
539 compatible = "qcom,pshold";
540 reg = <0xfc4ab000 0x4>;
541 };
Stephen Boyd3933d262014-01-16 17:25:03 -0800542
543 gcc: clock-controller@fc400000 {
544 compatible = "qcom,gcc-msm8974";
545 #clock-cells = <1>;
546 #reset-cells = <1>;
Rajendra Nayak89c7e672015-10-01 14:56:02 +0530547 #power-domain-cells = <1>;
Stephen Boyd3933d262014-01-16 17:25:03 -0800548 reg = <0xfc400000 0x4000>;
549 };
550
Bjorn Anderssonb4e745e2015-06-26 14:50:16 -0700551 tcsr_mutex_block: syscon@fd484000 {
552 compatible = "syscon";
553 reg = <0xfd484000 0x2000>;
554 };
555
Stephen Boyd3933d262014-01-16 17:25:03 -0800556 mmcc: clock-controller@fd8c0000 {
557 compatible = "qcom,mmcc-msm8974";
558 #clock-cells = <1>;
559 #reset-cells = <1>;
Rajendra Nayak89c7e672015-10-01 14:56:02 +0530560 #power-domain-cells = <1>;
Stephen Boyd3933d262014-01-16 17:25:03 -0800561 reg = <0xfd8c0000 0x6000>;
562 };
563
Bjorn Anderssonb4e745e2015-06-26 14:50:16 -0700564 tcsr_mutex: tcsr-mutex {
565 compatible = "qcom,tcsr-mutex";
566 syscon = <&tcsr_mutex_block 0 0x80>;
567
568 #hwlock-cells = <1>;
569 };
570
Stephen Boydd0bfd7c2015-10-08 13:34:09 -0500571 rpm_msg_ram: memory@fc428000 {
572 compatible = "qcom,rpm-msg-ram";
Bjorn Andersson6297c4b2015-06-26 14:50:17 -0700573 reg = <0xfc428000 0x4000>;
Bjorn Andersson6297c4b2015-06-26 14:50:17 -0700574 };
575
Bhushan Shah5cae8a92016-07-13 13:04:26 +0530576 blsp1_uart1: serial@f991d000 {
577 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
578 reg = <0xf991d000 0x1000>;
579 interrupts = <0 107 0x0>;
580 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
581 clock-names = "core", "iface";
582 status = "disabled";
583 };
584
Stephen Boyd10bfcfe2015-06-16 14:31:44 -0700585 blsp1_uart2: serial@f991e000 {
Stephen Boyd3933d262014-01-16 17:25:03 -0800586 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
587 reg = <0xf991e000 0x1000>;
588 interrupts = <0 108 0x0>;
589 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
590 clock-names = "core", "iface";
Kumar Galaba082202014-05-28 12:01:29 -0500591 status = "disabled";
Stephen Boyd3933d262014-01-16 17:25:03 -0800592 };
Stanimir Varbanov19f4f8c2014-02-07 11:23:07 +0200593
Georgi Djakov3e944c72014-01-31 16:21:56 +0200594 sdhci@f9824900 {
595 compatible = "qcom,sdhci-msm-v4";
596 reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
597 reg-names = "hc_mem", "core_mem";
598 interrupts = <0 123 0>, <0 138 0>;
599 interrupt-names = "hc_irq", "pwr_irq";
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530600 clocks = <&gcc GCC_SDCC1_APPS_CLK>,
601 <&gcc GCC_SDCC1_AHB_CLK>,
602 <&xo_board>;
603 clock-names = "core", "iface", "xo";
Georgi Djakov3e944c72014-01-31 16:21:56 +0200604 status = "disabled";
605 };
606
607 sdhci@f98a4900 {
608 compatible = "qcom,sdhci-msm-v4";
609 reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
610 reg-names = "hc_mem", "core_mem";
611 interrupts = <0 125 0>, <0 221 0>;
612 interrupt-names = "hc_irq", "pwr_irq";
Ritesh Harjania91b2e62016-11-21 12:07:14 +0530613 clocks = <&gcc GCC_SDCC2_APPS_CLK>,
614 <&gcc GCC_SDCC2_AHB_CLK>,
615 <&xo_board>;
616 clock-names = "core", "iface", "xo";
Georgi Djakov3e944c72014-01-31 16:21:56 +0200617 status = "disabled";
618 };
619
Stanimir Varbanov19f4f8c2014-02-07 11:23:07 +0200620 rng@f9bff000 {
621 compatible = "qcom,prng";
622 reg = <0xf9bff000 0x200>;
623 clocks = <&gcc GCC_PRNG_AHB_CLK>;
624 clock-names = "core";
625 };
Ivan T. Ivanov7d7db8d2014-02-06 17:28:49 +0200626
627 msmgpio: pinctrl@fd510000 {
628 compatible = "qcom,msm8974-pinctrl";
629 reg = <0xfd510000 0x4000>;
630 gpio-controller;
631 #gpio-cells = <2>;
632 interrupt-controller;
633 #interrupt-cells = <2>;
634 interrupts = <0 208 0>;
Ivan T. Ivanov7d7db8d2014-02-06 17:28:49 +0200635 };
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530636
Bjorn Andersson89af1c22016-03-28 18:32:38 -0700637 i2c@f9924000 {
638 status = "disabled";
639 compatible = "qcom,i2c-qup-v2.1.1";
640 reg = <0xf9924000 0x1000>;
641 interrupts = <0 96 IRQ_TYPE_NONE>;
642 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
643 clock-names = "core", "iface";
644 #address-cells = <1>;
645 #size-cells = <0>;
646 };
647
Bjorn Andersson580df592015-11-23 21:54:34 -0800648 blsp_i2c8: i2c@f9964000 {
649 status = "disabled";
650 compatible = "qcom,i2c-qup-v2.1.1";
651 reg = <0xf9964000 0x1000>;
652 interrupts = <0 102 IRQ_TYPE_NONE>;
653 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
654 clock-names = "core", "iface";
655 #address-cells = <1>;
656 #size-cells = <0>;
657 };
658
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530659 blsp_i2c11: i2c@f9967000 {
Michael Opdenacker04edde22015-10-13 14:02:00 +0200660 status = "disabled";
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530661 compatible = "qcom,i2c-qup-v2.1.1";
662 reg = <0xf9967000 0x1000>;
663 interrupts = <0 105 IRQ_TYPE_NONE>;
664 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
665 clock-names = "core", "iface";
666 #address-cells = <1>;
667 #size-cells = <0>;
Andy Gross938b4d42016-06-09 22:45:27 -0500668 dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
669 dma-names = "tx", "rx";
kiran.padwal@smartplayin.combf7f6b02014-09-16 17:15:38 +0530670 };
Ivan T. Ivanovaf22e462015-02-03 14:17:58 +0200671
672 spmi_bus: spmi@fc4cf000 {
673 compatible = "qcom,spmi-pmic-arb";
674 reg-names = "core", "intr", "cnfg";
675 reg = <0xfc4cf000 0x1000>,
676 <0xfc4cb000 0x1000>,
677 <0xfc4ca000 0x1000>;
678 interrupt-names = "periph_irq";
679 interrupts = <0 190 0>;
680 qcom,ee = <0>;
681 qcom,channel = <0>;
682 #address-cells = <2>;
683 #size-cells = <0>;
684 interrupt-controller;
685 #interrupt-cells = <4>;
686 };
Andy Grossd44cbb12016-06-09 22:45:11 -0500687
688 blsp2_dma: dma-controller@f9944000 {
689 compatible = "qcom,bam-v1.4.0";
690 reg = <0xf9944000 0x19000>;
691 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&gcc GCC_BLSP2_AHB_CLK>;
693 clock-names = "bam_clk";
694 #dma-cells = <1>;
695 qcom,ee = <0>;
696 };
Bjorn Andersson769907a2016-03-28 18:32:36 -0700697
698 usb1_phy: usb-phy@f9a55000 {
699 compatible = "qcom,usb-otg-snps";
700
701 reg = <0xf9a55000 0x400>;
702 interrupts-extended = <&intc 0 134 0>, <&intc 0 140 0>,
703 <&spmi_bus 0 0x9 0 0>;
704 interrupt-names = "core_irq", "async_irq", "pmic_id_irq";
705
706 vddcx-supply = <&pm8841_s2>;
707 v3p3-supply = <&pm8941_l24>;
708 v1p8-supply = <&pm8941_l6>;
709
710 dr_mode = "otg";
711 qcom,phy-init-sequence = <0x63 0x81 0xfffffff>;
712 qcom,otg-control = <1>;
713 qcom,phy-num = <0>;
714
715 resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>;
716 reset-names = "phy", "link";
717
718 clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>,
719 <&gcc GCC_USB_HS_AHB_CLK>;
720 clock-names = "phy", "core", "iface";
721
722 status = "disabled";
723 };
724
725 usb@f9a55000 {
726 compatible = "qcom,ci-hdrc";
727 reg = <0xf9a55000 0x400>;
728 dr_mode = "otg";
729 interrupts = <0 134 0>, <0 140 0>;
730 interrupt-names = "core_irq", "async_irq";
731 usb-phy = <&usb1_phy>;
732
733 status = "disabled";
734 };
Ivan T. Ivanov1e202232017-02-03 20:36:28 +0200735
736 etr@fc322000 {
737 compatible = "arm,coresight-tmc", "arm,primecell";
738 reg = <0xfc322000 0x1000>;
739
740 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
741 clock-names = "apb_pclk", "atclk";
742
743 port {
744 etr_in: endpoint {
745 slave-mode;
746 remote-endpoint = <&replicator_out0>;
747 };
748 };
749 };
750
751 tpiu@fc318000 {
752 compatible = "arm,coresight-tpiu", "arm,primecell";
753 reg = <0xfc318000 0x1000>;
754
755 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
756 clock-names = "apb_pclk", "atclk";
757
758 port {
759 tpiu_in: endpoint {
760 slave-mode;
761 remote-endpoint = <&replicator_out1>;
762 };
763 };
764 };
765
766 replicator@fc31c000 {
767 compatible = "qcom,coresight-replicator1x", "arm,primecell";
768 reg = <0xfc31c000 0x1000>;
769
770 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
771 clock-names = "apb_pclk", "atclk";
772
773 ports {
774 #address-cells = <1>;
775 #size-cells = <0>;
776
777 port@0 {
778 reg = <0>;
779 replicator_out0: endpoint {
780 remote-endpoint = <&etr_in>;
781 };
782 };
783 port@1 {
784 reg = <1>;
785 replicator_out1: endpoint {
786 remote-endpoint = <&tpiu_in>;
787 };
788 };
789 port@2 {
790 reg = <0>;
791 replicator_in: endpoint {
792 slave-mode;
793 remote-endpoint = <&etf_out>;
794 };
795 };
796 };
797 };
798
799 etf@fc307000 {
800 compatible = "arm,coresight-tmc", "arm,primecell";
801 reg = <0xfc307000 0x1000>;
802
803 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
804 clock-names = "apb_pclk", "atclk";
805
806 ports {
807 #address-cells = <1>;
808 #size-cells = <0>;
809
810 port@0 {
811 reg = <0>;
812 etf_out: endpoint {
813 remote-endpoint = <&replicator_in>;
814 };
815 };
816 port@1 {
817 reg = <0>;
818 etf_in: endpoint {
819 slave-mode;
820 remote-endpoint = <&merger_out>;
821 };
822 };
823 };
824 };
825
826 funnel@fc31b000 {
827 compatible = "arm,coresight-funnel", "arm,primecell";
828 reg = <0xfc31b000 0x1000>;
829
830 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
831 clock-names = "apb_pclk", "atclk";
832
833 ports {
834 #address-cells = <1>;
835 #size-cells = <0>;
836
837 /*
838 * Not described input ports:
839 * 0 - connected trought funnel to Audio, Modem and
840 * Resource and Power Manager CPU's
841 * 2...7 - not-connected
842 */
843 port@1 {
844 reg = <1>;
845 merger_in1: endpoint {
846 slave-mode;
847 remote-endpoint = <&funnel1_out>;
848 };
849 };
850 port@8 {
851 reg = <0>;
852 merger_out: endpoint {
853 remote-endpoint = <&etf_in>;
854 };
855 };
856 };
857 };
858
859 funnel@fc31a000 {
860 compatible = "arm,coresight-funnel", "arm,primecell";
861 reg = <0xfc31a000 0x1000>;
862
863 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
864 clock-names = "apb_pclk", "atclk";
865
866 ports {
867 #address-cells = <1>;
868 #size-cells = <0>;
869
870 /*
871 * Not described input ports:
872 * 0 - not-connected
873 * 1 - connected trought funnel to Multimedia CPU
874 * 2 - connected to Wireless CPU
875 * 3 - not-connected
876 * 4 - not-connected
877 * 6 - not-connected
878 * 7 - connected to STM
879 */
880 port@5 {
881 reg = <5>;
882 funnel1_in5: endpoint {
883 slave-mode;
884 remote-endpoint = <&kpss_out>;
885 };
886 };
887 port@8 {
888 reg = <0>;
889 funnel1_out: endpoint {
890 remote-endpoint = <&merger_in1>;
891 };
892 };
893 };
894 };
895
896 funnel@fc345000 { /* KPSS funnel only 4 inputs are used */
897 compatible = "arm,coresight-funnel", "arm,primecell";
898 reg = <0xfc345000 0x1000>;
899
900 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
901 clock-names = "apb_pclk", "atclk";
902
903 ports {
904 #address-cells = <1>;
905 #size-cells = <0>;
906
907 port@0 {
908 reg = <0>;
909 kpss_in0: endpoint {
910 slave-mode;
911 remote-endpoint = <&etm0_out>;
912 };
913 };
914 port@1 {
915 reg = <1>;
916 kpss_in1: endpoint {
917 slave-mode;
918 remote-endpoint = <&etm1_out>;
919 };
920 };
921 port@2 {
922 reg = <2>;
923 kpss_in2: endpoint {
924 slave-mode;
925 remote-endpoint = <&etm2_out>;
926 };
927 };
928 port@3 {
929 reg = <3>;
930 kpss_in3: endpoint {
931 slave-mode;
932 remote-endpoint = <&etm3_out>;
933 };
934 };
935 port@8 {
936 reg = <0>;
937 kpss_out: endpoint {
938 remote-endpoint = <&funnel1_in5>;
939 };
940 };
941 };
942 };
943
944 etm@fc33c000 {
945 compatible = "arm,coresight-etm4x", "arm,primecell";
946 reg = <0xfc33c000 0x1000>;
947
948 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
949 clock-names = "apb_pclk", "atclk";
950
951 cpu = <&CPU0>;
952
953 port {
954 etm0_out: endpoint {
955 remote-endpoint = <&kpss_in0>;
956 };
957 };
958 };
959
960 etm@fc33d000 {
961 compatible = "arm,coresight-etm4x", "arm,primecell";
962 reg = <0xfc33d000 0x1000>;
963
964 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
965 clock-names = "apb_pclk", "atclk";
966
967 cpu = <&CPU1>;
968
969 port {
970 etm1_out: endpoint {
971 remote-endpoint = <&kpss_in1>;
972 };
973 };
974 };
975
976 etm@fc33e000 {
977 compatible = "arm,coresight-etm4x", "arm,primecell";
978 reg = <0xfc33e000 0x1000>;
979
980 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
981 clock-names = "apb_pclk", "atclk";
982
983 cpu = <&CPU2>;
984
985 port {
986 etm2_out: endpoint {
987 remote-endpoint = <&kpss_in2>;
988 };
989 };
990 };
991
992 etm@fc33f000 {
993 compatible = "arm,coresight-etm4x", "arm,primecell";
994 reg = <0xfc33f000 0x1000>;
995
996 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
997 clock-names = "apb_pclk", "atclk";
998
999 cpu = <&CPU3>;
1000
1001 port {
1002 etm3_out: endpoint {
1003 remote-endpoint = <&kpss_in3>;
1004 };
1005 };
1006 };
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08001007 };
Bjorn Andersson45b0ef02015-06-26 14:50:18 -07001008
1009 smd {
1010 compatible = "qcom,smd";
1011
Bjorn Andersson3028cba2016-08-22 22:57:45 -07001012 adsp {
1013 interrupts = <0 156 IRQ_TYPE_EDGE_RISING>;
1014
1015 qcom,ipc = <&apcs 8 8>;
1016 qcom,smd-edge = <1>;
1017 };
1018
Bjorn Andersson5d3178c2016-03-28 18:32:39 -07001019 modem {
1020 interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
1021
1022 qcom,ipc = <&apcs 8 12>;
1023 qcom,smd-edge = <0>;
1024 };
1025
Bjorn Andersson45b0ef02015-06-26 14:50:18 -07001026 rpm {
1027 interrupts = <0 168 1>;
1028 qcom,ipc = <&apcs 8 0>;
1029 qcom,smd-edge = <15>;
1030
1031 rpm_requests {
1032 compatible = "qcom,rpm-msm8974";
1033 qcom,smd-channels = "rpm_requests";
1034
1035 pm8841-regulators {
1036 compatible = "qcom,rpm-pm8841-regulators";
1037
1038 pm8841_s1: s1 {};
1039 pm8841_s2: s2 {};
1040 pm8841_s3: s3 {};
1041 pm8841_s4: s4 {};
1042 pm8841_s5: s5 {};
1043 pm8841_s6: s6 {};
1044 pm8841_s7: s7 {};
1045 pm8841_s8: s8 {};
1046 };
1047
1048 pm8941-regulators {
1049 compatible = "qcom,rpm-pm8941-regulators";
1050
1051 pm8941_s1: s1 {};
1052 pm8941_s2: s2 {};
1053 pm8941_s3: s3 {};
1054 pm8941_5v: s4 {};
1055
1056 pm8941_l1: l1 {};
1057 pm8941_l2: l2 {};
1058 pm8941_l3: l3 {};
1059 pm8941_l4: l4 {};
1060 pm8941_l5: l5 {};
1061 pm8941_l6: l6 {};
1062 pm8941_l7: l7 {};
1063 pm8941_l8: l8 {};
1064 pm8941_l9: l9 {};
1065 pm8941_l10: l10 {};
1066 pm8941_l11: l11 {};
1067 pm8941_l12: l12 {};
1068 pm8941_l13: l13 {};
1069 pm8941_l14: l14 {};
1070 pm8941_l15: l15 {};
1071 pm8941_l16: l16 {};
1072 pm8941_l17: l17 {};
1073 pm8941_l18: l18 {};
1074 pm8941_l19: l19 {};
1075 pm8941_l20: l20 {};
1076 pm8941_l21: l21 {};
1077 pm8941_l22: l22 {};
1078 pm8941_l23: l23 {};
1079 pm8941_l24: l24 {};
1080
1081 pm8941_lvs1: lvs1 {};
1082 pm8941_lvs2: lvs2 {};
1083 pm8941_lvs3: lvs3 {};
1084
1085 pm8941_5vs1: 5vs1 {};
1086 pm8941_5vs2: 5vs2 {};
1087 };
1088 };
1089 };
1090 };
Bhushan Shah0485ef82016-07-29 11:39:08 +05301091
Bhushan Shah73bae192016-07-29 11:39:07 +05301092 vreg_boost: vreg-boost {
1093 compatible = "regulator-fixed";
1094
1095 regulator-name = "vreg-boost";
1096 regulator-min-microvolt = <3150000>;
1097 regulator-max-microvolt = <3150000>;
1098
1099 regulator-always-on;
1100 regulator-boot-on;
1101
1102 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
1103 enable-active-high;
1104
1105 pinctrl-names = "default";
1106 pinctrl-0 = <&boost_bypass_n_pin>;
1107 };
Bhushan Shah0485ef82016-07-29 11:39:08 +05301108 vreg_vph_pwr: vreg-vph-pwr {
1109 compatible = "regulator-fixed";
1110 regulator-name = "vph-pwr";
1111
1112 regulator-min-microvolt = <3600000>;
1113 regulator-max-microvolt = <3600000>;
1114
1115 regulator-always-on;
1116 };
Rohit Vaswani2aec37c2013-12-20 11:09:15 -08001117};