ipq806x: add missing core1 voltage tolerance
[openwrt/openwrt.git] / target / linux / ipq806x / files-4.14 / arch / arm / boot / dts / qcom-ipq8064.dtsi
1 /dts-v1/;
2
3 #include "skeleton.dtsi"
4 #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
5 #include <dt-bindings/mfd/qcom-rpm.h>
6 #include <dt-bindings/clock/qcom,rpmcc.h>
7 #include <dt-bindings/clock/qcom,lcc-ipq806x.h>
8 #include <dt-bindings/soc/qcom,gsbi.h>
9 #include <dt-bindings/reset/qcom,gcc-ipq806x.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/gpio/gpio.h>
12
13 / {
14 model = "Qualcomm IPQ8064";
15 compatible = "qcom,ipq8064";
16 interrupt-parent = <&intc>;
17
18 cpus {
19 #address-cells = <1>;
20 #size-cells = <0>;
21
22 cpu0: cpu@0 {
23 compatible = "qcom,krait";
24 enable-method = "qcom,kpss-acc-v1";
25 device_type = "cpu";
26 reg = <0>;
27 next-level-cache = <&L2>;
28 qcom,acc = <&acc0>;
29 qcom,saw = <&saw0>;
30 clocks = <&kraitcc 0>, <&kraitcc 4>;
31 clock-names = "cpu", "l2";
32 clock-latency = <100000>;
33 cpu-supply = <&smb208_s2a>;
34 voltage-tolerance = <5>;
35 cooling-min-state = <0>;
36 cooling-max-state = <10>;
37 #cooling-cells = <2>;
38 cpu-idle-states = <&CPU_SPC>;
39 };
40
41 cpu1: cpu@1 {
42 compatible = "qcom,krait";
43 enable-method = "qcom,kpss-acc-v1";
44 device_type = "cpu";
45 reg = <1>;
46 next-level-cache = <&L2>;
47 qcom,acc = <&acc1>;
48 qcom,saw = <&saw1>;
49 clocks = <&kraitcc 1>, <&kraitcc 4>;
50 clock-names = "cpu", "l2";
51 clock-latency = <100000>;
52 cpu-supply = <&smb208_s2b>;
53 voltage-tolerance = <5>;
54 cooling-min-state = <0>;
55 cooling-max-state = <10>;
56 #cooling-cells = <2>;
57 cpu-idle-states = <&CPU_SPC>;
58 };
59
60 L2: l2-cache {
61 compatible = "cache";
62 cache-level = <2>;
63 qcom,saw = <&saw_l2>;
64 };
65
66 qcom,l2 {
67 qcom,l2-rates = <384000000 1000000000 1200000000>;
68 };
69
70 idle-states {
71 CPU_SPC: spc {
72 compatible = "qcom,idle-state-spc",
73 "arm,idle-state";
74 entry-latency-us = <400>;
75 exit-latency-us = <900>;
76 min-residency-us = <3000>;
77 };
78 };
79 };
80
81 thermal-zones {
82 tsens_tz_sensor0 {
83 polling-delay-passive = <0>;
84 polling-delay = <0>;
85 thermal-sensors = <&tsens 0>;
86
87 trips {
88 cpu-critical-hi {
89 temperature = <125000>;
90 hysteresis = <2000>;
91 type = "critical_high";
92 };
93
94 cpu-config-hi {
95 temperature = <105000>;
96 hysteresis = <2000>;
97 type = "configurable_hi";
98 };
99
100 cpu-config-lo {
101 temperature = <95000>;
102 hysteresis = <2000>;
103 type = "configurable_lo";
104 };
105
106 cpu-critical-low {
107 temperature = <0>;
108 hysteresis = <2000>;
109 type = "critical_low";
110 };
111 };
112 };
113
114 tsens_tz_sensor1 {
115 polling-delay-passive = <0>;
116 polling-delay = <0>;
117 thermal-sensors = <&tsens 1>;
118
119 trips {
120 cpu-critical-hi {
121 temperature = <125000>;
122 hysteresis = <2000>;
123 type = "critical_high";
124 };
125
126 cpu-config-hi {
127 temperature = <105000>;
128 hysteresis = <2000>;
129 type = "configurable_hi";
130 };
131
132 cpu-config-lo {
133 temperature = <95000>;
134 hysteresis = <2000>;
135 type = "configurable_lo";
136 };
137
138 cpu-critical-low {
139 temperature = <0>;
140 hysteresis = <2000>;
141 type = "critical_low";
142 };
143 };
144 };
145
146 tsens_tz_sensor2 {
147 polling-delay-passive = <0>;
148 polling-delay = <0>;
149 thermal-sensors = <&tsens 2>;
150
151 trips {
152 cpu-critical-hi {
153 temperature = <125000>;
154 hysteresis = <2000>;
155 type = "critical_high";
156 };
157
158 cpu-config-hi {
159 temperature = <105000>;
160 hysteresis = <2000>;
161 type = "configurable_hi";
162 };
163
164 cpu-config-lo {
165 temperature = <95000>;
166 hysteresis = <2000>;
167 type = "configurable_lo";
168 };
169
170 cpu-critical-low {
171 temperature = <0>;
172 hysteresis = <2000>;
173 type = "critical_low";
174 };
175 };
176 };
177
178 tsens_tz_sensor3 {
179 polling-delay-passive = <0>;
180 polling-delay = <0>;
181 thermal-sensors = <&tsens 3>;
182
183 trips {
184 cpu-critical-hi {
185 temperature = <125000>;
186 hysteresis = <2000>;
187 type = "critical_high";
188 };
189
190 cpu-config-hi {
191 temperature = <105000>;
192 hysteresis = <2000>;
193 type = "configurable_hi";
194 };
195
196 cpu-config-lo {
197 temperature = <95000>;
198 hysteresis = <2000>;
199 type = "configurable_lo";
200 };
201
202 cpu-critical-low {
203 temperature = <0>;
204 hysteresis = <2000>;
205 type = "critical_low";
206 };
207 };
208 };
209
210 tsens_tz_sensor4 {
211 polling-delay-passive = <0>;
212 polling-delay = <0>;
213 thermal-sensors = <&tsens 4>;
214
215 trips {
216 cpu-critical-hi {
217 temperature = <125000>;
218 hysteresis = <2000>;
219 type = "critical_high";
220 };
221
222 cpu-config-hi {
223 temperature = <105000>;
224 hysteresis = <2000>;
225 type = "configurable_hi";
226 };
227
228 cpu-config-lo {
229 temperature = <95000>;
230 hysteresis = <2000>;
231 type = "configurable_lo";
232 };
233
234 cpu-critical-low {
235 temperature = <0>;
236 hysteresis = <2000>;
237 type = "critical_low";
238 };
239 };
240 };
241
242 tsens_tz_sensor5 {
243 polling-delay-passive = <0>;
244 polling-delay = <0>;
245 thermal-sensors = <&tsens 5>;
246
247 trips {
248 cpu-critical-hi {
249 temperature = <125000>;
250 hysteresis = <2000>;
251 type = "critical_high";
252 };
253
254 cpu-config-hi {
255 temperature = <105000>;
256 hysteresis = <2000>;
257 type = "configurable_hi";
258 };
259
260 cpu-config-lo {
261 temperature = <95000>;
262 hysteresis = <2000>;
263 type = "configurable_lo";
264 };
265
266 cpu-critical-low {
267 temperature = <0>;
268 hysteresis = <2000>;
269 type = "critical_low";
270 };
271 };
272 };
273
274 tsens_tz_sensor6 {
275 polling-delay-passive = <0>;
276 polling-delay = <0>;
277 thermal-sensors = <&tsens 6>;
278
279 trips {
280 cpu-critical-hi {
281 temperature = <125000>;
282 hysteresis = <2000>;
283 type = "critical_high";
284 };
285
286 cpu-config-hi {
287 temperature = <105000>;
288 hysteresis = <2000>;
289 type = "configurable_hi";
290 };
291
292 cpu-config-lo {
293 temperature = <95000>;
294 hysteresis = <2000>;
295 type = "configurable_lo";
296 };
297
298 cpu-critical-low {
299 temperature = <0>;
300 hysteresis = <2000>;
301 type = "critical_low";
302 };
303 };
304 };
305
306 tsens_tz_sensor7 {
307 polling-delay-passive = <0>;
308 polling-delay = <0>;
309 thermal-sensors = <&tsens 7>;
310
311 trips {
312 cpu-critical-hi {
313 temperature = <125000>;
314 hysteresis = <2000>;
315 type = "critical_high";
316 };
317
318 cpu-config-hi {
319 temperature = <105000>;
320 hysteresis = <2000>;
321 type = "configurable_hi";
322 };
323
324 cpu-config-lo {
325 temperature = <95000>;
326 hysteresis = <2000>;
327 type = "configurable_lo";
328 };
329
330 cpu-critical-low {
331 temperature = <0>;
332 hysteresis = <2000>;
333 type = "critical_low";
334 };
335 };
336 };
337
338 tsens_tz_sensor8 {
339 polling-delay-passive = <0>;
340 polling-delay = <0>;
341 thermal-sensors = <&tsens 8>;
342
343 trips {
344 cpu-critical-hi {
345 temperature = <125000>;
346 hysteresis = <2000>;
347 type = "critical_high";
348 };
349
350 cpu-config-hi {
351 temperature = <105000>;
352 hysteresis = <2000>;
353 type = "configurable_hi";
354 };
355
356 cpu-config-lo {
357 temperature = <95000>;
358 hysteresis = <2000>;
359 type = "configurable_lo";
360 };
361
362 cpu-critical-low {
363 temperature = <0>;
364 hysteresis = <2000>;
365 type = "critical_low";
366 };
367 };
368 };
369
370 tsens_tz_sensor9 {
371 polling-delay-passive = <0>;
372 polling-delay = <0>;
373 thermal-sensors = <&tsens 9>;
374
375 trips {
376 cpu-critical-hi {
377 temperature = <125000>;
378 hysteresis = <2000>;
379 type = "critical_high";
380 };
381
382 cpu-config-hi {
383 temperature = <105000>;
384 hysteresis = <2000>;
385 type = "configurable_hi";
386 };
387
388 cpu-config-lo {
389 temperature = <95000>;
390 hysteresis = <2000>;
391 type = "configurable_lo";
392 };
393
394 cpu-critical-low {
395 temperature = <0>;
396 hysteresis = <2000>;
397 type = "critical_low";
398 };
399 };
400 };
401
402 tsens_tz_sensor10 {
403 polling-delay-passive = <0>;
404 polling-delay = <0>;
405 thermal-sensors = <&tsens 10>;
406
407 trips {
408 cpu-critical-hi {
409 temperature = <125000>;
410 hysteresis = <2000>;
411 type = "critical_high";
412 };
413
414 cpu-config-hi {
415 temperature = <105000>;
416 hysteresis = <2000>;
417 type = "configurable_hi";
418 };
419
420 cpu-config-lo {
421 temperature = <95000>;
422 hysteresis = <2000>;
423 type = "configurable_lo";
424 };
425
426 cpu-critical-low {
427 temperature = <0>;
428 hysteresis = <2000>;
429 type = "critical_low";
430 };
431 };
432 };
433 };
434
435 cpu-pmu {
436 compatible = "qcom,krait-pmu";
437 interrupts = <1 10 0x304>;
438 };
439
440 reserved-memory {
441 #address-cells = <1>;
442 #size-cells = <1>;
443 ranges;
444
445 nss@40000000 {
446 reg = <0x40000000 0x1000000>;
447 no-map;
448 };
449
450 smem: smem@41000000 {
451 reg = <0x41000000 0x200000>;
452 no-map;
453 };
454 };
455
456 clocks {
457 cxo_board {
458 compatible = "fixed-clock";
459 #clock-cells = <0>;
460 clock-frequency = <25000000>;
461 };
462
463 pxo_board {
464 compatible = "fixed-clock";
465 #clock-cells = <0>;
466 clock-frequency = <25000000>;
467 };
468
469 sleep_clk: sleep_clk {
470 compatible = "fixed-clock";
471 clock-frequency = <32768>;
472 #clock-cells = <0>;
473 };
474 };
475
476 firmware {
477 scm {
478 compatible = "qcom,scm-ipq806x";
479 };
480 };
481
482 kraitcc: clock-controller {
483 compatible = "qcom,krait-cc-v1";
484 #clock-cells = <1>;
485 };
486
487 qcom,pvs {
488 qcom,pvs-format-a;
489 qcom,speed0-pvs0-bin-v0 =
490 < 1400000000 1250000 >,
491 < 1200000000 1200000 >,
492 < 1000000000 1150000 >,
493 < 800000000 1100000 >,
494 < 600000000 1050000 >,
495 < 384000000 1000000 >;
496
497 qcom,speed0-pvs1-bin-v0 =
498 < 1400000000 1175000 >,
499 < 1200000000 1125000 >,
500 < 1000000000 1075000 >,
501 < 800000000 1025000 >,
502 < 600000000 975000 >,
503 < 384000000 925000 >;
504
505 qcom,speed0-pvs2-bin-v0 =
506 < 1400000000 1125000 >,
507 < 1200000000 1075000 >,
508 < 1000000000 1025000 >,
509 < 800000000 995000 >,
510 < 600000000 925000 >,
511 < 384000000 875000 >;
512
513 qcom,speed0-pvs3-bin-v0 =
514 < 1400000000 1050000 >,
515 < 1200000000 1000000 >,
516 < 1000000000 950000 >,
517 < 800000000 900000 >,
518 < 600000000 850000 >,
519 < 384000000 800000 >;
520 };
521
522 soc: soc {
523 #address-cells = <1>;
524 #size-cells = <1>;
525 ranges;
526 compatible = "simple-bus";
527
528 lpass@28100000 {
529 compatible = "qcom,lpass-cpu";
530 status = "disabled";
531 clocks = <&lcc AHBIX_CLK>,
532 <&lcc MI2S_OSR_CLK>,
533 <&lcc MI2S_BIT_CLK>;
534 clock-names = "ahbix-clk",
535 "mi2s-osr-clk",
536 "mi2s-bit-clk";
537 interrupts = <0 85 1>;
538 interrupt-names = "lpass-irq-lpaif";
539 reg = <0x28100000 0x10000>;
540 reg-names = "lpass-lpaif";
541 };
542
543 qfprom: qfprom@700000 {
544 compatible = "qcom,qfprom", "syscon";
545 reg = <0x700000 0x1000>;
546 #address-cells = <1>;
547 #size-cells = <1>;
548 status = "okay";
549 tsens_calib: calib@400 {
550 reg = <0x400 0x10>;
551 };
552 tsens_backup: backup@410 {
553 reg = <0x410 0x10>;
554 };
555 };
556
557 rpm@108000 {
558 compatible = "qcom,rpm-ipq8064";
559 reg = <0x108000 0x1000>;
560 qcom,ipc = <&l2cc 0x8 2>;
561
562 interrupts = <0 19 0>,
563 <0 21 0>,
564 <0 22 0>;
565 interrupt-names = "ack",
566 "err",
567 "wakeup";
568
569 clocks = <&gcc RPM_MSG_RAM_H_CLK>;
570 clock-names = "ram";
571
572 #address-cells = <1>;
573 #size-cells = <0>;
574
575 rpmcc: clock-controller {
576 compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc";
577 #clock-cells = <1>;
578 };
579
580 regulators {
581 compatible = "qcom,rpm-smb208-regulators";
582
583 smb208_s1a: s1a {
584 regulator-min-microvolt = <1050000>;
585 regulator-max-microvolt = <1150000>;
586
587 qcom,switch-mode-frequency = <1200000>;
588
589 };
590
591 smb208_s1b: s1b {
592 regulator-min-microvolt = <1050000>;
593 regulator-max-microvolt = <1150000>;
594
595 qcom,switch-mode-frequency = <1200000>;
596 };
597
598 smb208_s2a: s2a {
599 regulator-min-microvolt = < 800000>;
600 regulator-max-microvolt = <1250000>;
601
602 qcom,switch-mode-frequency = <1200000>;
603 };
604
605 smb208_s2b: s2b {
606 regulator-min-microvolt = < 800000>;
607 regulator-max-microvolt = <1250000>;
608
609 qcom,switch-mode-frequency = <1200000>;
610 };
611 };
612 };
613
614 rng@1a500000 {
615 compatible = "qcom,prng";
616 reg = <0x1a500000 0x200>;
617 clocks = <&gcc PRNG_CLK>;
618 clock-names = "core";
619 };
620
621 qcom_pinmux: pinmux@800000 {
622 compatible = "qcom,ipq8064-pinctrl";
623 reg = <0x800000 0x4000>;
624
625 gpio-controller;
626 #gpio-cells = <2>;
627 interrupt-controller;
628 #interrupt-cells = <2>;
629 interrupts = <0 16 0x4>;
630
631 pcie0_pins: pcie0_pinmux {
632 mux {
633 pins = "gpio3";
634 function = "pcie1_rst";
635 drive-strength = <2>;
636 bias-disable;
637 };
638 };
639
640 pcie1_pins: pcie1_pinmux {
641 mux {
642 pins = "gpio48";
643 function = "pcie2_rst";
644 drive-strength = <2>;
645 bias-disable;
646 };
647 };
648
649 pcie2_pins: pcie2_pinmux {
650 mux {
651 pins = "gpio63";
652 function = "pcie3_rst";
653 drive-strength = <2>;
654 bias-disable;
655 output-low;
656 };
657 };
658 };
659
660 intc: interrupt-controller@2000000 {
661 compatible = "qcom,msm-qgic2";
662 interrupt-controller;
663 #interrupt-cells = <3>;
664 reg = <0x02000000 0x1000>,
665 <0x02002000 0x1000>;
666 };
667
668 timer@200a000 {
669 compatible = "qcom,kpss-timer", "qcom,msm-timer";
670 interrupts = <1 1 0x301>,
671 <1 2 0x301>,
672 <1 3 0x301>,
673 <1 4 0x301>,
674 <1 5 0x301>;
675 reg = <0x0200a000 0x100>;
676 clock-frequency = <25000000>,
677 <32768>;
678 clocks = <&sleep_clk>;
679 clock-names = "sleep";
680 cpu-offset = <0x80000>;
681 };
682
683 acc0: clock-controller@2088000 {
684 compatible = "qcom,kpss-acc-v1";
685 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
686 clock-output-names = "acpu0_aux";
687 };
688
689 acc1: clock-controller@2098000 {
690 compatible = "qcom,kpss-acc-v1";
691 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
692 clock-output-names = "acpu1_aux";
693 };
694
695 l2cc: clock-controller@2011000 {
696 compatible = "qcom,kpss-gcc", "syscon";
697 reg = <0x2011000 0x1000>;
698 clock-output-names = "acpu_l2_aux";
699 };
700
701 saw0: regulator@2089000 {
702 compatible = "qcom,saw2", "syscon";
703 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
704 regulator;
705 };
706
707 saw1: regulator@2099000 {
708 compatible = "qcom,saw2", "syscon";
709 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
710 regulator;
711 };
712
713 saw_l2: regulator@02012000 {
714 compatible = "qcom,saw2", "syscon";
715 reg = <0x02012000 0x1000>;
716 regulator;
717 };
718
719 sic_non_secure: sic-non-secure@12100000 {
720 compatible = "syscon";
721 reg = <0x12100000 0x10000>;
722 };
723
724 gsbi2: gsbi@12480000 {
725 compatible = "qcom,gsbi-v1.0.0";
726 cell-index = <2>;
727 reg = <0x12480000 0x100>;
728 clocks = <&gcc GSBI2_H_CLK>;
729 clock-names = "iface";
730 #address-cells = <1>;
731 #size-cells = <1>;
732 ranges;
733 status = "disabled";
734
735 syscon-tcsr = <&tcsr>;
736
737 uart2: serial@12490000 {
738 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
739 reg = <0x12490000 0x1000>,
740 <0x12480000 0x1000>;
741 interrupts = <0 195 0x0>;
742 clocks = <&gcc GSBI2_UART_CLK>, <&gcc GSBI2_H_CLK>;
743 clock-names = "core", "iface";
744 status = "disabled";
745 };
746
747 i2c@124a0000 {
748 compatible = "qcom,i2c-qup-v1.1.1";
749 reg = <0x124a0000 0x1000>;
750 interrupts = <0 196 0>;
751
752 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
753 clock-names = "core", "iface";
754 status = "disabled";
755
756 #address-cells = <1>;
757 #size-cells = <0>;
758 };
759
760 };
761
762 gsbi4: gsbi@16300000 {
763 compatible = "qcom,gsbi-v1.0.0";
764 cell-index = <4>;
765 reg = <0x16300000 0x100>;
766 clocks = <&gcc GSBI4_H_CLK>;
767 clock-names = "iface";
768 #address-cells = <1>;
769 #size-cells = <1>;
770 ranges;
771 status = "disabled";
772
773 syscon-tcsr = <&tcsr>;
774
775 gsbi4_serial: serial@16340000 {
776 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
777 reg = <0x16340000 0x1000>,
778 <0x16300000 0x1000>;
779 interrupts = <0 152 0x0>;
780 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
781 clock-names = "core", "iface";
782 status = "disabled";
783 };
784
785 i2c@16380000 {
786 compatible = "qcom,i2c-qup-v1.1.1";
787 reg = <0x16380000 0x1000>;
788 interrupts = <0 153 0>;
789
790 clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
791 clock-names = "core", "iface";
792 status = "disabled";
793
794 #address-cells = <1>;
795 #size-cells = <0>;
796 };
797 };
798
799 gsbi5: gsbi@1a200000 {
800 compatible = "qcom,gsbi-v1.0.0";
801 cell-index = <5>;
802 reg = <0x1a200000 0x100>;
803 clocks = <&gcc GSBI5_H_CLK>;
804 clock-names = "iface";
805 #address-cells = <1>;
806 #size-cells = <1>;
807 ranges;
808 status = "disabled";
809
810 syscon-tcsr = <&tcsr>;
811
812 uart5: serial@1a240000 {
813 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
814 reg = <0x1a240000 0x1000>,
815 <0x1a200000 0x1000>;
816 interrupts = <0 154 0x0>;
817 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
818 clock-names = "core", "iface";
819 status = "disabled";
820 };
821
822 i2c@1a280000 {
823 compatible = "qcom,i2c-qup-v1.1.1";
824 reg = <0x1a280000 0x1000>;
825 interrupts = <0 155 0>;
826
827 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
828 clock-names = "core", "iface";
829 status = "disabled";
830
831 #address-cells = <1>;
832 #size-cells = <0>;
833 };
834
835 spi@1a280000 {
836 compatible = "qcom,spi-qup-v1.1.1";
837 reg = <0x1a280000 0x1000>;
838 interrupts = <0 155 0>;
839
840 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
841 clock-names = "core", "iface";
842 status = "disabled";
843
844 #address-cells = <1>;
845 #size-cells = <0>;
846 };
847 };
848
849 sata_phy: sata-phy@1b400000 {
850 compatible = "qcom,ipq806x-sata-phy";
851 reg = <0x1b400000 0x200>;
852
853 clocks = <&gcc SATA_PHY_CFG_CLK>;
854 clock-names = "cfg";
855
856 #phy-cells = <0>;
857 status = "disabled";
858 };
859
860 sata@29000000 {
861 compatible = "qcom,ipq806x-ahci", "generic-ahci";
862 reg = <0x29000000 0x180>;
863
864 ports-implemented = <0x1>;
865
866 interrupts = <0 209 0x0>;
867
868 clocks = <&gcc SFAB_SATA_S_H_CLK>,
869 <&gcc SATA_H_CLK>,
870 <&gcc SATA_A_CLK>,
871 <&gcc SATA_RXOOB_CLK>,
872 <&gcc SATA_PMALIVE_CLK>;
873 clock-names = "slave_face", "iface", "core",
874 "rxoob", "pmalive";
875
876 assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
877 assigned-clock-rates = <100000000>, <100000000>;
878
879 phys = <&sata_phy>;
880 phy-names = "sata-phy";
881 status = "disabled";
882 };
883
884 qcom,ssbi@500000 {
885 compatible = "qcom,ssbi";
886 reg = <0x00500000 0x1000>;
887 qcom,controller-type = "pmic-arbiter";
888 };
889
890 gcc: clock-controller@900000 {
891 compatible = "qcom,gcc-ipq8064";
892 reg = <0x00900000 0x4000>;
893 #clock-cells = <1>;
894 #reset-cells = <1>;
895 #power-domain-cells = <1>;
896 };
897
898 tsens: thermal-sensor@900000 {
899 compatible = "qcom,ipq8064-tsens";
900 reg = <0x900000 0x3680>;
901 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
902 nvmem-cell-names = "calib", "calib_backup";
903 interrupts = <0 178 0>;
904 #thermal-sensor-cells = <1>;
905 };
906
907 tcsr: syscon@1a400000 {
908 compatible = "qcom,tcsr-ipq8064", "syscon";
909 reg = <0x1a400000 0x100>;
910 };
911
912 lcc: clock-controller@28000000 {
913 compatible = "qcom,lcc-ipq8064";
914 reg = <0x28000000 0x1000>;
915 #clock-cells = <1>;
916 #reset-cells = <1>;
917 };
918
919 sfpb_mutex_block: syscon@1200600 {
920 compatible = "syscon";
921 reg = <0x01200600 0x100>;
922 };
923
924 hs_phy_1: phy@100f8800 {
925 compatible = "qcom,dwc3-hs-usb-phy";
926 reg = <0x100f8800 0x30>;
927 clocks = <&gcc USB30_1_UTMI_CLK>;
928 clock-names = "ref";
929 #phy-cells = <0>;
930
931 status = "disabled";
932 };
933
934 ss_phy_1: phy@100f8830 {
935 compatible = "qcom,dwc3-ss-usb-phy";
936 reg = <0x100f8830 0x30>;
937 clocks = <&gcc USB30_1_MASTER_CLK>;
938 clock-names = "ref";
939 #phy-cells = <0>;
940
941 status = "disabled";
942 };
943
944 hs_phy_0: phy@110f8800 {
945 compatible = "qcom,dwc3-hs-usb-phy";
946 reg = <0x110f8800 0x30>;
947 clocks = <&gcc USB30_0_UTMI_CLK>;
948 clock-names = "ref";
949 #phy-cells = <0>;
950
951 status = "disabled";
952 };
953
954 ss_phy_0: phy@110f8830 {
955 compatible = "qcom,dwc3-ss-usb-phy";
956 reg = <0x110f8830 0x30>;
957 clocks = <&gcc USB30_0_MASTER_CLK>;
958 clock-names = "ref";
959 #phy-cells = <0>;
960
961 status = "disabled";
962 };
963
964 usb3_0: usb30@0 {
965 compatible = "qcom,dwc3";
966 #address-cells = <1>;
967 #size-cells = <1>;
968 clocks = <&gcc USB30_0_MASTER_CLK>;
969 clock-names = "core";
970
971 ranges;
972
973 resets = <&gcc USB30_0_MASTER_RESET>;
974 reset-names = "usb30_0_mstr_rst";
975
976 status = "disabled";
977
978 dwc3_0: dwc3@11000000 {
979 compatible = "snps,dwc3";
980 reg = <0x11000000 0xcd00>;
981 interrupts = <0 110 0x4>;
982 phys = <&hs_phy_0>, <&ss_phy_0>;
983 phy-names = "usb2-phy", "usb3-phy";
984 dr_mode = "host";
985 snps,dis_u3_susphy_quirk;
986 };
987 };
988
989 usb3_1: usb30@1 {
990 compatible = "qcom,dwc3";
991 #address-cells = <1>;
992 #size-cells = <1>;
993 clocks = <&gcc USB30_1_MASTER_CLK>;
994 clock-names = "core";
995
996 ranges;
997
998 resets = <&gcc USB30_1_MASTER_RESET>;
999 reset-names = "usb30_1_mstr_rst";
1000
1001 status = "disabled";
1002
1003 dwc3_1: dwc3@10000000 {
1004 compatible = "snps,dwc3";
1005 reg = <0x10000000 0xcd00>;
1006 interrupts = <0 205 0x4>;
1007 phys = <&hs_phy_1>, <&ss_phy_1>;
1008 phy-names = "usb2-phy", "usb3-phy";
1009 dr_mode = "host";
1010 snps,dis_u3_susphy_quirk;
1011 };
1012 };
1013
1014 pcie0: pci@1b500000 {
1015 compatible = "qcom,pcie-ipq8064";
1016 reg = <0x1b500000 0x1000
1017 0x1b502000 0x80
1018 0x1b600000 0x100
1019 0x0ff00000 0x100000>;
1020 reg-names = "dbi", "elbi", "parf", "config";
1021 device_type = "pci";
1022 linux,pci-domain = <0>;
1023 bus-range = <0x00 0xff>;
1024 num-lanes = <1>;
1025 #address-cells = <3>;
1026 #size-cells = <2>;
1027
1028 ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
1029 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
1030
1031 interrupts = <GIC_SPI 35 IRQ_TYPE_NONE>;
1032 interrupt-names = "msi";
1033 #interrupt-cells = <1>;
1034 interrupt-map-mask = <0 0 0 0x7>;
1035 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1036 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1037 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1038 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1039
1040 clocks = <&gcc PCIE_A_CLK>,
1041 <&gcc PCIE_H_CLK>,
1042 <&gcc PCIE_PHY_CLK>,
1043 <&gcc PCIE_AUX_CLK>,
1044 <&gcc PCIE_ALT_REF_CLK>;
1045 clock-names = "core", "iface", "phy", "aux", "ref";
1046
1047 assigned-clocks = <&gcc PCIE_ALT_REF_CLK>;
1048 assigned-clock-rates = <100000000>;
1049
1050 resets = <&gcc PCIE_ACLK_RESET>,
1051 <&gcc PCIE_HCLK_RESET>,
1052 <&gcc PCIE_POR_RESET>,
1053 <&gcc PCIE_PCI_RESET>,
1054 <&gcc PCIE_PHY_RESET>,
1055 <&gcc PCIE_EXT_RESET>;
1056 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1057
1058 pinctrl-0 = <&pcie0_pins>;
1059 pinctrl-names = "default";
1060
1061 perst-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
1062
1063 phy-tx0-term-offset = <7>;
1064
1065 status = "disabled";
1066 };
1067
1068 pcie1: pci@1b700000 {
1069 compatible = "qcom,pcie-ipq8064";
1070 reg = <0x1b700000 0x1000
1071 0x1b702000 0x80
1072 0x1b800000 0x100
1073 0x31f00000 0x100000>;
1074 reg-names = "dbi", "elbi", "parf", "config";
1075 device_type = "pci";
1076 linux,pci-domain = <1>;
1077 bus-range = <0x00 0xff>;
1078 num-lanes = <1>;
1079 #address-cells = <3>;
1080 #size-cells = <2>;
1081
1082 ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
1083 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
1084
1085 interrupts = <GIC_SPI 57 IRQ_TYPE_NONE>;
1086 interrupt-names = "msi";
1087 #interrupt-cells = <1>;
1088 interrupt-map-mask = <0 0 0 0x7>;
1089 interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1090 <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1091 <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1092 <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1093
1094 clocks = <&gcc PCIE_1_A_CLK>,
1095 <&gcc PCIE_1_H_CLK>,
1096 <&gcc PCIE_1_PHY_CLK>,
1097 <&gcc PCIE_1_AUX_CLK>,
1098 <&gcc PCIE_1_ALT_REF_CLK>;
1099 clock-names = "core", "iface", "phy", "aux", "ref";
1100
1101 assigned-clocks = <&gcc PCIE_1_ALT_REF_CLK>;
1102 assigned-clock-rates = <100000000>;
1103
1104 resets = <&gcc PCIE_1_ACLK_RESET>,
1105 <&gcc PCIE_1_HCLK_RESET>,
1106 <&gcc PCIE_1_POR_RESET>,
1107 <&gcc PCIE_1_PCI_RESET>,
1108 <&gcc PCIE_1_PHY_RESET>,
1109 <&gcc PCIE_1_EXT_RESET>;
1110 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1111
1112 pinctrl-0 = <&pcie1_pins>;
1113 pinctrl-names = "default";
1114
1115 perst-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
1116
1117 phy-tx0-term-offset = <7>;
1118
1119 status = "disabled";
1120 };
1121
1122 pcie2: pci@1b900000 {
1123 compatible = "qcom,pcie-ipq8064";
1124 reg = <0x1b900000 0x1000
1125 0x1b902000 0x80
1126 0x1ba00000 0x100
1127 0x35f00000 0x100000>;
1128 reg-names = "dbi", "elbi", "parf", "config";
1129 device_type = "pci";
1130 linux,pci-domain = <2>;
1131 bus-range = <0x00 0xff>;
1132 num-lanes = <1>;
1133 #address-cells = <3>;
1134 #size-cells = <2>;
1135
1136 ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
1137 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
1138
1139 interrupts = <GIC_SPI 71 IRQ_TYPE_NONE>;
1140 interrupt-names = "msi";
1141 #interrupt-cells = <1>;
1142 interrupt-map-mask = <0 0 0 0x7>;
1143 interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1144 <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1145 <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1146 <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1147
1148 clocks = <&gcc PCIE_2_A_CLK>,
1149 <&gcc PCIE_2_H_CLK>,
1150 <&gcc PCIE_2_PHY_CLK>,
1151 <&gcc PCIE_2_AUX_CLK>,
1152 <&gcc PCIE_2_ALT_REF_CLK>;
1153 clock-names = "core", "iface", "phy", "aux", "ref";
1154
1155 assigned-clocks = <&gcc PCIE_2_ALT_REF_CLK>;
1156 assigned-clock-rates = <100000000>;
1157
1158 resets = <&gcc PCIE_2_ACLK_RESET>,
1159 <&gcc PCIE_2_HCLK_RESET>,
1160 <&gcc PCIE_2_POR_RESET>,
1161 <&gcc PCIE_2_PCI_RESET>,
1162 <&gcc PCIE_2_PHY_RESET>,
1163 <&gcc PCIE_2_EXT_RESET>;
1164 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1165
1166 pinctrl-0 = <&pcie2_pins>;
1167 pinctrl-names = "default";
1168
1169 perst-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
1170
1171 phy-tx0-term-offset = <7>;
1172
1173 status = "disabled";
1174 };
1175
1176 adm_dma: dma@18300000 {
1177 compatible = "qcom,adm";
1178 reg = <0x18300000 0x100000>;
1179 interrupts = <0 170 0>;
1180 #dma-cells = <1>;
1181
1182 clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>;
1183 clock-names = "core", "iface";
1184
1185 resets = <&gcc ADM0_RESET>,
1186 <&gcc ADM0_PBUS_RESET>,
1187 <&gcc ADM0_C0_RESET>,
1188 <&gcc ADM0_C1_RESET>,
1189 <&gcc ADM0_C2_RESET>;
1190 reset-names = "clk", "pbus", "c0", "c1", "c2";
1191 qcom,ee = <0>;
1192
1193 status = "disabled";
1194 };
1195
1196 nand@1ac00000 {
1197 compatible = "qcom,ipq806x-nand";
1198 reg = <0x1ac00000 0x800>;
1199
1200 clocks = <&gcc EBI2_CLK>,
1201 <&gcc EBI2_AON_CLK>;
1202 clock-names = "core", "aon";
1203
1204 dmas = <&adm_dma 3>;
1205 dma-names = "rxtx";
1206 qcom,cmd-crci = <15>;
1207 qcom,data-crci = <3>;
1208
1209 status = "disabled";
1210
1211 #address-cells = <1>;
1212 #size-cells = <0>;
1213 };
1214
1215 nss_common: syscon@03000000 {
1216 compatible = "syscon";
1217 reg = <0x03000000 0x0000FFFF>;
1218 };
1219
1220 qsgmii_csr: syscon@1bb00000 {
1221 compatible = "syscon";
1222 reg = <0x1bb00000 0x000001FF>;
1223 };
1224
1225 stmmac_axi_setup: stmmac-axi-config {
1226 snps,wr_osr_lmt = <7>;
1227 snps,rd_osr_lmt = <7>;
1228 snps,blen = <16 0 0 0 0 0 0>;
1229 };
1230
1231 gmac0: ethernet@37000000 {
1232 device_type = "network";
1233 compatible = "qcom,ipq806x-gmac";
1234 reg = <0x37000000 0x200000>;
1235 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
1236 interrupt-names = "macirq";
1237
1238 snps,axi-config = <&stmmac_axi_setup>;
1239 snps,pbl = <32>;
1240 snps,aal = <1>;
1241
1242 qcom,nss-common = <&nss_common>;
1243 qcom,qsgmii-csr = <&qsgmii_csr>;
1244
1245 clocks = <&gcc GMAC_CORE1_CLK>;
1246 clock-names = "stmmaceth";
1247
1248 resets = <&gcc GMAC_CORE1_RESET>;
1249 reset-names = "stmmaceth";
1250
1251 status = "disabled";
1252 };
1253
1254 gmac1: ethernet@37200000 {
1255 device_type = "network";
1256 compatible = "qcom,ipq806x-gmac";
1257 reg = <0x37200000 0x200000>;
1258 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
1259 interrupt-names = "macirq";
1260
1261 snps,axi-config = <&stmmac_axi_setup>;
1262 snps,pbl = <32>;
1263 snps,aal = <1>;
1264
1265 qcom,nss-common = <&nss_common>;
1266 qcom,qsgmii-csr = <&qsgmii_csr>;
1267
1268 clocks = <&gcc GMAC_CORE2_CLK>;
1269 clock-names = "stmmaceth";
1270
1271 resets = <&gcc GMAC_CORE2_RESET>;
1272 reset-names = "stmmaceth";
1273
1274 status = "disabled";
1275 };
1276
1277 gmac2: ethernet@37400000 {
1278 device_type = "network";
1279 compatible = "qcom,ipq806x-gmac";
1280 reg = <0x37400000 0x200000>;
1281 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
1282 interrupt-names = "macirq";
1283
1284 snps,axi-config = <&stmmac_axi_setup>;
1285 snps,pbl = <32>;
1286 snps,aal = <1>;
1287
1288 qcom,nss-common = <&nss_common>;
1289 qcom,qsgmii-csr = <&qsgmii_csr>;
1290
1291 clocks = <&gcc GMAC_CORE3_CLK>;
1292 clock-names = "stmmaceth";
1293
1294 resets = <&gcc GMAC_CORE3_RESET>;
1295 reset-names = "stmmaceth";
1296
1297 status = "disabled";
1298 };
1299
1300 gmac3: ethernet@37600000 {
1301 device_type = "network";
1302 compatible = "qcom,ipq806x-gmac";
1303 reg = <0x37600000 0x200000>;
1304 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1305 interrupt-names = "macirq";
1306
1307 snps,axi-config = <&stmmac_axi_setup>;
1308 snps,pbl = <32>;
1309 snps,aal = <1>;
1310
1311 qcom,nss-common = <&nss_common>;
1312 qcom,qsgmii-csr = <&qsgmii_csr>;
1313
1314 clocks = <&gcc GMAC_CORE4_CLK>;
1315 clock-names = "stmmaceth";
1316
1317 resets = <&gcc GMAC_CORE4_RESET>;
1318 reset-names = "stmmaceth";
1319
1320 status = "disabled";
1321 };
1322
1323 /* Temporary fixed regulator */
1324 vsdcc_fixed: vsdcc-regulator {
1325 compatible = "regulator-fixed";
1326 regulator-name = "SDCC Power";
1327 regulator-min-microvolt = <3300000>;
1328 regulator-max-microvolt = <3300000>;
1329 regulator-always-on;
1330 };
1331
1332 sdcc1bam:dma@12402000 {
1333 compatible = "qcom,bam-v1.3.0";
1334 reg = <0x12402000 0x8000>;
1335 interrupts = <0 98 0>;
1336 clocks = <&gcc SDC1_H_CLK>;
1337 clock-names = "bam_clk";
1338 #dma-cells = <1>;
1339 qcom,ee = <0>;
1340 };
1341
1342 sdcc3bam:dma@12182000 {
1343 compatible = "qcom,bam-v1.3.0";
1344 reg = <0x12182000 0x8000>;
1345 interrupts = <0 96 0>;
1346 clocks = <&gcc SDC3_H_CLK>;
1347 clock-names = "bam_clk";
1348 #dma-cells = <1>;
1349 qcom,ee = <0>;
1350 };
1351
1352 amba {
1353 compatible = "arm,amba-bus";
1354 #address-cells = <1>;
1355 #size-cells = <1>;
1356 ranges;
1357 sdcc1: sdcc@12400000 {
1358 status = "disabled";
1359 compatible = "arm,pl18x", "arm,primecell";
1360 arm,primecell-periphid = <0x00051180>;
1361 reg = <0x12400000 0x2000>;
1362 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
1363 interrupt-names = "cmd_irq";
1364 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
1365 clock-names = "mclk", "apb_pclk";
1366 bus-width = <8>;
1367 max-frequency = <96000000>;
1368 non-removable;
1369 cap-sd-highspeed;
1370 cap-mmc-highspeed;
1371 vmmc-supply = <&vsdcc_fixed>;
1372 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
1373 dma-names = "tx", "rx";
1374 };
1375
1376 sdcc3: sdcc@12180000 {
1377 compatible = "arm,pl18x", "arm,primecell";
1378 arm,primecell-periphid = <0x00051180>;
1379 status = "disabled";
1380 reg = <0x12180000 0x2000>;
1381 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
1382 interrupt-names = "cmd_irq";
1383 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
1384 clock-names = "mclk", "apb_pclk";
1385 bus-width = <8>;
1386 cap-sd-highspeed;
1387 cap-mmc-highspeed;
1388 max-frequency = <192000000>;
1389 #mmc-ddr-1_8v;
1390 sd-uhs-sdr104;
1391 sd-uhs-ddr50;
1392 vqmmc-supply = <&vsdcc_fixed>;
1393 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
1394 dma-names = "tx", "rx";
1395 };
1396 };
1397 };
1398
1399 sfpb_mutex: sfpb-mutex {
1400 compatible = "qcom,sfpb-mutex";
1401 syscon = <&sfpb_mutex_block 4 4>;
1402
1403 #hwlock-cells = <1>;
1404 };
1405
1406 smem {
1407 compatible = "qcom,smem";
1408 memory-region = <&smem>;
1409 hwlocks = <&sfpb_mutex 3>;
1410 };
1411 };