1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2016, The Linux Foundation. All rights reserved. */
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
5 #include <dt-bindings/clock/qcom,gcc-msm8998.h>
6 #include <dt-bindings/clock/qcom,rpmcc.h>
7 #include <dt-bindings/power/qcom-rpmpd.h>
8 #include <dt-bindings/gpio/gpio.h>
11 interrupt-parent = <&intc>;
13 qcom,msm-id = <292 0x0>;
21 device_type = "memory";
22 /* We expect the bootloader to fill in the reg */
32 reg = <0x0 0x85800000 0x0 0x800000>;
36 smem_mem: smem-mem@86000000 {
37 reg = <0x0 0x86000000 0x0 0x200000>;
42 reg = <0x0 0x86200000 0x0 0x2d00000>;
47 compatible = "qcom,rmtfs-mem";
49 size = <0x0 0x200000>;
50 alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>;
60 compatible = "fixed-clock";
62 clock-frequency = <19200000>;
63 clock-output-names = "xo_board";
67 compatible = "fixed-clock";
69 clock-frequency = <32764>;
79 compatible = "arm,armv8";
81 enable-method = "psci";
82 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>;
83 next-level-cache = <&L2_0>;
85 compatible = "arm,arch-cache";
89 compatible = "arm,arch-cache";
92 compatible = "arm,arch-cache";
98 compatible = "arm,armv8";
100 enable-method = "psci";
101 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>;
102 next-level-cache = <&L2_0>;
104 compatible = "arm,arch-cache";
107 compatible = "arm,arch-cache";
113 compatible = "arm,armv8";
115 enable-method = "psci";
116 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>;
117 next-level-cache = <&L2_0>;
119 compatible = "arm,arch-cache";
122 compatible = "arm,arch-cache";
128 compatible = "arm,armv8";
130 enable-method = "psci";
131 cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>;
132 next-level-cache = <&L2_0>;
134 compatible = "arm,arch-cache";
137 compatible = "arm,arch-cache";
143 compatible = "arm,armv8";
145 enable-method = "psci";
146 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>;
147 next-level-cache = <&L2_1>;
149 compatible = "arm,arch-cache";
152 L1_I_100: l1-icache {
153 compatible = "arm,arch-cache";
155 L1_D_100: l1-dcache {
156 compatible = "arm,arch-cache";
162 compatible = "arm,armv8";
164 enable-method = "psci";
165 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>;
166 next-level-cache = <&L2_1>;
167 L1_I_101: l1-icache {
168 compatible = "arm,arch-cache";
170 L1_D_101: l1-dcache {
171 compatible = "arm,arch-cache";
177 compatible = "arm,armv8";
179 enable-method = "psci";
180 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>;
181 next-level-cache = <&L2_1>;
182 L1_I_102: l1-icache {
183 compatible = "arm,arch-cache";
185 L1_D_102: l1-dcache {
186 compatible = "arm,arch-cache";
192 compatible = "arm,armv8";
194 enable-method = "psci";
195 cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>;
196 next-level-cache = <&L2_1>;
197 L1_I_103: l1-icache {
198 compatible = "arm,arch-cache";
200 L1_D_103: l1-dcache {
201 compatible = "arm,arch-cache";
244 entry-method = "psci";
246 LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 {
247 compatible = "arm,idle-state";
248 idle-state-name = "little-retention";
249 arm,psci-suspend-param = <0x00000002>;
250 entry-latency-us = <81>;
251 exit-latency-us = <86>;
252 min-residency-us = <200>;
255 LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 {
256 compatible = "arm,idle-state";
257 idle-state-name = "little-power-collapse";
258 arm,psci-suspend-param = <0x40000003>;
259 entry-latency-us = <273>;
260 exit-latency-us = <612>;
261 min-residency-us = <1000>;
265 BIG_CPU_SLEEP_0: cpu-sleep-1-0 {
266 compatible = "arm,idle-state";
267 idle-state-name = "big-retention";
268 arm,psci-suspend-param = <0x00000002>;
269 entry-latency-us = <79>;
270 exit-latency-us = <82>;
271 min-residency-us = <200>;
274 BIG_CPU_SLEEP_1: cpu-sleep-1-1 {
275 compatible = "arm,idle-state";
276 idle-state-name = "big-power-collapse";
277 arm,psci-suspend-param = <0x40000003>;
278 entry-latency-us = <336>;
279 exit-latency-us = <525>;
280 min-residency-us = <1000>;
288 compatible = "qcom,scm-msm8998", "qcom,scm";
293 compatible = "qcom,tcsr-mutex";
294 syscon = <&tcsr_mutex_regs 0 0x1000>;
299 compatible = "arm,psci-1.0";
304 compatible = "qcom,glink-rpm";
306 interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
307 qcom,rpm-msg-ram = <&rpm_msg_ram>;
308 mboxes = <&apcs_glb 0>;
310 rpm_requests: rpm-requests {
311 compatible = "qcom,rpm-msm8998";
312 qcom,glink-channels = "rpm_requests";
314 rpmcc: clock-controller {
315 compatible = "qcom,rpmcc-msm8998", "qcom,rpmcc";
319 rpmpd: power-controller {
320 compatible = "qcom,msm8998-rpmpd";
321 #power-domain-cells = <1>;
322 operating-points-v2 = <&rpmpd_opp_table>;
324 rpmpd_opp_table: opp-table {
325 compatible = "operating-points-v2";
327 rpmpd_opp_ret: opp1 {
331 rpmpd_opp_ret_plus: opp2 {
335 rpmpd_opp_min_svs: opp3 {
339 rpmpd_opp_low_svs: opp4 {
343 rpmpd_opp_svs: opp5 {
347 rpmpd_opp_svs_plus: opp6 {
351 rpmpd_opp_nom: opp7 {
355 rpmpd_opp_nom_plus: opp8 {
359 rpmpd_opp_turbo: opp9 {
363 rpmpd_opp_turbo_plus: opp10 {
372 compatible = "qcom,smem";
373 memory-region = <&smem_mem>;
374 hwlocks = <&tcsr_mutex 3>;
378 compatible = "qcom,smp2p";
379 qcom,smem = <443>, <429>;
381 interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>;
383 mboxes = <&apcs_glb 10>;
385 qcom,local-pid = <0>;
386 qcom,remote-pid = <2>;
388 adsp_smp2p_out: master-kernel {
389 qcom,entry-name = "master-kernel";
390 #qcom,smem-state-cells = <1>;
393 adsp_smp2p_in: slave-kernel {
394 qcom,entry-name = "slave-kernel";
396 interrupt-controller;
397 #interrupt-cells = <2>;
402 compatible = "qcom,smp2p";
403 qcom,smem = <435>, <428>;
404 interrupts = <GIC_SPI 451 IRQ_TYPE_EDGE_RISING>;
405 mboxes = <&apcs_glb 14>;
406 qcom,local-pid = <0>;
407 qcom,remote-pid = <1>;
409 modem_smp2p_out: master-kernel {
410 qcom,entry-name = "master-kernel";
411 #qcom,smem-state-cells = <1>;
414 modem_smp2p_in: slave-kernel {
415 qcom,entry-name = "slave-kernel";
416 interrupt-controller;
417 #interrupt-cells = <2>;
422 compatible = "qcom,smp2p";
423 qcom,smem = <481>, <430>;
424 interrupts = <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>;
425 mboxes = <&apcs_glb 26>;
426 qcom,local-pid = <0>;
427 qcom,remote-pid = <3>;
429 slpi_smp2p_out: master-kernel {
430 qcom,entry-name = "master-kernel";
431 #qcom,smem-state-cells = <1>;
434 slpi_smp2p_in: slave-kernel {
435 qcom,entry-name = "slave-kernel";
436 interrupt-controller;
437 #interrupt-cells = <2>;
443 polling-delay-passive = <250>;
444 polling-delay = <1000>;
446 thermal-sensors = <&tsens0 1>;
449 cpu0_alert0: trip-point@0 {
450 temperature = <75000>;
455 cpu0_crit: cpu_crit {
456 temperature = <110000>;
464 polling-delay-passive = <250>;
465 polling-delay = <1000>;
467 thermal-sensors = <&tsens0 2>;
470 cpu1_alert0: trip-point@0 {
471 temperature = <75000>;
476 cpu1_crit: cpu_crit {
477 temperature = <110000>;
485 polling-delay-passive = <250>;
486 polling-delay = <1000>;
488 thermal-sensors = <&tsens0 3>;
491 cpu2_alert0: trip-point@0 {
492 temperature = <75000>;
497 cpu2_crit: cpu_crit {
498 temperature = <110000>;
506 polling-delay-passive = <250>;
507 polling-delay = <1000>;
509 thermal-sensors = <&tsens0 4>;
512 cpu3_alert0: trip-point@0 {
513 temperature = <75000>;
518 cpu3_crit: cpu_crit {
519 temperature = <110000>;
527 polling-delay-passive = <250>;
528 polling-delay = <1000>;
530 thermal-sensors = <&tsens0 7>;
533 cpu4_alert0: trip-point@0 {
534 temperature = <75000>;
539 cpu4_crit: cpu_crit {
540 temperature = <110000>;
548 polling-delay-passive = <250>;
549 polling-delay = <1000>;
551 thermal-sensors = <&tsens0 8>;
554 cpu5_alert0: trip-point@0 {
555 temperature = <75000>;
560 cpu5_crit: cpu_crit {
561 temperature = <110000>;
569 polling-delay-passive = <250>;
570 polling-delay = <1000>;
572 thermal-sensors = <&tsens0 9>;
575 cpu6_alert0: trip-point@0 {
576 temperature = <75000>;
581 cpu6_crit: cpu_crit {
582 temperature = <110000>;
590 polling-delay-passive = <250>;
591 polling-delay = <1000>;
593 thermal-sensors = <&tsens0 10>;
596 cpu7_alert0: trip-point@0 {
597 temperature = <75000>;
602 cpu7_crit: cpu_crit {
603 temperature = <110000>;
611 polling-delay-passive = <250>;
612 polling-delay = <1000>;
614 thermal-sensors = <&tsens0 12>;
617 gpu1_alert0: trip-point@0 {
618 temperature = <90000>;
626 polling-delay-passive = <250>;
627 polling-delay = <1000>;
629 thermal-sensors = <&tsens0 13>;
632 gpu2_alert0: trip-point@0 {
633 temperature = <90000>;
641 polling-delay-passive = <250>;
642 polling-delay = <1000>;
644 thermal-sensors = <&tsens0 5>;
647 cluster0_mhm_alert0: trip-point@0 {
648 temperature = <90000>;
656 polling-delay-passive = <250>;
657 polling-delay = <1000>;
659 thermal-sensors = <&tsens0 6>;
662 cluster1_mhm_alert0: trip-point@0 {
663 temperature = <90000>;
670 cluster1-l2-thermal {
671 polling-delay-passive = <250>;
672 polling-delay = <1000>;
674 thermal-sensors = <&tsens0 11>;
677 cluster1_l2_alert0: trip-point@0 {
678 temperature = <90000>;
686 polling-delay-passive = <250>;
687 polling-delay = <1000>;
689 thermal-sensors = <&tsens1 1>;
692 modem_alert0: trip-point@0 {
693 temperature = <90000>;
701 polling-delay-passive = <250>;
702 polling-delay = <1000>;
704 thermal-sensors = <&tsens1 2>;
707 mem_alert0: trip-point@0 {
708 temperature = <90000>;
716 polling-delay-passive = <250>;
717 polling-delay = <1000>;
719 thermal-sensors = <&tsens1 3>;
722 wlan_alert0: trip-point@0 {
723 temperature = <90000>;
731 polling-delay-passive = <250>;
732 polling-delay = <1000>;
734 thermal-sensors = <&tsens1 4>;
737 q6_dsp_alert0: trip-point@0 {
738 temperature = <90000>;
746 polling-delay-passive = <250>;
747 polling-delay = <1000>;
749 thermal-sensors = <&tsens1 5>;
752 camera_alert0: trip-point@0 {
753 temperature = <90000>;
761 polling-delay-passive = <250>;
762 polling-delay = <1000>;
764 thermal-sensors = <&tsens1 6>;
767 multimedia_alert0: trip-point@0 {
768 temperature = <90000>;
777 compatible = "arm,armv8-timer";
778 interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>,
779 <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>,
780 <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>,
781 <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>;
785 #address-cells = <1>;
787 ranges = <0 0 0 0xffffffff>;
788 compatible = "simple-bus";
790 gcc: clock-controller@100000 {
791 compatible = "qcom,gcc-msm8998";
794 #power-domain-cells = <1>;
795 reg = <0x00100000 0xb0000>;
798 rpm_msg_ram: memory@778000 {
799 compatible = "qcom,rpm-msg-ram";
800 reg = <0x00778000 0x7000>;
803 qfprom: qfprom@780000 {
804 compatible = "qcom,qfprom";
805 reg = <0x00780000 0x621c>;
806 #address-cells = <1>;
809 qusb2_hstx_trim: hstx-trim@423a {
815 tsens0: thermal@10ab000 {
816 compatible = "qcom,msm8998-tsens", "qcom,tsens-v2";
817 reg = <0x010ab000 0x1000>, /* TM */
818 <0x010aa000 0x1000>; /* SROT */
819 #qcom,sensors = <14>;
820 interrupts = <GIC_SPI 458 IRQ_TYPE_LEVEL_HIGH>;
821 interrupt-names = "uplow";
822 #thermal-sensor-cells = <1>;
825 tsens1: thermal@10ae000 {
826 compatible = "qcom,msm8998-tsens", "qcom,tsens-v2";
827 reg = <0x010ae000 0x1000>, /* TM */
828 <0x010ad000 0x1000>; /* SROT */
830 interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
831 interrupt-names = "uplow";
832 #thermal-sensor-cells = <1>;
835 anoc1_smmu: iommu@1680000 {
836 compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2";
837 reg = <0x01680000 0x10000>;
840 #global-interrupts = <0>;
842 <GIC_SPI 364 IRQ_TYPE_EDGE_RISING>,
843 <GIC_SPI 365 IRQ_TYPE_EDGE_RISING>,
844 <GIC_SPI 366 IRQ_TYPE_EDGE_RISING>,
845 <GIC_SPI 367 IRQ_TYPE_EDGE_RISING>,
846 <GIC_SPI 368 IRQ_TYPE_EDGE_RISING>,
847 <GIC_SPI 369 IRQ_TYPE_EDGE_RISING>;
851 compatible = "qcom,pcie-msm8996";
852 reg = <0x01c00000 0x2000>,
855 <0x1b100000 0x100000>;
856 reg-names = "parf", "dbi", "elbi", "config";
858 linux,pci-domain = <0>;
859 bus-range = <0x00 0xff>;
860 #address-cells = <3>;
864 phy-names = "pciephy";
866 ranges = <0x01000000 0x0 0x1b200000 0x1b200000 0x0 0x100000>,
867 <0x02000000 0x0 0x1b300000 0x1b300000 0x0 0xd00000>;
869 #interrupt-cells = <1>;
870 interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>;
871 interrupt-names = "msi";
872 interrupt-map-mask = <0 0 0 0x7>;
873 interrupt-map = <0 0 0 1 &intc 0 135 IRQ_TYPE_LEVEL_HIGH>,
874 <0 0 0 2 &intc 0 136 IRQ_TYPE_LEVEL_HIGH>,
875 <0 0 0 3 &intc 0 138 IRQ_TYPE_LEVEL_HIGH>,
876 <0 0 0 4 &intc 0 139 IRQ_TYPE_LEVEL_HIGH>;
878 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
879 <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
880 <&gcc GCC_PCIE_0_SLV_AXI_CLK>,
881 <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
882 <&gcc GCC_PCIE_0_AUX_CLK>;
883 clock-names = "pipe", "bus_master", "bus_slave", "cfg", "aux";
885 power-domains = <&gcc PCIE_0_GDSC>;
886 iommu-map = <0x100 &anoc1_smmu 0x1480 1>;
887 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
891 compatible = "qcom,msm8998-qmp-pcie-phy";
892 reg = <0x01c06000 0x18c>;
893 #address-cells = <1>;
897 clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
898 <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
899 <&gcc GCC_PCIE_CLKREF_CLK>;
900 clock-names = "aux", "cfg_ahb", "ref";
902 resets = <&gcc GCC_PCIE_0_PHY_BCR>, <&gcc GCC_PCIE_PHY_BCR>;
903 reset-names = "phy", "common";
905 vdda-phy-supply = <&vreg_l1a_0p875>;
906 vdda-pll-supply = <&vreg_l2a_1p2>;
908 pciephy: lane@1c06800 {
909 reg = <0x01c06200 0x128>, <0x01c06400 0x1fc>, <0x01c06800 0x20c>;
912 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
913 clock-names = "pipe0";
914 clock-output-names = "pcie_0_pipe_clk_src";
919 ufshc: ufshc@1da4000 {
920 compatible = "qcom,msm8998-ufshc", "qcom,ufshc", "jedec,ufs-2.0";
921 reg = <0x01da4000 0x2500>;
922 interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
923 phys = <&ufsphy_lanes>;
924 phy-names = "ufsphy";
925 lanes-per-direction = <2>;
926 power-domains = <&gcc UFS_GDSC>;
939 <&gcc GCC_UFS_AXI_CLK>,
940 <&gcc GCC_AGGRE1_UFS_AXI_CLK>,
941 <&gcc GCC_UFS_AHB_CLK>,
942 <&gcc GCC_UFS_UNIPRO_CORE_CLK>,
943 <&rpmcc RPM_SMD_LN_BB_CLK1>,
944 <&gcc GCC_UFS_TX_SYMBOL_0_CLK>,
945 <&gcc GCC_UFS_RX_SYMBOL_0_CLK>,
946 <&gcc GCC_UFS_RX_SYMBOL_1_CLK>;
948 <50000000 200000000>,
951 <37500000 150000000>,
957 resets = <&gcc GCC_UFS_BCR>;
961 ufsphy: phy@1da7000 {
962 compatible = "qcom,msm8998-qmp-ufs-phy";
963 reg = <0x01da7000 0x18c>;
964 #address-cells = <1>;
972 <&gcc GCC_UFS_CLKREF_CLK>,
973 <&gcc GCC_UFS_PHY_AUX_CLK>;
975 reset-names = "ufsphy";
978 ufsphy_lanes: lanes@1da7400 {
979 reg = <0x01da7400 0x128>,
988 tcsr_mutex_regs: syscon@1f40000 {
989 compatible = "syscon";
990 reg = <0x01f40000 0x20000>;
993 tlmm: pinctrl@3400000 {
994 compatible = "qcom,msm8998-pinctrl";
995 reg = <0x03400000 0xc00000>;
996 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
999 interrupt-controller;
1000 #interrupt-cells = <0x2>;
1004 compatible = "arm,coresight-stm", "arm,primecell";
1005 reg = <0x06002000 0x1000>,
1006 <0x16280000 0x180000>;
1007 reg-names = "stm-base", "stm-data-base";
1008 status = "disabled";
1010 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1011 clock-names = "apb_pclk", "atclk";
1016 remote-endpoint = <&funnel0_in7>;
1022 funnel1: funnel@6041000 {
1023 compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
1024 reg = <0x06041000 0x1000>;
1025 status = "disabled";
1027 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1028 clock-names = "apb_pclk", "atclk";
1032 funnel0_out: endpoint {
1034 <&merge_funnel_in0>;
1040 #address-cells = <1>;
1045 funnel0_in7: endpoint {
1046 remote-endpoint = <&stm_out>;
1052 funnel2: funnel@6042000 {
1053 compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
1054 reg = <0x06042000 0x1000>;
1055 status = "disabled";
1057 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1058 clock-names = "apb_pclk", "atclk";
1062 funnel1_out: endpoint {
1064 <&merge_funnel_in1>;
1070 #address-cells = <1>;
1075 funnel1_in6: endpoint {
1077 <&apss_merge_funnel_out>;
1083 funnel3: funnel@6045000 {
1084 compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
1085 reg = <0x06045000 0x1000>;
1086 status = "disabled";
1088 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1089 clock-names = "apb_pclk", "atclk";
1093 merge_funnel_out: endpoint {
1101 #address-cells = <1>;
1106 merge_funnel_in0: endpoint {
1114 merge_funnel_in1: endpoint {
1122 replicator1: replicator@6046000 {
1123 compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
1124 reg = <0x06046000 0x1000>;
1125 status = "disabled";
1127 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1128 clock-names = "apb_pclk", "atclk";
1132 replicator_out: endpoint {
1133 remote-endpoint = <&etr_in>;
1140 replicator_in: endpoint {
1141 remote-endpoint = <&etf_out>;
1148 compatible = "arm,coresight-tmc", "arm,primecell";
1149 reg = <0x06047000 0x1000>;
1150 status = "disabled";
1152 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1153 clock-names = "apb_pclk", "atclk";
1168 <&merge_funnel_out>;
1175 compatible = "arm,coresight-tmc", "arm,primecell";
1176 reg = <0x06048000 0x1000>;
1177 status = "disabled";
1179 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1180 clock-names = "apb_pclk", "atclk";
1194 compatible = "arm,coresight-etm4x", "arm,primecell";
1195 reg = <0x07840000 0x1000>;
1196 status = "disabled";
1198 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1199 clock-names = "apb_pclk", "atclk";
1205 etm0_out: endpoint {
1214 compatible = "arm,coresight-etm4x", "arm,primecell";
1215 reg = <0x07940000 0x1000>;
1216 status = "disabled";
1218 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1219 clock-names = "apb_pclk", "atclk";
1225 etm1_out: endpoint {
1234 compatible = "arm,coresight-etm4x", "arm,primecell";
1235 reg = <0x07a40000 0x1000>;
1236 status = "disabled";
1238 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1239 clock-names = "apb_pclk", "atclk";
1245 etm2_out: endpoint {
1254 compatible = "arm,coresight-etm4x", "arm,primecell";
1255 reg = <0x07b40000 0x1000>;
1256 status = "disabled";
1258 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1259 clock-names = "apb_pclk", "atclk";
1265 etm3_out: endpoint {
1273 funnel4: funnel@7b60000 { /* APSS Funnel */
1274 compatible = "arm,coresight-etm4x", "arm,primecell";
1275 reg = <0x07b60000 0x1000>;
1276 status = "disabled";
1278 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1279 clock-names = "apb_pclk", "atclk";
1283 apss_funnel_out: endpoint {
1285 <&apss_merge_funnel_in>;
1291 #address-cells = <1>;
1296 apss_funnel_in0: endpoint {
1304 apss_funnel_in1: endpoint {
1312 apss_funnel_in2: endpoint {
1320 apss_funnel_in3: endpoint {
1328 apss_funnel_in4: endpoint {
1336 apss_funnel_in5: endpoint {
1344 apss_funnel_in6: endpoint {
1352 apss_funnel_in7: endpoint {
1360 funnel5: funnel@7b70000 {
1361 compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
1362 reg = <0x07b70000 0x1000>;
1363 status = "disabled";
1365 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1366 clock-names = "apb_pclk", "atclk";
1370 apss_merge_funnel_out: endpoint {
1379 apss_merge_funnel_in: endpoint {
1388 compatible = "arm,coresight-etm4x", "arm,primecell";
1389 reg = <0x07c40000 0x1000>;
1390 status = "disabled";
1392 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1393 clock-names = "apb_pclk", "atclk";
1398 etm4_out: endpoint {
1399 remote-endpoint = <&apss_funnel_in4>;
1405 compatible = "arm,coresight-etm4x", "arm,primecell";
1406 reg = <0x07d40000 0x1000>;
1407 status = "disabled";
1409 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1410 clock-names = "apb_pclk", "atclk";
1415 etm5_out: endpoint {
1416 remote-endpoint = <&apss_funnel_in5>;
1422 compatible = "arm,coresight-etm4x", "arm,primecell";
1423 reg = <0x07e40000 0x1000>;
1424 status = "disabled";
1426 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1427 clock-names = "apb_pclk", "atclk";
1432 etm6_out: endpoint {
1433 remote-endpoint = <&apss_funnel_in6>;
1439 compatible = "arm,coresight-etm4x", "arm,primecell";
1440 reg = <0x07f40000 0x1000>;
1441 status = "disabled";
1443 clocks = <&rpmcc RPM_SMD_QDSS_CLK>, <&rpmcc RPM_SMD_QDSS_A_CLK>;
1444 clock-names = "apb_pclk", "atclk";
1449 etm7_out: endpoint {
1450 remote-endpoint = <&apss_funnel_in7>;
1455 spmi_bus: spmi@800f000 {
1456 compatible = "qcom,spmi-pmic-arb";
1457 reg = <0x0800f000 0x1000>,
1458 <0x08400000 0x1000000>,
1459 <0x09400000 0x1000000>,
1460 <0x0a400000 0x220000>,
1461 <0x0800a000 0x3000>;
1462 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1463 interrupt-names = "periph_irq";
1464 interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>;
1467 #address-cells = <2>;
1469 interrupt-controller;
1470 #interrupt-cells = <4>;
1475 compatible = "qcom,msm8998-dwc3", "qcom,dwc3";
1476 reg = <0x0a8f8800 0x400>;
1477 status = "disabled";
1478 #address-cells = <1>;
1482 clocks = <&gcc GCC_CFG_NOC_USB3_AXI_CLK>,
1483 <&gcc GCC_USB30_MASTER_CLK>,
1484 <&gcc GCC_AGGRE1_USB3_AXI_CLK>,
1485 <&gcc GCC_USB30_MOCK_UTMI_CLK>,
1486 <&gcc GCC_USB30_SLEEP_CLK>;
1487 clock-names = "cfg_noc", "core", "iface", "mock_utmi",
1490 assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>,
1491 <&gcc GCC_USB30_MASTER_CLK>;
1492 assigned-clock-rates = <19200000>, <120000000>;
1494 interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>,
1495 <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>;
1496 interrupt-names = "hs_phy_irq", "ss_phy_irq";
1498 power-domains = <&gcc USB_30_GDSC>;
1500 resets = <&gcc GCC_USB_30_BCR>;
1502 usb3_dwc3: dwc3@a800000 {
1503 compatible = "snps,dwc3";
1504 reg = <0x0a800000 0xcd00>;
1505 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
1506 snps,dis_u2_susphy_quirk;
1507 snps,dis_enblslpm_quirk;
1508 phys = <&qusb2phy>, <&usb1_ssphy>;
1509 phy-names = "usb2-phy", "usb3-phy";
1510 snps,has-lpm-erratum;
1511 snps,hird-threshold = /bits/ 8 <0x10>;
1515 usb3phy: phy@c010000 {
1516 compatible = "qcom,msm8998-qmp-usb3-phy";
1517 reg = <0x0c010000 0x18c>;
1518 status = "disabled";
1520 #address-cells = <1>;
1524 clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
1525 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
1526 <&gcc GCC_USB3_CLKREF_CLK>;
1527 clock-names = "aux", "cfg_ahb", "ref";
1529 resets = <&gcc GCC_USB3_PHY_BCR>,
1530 <&gcc GCC_USB3PHY_PHY_BCR>;
1531 reset-names = "phy", "common";
1533 usb1_ssphy: lane@c010200 {
1534 reg = <0xc010200 0x128>,
1540 clocks = <&gcc GCC_USB3_PHY_PIPE_CLK>;
1541 clock-names = "pipe0";
1542 clock-output-names = "usb3_phy_pipe_clk_src";
1546 qusb2phy: phy@c012000 {
1547 compatible = "qcom,msm8998-qusb2-phy";
1548 reg = <0x0c012000 0x2a8>;
1549 status = "disabled";
1552 clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
1553 <&gcc GCC_RX1_USB2_CLKREF_CLK>;
1554 clock-names = "cfg_ahb", "ref";
1556 resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
1558 nvmem-cells = <&qusb2_hstx_trim>;
1561 sdhc2: sdhci@c0a4900 {
1562 compatible = "qcom,sdhci-msm-v4";
1563 reg = <0x0c0a4900 0x314>, <0x0c0a4000 0x800>;
1564 reg-names = "hc_mem", "core_mem";
1566 interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
1567 <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
1568 interrupt-names = "hc_irq", "pwr_irq";
1570 clock-names = "iface", "core", "xo";
1571 clocks = <&gcc GCC_SDCC2_AHB_CLK>,
1572 <&gcc GCC_SDCC2_APPS_CLK>,
1575 status = "disabled";
1578 blsp1_dma: dma@c144000 {
1579 compatible = "qcom,bam-v1.7.0";
1580 reg = <0x0c144000 0x25000>;
1581 interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
1582 clocks = <&gcc GCC_BLSP1_AHB_CLK>;
1583 clock-names = "bam_clk";
1586 qcom,controlled-remotely;
1587 num-channels = <18>;
1591 blsp1_uart3: serial@c171000 {
1592 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
1593 reg = <0x0c171000 0x1000>;
1594 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
1595 clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
1596 <&gcc GCC_BLSP1_AHB_CLK>;
1597 clock-names = "core", "iface";
1598 dmas = <&blsp1_dma 4>, <&blsp1_dma 5>;
1599 dma-names = "tx", "rx";
1600 pinctrl-names = "default";
1601 pinctrl-0 = <&blsp1_uart3_on>;
1602 status = "disabled";
1605 blsp1_i2c1: i2c@c175000 {
1606 compatible = "qcom,i2c-qup-v2.2.1";
1607 reg = <0x0c175000 0x600>;
1608 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1610 clocks = <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>,
1611 <&gcc GCC_BLSP1_AHB_CLK>;
1612 clock-names = "core", "iface";
1613 clock-frequency = <400000>;
1615 status = "disabled";
1616 #address-cells = <1>;
1620 blsp1_i2c2: i2c@c176000 {
1621 compatible = "qcom,i2c-qup-v2.2.1";
1622 reg = <0x0c176000 0x600>;
1623 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1625 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
1626 <&gcc GCC_BLSP1_AHB_CLK>;
1627 clock-names = "core", "iface";
1628 clock-frequency = <400000>;
1630 status = "disabled";
1631 #address-cells = <1>;
1635 blsp1_i2c3: i2c@c177000 {
1636 compatible = "qcom,i2c-qup-v2.2.1";
1637 reg = <0x0c177000 0x600>;
1638 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
1640 clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>,
1641 <&gcc GCC_BLSP1_AHB_CLK>;
1642 clock-names = "core", "iface";
1643 clock-frequency = <400000>;
1645 status = "disabled";
1646 #address-cells = <1>;
1650 blsp1_i2c4: i2c@c178000 {
1651 compatible = "qcom,i2c-qup-v2.2.1";
1652 reg = <0x0c178000 0x600>;
1653 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1655 clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>,
1656 <&gcc GCC_BLSP1_AHB_CLK>;
1657 clock-names = "core", "iface";
1658 clock-frequency = <400000>;
1660 status = "disabled";
1661 #address-cells = <1>;
1665 blsp1_i2c5: i2c@c179000 {
1666 compatible = "qcom,i2c-qup-v2.2.1";
1667 reg = <0x0c179000 0x600>;
1668 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
1670 clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>,
1671 <&gcc GCC_BLSP1_AHB_CLK>;
1672 clock-names = "core", "iface";
1673 clock-frequency = <400000>;
1675 status = "disabled";
1676 #address-cells = <1>;
1680 blsp1_i2c6: i2c@c17a000 {
1681 compatible = "qcom,i2c-qup-v2.2.1";
1682 reg = <0x0c17a000 0x600>;
1683 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
1685 clocks = <&gcc GCC_BLSP1_QUP6_I2C_APPS_CLK>,
1686 <&gcc GCC_BLSP1_AHB_CLK>;
1687 clock-names = "core", "iface";
1688 clock-frequency = <400000>;
1690 status = "disabled";
1691 #address-cells = <1>;
1695 blsp2_uart1: serial@c1b0000 {
1696 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
1697 reg = <0x0c1b0000 0x1000>;
1698 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
1699 clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>,
1700 <&gcc GCC_BLSP2_AHB_CLK>;
1701 clock-names = "core", "iface";
1702 status = "disabled";
1705 blsp2_i2c0: i2c@c1b5000 {
1706 compatible = "qcom,i2c-qup-v2.2.1";
1707 reg = <0x0c1b5000 0x600>;
1708 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
1710 clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>,
1711 <&gcc GCC_BLSP2_AHB_CLK>;
1712 clock-names = "core", "iface";
1713 clock-frequency = <400000>;
1715 status = "disabled";
1716 #address-cells = <1>;
1720 blsp2_i2c1: i2c@c1b6000 {
1721 compatible = "qcom,i2c-qup-v2.2.1";
1722 reg = <0x0c1b6000 0x600>;
1723 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
1725 clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>,
1726 <&gcc GCC_BLSP2_AHB_CLK>;
1727 clock-names = "core", "iface";
1728 clock-frequency = <400000>;
1730 status = "disabled";
1731 #address-cells = <1>;
1735 blsp2_i2c2: i2c@c1b7000 {
1736 compatible = "qcom,i2c-qup-v2.2.1";
1737 reg = <0x0c1b7000 0x600>;
1738 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
1740 clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>,
1741 <&gcc GCC_BLSP2_AHB_CLK>;
1742 clock-names = "core", "iface";
1743 clock-frequency = <400000>;
1745 status = "disabled";
1746 #address-cells = <1>;
1750 blsp2_i2c3: i2c@c1b8000 {
1751 compatible = "qcom,i2c-qup-v2.2.1";
1752 reg = <0x0c1b8000 0x600>;
1753 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
1755 clocks = <&gcc GCC_BLSP2_QUP4_I2C_APPS_CLK>,
1756 <&gcc GCC_BLSP2_AHB_CLK>;
1757 clock-names = "core", "iface";
1758 clock-frequency = <400000>;
1760 status = "disabled";
1761 #address-cells = <1>;
1765 blsp2_i2c4: i2c@c1b9000 {
1766 compatible = "qcom,i2c-qup-v2.2.1";
1767 reg = <0x0c1b9000 0x600>;
1768 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
1770 clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>,
1771 <&gcc GCC_BLSP2_AHB_CLK>;
1772 clock-names = "core", "iface";
1773 clock-frequency = <400000>;
1775 status = "disabled";
1776 #address-cells = <1>;
1780 blsp2_i2c5: i2c@c1ba000 {
1781 compatible = "qcom,i2c-qup-v2.2.1";
1782 reg = <0x0c1ba000 0x600>;
1783 interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
1785 clocks = <&gcc GCC_BLSP2_QUP6_I2C_APPS_CLK>,
1786 <&gcc GCC_BLSP2_AHB_CLK>;
1787 clock-names = "core", "iface";
1788 clock-frequency = <400000>;
1790 status = "disabled";
1791 #address-cells = <1>;
1795 apcs_glb: mailbox@17911000 {
1796 compatible = "qcom,msm8998-apcs-hmss-global";
1797 reg = <0x17911000 0x1000>;
1803 #address-cells = <1>;
1806 compatible = "arm,armv7-timer-mem";
1807 reg = <0x17920000 0x1000>;
1811 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
1812 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1813 reg = <0x17921000 0x1000>,
1814 <0x17922000 0x1000>;
1819 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1820 reg = <0x17923000 0x1000>;
1821 status = "disabled";
1826 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1827 reg = <0x17924000 0x1000>;
1828 status = "disabled";
1833 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
1834 reg = <0x17925000 0x1000>;
1835 status = "disabled";
1840 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1841 reg = <0x17926000 0x1000>;
1842 status = "disabled";
1847 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1848 reg = <0x17927000 0x1000>;
1849 status = "disabled";
1854 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1855 reg = <0x17928000 0x1000>;
1856 status = "disabled";
1860 intc: interrupt-controller@17a00000 {
1861 compatible = "arm,gic-v3";
1862 reg = <0x17a00000 0x10000>, /* GICD */
1863 <0x17b00000 0x100000>; /* GICR * 8 */
1864 #interrupt-cells = <3>;
1865 #address-cells = <1>;
1868 interrupt-controller;
1869 #redistributor-regions = <1>;
1870 redistributor-stride = <0x0 0x20000>;
1871 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
1876 #include "msm8998-pins.dtsi"