1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2020, 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,sm8150.h>
15 #include "bcm-voter.h"
19 static struct qcom_icc_node qhm_a1noc_cfg
= {
20 .name
= "qhm_a1noc_cfg",
21 .id
= SM8150_MASTER_A1NOC_CFG
,
25 .links
= { SM8150_SLAVE_SERVICE_A1NOC
},
28 static struct qcom_icc_node qhm_qup0
= {
30 .id
= SM8150_MASTER_QUP_0
,
34 .links
= { SM8150_A1NOC_SNOC_SLV
},
37 static struct qcom_icc_node xm_emac
= {
39 .id
= SM8150_MASTER_EMAC
,
43 .links
= { SM8150_A1NOC_SNOC_SLV
},
46 static struct qcom_icc_node xm_ufs_mem
= {
48 .id
= SM8150_MASTER_UFS_MEM
,
52 .links
= { SM8150_A1NOC_SNOC_SLV
},
55 static struct qcom_icc_node xm_usb3_0
= {
57 .id
= SM8150_MASTER_USB3
,
61 .links
= { SM8150_A1NOC_SNOC_SLV
},
64 static struct qcom_icc_node xm_usb3_1
= {
66 .id
= SM8150_MASTER_USB3_1
,
70 .links
= { SM8150_A1NOC_SNOC_SLV
},
73 static struct qcom_icc_node qhm_a2noc_cfg
= {
74 .name
= "qhm_a2noc_cfg",
75 .id
= SM8150_MASTER_A2NOC_CFG
,
79 .links
= { SM8150_SLAVE_SERVICE_A2NOC
},
82 static struct qcom_icc_node qhm_qdss_bam
= {
83 .name
= "qhm_qdss_bam",
84 .id
= SM8150_MASTER_QDSS_BAM
,
88 .links
= { SM8150_A2NOC_SNOC_SLV
},
91 static struct qcom_icc_node qhm_qspi
= {
93 .id
= SM8150_MASTER_QSPI
,
97 .links
= { SM8150_A2NOC_SNOC_SLV
},
100 static struct qcom_icc_node qhm_qup1
= {
102 .id
= SM8150_MASTER_QUP_1
,
106 .links
= { SM8150_A2NOC_SNOC_SLV
},
109 static struct qcom_icc_node qhm_qup2
= {
111 .id
= SM8150_MASTER_QUP_2
,
115 .links
= { SM8150_A2NOC_SNOC_SLV
},
118 static struct qcom_icc_node qhm_sensorss_ahb
= {
119 .name
= "qhm_sensorss_ahb",
120 .id
= SM8150_MASTER_SENSORS_AHB
,
124 .links
= { SM8150_A2NOC_SNOC_SLV
},
127 static struct qcom_icc_node qhm_tsif
= {
129 .id
= SM8150_MASTER_TSIF
,
133 .links
= { SM8150_A2NOC_SNOC_SLV
},
136 static struct qcom_icc_node qnm_cnoc
= {
138 .id
= SM8150_MASTER_CNOC_A2NOC
,
142 .links
= { SM8150_A2NOC_SNOC_SLV
},
145 static struct qcom_icc_node qxm_crypto
= {
146 .name
= "qxm_crypto",
147 .id
= SM8150_MASTER_CRYPTO_CORE_0
,
151 .links
= { SM8150_A2NOC_SNOC_SLV
},
154 static struct qcom_icc_node qxm_ipa
= {
156 .id
= SM8150_MASTER_IPA
,
160 .links
= { SM8150_A2NOC_SNOC_SLV
},
163 static struct qcom_icc_node xm_pcie3_0
= {
164 .name
= "xm_pcie3_0",
165 .id
= SM8150_MASTER_PCIE
,
169 .links
= { SM8150_SLAVE_ANOC_PCIE_GEM_NOC
},
172 static struct qcom_icc_node xm_pcie3_1
= {
173 .name
= "xm_pcie3_1",
174 .id
= SM8150_MASTER_PCIE_1
,
178 .links
= { SM8150_SLAVE_ANOC_PCIE_GEM_NOC
},
181 static struct qcom_icc_node xm_qdss_etr
= {
182 .name
= "xm_qdss_etr",
183 .id
= SM8150_MASTER_QDSS_ETR
,
187 .links
= { SM8150_A2NOC_SNOC_SLV
},
190 static struct qcom_icc_node xm_sdc2
= {
192 .id
= SM8150_MASTER_SDCC_2
,
196 .links
= { SM8150_A2NOC_SNOC_SLV
},
199 static struct qcom_icc_node xm_sdc4
= {
201 .id
= SM8150_MASTER_SDCC_4
,
205 .links
= { SM8150_A2NOC_SNOC_SLV
},
208 static struct qcom_icc_node qxm_camnoc_hf0_uncomp
= {
209 .name
= "qxm_camnoc_hf0_uncomp",
210 .id
= SM8150_MASTER_CAMNOC_HF0_UNCOMP
,
214 .links
= { SM8150_SLAVE_CAMNOC_UNCOMP
},
217 static struct qcom_icc_node qxm_camnoc_hf1_uncomp
= {
218 .name
= "qxm_camnoc_hf1_uncomp",
219 .id
= SM8150_MASTER_CAMNOC_HF1_UNCOMP
,
223 .links
= { SM8150_SLAVE_CAMNOC_UNCOMP
},
226 static struct qcom_icc_node qxm_camnoc_sf_uncomp
= {
227 .name
= "qxm_camnoc_sf_uncomp",
228 .id
= SM8150_MASTER_CAMNOC_SF_UNCOMP
,
232 .links
= { SM8150_SLAVE_CAMNOC_UNCOMP
},
235 static struct qcom_icc_node qnm_npu
= {
237 .id
= SM8150_MASTER_NPU
,
241 .links
= { SM8150_SLAVE_CDSP_MEM_NOC
},
244 static struct qcom_icc_node qhm_spdm
= {
246 .id
= SM8150_MASTER_SPDM
,
250 .links
= { SM8150_SLAVE_CNOC_A2NOC
},
253 static struct qcom_icc_node qnm_snoc
= {
255 .id
= SM8150_SNOC_CNOC_MAS
,
259 .links
= { SM8150_SLAVE_TLMM_SOUTH
,
260 SM8150_SLAVE_CDSP_CFG
,
261 SM8150_SLAVE_SPSS_CFG
,
262 SM8150_SLAVE_CAMERA_CFG
,
265 SM8150_SLAVE_CNOC_MNOC_CFG
,
266 SM8150_SLAVE_EMAC_CFG
,
267 SM8150_SLAVE_UFS_MEM_CFG
,
268 SM8150_SLAVE_TLMM_EAST
,
269 SM8150_SLAVE_SSC_CFG
,
270 SM8150_SLAVE_SNOC_CFG
,
271 SM8150_SLAVE_NORTH_PHY_CFG
,
274 SM8150_SLAVE_PCIE_1_CFG
,
275 SM8150_SLAVE_A2NOC_CFG
,
276 SM8150_SLAVE_QDSS_CFG
,
277 SM8150_SLAVE_DISPLAY_CFG
,
279 SM8150_SLAVE_CNOC_DDRSS
,
280 SM8150_SLAVE_RBCPR_MMCX_CFG
,
281 SM8150_SLAVE_NPU_CFG
,
282 SM8150_SLAVE_PCIE_0_CFG
,
283 SM8150_SLAVE_GRAPHICS_3D_CFG
,
284 SM8150_SLAVE_VENUS_CFG
,
286 SM8150_SLAVE_IPA_CFG
,
287 SM8150_SLAVE_CLK_CTL
,
290 SM8150_SLAVE_AHB2PHY_SOUTH
,
292 SM8150_SLAVE_SERVICE_CNOC
,
293 SM8150_SLAVE_UFS_CARD_CFG
,
295 SM8150_SLAVE_RBCPR_CX_CFG
,
296 SM8150_SLAVE_TLMM_WEST
,
297 SM8150_SLAVE_A1NOC_CFG
,
300 SM8150_SLAVE_VSENSE_CTRL_CFG
,
303 SM8150_SLAVE_SPDM_WRAPPER
,
304 SM8150_SLAVE_CRYPTO_0_CFG
,
305 SM8150_SLAVE_PIMEM_CFG
,
306 SM8150_SLAVE_TLMM_NORTH
,
307 SM8150_SLAVE_RBCPR_MX_CFG
,
308 SM8150_SLAVE_IMEM_CFG
312 static struct qcom_icc_node xm_qdss_dap
= {
313 .name
= "xm_qdss_dap",
314 .id
= SM8150_MASTER_QDSS_DAP
,
318 .links
= { SM8150_SLAVE_TLMM_SOUTH
,
319 SM8150_SLAVE_CDSP_CFG
,
320 SM8150_SLAVE_SPSS_CFG
,
321 SM8150_SLAVE_CAMERA_CFG
,
324 SM8150_SLAVE_CNOC_MNOC_CFG
,
325 SM8150_SLAVE_EMAC_CFG
,
326 SM8150_SLAVE_UFS_MEM_CFG
,
327 SM8150_SLAVE_TLMM_EAST
,
328 SM8150_SLAVE_SSC_CFG
,
329 SM8150_SLAVE_SNOC_CFG
,
330 SM8150_SLAVE_NORTH_PHY_CFG
,
333 SM8150_SLAVE_PCIE_1_CFG
,
334 SM8150_SLAVE_A2NOC_CFG
,
335 SM8150_SLAVE_QDSS_CFG
,
336 SM8150_SLAVE_DISPLAY_CFG
,
338 SM8150_SLAVE_CNOC_DDRSS
,
339 SM8150_SLAVE_CNOC_A2NOC
,
340 SM8150_SLAVE_RBCPR_MMCX_CFG
,
341 SM8150_SLAVE_NPU_CFG
,
342 SM8150_SLAVE_PCIE_0_CFG
,
343 SM8150_SLAVE_GRAPHICS_3D_CFG
,
344 SM8150_SLAVE_VENUS_CFG
,
346 SM8150_SLAVE_IPA_CFG
,
347 SM8150_SLAVE_CLK_CTL
,
350 SM8150_SLAVE_AHB2PHY_SOUTH
,
352 SM8150_SLAVE_SERVICE_CNOC
,
353 SM8150_SLAVE_UFS_CARD_CFG
,
355 SM8150_SLAVE_RBCPR_CX_CFG
,
356 SM8150_SLAVE_TLMM_WEST
,
357 SM8150_SLAVE_A1NOC_CFG
,
360 SM8150_SLAVE_VSENSE_CTRL_CFG
,
363 SM8150_SLAVE_SPDM_WRAPPER
,
364 SM8150_SLAVE_CRYPTO_0_CFG
,
365 SM8150_SLAVE_PIMEM_CFG
,
366 SM8150_SLAVE_TLMM_NORTH
,
367 SM8150_SLAVE_RBCPR_MX_CFG
,
368 SM8150_SLAVE_IMEM_CFG
372 static struct qcom_icc_node qhm_cnoc_dc_noc
= {
373 .name
= "qhm_cnoc_dc_noc",
374 .id
= SM8150_MASTER_CNOC_DC_NOC
,
378 .links
= { SM8150_SLAVE_GEM_NOC_CFG
,
379 SM8150_SLAVE_LLCC_CFG
383 static struct qcom_icc_node acm_apps
= {
385 .id
= SM8150_MASTER_AMPSS_M0
,
389 .links
= { SM8150_SLAVE_ECC
,
391 SM8150_SLAVE_GEM_NOC_SNOC
395 static struct qcom_icc_node acm_gpu_tcu
= {
396 .name
= "acm_gpu_tcu",
397 .id
= SM8150_MASTER_GPU_TCU
,
401 .links
= { SM8150_SLAVE_LLCC
,
402 SM8150_SLAVE_GEM_NOC_SNOC
406 static struct qcom_icc_node acm_sys_tcu
= {
407 .name
= "acm_sys_tcu",
408 .id
= SM8150_MASTER_SYS_TCU
,
412 .links
= { SM8150_SLAVE_LLCC
,
413 SM8150_SLAVE_GEM_NOC_SNOC
417 static struct qcom_icc_node qhm_gemnoc_cfg
= {
418 .name
= "qhm_gemnoc_cfg",
419 .id
= SM8150_MASTER_GEM_NOC_CFG
,
423 .links
= { SM8150_SLAVE_SERVICE_GEM_NOC
,
424 SM8150_SLAVE_MSS_PROC_MS_MPU_CFG
428 static struct qcom_icc_node qnm_cmpnoc
= {
429 .name
= "qnm_cmpnoc",
430 .id
= SM8150_MASTER_COMPUTE_NOC
,
434 .links
= { SM8150_SLAVE_ECC
,
436 SM8150_SLAVE_GEM_NOC_SNOC
440 static struct qcom_icc_node qnm_gpu
= {
442 .id
= SM8150_MASTER_GRAPHICS_3D
,
446 .links
= { SM8150_SLAVE_LLCC
,
447 SM8150_SLAVE_GEM_NOC_SNOC
451 static struct qcom_icc_node qnm_mnoc_hf
= {
452 .name
= "qnm_mnoc_hf",
453 .id
= SM8150_MASTER_MNOC_HF_MEM_NOC
,
457 .links
= { SM8150_SLAVE_LLCC
},
460 static struct qcom_icc_node qnm_mnoc_sf
= {
461 .name
= "qnm_mnoc_sf",
462 .id
= SM8150_MASTER_MNOC_SF_MEM_NOC
,
466 .links
= { SM8150_SLAVE_LLCC
,
467 SM8150_SLAVE_GEM_NOC_SNOC
471 static struct qcom_icc_node qnm_pcie
= {
473 .id
= SM8150_MASTER_GEM_NOC_PCIE_SNOC
,
477 .links
= { SM8150_SLAVE_LLCC
,
478 SM8150_SLAVE_GEM_NOC_SNOC
482 static struct qcom_icc_node qnm_snoc_gc
= {
483 .name
= "qnm_snoc_gc",
484 .id
= SM8150_MASTER_SNOC_GC_MEM_NOC
,
488 .links
= { SM8150_SLAVE_LLCC
},
491 static struct qcom_icc_node qnm_snoc_sf
= {
492 .name
= "qnm_snoc_sf",
493 .id
= SM8150_MASTER_SNOC_SF_MEM_NOC
,
497 .links
= { SM8150_SLAVE_LLCC
},
500 static struct qcom_icc_node qxm_ecc
= {
502 .id
= SM8150_MASTER_ECC
,
506 .links
= { SM8150_SLAVE_LLCC
},
509 static struct qcom_icc_node llcc_mc
= {
511 .id
= SM8150_MASTER_LLCC
,
515 .links
= { SM8150_SLAVE_EBI_CH0
},
518 static struct qcom_icc_node qhm_mnoc_cfg
= {
519 .name
= "qhm_mnoc_cfg",
520 .id
= SM8150_MASTER_CNOC_MNOC_CFG
,
524 .links
= { SM8150_SLAVE_SERVICE_MNOC
},
527 static struct qcom_icc_node qxm_camnoc_hf0
= {
528 .name
= "qxm_camnoc_hf0",
529 .id
= SM8150_MASTER_CAMNOC_HF0
,
533 .links
= { SM8150_SLAVE_MNOC_HF_MEM_NOC
},
536 static struct qcom_icc_node qxm_camnoc_hf1
= {
537 .name
= "qxm_camnoc_hf1",
538 .id
= SM8150_MASTER_CAMNOC_HF1
,
542 .links
= { SM8150_SLAVE_MNOC_HF_MEM_NOC
},
545 static struct qcom_icc_node qxm_camnoc_sf
= {
546 .name
= "qxm_camnoc_sf",
547 .id
= SM8150_MASTER_CAMNOC_SF
,
551 .links
= { SM8150_SLAVE_MNOC_SF_MEM_NOC
},
554 static struct qcom_icc_node qxm_mdp0
= {
556 .id
= SM8150_MASTER_MDP_PORT0
,
560 .links
= { SM8150_SLAVE_MNOC_HF_MEM_NOC
},
563 static struct qcom_icc_node qxm_mdp1
= {
565 .id
= SM8150_MASTER_MDP_PORT1
,
569 .links
= { SM8150_SLAVE_MNOC_HF_MEM_NOC
},
572 static struct qcom_icc_node qxm_rot
= {
574 .id
= SM8150_MASTER_ROTATOR
,
578 .links
= { SM8150_SLAVE_MNOC_SF_MEM_NOC
},
581 static struct qcom_icc_node qxm_venus0
= {
582 .name
= "qxm_venus0",
583 .id
= SM8150_MASTER_VIDEO_P0
,
587 .links
= { SM8150_SLAVE_MNOC_SF_MEM_NOC
},
590 static struct qcom_icc_node qxm_venus1
= {
591 .name
= "qxm_venus1",
592 .id
= SM8150_MASTER_VIDEO_P1
,
596 .links
= { SM8150_SLAVE_MNOC_SF_MEM_NOC
},
599 static struct qcom_icc_node qxm_venus_arm9
= {
600 .name
= "qxm_venus_arm9",
601 .id
= SM8150_MASTER_VIDEO_PROC
,
605 .links
= { SM8150_SLAVE_MNOC_SF_MEM_NOC
},
608 static struct qcom_icc_node qhm_snoc_cfg
= {
609 .name
= "qhm_snoc_cfg",
610 .id
= SM8150_MASTER_SNOC_CFG
,
614 .links
= { SM8150_SLAVE_SERVICE_SNOC
},
617 static struct qcom_icc_node qnm_aggre1_noc
= {
618 .name
= "qnm_aggre1_noc",
619 .id
= SM8150_A1NOC_SNOC_MAS
,
623 .links
= { SM8150_SLAVE_SNOC_GEM_NOC_SF
,
627 SM8150_SNOC_CNOC_SLV
,
628 SM8150_SLAVE_QDSS_STM
632 static struct qcom_icc_node qnm_aggre2_noc
= {
633 .name
= "qnm_aggre2_noc",
634 .id
= SM8150_A2NOC_SNOC_MAS
,
638 .links
= { SM8150_SLAVE_SNOC_GEM_NOC_SF
,
642 SM8150_SNOC_CNOC_SLV
,
646 SM8150_SLAVE_QDSS_STM
650 static struct qcom_icc_node qnm_gemnoc
= {
651 .name
= "qnm_gemnoc",
652 .id
= SM8150_MASTER_GEM_NOC_SNOC
,
656 .links
= { SM8150_SLAVE_PIMEM
,
659 SM8150_SNOC_CNOC_SLV
,
661 SM8150_SLAVE_QDSS_STM
665 static struct qcom_icc_node qxm_pimem
= {
667 .id
= SM8150_MASTER_PIMEM
,
671 .links
= { SM8150_SLAVE_SNOC_GEM_NOC_GC
,
676 static struct qcom_icc_node xm_gic
= {
678 .id
= SM8150_MASTER_GIC
,
682 .links
= { SM8150_SLAVE_SNOC_GEM_NOC_GC
,
687 static struct qcom_icc_node qns_a1noc_snoc
= {
688 .name
= "qns_a1noc_snoc",
689 .id
= SM8150_A1NOC_SNOC_SLV
,
693 .links
= { SM8150_A1NOC_SNOC_MAS
},
696 static struct qcom_icc_node srvc_aggre1_noc
= {
697 .name
= "srvc_aggre1_noc",
698 .id
= SM8150_SLAVE_SERVICE_A1NOC
,
703 static struct qcom_icc_node qns_a2noc_snoc
= {
704 .name
= "qns_a2noc_snoc",
705 .id
= SM8150_A2NOC_SNOC_SLV
,
709 .links
= { SM8150_A2NOC_SNOC_MAS
},
712 static struct qcom_icc_node qns_pcie_mem_noc
= {
713 .name
= "qns_pcie_mem_noc",
714 .id
= SM8150_SLAVE_ANOC_PCIE_GEM_NOC
,
718 .links
= { SM8150_MASTER_GEM_NOC_PCIE_SNOC
},
721 static struct qcom_icc_node srvc_aggre2_noc
= {
722 .name
= "srvc_aggre2_noc",
723 .id
= SM8150_SLAVE_SERVICE_A2NOC
,
728 static struct qcom_icc_node qns_camnoc_uncomp
= {
729 .name
= "qns_camnoc_uncomp",
730 .id
= SM8150_SLAVE_CAMNOC_UNCOMP
,
735 static struct qcom_icc_node qns_cdsp_mem_noc
= {
736 .name
= "qns_cdsp_mem_noc",
737 .id
= SM8150_SLAVE_CDSP_MEM_NOC
,
741 .links
= { SM8150_MASTER_COMPUTE_NOC
},
744 static struct qcom_icc_node qhs_a1_noc_cfg
= {
745 .name
= "qhs_a1_noc_cfg",
746 .id
= SM8150_SLAVE_A1NOC_CFG
,
750 .links
= { SM8150_MASTER_A1NOC_CFG
},
753 static struct qcom_icc_node qhs_a2_noc_cfg
= {
754 .name
= "qhs_a2_noc_cfg",
755 .id
= SM8150_SLAVE_A2NOC_CFG
,
759 .links
= { SM8150_MASTER_A2NOC_CFG
},
762 static struct qcom_icc_node qhs_ahb2phy_south
= {
763 .name
= "qhs_ahb2phy_south",
764 .id
= SM8150_SLAVE_AHB2PHY_SOUTH
,
769 static struct qcom_icc_node qhs_aop
= {
771 .id
= SM8150_SLAVE_AOP
,
776 static struct qcom_icc_node qhs_aoss
= {
778 .id
= SM8150_SLAVE_AOSS
,
783 static struct qcom_icc_node qhs_camera_cfg
= {
784 .name
= "qhs_camera_cfg",
785 .id
= SM8150_SLAVE_CAMERA_CFG
,
790 static struct qcom_icc_node qhs_clk_ctl
= {
791 .name
= "qhs_clk_ctl",
792 .id
= SM8150_SLAVE_CLK_CTL
,
797 static struct qcom_icc_node qhs_compute_dsp
= {
798 .name
= "qhs_compute_dsp",
799 .id
= SM8150_SLAVE_CDSP_CFG
,
804 static struct qcom_icc_node qhs_cpr_cx
= {
805 .name
= "qhs_cpr_cx",
806 .id
= SM8150_SLAVE_RBCPR_CX_CFG
,
811 static struct qcom_icc_node qhs_cpr_mmcx
= {
812 .name
= "qhs_cpr_mmcx",
813 .id
= SM8150_SLAVE_RBCPR_MMCX_CFG
,
818 static struct qcom_icc_node qhs_cpr_mx
= {
819 .name
= "qhs_cpr_mx",
820 .id
= SM8150_SLAVE_RBCPR_MX_CFG
,
825 static struct qcom_icc_node qhs_crypto0_cfg
= {
826 .name
= "qhs_crypto0_cfg",
827 .id
= SM8150_SLAVE_CRYPTO_0_CFG
,
832 static struct qcom_icc_node qhs_ddrss_cfg
= {
833 .name
= "qhs_ddrss_cfg",
834 .id
= SM8150_SLAVE_CNOC_DDRSS
,
838 .links
= { SM8150_MASTER_CNOC_DC_NOC
},
841 static struct qcom_icc_node qhs_display_cfg
= {
842 .name
= "qhs_display_cfg",
843 .id
= SM8150_SLAVE_DISPLAY_CFG
,
848 static struct qcom_icc_node qhs_emac_cfg
= {
849 .name
= "qhs_emac_cfg",
850 .id
= SM8150_SLAVE_EMAC_CFG
,
855 static struct qcom_icc_node qhs_glm
= {
857 .id
= SM8150_SLAVE_GLM
,
862 static struct qcom_icc_node qhs_gpuss_cfg
= {
863 .name
= "qhs_gpuss_cfg",
864 .id
= SM8150_SLAVE_GRAPHICS_3D_CFG
,
869 static struct qcom_icc_node qhs_imem_cfg
= {
870 .name
= "qhs_imem_cfg",
871 .id
= SM8150_SLAVE_IMEM_CFG
,
876 static struct qcom_icc_node qhs_ipa
= {
878 .id
= SM8150_SLAVE_IPA_CFG
,
883 static struct qcom_icc_node qhs_mnoc_cfg
= {
884 .name
= "qhs_mnoc_cfg",
885 .id
= SM8150_SLAVE_CNOC_MNOC_CFG
,
889 .links
= { SM8150_MASTER_CNOC_MNOC_CFG
},
892 static struct qcom_icc_node qhs_npu_cfg
= {
893 .name
= "qhs_npu_cfg",
894 .id
= SM8150_SLAVE_NPU_CFG
,
899 static struct qcom_icc_node qhs_pcie0_cfg
= {
900 .name
= "qhs_pcie0_cfg",
901 .id
= SM8150_SLAVE_PCIE_0_CFG
,
906 static struct qcom_icc_node qhs_pcie1_cfg
= {
907 .name
= "qhs_pcie1_cfg",
908 .id
= SM8150_SLAVE_PCIE_1_CFG
,
913 static struct qcom_icc_node qhs_phy_refgen_north
= {
914 .name
= "qhs_phy_refgen_north",
915 .id
= SM8150_SLAVE_NORTH_PHY_CFG
,
920 static struct qcom_icc_node qhs_pimem_cfg
= {
921 .name
= "qhs_pimem_cfg",
922 .id
= SM8150_SLAVE_PIMEM_CFG
,
927 static struct qcom_icc_node qhs_prng
= {
929 .id
= SM8150_SLAVE_PRNG
,
934 static struct qcom_icc_node qhs_qdss_cfg
= {
935 .name
= "qhs_qdss_cfg",
936 .id
= SM8150_SLAVE_QDSS_CFG
,
941 static struct qcom_icc_node qhs_qspi
= {
943 .id
= SM8150_SLAVE_QSPI
,
948 static struct qcom_icc_node qhs_qupv3_east
= {
949 .name
= "qhs_qupv3_east",
950 .id
= SM8150_SLAVE_QUP_2
,
955 static struct qcom_icc_node qhs_qupv3_north
= {
956 .name
= "qhs_qupv3_north",
957 .id
= SM8150_SLAVE_QUP_1
,
962 static struct qcom_icc_node qhs_qupv3_south
= {
963 .name
= "qhs_qupv3_south",
964 .id
= SM8150_SLAVE_QUP_0
,
969 static struct qcom_icc_node qhs_sdc2
= {
971 .id
= SM8150_SLAVE_SDCC_2
,
976 static struct qcom_icc_node qhs_sdc4
= {
978 .id
= SM8150_SLAVE_SDCC_4
,
983 static struct qcom_icc_node qhs_snoc_cfg
= {
984 .name
= "qhs_snoc_cfg",
985 .id
= SM8150_SLAVE_SNOC_CFG
,
989 .links
= { SM8150_MASTER_SNOC_CFG
},
992 static struct qcom_icc_node qhs_spdm
= {
994 .id
= SM8150_SLAVE_SPDM_WRAPPER
,
999 static struct qcom_icc_node qhs_spss_cfg
= {
1000 .name
= "qhs_spss_cfg",
1001 .id
= SM8150_SLAVE_SPSS_CFG
,
1006 static struct qcom_icc_node qhs_ssc_cfg
= {
1007 .name
= "qhs_ssc_cfg",
1008 .id
= SM8150_SLAVE_SSC_CFG
,
1013 static struct qcom_icc_node qhs_tcsr
= {
1015 .id
= SM8150_SLAVE_TCSR
,
1020 static struct qcom_icc_node qhs_tlmm_east
= {
1021 .name
= "qhs_tlmm_east",
1022 .id
= SM8150_SLAVE_TLMM_EAST
,
1027 static struct qcom_icc_node qhs_tlmm_north
= {
1028 .name
= "qhs_tlmm_north",
1029 .id
= SM8150_SLAVE_TLMM_NORTH
,
1034 static struct qcom_icc_node qhs_tlmm_south
= {
1035 .name
= "qhs_tlmm_south",
1036 .id
= SM8150_SLAVE_TLMM_SOUTH
,
1041 static struct qcom_icc_node qhs_tlmm_west
= {
1042 .name
= "qhs_tlmm_west",
1043 .id
= SM8150_SLAVE_TLMM_WEST
,
1048 static struct qcom_icc_node qhs_tsif
= {
1050 .id
= SM8150_SLAVE_TSIF
,
1055 static struct qcom_icc_node qhs_ufs_card_cfg
= {
1056 .name
= "qhs_ufs_card_cfg",
1057 .id
= SM8150_SLAVE_UFS_CARD_CFG
,
1062 static struct qcom_icc_node qhs_ufs_mem_cfg
= {
1063 .name
= "qhs_ufs_mem_cfg",
1064 .id
= SM8150_SLAVE_UFS_MEM_CFG
,
1069 static struct qcom_icc_node qhs_usb3_0
= {
1070 .name
= "qhs_usb3_0",
1071 .id
= SM8150_SLAVE_USB3
,
1076 static struct qcom_icc_node qhs_usb3_1
= {
1077 .name
= "qhs_usb3_1",
1078 .id
= SM8150_SLAVE_USB3_1
,
1083 static struct qcom_icc_node qhs_venus_cfg
= {
1084 .name
= "qhs_venus_cfg",
1085 .id
= SM8150_SLAVE_VENUS_CFG
,
1090 static struct qcom_icc_node qhs_vsense_ctrl_cfg
= {
1091 .name
= "qhs_vsense_ctrl_cfg",
1092 .id
= SM8150_SLAVE_VSENSE_CTRL_CFG
,
1097 static struct qcom_icc_node qns_cnoc_a2noc
= {
1098 .name
= "qns_cnoc_a2noc",
1099 .id
= SM8150_SLAVE_CNOC_A2NOC
,
1103 .links
= { SM8150_MASTER_CNOC_A2NOC
},
1106 static struct qcom_icc_node srvc_cnoc
= {
1107 .name
= "srvc_cnoc",
1108 .id
= SM8150_SLAVE_SERVICE_CNOC
,
1113 static struct qcom_icc_node qhs_llcc
= {
1115 .id
= SM8150_SLAVE_LLCC_CFG
,
1120 static struct qcom_icc_node qhs_memnoc
= {
1121 .name
= "qhs_memnoc",
1122 .id
= SM8150_SLAVE_GEM_NOC_CFG
,
1126 .links
= { SM8150_MASTER_GEM_NOC_CFG
},
1129 static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg
= {
1130 .name
= "qhs_mdsp_ms_mpu_cfg",
1131 .id
= SM8150_SLAVE_MSS_PROC_MS_MPU_CFG
,
1136 static struct qcom_icc_node qns_ecc
= {
1138 .id
= SM8150_SLAVE_ECC
,
1143 static struct qcom_icc_node qns_gem_noc_snoc
= {
1144 .name
= "qns_gem_noc_snoc",
1145 .id
= SM8150_SLAVE_GEM_NOC_SNOC
,
1149 .links
= { SM8150_MASTER_GEM_NOC_SNOC
},
1152 static struct qcom_icc_node qns_llcc
= {
1154 .id
= SM8150_SLAVE_LLCC
,
1158 .links
= { SM8150_MASTER_LLCC
},
1161 static struct qcom_icc_node srvc_gemnoc
= {
1162 .name
= "srvc_gemnoc",
1163 .id
= SM8150_SLAVE_SERVICE_GEM_NOC
,
1168 static struct qcom_icc_node ebi
= {
1170 .id
= SM8150_SLAVE_EBI_CH0
,
1175 static struct qcom_icc_node qns2_mem_noc
= {
1176 .name
= "qns2_mem_noc",
1177 .id
= SM8150_SLAVE_MNOC_SF_MEM_NOC
,
1181 .links
= { SM8150_MASTER_MNOC_SF_MEM_NOC
},
1184 static struct qcom_icc_node qns_mem_noc_hf
= {
1185 .name
= "qns_mem_noc_hf",
1186 .id
= SM8150_SLAVE_MNOC_HF_MEM_NOC
,
1190 .links
= { SM8150_MASTER_MNOC_HF_MEM_NOC
},
1193 static struct qcom_icc_node srvc_mnoc
= {
1194 .name
= "srvc_mnoc",
1195 .id
= SM8150_SLAVE_SERVICE_MNOC
,
1200 static struct qcom_icc_node qhs_apss
= {
1202 .id
= SM8150_SLAVE_APPSS
,
1207 static struct qcom_icc_node qns_cnoc
= {
1209 .id
= SM8150_SNOC_CNOC_SLV
,
1213 .links
= { SM8150_SNOC_CNOC_MAS
},
1216 static struct qcom_icc_node qns_gemnoc_gc
= {
1217 .name
= "qns_gemnoc_gc",
1218 .id
= SM8150_SLAVE_SNOC_GEM_NOC_GC
,
1222 .links
= { SM8150_MASTER_SNOC_GC_MEM_NOC
},
1225 static struct qcom_icc_node qns_gemnoc_sf
= {
1226 .name
= "qns_gemnoc_sf",
1227 .id
= SM8150_SLAVE_SNOC_GEM_NOC_SF
,
1231 .links
= { SM8150_MASTER_SNOC_SF_MEM_NOC
},
1234 static struct qcom_icc_node qxs_imem
= {
1236 .id
= SM8150_SLAVE_OCIMEM
,
1241 static struct qcom_icc_node qxs_pimem
= {
1242 .name
= "qxs_pimem",
1243 .id
= SM8150_SLAVE_PIMEM
,
1248 static struct qcom_icc_node srvc_snoc
= {
1249 .name
= "srvc_snoc",
1250 .id
= SM8150_SLAVE_SERVICE_SNOC
,
1255 static struct qcom_icc_node xs_pcie_0
= {
1256 .name
= "xs_pcie_0",
1257 .id
= SM8150_SLAVE_PCIE_0
,
1262 static struct qcom_icc_node xs_pcie_1
= {
1263 .name
= "xs_pcie_1",
1264 .id
= SM8150_SLAVE_PCIE_1
,
1269 static struct qcom_icc_node xs_qdss_stm
= {
1270 .name
= "xs_qdss_stm",
1271 .id
= SM8150_SLAVE_QDSS_STM
,
1276 static struct qcom_icc_node xs_sys_tcu_cfg
= {
1277 .name
= "xs_sys_tcu_cfg",
1278 .id
= SM8150_SLAVE_TCU
,
1283 static struct qcom_icc_bcm bcm_acv
= {
1285 .enable_mask
= BIT(3),
1291 static struct qcom_icc_bcm bcm_mc0
= {
1298 static struct qcom_icc_bcm bcm_sh0
= {
1302 .nodes
= { &qns_llcc
},
1305 static struct qcom_icc_bcm bcm_mm0
= {
1309 .nodes
= { &qns_mem_noc_hf
},
1312 static struct qcom_icc_bcm bcm_mm1
= {
1316 .nodes
= { &qxm_camnoc_hf0_uncomp
,
1317 &qxm_camnoc_hf1_uncomp
,
1318 &qxm_camnoc_sf_uncomp
,
1326 static struct qcom_icc_bcm bcm_sh2
= {
1330 .nodes
= { &qns_gem_noc_snoc
},
1333 static struct qcom_icc_bcm bcm_mm2
= {
1337 .nodes
= { &qxm_camnoc_sf
, &qns2_mem_noc
},
1340 static struct qcom_icc_bcm bcm_sh3
= {
1344 .nodes
= { &acm_gpu_tcu
, &acm_sys_tcu
},
1347 static struct qcom_icc_bcm bcm_mm3
= {
1351 .nodes
= { &qxm_rot
, &qxm_venus0
, &qxm_venus1
, &qxm_venus_arm9
},
1354 static struct qcom_icc_bcm bcm_sh4
= {
1358 .nodes
= { &qnm_cmpnoc
},
1361 static struct qcom_icc_bcm bcm_sh5
= {
1365 .nodes
= { &acm_apps
},
1368 static struct qcom_icc_bcm bcm_sn0
= {
1372 .nodes
= { &qns_gemnoc_sf
},
1375 static struct qcom_icc_bcm bcm_co0
= {
1379 .nodes
= { &qns_cdsp_mem_noc
},
1382 static struct qcom_icc_bcm bcm_ce0
= {
1386 .nodes
= { &qxm_crypto
},
1389 static struct qcom_icc_bcm bcm_sn1
= {
1393 .nodes
= { &qxs_imem
},
1396 static struct qcom_icc_bcm bcm_co1
= {
1400 .nodes
= { &qnm_npu
},
1403 static struct qcom_icc_bcm bcm_cn0
= {
1407 .nodes
= { &qhm_spdm
,
1432 &qhs_phy_refgen_north
,
1457 &qhs_vsense_ctrl_cfg
,
1463 static struct qcom_icc_bcm bcm_qup0
= {
1467 .nodes
= { &qhm_qup0
, &qhm_qup1
, &qhm_qup2
},
1470 static struct qcom_icc_bcm bcm_sn2
= {
1474 .nodes
= { &qns_gemnoc_gc
},
1477 static struct qcom_icc_bcm bcm_sn3
= {
1481 .nodes
= { &srvc_aggre1_noc
, &srvc_aggre2_noc
, &qns_cnoc
},
1484 static struct qcom_icc_bcm bcm_sn4
= {
1488 .nodes
= { &qxs_pimem
},
1491 static struct qcom_icc_bcm bcm_sn5
= {
1495 .nodes
= { &xs_qdss_stm
},
1498 static struct qcom_icc_bcm bcm_sn8
= {
1502 .nodes
= { &xs_pcie_0
, &xs_pcie_1
},
1505 static struct qcom_icc_bcm bcm_sn9
= {
1509 .nodes
= { &qnm_aggre1_noc
},
1512 static struct qcom_icc_bcm bcm_sn11
= {
1516 .nodes
= { &qnm_aggre2_noc
},
1519 static struct qcom_icc_bcm bcm_sn12
= {
1523 .nodes
= { &qxm_pimem
, &xm_gic
},
1526 static struct qcom_icc_bcm bcm_sn14
= {
1530 .nodes
= { &qns_pcie_mem_noc
},
1533 static struct qcom_icc_bcm bcm_sn15
= {
1537 .nodes
= { &qnm_gemnoc
},
1540 static struct qcom_icc_bcm
* const aggre1_noc_bcms
[] = {
1545 static struct qcom_icc_node
* const aggre1_noc_nodes
[] = {
1546 [MASTER_A1NOC_CFG
] = &qhm_a1noc_cfg
,
1547 [MASTER_QUP_0
] = &qhm_qup0
,
1548 [MASTER_EMAC
] = &xm_emac
,
1549 [MASTER_UFS_MEM
] = &xm_ufs_mem
,
1550 [MASTER_USB3
] = &xm_usb3_0
,
1551 [MASTER_USB3_1
] = &xm_usb3_1
,
1552 [A1NOC_SNOC_SLV
] = &qns_a1noc_snoc
,
1553 [SLAVE_SERVICE_A1NOC
] = &srvc_aggre1_noc
,
1556 static const struct qcom_icc_desc sm8150_aggre1_noc
= {
1557 .nodes
= aggre1_noc_nodes
,
1558 .num_nodes
= ARRAY_SIZE(aggre1_noc_nodes
),
1559 .bcms
= aggre1_noc_bcms
,
1560 .num_bcms
= ARRAY_SIZE(aggre1_noc_bcms
),
1563 static struct qcom_icc_bcm
* const aggre2_noc_bcms
[] = {
1570 static struct qcom_icc_node
* const aggre2_noc_nodes
[] = {
1571 [MASTER_A2NOC_CFG
] = &qhm_a2noc_cfg
,
1572 [MASTER_QDSS_BAM
] = &qhm_qdss_bam
,
1573 [MASTER_QSPI
] = &qhm_qspi
,
1574 [MASTER_QUP_1
] = &qhm_qup1
,
1575 [MASTER_QUP_2
] = &qhm_qup2
,
1576 [MASTER_SENSORS_AHB
] = &qhm_sensorss_ahb
,
1577 [MASTER_TSIF
] = &qhm_tsif
,
1578 [MASTER_CNOC_A2NOC
] = &qnm_cnoc
,
1579 [MASTER_CRYPTO_CORE_0
] = &qxm_crypto
,
1580 [MASTER_IPA
] = &qxm_ipa
,
1581 [MASTER_PCIE
] = &xm_pcie3_0
,
1582 [MASTER_PCIE_1
] = &xm_pcie3_1
,
1583 [MASTER_QDSS_ETR
] = &xm_qdss_etr
,
1584 [MASTER_SDCC_2
] = &xm_sdc2
,
1585 [MASTER_SDCC_4
] = &xm_sdc4
,
1586 [A2NOC_SNOC_SLV
] = &qns_a2noc_snoc
,
1587 [SLAVE_ANOC_PCIE_GEM_NOC
] = &qns_pcie_mem_noc
,
1588 [SLAVE_SERVICE_A2NOC
] = &srvc_aggre2_noc
,
1591 static const struct qcom_icc_desc sm8150_aggre2_noc
= {
1592 .nodes
= aggre2_noc_nodes
,
1593 .num_nodes
= ARRAY_SIZE(aggre2_noc_nodes
),
1594 .bcms
= aggre2_noc_bcms
,
1595 .num_bcms
= ARRAY_SIZE(aggre2_noc_bcms
),
1598 static struct qcom_icc_bcm
* const camnoc_virt_bcms
[] = {
1602 static struct qcom_icc_node
* const camnoc_virt_nodes
[] = {
1603 [MASTER_CAMNOC_HF0_UNCOMP
] = &qxm_camnoc_hf0_uncomp
,
1604 [MASTER_CAMNOC_HF1_UNCOMP
] = &qxm_camnoc_hf1_uncomp
,
1605 [MASTER_CAMNOC_SF_UNCOMP
] = &qxm_camnoc_sf_uncomp
,
1606 [SLAVE_CAMNOC_UNCOMP
] = &qns_camnoc_uncomp
,
1609 static const struct qcom_icc_desc sm8150_camnoc_virt
= {
1610 .nodes
= camnoc_virt_nodes
,
1611 .num_nodes
= ARRAY_SIZE(camnoc_virt_nodes
),
1612 .bcms
= camnoc_virt_bcms
,
1613 .num_bcms
= ARRAY_SIZE(camnoc_virt_bcms
),
1616 static struct qcom_icc_bcm
* const compute_noc_bcms
[] = {
1621 static struct qcom_icc_node
* const compute_noc_nodes
[] = {
1622 [MASTER_NPU
] = &qnm_npu
,
1623 [SLAVE_CDSP_MEM_NOC
] = &qns_cdsp_mem_noc
,
1626 static const struct qcom_icc_desc sm8150_compute_noc
= {
1627 .nodes
= compute_noc_nodes
,
1628 .num_nodes
= ARRAY_SIZE(compute_noc_nodes
),
1629 .bcms
= compute_noc_bcms
,
1630 .num_bcms
= ARRAY_SIZE(compute_noc_bcms
),
1633 static struct qcom_icc_bcm
* const config_noc_bcms
[] = {
1637 static struct qcom_icc_node
* const config_noc_nodes
[] = {
1638 [MASTER_SPDM
] = &qhm_spdm
,
1639 [SNOC_CNOC_MAS
] = &qnm_snoc
,
1640 [MASTER_QDSS_DAP
] = &xm_qdss_dap
,
1641 [SLAVE_A1NOC_CFG
] = &qhs_a1_noc_cfg
,
1642 [SLAVE_A2NOC_CFG
] = &qhs_a2_noc_cfg
,
1643 [SLAVE_AHB2PHY_SOUTH
] = &qhs_ahb2phy_south
,
1644 [SLAVE_AOP
] = &qhs_aop
,
1645 [SLAVE_AOSS
] = &qhs_aoss
,
1646 [SLAVE_CAMERA_CFG
] = &qhs_camera_cfg
,
1647 [SLAVE_CLK_CTL
] = &qhs_clk_ctl
,
1648 [SLAVE_CDSP_CFG
] = &qhs_compute_dsp
,
1649 [SLAVE_RBCPR_CX_CFG
] = &qhs_cpr_cx
,
1650 [SLAVE_RBCPR_MMCX_CFG
] = &qhs_cpr_mmcx
,
1651 [SLAVE_RBCPR_MX_CFG
] = &qhs_cpr_mx
,
1652 [SLAVE_CRYPTO_0_CFG
] = &qhs_crypto0_cfg
,
1653 [SLAVE_CNOC_DDRSS
] = &qhs_ddrss_cfg
,
1654 [SLAVE_DISPLAY_CFG
] = &qhs_display_cfg
,
1655 [SLAVE_EMAC_CFG
] = &qhs_emac_cfg
,
1656 [SLAVE_GLM
] = &qhs_glm
,
1657 [SLAVE_GRAPHICS_3D_CFG
] = &qhs_gpuss_cfg
,
1658 [SLAVE_IMEM_CFG
] = &qhs_imem_cfg
,
1659 [SLAVE_IPA_CFG
] = &qhs_ipa
,
1660 [SLAVE_CNOC_MNOC_CFG
] = &qhs_mnoc_cfg
,
1661 [SLAVE_NPU_CFG
] = &qhs_npu_cfg
,
1662 [SLAVE_PCIE_0_CFG
] = &qhs_pcie0_cfg
,
1663 [SLAVE_PCIE_1_CFG
] = &qhs_pcie1_cfg
,
1664 [SLAVE_NORTH_PHY_CFG
] = &qhs_phy_refgen_north
,
1665 [SLAVE_PIMEM_CFG
] = &qhs_pimem_cfg
,
1666 [SLAVE_PRNG
] = &qhs_prng
,
1667 [SLAVE_QDSS_CFG
] = &qhs_qdss_cfg
,
1668 [SLAVE_QSPI
] = &qhs_qspi
,
1669 [SLAVE_QUP_2
] = &qhs_qupv3_east
,
1670 [SLAVE_QUP_1
] = &qhs_qupv3_north
,
1671 [SLAVE_QUP_0
] = &qhs_qupv3_south
,
1672 [SLAVE_SDCC_2
] = &qhs_sdc2
,
1673 [SLAVE_SDCC_4
] = &qhs_sdc4
,
1674 [SLAVE_SNOC_CFG
] = &qhs_snoc_cfg
,
1675 [SLAVE_SPDM_WRAPPER
] = &qhs_spdm
,
1676 [SLAVE_SPSS_CFG
] = &qhs_spss_cfg
,
1677 [SLAVE_SSC_CFG
] = &qhs_ssc_cfg
,
1678 [SLAVE_TCSR
] = &qhs_tcsr
,
1679 [SLAVE_TLMM_EAST
] = &qhs_tlmm_east
,
1680 [SLAVE_TLMM_NORTH
] = &qhs_tlmm_north
,
1681 [SLAVE_TLMM_SOUTH
] = &qhs_tlmm_south
,
1682 [SLAVE_TLMM_WEST
] = &qhs_tlmm_west
,
1683 [SLAVE_TSIF
] = &qhs_tsif
,
1684 [SLAVE_UFS_CARD_CFG
] = &qhs_ufs_card_cfg
,
1685 [SLAVE_UFS_MEM_CFG
] = &qhs_ufs_mem_cfg
,
1686 [SLAVE_USB3
] = &qhs_usb3_0
,
1687 [SLAVE_USB3_1
] = &qhs_usb3_1
,
1688 [SLAVE_VENUS_CFG
] = &qhs_venus_cfg
,
1689 [SLAVE_VSENSE_CTRL_CFG
] = &qhs_vsense_ctrl_cfg
,
1690 [SLAVE_CNOC_A2NOC
] = &qns_cnoc_a2noc
,
1691 [SLAVE_SERVICE_CNOC
] = &srvc_cnoc
,
1694 static const struct qcom_icc_desc sm8150_config_noc
= {
1695 .nodes
= config_noc_nodes
,
1696 .num_nodes
= ARRAY_SIZE(config_noc_nodes
),
1697 .bcms
= config_noc_bcms
,
1698 .num_bcms
= ARRAY_SIZE(config_noc_bcms
),
1701 static struct qcom_icc_bcm
* const dc_noc_bcms
[] = {
1704 static struct qcom_icc_node
* const dc_noc_nodes
[] = {
1705 [MASTER_CNOC_DC_NOC
] = &qhm_cnoc_dc_noc
,
1706 [SLAVE_LLCC_CFG
] = &qhs_llcc
,
1707 [SLAVE_GEM_NOC_CFG
] = &qhs_memnoc
,
1710 static const struct qcom_icc_desc sm8150_dc_noc
= {
1711 .nodes
= dc_noc_nodes
,
1712 .num_nodes
= ARRAY_SIZE(dc_noc_nodes
),
1713 .bcms
= dc_noc_bcms
,
1714 .num_bcms
= ARRAY_SIZE(dc_noc_bcms
),
1717 static struct qcom_icc_bcm
* const gem_noc_bcms
[] = {
1725 static struct qcom_icc_node
* const gem_noc_nodes
[] = {
1726 [MASTER_AMPSS_M0
] = &acm_apps
,
1727 [MASTER_GPU_TCU
] = &acm_gpu_tcu
,
1728 [MASTER_SYS_TCU
] = &acm_sys_tcu
,
1729 [MASTER_GEM_NOC_CFG
] = &qhm_gemnoc_cfg
,
1730 [MASTER_COMPUTE_NOC
] = &qnm_cmpnoc
,
1731 [MASTER_GRAPHICS_3D
] = &qnm_gpu
,
1732 [MASTER_MNOC_HF_MEM_NOC
] = &qnm_mnoc_hf
,
1733 [MASTER_MNOC_SF_MEM_NOC
] = &qnm_mnoc_sf
,
1734 [MASTER_GEM_NOC_PCIE_SNOC
] = &qnm_pcie
,
1735 [MASTER_SNOC_GC_MEM_NOC
] = &qnm_snoc_gc
,
1736 [MASTER_SNOC_SF_MEM_NOC
] = &qnm_snoc_sf
,
1737 [MASTER_ECC
] = &qxm_ecc
,
1738 [SLAVE_MSS_PROC_MS_MPU_CFG
] = &qhs_mdsp_ms_mpu_cfg
,
1739 [SLAVE_ECC
] = &qns_ecc
,
1740 [SLAVE_GEM_NOC_SNOC
] = &qns_gem_noc_snoc
,
1741 [SLAVE_LLCC
] = &qns_llcc
,
1742 [SLAVE_SERVICE_GEM_NOC
] = &srvc_gemnoc
,
1745 static const struct qcom_icc_desc sm8150_gem_noc
= {
1746 .nodes
= gem_noc_nodes
,
1747 .num_nodes
= ARRAY_SIZE(gem_noc_nodes
),
1748 .bcms
= gem_noc_bcms
,
1749 .num_bcms
= ARRAY_SIZE(gem_noc_bcms
),
1752 static struct qcom_icc_bcm
* const mc_virt_bcms
[] = {
1757 static struct qcom_icc_node
* const mc_virt_nodes
[] = {
1758 [MASTER_LLCC
] = &llcc_mc
,
1759 [SLAVE_EBI_CH0
] = &ebi
,
1762 static const struct qcom_icc_desc sm8150_mc_virt
= {
1763 .nodes
= mc_virt_nodes
,
1764 .num_nodes
= ARRAY_SIZE(mc_virt_nodes
),
1765 .bcms
= mc_virt_bcms
,
1766 .num_bcms
= ARRAY_SIZE(mc_virt_bcms
),
1769 static struct qcom_icc_bcm
* const mmss_noc_bcms
[] = {
1776 static struct qcom_icc_node
* const mmss_noc_nodes
[] = {
1777 [MASTER_CNOC_MNOC_CFG
] = &qhm_mnoc_cfg
,
1778 [MASTER_CAMNOC_HF0
] = &qxm_camnoc_hf0
,
1779 [MASTER_CAMNOC_HF1
] = &qxm_camnoc_hf1
,
1780 [MASTER_CAMNOC_SF
] = &qxm_camnoc_sf
,
1781 [MASTER_MDP_PORT0
] = &qxm_mdp0
,
1782 [MASTER_MDP_PORT1
] = &qxm_mdp1
,
1783 [MASTER_ROTATOR
] = &qxm_rot
,
1784 [MASTER_VIDEO_P0
] = &qxm_venus0
,
1785 [MASTER_VIDEO_P1
] = &qxm_venus1
,
1786 [MASTER_VIDEO_PROC
] = &qxm_venus_arm9
,
1787 [SLAVE_MNOC_SF_MEM_NOC
] = &qns2_mem_noc
,
1788 [SLAVE_MNOC_HF_MEM_NOC
] = &qns_mem_noc_hf
,
1789 [SLAVE_SERVICE_MNOC
] = &srvc_mnoc
,
1792 static const struct qcom_icc_desc sm8150_mmss_noc
= {
1793 .nodes
= mmss_noc_nodes
,
1794 .num_nodes
= ARRAY_SIZE(mmss_noc_nodes
),
1795 .bcms
= mmss_noc_bcms
,
1796 .num_bcms
= ARRAY_SIZE(mmss_noc_bcms
),
1799 static struct qcom_icc_bcm
* const system_noc_bcms
[] = {
1813 static struct qcom_icc_node
* const system_noc_nodes
[] = {
1814 [MASTER_SNOC_CFG
] = &qhm_snoc_cfg
,
1815 [A1NOC_SNOC_MAS
] = &qnm_aggre1_noc
,
1816 [A2NOC_SNOC_MAS
] = &qnm_aggre2_noc
,
1817 [MASTER_GEM_NOC_SNOC
] = &qnm_gemnoc
,
1818 [MASTER_PIMEM
] = &qxm_pimem
,
1819 [MASTER_GIC
] = &xm_gic
,
1820 [SLAVE_APPSS
] = &qhs_apss
,
1821 [SNOC_CNOC_SLV
] = &qns_cnoc
,
1822 [SLAVE_SNOC_GEM_NOC_GC
] = &qns_gemnoc_gc
,
1823 [SLAVE_SNOC_GEM_NOC_SF
] = &qns_gemnoc_sf
,
1824 [SLAVE_OCIMEM
] = &qxs_imem
,
1825 [SLAVE_PIMEM
] = &qxs_pimem
,
1826 [SLAVE_SERVICE_SNOC
] = &srvc_snoc
,
1827 [SLAVE_PCIE_0
] = &xs_pcie_0
,
1828 [SLAVE_PCIE_1
] = &xs_pcie_1
,
1829 [SLAVE_QDSS_STM
] = &xs_qdss_stm
,
1830 [SLAVE_TCU
] = &xs_sys_tcu_cfg
,
1833 static const struct qcom_icc_desc sm8150_system_noc
= {
1834 .nodes
= system_noc_nodes
,
1835 .num_nodes
= ARRAY_SIZE(system_noc_nodes
),
1836 .bcms
= system_noc_bcms
,
1837 .num_bcms
= ARRAY_SIZE(system_noc_bcms
),
1840 static const struct of_device_id qnoc_of_match
[] = {
1841 { .compatible
= "qcom,sm8150-aggre1-noc",
1842 .data
= &sm8150_aggre1_noc
},
1843 { .compatible
= "qcom,sm8150-aggre2-noc",
1844 .data
= &sm8150_aggre2_noc
},
1845 { .compatible
= "qcom,sm8150-camnoc-virt",
1846 .data
= &sm8150_camnoc_virt
},
1847 { .compatible
= "qcom,sm8150-compute-noc",
1848 .data
= &sm8150_compute_noc
},
1849 { .compatible
= "qcom,sm8150-config-noc",
1850 .data
= &sm8150_config_noc
},
1851 { .compatible
= "qcom,sm8150-dc-noc",
1852 .data
= &sm8150_dc_noc
},
1853 { .compatible
= "qcom,sm8150-gem-noc",
1854 .data
= &sm8150_gem_noc
},
1855 { .compatible
= "qcom,sm8150-mc-virt",
1856 .data
= &sm8150_mc_virt
},
1857 { .compatible
= "qcom,sm8150-mmss-noc",
1858 .data
= &sm8150_mmss_noc
},
1859 { .compatible
= "qcom,sm8150-system-noc",
1860 .data
= &sm8150_system_noc
},
1863 MODULE_DEVICE_TABLE(of
, qnoc_of_match
);
1865 static struct platform_driver qnoc_driver
= {
1866 .probe
= qcom_icc_rpmh_probe
,
1867 .remove
= qcom_icc_rpmh_remove
,
1869 .name
= "qnoc-sm8150",
1870 .of_match_table
= qnoc_of_match
,
1873 module_platform_driver(qnoc_driver
);
1875 MODULE_DESCRIPTION("Qualcomm SM8150 NoC driver");
1876 MODULE_LICENSE("GPL v2");