Loading...
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/interrupt-controller/arm-gic.h>
5#include <dt-bindings/clock/qcom,gcc-msm8974.h>
6#include <dt-bindings/clock/qcom,rpmcc.h>
7#include <dt-bindings/reset/qcom,gcc-msm8974.h>
8#include <dt-bindings/gpio/gpio.h>
9#include "skeleton.dtsi"
10
11/ {
12 model = "Qualcomm MSM8974";
13 compatible = "qcom,msm8974";
14 interrupt-parent = <&intc>;
15
16 reserved-memory {
17 #address-cells = <1>;
18 #size-cells = <1>;
19 ranges;
20
21 mpss@8000000 {
22 reg = <0x08000000 0x5100000>;
23 no-map;
24 };
25
26 mba@d100000 {
27 reg = <0x0d100000 0x100000>;
28 no-map;
29 };
30
31 reserved@d200000 {
32 reg = <0x0d200000 0xa00000>;
33 no-map;
34 };
35
36 adsp_region: adsp@dc00000 {
37 reg = <0x0dc00000 0x1900000>;
38 no-map;
39 };
40
41 venus@f500000 {
42 reg = <0x0f500000 0x500000>;
43 no-map;
44 };
45
46 smem_region: smem@fa00000 {
47 reg = <0xfa00000 0x200000>;
48 no-map;
49 };
50
51 tz@fc00000 {
52 reg = <0x0fc00000 0x160000>;
53 no-map;
54 };
55
56 rfsa@fd60000 {
57 reg = <0x0fd60000 0x20000>;
58 no-map;
59 };
60
61 rmtfs@fd80000 {
62 reg = <0x0fd80000 0x180000>;
63 no-map;
64 };
65 };
66
67 cpus {
68 #address-cells = <1>;
69 #size-cells = <0>;
70 interrupts = <1 9 0xf04>;
71
72 CPU0: cpu@0 {
73 compatible = "qcom,krait";
74 enable-method = "qcom,kpss-acc-v2";
75 device_type = "cpu";
76 reg = <0>;
77 next-level-cache = <&L2>;
78 qcom,acc = <&acc0>;
79 qcom,saw = <&saw0>;
80 cpu-idle-states = <&CPU_SPC>;
81 };
82
83 CPU1: cpu@1 {
84 compatible = "qcom,krait";
85 enable-method = "qcom,kpss-acc-v2";
86 device_type = "cpu";
87 reg = <1>;
88 next-level-cache = <&L2>;
89 qcom,acc = <&acc1>;
90 qcom,saw = <&saw1>;
91 cpu-idle-states = <&CPU_SPC>;
92 };
93
94 CPU2: cpu@2 {
95 compatible = "qcom,krait";
96 enable-method = "qcom,kpss-acc-v2";
97 device_type = "cpu";
98 reg = <2>;
99 next-level-cache = <&L2>;
100 qcom,acc = <&acc2>;
101 qcom,saw = <&saw2>;
102 cpu-idle-states = <&CPU_SPC>;
103 };
104
105 CPU3: cpu@3 {
106 compatible = "qcom,krait";
107 enable-method = "qcom,kpss-acc-v2";
108 device_type = "cpu";
109 reg = <3>;
110 next-level-cache = <&L2>;
111 qcom,acc = <&acc3>;
112 qcom,saw = <&saw3>;
113 cpu-idle-states = <&CPU_SPC>;
114 };
115
116 L2: l2-cache {
117 compatible = "cache";
118 cache-level = <2>;
119 qcom,saw = <&saw_l2>;
120 };
121
122 idle-states {
123 CPU_SPC: spc {
124 compatible = "qcom,idle-state-spc",
125 "arm,idle-state";
126 entry-latency-us = <150>;
127 exit-latency-us = <200>;
128 min-residency-us = <2000>;
129 };
130 };
131 };
132
133 thermal-zones {
134 cpu-thermal0 {
135 polling-delay-passive = <250>;
136 polling-delay = <1000>;
137
138 thermal-sensors = <&tsens 5>;
139
140 trips {
141 cpu_alert0: trip0 {
142 temperature = <75000>;
143 hysteresis = <2000>;
144 type = "passive";
145 };
146 cpu_crit0: trip1 {
147 temperature = <110000>;
148 hysteresis = <2000>;
149 type = "critical";
150 };
151 };
152 };
153
154 cpu-thermal1 {
155 polling-delay-passive = <250>;
156 polling-delay = <1000>;
157
158 thermal-sensors = <&tsens 6>;
159
160 trips {
161 cpu_alert1: trip0 {
162 temperature = <75000>;
163 hysteresis = <2000>;
164 type = "passive";
165 };
166 cpu_crit1: trip1 {
167 temperature = <110000>;
168 hysteresis = <2000>;
169 type = "critical";
170 };
171 };
172 };
173
174 cpu-thermal2 {
175 polling-delay-passive = <250>;
176 polling-delay = <1000>;
177
178 thermal-sensors = <&tsens 7>;
179
180 trips {
181 cpu_alert2: trip0 {
182 temperature = <75000>;
183 hysteresis = <2000>;
184 type = "passive";
185 };
186 cpu_crit2: trip1 {
187 temperature = <110000>;
188 hysteresis = <2000>;
189 type = "critical";
190 };
191 };
192 };
193
194 cpu-thermal3 {
195 polling-delay-passive = <250>;
196 polling-delay = <1000>;
197
198 thermal-sensors = <&tsens 8>;
199
200 trips {
201 cpu_alert3: trip0 {
202 temperature = <75000>;
203 hysteresis = <2000>;
204 type = "passive";
205 };
206 cpu_crit3: trip1 {
207 temperature = <110000>;
208 hysteresis = <2000>;
209 type = "critical";
210 };
211 };
212 };
213 };
214
215 cpu-pmu {
216 compatible = "qcom,krait-pmu";
217 interrupts = <1 7 0xf04>;
218 };
219
220 clocks {
221 xo_board: xo_board {
222 compatible = "fixed-clock";
223 #clock-cells = <0>;
224 clock-frequency = <19200000>;
225 };
226
227 sleep_clk: sleep_clk {
228 compatible = "fixed-clock";
229 #clock-cells = <0>;
230 clock-frequency = <32768>;
231 };
232 };
233
234 timer {
235 compatible = "arm,armv7-timer";
236 interrupts = <1 2 0xf08>,
237 <1 3 0xf08>,
238 <1 4 0xf08>,
239 <1 1 0xf08>;
240 clock-frequency = <19200000>;
241 };
242
243 adsp-pil {
244 compatible = "qcom,msm8974-adsp-pil";
245
246 interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>,
247 <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
248 <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
249 <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
250 <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
251 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
252
253 cx-supply = <&pm8841_s2>;
254
255 clocks = <&xo_board>;
256 clock-names = "xo";
257
258 memory-region = <&adsp_region>;
259
260 qcom,smem-states = <&adsp_smp2p_out 0>;
261 qcom,smem-state-names = "stop";
262 };
263
264 smem {
265 compatible = "qcom,smem";
266
267 memory-region = <&smem_region>;
268 qcom,rpm-msg-ram = <&rpm_msg_ram>;
269
270 hwlocks = <&tcsr_mutex 3>;
271 };
272
273 smp2p-adsp {
274 compatible = "qcom,smp2p";
275 qcom,smem = <443>, <429>;
276
277 interrupt-parent = <&intc>;
278 interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
279
280 qcom,ipc = <&apcs 8 10>;
281
282 qcom,local-pid = <0>;
283 qcom,remote-pid = <2>;
284
285 adsp_smp2p_out: master-kernel {
286 qcom,entry-name = "master-kernel";
287 #qcom,smem-state-cells = <1>;
288 };
289
290 adsp_smp2p_in: slave-kernel {
291 qcom,entry-name = "slave-kernel";
292
293 interrupt-controller;
294 #interrupt-cells = <2>;
295 };
296 };
297
298 smp2p-modem {
299 compatible = "qcom,smp2p";
300 qcom,smem = <435>, <428>;
301
302 interrupt-parent = <&intc>;
303 interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
304
305 qcom,ipc = <&apcs 8 14>;
306
307 qcom,local-pid = <0>;
308 qcom,remote-pid = <1>;
309
310 modem_smp2p_out: master-kernel {
311 qcom,entry-name = "master-kernel";
312 #qcom,smem-state-cells = <1>;
313 };
314
315 modem_smp2p_in: slave-kernel {
316 qcom,entry-name = "slave-kernel";
317
318 interrupt-controller;
319 #interrupt-cells = <2>;
320 };
321 };
322
323 smp2p-wcnss {
324 compatible = "qcom,smp2p";
325 qcom,smem = <451>, <431>;
326
327 interrupt-parent = <&intc>;
328 interrupts = <0 143 IRQ_TYPE_EDGE_RISING>;
329
330 qcom,ipc = <&apcs 8 18>;
331
332 qcom,local-pid = <0>;
333 qcom,remote-pid = <4>;
334
335 wcnss_smp2p_out: master-kernel {
336 qcom,entry-name = "master-kernel";
337
338 #qcom,smem-state-cells = <1>;
339 };
340
341 wcnss_smp2p_in: slave-kernel {
342 qcom,entry-name = "slave-kernel";
343
344 interrupt-controller;
345 #interrupt-cells = <2>;
346 };
347 };
348
349 smsm {
350 compatible = "qcom,smsm";
351
352 #address-cells = <1>;
353 #size-cells = <0>;
354
355 qcom,ipc-1 = <&apcs 8 13>;
356 qcom,ipc-2 = <&apcs 8 9>;
357 qcom,ipc-3 = <&apcs 8 19>;
358
359 apps_smsm: apps@0 {
360 reg = <0>;
361
362 #qcom,smem-state-cells = <1>;
363 };
364
365 modem_smsm: modem@1 {
366 reg = <1>;
367 interrupts = <0 26 IRQ_TYPE_EDGE_RISING>;
368
369 interrupt-controller;
370 #interrupt-cells = <2>;
371 };
372
373 adsp_smsm: adsp@2 {
374 reg = <2>;
375 interrupts = <0 157 IRQ_TYPE_EDGE_RISING>;
376
377 interrupt-controller;
378 #interrupt-cells = <2>;
379 };
380
381 wcnss_smsm: wcnss@7 {
382 reg = <7>;
383 interrupts = <0 144 IRQ_TYPE_EDGE_RISING>;
384
385 interrupt-controller;
386 #interrupt-cells = <2>;
387 };
388 };
389
390 firmware {
391 scm {
392 compatible = "qcom,scm";
393 clocks = <&gcc GCC_CE1_CLK>, <&gcc GCC_CE1_AXI_CLK>, <&gcc GCC_CE1_AHB_CLK>;
394 clock-names = "core", "bus", "iface";
395 };
396 };
397
398 soc: soc {
399 #address-cells = <1>;
400 #size-cells = <1>;
401 ranges;
402 compatible = "simple-bus";
403
404 intc: interrupt-controller@f9000000 {
405 compatible = "qcom,msm-qgic2";
406 interrupt-controller;
407 #interrupt-cells = <3>;
408 reg = <0xf9000000 0x1000>,
409 <0xf9002000 0x1000>;
410 };
411
412 apcs: syscon@f9011000 {
413 compatible = "syscon";
414 reg = <0xf9011000 0x1000>;
415 };
416
417 qfprom: qfprom@fc4bc000 {
418 #address-cells = <1>;
419 #size-cells = <1>;
420 compatible = "qcom,qfprom";
421 reg = <0xfc4bc000 0x1000>;
422 tsens_calib: calib@d0 {
423 reg = <0xd0 0x18>;
424 };
425 tsens_backup: backup@440 {
426 reg = <0x440 0x10>;
427 };
428 };
429
430 tsens: thermal-sensor@fc4a8000 {
431 compatible = "qcom,msm8974-tsens";
432 reg = <0xfc4a8000 0x2000>;
433 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
434 nvmem-cell-names = "calib", "calib_backup";
435 #thermal-sensor-cells = <1>;
436 };
437
438 timer@f9020000 {
439 #address-cells = <1>;
440 #size-cells = <1>;
441 ranges;
442 compatible = "arm,armv7-timer-mem";
443 reg = <0xf9020000 0x1000>;
444 clock-frequency = <19200000>;
445
446 frame@f9021000 {
447 frame-number = <0>;
448 interrupts = <0 8 0x4>,
449 <0 7 0x4>;
450 reg = <0xf9021000 0x1000>,
451 <0xf9022000 0x1000>;
452 };
453
454 frame@f9023000 {
455 frame-number = <1>;
456 interrupts = <0 9 0x4>;
457 reg = <0xf9023000 0x1000>;
458 status = "disabled";
459 };
460
461 frame@f9024000 {
462 frame-number = <2>;
463 interrupts = <0 10 0x4>;
464 reg = <0xf9024000 0x1000>;
465 status = "disabled";
466 };
467
468 frame@f9025000 {
469 frame-number = <3>;
470 interrupts = <0 11 0x4>;
471 reg = <0xf9025000 0x1000>;
472 status = "disabled";
473 };
474
475 frame@f9026000 {
476 frame-number = <4>;
477 interrupts = <0 12 0x4>;
478 reg = <0xf9026000 0x1000>;
479 status = "disabled";
480 };
481
482 frame@f9027000 {
483 frame-number = <5>;
484 interrupts = <0 13 0x4>;
485 reg = <0xf9027000 0x1000>;
486 status = "disabled";
487 };
488
489 frame@f9028000 {
490 frame-number = <6>;
491 interrupts = <0 14 0x4>;
492 reg = <0xf9028000 0x1000>;
493 status = "disabled";
494 };
495 };
496
497 saw0: power-controller@f9089000 {
498 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
499 reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
500 };
501
502 saw1: power-controller@f9099000 {
503 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
504 reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
505 };
506
507 saw2: power-controller@f90a9000 {
508 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
509 reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
510 };
511
512 saw3: power-controller@f90b9000 {
513 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
514 reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
515 };
516
517 saw_l2: power-controller@f9012000 {
518 compatible = "qcom,saw2";
519 reg = <0xf9012000 0x1000>;
520 regulator;
521 };
522
523 acc0: clock-controller@f9088000 {
524 compatible = "qcom,kpss-acc-v2";
525 reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
526 };
527
528 acc1: clock-controller@f9098000 {
529 compatible = "qcom,kpss-acc-v2";
530 reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
531 };
532
533 acc2: clock-controller@f90a8000 {
534 compatible = "qcom,kpss-acc-v2";
535 reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
536 };
537
538 acc3: clock-controller@f90b8000 {
539 compatible = "qcom,kpss-acc-v2";
540 reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
541 };
542
543 restart@fc4ab000 {
544 compatible = "qcom,pshold";
545 reg = <0xfc4ab000 0x4>;
546 };
547
548 gcc: clock-controller@fc400000 {
549 compatible = "qcom,gcc-msm8974";
550 #clock-cells = <1>;
551 #reset-cells = <1>;
552 #power-domain-cells = <1>;
553 reg = <0xfc400000 0x4000>;
554 };
555
556 tcsr: syscon@fd4a0000 {
557 compatible = "syscon";
558 reg = <0xfd4a0000 0x10000>;
559 };
560
561 tcsr_mutex_block: syscon@fd484000 {
562 compatible = "syscon";
563 reg = <0xfd484000 0x2000>;
564 };
565
566 mmcc: clock-controller@fd8c0000 {
567 compatible = "qcom,mmcc-msm8974";
568 #clock-cells = <1>;
569 #reset-cells = <1>;
570 #power-domain-cells = <1>;
571 reg = <0xfd8c0000 0x6000>;
572 };
573
574 tcsr_mutex: tcsr-mutex {
575 compatible = "qcom,tcsr-mutex";
576 syscon = <&tcsr_mutex_block 0 0x80>;
577
578 #hwlock-cells = <1>;
579 };
580
581 rpm_msg_ram: memory@fc428000 {
582 compatible = "qcom,rpm-msg-ram";
583 reg = <0xfc428000 0x4000>;
584 };
585
586 blsp1_uart1: serial@f991d000 {
587 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
588 reg = <0xf991d000 0x1000>;
589 interrupts = <0 107 0x0>;
590 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
591 clock-names = "core", "iface";
592 status = "disabled";
593 };
594
595 blsp1_uart2: serial@f991e000 {
596 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
597 reg = <0xf991e000 0x1000>;
598 interrupts = <0 108 0x0>;
599 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
600 clock-names = "core", "iface";
601 status = "disabled";
602 };
603
604 sdhci@f9824900 {
605 compatible = "qcom,sdhci-msm-v4";
606 reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
607 reg-names = "hc_mem", "core_mem";
608 interrupts = <0 123 0>, <0 138 0>;
609 interrupt-names = "hc_irq", "pwr_irq";
610 clocks = <&gcc GCC_SDCC1_APPS_CLK>,
611 <&gcc GCC_SDCC1_AHB_CLK>,
612 <&xo_board>;
613 clock-names = "core", "iface", "xo";
614 status = "disabled";
615 };
616
617 sdhci@f9864900 {
618 compatible = "qcom,sdhci-msm-v4";
619 reg = <0xf9864900 0x11c>, <0xf9864000 0x800>;
620 reg-names = "hc_mem", "core_mem";
621 interrupts = <GIC_SPI 127 IRQ_TYPE_NONE>,
622 <GIC_SPI 224 IRQ_TYPE_NONE>;
623 interrupt-names = "hc_irq", "pwr_irq";
624 clocks = <&gcc GCC_SDCC3_APPS_CLK>,
625 <&gcc GCC_SDCC3_AHB_CLK>,
626 <&xo_board>;
627 clock-names = "core", "iface", "xo";
628 status = "disabled";
629 };
630
631 sdhci@f98a4900 {
632 compatible = "qcom,sdhci-msm-v4";
633 reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
634 reg-names = "hc_mem", "core_mem";
635 interrupts = <0 125 0>, <0 221 0>;
636 interrupt-names = "hc_irq", "pwr_irq";
637 clocks = <&gcc GCC_SDCC2_APPS_CLK>,
638 <&gcc GCC_SDCC2_AHB_CLK>,
639 <&xo_board>;
640 clock-names = "core", "iface", "xo";
641 status = "disabled";
642 };
643
644 otg: usb@f9a55000 {
645 compatible = "qcom,ci-hdrc";
646 reg = <0xf9a55000 0x200>,
647 <0xf9a55200 0x200>;
648 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
649 clocks = <&gcc GCC_USB_HS_AHB_CLK>,
650 <&gcc GCC_USB_HS_SYSTEM_CLK>;
651 clock-names = "iface", "core";
652 assigned-clocks = <&gcc GCC_USB_HS_SYSTEM_CLK>;
653 assigned-clock-rates = <75000000>;
654 resets = <&gcc GCC_USB_HS_BCR>;
655 reset-names = "core";
656 phy_type = "ulpi";
657 dr_mode = "otg";
658 ahb-burst-config = <0>;
659 phy-names = "usb-phy";
660 status = "disabled";
661 #reset-cells = <1>;
662
663 ulpi {
664 usb_hs1_phy: phy@a {
665 compatible = "qcom,usb-hs-phy-msm8974",
666 "qcom,usb-hs-phy";
667 #phy-cells = <0>;
668 clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>;
669 clock-names = "ref", "sleep";
670 resets = <&gcc GCC_USB2A_PHY_BCR>, <&otg 0>;
671 reset-names = "phy", "por";
672 status = "disabled";
673 };
674
675 usb_hs2_phy: phy@b {
676 compatible = "qcom,usb-hs-phy-msm8974",
677 "qcom,usb-hs-phy";
678 #phy-cells = <0>;
679 clocks = <&xo_board>, <&gcc GCC_USB2B_PHY_SLEEP_CLK>;
680 clock-names = "ref", "sleep";
681 resets = <&gcc GCC_USB2B_PHY_BCR>, <&otg 1>;
682 reset-names = "phy", "por";
683 status = "disabled";
684 };
685 };
686 };
687
688 rng@f9bff000 {
689 compatible = "qcom,prng";
690 reg = <0xf9bff000 0x200>;
691 clocks = <&gcc GCC_PRNG_AHB_CLK>;
692 clock-names = "core";
693 };
694
695 msmgpio: pinctrl@fd510000 {
696 compatible = "qcom,msm8974-pinctrl";
697 reg = <0xfd510000 0x4000>;
698 gpio-controller;
699 #gpio-cells = <2>;
700 interrupt-controller;
701 #interrupt-cells = <2>;
702 interrupts = <0 208 0>;
703 };
704
705 i2c@f9924000 {
706 status = "disabled";
707 compatible = "qcom,i2c-qup-v2.1.1";
708 reg = <0xf9924000 0x1000>;
709 interrupts = <0 96 IRQ_TYPE_NONE>;
710 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
711 clock-names = "core", "iface";
712 #address-cells = <1>;
713 #size-cells = <0>;
714 };
715
716 blsp_i2c8: i2c@f9964000 {
717 status = "disabled";
718 compatible = "qcom,i2c-qup-v2.1.1";
719 reg = <0xf9964000 0x1000>;
720 interrupts = <0 102 IRQ_TYPE_NONE>;
721 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
722 clock-names = "core", "iface";
723 #address-cells = <1>;
724 #size-cells = <0>;
725 };
726
727 blsp_i2c11: i2c@f9967000 {
728 status = "disabled";
729 compatible = "qcom,i2c-qup-v2.1.1";
730 reg = <0xf9967000 0x1000>;
731 interrupts = <0 105 IRQ_TYPE_NONE>;
732 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
733 clock-names = "core", "iface";
734 #address-cells = <1>;
735 #size-cells = <0>;
736 dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
737 dma-names = "tx", "rx";
738 };
739
740 spmi_bus: spmi@fc4cf000 {
741 compatible = "qcom,spmi-pmic-arb";
742 reg-names = "core", "intr", "cnfg";
743 reg = <0xfc4cf000 0x1000>,
744 <0xfc4cb000 0x1000>,
745 <0xfc4ca000 0x1000>;
746 interrupt-names = "periph_irq";
747 interrupts = <0 190 0>;
748 qcom,ee = <0>;
749 qcom,channel = <0>;
750 #address-cells = <2>;
751 #size-cells = <0>;
752 interrupt-controller;
753 #interrupt-cells = <4>;
754 };
755
756 blsp2_dma: dma-controller@f9944000 {
757 compatible = "qcom,bam-v1.4.0";
758 reg = <0xf9944000 0x19000>;
759 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
760 clocks = <&gcc GCC_BLSP2_AHB_CLK>;
761 clock-names = "bam_clk";
762 #dma-cells = <1>;
763 qcom,ee = <0>;
764 };
765
766 etr@fc322000 {
767 compatible = "arm,coresight-tmc", "arm,primecell";
768 reg = <0xfc322000 0x1000>;
769
770 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
771 clock-names = "apb_pclk", "atclk";
772
773 port {
774 etr_in: endpoint {
775 slave-mode;
776 remote-endpoint = <&replicator_out0>;
777 };
778 };
779 };
780
781 tpiu@fc318000 {
782 compatible = "arm,coresight-tpiu", "arm,primecell";
783 reg = <0xfc318000 0x1000>;
784
785 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
786 clock-names = "apb_pclk", "atclk";
787
788 port {
789 tpiu_in: endpoint {
790 slave-mode;
791 remote-endpoint = <&replicator_out1>;
792 };
793 };
794 };
795
796 replicator@fc31c000 {
797 compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
798 reg = <0xfc31c000 0x1000>;
799
800 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
801 clock-names = "apb_pclk", "atclk";
802
803 ports {
804 #address-cells = <1>;
805 #size-cells = <0>;
806
807 port@0 {
808 reg = <0>;
809 replicator_out0: endpoint {
810 remote-endpoint = <&etr_in>;
811 };
812 };
813 port@1 {
814 reg = <1>;
815 replicator_out1: endpoint {
816 remote-endpoint = <&tpiu_in>;
817 };
818 };
819 port@2 {
820 reg = <0>;
821 replicator_in: endpoint {
822 slave-mode;
823 remote-endpoint = <&etf_out>;
824 };
825 };
826 };
827 };
828
829 etf@fc307000 {
830 compatible = "arm,coresight-tmc", "arm,primecell";
831 reg = <0xfc307000 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 port@0 {
841 reg = <0>;
842 etf_out: endpoint {
843 remote-endpoint = <&replicator_in>;
844 };
845 };
846 port@1 {
847 reg = <0>;
848 etf_in: endpoint {
849 slave-mode;
850 remote-endpoint = <&merger_out>;
851 };
852 };
853 };
854 };
855
856 funnel@fc31b000 {
857 compatible = "arm,coresight-funnel", "arm,primecell";
858 reg = <0xfc31b000 0x1000>;
859
860 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
861 clock-names = "apb_pclk", "atclk";
862
863 ports {
864 #address-cells = <1>;
865 #size-cells = <0>;
866
867 /*
868 * Not described input ports:
869 * 0 - connected trought funnel to Audio, Modem and
870 * Resource and Power Manager CPU's
871 * 2...7 - not-connected
872 */
873 port@1 {
874 reg = <1>;
875 merger_in1: endpoint {
876 slave-mode;
877 remote-endpoint = <&funnel1_out>;
878 };
879 };
880 port@8 {
881 reg = <0>;
882 merger_out: endpoint {
883 remote-endpoint = <&etf_in>;
884 };
885 };
886 };
887 };
888
889 funnel@fc31a000 {
890 compatible = "arm,coresight-funnel", "arm,primecell";
891 reg = <0xfc31a000 0x1000>;
892
893 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
894 clock-names = "apb_pclk", "atclk";
895
896 ports {
897 #address-cells = <1>;
898 #size-cells = <0>;
899
900 /*
901 * Not described input ports:
902 * 0 - not-connected
903 * 1 - connected trought funnel to Multimedia CPU
904 * 2 - connected to Wireless CPU
905 * 3 - not-connected
906 * 4 - not-connected
907 * 6 - not-connected
908 * 7 - connected to STM
909 */
910 port@5 {
911 reg = <5>;
912 funnel1_in5: endpoint {
913 slave-mode;
914 remote-endpoint = <&kpss_out>;
915 };
916 };
917 port@8 {
918 reg = <0>;
919 funnel1_out: endpoint {
920 remote-endpoint = <&merger_in1>;
921 };
922 };
923 };
924 };
925
926 funnel@fc345000 { /* KPSS funnel only 4 inputs are used */
927 compatible = "arm,coresight-funnel", "arm,primecell";
928 reg = <0xfc345000 0x1000>;
929
930 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
931 clock-names = "apb_pclk", "atclk";
932
933 ports {
934 #address-cells = <1>;
935 #size-cells = <0>;
936
937 port@0 {
938 reg = <0>;
939 kpss_in0: endpoint {
940 slave-mode;
941 remote-endpoint = <&etm0_out>;
942 };
943 };
944 port@1 {
945 reg = <1>;
946 kpss_in1: endpoint {
947 slave-mode;
948 remote-endpoint = <&etm1_out>;
949 };
950 };
951 port@2 {
952 reg = <2>;
953 kpss_in2: endpoint {
954 slave-mode;
955 remote-endpoint = <&etm2_out>;
956 };
957 };
958 port@3 {
959 reg = <3>;
960 kpss_in3: endpoint {
961 slave-mode;
962 remote-endpoint = <&etm3_out>;
963 };
964 };
965 port@8 {
966 reg = <0>;
967 kpss_out: endpoint {
968 remote-endpoint = <&funnel1_in5>;
969 };
970 };
971 };
972 };
973
974 etm@fc33c000 {
975 compatible = "arm,coresight-etm4x", "arm,primecell";
976 reg = <0xfc33c000 0x1000>;
977
978 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
979 clock-names = "apb_pclk", "atclk";
980
981 cpu = <&CPU0>;
982
983 port {
984 etm0_out: endpoint {
985 remote-endpoint = <&kpss_in0>;
986 };
987 };
988 };
989
990 etm@fc33d000 {
991 compatible = "arm,coresight-etm4x", "arm,primecell";
992 reg = <0xfc33d000 0x1000>;
993
994 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
995 clock-names = "apb_pclk", "atclk";
996
997 cpu = <&CPU1>;
998
999 port {
1000 etm1_out: endpoint {
1001 remote-endpoint = <&kpss_in1>;
1002 };
1003 };
1004 };
1005
1006 etm@fc33e000 {
1007 compatible = "arm,coresight-etm4x", "arm,primecell";
1008 reg = <0xfc33e000 0x1000>;
1009
1010 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1011 clock-names = "apb_pclk", "atclk";
1012
1013 cpu = <&CPU2>;
1014
1015 port {
1016 etm2_out: endpoint {
1017 remote-endpoint = <&kpss_in2>;
1018 };
1019 };
1020 };
1021
1022 etm@fc33f000 {
1023 compatible = "arm,coresight-etm4x", "arm,primecell";
1024 reg = <0xfc33f000 0x1000>;
1025
1026 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1027 clock-names = "apb_pclk", "atclk";
1028
1029 cpu = <&CPU3>;
1030
1031 port {
1032 etm3_out: endpoint {
1033 remote-endpoint = <&kpss_in3>;
1034 };
1035 };
1036 };
1037 };
1038
1039 smd {
1040 compatible = "qcom,smd";
1041
1042 adsp {
1043 interrupts = <0 156 IRQ_TYPE_EDGE_RISING>;
1044
1045 qcom,ipc = <&apcs 8 8>;
1046 qcom,smd-edge = <1>;
1047 };
1048
1049 modem {
1050 interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
1051
1052 qcom,ipc = <&apcs 8 12>;
1053 qcom,smd-edge = <0>;
1054 };
1055
1056 rpm {
1057 interrupts = <0 168 1>;
1058 qcom,ipc = <&apcs 8 0>;
1059 qcom,smd-edge = <15>;
1060
1061 rpm_requests {
1062 compatible = "qcom,rpm-msm8974";
1063 qcom,smd-channels = "rpm_requests";
1064
1065 rpmcc: clock-controller {
1066 compatible = "qcom,rpmcc-msm8974", "qcom,rpmcc";
1067 #clock-cells = <1>;
1068 };
1069
1070 pm8841-regulators {
1071 compatible = "qcom,rpm-pm8841-regulators";
1072
1073 pm8841_s1: s1 {};
1074 pm8841_s2: s2 {};
1075 pm8841_s3: s3 {};
1076 pm8841_s4: s4 {};
1077 pm8841_s5: s5 {};
1078 pm8841_s6: s6 {};
1079 pm8841_s7: s7 {};
1080 pm8841_s8: s8 {};
1081 };
1082
1083 pm8941-regulators {
1084 compatible = "qcom,rpm-pm8941-regulators";
1085
1086 pm8941_s1: s1 {};
1087 pm8941_s2: s2 {};
1088 pm8941_s3: s3 {};
1089
1090 pm8941_l1: l1 {};
1091 pm8941_l2: l2 {};
1092 pm8941_l3: l3 {};
1093 pm8941_l4: l4 {};
1094 pm8941_l5: l5 {};
1095 pm8941_l6: l6 {};
1096 pm8941_l7: l7 {};
1097 pm8941_l8: l8 {};
1098 pm8941_l9: l9 {};
1099 pm8941_l10: l10 {};
1100 pm8941_l11: l11 {};
1101 pm8941_l12: l12 {};
1102 pm8941_l13: l13 {};
1103 pm8941_l14: l14 {};
1104 pm8941_l15: l15 {};
1105 pm8941_l16: l16 {};
1106 pm8941_l17: l17 {};
1107 pm8941_l18: l18 {};
1108 pm8941_l19: l19 {};
1109 pm8941_l20: l20 {};
1110 pm8941_l21: l21 {};
1111 pm8941_l22: l22 {};
1112 pm8941_l23: l23 {};
1113 pm8941_l24: l24 {};
1114
1115 pm8941_lvs1: lvs1 {};
1116 pm8941_lvs2: lvs2 {};
1117 pm8941_lvs3: lvs3 {};
1118 };
1119 };
1120 };
1121 };
1122
1123 vreg_boost: vreg-boost {
1124 compatible = "regulator-fixed";
1125
1126 regulator-name = "vreg-boost";
1127 regulator-min-microvolt = <3150000>;
1128 regulator-max-microvolt = <3150000>;
1129
1130 regulator-always-on;
1131 regulator-boot-on;
1132
1133 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
1134 enable-active-high;
1135
1136 pinctrl-names = "default";
1137 pinctrl-0 = <&boost_bypass_n_pin>;
1138 };
1139 vreg_vph_pwr: vreg-vph-pwr {
1140 compatible = "regulator-fixed";
1141 regulator-name = "vph-pwr";
1142
1143 regulator-min-microvolt = <3600000>;
1144 regulator-max-microvolt = <3600000>;
1145
1146 regulator-always-on;
1147 };
1148};
1/dts-v1/;
2
3#include <dt-bindings/interrupt-controller/arm-gic.h>
4#include <dt-bindings/clock/qcom,gcc-msm8974.h>
5#include <dt-bindings/gpio/gpio.h>
6#include "skeleton.dtsi"
7
8/ {
9 model = "Qualcomm MSM8974";
10 compatible = "qcom,msm8974";
11 interrupt-parent = <&intc>;
12
13 reserved-memory {
14 #address-cells = <1>;
15 #size-cells = <1>;
16 ranges;
17
18 mpss@08000000 {
19 reg = <0x08000000 0x5100000>;
20 no-map;
21 };
22
23 mba@00d100000 {
24 reg = <0x0d100000 0x100000>;
25 no-map;
26 };
27
28 reserved@0d200000 {
29 reg = <0x0d200000 0xa00000>;
30 no-map;
31 };
32
33 adsp@0dc00000 {
34 reg = <0x0dc00000 0x1900000>;
35 no-map;
36 };
37
38 venus@0f500000 {
39 reg = <0x0f500000 0x500000>;
40 no-map;
41 };
42
43 smem_region: smem@fa00000 {
44 reg = <0xfa00000 0x200000>;
45 no-map;
46 };
47
48 tz@0fc00000 {
49 reg = <0x0fc00000 0x160000>;
50 no-map;
51 };
52
53 rfsa@0fd60000 {
54 reg = <0x0fd60000 0x20000>;
55 no-map;
56 };
57
58 rmtfs@0fd80000 {
59 reg = <0x0fd80000 0x180000>;
60 no-map;
61 };
62
63 unused@0ff00000 {
64 reg = <0x0ff00000 0x10100000>;
65 no-map;
66 };
67 };
68
69 cpus {
70 #address-cells = <1>;
71 #size-cells = <0>;
72 interrupts = <1 9 0xf04>;
73
74 cpu@0 {
75 compatible = "qcom,krait";
76 enable-method = "qcom,kpss-acc-v2";
77 device_type = "cpu";
78 reg = <0>;
79 next-level-cache = <&L2>;
80 qcom,acc = <&acc0>;
81 qcom,saw = <&saw0>;
82 cpu-idle-states = <&CPU_SPC>;
83 };
84
85 cpu@1 {
86 compatible = "qcom,krait";
87 enable-method = "qcom,kpss-acc-v2";
88 device_type = "cpu";
89 reg = <1>;
90 next-level-cache = <&L2>;
91 qcom,acc = <&acc1>;
92 qcom,saw = <&saw1>;
93 cpu-idle-states = <&CPU_SPC>;
94 };
95
96 cpu@2 {
97 compatible = "qcom,krait";
98 enable-method = "qcom,kpss-acc-v2";
99 device_type = "cpu";
100 reg = <2>;
101 next-level-cache = <&L2>;
102 qcom,acc = <&acc2>;
103 qcom,saw = <&saw2>;
104 cpu-idle-states = <&CPU_SPC>;
105 };
106
107 cpu@3 {
108 compatible = "qcom,krait";
109 enable-method = "qcom,kpss-acc-v2";
110 device_type = "cpu";
111 reg = <3>;
112 next-level-cache = <&L2>;
113 qcom,acc = <&acc3>;
114 qcom,saw = <&saw3>;
115 cpu-idle-states = <&CPU_SPC>;
116 };
117
118 L2: l2-cache {
119 compatible = "cache";
120 cache-level = <2>;
121 qcom,saw = <&saw_l2>;
122 };
123
124 idle-states {
125 CPU_SPC: spc {
126 compatible = "qcom,idle-state-spc",
127 "arm,idle-state";
128 entry-latency-us = <150>;
129 exit-latency-us = <200>;
130 min-residency-us = <2000>;
131 };
132 };
133 };
134
135 thermal-zones {
136 cpu-thermal0 {
137 polling-delay-passive = <250>;
138 polling-delay = <1000>;
139
140 thermal-sensors = <&tsens 5>;
141
142 trips {
143 cpu_alert0: trip0 {
144 temperature = <75000>;
145 hysteresis = <2000>;
146 type = "passive";
147 };
148 cpu_crit0: trip1 {
149 temperature = <110000>;
150 hysteresis = <2000>;
151 type = "critical";
152 };
153 };
154 };
155
156 cpu-thermal1 {
157 polling-delay-passive = <250>;
158 polling-delay = <1000>;
159
160 thermal-sensors = <&tsens 6>;
161
162 trips {
163 cpu_alert1: trip0 {
164 temperature = <75000>;
165 hysteresis = <2000>;
166 type = "passive";
167 };
168 cpu_crit1: trip1 {
169 temperature = <110000>;
170 hysteresis = <2000>;
171 type = "critical";
172 };
173 };
174 };
175
176 cpu-thermal2 {
177 polling-delay-passive = <250>;
178 polling-delay = <1000>;
179
180 thermal-sensors = <&tsens 7>;
181
182 trips {
183 cpu_alert2: trip0 {
184 temperature = <75000>;
185 hysteresis = <2000>;
186 type = "passive";
187 };
188 cpu_crit2: trip1 {
189 temperature = <110000>;
190 hysteresis = <2000>;
191 type = "critical";
192 };
193 };
194 };
195
196 cpu-thermal3 {
197 polling-delay-passive = <250>;
198 polling-delay = <1000>;
199
200 thermal-sensors = <&tsens 8>;
201
202 trips {
203 cpu_alert3: trip0 {
204 temperature = <75000>;
205 hysteresis = <2000>;
206 type = "passive";
207 };
208 cpu_crit3: trip1 {
209 temperature = <110000>;
210 hysteresis = <2000>;
211 type = "critical";
212 };
213 };
214 };
215 };
216
217 cpu-pmu {
218 compatible = "qcom,krait-pmu";
219 interrupts = <1 7 0xf04>;
220 };
221
222 clocks {
223 xo_board: xo_board {
224 compatible = "fixed-clock";
225 #clock-cells = <0>;
226 clock-frequency = <19200000>;
227 };
228
229 sleep_clk: sleep_clk {
230 compatible = "fixed-clock";
231 #clock-cells = <0>;
232 clock-frequency = <32768>;
233 };
234 };
235
236 timer {
237 compatible = "arm,armv7-timer";
238 interrupts = <1 2 0xf08>,
239 <1 3 0xf08>,
240 <1 4 0xf08>,
241 <1 1 0xf08>;
242 clock-frequency = <19200000>;
243 };
244
245 smem {
246 compatible = "qcom,smem";
247
248 memory-region = <&smem_region>;
249 qcom,rpm-msg-ram = <&rpm_msg_ram>;
250
251 hwlocks = <&tcsr_mutex 3>;
252 };
253
254 smp2p-modem {
255 compatible = "qcom,smp2p";
256 qcom,smem = <435>, <428>;
257
258 interrupt-parent = <&intc>;
259 interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
260
261 qcom,ipc = <&apcs 8 14>;
262
263 qcom,local-pid = <0>;
264 qcom,remote-pid = <1>;
265
266 modem_smp2p_out: master-kernel {
267 qcom,entry-name = "master-kernel";
268 #qcom,smem-state-cells = <1>;
269 };
270
271 modem_smp2p_in: slave-kernel {
272 qcom,entry-name = "slave-kernel";
273
274 interrupt-controller;
275 #interrupt-cells = <2>;
276 };
277 };
278
279 smp2p-wcnss {
280 compatible = "qcom,smp2p";
281 qcom,smem = <451>, <431>;
282
283 interrupt-parent = <&intc>;
284 interrupts = <0 143 IRQ_TYPE_EDGE_RISING>;
285
286 qcom,ipc = <&apcs 8 18>;
287
288 qcom,local-pid = <0>;
289 qcom,remote-pid = <4>;
290
291 wcnss_smp2p_out: master-kernel {
292 qcom,entry-name = "master-kernel";
293
294 #qcom,smem-state-cells = <1>;
295 };
296
297 wcnss_smp2p_in: slave-kernel {
298 qcom,entry-name = "slave-kernel";
299
300 interrupt-controller;
301 #interrupt-cells = <2>;
302 };
303 };
304
305 smsm {
306 compatible = "qcom,smsm";
307
308 #address-cells = <1>;
309 #size-cells = <0>;
310
311 qcom,ipc-1 = <&apcs 8 13>;
312 qcom,ipc-2 = <&apcs 8 9>;
313 qcom,ipc-3 = <&apcs 8 19>;
314
315 apps_smsm: apps@0 {
316 reg = <0>;
317
318 #qcom,smem-state-cells = <1>;
319 };
320
321 modem_smsm: modem@1 {
322 reg = <1>;
323 interrupts = <0 26 IRQ_TYPE_EDGE_RISING>;
324
325 interrupt-controller;
326 #interrupt-cells = <2>;
327 };
328
329 adsp_smsm: adsp@2 {
330 reg = <2>;
331 interrupts = <0 157 IRQ_TYPE_EDGE_RISING>;
332
333 interrupt-controller;
334 #interrupt-cells = <2>;
335 };
336
337 wcnss_smsm: wcnss@7 {
338 reg = <7>;
339 interrupts = <0 144 IRQ_TYPE_EDGE_RISING>;
340
341 interrupt-controller;
342 #interrupt-cells = <2>;
343 };
344 };
345
346 firmware {
347 scm {
348 compatible = "qcom,scm";
349 clocks = <&gcc GCC_CE1_CLK>, <&gcc GCC_CE1_AXI_CLK>, <&gcc GCC_CE1_AHB_CLK>;
350 clock-names = "core", "bus", "iface";
351 };
352 };
353
354 soc: soc {
355 #address-cells = <1>;
356 #size-cells = <1>;
357 ranges;
358 compatible = "simple-bus";
359
360 intc: interrupt-controller@f9000000 {
361 compatible = "qcom,msm-qgic2";
362 interrupt-controller;
363 #interrupt-cells = <3>;
364 reg = <0xf9000000 0x1000>,
365 <0xf9002000 0x1000>;
366 };
367
368 apcs: syscon@f9011000 {
369 compatible = "syscon";
370 reg = <0xf9011000 0x1000>;
371 };
372
373 qfprom: qfprom@fc4bc000 {
374 #address-cells = <1>;
375 #size-cells = <1>;
376 compatible = "qcom,qfprom";
377 reg = <0xfc4bc000 0x1000>;
378 tsens_calib: calib@d0 {
379 reg = <0xd0 0x18>;
380 };
381 tsens_backup: backup@440 {
382 reg = <0x440 0x10>;
383 };
384 };
385
386 tsens: thermal-sensor@fc4a8000 {
387 compatible = "qcom,msm8974-tsens";
388 reg = <0xfc4a8000 0x2000>;
389 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
390 nvmem-cell-names = "calib", "calib_backup";
391 #thermal-sensor-cells = <1>;
392 };
393
394 timer@f9020000 {
395 #address-cells = <1>;
396 #size-cells = <1>;
397 ranges;
398 compatible = "arm,armv7-timer-mem";
399 reg = <0xf9020000 0x1000>;
400 clock-frequency = <19200000>;
401
402 frame@f9021000 {
403 frame-number = <0>;
404 interrupts = <0 8 0x4>,
405 <0 7 0x4>;
406 reg = <0xf9021000 0x1000>,
407 <0xf9022000 0x1000>;
408 };
409
410 frame@f9023000 {
411 frame-number = <1>;
412 interrupts = <0 9 0x4>;
413 reg = <0xf9023000 0x1000>;
414 status = "disabled";
415 };
416
417 frame@f9024000 {
418 frame-number = <2>;
419 interrupts = <0 10 0x4>;
420 reg = <0xf9024000 0x1000>;
421 status = "disabled";
422 };
423
424 frame@f9025000 {
425 frame-number = <3>;
426 interrupts = <0 11 0x4>;
427 reg = <0xf9025000 0x1000>;
428 status = "disabled";
429 };
430
431 frame@f9026000 {
432 frame-number = <4>;
433 interrupts = <0 12 0x4>;
434 reg = <0xf9026000 0x1000>;
435 status = "disabled";
436 };
437
438 frame@f9027000 {
439 frame-number = <5>;
440 interrupts = <0 13 0x4>;
441 reg = <0xf9027000 0x1000>;
442 status = "disabled";
443 };
444
445 frame@f9028000 {
446 frame-number = <6>;
447 interrupts = <0 14 0x4>;
448 reg = <0xf9028000 0x1000>;
449 status = "disabled";
450 };
451 };
452
453 saw0: power-controller@f9089000 {
454 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
455 reg = <0xf9089000 0x1000>, <0xf9009000 0x1000>;
456 };
457
458 saw1: power-controller@f9099000 {
459 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
460 reg = <0xf9099000 0x1000>, <0xf9009000 0x1000>;
461 };
462
463 saw2: power-controller@f90a9000 {
464 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
465 reg = <0xf90a9000 0x1000>, <0xf9009000 0x1000>;
466 };
467
468 saw3: power-controller@f90b9000 {
469 compatible = "qcom,msm8974-saw2-v2.1-cpu", "qcom,saw2";
470 reg = <0xf90b9000 0x1000>, <0xf9009000 0x1000>;
471 };
472
473 saw_l2: power-controller@f9012000 {
474 compatible = "qcom,saw2";
475 reg = <0xf9012000 0x1000>;
476 regulator;
477 };
478
479 acc0: clock-controller@f9088000 {
480 compatible = "qcom,kpss-acc-v2";
481 reg = <0xf9088000 0x1000>, <0xf9008000 0x1000>;
482 };
483
484 acc1: clock-controller@f9098000 {
485 compatible = "qcom,kpss-acc-v2";
486 reg = <0xf9098000 0x1000>, <0xf9008000 0x1000>;
487 };
488
489 acc2: clock-controller@f90a8000 {
490 compatible = "qcom,kpss-acc-v2";
491 reg = <0xf90a8000 0x1000>, <0xf9008000 0x1000>;
492 };
493
494 acc3: clock-controller@f90b8000 {
495 compatible = "qcom,kpss-acc-v2";
496 reg = <0xf90b8000 0x1000>, <0xf9008000 0x1000>;
497 };
498
499 restart@fc4ab000 {
500 compatible = "qcom,pshold";
501 reg = <0xfc4ab000 0x4>;
502 };
503
504 gcc: clock-controller@fc400000 {
505 compatible = "qcom,gcc-msm8974";
506 #clock-cells = <1>;
507 #reset-cells = <1>;
508 #power-domain-cells = <1>;
509 reg = <0xfc400000 0x4000>;
510 };
511
512 tcsr_mutex_block: syscon@fd484000 {
513 compatible = "syscon";
514 reg = <0xfd484000 0x2000>;
515 };
516
517 mmcc: clock-controller@fd8c0000 {
518 compatible = "qcom,mmcc-msm8974";
519 #clock-cells = <1>;
520 #reset-cells = <1>;
521 #power-domain-cells = <1>;
522 reg = <0xfd8c0000 0x6000>;
523 };
524
525 tcsr_mutex: tcsr-mutex {
526 compatible = "qcom,tcsr-mutex";
527 syscon = <&tcsr_mutex_block 0 0x80>;
528
529 #hwlock-cells = <1>;
530 };
531
532 rpm_msg_ram: memory@fc428000 {
533 compatible = "qcom,rpm-msg-ram";
534 reg = <0xfc428000 0x4000>;
535 };
536
537 blsp1_uart1: serial@f991d000 {
538 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
539 reg = <0xf991d000 0x1000>;
540 interrupts = <0 107 0x0>;
541 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
542 clock-names = "core", "iface";
543 status = "disabled";
544 };
545
546 blsp1_uart2: serial@f991e000 {
547 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
548 reg = <0xf991e000 0x1000>;
549 interrupts = <0 108 0x0>;
550 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
551 clock-names = "core", "iface";
552 status = "disabled";
553 };
554
555 sdhci@f9824900 {
556 compatible = "qcom,sdhci-msm-v4";
557 reg = <0xf9824900 0x11c>, <0xf9824000 0x800>;
558 reg-names = "hc_mem", "core_mem";
559 interrupts = <0 123 0>, <0 138 0>;
560 interrupt-names = "hc_irq", "pwr_irq";
561 clocks = <&gcc GCC_SDCC1_APPS_CLK>,
562 <&gcc GCC_SDCC1_AHB_CLK>,
563 <&xo_board>;
564 clock-names = "core", "iface", "xo";
565 status = "disabled";
566 };
567
568 sdhci@f98a4900 {
569 compatible = "qcom,sdhci-msm-v4";
570 reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>;
571 reg-names = "hc_mem", "core_mem";
572 interrupts = <0 125 0>, <0 221 0>;
573 interrupt-names = "hc_irq", "pwr_irq";
574 clocks = <&gcc GCC_SDCC2_APPS_CLK>,
575 <&gcc GCC_SDCC2_AHB_CLK>,
576 <&xo_board>;
577 clock-names = "core", "iface", "xo";
578 status = "disabled";
579 };
580
581 rng@f9bff000 {
582 compatible = "qcom,prng";
583 reg = <0xf9bff000 0x200>;
584 clocks = <&gcc GCC_PRNG_AHB_CLK>;
585 clock-names = "core";
586 };
587
588 msmgpio: pinctrl@fd510000 {
589 compatible = "qcom,msm8974-pinctrl";
590 reg = <0xfd510000 0x4000>;
591 gpio-controller;
592 #gpio-cells = <2>;
593 interrupt-controller;
594 #interrupt-cells = <2>;
595 interrupts = <0 208 0>;
596 };
597
598 i2c@f9924000 {
599 status = "disabled";
600 compatible = "qcom,i2c-qup-v2.1.1";
601 reg = <0xf9924000 0x1000>;
602 interrupts = <0 96 IRQ_TYPE_NONE>;
603 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
604 clock-names = "core", "iface";
605 #address-cells = <1>;
606 #size-cells = <0>;
607 };
608
609 blsp_i2c8: i2c@f9964000 {
610 status = "disabled";
611 compatible = "qcom,i2c-qup-v2.1.1";
612 reg = <0xf9964000 0x1000>;
613 interrupts = <0 102 IRQ_TYPE_NONE>;
614 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
615 clock-names = "core", "iface";
616 #address-cells = <1>;
617 #size-cells = <0>;
618 };
619
620 blsp_i2c11: i2c@f9967000 {
621 status = "disabled";
622 compatible = "qcom,i2c-qup-v2.1.1";
623 reg = <0xf9967000 0x1000>;
624 interrupts = <0 105 IRQ_TYPE_NONE>;
625 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
626 clock-names = "core", "iface";
627 #address-cells = <1>;
628 #size-cells = <0>;
629 dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
630 dma-names = "tx", "rx";
631 };
632
633 spmi_bus: spmi@fc4cf000 {
634 compatible = "qcom,spmi-pmic-arb";
635 reg-names = "core", "intr", "cnfg";
636 reg = <0xfc4cf000 0x1000>,
637 <0xfc4cb000 0x1000>,
638 <0xfc4ca000 0x1000>;
639 interrupt-names = "periph_irq";
640 interrupts = <0 190 0>;
641 qcom,ee = <0>;
642 qcom,channel = <0>;
643 #address-cells = <2>;
644 #size-cells = <0>;
645 interrupt-controller;
646 #interrupt-cells = <4>;
647 };
648
649 blsp2_dma: dma-controller@f9944000 {
650 compatible = "qcom,bam-v1.4.0";
651 reg = <0xf9944000 0x19000>;
652 interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
653 clocks = <&gcc GCC_BLSP2_AHB_CLK>;
654 clock-names = "bam_clk";
655 #dma-cells = <1>;
656 qcom,ee = <0>;
657 };
658 };
659
660 smd {
661 compatible = "qcom,smd";
662
663 modem {
664 interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
665
666 qcom,ipc = <&apcs 8 12>;
667 qcom,smd-edge = <0>;
668 };
669
670 rpm {
671 interrupts = <0 168 1>;
672 qcom,ipc = <&apcs 8 0>;
673 qcom,smd-edge = <15>;
674
675 rpm_requests {
676 compatible = "qcom,rpm-msm8974";
677 qcom,smd-channels = "rpm_requests";
678
679 pm8841-regulators {
680 compatible = "qcom,rpm-pm8841-regulators";
681
682 pm8841_s1: s1 {};
683 pm8841_s2: s2 {};
684 pm8841_s3: s3 {};
685 pm8841_s4: s4 {};
686 pm8841_s5: s5 {};
687 pm8841_s6: s6 {};
688 pm8841_s7: s7 {};
689 pm8841_s8: s8 {};
690 };
691
692 pm8941-regulators {
693 compatible = "qcom,rpm-pm8941-regulators";
694
695 pm8941_s1: s1 {};
696 pm8941_s2: s2 {};
697 pm8941_s3: s3 {};
698 pm8941_5v: s4 {};
699
700 pm8941_l1: l1 {};
701 pm8941_l2: l2 {};
702 pm8941_l3: l3 {};
703 pm8941_l4: l4 {};
704 pm8941_l5: l5 {};
705 pm8941_l6: l6 {};
706 pm8941_l7: l7 {};
707 pm8941_l8: l8 {};
708 pm8941_l9: l9 {};
709 pm8941_l10: l10 {};
710 pm8941_l11: l11 {};
711 pm8941_l12: l12 {};
712 pm8941_l13: l13 {};
713 pm8941_l14: l14 {};
714 pm8941_l15: l15 {};
715 pm8941_l16: l16 {};
716 pm8941_l17: l17 {};
717 pm8941_l18: l18 {};
718 pm8941_l19: l19 {};
719 pm8941_l20: l20 {};
720 pm8941_l21: l21 {};
721 pm8941_l22: l22 {};
722 pm8941_l23: l23 {};
723 pm8941_l24: l24 {};
724
725 pm8941_lvs1: lvs1 {};
726 pm8941_lvs2: lvs2 {};
727 pm8941_lvs3: lvs3 {};
728
729 pm8941_5vs1: 5vs1 {};
730 pm8941_5vs2: 5vs2 {};
731 };
732 };
733 };
734 };
735
736 vreg_boost: vreg-boost {
737 compatible = "regulator-fixed";
738
739 regulator-name = "vreg-boost";
740 regulator-min-microvolt = <3150000>;
741 regulator-max-microvolt = <3150000>;
742
743 regulator-always-on;
744 regulator-boot-on;
745
746 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
747 enable-active-high;
748
749 pinctrl-names = "default";
750 pinctrl-0 = <&boost_bypass_n_pin>;
751 };
752 vreg_vph_pwr: vreg-vph-pwr {
753 compatible = "regulator-fixed";
754 regulator-name = "vph-pwr";
755
756 regulator-min-microvolt = <3600000>;
757 regulator-max-microvolt = <3600000>;
758
759 regulator-always-on;
760 };
761};