1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021, Linaro Limited
8 #include <linux/interconnect-provider.h>
9 #include <linux/module.h>
10 #include <linux/mod_devicetable.h>
11 #include <linux/platform_device.h>
12 #include <dt-bindings/interconnect/qcom,sm8350.h>
14 #include "bcm-voter.h"
18 static struct qcom_icc_node qhm_qspi = {
20 .id = SM8350_MASTER_QSPI_0,
24 .links = { SM8350_SLAVE_A1NOC_SNOC },
27 static struct qcom_icc_node qhm_qup0 = {
29 .id = SM8350_MASTER_QUP_0,
33 .links = { SM8350_SLAVE_A2NOC_SNOC },
36 static struct qcom_icc_node qhm_qup1 = {
38 .id = SM8350_MASTER_QUP_1,
42 .links = { SM8350_SLAVE_A1NOC_SNOC },
45 static struct qcom_icc_node qhm_qup2 = {
47 .id = SM8350_MASTER_QUP_2,
51 .links = { SM8350_SLAVE_A2NOC_SNOC },
54 static struct qcom_icc_node qnm_a1noc_cfg = {
55 .name = "qnm_a1noc_cfg",
56 .id = SM8350_MASTER_A1NOC_CFG,
60 .links = { SM8350_SLAVE_SERVICE_A1NOC },
63 static struct qcom_icc_node xm_sdc4 = {
65 .id = SM8350_MASTER_SDCC_4,
69 .links = { SM8350_SLAVE_A1NOC_SNOC },
72 static struct qcom_icc_node xm_ufs_mem = {
74 .id = SM8350_MASTER_UFS_MEM,
78 .links = { SM8350_SLAVE_A1NOC_SNOC },
81 static struct qcom_icc_node xm_usb3_0 = {
83 .id = SM8350_MASTER_USB3_0,
87 .links = { SM8350_SLAVE_A1NOC_SNOC },
90 static struct qcom_icc_node xm_usb3_1 = {
92 .id = SM8350_MASTER_USB3_1,
96 .links = { SM8350_SLAVE_A1NOC_SNOC },
99 static struct qcom_icc_node qhm_qdss_bam = {
100 .name = "qhm_qdss_bam",
101 .id = SM8350_MASTER_QDSS_BAM,
105 .links = { SM8350_SLAVE_A2NOC_SNOC },
108 static struct qcom_icc_node qnm_a2noc_cfg = {
109 .name = "qnm_a2noc_cfg",
110 .id = SM8350_MASTER_A2NOC_CFG,
114 .links = { SM8350_SLAVE_SERVICE_A2NOC },
117 static struct qcom_icc_node qxm_crypto = {
118 .name = "qxm_crypto",
119 .id = SM8350_MASTER_CRYPTO,
123 .links = { SM8350_SLAVE_A2NOC_SNOC },
126 static struct qcom_icc_node qxm_ipa = {
128 .id = SM8350_MASTER_IPA,
132 .links = { SM8350_SLAVE_A2NOC_SNOC },
135 static struct qcom_icc_node xm_pcie3_0 = {
136 .name = "xm_pcie3_0",
137 .id = SM8350_MASTER_PCIE_0,
141 .links = { SM8350_SLAVE_ANOC_PCIE_GEM_NOC },
144 static struct qcom_icc_node xm_pcie3_1 = {
145 .name = "xm_pcie3_1",
146 .id = SM8350_MASTER_PCIE_1,
150 .links = { SM8350_SLAVE_ANOC_PCIE_GEM_NOC },
153 static struct qcom_icc_node xm_qdss_etr = {
154 .name = "xm_qdss_etr",
155 .id = SM8350_MASTER_QDSS_ETR,
159 .links = { SM8350_SLAVE_A2NOC_SNOC },
162 static struct qcom_icc_node xm_sdc2 = {
164 .id = SM8350_MASTER_SDCC_2,
168 .links = { SM8350_SLAVE_A2NOC_SNOC },
171 static struct qcom_icc_node xm_ufs_card = {
172 .name = "xm_ufs_card",
173 .id = SM8350_MASTER_UFS_CARD,
177 .links = { SM8350_SLAVE_A2NOC_SNOC },
180 static struct qcom_icc_node qnm_gemnoc_cnoc = {
181 .name = "qnm_gemnoc_cnoc",
182 .id = SM8350_MASTER_GEM_NOC_CNOC,
186 .links = { SM8350_SLAVE_AHB2PHY_SOUTH,
187 SM8350_SLAVE_AHB2PHY_NORTH,
190 SM8350_SLAVE_CAMERA_CFG,
191 SM8350_SLAVE_CLK_CTL,
192 SM8350_SLAVE_CDSP_CFG,
193 SM8350_SLAVE_RBCPR_CX_CFG,
194 SM8350_SLAVE_RBCPR_MMCX_CFG,
195 SM8350_SLAVE_RBCPR_MX_CFG,
196 SM8350_SLAVE_CRYPTO_0_CFG,
197 SM8350_SLAVE_CX_RDPM,
198 SM8350_SLAVE_DCC_CFG,
199 SM8350_SLAVE_DISPLAY_CFG,
200 SM8350_SLAVE_GFX3D_CFG,
202 SM8350_SLAVE_IMEM_CFG,
203 SM8350_SLAVE_IPA_CFG,
204 SM8350_SLAVE_IPC_ROUTER_CFG,
206 SM8350_SLAVE_CNOC_MSS,
207 SM8350_SLAVE_MX_RDPM,
208 SM8350_SLAVE_PCIE_0_CFG,
209 SM8350_SLAVE_PCIE_1_CFG,
211 SM8350_SLAVE_PIMEM_CFG,
212 SM8350_SLAVE_PKA_WRAPPER_CFG,
213 SM8350_SLAVE_PMU_WRAPPER_CFG,
214 SM8350_SLAVE_QDSS_CFG,
221 SM8350_SLAVE_SECURITY,
222 SM8350_SLAVE_SPSS_CFG,
225 SM8350_SLAVE_UFS_CARD_CFG,
226 SM8350_SLAVE_UFS_MEM_CFG,
229 SM8350_SLAVE_VENUS_CFG,
230 SM8350_SLAVE_VSENSE_CTRL_CFG,
231 SM8350_SLAVE_A1NOC_CFG,
232 SM8350_SLAVE_A2NOC_CFG,
233 SM8350_SLAVE_DDRSS_CFG,
234 SM8350_SLAVE_CNOC_MNOC_CFG,
235 SM8350_SLAVE_SNOC_CFG,
236 SM8350_SLAVE_BOOT_IMEM,
239 SM8350_SLAVE_SERVICE_CNOC,
240 SM8350_SLAVE_QDSS_STM,
245 static struct qcom_icc_node qnm_gemnoc_pcie = {
246 .name = "qnm_gemnoc_pcie",
247 .id = SM8350_MASTER_GEM_NOC_PCIE_SNOC,
251 .links = { SM8350_SLAVE_PCIE_0,
256 static struct qcom_icc_node xm_qdss_dap = {
257 .name = "xm_qdss_dap",
258 .id = SM8350_MASTER_QDSS_DAP,
262 .links = { SM8350_SLAVE_AHB2PHY_SOUTH,
263 SM8350_SLAVE_AHB2PHY_NORTH,
266 SM8350_SLAVE_CAMERA_CFG,
267 SM8350_SLAVE_CLK_CTL,
268 SM8350_SLAVE_CDSP_CFG,
269 SM8350_SLAVE_RBCPR_CX_CFG,
270 SM8350_SLAVE_RBCPR_MMCX_CFG,
271 SM8350_SLAVE_RBCPR_MX_CFG,
272 SM8350_SLAVE_CRYPTO_0_CFG,
273 SM8350_SLAVE_CX_RDPM,
274 SM8350_SLAVE_DCC_CFG,
275 SM8350_SLAVE_DISPLAY_CFG,
276 SM8350_SLAVE_GFX3D_CFG,
278 SM8350_SLAVE_IMEM_CFG,
279 SM8350_SLAVE_IPA_CFG,
280 SM8350_SLAVE_IPC_ROUTER_CFG,
282 SM8350_SLAVE_CNOC_MSS,
283 SM8350_SLAVE_MX_RDPM,
284 SM8350_SLAVE_PCIE_0_CFG,
285 SM8350_SLAVE_PCIE_1_CFG,
287 SM8350_SLAVE_PIMEM_CFG,
288 SM8350_SLAVE_PKA_WRAPPER_CFG,
289 SM8350_SLAVE_PMU_WRAPPER_CFG,
290 SM8350_SLAVE_QDSS_CFG,
297 SM8350_SLAVE_SECURITY,
298 SM8350_SLAVE_SPSS_CFG,
301 SM8350_SLAVE_UFS_CARD_CFG,
302 SM8350_SLAVE_UFS_MEM_CFG,
305 SM8350_SLAVE_VENUS_CFG,
306 SM8350_SLAVE_VSENSE_CTRL_CFG,
307 SM8350_SLAVE_A1NOC_CFG,
308 SM8350_SLAVE_A2NOC_CFG,
309 SM8350_SLAVE_DDRSS_CFG,
310 SM8350_SLAVE_CNOC_MNOC_CFG,
311 SM8350_SLAVE_SNOC_CFG,
312 SM8350_SLAVE_BOOT_IMEM,
315 SM8350_SLAVE_SERVICE_CNOC,
316 SM8350_SLAVE_QDSS_STM,
321 static struct qcom_icc_node qnm_cnoc_dc_noc = {
322 .name = "qnm_cnoc_dc_noc",
323 .id = SM8350_MASTER_CNOC_DC_NOC,
327 .links = { SM8350_SLAVE_LLCC_CFG,
328 SM8350_SLAVE_GEM_NOC_CFG
332 static struct qcom_icc_node alm_gpu_tcu = {
333 .name = "alm_gpu_tcu",
334 .id = SM8350_MASTER_GPU_TCU,
338 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
343 static struct qcom_icc_node alm_sys_tcu = {
344 .name = "alm_sys_tcu",
345 .id = SM8350_MASTER_SYS_TCU,
349 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
354 static struct qcom_icc_node chm_apps = {
356 .id = SM8350_MASTER_APPSS_PROC,
360 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
362 SM8350_SLAVE_MEM_NOC_PCIE_SNOC
366 static struct qcom_icc_node qnm_cmpnoc = {
367 .name = "qnm_cmpnoc",
368 .id = SM8350_MASTER_COMPUTE_NOC,
372 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
377 static struct qcom_icc_node qnm_gemnoc_cfg = {
378 .name = "qnm_gemnoc_cfg",
379 .id = SM8350_MASTER_GEM_NOC_CFG,
383 .links = { SM8350_SLAVE_MSS_PROC_MS_MPU_CFG,
384 SM8350_SLAVE_MCDMA_MS_MPU_CFG,
385 SM8350_SLAVE_SERVICE_GEM_NOC_1,
386 SM8350_SLAVE_SERVICE_GEM_NOC_2,
387 SM8350_SLAVE_SERVICE_GEM_NOC
391 static struct qcom_icc_node qnm_gpu = {
393 .id = SM8350_MASTER_GFX3D,
397 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
402 static struct qcom_icc_node qnm_mnoc_hf = {
403 .name = "qnm_mnoc_hf",
404 .id = SM8350_MASTER_MNOC_HF_MEM_NOC,
408 .links = { SM8350_SLAVE_LLCC },
411 static struct qcom_icc_node qnm_mnoc_sf = {
412 .name = "qnm_mnoc_sf",
413 .id = SM8350_MASTER_MNOC_SF_MEM_NOC,
417 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
422 static struct qcom_icc_node qnm_pcie = {
424 .id = SM8350_MASTER_ANOC_PCIE_GEM_NOC,
428 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
433 static struct qcom_icc_node qnm_snoc_gc = {
434 .name = "qnm_snoc_gc",
435 .id = SM8350_MASTER_SNOC_GC_MEM_NOC,
439 .links = { SM8350_SLAVE_LLCC },
442 static struct qcom_icc_node qnm_snoc_sf = {
443 .name = "qnm_snoc_sf",
444 .id = SM8350_MASTER_SNOC_SF_MEM_NOC,
448 .links = { SM8350_SLAVE_GEM_NOC_CNOC,
450 SM8350_SLAVE_MEM_NOC_PCIE_SNOC
454 static struct qcom_icc_node qhm_config_noc = {
455 .name = "qhm_config_noc",
456 .id = SM8350_MASTER_CNOC_LPASS_AG_NOC,
460 .links = { SM8350_SLAVE_LPASS_CORE_CFG,
461 SM8350_SLAVE_LPASS_LPI_CFG,
462 SM8350_SLAVE_LPASS_MPU_CFG,
463 SM8350_SLAVE_LPASS_TOP_CFG,
464 SM8350_SLAVE_SERVICES_LPASS_AML_NOC,
465 SM8350_SLAVE_SERVICE_LPASS_AG_NOC
469 static struct qcom_icc_node llcc_mc = {
471 .id = SM8350_MASTER_LLCC,
475 .links = { SM8350_SLAVE_EBI1 },
478 static struct qcom_icc_node qnm_camnoc_hf = {
479 .name = "qnm_camnoc_hf",
480 .id = SM8350_MASTER_CAMNOC_HF,
484 .links = { SM8350_SLAVE_MNOC_HF_MEM_NOC },
487 static struct qcom_icc_node qnm_camnoc_icp = {
488 .name = "qnm_camnoc_icp",
489 .id = SM8350_MASTER_CAMNOC_ICP,
493 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
496 static struct qcom_icc_node qnm_camnoc_sf = {
497 .name = "qnm_camnoc_sf",
498 .id = SM8350_MASTER_CAMNOC_SF,
502 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
505 static struct qcom_icc_node qnm_mnoc_cfg = {
506 .name = "qnm_mnoc_cfg",
507 .id = SM8350_MASTER_CNOC_MNOC_CFG,
511 .links = { SM8350_SLAVE_SERVICE_MNOC },
514 static struct qcom_icc_node qnm_video0 = {
515 .name = "qnm_video0",
516 .id = SM8350_MASTER_VIDEO_P0,
520 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
523 static struct qcom_icc_node qnm_video1 = {
524 .name = "qnm_video1",
525 .id = SM8350_MASTER_VIDEO_P1,
529 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
532 static struct qcom_icc_node qnm_video_cvp = {
533 .name = "qnm_video_cvp",
534 .id = SM8350_MASTER_VIDEO_PROC,
538 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
541 static struct qcom_icc_node qxm_mdp0 = {
543 .id = SM8350_MASTER_MDP0,
547 .links = { SM8350_SLAVE_MNOC_HF_MEM_NOC },
550 static struct qcom_icc_node qxm_mdp1 = {
552 .id = SM8350_MASTER_MDP1,
556 .links = { SM8350_SLAVE_MNOC_HF_MEM_NOC },
559 static struct qcom_icc_node qxm_rot = {
561 .id = SM8350_MASTER_ROTATOR,
565 .links = { SM8350_SLAVE_MNOC_SF_MEM_NOC },
568 static struct qcom_icc_node qhm_nsp_noc_config = {
569 .name = "qhm_nsp_noc_config",
570 .id = SM8350_MASTER_CDSP_NOC_CFG,
574 .links = { SM8350_SLAVE_SERVICE_NSP_NOC },
577 static struct qcom_icc_node qxm_nsp = {
579 .id = SM8350_MASTER_CDSP_PROC,
583 .links = { SM8350_SLAVE_CDSP_MEM_NOC },
586 static struct qcom_icc_node qnm_aggre1_noc = {
587 .name = "qnm_aggre1_noc",
588 .id = SM8350_MASTER_A1NOC_SNOC,
592 .links = { SM8350_SLAVE_SNOC_GEM_NOC_SF },
595 static struct qcom_icc_node qnm_aggre2_noc = {
596 .name = "qnm_aggre2_noc",
597 .id = SM8350_MASTER_A2NOC_SNOC,
601 .links = { SM8350_SLAVE_SNOC_GEM_NOC_SF },
604 static struct qcom_icc_node qnm_snoc_cfg = {
605 .name = "qnm_snoc_cfg",
606 .id = SM8350_MASTER_SNOC_CFG,
610 .links = { SM8350_SLAVE_SERVICE_SNOC },
613 static struct qcom_icc_node qxm_pimem = {
615 .id = SM8350_MASTER_PIMEM,
619 .links = { SM8350_SLAVE_SNOC_GEM_NOC_GC },
622 static struct qcom_icc_node xm_gic = {
624 .id = SM8350_MASTER_GIC,
628 .links = { SM8350_SLAVE_SNOC_GEM_NOC_GC },
631 static struct qcom_icc_node qns_a1noc_snoc = {
632 .name = "qns_a1noc_snoc",
633 .id = SM8350_SLAVE_A1NOC_SNOC,
637 .links = { SM8350_MASTER_A1NOC_SNOC },
640 static struct qcom_icc_node srvc_aggre1_noc = {
641 .name = "srvc_aggre1_noc",
642 .id = SM8350_SLAVE_SERVICE_A1NOC,
647 static struct qcom_icc_node qns_a2noc_snoc = {
648 .name = "qns_a2noc_snoc",
649 .id = SM8350_SLAVE_A2NOC_SNOC,
653 .links = { SM8350_MASTER_A2NOC_SNOC },
656 static struct qcom_icc_node qns_pcie_mem_noc = {
657 .name = "qns_pcie_mem_noc",
658 .id = SM8350_SLAVE_ANOC_PCIE_GEM_NOC,
662 .links = { SM8350_MASTER_ANOC_PCIE_GEM_NOC },
665 static struct qcom_icc_node srvc_aggre2_noc = {
666 .name = "srvc_aggre2_noc",
667 .id = SM8350_SLAVE_SERVICE_A2NOC,
672 static struct qcom_icc_node qhs_ahb2phy0 = {
673 .name = "qhs_ahb2phy0",
674 .id = SM8350_SLAVE_AHB2PHY_SOUTH,
679 static struct qcom_icc_node qhs_ahb2phy1 = {
680 .name = "qhs_ahb2phy1",
681 .id = SM8350_SLAVE_AHB2PHY_NORTH,
686 static struct qcom_icc_node qhs_aoss = {
688 .id = SM8350_SLAVE_AOSS,
693 static struct qcom_icc_node qhs_apss = {
695 .id = SM8350_SLAVE_APPSS,
700 static struct qcom_icc_node qhs_camera_cfg = {
701 .name = "qhs_camera_cfg",
702 .id = SM8350_SLAVE_CAMERA_CFG,
707 static struct qcom_icc_node qhs_clk_ctl = {
708 .name = "qhs_clk_ctl",
709 .id = SM8350_SLAVE_CLK_CTL,
714 static struct qcom_icc_node qhs_compute_cfg = {
715 .name = "qhs_compute_cfg",
716 .id = SM8350_SLAVE_CDSP_CFG,
721 static struct qcom_icc_node qhs_cpr_cx = {
722 .name = "qhs_cpr_cx",
723 .id = SM8350_SLAVE_RBCPR_CX_CFG,
728 static struct qcom_icc_node qhs_cpr_mmcx = {
729 .name = "qhs_cpr_mmcx",
730 .id = SM8350_SLAVE_RBCPR_MMCX_CFG,
735 static struct qcom_icc_node qhs_cpr_mx = {
736 .name = "qhs_cpr_mx",
737 .id = SM8350_SLAVE_RBCPR_MX_CFG,
742 static struct qcom_icc_node qhs_crypto0_cfg = {
743 .name = "qhs_crypto0_cfg",
744 .id = SM8350_SLAVE_CRYPTO_0_CFG,
749 static struct qcom_icc_node qhs_cx_rdpm = {
750 .name = "qhs_cx_rdpm",
751 .id = SM8350_SLAVE_CX_RDPM,
756 static struct qcom_icc_node qhs_dcc_cfg = {
757 .name = "qhs_dcc_cfg",
758 .id = SM8350_SLAVE_DCC_CFG,
763 static struct qcom_icc_node qhs_display_cfg = {
764 .name = "qhs_display_cfg",
765 .id = SM8350_SLAVE_DISPLAY_CFG,
770 static struct qcom_icc_node qhs_gpuss_cfg = {
771 .name = "qhs_gpuss_cfg",
772 .id = SM8350_SLAVE_GFX3D_CFG,
777 static struct qcom_icc_node qhs_hwkm = {
779 .id = SM8350_SLAVE_HWKM,
784 static struct qcom_icc_node qhs_imem_cfg = {
785 .name = "qhs_imem_cfg",
786 .id = SM8350_SLAVE_IMEM_CFG,
791 static struct qcom_icc_node qhs_ipa = {
793 .id = SM8350_SLAVE_IPA_CFG,
798 static struct qcom_icc_node qhs_ipc_router = {
799 .name = "qhs_ipc_router",
800 .id = SM8350_SLAVE_IPC_ROUTER_CFG,
805 static struct qcom_icc_node qhs_lpass_cfg = {
806 .name = "qhs_lpass_cfg",
807 .id = SM8350_SLAVE_LPASS,
811 .links = { SM8350_MASTER_CNOC_LPASS_AG_NOC },
814 static struct qcom_icc_node qhs_mss_cfg = {
815 .name = "qhs_mss_cfg",
816 .id = SM8350_SLAVE_CNOC_MSS,
821 static struct qcom_icc_node qhs_mx_rdpm = {
822 .name = "qhs_mx_rdpm",
823 .id = SM8350_SLAVE_MX_RDPM,
828 static struct qcom_icc_node qhs_pcie0_cfg = {
829 .name = "qhs_pcie0_cfg",
830 .id = SM8350_SLAVE_PCIE_0_CFG,
835 static struct qcom_icc_node qhs_pcie1_cfg = {
836 .name = "qhs_pcie1_cfg",
837 .id = SM8350_SLAVE_PCIE_1_CFG,
842 static struct qcom_icc_node qhs_pdm = {
844 .id = SM8350_SLAVE_PDM,
849 static struct qcom_icc_node qhs_pimem_cfg = {
850 .name = "qhs_pimem_cfg",
851 .id = SM8350_SLAVE_PIMEM_CFG,
856 static struct qcom_icc_node qhs_pka_wrapper_cfg = {
857 .name = "qhs_pka_wrapper_cfg",
858 .id = SM8350_SLAVE_PKA_WRAPPER_CFG,
863 static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
864 .name = "qhs_pmu_wrapper_cfg",
865 .id = SM8350_SLAVE_PMU_WRAPPER_CFG,
870 static struct qcom_icc_node qhs_qdss_cfg = {
871 .name = "qhs_qdss_cfg",
872 .id = SM8350_SLAVE_QDSS_CFG,
877 static struct qcom_icc_node qhs_qspi = {
879 .id = SM8350_SLAVE_QSPI_0,
884 static struct qcom_icc_node qhs_qup0 = {
886 .id = SM8350_SLAVE_QUP_0,
891 static struct qcom_icc_node qhs_qup1 = {
893 .id = SM8350_SLAVE_QUP_1,
898 static struct qcom_icc_node qhs_qup2 = {
900 .id = SM8350_SLAVE_QUP_2,
905 static struct qcom_icc_node qhs_sdc2 = {
907 .id = SM8350_SLAVE_SDCC_2,
912 static struct qcom_icc_node qhs_sdc4 = {
914 .id = SM8350_SLAVE_SDCC_4,
919 static struct qcom_icc_node qhs_security = {
920 .name = "qhs_security",
921 .id = SM8350_SLAVE_SECURITY,
926 static struct qcom_icc_node qhs_spss_cfg = {
927 .name = "qhs_spss_cfg",
928 .id = SM8350_SLAVE_SPSS_CFG,
933 static struct qcom_icc_node qhs_tcsr = {
935 .id = SM8350_SLAVE_TCSR,
940 static struct qcom_icc_node qhs_tlmm = {
942 .id = SM8350_SLAVE_TLMM,
947 static struct qcom_icc_node qhs_ufs_card_cfg = {
948 .name = "qhs_ufs_card_cfg",
949 .id = SM8350_SLAVE_UFS_CARD_CFG,
954 static struct qcom_icc_node qhs_ufs_mem_cfg = {
955 .name = "qhs_ufs_mem_cfg",
956 .id = SM8350_SLAVE_UFS_MEM_CFG,
961 static struct qcom_icc_node qhs_usb3_0 = {
962 .name = "qhs_usb3_0",
963 .id = SM8350_SLAVE_USB3_0,
968 static struct qcom_icc_node qhs_usb3_1 = {
969 .name = "qhs_usb3_1",
970 .id = SM8350_SLAVE_USB3_1,
975 static struct qcom_icc_node qhs_venus_cfg = {
976 .name = "qhs_venus_cfg",
977 .id = SM8350_SLAVE_VENUS_CFG,
982 static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
983 .name = "qhs_vsense_ctrl_cfg",
984 .id = SM8350_SLAVE_VSENSE_CTRL_CFG,
989 static struct qcom_icc_node qns_a1_noc_cfg = {
990 .name = "qns_a1_noc_cfg",
991 .id = SM8350_SLAVE_A1NOC_CFG,
996 static struct qcom_icc_node qns_a2_noc_cfg = {
997 .name = "qns_a2_noc_cfg",
998 .id = SM8350_SLAVE_A2NOC_CFG,
1003 static struct qcom_icc_node qns_ddrss_cfg = {
1004 .name = "qns_ddrss_cfg",
1005 .id = SM8350_SLAVE_DDRSS_CFG,
1010 static struct qcom_icc_node qns_mnoc_cfg = {
1011 .name = "qns_mnoc_cfg",
1012 .id = SM8350_SLAVE_CNOC_MNOC_CFG,
1017 static struct qcom_icc_node qns_snoc_cfg = {
1018 .name = "qns_snoc_cfg",
1019 .id = SM8350_SLAVE_SNOC_CFG,
1024 static struct qcom_icc_node qxs_boot_imem = {
1025 .name = "qxs_boot_imem",
1026 .id = SM8350_SLAVE_BOOT_IMEM,
1031 static struct qcom_icc_node qxs_imem = {
1033 .id = SM8350_SLAVE_IMEM,
1038 static struct qcom_icc_node qxs_pimem = {
1039 .name = "qxs_pimem",
1040 .id = SM8350_SLAVE_PIMEM,
1045 static struct qcom_icc_node srvc_cnoc = {
1046 .name = "srvc_cnoc",
1047 .id = SM8350_SLAVE_SERVICE_CNOC,
1052 static struct qcom_icc_node xs_pcie_0 = {
1053 .name = "xs_pcie_0",
1054 .id = SM8350_SLAVE_PCIE_0,
1059 static struct qcom_icc_node xs_pcie_1 = {
1060 .name = "xs_pcie_1",
1061 .id = SM8350_SLAVE_PCIE_1,
1066 static struct qcom_icc_node xs_qdss_stm = {
1067 .name = "xs_qdss_stm",
1068 .id = SM8350_SLAVE_QDSS_STM,
1073 static struct qcom_icc_node xs_sys_tcu_cfg = {
1074 .name = "xs_sys_tcu_cfg",
1075 .id = SM8350_SLAVE_TCU,
1080 static struct qcom_icc_node qhs_llcc = {
1082 .id = SM8350_SLAVE_LLCC_CFG,
1087 static struct qcom_icc_node qns_gemnoc = {
1088 .name = "qns_gemnoc",
1089 .id = SM8350_SLAVE_GEM_NOC_CFG,
1094 static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
1095 .name = "qhs_mdsp_ms_mpu_cfg",
1096 .id = SM8350_SLAVE_MSS_PROC_MS_MPU_CFG,
1101 static struct qcom_icc_node qhs_modem_ms_mpu_cfg = {
1102 .name = "qhs_modem_ms_mpu_cfg",
1103 .id = SM8350_SLAVE_MCDMA_MS_MPU_CFG,
1108 static struct qcom_icc_node qns_gem_noc_cnoc = {
1109 .name = "qns_gem_noc_cnoc",
1110 .id = SM8350_SLAVE_GEM_NOC_CNOC,
1114 .links = { SM8350_MASTER_GEM_NOC_CNOC },
1117 static struct qcom_icc_node qns_llcc = {
1119 .id = SM8350_SLAVE_LLCC,
1123 .links = { SM8350_MASTER_LLCC },
1126 static struct qcom_icc_node qns_pcie = {
1128 .id = SM8350_SLAVE_MEM_NOC_PCIE_SNOC,
1133 static struct qcom_icc_node srvc_even_gemnoc = {
1134 .name = "srvc_even_gemnoc",
1135 .id = SM8350_SLAVE_SERVICE_GEM_NOC_1,
1140 static struct qcom_icc_node srvc_odd_gemnoc = {
1141 .name = "srvc_odd_gemnoc",
1142 .id = SM8350_SLAVE_SERVICE_GEM_NOC_2,
1147 static struct qcom_icc_node srvc_sys_gemnoc = {
1148 .name = "srvc_sys_gemnoc",
1149 .id = SM8350_SLAVE_SERVICE_GEM_NOC,
1154 static struct qcom_icc_node qhs_lpass_core = {
1155 .name = "qhs_lpass_core",
1156 .id = SM8350_SLAVE_LPASS_CORE_CFG,
1161 static struct qcom_icc_node qhs_lpass_lpi = {
1162 .name = "qhs_lpass_lpi",
1163 .id = SM8350_SLAVE_LPASS_LPI_CFG,
1168 static struct qcom_icc_node qhs_lpass_mpu = {
1169 .name = "qhs_lpass_mpu",
1170 .id = SM8350_SLAVE_LPASS_MPU_CFG,
1175 static struct qcom_icc_node qhs_lpass_top = {
1176 .name = "qhs_lpass_top",
1177 .id = SM8350_SLAVE_LPASS_TOP_CFG,
1182 static struct qcom_icc_node srvc_niu_aml_noc = {
1183 .name = "srvc_niu_aml_noc",
1184 .id = SM8350_SLAVE_SERVICES_LPASS_AML_NOC,
1189 static struct qcom_icc_node srvc_niu_lpass_agnoc = {
1190 .name = "srvc_niu_lpass_agnoc",
1191 .id = SM8350_SLAVE_SERVICE_LPASS_AG_NOC,
1196 static struct qcom_icc_node ebi = {
1198 .id = SM8350_SLAVE_EBI1,
1203 static struct qcom_icc_node qns_mem_noc_hf = {
1204 .name = "qns_mem_noc_hf",
1205 .id = SM8350_SLAVE_MNOC_HF_MEM_NOC,
1209 .links = { SM8350_MASTER_MNOC_HF_MEM_NOC },
1212 static struct qcom_icc_node qns_mem_noc_sf = {
1213 .name = "qns_mem_noc_sf",
1214 .id = SM8350_SLAVE_MNOC_SF_MEM_NOC,
1218 .links = { SM8350_MASTER_MNOC_SF_MEM_NOC },
1221 static struct qcom_icc_node srvc_mnoc = {
1222 .name = "srvc_mnoc",
1223 .id = SM8350_SLAVE_SERVICE_MNOC,
1228 static struct qcom_icc_node qns_nsp_gemnoc = {
1229 .name = "qns_nsp_gemnoc",
1230 .id = SM8350_SLAVE_CDSP_MEM_NOC,
1234 .links = { SM8350_MASTER_COMPUTE_NOC },
1237 static struct qcom_icc_node service_nsp_noc = {
1238 .name = "service_nsp_noc",
1239 .id = SM8350_SLAVE_SERVICE_NSP_NOC,
1244 static struct qcom_icc_node qns_gemnoc_gc = {
1245 .name = "qns_gemnoc_gc",
1246 .id = SM8350_SLAVE_SNOC_GEM_NOC_GC,
1250 .links = { SM8350_MASTER_SNOC_GC_MEM_NOC },
1253 static struct qcom_icc_node qns_gemnoc_sf = {
1254 .name = "qns_gemnoc_sf",
1255 .id = SM8350_SLAVE_SNOC_GEM_NOC_SF,
1259 .links = { SM8350_MASTER_SNOC_SF_MEM_NOC },
1262 static struct qcom_icc_node srvc_snoc = {
1263 .name = "srvc_snoc",
1264 .id = SM8350_SLAVE_SERVICE_SNOC,
1269 static struct qcom_icc_bcm bcm_acv = {
1271 .enable_mask = BIT(3),
1277 static struct qcom_icc_bcm bcm_ce0 = {
1281 .nodes = { &qxm_crypto },
1284 static struct qcom_icc_bcm bcm_cn0 = {
1288 .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
1291 static struct qcom_icc_bcm bcm_cn1 = {
1295 .nodes = { &xm_qdss_dap,
1320 &qhs_pka_wrapper_cfg,
1321 &qhs_pmu_wrapper_cfg,
1335 &qhs_vsense_ctrl_cfg,
1345 static struct qcom_icc_bcm bcm_cn2 = {
1349 .nodes = { &qhs_lpass_cfg, &qhs_pdm, &qhs_qspi, &qhs_sdc2, &qhs_sdc4 },
1352 static struct qcom_icc_bcm bcm_co0 = {
1356 .nodes = { &qns_nsp_gemnoc },
1359 static struct qcom_icc_bcm bcm_co3 = {
1363 .nodes = { &qxm_nsp },
1366 static struct qcom_icc_bcm bcm_mc0 = {
1373 static struct qcom_icc_bcm bcm_mm0 = {
1377 .nodes = { &qns_mem_noc_hf },
1380 static struct qcom_icc_bcm bcm_mm1 = {
1384 .nodes = { &qnm_camnoc_hf, &qxm_mdp0, &qxm_mdp1 },
1387 static struct qcom_icc_bcm bcm_mm4 = {
1391 .nodes = { &qns_mem_noc_sf },
1394 static struct qcom_icc_bcm bcm_mm5 = {
1398 .nodes = { &qnm_camnoc_icp,
1407 static struct qcom_icc_bcm bcm_sh0 = {
1411 .nodes = { &qns_llcc },
1414 static struct qcom_icc_bcm bcm_sh2 = {
1418 .nodes = { &alm_gpu_tcu, &alm_sys_tcu },
1421 static struct qcom_icc_bcm bcm_sh3 = {
1425 .nodes = { &qnm_cmpnoc },
1428 static struct qcom_icc_bcm bcm_sh4 = {
1432 .nodes = { &chm_apps },
1435 static struct qcom_icc_bcm bcm_sn0 = {
1439 .nodes = { &qns_gemnoc_sf },
1442 static struct qcom_icc_bcm bcm_sn2 = {
1446 .nodes = { &qns_gemnoc_gc },
1449 static struct qcom_icc_bcm bcm_sn3 = {
1453 .nodes = { &qxs_pimem },
1456 static struct qcom_icc_bcm bcm_sn4 = {
1460 .nodes = { &xs_qdss_stm },
1463 static struct qcom_icc_bcm bcm_sn5 = {
1467 .nodes = { &xm_pcie3_0 },
1470 static struct qcom_icc_bcm bcm_sn6 = {
1474 .nodes = { &xm_pcie3_1 },
1477 static struct qcom_icc_bcm bcm_sn7 = {
1481 .nodes = { &qnm_aggre1_noc },
1484 static struct qcom_icc_bcm bcm_sn8 = {
1488 .nodes = { &qnm_aggre2_noc },
1491 static struct qcom_icc_bcm bcm_sn14 = {
1495 .nodes = { &qns_pcie_mem_noc },
1498 static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
1501 static struct qcom_icc_node * const aggre1_noc_nodes[] = {
1502 [MASTER_QSPI_0] = &qhm_qspi,
1503 [MASTER_QUP_1] = &qhm_qup1,
1504 [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
1505 [MASTER_SDCC_4] = &xm_sdc4,
1506 [MASTER_UFS_MEM] = &xm_ufs_mem,
1507 [MASTER_USB3_0] = &xm_usb3_0,
1508 [MASTER_USB3_1] = &xm_usb3_1,
1509 [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
1510 [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
1513 static const struct qcom_icc_desc sm8350_aggre1_noc = {
1514 .nodes = aggre1_noc_nodes,
1515 .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
1516 .bcms = aggre1_noc_bcms,
1517 .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
1520 static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
1527 static struct qcom_icc_node * const aggre2_noc_nodes[] = {
1528 [MASTER_QDSS_BAM] = &qhm_qdss_bam,
1529 [MASTER_QUP_0] = &qhm_qup0,
1530 [MASTER_QUP_2] = &qhm_qup2,
1531 [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
1532 [MASTER_CRYPTO] = &qxm_crypto,
1533 [MASTER_IPA] = &qxm_ipa,
1534 [MASTER_PCIE_0] = &xm_pcie3_0,
1535 [MASTER_PCIE_1] = &xm_pcie3_1,
1536 [MASTER_QDSS_ETR] = &xm_qdss_etr,
1537 [MASTER_SDCC_2] = &xm_sdc2,
1538 [MASTER_UFS_CARD] = &xm_ufs_card,
1539 [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
1540 [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
1541 [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
1544 static const struct qcom_icc_desc sm8350_aggre2_noc = {
1545 .nodes = aggre2_noc_nodes,
1546 .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
1547 .bcms = aggre2_noc_bcms,
1548 .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
1551 static struct qcom_icc_bcm * const config_noc_bcms[] = {
1559 static struct qcom_icc_node * const config_noc_nodes[] = {
1560 [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
1561 [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
1562 [MASTER_QDSS_DAP] = &xm_qdss_dap,
1563 [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
1564 [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
1565 [SLAVE_AOSS] = &qhs_aoss,
1566 [SLAVE_APPSS] = &qhs_apss,
1567 [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
1568 [SLAVE_CLK_CTL] = &qhs_clk_ctl,
1569 [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
1570 [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
1571 [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
1572 [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
1573 [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
1574 [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
1575 [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
1576 [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
1577 [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
1578 [SLAVE_HWKM] = &qhs_hwkm,
1579 [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
1580 [SLAVE_IPA_CFG] = &qhs_ipa,
1581 [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
1582 [SLAVE_LPASS] = &qhs_lpass_cfg,
1583 [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
1584 [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
1585 [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
1586 [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
1587 [SLAVE_PDM] = &qhs_pdm,
1588 [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
1589 [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
1590 [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
1591 [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
1592 [SLAVE_QSPI_0] = &qhs_qspi,
1593 [SLAVE_QUP_0] = &qhs_qup0,
1594 [SLAVE_QUP_1] = &qhs_qup1,
1595 [SLAVE_QUP_2] = &qhs_qup2,
1596 [SLAVE_SDCC_2] = &qhs_sdc2,
1597 [SLAVE_SDCC_4] = &qhs_sdc4,
1598 [SLAVE_SECURITY] = &qhs_security,
1599 [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
1600 [SLAVE_TCSR] = &qhs_tcsr,
1601 [SLAVE_TLMM] = &qhs_tlmm,
1602 [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
1603 [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
1604 [SLAVE_USB3_0] = &qhs_usb3_0,
1605 [SLAVE_USB3_1] = &qhs_usb3_1,
1606 [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
1607 [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
1608 [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
1609 [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
1610 [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
1611 [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
1612 [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
1613 [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
1614 [SLAVE_IMEM] = &qxs_imem,
1615 [SLAVE_PIMEM] = &qxs_pimem,
1616 [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
1617 [SLAVE_PCIE_0] = &xs_pcie_0,
1618 [SLAVE_PCIE_1] = &xs_pcie_1,
1619 [SLAVE_QDSS_STM] = &xs_qdss_stm,
1620 [SLAVE_TCU] = &xs_sys_tcu_cfg,
1623 static const struct qcom_icc_desc sm8350_config_noc = {
1624 .nodes = config_noc_nodes,
1625 .num_nodes = ARRAY_SIZE(config_noc_nodes),
1626 .bcms = config_noc_bcms,
1627 .num_bcms = ARRAY_SIZE(config_noc_bcms),
1630 static struct qcom_icc_bcm * const dc_noc_bcms[] = {
1633 static struct qcom_icc_node * const dc_noc_nodes[] = {
1634 [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
1635 [SLAVE_LLCC_CFG] = &qhs_llcc,
1636 [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
1639 static const struct qcom_icc_desc sm8350_dc_noc = {
1640 .nodes = dc_noc_nodes,
1641 .num_nodes = ARRAY_SIZE(dc_noc_nodes),
1642 .bcms = dc_noc_bcms,
1643 .num_bcms = ARRAY_SIZE(dc_noc_bcms),
1646 static struct qcom_icc_bcm * const gem_noc_bcms[] = {
1653 static struct qcom_icc_node * const gem_noc_nodes[] = {
1654 [MASTER_GPU_TCU] = &alm_gpu_tcu,
1655 [MASTER_SYS_TCU] = &alm_sys_tcu,
1656 [MASTER_APPSS_PROC] = &chm_apps,
1657 [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
1658 [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
1659 [MASTER_GFX3D] = &qnm_gpu,
1660 [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
1661 [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
1662 [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
1663 [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
1664 [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
1665 [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
1666 [SLAVE_MCDMA_MS_MPU_CFG] = &qhs_modem_ms_mpu_cfg,
1667 [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
1668 [SLAVE_LLCC] = &qns_llcc,
1669 [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
1670 [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
1671 [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
1672 [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
1675 static const struct qcom_icc_desc sm8350_gem_noc = {
1676 .nodes = gem_noc_nodes,
1677 .num_nodes = ARRAY_SIZE(gem_noc_nodes),
1678 .bcms = gem_noc_bcms,
1679 .num_bcms = ARRAY_SIZE(gem_noc_bcms),
1682 static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
1685 static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
1686 [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
1687 [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
1688 [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
1689 [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
1690 [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
1691 [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
1692 [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
1695 static const struct qcom_icc_desc sm8350_lpass_ag_noc = {
1696 .nodes = lpass_ag_noc_nodes,
1697 .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
1698 .bcms = lpass_ag_noc_bcms,
1699 .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
1702 static struct qcom_icc_bcm * const mc_virt_bcms[] = {
1707 static struct qcom_icc_node * const mc_virt_nodes[] = {
1708 [MASTER_LLCC] = &llcc_mc,
1709 [SLAVE_EBI1] = &ebi,
1712 static const struct qcom_icc_desc sm8350_mc_virt = {
1713 .nodes = mc_virt_nodes,
1714 .num_nodes = ARRAY_SIZE(mc_virt_nodes),
1715 .bcms = mc_virt_bcms,
1716 .num_bcms = ARRAY_SIZE(mc_virt_bcms),
1719 static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
1726 static struct qcom_icc_node * const mmss_noc_nodes[] = {
1727 [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
1728 [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
1729 [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
1730 [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
1731 [MASTER_VIDEO_P0] = &qnm_video0,
1732 [MASTER_VIDEO_P1] = &qnm_video1,
1733 [MASTER_VIDEO_PROC] = &qnm_video_cvp,
1734 [MASTER_MDP0] = &qxm_mdp0,
1735 [MASTER_MDP1] = &qxm_mdp1,
1736 [MASTER_ROTATOR] = &qxm_rot,
1737 [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
1738 [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
1739 [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
1742 static const struct qcom_icc_desc sm8350_mmss_noc = {
1743 .nodes = mmss_noc_nodes,
1744 .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
1745 .bcms = mmss_noc_bcms,
1746 .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
1749 static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
1754 static struct qcom_icc_node * const nsp_noc_nodes[] = {
1755 [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
1756 [MASTER_CDSP_PROC] = &qxm_nsp,
1757 [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
1758 [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
1761 static const struct qcom_icc_desc sm8350_compute_noc = {
1762 .nodes = nsp_noc_nodes,
1763 .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
1764 .bcms = nsp_noc_bcms,
1765 .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
1768 static struct qcom_icc_bcm * const system_noc_bcms[] = {
1775 static struct qcom_icc_node * const system_noc_nodes[] = {
1776 [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
1777 [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
1778 [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
1779 [MASTER_PIMEM] = &qxm_pimem,
1780 [MASTER_GIC] = &xm_gic,
1781 [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
1782 [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
1783 [SLAVE_SERVICE_SNOC] = &srvc_snoc,
1786 static const struct qcom_icc_desc sm8350_system_noc = {
1787 .nodes = system_noc_nodes,
1788 .num_nodes = ARRAY_SIZE(system_noc_nodes),
1789 .bcms = system_noc_bcms,
1790 .num_bcms = ARRAY_SIZE(system_noc_bcms),
1793 static const struct of_device_id qnoc_of_match[] = {
1794 { .compatible = "qcom,sm8350-aggre1-noc", .data = &sm8350_aggre1_noc},
1795 { .compatible = "qcom,sm8350-aggre2-noc", .data = &sm8350_aggre2_noc},
1796 { .compatible = "qcom,sm8350-config-noc", .data = &sm8350_config_noc},
1797 { .compatible = "qcom,sm8350-dc-noc", .data = &sm8350_dc_noc},
1798 { .compatible = "qcom,sm8350-gem-noc", .data = &sm8350_gem_noc},
1799 { .compatible = "qcom,sm8350-lpass-ag-noc", .data = &sm8350_lpass_ag_noc},
1800 { .compatible = "qcom,sm8350-mc-virt", .data = &sm8350_mc_virt},
1801 { .compatible = "qcom,sm8350-mmss-noc", .data = &sm8350_mmss_noc},
1802 { .compatible = "qcom,sm8350-compute-noc", .data = &sm8350_compute_noc},
1803 { .compatible = "qcom,sm8350-system-noc", .data = &sm8350_system_noc},
1806 MODULE_DEVICE_TABLE(of, qnoc_of_match);
1808 static struct platform_driver qnoc_driver = {
1809 .probe = qcom_icc_rpmh_probe,
1810 .remove = qcom_icc_rpmh_remove,
1812 .name = "qnoc-sm8350",
1813 .of_match_table = qnoc_of_match,
1814 .sync_state = icc_sync_state,
1817 module_platform_driver(qnoc_driver);
1819 MODULE_DESCRIPTION("SM8350 NoC driver");
1820 MODULE_LICENSE("GPL v2");