1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
7 #include <linux/device.h>
8 #include <linux/interconnect.h>
9 #include <linux/interconnect-provider.h>
10 #include <linux/mod_devicetable.h>
11 #include <linux/module.h>
12 #include <linux/platform_device.h>
13 #include <dt-bindings/interconnect/qcom,sc7280.h>
15 #include "bcm-voter.h"
19 static struct qcom_icc_node qhm_qspi = {
21 .id = SC7280_MASTER_QSPI_0,
25 .links = { SC7280_SLAVE_A1NOC_SNOC },
28 static struct qcom_icc_node qhm_qup0 = {
30 .id = SC7280_MASTER_QUP_0,
34 .links = { SC7280_SLAVE_A1NOC_SNOC },
37 static struct qcom_icc_node qhm_qup1 = {
39 .id = SC7280_MASTER_QUP_1,
43 .links = { SC7280_SLAVE_A1NOC_SNOC },
46 static struct qcom_icc_node qnm_a1noc_cfg = {
47 .name = "qnm_a1noc_cfg",
48 .id = SC7280_MASTER_A1NOC_CFG,
52 .links = { SC7280_SLAVE_SERVICE_A1NOC },
55 static struct qcom_icc_node xm_sdc1 = {
57 .id = SC7280_MASTER_SDCC_1,
61 .links = { SC7280_SLAVE_A1NOC_SNOC },
64 static struct qcom_icc_node xm_sdc2 = {
66 .id = SC7280_MASTER_SDCC_2,
70 .links = { SC7280_SLAVE_A1NOC_SNOC },
73 static struct qcom_icc_node xm_sdc4 = {
75 .id = SC7280_MASTER_SDCC_4,
79 .links = { SC7280_SLAVE_A1NOC_SNOC },
82 static struct qcom_icc_node xm_ufs_mem = {
84 .id = SC7280_MASTER_UFS_MEM,
88 .links = { SC7280_SLAVE_A1NOC_SNOC },
91 static struct qcom_icc_node xm_usb2 = {
93 .id = SC7280_MASTER_USB2,
97 .links = { SC7280_SLAVE_A1NOC_SNOC },
100 static struct qcom_icc_node xm_usb3_0 = {
102 .id = SC7280_MASTER_USB3_0,
106 .links = { SC7280_SLAVE_A1NOC_SNOC },
109 static struct qcom_icc_node qhm_qdss_bam = {
110 .name = "qhm_qdss_bam",
111 .id = SC7280_MASTER_QDSS_BAM,
115 .links = { SC7280_SLAVE_A2NOC_SNOC },
118 static struct qcom_icc_node qnm_a2noc_cfg = {
119 .name = "qnm_a2noc_cfg",
120 .id = SC7280_MASTER_A2NOC_CFG,
124 .links = { SC7280_SLAVE_SERVICE_A2NOC },
127 static struct qcom_icc_node qnm_cnoc_datapath = {
128 .name = "qnm_cnoc_datapath",
129 .id = SC7280_MASTER_CNOC_A2NOC,
133 .links = { SC7280_SLAVE_A2NOC_SNOC },
136 static struct qcom_icc_node qxm_crypto = {
137 .name = "qxm_crypto",
138 .id = SC7280_MASTER_CRYPTO,
142 .links = { SC7280_SLAVE_A2NOC_SNOC },
145 static struct qcom_icc_node qxm_ipa = {
147 .id = SC7280_MASTER_IPA,
151 .links = { SC7280_SLAVE_A2NOC_SNOC },
154 static struct qcom_icc_node xm_pcie3_0 = {
155 .name = "xm_pcie3_0",
156 .id = SC7280_MASTER_PCIE_0,
160 .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
163 static struct qcom_icc_node xm_pcie3_1 = {
164 .name = "xm_pcie3_1",
165 .id = SC7280_MASTER_PCIE_1,
168 .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
171 static struct qcom_icc_node xm_qdss_etr = {
172 .name = "xm_qdss_etr",
173 .id = SC7280_MASTER_QDSS_ETR,
177 .links = { SC7280_SLAVE_A2NOC_SNOC },
180 static struct qcom_icc_node qup0_core_master = {
181 .name = "qup0_core_master",
182 .id = SC7280_MASTER_QUP_CORE_0,
186 .links = { SC7280_SLAVE_QUP_CORE_0 },
189 static struct qcom_icc_node qup1_core_master = {
190 .name = "qup1_core_master",
191 .id = SC7280_MASTER_QUP_CORE_1,
195 .links = { SC7280_SLAVE_QUP_CORE_1 },
198 static struct qcom_icc_node qnm_cnoc3_cnoc2 = {
199 .name = "qnm_cnoc3_cnoc2",
200 .id = SC7280_MASTER_CNOC3_CNOC2,
204 .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
205 SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
206 SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
207 SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
208 SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
209 SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
210 SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
211 SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
212 SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
213 SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
214 SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
215 SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
216 SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
217 SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
218 SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
219 SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
220 SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
221 SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
222 SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
223 SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
224 SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
225 SC7280_SLAVE_CNOC_MNOC_CFG, SC7280_SLAVE_SNOC_CFG },
228 static struct qcom_icc_node xm_qdss_dap = {
229 .name = "xm_qdss_dap",
230 .id = SC7280_MASTER_QDSS_DAP,
234 .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
235 SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
236 SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
237 SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
238 SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
239 SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
240 SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
241 SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
242 SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
243 SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
244 SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
245 SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
246 SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
247 SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
248 SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
249 SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
250 SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
251 SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
252 SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
253 SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
254 SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
255 SC7280_SLAVE_CNOC2_CNOC3, SC7280_SLAVE_CNOC_MNOC_CFG,
256 SC7280_SLAVE_SNOC_CFG },
259 static struct qcom_icc_node qnm_cnoc2_cnoc3 = {
260 .name = "qnm_cnoc2_cnoc3",
261 .id = SC7280_MASTER_CNOC2_CNOC3,
265 .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
266 SC7280_SLAVE_CNOC_A2NOC, SC7280_SLAVE_DDRSS_CFG,
267 SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
268 SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
272 static struct qcom_icc_node qnm_gemnoc_cnoc = {
273 .name = "qnm_gemnoc_cnoc",
274 .id = SC7280_MASTER_GEM_NOC_CNOC,
278 .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
279 SC7280_SLAVE_CNOC3_CNOC2, SC7280_SLAVE_DDRSS_CFG,
280 SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
281 SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
285 static struct qcom_icc_node qnm_gemnoc_pcie = {
286 .name = "qnm_gemnoc_pcie",
287 .id = SC7280_MASTER_GEM_NOC_PCIE_SNOC,
291 .links = { SC7280_SLAVE_PCIE_0, SC7280_SLAVE_PCIE_1 },
294 static struct qcom_icc_node qnm_cnoc_dc_noc = {
295 .name = "qnm_cnoc_dc_noc",
296 .id = SC7280_MASTER_CNOC_DC_NOC,
300 .links = { SC7280_SLAVE_LLCC_CFG, SC7280_SLAVE_GEM_NOC_CFG },
303 static struct qcom_icc_node alm_gpu_tcu = {
304 .name = "alm_gpu_tcu",
305 .id = SC7280_MASTER_GPU_TCU,
309 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
312 static struct qcom_icc_node alm_sys_tcu = {
313 .name = "alm_sys_tcu",
314 .id = SC7280_MASTER_SYS_TCU,
318 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
321 static struct qcom_icc_node chm_apps = {
323 .id = SC7280_MASTER_APPSS_PROC,
327 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
328 SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
331 static struct qcom_icc_node qnm_cmpnoc = {
332 .name = "qnm_cmpnoc",
333 .id = SC7280_MASTER_COMPUTE_NOC,
337 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
340 static struct qcom_icc_node qnm_gemnoc_cfg = {
341 .name = "qnm_gemnoc_cfg",
342 .id = SC7280_MASTER_GEM_NOC_CFG,
346 .links = { SC7280_SLAVE_MSS_PROC_MS_MPU_CFG, SC7280_SLAVE_MCDMA_MS_MPU_CFG,
347 SC7280_SLAVE_SERVICE_GEM_NOC_1, SC7280_SLAVE_SERVICE_GEM_NOC_2,
348 SC7280_SLAVE_SERVICE_GEM_NOC },
351 static struct qcom_icc_node qnm_gpu = {
353 .id = SC7280_MASTER_GFX3D,
357 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
360 static struct qcom_icc_node qnm_mnoc_hf = {
361 .name = "qnm_mnoc_hf",
362 .id = SC7280_MASTER_MNOC_HF_MEM_NOC,
366 .links = { SC7280_SLAVE_LLCC },
369 static struct qcom_icc_node qnm_mnoc_sf = {
370 .name = "qnm_mnoc_sf",
371 .id = SC7280_MASTER_MNOC_SF_MEM_NOC,
375 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
378 static struct qcom_icc_node qnm_pcie = {
380 .id = SC7280_MASTER_ANOC_PCIE_GEM_NOC,
384 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
387 static struct qcom_icc_node qnm_snoc_gc = {
388 .name = "qnm_snoc_gc",
389 .id = SC7280_MASTER_SNOC_GC_MEM_NOC,
393 .links = { SC7280_SLAVE_LLCC },
396 static struct qcom_icc_node qnm_snoc_sf = {
397 .name = "qnm_snoc_sf",
398 .id = SC7280_MASTER_SNOC_SF_MEM_NOC,
402 .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
403 SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
406 static struct qcom_icc_node qhm_config_noc = {
407 .name = "qhm_config_noc",
408 .id = SC7280_MASTER_CNOC_LPASS_AG_NOC,
412 .links = { SC7280_SLAVE_LPASS_CORE_CFG, SC7280_SLAVE_LPASS_LPI_CFG,
413 SC7280_SLAVE_LPASS_MPU_CFG, SC7280_SLAVE_LPASS_TOP_CFG,
414 SC7280_SLAVE_SERVICES_LPASS_AML_NOC, SC7280_SLAVE_SERVICE_LPASS_AG_NOC },
417 static struct qcom_icc_node llcc_mc = {
419 .id = SC7280_MASTER_LLCC,
423 .links = { SC7280_SLAVE_EBI1 },
426 static struct qcom_icc_node qnm_mnoc_cfg = {
427 .name = "qnm_mnoc_cfg",
428 .id = SC7280_MASTER_CNOC_MNOC_CFG,
432 .links = { SC7280_SLAVE_SERVICE_MNOC },
435 static struct qcom_icc_node qnm_video0 = {
436 .name = "qnm_video0",
437 .id = SC7280_MASTER_VIDEO_P0,
441 .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
444 static struct qcom_icc_node qnm_video_cpu = {
445 .name = "qnm_video_cpu",
446 .id = SC7280_MASTER_VIDEO_PROC,
450 .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
453 static struct qcom_icc_node qxm_camnoc_hf = {
454 .name = "qxm_camnoc_hf",
455 .id = SC7280_MASTER_CAMNOC_HF,
459 .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
462 static struct qcom_icc_node qxm_camnoc_icp = {
463 .name = "qxm_camnoc_icp",
464 .id = SC7280_MASTER_CAMNOC_ICP,
468 .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
471 static struct qcom_icc_node qxm_camnoc_sf = {
472 .name = "qxm_camnoc_sf",
473 .id = SC7280_MASTER_CAMNOC_SF,
477 .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
480 static struct qcom_icc_node qxm_mdp0 = {
482 .id = SC7280_MASTER_MDP0,
486 .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
489 static struct qcom_icc_node qhm_nsp_noc_config = {
490 .name = "qhm_nsp_noc_config",
491 .id = SC7280_MASTER_CDSP_NOC_CFG,
495 .links = { SC7280_SLAVE_SERVICE_NSP_NOC },
498 static struct qcom_icc_node qxm_nsp = {
500 .id = SC7280_MASTER_CDSP_PROC,
504 .links = { SC7280_SLAVE_CDSP_MEM_NOC },
507 static struct qcom_icc_node qnm_aggre1_noc = {
508 .name = "qnm_aggre1_noc",
509 .id = SC7280_MASTER_A1NOC_SNOC,
513 .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
516 static struct qcom_icc_node qnm_aggre2_noc = {
517 .name = "qnm_aggre2_noc",
518 .id = SC7280_MASTER_A2NOC_SNOC,
522 .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
525 static struct qcom_icc_node qnm_snoc_cfg = {
526 .name = "qnm_snoc_cfg",
527 .id = SC7280_MASTER_SNOC_CFG,
531 .links = { SC7280_SLAVE_SERVICE_SNOC },
534 static struct qcom_icc_node qxm_pimem = {
536 .id = SC7280_MASTER_PIMEM,
540 .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
543 static struct qcom_icc_node xm_gic = {
545 .id = SC7280_MASTER_GIC,
549 .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
552 static struct qcom_icc_node qns_a1noc_snoc = {
553 .name = "qns_a1noc_snoc",
554 .id = SC7280_SLAVE_A1NOC_SNOC,
558 .links = { SC7280_MASTER_A1NOC_SNOC },
561 static struct qcom_icc_node srvc_aggre1_noc = {
562 .name = "srvc_aggre1_noc",
563 .id = SC7280_SLAVE_SERVICE_A1NOC,
569 static struct qcom_icc_node qns_a2noc_snoc = {
570 .name = "qns_a2noc_snoc",
571 .id = SC7280_SLAVE_A2NOC_SNOC,
575 .links = { SC7280_MASTER_A2NOC_SNOC },
578 static struct qcom_icc_node qns_pcie_mem_noc = {
579 .name = "qns_pcie_mem_noc",
580 .id = SC7280_SLAVE_ANOC_PCIE_GEM_NOC,
584 .links = { SC7280_MASTER_ANOC_PCIE_GEM_NOC },
587 static struct qcom_icc_node srvc_aggre2_noc = {
588 .name = "srvc_aggre2_noc",
589 .id = SC7280_SLAVE_SERVICE_A2NOC,
595 static struct qcom_icc_node qup0_core_slave = {
596 .name = "qup0_core_slave",
597 .id = SC7280_SLAVE_QUP_CORE_0,
603 static struct qcom_icc_node qup1_core_slave = {
604 .name = "qup1_core_slave",
605 .id = SC7280_SLAVE_QUP_CORE_1,
611 static struct qcom_icc_node qhs_ahb2phy0 = {
612 .name = "qhs_ahb2phy0",
613 .id = SC7280_SLAVE_AHB2PHY_SOUTH,
619 static struct qcom_icc_node qhs_ahb2phy1 = {
620 .name = "qhs_ahb2phy1",
621 .id = SC7280_SLAVE_AHB2PHY_NORTH,
627 static struct qcom_icc_node qhs_camera_cfg = {
628 .name = "qhs_camera_cfg",
629 .id = SC7280_SLAVE_CAMERA_CFG,
635 static struct qcom_icc_node qhs_clk_ctl = {
636 .name = "qhs_clk_ctl",
637 .id = SC7280_SLAVE_CLK_CTL,
643 static struct qcom_icc_node qhs_compute_cfg = {
644 .name = "qhs_compute_cfg",
645 .id = SC7280_SLAVE_CDSP_CFG,
649 .links = { SC7280_MASTER_CDSP_NOC_CFG },
652 static struct qcom_icc_node qhs_cpr_cx = {
653 .name = "qhs_cpr_cx",
654 .id = SC7280_SLAVE_RBCPR_CX_CFG,
660 static struct qcom_icc_node qhs_cpr_mx = {
661 .name = "qhs_cpr_mx",
662 .id = SC7280_SLAVE_RBCPR_MX_CFG,
668 static struct qcom_icc_node qhs_crypto0_cfg = {
669 .name = "qhs_crypto0_cfg",
670 .id = SC7280_SLAVE_CRYPTO_0_CFG,
676 static struct qcom_icc_node qhs_cx_rdpm = {
677 .name = "qhs_cx_rdpm",
678 .id = SC7280_SLAVE_CX_RDPM,
684 static struct qcom_icc_node qhs_dcc_cfg = {
685 .name = "qhs_dcc_cfg",
686 .id = SC7280_SLAVE_DCC_CFG,
692 static struct qcom_icc_node qhs_display_cfg = {
693 .name = "qhs_display_cfg",
694 .id = SC7280_SLAVE_DISPLAY_CFG,
700 static struct qcom_icc_node qhs_gpuss_cfg = {
701 .name = "qhs_gpuss_cfg",
702 .id = SC7280_SLAVE_GFX3D_CFG,
708 static struct qcom_icc_node qhs_hwkm = {
710 .id = SC7280_SLAVE_HWKM,
716 static struct qcom_icc_node qhs_imem_cfg = {
717 .name = "qhs_imem_cfg",
718 .id = SC7280_SLAVE_IMEM_CFG,
724 static struct qcom_icc_node qhs_ipa = {
726 .id = SC7280_SLAVE_IPA_CFG,
732 static struct qcom_icc_node qhs_ipc_router = {
733 .name = "qhs_ipc_router",
734 .id = SC7280_SLAVE_IPC_ROUTER_CFG,
740 static struct qcom_icc_node qhs_lpass_cfg = {
741 .name = "qhs_lpass_cfg",
742 .id = SC7280_SLAVE_LPASS,
746 .links = { SC7280_MASTER_CNOC_LPASS_AG_NOC },
749 static struct qcom_icc_node qhs_mss_cfg = {
750 .name = "qhs_mss_cfg",
751 .id = SC7280_SLAVE_CNOC_MSS,
757 static struct qcom_icc_node qhs_mx_rdpm = {
758 .name = "qhs_mx_rdpm",
759 .id = SC7280_SLAVE_MX_RDPM,
765 static struct qcom_icc_node qhs_pcie0_cfg = {
766 .name = "qhs_pcie0_cfg",
767 .id = SC7280_SLAVE_PCIE_0_CFG,
773 static struct qcom_icc_node qhs_pcie1_cfg = {
774 .name = "qhs_pcie1_cfg",
775 .id = SC7280_SLAVE_PCIE_1_CFG,
781 static struct qcom_icc_node qhs_pdm = {
783 .id = SC7280_SLAVE_PDM,
789 static struct qcom_icc_node qhs_pimem_cfg = {
790 .name = "qhs_pimem_cfg",
791 .id = SC7280_SLAVE_PIMEM_CFG,
797 static struct qcom_icc_node qhs_pka_wrapper_cfg = {
798 .name = "qhs_pka_wrapper_cfg",
799 .id = SC7280_SLAVE_PKA_WRAPPER_CFG,
805 static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
806 .name = "qhs_pmu_wrapper_cfg",
807 .id = SC7280_SLAVE_PMU_WRAPPER_CFG,
813 static struct qcom_icc_node qhs_qdss_cfg = {
814 .name = "qhs_qdss_cfg",
815 .id = SC7280_SLAVE_QDSS_CFG,
821 static struct qcom_icc_node qhs_qspi = {
823 .id = SC7280_SLAVE_QSPI_0,
829 static struct qcom_icc_node qhs_qup0 = {
831 .id = SC7280_SLAVE_QUP_0,
837 static struct qcom_icc_node qhs_qup1 = {
839 .id = SC7280_SLAVE_QUP_1,
845 static struct qcom_icc_node qhs_sdc1 = {
847 .id = SC7280_SLAVE_SDCC_1,
853 static struct qcom_icc_node qhs_sdc2 = {
855 .id = SC7280_SLAVE_SDCC_2,
861 static struct qcom_icc_node qhs_sdc4 = {
863 .id = SC7280_SLAVE_SDCC_4,
869 static struct qcom_icc_node qhs_security = {
870 .name = "qhs_security",
871 .id = SC7280_SLAVE_SECURITY,
877 static struct qcom_icc_node qhs_tcsr = {
879 .id = SC7280_SLAVE_TCSR,
885 static struct qcom_icc_node qhs_tlmm = {
887 .id = SC7280_SLAVE_TLMM,
893 static struct qcom_icc_node qhs_ufs_mem_cfg = {
894 .name = "qhs_ufs_mem_cfg",
895 .id = SC7280_SLAVE_UFS_MEM_CFG,
901 static struct qcom_icc_node qhs_usb2 = {
903 .id = SC7280_SLAVE_USB2,
909 static struct qcom_icc_node qhs_usb3_0 = {
910 .name = "qhs_usb3_0",
911 .id = SC7280_SLAVE_USB3_0,
917 static struct qcom_icc_node qhs_venus_cfg = {
918 .name = "qhs_venus_cfg",
919 .id = SC7280_SLAVE_VENUS_CFG,
925 static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
926 .name = "qhs_vsense_ctrl_cfg",
927 .id = SC7280_SLAVE_VSENSE_CTRL_CFG,
933 static struct qcom_icc_node qns_a1_noc_cfg = {
934 .name = "qns_a1_noc_cfg",
935 .id = SC7280_SLAVE_A1NOC_CFG,
939 .links = { SC7280_MASTER_A1NOC_CFG },
942 static struct qcom_icc_node qns_a2_noc_cfg = {
943 .name = "qns_a2_noc_cfg",
944 .id = SC7280_SLAVE_A2NOC_CFG,
948 .links = { SC7280_MASTER_A2NOC_CFG },
951 static struct qcom_icc_node qns_cnoc2_cnoc3 = {
952 .name = "qns_cnoc2_cnoc3",
953 .id = SC7280_SLAVE_CNOC2_CNOC3,
957 .links = { SC7280_MASTER_CNOC2_CNOC3 },
960 static struct qcom_icc_node qns_mnoc_cfg = {
961 .name = "qns_mnoc_cfg",
962 .id = SC7280_SLAVE_CNOC_MNOC_CFG,
966 .links = { SC7280_MASTER_CNOC_MNOC_CFG },
969 static struct qcom_icc_node qns_snoc_cfg = {
970 .name = "qns_snoc_cfg",
971 .id = SC7280_SLAVE_SNOC_CFG,
975 .links = { SC7280_MASTER_SNOC_CFG },
978 static struct qcom_icc_node qhs_aoss = {
980 .id = SC7280_SLAVE_AOSS,
986 static struct qcom_icc_node qhs_apss = {
988 .id = SC7280_SLAVE_APPSS,
994 static struct qcom_icc_node qns_cnoc3_cnoc2 = {
995 .name = "qns_cnoc3_cnoc2",
996 .id = SC7280_SLAVE_CNOC3_CNOC2,
1000 .links = { SC7280_MASTER_CNOC3_CNOC2 },
1003 static struct qcom_icc_node qns_cnoc_a2noc = {
1004 .name = "qns_cnoc_a2noc",
1005 .id = SC7280_SLAVE_CNOC_A2NOC,
1009 .links = { SC7280_MASTER_CNOC_A2NOC },
1012 static struct qcom_icc_node qns_ddrss_cfg = {
1013 .name = "qns_ddrss_cfg",
1014 .id = SC7280_SLAVE_DDRSS_CFG,
1018 .links = { SC7280_MASTER_CNOC_DC_NOC },
1021 static struct qcom_icc_node qxs_boot_imem = {
1022 .name = "qxs_boot_imem",
1023 .id = SC7280_SLAVE_BOOT_IMEM,
1029 static struct qcom_icc_node qxs_imem = {
1031 .id = SC7280_SLAVE_IMEM,
1037 static struct qcom_icc_node qxs_pimem = {
1038 .name = "qxs_pimem",
1039 .id = SC7280_SLAVE_PIMEM,
1045 static struct qcom_icc_node xs_pcie_0 = {
1046 .name = "xs_pcie_0",
1047 .id = SC7280_SLAVE_PCIE_0,
1053 static struct qcom_icc_node xs_pcie_1 = {
1054 .name = "xs_pcie_1",
1055 .id = SC7280_SLAVE_PCIE_1,
1061 static struct qcom_icc_node xs_qdss_stm = {
1062 .name = "xs_qdss_stm",
1063 .id = SC7280_SLAVE_QDSS_STM,
1069 static struct qcom_icc_node xs_sys_tcu_cfg = {
1070 .name = "xs_sys_tcu_cfg",
1071 .id = SC7280_SLAVE_TCU,
1077 static struct qcom_icc_node qhs_llcc = {
1079 .id = SC7280_SLAVE_LLCC_CFG,
1085 static struct qcom_icc_node qns_gemnoc = {
1086 .name = "qns_gemnoc",
1087 .id = SC7280_SLAVE_GEM_NOC_CFG,
1091 .links = { SC7280_MASTER_GEM_NOC_CFG },
1094 static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
1095 .name = "qhs_mdsp_ms_mpu_cfg",
1096 .id = SC7280_SLAVE_MSS_PROC_MS_MPU_CFG,
1102 static struct qcom_icc_node qhs_modem_ms_mpu_cfg = {
1103 .name = "qhs_modem_ms_mpu_cfg",
1104 .id = SC7280_SLAVE_MCDMA_MS_MPU_CFG,
1110 static struct qcom_icc_node qns_gem_noc_cnoc = {
1111 .name = "qns_gem_noc_cnoc",
1112 .id = SC7280_SLAVE_GEM_NOC_CNOC,
1116 .links = { SC7280_MASTER_GEM_NOC_CNOC },
1119 static struct qcom_icc_node qns_llcc = {
1121 .id = SC7280_SLAVE_LLCC,
1125 .links = { SC7280_MASTER_LLCC },
1128 static struct qcom_icc_node qns_pcie = {
1130 .id = SC7280_SLAVE_MEM_NOC_PCIE_SNOC,
1134 .links = { SC7280_MASTER_GEM_NOC_PCIE_SNOC },
1137 static struct qcom_icc_node srvc_even_gemnoc = {
1138 .name = "srvc_even_gemnoc",
1139 .id = SC7280_SLAVE_SERVICE_GEM_NOC_1,
1145 static struct qcom_icc_node srvc_odd_gemnoc = {
1146 .name = "srvc_odd_gemnoc",
1147 .id = SC7280_SLAVE_SERVICE_GEM_NOC_2,
1153 static struct qcom_icc_node srvc_sys_gemnoc = {
1154 .name = "srvc_sys_gemnoc",
1155 .id = SC7280_SLAVE_SERVICE_GEM_NOC,
1161 static struct qcom_icc_node qhs_lpass_core = {
1162 .name = "qhs_lpass_core",
1163 .id = SC7280_SLAVE_LPASS_CORE_CFG,
1169 static struct qcom_icc_node qhs_lpass_lpi = {
1170 .name = "qhs_lpass_lpi",
1171 .id = SC7280_SLAVE_LPASS_LPI_CFG,
1177 static struct qcom_icc_node qhs_lpass_mpu = {
1178 .name = "qhs_lpass_mpu",
1179 .id = SC7280_SLAVE_LPASS_MPU_CFG,
1185 static struct qcom_icc_node qhs_lpass_top = {
1186 .name = "qhs_lpass_top",
1187 .id = SC7280_SLAVE_LPASS_TOP_CFG,
1193 static struct qcom_icc_node srvc_niu_aml_noc = {
1194 .name = "srvc_niu_aml_noc",
1195 .id = SC7280_SLAVE_SERVICES_LPASS_AML_NOC,
1201 static struct qcom_icc_node srvc_niu_lpass_agnoc = {
1202 .name = "srvc_niu_lpass_agnoc",
1203 .id = SC7280_SLAVE_SERVICE_LPASS_AG_NOC,
1209 static struct qcom_icc_node ebi = {
1211 .id = SC7280_SLAVE_EBI1,
1217 static struct qcom_icc_node qns_mem_noc_hf = {
1218 .name = "qns_mem_noc_hf",
1219 .id = SC7280_SLAVE_MNOC_HF_MEM_NOC,
1223 .links = { SC7280_MASTER_MNOC_HF_MEM_NOC },
1226 static struct qcom_icc_node qns_mem_noc_sf = {
1227 .name = "qns_mem_noc_sf",
1228 .id = SC7280_SLAVE_MNOC_SF_MEM_NOC,
1232 .links = { SC7280_MASTER_MNOC_SF_MEM_NOC },
1235 static struct qcom_icc_node srvc_mnoc = {
1236 .name = "srvc_mnoc",
1237 .id = SC7280_SLAVE_SERVICE_MNOC,
1243 static struct qcom_icc_node qns_nsp_gemnoc = {
1244 .name = "qns_nsp_gemnoc",
1245 .id = SC7280_SLAVE_CDSP_MEM_NOC,
1249 .links = { SC7280_MASTER_COMPUTE_NOC },
1252 static struct qcom_icc_node service_nsp_noc = {
1253 .name = "service_nsp_noc",
1254 .id = SC7280_SLAVE_SERVICE_NSP_NOC,
1260 static struct qcom_icc_node qns_gemnoc_gc = {
1261 .name = "qns_gemnoc_gc",
1262 .id = SC7280_SLAVE_SNOC_GEM_NOC_GC,
1266 .links = { SC7280_MASTER_SNOC_GC_MEM_NOC },
1269 static struct qcom_icc_node qns_gemnoc_sf = {
1270 .name = "qns_gemnoc_sf",
1271 .id = SC7280_SLAVE_SNOC_GEM_NOC_SF,
1275 .links = { SC7280_MASTER_SNOC_SF_MEM_NOC },
1278 static struct qcom_icc_node srvc_snoc = {
1279 .name = "srvc_snoc",
1280 .id = SC7280_SLAVE_SERVICE_SNOC,
1286 static struct qcom_icc_bcm bcm_acv = {
1292 static struct qcom_icc_bcm bcm_ce0 = {
1295 .nodes = { &qxm_crypto },
1298 static struct qcom_icc_bcm bcm_cn0 = {
1302 .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
1305 static struct qcom_icc_bcm bcm_cn1 = {
1308 .nodes = { &qnm_cnoc3_cnoc2, &xm_qdss_dap,
1309 &qhs_ahb2phy0, &qhs_ahb2phy1,
1310 &qhs_camera_cfg, &qhs_clk_ctl,
1311 &qhs_compute_cfg, &qhs_cpr_cx,
1312 &qhs_cpr_mx, &qhs_crypto0_cfg,
1313 &qhs_cx_rdpm, &qhs_dcc_cfg,
1314 &qhs_display_cfg, &qhs_gpuss_cfg,
1315 &qhs_hwkm, &qhs_imem_cfg,
1316 &qhs_ipa, &qhs_ipc_router,
1317 &qhs_mss_cfg, &qhs_mx_rdpm,
1318 &qhs_pcie0_cfg, &qhs_pcie1_cfg,
1319 &qhs_pimem_cfg, &qhs_pka_wrapper_cfg,
1320 &qhs_pmu_wrapper_cfg, &qhs_qdss_cfg,
1321 &qhs_qup0, &qhs_qup1,
1322 &qhs_security, &qhs_tcsr,
1323 &qhs_tlmm, &qhs_ufs_mem_cfg, &qhs_usb2,
1324 &qhs_usb3_0, &qhs_venus_cfg,
1325 &qhs_vsense_ctrl_cfg, &qns_a1_noc_cfg,
1326 &qns_a2_noc_cfg, &qns_cnoc2_cnoc3,
1327 &qns_mnoc_cfg, &qns_snoc_cfg,
1328 &qnm_cnoc2_cnoc3, &qhs_aoss,
1329 &qhs_apss, &qns_cnoc3_cnoc2,
1330 &qns_cnoc_a2noc, &qns_ddrss_cfg },
1333 static struct qcom_icc_bcm bcm_cn2 = {
1336 .nodes = { &qhs_lpass_cfg, &qhs_pdm,
1337 &qhs_qspi, &qhs_sdc1,
1338 &qhs_sdc2, &qhs_sdc4 },
1341 static struct qcom_icc_bcm bcm_co0 = {
1344 .nodes = { &qns_nsp_gemnoc },
1347 static struct qcom_icc_bcm bcm_co3 = {
1350 .nodes = { &qxm_nsp },
1353 static struct qcom_icc_bcm bcm_mc0 = {
1360 static struct qcom_icc_bcm bcm_mm0 = {
1364 .nodes = { &qns_mem_noc_hf },
1367 static struct qcom_icc_bcm bcm_mm1 = {
1370 .nodes = { &qxm_camnoc_hf, &qxm_mdp0 },
1373 static struct qcom_icc_bcm bcm_mm4 = {
1376 .nodes = { &qns_mem_noc_sf },
1379 static struct qcom_icc_bcm bcm_mm5 = {
1382 .nodes = { &qnm_video0, &qxm_camnoc_icp,
1386 static struct qcom_icc_bcm bcm_qup0 = {
1390 .nodes = { &qup0_core_slave },
1393 static struct qcom_icc_bcm bcm_qup1 = {
1397 .nodes = { &qup1_core_slave },
1400 static struct qcom_icc_bcm bcm_sh0 = {
1404 .nodes = { &qns_llcc },
1407 static struct qcom_icc_bcm bcm_sh2 = {
1410 .nodes = { &alm_gpu_tcu, &alm_sys_tcu },
1413 static struct qcom_icc_bcm bcm_sh3 = {
1416 .nodes = { &qnm_cmpnoc },
1419 static struct qcom_icc_bcm bcm_sh4 = {
1422 .nodes = { &chm_apps },
1425 static struct qcom_icc_bcm bcm_sn0 = {
1429 .nodes = { &qns_gemnoc_sf },
1432 static struct qcom_icc_bcm bcm_sn2 = {
1435 .nodes = { &qns_gemnoc_gc },
1438 static struct qcom_icc_bcm bcm_sn3 = {
1441 .nodes = { &qxs_pimem },
1444 static struct qcom_icc_bcm bcm_sn4 = {
1447 .nodes = { &xs_qdss_stm },
1450 static struct qcom_icc_bcm bcm_sn5 = {
1453 .nodes = { &xm_pcie3_0 },
1456 static struct qcom_icc_bcm bcm_sn6 = {
1459 .nodes = { &xm_pcie3_1 },
1462 static struct qcom_icc_bcm bcm_sn7 = {
1465 .nodes = { &qnm_aggre1_noc },
1468 static struct qcom_icc_bcm bcm_sn8 = {
1471 .nodes = { &qnm_aggre2_noc },
1474 static struct qcom_icc_bcm bcm_sn14 = {
1477 .nodes = { &qns_pcie_mem_noc },
1480 static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
1486 static struct qcom_icc_node * const aggre1_noc_nodes[] = {
1487 [MASTER_QSPI_0] = &qhm_qspi,
1488 [MASTER_QUP_0] = &qhm_qup0,
1489 [MASTER_QUP_1] = &qhm_qup1,
1490 [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
1491 [MASTER_PCIE_0] = &xm_pcie3_0,
1492 [MASTER_PCIE_1] = &xm_pcie3_1,
1493 [MASTER_SDCC_1] = &xm_sdc1,
1494 [MASTER_SDCC_2] = &xm_sdc2,
1495 [MASTER_SDCC_4] = &xm_sdc4,
1496 [MASTER_UFS_MEM] = &xm_ufs_mem,
1497 [MASTER_USB2] = &xm_usb2,
1498 [MASTER_USB3_0] = &xm_usb3_0,
1499 [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
1500 [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
1501 [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
1504 static const struct qcom_icc_desc sc7280_aggre1_noc = {
1505 .nodes = aggre1_noc_nodes,
1506 .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
1507 .bcms = aggre1_noc_bcms,
1508 .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
1511 static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
1515 static struct qcom_icc_node * const aggre2_noc_nodes[] = {
1516 [MASTER_QDSS_BAM] = &qhm_qdss_bam,
1517 [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
1518 [MASTER_CNOC_A2NOC] = &qnm_cnoc_datapath,
1519 [MASTER_CRYPTO] = &qxm_crypto,
1520 [MASTER_IPA] = &qxm_ipa,
1521 [MASTER_QDSS_ETR] = &xm_qdss_etr,
1522 [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
1523 [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
1526 static const struct qcom_icc_desc sc7280_aggre2_noc = {
1527 .nodes = aggre2_noc_nodes,
1528 .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
1529 .bcms = aggre2_noc_bcms,
1530 .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
1533 static struct qcom_icc_bcm * const clk_virt_bcms[] = {
1538 static struct qcom_icc_node * const clk_virt_nodes[] = {
1539 [MASTER_QUP_CORE_0] = &qup0_core_master,
1540 [MASTER_QUP_CORE_1] = &qup1_core_master,
1541 [SLAVE_QUP_CORE_0] = &qup0_core_slave,
1542 [SLAVE_QUP_CORE_1] = &qup1_core_slave,
1545 static const struct qcom_icc_desc sc7280_clk_virt = {
1546 .nodes = clk_virt_nodes,
1547 .num_nodes = ARRAY_SIZE(clk_virt_nodes),
1548 .bcms = clk_virt_bcms,
1549 .num_bcms = ARRAY_SIZE(clk_virt_bcms),
1552 static struct qcom_icc_bcm * const cnoc2_bcms[] = {
1557 static struct qcom_icc_node * const cnoc2_nodes[] = {
1558 [MASTER_CNOC3_CNOC2] = &qnm_cnoc3_cnoc2,
1559 [MASTER_QDSS_DAP] = &xm_qdss_dap,
1560 [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
1561 [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
1562 [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
1563 [SLAVE_CLK_CTL] = &qhs_clk_ctl,
1564 [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
1565 [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
1566 [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
1567 [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
1568 [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
1569 [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
1570 [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
1571 [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
1572 [SLAVE_HWKM] = &qhs_hwkm,
1573 [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
1574 [SLAVE_IPA_CFG] = &qhs_ipa,
1575 [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
1576 [SLAVE_LPASS] = &qhs_lpass_cfg,
1577 [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
1578 [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
1579 [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
1580 [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
1581 [SLAVE_PDM] = &qhs_pdm,
1582 [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
1583 [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
1584 [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
1585 [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
1586 [SLAVE_QSPI_0] = &qhs_qspi,
1587 [SLAVE_QUP_0] = &qhs_qup0,
1588 [SLAVE_QUP_1] = &qhs_qup1,
1589 [SLAVE_SDCC_1] = &qhs_sdc1,
1590 [SLAVE_SDCC_2] = &qhs_sdc2,
1591 [SLAVE_SDCC_4] = &qhs_sdc4,
1592 [SLAVE_SECURITY] = &qhs_security,
1593 [SLAVE_TCSR] = &qhs_tcsr,
1594 [SLAVE_TLMM] = &qhs_tlmm,
1595 [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
1596 [SLAVE_USB2] = &qhs_usb2,
1597 [SLAVE_USB3_0] = &qhs_usb3_0,
1598 [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
1599 [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
1600 [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
1601 [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
1602 [SLAVE_CNOC2_CNOC3] = &qns_cnoc2_cnoc3,
1603 [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
1604 [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
1607 static const struct qcom_icc_desc sc7280_cnoc2 = {
1608 .nodes = cnoc2_nodes,
1609 .num_nodes = ARRAY_SIZE(cnoc2_nodes),
1611 .num_bcms = ARRAY_SIZE(cnoc2_bcms),
1614 static struct qcom_icc_bcm * const cnoc3_bcms[] = {
1621 static struct qcom_icc_node * const cnoc3_nodes[] = {
1622 [MASTER_CNOC2_CNOC3] = &qnm_cnoc2_cnoc3,
1623 [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
1624 [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
1625 [SLAVE_AOSS] = &qhs_aoss,
1626 [SLAVE_APPSS] = &qhs_apss,
1627 [SLAVE_CNOC3_CNOC2] = &qns_cnoc3_cnoc2,
1628 [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
1629 [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
1630 [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
1631 [SLAVE_IMEM] = &qxs_imem,
1632 [SLAVE_PIMEM] = &qxs_pimem,
1633 [SLAVE_PCIE_0] = &xs_pcie_0,
1634 [SLAVE_PCIE_1] = &xs_pcie_1,
1635 [SLAVE_QDSS_STM] = &xs_qdss_stm,
1636 [SLAVE_TCU] = &xs_sys_tcu_cfg,
1639 static const struct qcom_icc_desc sc7280_cnoc3 = {
1640 .nodes = cnoc3_nodes,
1641 .num_nodes = ARRAY_SIZE(cnoc3_nodes),
1643 .num_bcms = ARRAY_SIZE(cnoc3_bcms),
1646 static struct qcom_icc_bcm * const dc_noc_bcms[] = {
1649 static struct qcom_icc_node * const dc_noc_nodes[] = {
1650 [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
1651 [SLAVE_LLCC_CFG] = &qhs_llcc,
1652 [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
1655 static const struct qcom_icc_desc sc7280_dc_noc = {
1656 .nodes = dc_noc_nodes,
1657 .num_nodes = ARRAY_SIZE(dc_noc_nodes),
1658 .bcms = dc_noc_bcms,
1659 .num_bcms = ARRAY_SIZE(dc_noc_bcms),
1662 static struct qcom_icc_bcm * const gem_noc_bcms[] = {
1669 static struct qcom_icc_node * const gem_noc_nodes[] = {
1670 [MASTER_GPU_TCU] = &alm_gpu_tcu,
1671 [MASTER_SYS_TCU] = &alm_sys_tcu,
1672 [MASTER_APPSS_PROC] = &chm_apps,
1673 [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
1674 [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
1675 [MASTER_GFX3D] = &qnm_gpu,
1676 [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
1677 [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
1678 [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
1679 [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
1680 [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
1681 [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
1682 [SLAVE_MCDMA_MS_MPU_CFG] = &qhs_modem_ms_mpu_cfg,
1683 [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
1684 [SLAVE_LLCC] = &qns_llcc,
1685 [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
1686 [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
1687 [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
1688 [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
1691 static const struct qcom_icc_desc sc7280_gem_noc = {
1692 .nodes = gem_noc_nodes,
1693 .num_nodes = ARRAY_SIZE(gem_noc_nodes),
1694 .bcms = gem_noc_bcms,
1695 .num_bcms = ARRAY_SIZE(gem_noc_bcms),
1698 static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
1701 static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
1702 [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
1703 [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
1704 [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
1705 [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
1706 [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
1707 [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
1708 [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
1711 static const struct qcom_icc_desc sc7280_lpass_ag_noc = {
1712 .nodes = lpass_ag_noc_nodes,
1713 .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
1714 .bcms = lpass_ag_noc_bcms,
1715 .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
1718 static struct qcom_icc_bcm * const mc_virt_bcms[] = {
1723 static struct qcom_icc_node * const mc_virt_nodes[] = {
1724 [MASTER_LLCC] = &llcc_mc,
1725 [SLAVE_EBI1] = &ebi,
1728 static const struct qcom_icc_desc sc7280_mc_virt = {
1729 .nodes = mc_virt_nodes,
1730 .num_nodes = ARRAY_SIZE(mc_virt_nodes),
1731 .bcms = mc_virt_bcms,
1732 .num_bcms = ARRAY_SIZE(mc_virt_bcms),
1735 static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
1742 static struct qcom_icc_node * const mmss_noc_nodes[] = {
1743 [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
1744 [MASTER_VIDEO_P0] = &qnm_video0,
1745 [MASTER_VIDEO_PROC] = &qnm_video_cpu,
1746 [MASTER_CAMNOC_HF] = &qxm_camnoc_hf,
1747 [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
1748 [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
1749 [MASTER_MDP0] = &qxm_mdp0,
1750 [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
1751 [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
1752 [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
1755 static const struct qcom_icc_desc sc7280_mmss_noc = {
1756 .nodes = mmss_noc_nodes,
1757 .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
1758 .bcms = mmss_noc_bcms,
1759 .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
1762 static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
1767 static struct qcom_icc_node * const nsp_noc_nodes[] = {
1768 [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
1769 [MASTER_CDSP_PROC] = &qxm_nsp,
1770 [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
1771 [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
1774 static const struct qcom_icc_desc sc7280_nsp_noc = {
1775 .nodes = nsp_noc_nodes,
1776 .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
1777 .bcms = nsp_noc_bcms,
1778 .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
1781 static struct qcom_icc_bcm * const system_noc_bcms[] = {
1788 static struct qcom_icc_node * const system_noc_nodes[] = {
1789 [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
1790 [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
1791 [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
1792 [MASTER_PIMEM] = &qxm_pimem,
1793 [MASTER_GIC] = &xm_gic,
1794 [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
1795 [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
1796 [SLAVE_SERVICE_SNOC] = &srvc_snoc,
1799 static const struct qcom_icc_desc sc7280_system_noc = {
1800 .nodes = system_noc_nodes,
1801 .num_nodes = ARRAY_SIZE(system_noc_nodes),
1802 .bcms = system_noc_bcms,
1803 .num_bcms = ARRAY_SIZE(system_noc_bcms),
1806 static const struct of_device_id qnoc_of_match[] = {
1807 { .compatible = "qcom,sc7280-aggre1-noc",
1808 .data = &sc7280_aggre1_noc},
1809 { .compatible = "qcom,sc7280-aggre2-noc",
1810 .data = &sc7280_aggre2_noc},
1811 { .compatible = "qcom,sc7280-clk-virt",
1812 .data = &sc7280_clk_virt},
1813 { .compatible = "qcom,sc7280-cnoc2",
1814 .data = &sc7280_cnoc2},
1815 { .compatible = "qcom,sc7280-cnoc3",
1816 .data = &sc7280_cnoc3},
1817 { .compatible = "qcom,sc7280-dc-noc",
1818 .data = &sc7280_dc_noc},
1819 { .compatible = "qcom,sc7280-gem-noc",
1820 .data = &sc7280_gem_noc},
1821 { .compatible = "qcom,sc7280-lpass-ag-noc",
1822 .data = &sc7280_lpass_ag_noc},
1823 { .compatible = "qcom,sc7280-mc-virt",
1824 .data = &sc7280_mc_virt},
1825 { .compatible = "qcom,sc7280-mmss-noc",
1826 .data = &sc7280_mmss_noc},
1827 { .compatible = "qcom,sc7280-nsp-noc",
1828 .data = &sc7280_nsp_noc},
1829 { .compatible = "qcom,sc7280-system-noc",
1830 .data = &sc7280_system_noc},
1833 MODULE_DEVICE_TABLE(of, qnoc_of_match);
1835 static struct platform_driver qnoc_driver = {
1836 .probe = qcom_icc_rpmh_probe,
1837 .remove = qcom_icc_rpmh_remove,
1839 .name = "qnoc-sc7280",
1840 .of_match_table = qnoc_of_match,
1841 .sync_state = icc_sync_state,
1844 module_platform_driver(qnoc_driver);
1846 MODULE_DESCRIPTION("SC7280 NoC driver");
1847 MODULE_LICENSE("GPL v2");