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>
14 model = "Qualcomm IPQ8064";
15 compatible = "qcom,ipq8064";
16 interrupt-parent = <&intc>;
23 compatible = "qcom,krait";
24 enable-method = "qcom,kpss-acc-v1";
27 next-level-cache = <&L2>;
28 qcom,acc = <&acpu0_aux>;
30 clocks = <&kraitcc 0>, <&kraitcc 4>;
31 clock-names = "cpu", "l2";
32 clock-latency = <100000>;
33 cpu-supply = <&smb208_s2a>;
34 operating-points-v2 = <&opp_table0>;
35 voltage-tolerance = <5>;
36 cooling-min-state = <0>;
37 cooling-max-state = <10>;
39 cpu-idle-states = <&CPU_SPC>;
43 compatible = "qcom,krait";
44 enable-method = "qcom,kpss-acc-v1";
47 next-level-cache = <&L2>;
48 qcom,acc = <&acpu1_aux>;
50 clocks = <&kraitcc 1>, <&kraitcc 4>;
51 clock-names = "cpu", "l2";
52 clock-latency = <100000>;
53 cpu-supply = <&smb208_s2b>;
54 operating-points-v2 = <&opp_table0>;
55 voltage-tolerance = <5>;
56 cooling-min-state = <0>;
57 cooling-max-state = <10>;
59 cpu-idle-states = <&CPU_SPC>;
69 qcom,l2-rates = <384000000 1000000000 1200000000>;
70 qcom,l2-cpufreq = <384000000 600000000 1200000000>;
71 qcom,l2-volt = <1100000 1100000 1150000>;
72 qcom,l2-supply = <&smb208_s1a>;
77 compatible = "qcom,idle-state-spc",
80 entry-latency-us = <400>;
81 exit-latency-us = <900>;
82 min-residency-us = <3000>;
87 opp_table0: opp_table0 {
88 compatible = "operating-points-v2-qcom-cpu";
89 nvmem-cells = <&speedbin_efuse>;
92 opp-hz = /bits/ 64 <384000000>;
93 opp-microvolt-speed0-pvs0-v0 = <1000000>;
94 opp-microvolt-speed0-pvs1-v0 = <925000>;
95 opp-microvolt-speed0-pvs2-v0 = <875000>;
96 opp-microvolt-speed0-pvs3-v0 = <800000>;
97 opp-supported-hw = <0x1>;
98 clock-latency-ns = <100000>;
102 opp-hz = /bits/ 64 <600000000>;
103 opp-microvolt-speed0-pvs0-v0 = <1050000>;
104 opp-microvolt-speed0-pvs1-v0 = <975000>;
105 opp-microvolt-speed0-pvs2-v0 = <925000>;
106 opp-microvolt-speed0-pvs3-v0 = <850000>;
107 opp-supported-hw = <0x1>;
108 clock-latency-ns = <100000>;
112 opp-hz = /bits/ 64 <800000000>;
113 opp-microvolt-speed0-pvs0-v0 = <1100000>;
114 opp-microvolt-speed0-pvs1-v0 = <1025000>;
115 opp-microvolt-speed0-pvs2-v0 = <995000>;
116 opp-microvolt-speed0-pvs3-v0 = <900000>;
117 opp-supported-hw = <0x1>;
118 clock-latency-ns = <100000>;
122 opp-hz = /bits/ 64 <1000000000>;
123 opp-microvolt-speed0-pvs0-v0 = <1150000>;
124 opp-microvolt-speed0-pvs1-v0 = <1075000>;
125 opp-microvolt-speed0-pvs2-v0 = <1025000>;
126 opp-microvolt-speed0-pvs3-v0 = <950000>;
127 opp-supported-hw = <0x1>;
128 clock-latency-ns = <100000>;
132 opp-hz = /bits/ 64 <1200000000>;
133 opp-microvolt-speed0-pvs0-v0 = <1200000>;
134 opp-microvolt-speed0-pvs1-v0 = <1125000>;
135 opp-microvolt-speed0-pvs2-v0 = <1075000>;
136 opp-microvolt-speed0-pvs3-v0 = <1000000>;
137 opp-supported-hw = <0x1>;
138 clock-latency-ns = <100000>;
142 opp-hz = /bits/ 64 <1400000000>;
143 opp-microvolt-speed0-pvs0-v0 = <1250000>;
144 opp-microvolt-speed0-pvs1-v0 = <1175000>;
145 opp-microvolt-speed0-pvs2-v0 = <1125000>;
146 opp-microvolt-speed0-pvs3-v0 = <1050000>;
147 opp-supported-hw = <0x1>;
148 clock-latency-ns = <100000>;
155 polling-delay-passive = <0>;
157 thermal-sensors = <&tsens 0>;
161 temperature = <125000>;
163 type = "critical_high";
167 temperature = <105000>;
169 type = "configurable_hi";
173 temperature = <95000>;
175 type = "configurable_lo";
181 type = "critical_low";
187 polling-delay-passive = <0>;
189 thermal-sensors = <&tsens 1>;
193 temperature = <125000>;
195 type = "critical_high";
199 temperature = <105000>;
201 type = "configurable_hi";
205 temperature = <95000>;
207 type = "configurable_lo";
213 type = "critical_low";
219 polling-delay-passive = <0>;
221 thermal-sensors = <&tsens 2>;
225 temperature = <125000>;
227 type = "critical_high";
231 temperature = <105000>;
233 type = "configurable_hi";
237 temperature = <95000>;
239 type = "configurable_lo";
245 type = "critical_low";
251 polling-delay-passive = <0>;
253 thermal-sensors = <&tsens 3>;
257 temperature = <125000>;
259 type = "critical_high";
263 temperature = <105000>;
265 type = "configurable_hi";
269 temperature = <95000>;
271 type = "configurable_lo";
277 type = "critical_low";
283 polling-delay-passive = <0>;
285 thermal-sensors = <&tsens 4>;
289 temperature = <125000>;
291 type = "critical_high";
295 temperature = <105000>;
297 type = "configurable_hi";
301 temperature = <95000>;
303 type = "configurable_lo";
309 type = "critical_low";
315 polling-delay-passive = <0>;
317 thermal-sensors = <&tsens 5>;
321 temperature = <125000>;
323 type = "critical_high";
327 temperature = <105000>;
329 type = "configurable_hi";
333 temperature = <95000>;
335 type = "configurable_lo";
341 type = "critical_low";
347 polling-delay-passive = <0>;
349 thermal-sensors = <&tsens 6>;
353 temperature = <125000>;
355 type = "critical_high";
359 temperature = <105000>;
361 type = "configurable_hi";
365 temperature = <95000>;
367 type = "configurable_lo";
373 type = "critical_low";
379 polling-delay-passive = <0>;
381 thermal-sensors = <&tsens 7>;
385 temperature = <125000>;
387 type = "critical_high";
391 temperature = <105000>;
393 type = "configurable_hi";
397 temperature = <95000>;
399 type = "configurable_lo";
405 type = "critical_low";
411 polling-delay-passive = <0>;
413 thermal-sensors = <&tsens 8>;
417 temperature = <125000>;
419 type = "critical_high";
423 temperature = <105000>;
425 type = "configurable_hi";
429 temperature = <95000>;
431 type = "configurable_lo";
437 type = "critical_low";
443 polling-delay-passive = <0>;
445 thermal-sensors = <&tsens 9>;
449 temperature = <125000>;
451 type = "critical_high";
455 temperature = <105000>;
457 type = "configurable_hi";
461 temperature = <95000>;
463 type = "configurable_lo";
469 type = "critical_low";
475 polling-delay-passive = <0>;
477 thermal-sensors = <&tsens 10>;
481 temperature = <125000>;
483 type = "critical_high";
487 temperature = <105000>;
489 type = "configurable_hi";
493 temperature = <95000>;
495 type = "configurable_lo";
501 type = "critical_low";
508 compatible = "qcom,krait-pmu";
509 interrupts = <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
510 IRQ_TYPE_LEVEL_HIGH)>;
514 #address-cells = <1>;
519 reg = <0x40000000 0x1000000>;
523 smem: smem@41000000 {
524 reg = <0x41000000 0x200000>;
531 compatible = "fixed-clock";
533 clock-frequency = <25000000>;
537 compatible = "fixed-clock";
539 clock-frequency = <25000000>;
542 sleep_clk: sleep_clk {
543 compatible = "fixed-clock";
544 clock-frequency = <32768>;
550 compatible = "qcom,fab-scaling";
551 clocks = <&rpmcc RPM_APPS_FABRIC_A_CLK>, <&rpmcc RPM_EBI1_A_CLK>;
552 clock-names = "apps-fab-clk", "ddr-fab-clk";
553 fab_freq_high = <533000000>;
554 fab_freq_nominal = <400000000>;
555 cpu_freq_threshold = <1000000000>;
560 compatible = "qcom,scm-ipq806x";
565 #address-cells = <1>;
568 compatible = "simple-bus";
571 compatible = "qcom,lpass-cpu";
573 clocks = <&lcc AHBIX_CLK>,
576 clock-names = "ahbix-clk",
579 interrupts = <GIC_SPI 85 IRQ_TYPE_EDGE_RISING>;
580 interrupt-names = "lpass-irq-lpaif";
581 reg = <0x28100000 0x10000>;
582 reg-names = "lpass-lpaif";
585 qfprom: qfprom@700000 {
586 compatible = "qcom,qfprom", "syscon";
587 reg = <0x700000 0x1000>;
588 #address-cells = <1>;
591 tsens_calib: calib@400 {
594 tsens_backup: backup@410 {
597 speedbin_efuse: speedbin@0c0 {
603 compatible = "qcom,rpm-ipq8064";
604 reg = <0x108000 0x1000>;
605 qcom,ipc = <&l2cc 0x8 2>;
607 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
608 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
609 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
610 interrupt-names = "ack",
614 clocks = <&gcc RPM_MSG_RAM_H_CLK>;
617 #address-cells = <1>;
620 rpmcc: clock-controller {
621 compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc";
626 compatible = "qcom,rpm-smb208-regulators";
629 regulator-min-microvolt = <1050000>;
630 regulator-max-microvolt = <1150000>;
632 qcom,switch-mode-frequency = <1200000>;
637 regulator-min-microvolt = <1050000>;
638 regulator-max-microvolt = <1150000>;
640 qcom,switch-mode-frequency = <1200000>;
644 regulator-min-microvolt = < 800000>;
645 regulator-max-microvolt = <1250000>;
647 qcom,switch-mode-frequency = <1200000>;
651 regulator-min-microvolt = < 800000>;
652 regulator-max-microvolt = <1250000>;
654 qcom,switch-mode-frequency = <1200000>;
660 compatible = "qcom,prng";
661 reg = <0x1a500000 0x200>;
662 clocks = <&gcc PRNG_CLK>;
663 clock-names = "core";
666 qcom_pinmux: pinmux@800000 {
667 compatible = "qcom,ipq8064-pinctrl";
668 reg = <0x800000 0x4000>;
672 interrupt-controller;
673 #interrupt-cells = <2>;
674 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
676 pcie0_pins: pcie0_pinmux {
679 function = "pcie1_rst";
680 drive-strength = <12>;
685 pcie1_pins: pcie1_pinmux {
688 function = "pcie2_rst";
689 drive-strength = <12>;
694 pcie2_pins: pcie2_pinmux {
697 function = "pcie3_rst";
698 drive-strength = <12>;
706 pins = "gpio18", "gpio19", "gpio21";
708 drive-strength = <10>;
713 leds_pins: leds_pins {
715 pins = "gpio7", "gpio8", "gpio9",
718 drive-strength = <2>;
724 buttons_pins: buttons_pins {
727 drive-strength = <2>;
733 intc: interrupt-controller@2000000 {
734 compatible = "qcom,msm-qgic2";
735 interrupt-controller;
736 #interrupt-cells = <3>;
737 reg = <0x02000000 0x1000>,
742 compatible = "qcom,kpss-timer",
743 "qcom,kpss-wdt-ipq8064", "qcom,msm-timer";
744 interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) |
745 IRQ_TYPE_EDGE_RISING)>,
746 <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) |
747 IRQ_TYPE_EDGE_RISING)>,
748 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) |
749 IRQ_TYPE_EDGE_RISING)>,
750 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) |
751 IRQ_TYPE_EDGE_RISING)>,
752 <GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) |
753 IRQ_TYPE_EDGE_RISING)>;
754 reg = <0x0200a000 0x100>;
755 clock-frequency = <25000000>,
757 clocks = <&sleep_clk>;
758 clock-names = "sleep";
759 cpu-offset = <0x80000>;
762 acpu0_aux: clock-controller@2088000 {
763 compatible = "qcom,kpss-acc-v1";
764 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
765 clock-output-names = "acpu0_aux";
768 acpu1_aux: clock-controller@2098000 {
769 compatible = "qcom,kpss-acc-v1";
770 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
771 clock-output-names = "acpu1_aux";
774 l2cc: clock-controller@2011000 {
775 compatible = "qcom,kpss-gcc", "syscon";
776 reg = <0x2011000 0x1000>;
777 clock-output-names = "acpu_l2_aux";
780 kraitcc: clock-controller {
781 compatible = "qcom,krait-cc-v1";
785 saw0: regulator@2089000 {
786 compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
787 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
791 saw1: regulator@2099000 {
792 compatible = "qcom,saw2", "qcom,apq8064-saw2-v1.1-cpu", "syscon";
793 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
797 saw_l2: regulator@02012000 {
798 compatible = "qcom,saw2", "syscon";
799 reg = <0x02012000 0x1000>;
803 sic_non_secure: sic-non-secure@12100000 {
804 compatible = "syscon";
805 reg = <0x12100000 0x10000>;
808 gsbi2: gsbi@12480000 {
809 compatible = "qcom,gsbi-v1.0.0";
811 reg = <0x12480000 0x100>;
812 clocks = <&gcc GSBI2_H_CLK>;
813 clock-names = "iface";
814 #address-cells = <1>;
819 syscon-tcsr = <&tcsr>;
821 gsbi2_serial: serial@12490000 {
822 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
823 reg = <0x12490000 0x1000>,
825 interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
826 clocks = <&gcc GSBI2_UART_CLK>, <&gcc GSBI2_H_CLK>;
827 clock-names = "core", "iface";
832 compatible = "qcom,i2c-qup-v1.1.1";
833 reg = <0x124a0000 0x1000>;
834 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
836 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
837 clock-names = "core", "iface";
840 #address-cells = <1>;
846 gsbi4: gsbi@16300000 {
847 compatible = "qcom,gsbi-v1.0.0";
849 reg = <0x16300000 0x100>;
850 clocks = <&gcc GSBI4_H_CLK>;
851 clock-names = "iface";
852 #address-cells = <1>;
857 syscon-tcsr = <&tcsr>;
859 gsbi4_serial: serial@16340000 {
860 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
861 reg = <0x16340000 0x1000>,
863 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
864 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
865 clock-names = "core", "iface";
870 compatible = "qcom,i2c-qup-v1.1.1";
871 reg = <0x16380000 0x1000>;
872 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
874 clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
875 clock-names = "core", "iface";
878 #address-cells = <1>;
883 gsbi5: gsbi@1a200000 {
884 compatible = "qcom,gsbi-v1.0.0";
886 reg = <0x1a200000 0x100>;
887 clocks = <&gcc GSBI5_H_CLK>;
888 clock-names = "iface";
889 #address-cells = <1>;
894 syscon-tcsr = <&tcsr>;
896 gsbi5_serial: serial@1a240000 {
897 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
898 reg = <0x1a240000 0x1000>,
900 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
901 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
902 clock-names = "core", "iface";
907 compatible = "qcom,i2c-qup-v1.1.1";
908 reg = <0x1a280000 0x1000>;
909 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
911 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
912 clock-names = "core", "iface";
915 #address-cells = <1>;
920 compatible = "qcom,spi-qup-v1.1.1";
921 reg = <0x1a280000 0x1000>;
922 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
924 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
925 clock-names = "core", "iface";
928 #address-cells = <1>;
933 gsbi7: gsbi@16600000 {
935 compatible = "qcom,gsbi-v1.0.0";
937 reg = <0x16600000 0x100>;
938 clocks = <&gcc GSBI7_H_CLK>;
939 clock-names = "iface";
940 #address-cells = <1>;
943 syscon-tcsr = <&tcsr>;
945 gsbi7_serial: serial@16640000 {
946 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
947 reg = <0x16640000 0x1000>,
949 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
950 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
951 clock-names = "core", "iface";
956 sata_phy: sata-phy@1b400000 {
957 compatible = "qcom,ipq806x-sata-phy";
958 reg = <0x1b400000 0x200>;
960 clocks = <&gcc SATA_PHY_CFG_CLK>;
967 sata: sata@29000000 {
968 compatible = "qcom,ipq806x-ahci", "generic-ahci";
969 reg = <0x29000000 0x180>;
971 ports-implemented = <0x1>;
973 interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
975 clocks = <&gcc SFAB_SATA_S_H_CLK>,
978 <&gcc SATA_RXOOB_CLK>,
979 <&gcc SATA_PMALIVE_CLK>;
980 clock-names = "slave_face", "iface", "core",
983 assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
984 assigned-clock-rates = <100000000>, <100000000>;
987 phy-names = "sata-phy";
992 compatible = "qcom,ssbi";
993 reg = <0x00500000 0x1000>;
994 qcom,controller-type = "pmic-arbiter";
997 gcc: clock-controller@900000 {
998 compatible = "qcom,gcc-ipq8064";
999 reg = <0x00900000 0x4000>;
1002 #power-domain-cells = <1>;
1005 tsens: thermal-sensor@900000 {
1006 compatible = "qcom,ipq8064-tsens";
1007 reg = <0x900000 0x3680>;
1008 nvmem-cells = <&tsens_calib>, <&tsens_backup>;
1009 nvmem-cell-names = "calib", "calib_backup";
1010 interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
1011 #thermal-sensor-cells = <1>;
1014 tcsr: syscon@1a400000 {
1015 compatible = "qcom,tcsr-ipq8064", "syscon";
1016 reg = <0x1a400000 0x100>;
1019 lcc: clock-controller@28000000 {
1020 compatible = "qcom,lcc-ipq8064";
1021 reg = <0x28000000 0x1000>;
1026 sfpb_mutex_block: syscon@1200600 {
1027 compatible = "syscon";
1028 reg = <0x01200600 0x100>;
1031 hs_phy_0: hs_phy_0 {
1032 compatible = "qcom,dwc3-hs-usb-phy";
1034 clocks = <&gcc USB30_0_UTMI_CLK>;
1035 clock-names = "ref";
1039 ss_phy_0: ss_phy_0 {
1040 compatible = "qcom,dwc3-ss-usb-phy";
1042 clocks = <&gcc USB30_0_MASTER_CLK>;
1043 clock-names = "ref";
1047 usb3_0: usb3@110f8800 {
1048 compatible = "qcom,dwc3", "syscon";
1049 #address-cells = <1>;
1051 reg = <0x110f8800 0x8000>;
1052 clocks = <&gcc USB30_0_MASTER_CLK>;
1053 clock-names = "core";
1057 resets = <&gcc USB30_0_MASTER_RESET>;
1058 reset-names = "master";
1060 status = "disabled";
1062 dwc3_0: dwc3@11000000 {
1063 compatible = "snps,dwc3";
1064 reg = <0x11000000 0xcd00>;
1065 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
1066 phys = <&hs_phy_0>, <&ss_phy_0>;
1067 phy-names = "usb2-phy", "usb3-phy";
1069 snps,dis_u3_susphy_quirk;
1073 hs_phy_1: hs_phy_1 {
1074 compatible = "qcom,dwc3-hs-usb-phy";
1076 clocks = <&gcc USB30_1_UTMI_CLK>;
1077 clock-names = "ref";
1081 ss_phy_1: ss_phy_1 {
1082 compatible = "qcom,dwc3-ss-usb-phy";
1084 clocks = <&gcc USB30_1_MASTER_CLK>;
1085 clock-names = "ref";
1089 usb3_1: usb3@100f8800 {
1090 compatible = "qcom,dwc3", "syscon";
1091 #address-cells = <1>;
1093 reg = <0x100f8800 0x8000>;
1094 clocks = <&gcc USB30_1_MASTER_CLK>;
1095 clock-names = "core";
1099 resets = <&gcc USB30_1_MASTER_RESET>;
1100 reset-names = "master";
1102 status = "disabled";
1104 dwc3_1: dwc3@10000000 {
1105 compatible = "snps,dwc3";
1106 reg = <0x10000000 0xcd00>;
1107 interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
1108 phys = <&hs_phy_1>, <&ss_phy_1>;
1109 phy-names = "usb2-phy", "usb3-phy";
1111 snps,dis_u3_susphy_quirk;
1115 pcie0: pci@1b500000 {
1116 compatible = "qcom,pcie-ipq8064";
1117 reg = <0x1b500000 0x1000
1120 0x0ff00000 0x100000>;
1121 reg-names = "dbi", "elbi", "parf", "config";
1122 device_type = "pci";
1123 linux,pci-domain = <0>;
1124 bus-range = <0x00 0xff>;
1126 #address-cells = <3>;
1129 ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
1130 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
1132 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
1133 interrupt-names = "msi";
1134 #interrupt-cells = <1>;
1135 interrupt-map-mask = <0 0 0 0x7>;
1136 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1137 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1138 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1139 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1141 clocks = <&gcc PCIE_A_CLK>,
1143 <&gcc PCIE_PHY_CLK>,
1144 <&gcc PCIE_AUX_CLK>,
1145 <&gcc PCIE_ALT_REF_CLK>;
1146 clock-names = "core", "iface", "phy", "aux", "ref";
1148 assigned-clocks = <&gcc PCIE_ALT_REF_CLK>;
1149 assigned-clock-rates = <100000000>;
1151 resets = <&gcc PCIE_ACLK_RESET>,
1152 <&gcc PCIE_HCLK_RESET>,
1153 <&gcc PCIE_POR_RESET>,
1154 <&gcc PCIE_PCI_RESET>,
1155 <&gcc PCIE_PHY_RESET>,
1156 <&gcc PCIE_EXT_RESET>;
1157 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1159 pinctrl-0 = <&pcie0_pins>;
1160 pinctrl-names = "default";
1162 perst-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
1164 phy-tx0-term-offset = <7>;
1166 status = "disabled";
1169 pcie1: pci@1b700000 {
1170 compatible = "qcom,pcie-ipq8064";
1171 reg = <0x1b700000 0x1000
1174 0x31f00000 0x100000>;
1175 reg-names = "dbi", "elbi", "parf", "config";
1176 device_type = "pci";
1177 linux,pci-domain = <1>;
1178 bus-range = <0x00 0xff>;
1180 #address-cells = <3>;
1183 ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
1184 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
1186 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
1187 interrupt-names = "msi";
1188 #interrupt-cells = <1>;
1189 interrupt-map-mask = <0 0 0 0x7>;
1190 interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1191 <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1192 <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1193 <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1195 clocks = <&gcc PCIE_1_A_CLK>,
1196 <&gcc PCIE_1_H_CLK>,
1197 <&gcc PCIE_1_PHY_CLK>,
1198 <&gcc PCIE_1_AUX_CLK>,
1199 <&gcc PCIE_1_ALT_REF_CLK>;
1200 clock-names = "core", "iface", "phy", "aux", "ref";
1202 assigned-clocks = <&gcc PCIE_1_ALT_REF_CLK>;
1203 assigned-clock-rates = <100000000>;
1205 resets = <&gcc PCIE_1_ACLK_RESET>,
1206 <&gcc PCIE_1_HCLK_RESET>,
1207 <&gcc PCIE_1_POR_RESET>,
1208 <&gcc PCIE_1_PCI_RESET>,
1209 <&gcc PCIE_1_PHY_RESET>,
1210 <&gcc PCIE_1_EXT_RESET>;
1211 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1213 pinctrl-0 = <&pcie1_pins>;
1214 pinctrl-names = "default";
1216 perst-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
1218 phy-tx0-term-offset = <7>;
1220 status = "disabled";
1223 pcie2: pci@1b900000 {
1224 compatible = "qcom,pcie-ipq8064";
1225 reg = <0x1b900000 0x1000
1228 0x35f00000 0x100000>;
1229 reg-names = "dbi", "elbi", "parf", "config";
1230 device_type = "pci";
1231 linux,pci-domain = <2>;
1232 bus-range = <0x00 0xff>;
1234 #address-cells = <3>;
1237 ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
1238 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
1240 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
1241 interrupt-names = "msi";
1242 #interrupt-cells = <1>;
1243 interrupt-map-mask = <0 0 0 0x7>;
1244 interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1245 <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1246 <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1247 <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1249 clocks = <&gcc PCIE_2_A_CLK>,
1250 <&gcc PCIE_2_H_CLK>,
1251 <&gcc PCIE_2_PHY_CLK>,
1252 <&gcc PCIE_2_AUX_CLK>,
1253 <&gcc PCIE_2_ALT_REF_CLK>;
1254 clock-names = "core", "iface", "phy", "aux", "ref";
1256 assigned-clocks = <&gcc PCIE_2_ALT_REF_CLK>;
1257 assigned-clock-rates = <100000000>;
1259 resets = <&gcc PCIE_2_ACLK_RESET>,
1260 <&gcc PCIE_2_HCLK_RESET>,
1261 <&gcc PCIE_2_POR_RESET>,
1262 <&gcc PCIE_2_PCI_RESET>,
1263 <&gcc PCIE_2_PHY_RESET>,
1264 <&gcc PCIE_2_EXT_RESET>;
1265 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
1267 pinctrl-0 = <&pcie2_pins>;
1268 pinctrl-names = "default";
1270 perst-gpios = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
1272 phy-tx0-term-offset = <7>;
1274 status = "disabled";
1277 adm_dma: dma@18300000 {
1278 compatible = "qcom,adm";
1279 reg = <0x18300000 0x100000>;
1280 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
1283 clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>;
1284 clock-names = "core", "iface";
1286 resets = <&gcc ADM0_RESET>,
1287 <&gcc ADM0_PBUS_RESET>,
1288 <&gcc ADM0_C0_RESET>,
1289 <&gcc ADM0_C1_RESET>,
1290 <&gcc ADM0_C2_RESET>;
1291 reset-names = "clk", "pbus", "c0", "c1", "c2";
1294 status = "disabled";
1297 nand: nand@1ac00000 {
1298 compatible = "qcom,ipq806x-nand";
1299 reg = <0x1ac00000 0x800>;
1301 clocks = <&gcc EBI2_CLK>,
1302 <&gcc EBI2_AON_CLK>;
1303 clock-names = "core", "aon";
1305 dmas = <&adm_dma 3>;
1307 qcom,cmd-crci = <15>;
1308 qcom,data-crci = <3>;
1310 status = "disabled";
1312 #address-cells = <1>;
1316 nss_common: syscon@03000000 {
1317 compatible = "syscon";
1318 reg = <0x03000000 0x0000FFFF>;
1321 qsgmii_csr: syscon@1bb00000 {
1322 compatible = "syscon";
1323 reg = <0x1bb00000 0x000001FF>;
1326 stmmac_axi_setup: stmmac-axi-config {
1327 snps,wr_osr_lmt = <7>;
1328 snps,rd_osr_lmt = <7>;
1329 snps,blen = <16 0 0 0 0 0 0>;
1332 gmac0: ethernet@37000000 {
1333 device_type = "network";
1334 compatible = "qcom,ipq806x-gmac";
1335 reg = <0x37000000 0x200000>;
1336 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
1337 interrupt-names = "macirq";
1339 snps,axi-config = <&stmmac_axi_setup>;
1343 qcom,nss-common = <&nss_common>;
1344 qcom,qsgmii-csr = <&qsgmii_csr>;
1346 clocks = <&gcc GMAC_CORE1_CLK>;
1347 clock-names = "stmmaceth";
1349 resets = <&gcc GMAC_CORE1_RESET>;
1350 reset-names = "stmmaceth";
1352 status = "disabled";
1355 gmac1: ethernet@37200000 {
1356 device_type = "network";
1357 compatible = "qcom,ipq806x-gmac";
1358 reg = <0x37200000 0x200000>;
1359 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
1360 interrupt-names = "macirq";
1362 snps,axi-config = <&stmmac_axi_setup>;
1366 qcom,nss-common = <&nss_common>;
1367 qcom,qsgmii-csr = <&qsgmii_csr>;
1369 clocks = <&gcc GMAC_CORE2_CLK>;
1370 clock-names = "stmmaceth";
1372 resets = <&gcc GMAC_CORE2_RESET>;
1373 reset-names = "stmmaceth";
1375 status = "disabled";
1378 gmac2: ethernet@37400000 {
1379 device_type = "network";
1380 compatible = "qcom,ipq806x-gmac";
1381 reg = <0x37400000 0x200000>;
1382 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
1383 interrupt-names = "macirq";
1385 snps,axi-config = <&stmmac_axi_setup>;
1389 qcom,nss-common = <&nss_common>;
1390 qcom,qsgmii-csr = <&qsgmii_csr>;
1392 clocks = <&gcc GMAC_CORE3_CLK>;
1393 clock-names = "stmmaceth";
1395 resets = <&gcc GMAC_CORE3_RESET>;
1396 reset-names = "stmmaceth";
1398 status = "disabled";
1401 gmac3: ethernet@37600000 {
1402 device_type = "network";
1403 compatible = "qcom,ipq806x-gmac";
1404 reg = <0x37600000 0x200000>;
1405 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
1406 interrupt-names = "macirq";
1408 snps,axi-config = <&stmmac_axi_setup>;
1412 qcom,nss-common = <&nss_common>;
1413 qcom,qsgmii-csr = <&qsgmii_csr>;
1415 clocks = <&gcc GMAC_CORE4_CLK>;
1416 clock-names = "stmmaceth";
1418 resets = <&gcc GMAC_CORE4_RESET>;
1419 reset-names = "stmmaceth";
1421 status = "disabled";
1424 /* Temporary fixed regulator */
1425 vsdcc_fixed: vsdcc-regulator {
1426 compatible = "regulator-fixed";
1427 regulator-name = "SDCC Power";
1428 regulator-min-microvolt = <3300000>;
1429 regulator-max-microvolt = <3300000>;
1430 regulator-always-on;
1433 sdcc1bam:dma@12402000 {
1434 compatible = "qcom,bam-v1.3.0";
1435 reg = <0x12402000 0x8000>;
1436 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1437 clocks = <&gcc SDC1_H_CLK>;
1438 clock-names = "bam_clk";
1443 sdcc3bam:dma@12182000 {
1444 compatible = "qcom,bam-v1.3.0";
1445 reg = <0x12182000 0x8000>;
1446 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1447 clocks = <&gcc SDC3_H_CLK>;
1448 clock-names = "bam_clk";
1454 compatible = "arm,amba-bus";
1455 #address-cells = <1>;
1458 sdcc1: sdcc@12400000 {
1459 status = "disabled";
1460 compatible = "arm,pl18x", "arm,primecell";
1461 arm,primecell-periphid = <0x00051180>;
1462 reg = <0x12400000 0x2000>;
1463 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
1464 interrupt-names = "cmd_irq";
1465 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
1466 clock-names = "mclk", "apb_pclk";
1468 max-frequency = <96000000>;
1472 vmmc-supply = <&vsdcc_fixed>;
1473 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
1474 dma-names = "tx", "rx";
1477 sdcc3: sdcc@12180000 {
1478 compatible = "arm,pl18x", "arm,primecell";
1479 arm,primecell-periphid = <0x00051180>;
1480 status = "disabled";
1481 reg = <0x12180000 0x2000>;
1482 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
1483 interrupt-names = "cmd_irq";
1484 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
1485 clock-names = "mclk", "apb_pclk";
1489 max-frequency = <192000000>;
1493 vqmmc-supply = <&vsdcc_fixed>;
1494 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
1495 dma-names = "tx", "rx";
1500 sfpb_mutex: sfpb-mutex {
1501 compatible = "qcom,sfpb-mutex";
1502 syscon = <&sfpb_mutex_block 4 4>;
1504 #hwlock-cells = <1>;
1508 compatible = "qcom,smem";
1509 memory-region = <&smem>;
1510 hwlocks = <&sfpb_mutex 3>;