1 // SPDX-License-Identifier: GPL-2.0-only
3 * Based on data from msm8976-bus.dtsi in Qualcomm's msm-3.10 release:
4 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
7 #include <linux/device.h>
8 #include <linux/interconnect-provider.h>
9 #include <linux/mod_devicetable.h>
10 #include <linux/module.h>
11 #include <linux/platform_device.h>
12 #include <linux/regmap.h>
14 #include <dt-bindings/interconnect/qcom,msm8976.h>
19 QNOC_MASTER_AMPSS_M0
= 1,
27 QNOC_MASTER_CRYPTO_CORE0
,
32 QNOC_MASTER_LPASS_AHB
,
35 QNOC_MASTER_XM_USB_HS1
,
39 QNOC_MASTER_GRAPHICS_3D
,
40 QNOC_MASTER_MDP_PORT0
,
41 QNOC_MASTER_MDP_PORT1
,
49 QNOC_MASTER_LPASS_PROC
,
71 QNOC_SLAVE_CRYPTO_0_CFG
,
72 QNOC_SLAVE_MESSAGE_RAM
,
78 QNOC_SLAVE_CAMERA_CFG
,
79 QNOC_SLAVE_DISPLAY_CFG
,
86 QNOC_SLAVE_GRAPHICS_3D_CFG
,
93 QNOC_SLAVE_SYSTEM_IMEM
,
101 static const u16 mas_apps_proc_links
[] = {
106 static struct qcom_icc_node mas_apps_proc
= {
107 .name
= "mas_apps_proc",
108 .id
= QNOC_MASTER_AMPSS_M0
,
112 .qos
.ap_owned
= true,
113 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
117 .num_links
= ARRAY_SIZE(mas_apps_proc_links
),
118 .links
= mas_apps_proc_links
,
121 static const u16 mas_smmnoc_bimc_links
[] = {
125 static struct qcom_icc_node mas_smmnoc_bimc
= {
126 .name
= "mas_smmnoc_bimc",
127 .id
= QNOC_MNOC_BIMC_MAS
,
132 .qos
.ap_owned
= true,
133 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
137 .num_links
= ARRAY_SIZE(mas_smmnoc_bimc_links
),
138 .links
= mas_smmnoc_bimc_links
,
141 static const u16 mas_snoc_bimc_links
[] = {
145 static struct qcom_icc_node mas_snoc_bimc
= {
146 .name
= "mas_snoc_bimc",
147 .id
= QNOC_SNOC_BIMC_MAS
,
152 .qos
.ap_owned
= true,
153 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
157 .num_links
= ARRAY_SIZE(mas_snoc_bimc_links
),
158 .links
= mas_snoc_bimc_links
,
161 static const u16 mas_tcu_0_links
[] = {
166 static struct qcom_icc_node mas_tcu_0
= {
168 .id
= QNOC_MASTER_TCU_0
,
172 .qos
.ap_owned
= true,
173 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
177 .num_links
= ARRAY_SIZE(mas_tcu_0_links
),
178 .links
= mas_tcu_0_links
,
181 static const u16 mas_usb_hs2_links
[] = {
185 static struct qcom_icc_node mas_usb_hs2
= {
186 .name
= "mas_usb_hs2",
187 .id
= QNOC_MASTER_USB_HS2
,
191 .num_links
= ARRAY_SIZE(mas_usb_hs2_links
),
192 .links
= mas_usb_hs2_links
,
195 static const u16 mas_blsp_1_links
[] = {
199 static struct qcom_icc_node mas_blsp_1
= {
200 .name
= "mas_blsp_1",
201 .id
= QNOC_MASTER_BLSP_1
,
205 .num_links
= ARRAY_SIZE(mas_blsp_1_links
),
206 .links
= mas_blsp_1_links
,
209 static const u16 mas_usb_hs1_links
[] = {
213 static struct qcom_icc_node mas_usb_hs1
= {
214 .name
= "mas_usb_hs1",
215 .id
= QNOC_MASTER_USB_HS
,
219 .num_links
= ARRAY_SIZE(mas_usb_hs1_links
),
220 .links
= mas_usb_hs1_links
,
223 static const u16 mas_blsp_2_links
[] = {
227 static struct qcom_icc_node mas_blsp_2
= {
228 .name
= "mas_blsp_2",
229 .id
= QNOC_MASTER_BLSP_2
,
233 .num_links
= ARRAY_SIZE(mas_blsp_2_links
),
234 .links
= mas_blsp_2_links
,
237 static const u16 mas_crypto_links
[] = {
241 static struct qcom_icc_node mas_crypto
= {
242 .name
= "mas_crypto",
243 .id
= QNOC_MASTER_CRYPTO_CORE0
,
247 .qos
.ap_owned
= true,
248 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
252 .num_links
= ARRAY_SIZE(mas_crypto_links
),
253 .links
= mas_crypto_links
,
256 static const u16 mas_sdcc_1_links
[] = {
260 static struct qcom_icc_node mas_sdcc_1
= {
261 .name
= "mas_sdcc_1",
262 .id
= QNOC_MASTER_SDCC_1
,
266 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
270 .num_links
= ARRAY_SIZE(mas_sdcc_1_links
),
271 .links
= mas_sdcc_1_links
,
274 static const u16 mas_sdcc_2_links
[] = {
278 static struct qcom_icc_node mas_sdcc_2
= {
279 .name
= "mas_sdcc_2",
280 .id
= QNOC_MASTER_SDCC_2
,
284 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
288 .num_links
= ARRAY_SIZE(mas_sdcc_2_links
),
289 .links
= mas_sdcc_2_links
,
292 static const u16 mas_sdcc_3_links
[] = {
296 static struct qcom_icc_node mas_sdcc_3
= {
297 .name
= "mas_sdcc_3",
298 .id
= QNOC_MASTER_SDCC_3
,
302 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
306 .num_links
= ARRAY_SIZE(mas_sdcc_3_links
),
307 .links
= mas_sdcc_3_links
,
310 static const u16 mas_snoc_pcnoc_links
[] = {
314 static struct qcom_icc_node mas_snoc_pcnoc
= {
315 .name
= "mas_snoc_pcnoc",
316 .id
= QNOC_SNOC_PNOC_MAS
,
320 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
324 .num_links
= ARRAY_SIZE(mas_snoc_pcnoc_links
),
325 .links
= mas_snoc_pcnoc_links
,
328 static const u16 mas_lpass_ahb_links
[] = {
332 static struct qcom_icc_node mas_lpass_ahb
= {
333 .name
= "mas_lpass_ahb",
334 .id
= QNOC_MASTER_LPASS_AHB
,
338 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
342 .num_links
= ARRAY_SIZE(mas_lpass_ahb_links
),
343 .links
= mas_lpass_ahb_links
,
346 static const u16 mas_spdm_links
[] = {
350 static struct qcom_icc_node mas_spdm
= {
352 .id
= QNOC_MASTER_SPDM
,
356 .num_links
= ARRAY_SIZE(mas_spdm_links
),
357 .links
= mas_spdm_links
,
360 static const u16 mas_dehr_links
[] = {
364 static struct qcom_icc_node mas_dehr
= {
366 .id
= QNOC_MASTER_DEHR
,
370 .num_links
= ARRAY_SIZE(mas_dehr_links
),
371 .links
= mas_dehr_links
,
374 static const u16 mas_xm_usb_hs1_links
[] = {
378 static struct qcom_icc_node mas_xm_usb_hs1
= {
379 .name
= "mas_xm_usb_hs1",
380 .id
= QNOC_MASTER_XM_USB_HS1
,
384 .num_links
= ARRAY_SIZE(mas_xm_usb_hs1_links
),
385 .links
= mas_xm_usb_hs1_links
,
388 static const u16 mas_qdss_bam_links
[] = {
392 static struct qcom_icc_node mas_qdss_bam
= {
393 .name
= "mas_qdss_bam",
394 .id
= QNOC_MASTER_QDSS_BAM
,
398 .qos
.ap_owned
= true,
399 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
403 .num_links
= ARRAY_SIZE(mas_qdss_bam_links
),
404 .links
= mas_qdss_bam_links
,
407 static const u16 mas_bimc_snoc_links
[] = {
411 static struct qcom_icc_node mas_bimc_snoc
= {
412 .name
= "mas_bimc_snoc",
413 .id
= QNOC_BIMC_SNOC_MAS
,
417 .num_links
= ARRAY_SIZE(mas_bimc_snoc_links
),
418 .links
= mas_bimc_snoc_links
,
421 static const u16 mas_jpeg_links
[] = {
426 static struct qcom_icc_node mas_jpeg
= {
428 .id
= QNOC_MASTER_JPEG
,
432 .qos
.ap_owned
= true,
433 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
437 .num_links
= ARRAY_SIZE(mas_jpeg_links
),
438 .links
= mas_jpeg_links
,
441 static const u16 mas_oxili_links
[] = {
446 static struct qcom_icc_node mas_oxili
= {
448 .id
= QNOC_MASTER_GRAPHICS_3D
,
454 .qos
.ap_owned
= true,
455 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
458 .qos
.qos_port
= 16, /* [16, 17] */
459 .num_links
= ARRAY_SIZE(mas_oxili_links
),
460 .links
= mas_oxili_links
,
463 static const u16 mas_mdp0_links
[] = {
468 static struct qcom_icc_node mas_mdp0
= {
470 .id
= QNOC_MASTER_MDP_PORT0
,
475 .qos
.ap_owned
= true,
476 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
480 .num_links
= ARRAY_SIZE(mas_mdp0_links
),
481 .links
= mas_mdp0_links
,
484 static const u16 mas_mdp1_links
[] = {
489 static struct qcom_icc_node mas_mdp1
= {
491 .id
= QNOC_MASTER_MDP_PORT1
,
496 .qos
.ap_owned
= true,
497 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
501 .num_links
= ARRAY_SIZE(mas_mdp1_links
),
502 .links
= mas_mdp1_links
,
505 static const u16 mas_pcnoc_snoc_links
[] = {
509 static struct qcom_icc_node mas_pcnoc_snoc
= {
510 .name
= "mas_pcnoc_snoc",
511 .id
= QNOC_PNOC_SNOC_MAS
,
515 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
519 .num_links
= ARRAY_SIZE(mas_pcnoc_snoc_links
),
520 .links
= mas_pcnoc_snoc_links
,
523 static const u16 mas_venus_0_links
[] = {
528 static struct qcom_icc_node mas_venus_0
= {
529 .name
= "mas_venus_0",
530 .id
= QNOC_MASTER_VIDEO_P0
,
534 .qos
.ap_owned
= true,
535 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
539 .num_links
= ARRAY_SIZE(mas_venus_0_links
),
540 .links
= mas_venus_0_links
,
543 static const u16 mas_venus_1_links
[] = {
548 static struct qcom_icc_node mas_venus_1
= {
549 .name
= "mas_venus_1",
550 .id
= QNOC_MASTER_VIDEO_P1
,
554 .qos
.ap_owned
= true,
555 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
559 .num_links
= ARRAY_SIZE(mas_venus_1_links
),
560 .links
= mas_venus_1_links
,
563 static const u16 mas_vfe_0_links
[] = {
568 static struct qcom_icc_node mas_vfe_0
= {
570 .id
= QNOC_MASTER_VFE0
,
574 .qos
.ap_owned
= true,
575 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
579 .num_links
= ARRAY_SIZE(mas_vfe_0_links
),
580 .links
= mas_vfe_0_links
,
583 static const u16 mas_vfe_1_links
[] = {
588 static struct qcom_icc_node mas_vfe_1
= {
590 .id
= QNOC_MASTER_VFE1
,
594 .qos
.ap_owned
= true,
595 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
599 .num_links
= ARRAY_SIZE(mas_vfe_1_links
),
600 .links
= mas_vfe_1_links
,
603 static const u16 mas_cpp_links
[] = {
608 static struct qcom_icc_node mas_cpp
= {
610 .id
= QNOC_MASTER_CPP
,
614 .qos
.ap_owned
= true,
615 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
619 .num_links
= ARRAY_SIZE(mas_cpp_links
),
620 .links
= mas_cpp_links
,
623 static const u16 mas_qdss_etr_links
[] = {
627 static struct qcom_icc_node mas_qdss_etr
= {
628 .name
= "mas_qdss_etr",
629 .id
= QNOC_MASTER_QDSS_ETR
,
633 .qos
.ap_owned
= true,
634 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
638 .num_links
= ARRAY_SIZE(mas_qdss_etr_links
),
639 .links
= mas_qdss_etr_links
,
642 static const u16 mas_lpass_proc_links
[] = {
648 static struct qcom_icc_node mas_lpass_proc
= {
649 .name
= "mas_lpass_proc",
650 .id
= QNOC_MASTER_LPASS_PROC
,
654 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
658 .num_links
= ARRAY_SIZE(mas_lpass_proc_links
),
659 .links
= mas_lpass_proc_links
,
662 static const u16 mas_ipa_links
[] = {
666 static struct qcom_icc_node mas_ipa
= {
668 .id
= QNOC_MASTER_IPA
,
672 .qos
.ap_owned
= true,
673 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
677 .num_links
= ARRAY_SIZE(mas_ipa_links
),
678 .links
= mas_ipa_links
,
681 static const u16 pcnoc_m_0_links
[] = {
685 static struct qcom_icc_node pcnoc_m_0
= {
691 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
695 .num_links
= ARRAY_SIZE(pcnoc_m_0_links
),
696 .links
= pcnoc_m_0_links
,
699 static const u16 pcnoc_m_1_links
[] = {
703 static struct qcom_icc_node pcnoc_m_1
= {
709 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
713 .num_links
= ARRAY_SIZE(pcnoc_m_1_links
),
714 .links
= pcnoc_m_1_links
,
717 static const u16 pcnoc_int_0_links
[] = {
722 static struct qcom_icc_node pcnoc_int_0
= {
723 .name
= "pcnoc_int_0",
724 .id
= QNOC_PNOC_INT_0
,
728 .num_links
= ARRAY_SIZE(pcnoc_int_0_links
),
729 .links
= pcnoc_int_0_links
,
732 static const u16 pcnoc_int_1_links
[] = {
737 static struct qcom_icc_node pcnoc_int_1
= {
738 .name
= "pcnoc_int_1",
739 .id
= QNOC_PNOC_INT_1
,
743 .num_links
= ARRAY_SIZE(pcnoc_int_1_links
),
744 .links
= pcnoc_int_1_links
,
747 static const u16 pcnoc_int_2_links
[] = {
756 static struct qcom_icc_node pcnoc_int_2
= {
757 .name
= "pcnoc_int_2",
758 .id
= QNOC_PNOC_INT_2
,
762 .num_links
= ARRAY_SIZE(pcnoc_int_2_links
),
763 .links
= pcnoc_int_2_links
,
766 static const u16 pcnoc_s_1_links
[] = {
767 QNOC_SLAVE_CRYPTO_0_CFG
,
770 QNOC_SLAVE_MESSAGE_RAM
773 static struct qcom_icc_node pcnoc_s_1
= {
775 .id
= QNOC_PNOC_SLV_1
,
779 .num_links
= ARRAY_SIZE(pcnoc_s_1_links
),
780 .links
= pcnoc_s_1_links
,
783 static const u16 pcnoc_s_2_links
[] = {
787 static struct qcom_icc_node pcnoc_s_2
= {
789 .id
= QNOC_PNOC_SLV_2
,
793 .num_links
= ARRAY_SIZE(pcnoc_s_2_links
),
794 .links
= pcnoc_s_2_links
,
797 static const u16 pcnoc_s_3_links
[] = {
802 static struct qcom_icc_node pcnoc_s_3
= {
804 .id
= QNOC_PNOC_SLV_3
,
808 .num_links
= ARRAY_SIZE(pcnoc_s_3_links
),
809 .links
= pcnoc_s_3_links
,
812 static const u16 pcnoc_s_4_links
[] = {
813 QNOC_SLAVE_CAMERA_CFG
,
814 QNOC_SLAVE_DISPLAY_CFG
,
818 static struct qcom_icc_node pcnoc_s_4
= {
820 .id
= QNOC_PNOC_SLV_4
,
824 .qos
.ap_owned
= true,
825 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
826 .num_links
= ARRAY_SIZE(pcnoc_s_4_links
),
827 .links
= pcnoc_s_4_links
,
830 static const u16 pcnoc_s_8_links
[] = {
837 static struct qcom_icc_node pcnoc_s_8
= {
839 .id
= QNOC_PNOC_SLV_8
,
843 .num_links
= ARRAY_SIZE(pcnoc_s_8_links
),
844 .links
= pcnoc_s_8_links
,
847 static const u16 pcnoc_s_9_links
[] = {
848 QNOC_SLAVE_GRAPHICS_3D_CFG
,
854 static struct qcom_icc_node pcnoc_s_9
= {
856 .id
= QNOC_PNOC_SLV_9
,
860 .num_links
= ARRAY_SIZE(pcnoc_s_9_links
),
861 .links
= pcnoc_s_9_links
,
864 static const u16 mm_int_0_links
[] = {
868 static struct qcom_icc_node mm_int_0
= {
870 .id
= QNOC_SNOC_MM_INT_0
,
875 .qos
.ap_owned
= true,
876 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
877 .num_links
= ARRAY_SIZE(mm_int_0_links
),
878 .links
= mm_int_0_links
,
881 static const u16 qdss_int_links
[] = {
885 static struct qcom_icc_node qdss_int
= {
887 .id
= QNOC_SNOC_QDSS_INT
,
891 .qos
.ap_owned
= true,
892 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
893 .num_links
= ARRAY_SIZE(qdss_int_links
),
894 .links
= qdss_int_links
,
897 static const u16 snoc_int_0_links
[] = {
899 QNOC_SLAVE_SYSTEM_IMEM
,
903 static struct qcom_icc_node snoc_int_0
= {
904 .name
= "snoc_int_0",
905 .id
= QNOC_SNOC_INT_0
,
909 .num_links
= ARRAY_SIZE(snoc_int_0_links
),
910 .links
= snoc_int_0_links
,
913 static const u16 snoc_int_1_links
[] = {
920 static struct qcom_icc_node snoc_int_1
= {
921 .name
= "snoc_int_1",
922 .id
= QNOC_SNOC_INT_1
,
926 .qos
.ap_owned
= true,
927 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
928 .num_links
= ARRAY_SIZE(snoc_int_1_links
),
929 .links
= snoc_int_1_links
,
932 static const u16 snoc_int_2_links
[] = {
938 static struct qcom_icc_node snoc_int_2
= {
939 .name
= "snoc_int_2",
940 .id
= QNOC_SNOC_INT_2
,
944 .num_links
= ARRAY_SIZE(snoc_int_2_links
),
945 .links
= snoc_int_2_links
,
948 static struct qcom_icc_node slv_ebi
= {
950 .id
= QNOC_SLAVE_EBI_CH0
,
957 static const u16 slv_bimc_snoc_links
[] = {
961 static struct qcom_icc_node slv_bimc_snoc
= {
962 .name
= "slv_bimc_snoc",
963 .id
= QNOC_BIMC_SNOC_SLV
,
967 .num_links
= ARRAY_SIZE(slv_bimc_snoc_links
),
968 .links
= slv_bimc_snoc_links
,
971 static struct qcom_icc_node slv_tcsr
= {
973 .id
= QNOC_SLAVE_TCSR
,
979 static struct qcom_icc_node slv_tlmm
= {
981 .id
= QNOC_SLAVE_TLMM
,
987 static struct qcom_icc_node slv_crypto_0_cfg
= {
988 .name
= "slv_crypto_0_cfg",
989 .id
= QNOC_SLAVE_CRYPTO_0_CFG
,
993 .qos
.ap_owned
= true,
994 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
997 static struct qcom_icc_node slv_message_ram
= {
998 .name
= "slv_message_ram",
999 .id
= QNOC_SLAVE_MESSAGE_RAM
,
1005 static struct qcom_icc_node slv_pdm
= {
1007 .id
= QNOC_SLAVE_PDM
,
1013 static struct qcom_icc_node slv_prng
= {
1015 .id
= QNOC_SLAVE_PRNG
,
1019 .qos
.ap_owned
= true,
1020 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1023 static struct qcom_icc_node slv_pmic_arb
= {
1024 .name
= "slv_pmic_arb",
1025 .id
= QNOC_SLAVE_PMIC_ARB
,
1031 static struct qcom_icc_node slv_snoc_cfg
= {
1032 .name
= "slv_snoc_cfg",
1033 .id
= QNOC_SLAVE_SNOC_CFG
,
1039 static struct qcom_icc_node slv_dcc_cfg
= {
1040 .name
= "slv_dcc_cfg",
1041 .id
= QNOC_SLAVE_DCC_CFG
,
1045 .qos
.ap_owned
= true,
1046 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1049 static struct qcom_icc_node slv_camera_ss_cfg
= {
1050 .name
= "slv_camera_ss_cfg",
1051 .id
= QNOC_SLAVE_CAMERA_CFG
,
1055 .qos
.ap_owned
= true,
1056 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1059 static struct qcom_icc_node slv_disp_ss_cfg
= {
1060 .name
= "slv_disp_ss_cfg",
1061 .id
= QNOC_SLAVE_DISPLAY_CFG
,
1065 .qos
.ap_owned
= true,
1066 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1069 static struct qcom_icc_node slv_venus_cfg
= {
1070 .name
= "slv_venus_cfg",
1071 .id
= QNOC_SLAVE_VENUS_CFG
,
1075 .qos
.ap_owned
= true,
1076 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1079 static struct qcom_icc_node slv_sdcc_1
= {
1080 .name
= "slv_sdcc_1",
1081 .id
= QNOC_SLAVE_SDCC_1
,
1087 static struct qcom_icc_node slv_blsp_1
= {
1088 .name
= "slv_blsp_1",
1089 .id
= QNOC_SLAVE_BLSP_1
,
1095 static struct qcom_icc_node slv_usb_hs
= {
1096 .name
= "slv_usb_hs",
1097 .id
= QNOC_SLAVE_USB_HS
,
1103 static struct qcom_icc_node slv_sdcc_3
= {
1104 .name
= "slv_sdcc_3",
1105 .id
= QNOC_SLAVE_SDCC_3
,
1111 static struct qcom_icc_node slv_sdcc_2
= {
1112 .name
= "slv_sdcc_2",
1113 .id
= QNOC_SLAVE_SDCC_2
,
1119 static struct qcom_icc_node slv_gpu_cfg
= {
1120 .name
= "slv_gpu_cfg",
1121 .id
= QNOC_SLAVE_GRAPHICS_3D_CFG
,
1125 .qos
.ap_owned
= true,
1126 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1129 static struct qcom_icc_node slv_usb_hs2
= {
1130 .name
= "slv_usb_hs2",
1131 .id
= QNOC_SLAVE_USB_HS2
,
1137 static struct qcom_icc_node slv_blsp_2
= {
1138 .name
= "slv_blsp_2",
1139 .id
= QNOC_SLAVE_BLSP_2
,
1145 static const u16 slv_pcnoc_snoc_links
[] = {
1149 static struct qcom_icc_node slv_pcnoc_snoc
= {
1150 .name
= "slv_pcnoc_snoc",
1151 .id
= QNOC_PNOC_SNOC_SLV
,
1155 .num_links
= ARRAY_SIZE(slv_pcnoc_snoc_links
),
1156 .links
= slv_pcnoc_snoc_links
,
1159 static struct qcom_icc_node slv_kpss_ahb
= {
1160 .name
= "slv_kpss_ahb",
1161 .id
= QNOC_SLAVE_APPSS
,
1165 .qos
.ap_owned
= true,
1166 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1169 static const u16 slv_smmnoc_bimc_links
[] = {
1173 static struct qcom_icc_node slv_smmnoc_bimc
= {
1174 .name
= "slv_smmnoc_bimc",
1175 .id
= QNOC_MNOC_BIMC_SLV
,
1181 .qos
.ap_owned
= true,
1182 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1183 .num_links
= ARRAY_SIZE(slv_smmnoc_bimc_links
),
1184 .links
= slv_smmnoc_bimc_links
,
1187 static const u16 slv_snoc_bimc_links
[] = {
1191 static struct qcom_icc_node slv_snoc_bimc
= {
1192 .name
= "slv_snoc_bimc",
1193 .id
= QNOC_SNOC_BIMC_SLV
,
1198 .qos
.ap_owned
= true,
1199 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1200 .num_links
= ARRAY_SIZE(slv_snoc_bimc_links
),
1201 .links
= slv_snoc_bimc_links
,
1204 static struct qcom_icc_node slv_imem
= {
1206 .id
= QNOC_SLAVE_SYSTEM_IMEM
,
1212 static const u16 slv_snoc_pcnoc_links
[] = {
1216 static struct qcom_icc_node slv_snoc_pcnoc
= {
1217 .name
= "slv_snoc_pcnoc",
1218 .id
= QNOC_SNOC_PNOC_SLV
,
1222 .num_links
= ARRAY_SIZE(slv_snoc_pcnoc_links
),
1223 .links
= slv_snoc_pcnoc_links
,
1226 static struct qcom_icc_node slv_qdss_stm
= {
1227 .name
= "slv_qdss_stm",
1228 .id
= QNOC_SLAVE_QDSS_STM
,
1234 static struct qcom_icc_node slv_cats_0
= {
1235 .name
= "slv_cats_0",
1236 .id
= QNOC_SLAVE_CATS_128
,
1240 .qos
.ap_owned
= true,
1241 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1244 static struct qcom_icc_node slv_cats_1
= {
1245 .name
= "slv_cats_1",
1246 .id
= QNOC_SLAVE_OCMEM_64
,
1250 .qos
.ap_owned
= true,
1251 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1254 static struct qcom_icc_node slv_lpass
= {
1255 .name
= "slv_lpass",
1256 .id
= QNOC_SLAVE_LPASS
,
1260 .qos
.ap_owned
= true,
1261 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1264 static struct qcom_icc_node
* const msm8976_bimc_nodes
[] = {
1265 [MAS_APPS_PROC
] = &mas_apps_proc
,
1266 [MAS_SMMNOC_BIMC
] = &mas_smmnoc_bimc
,
1267 [MAS_SNOC_BIMC
] = &mas_snoc_bimc
,
1268 [MAS_TCU_0
] = &mas_tcu_0
,
1269 [SLV_EBI
] = &slv_ebi
,
1270 [SLV_BIMC_SNOC
] = &slv_bimc_snoc
,
1273 static const struct regmap_config msm8976_bimc_regmap_config
= {
1277 .max_register
= 0x62000,
1281 static const struct qcom_icc_desc msm8976_bimc
= {
1282 .type
= QCOM_ICC_BIMC
,
1283 .nodes
= msm8976_bimc_nodes
,
1284 .num_nodes
= ARRAY_SIZE(msm8976_bimc_nodes
),
1285 .bus_clk_desc
= &bimc_clk
,
1286 .regmap_cfg
= &msm8976_bimc_regmap_config
,
1287 .qos_offset
= 0x8000,
1291 static struct qcom_icc_node
* const msm8976_pcnoc_nodes
[] = {
1292 [MAS_USB_HS2
] = &mas_usb_hs2
,
1293 [MAS_BLSP_1
] = &mas_blsp_1
,
1294 [MAS_USB_HS1
] = &mas_usb_hs1
,
1295 [MAS_BLSP_2
] = &mas_blsp_2
,
1296 [MAS_CRYPTO
] = &mas_crypto
,
1297 [MAS_SDCC_1
] = &mas_sdcc_1
,
1298 [MAS_SDCC_2
] = &mas_sdcc_2
,
1299 [MAS_SDCC_3
] = &mas_sdcc_3
,
1300 [MAS_SNOC_PCNOC
] = &mas_snoc_pcnoc
,
1301 [MAS_LPASS_AHB
] = &mas_lpass_ahb
,
1302 [MAS_SPDM
] = &mas_spdm
,
1303 [MAS_DEHR
] = &mas_dehr
,
1304 [MAS_XM_USB_HS1
] = &mas_xm_usb_hs1
,
1305 [PCNOC_M_0
] = &pcnoc_m_0
,
1306 [PCNOC_M_1
] = &pcnoc_m_1
,
1307 [PCNOC_INT_0
] = &pcnoc_int_0
,
1308 [PCNOC_INT_1
] = &pcnoc_int_1
,
1309 [PCNOC_INT_2
] = &pcnoc_int_2
,
1310 [PCNOC_S_1
] = &pcnoc_s_1
,
1311 [PCNOC_S_2
] = &pcnoc_s_2
,
1312 [PCNOC_S_3
] = &pcnoc_s_3
,
1313 [PCNOC_S_4
] = &pcnoc_s_4
,
1314 [PCNOC_S_8
] = &pcnoc_s_8
,
1315 [PCNOC_S_9
] = &pcnoc_s_9
,
1316 [SLV_TCSR
] = &slv_tcsr
,
1317 [SLV_TLMM
] = &slv_tlmm
,
1318 [SLV_CRYPTO_0_CFG
] = &slv_crypto_0_cfg
,
1319 [SLV_MESSAGE_RAM
] = &slv_message_ram
,
1320 [SLV_PDM
] = &slv_pdm
,
1321 [SLV_PRNG
] = &slv_prng
,
1322 [SLV_PMIC_ARB
] = &slv_pmic_arb
,
1323 [SLV_SNOC_CFG
] = &slv_snoc_cfg
,
1324 [SLV_DCC_CFG
] = &slv_dcc_cfg
,
1325 [SLV_CAMERA_SS_CFG
] = &slv_camera_ss_cfg
,
1326 [SLV_DISP_SS_CFG
] = &slv_disp_ss_cfg
,
1327 [SLV_VENUS_CFG
] = &slv_venus_cfg
,
1328 [SLV_SDCC_1
] = &slv_sdcc_1
,
1329 [SLV_BLSP_1
] = &slv_blsp_1
,
1330 [SLV_USB_HS
] = &slv_usb_hs
,
1331 [SLV_SDCC_3
] = &slv_sdcc_3
,
1332 [SLV_SDCC_2
] = &slv_sdcc_2
,
1333 [SLV_GPU_CFG
] = &slv_gpu_cfg
,
1334 [SLV_USB_HS2
] = &slv_usb_hs2
,
1335 [SLV_BLSP_2
] = &slv_blsp_2
,
1336 [SLV_PCNOC_SNOC
] = &slv_pcnoc_snoc
,
1339 static const struct regmap_config msm8976_pcnoc_regmap_config
= {
1343 .max_register
= 0x14000,
1347 static const struct qcom_icc_desc msm8976_pcnoc
= {
1348 .type
= QCOM_ICC_NOC
,
1349 .nodes
= msm8976_pcnoc_nodes
,
1350 .num_nodes
= ARRAY_SIZE(msm8976_pcnoc_nodes
),
1351 .bus_clk_desc
= &bus_0_clk
,
1352 .qos_offset
= 0x7000,
1354 .regmap_cfg
= &msm8976_pcnoc_regmap_config
,
1357 static struct qcom_icc_node
* const msm8976_snoc_nodes
[] = {
1358 [MAS_QDSS_BAM
] = &mas_qdss_bam
,
1359 [MAS_BIMC_SNOC
] = &mas_bimc_snoc
,
1360 [MAS_PCNOC_SNOC
] = &mas_pcnoc_snoc
,
1361 [MAS_QDSS_ETR
] = &mas_qdss_etr
,
1362 [MAS_LPASS_PROC
] = &mas_lpass_proc
,
1363 [MAS_IPA
] = &mas_ipa
,
1364 [QDSS_INT
] = &qdss_int
,
1365 [SNOC_INT_0
] = &snoc_int_0
,
1366 [SNOC_INT_1
] = &snoc_int_1
,
1367 [SNOC_INT_2
] = &snoc_int_2
,
1368 [SLV_KPSS_AHB
] = &slv_kpss_ahb
,
1369 [SLV_SNOC_BIMC
] = &slv_snoc_bimc
,
1370 [SLV_IMEM
] = &slv_imem
,
1371 [SLV_SNOC_PCNOC
] = &slv_snoc_pcnoc
,
1372 [SLV_QDSS_STM
] = &slv_qdss_stm
,
1373 [SLV_CATS_0
] = &slv_cats_0
,
1374 [SLV_CATS_1
] = &slv_cats_1
,
1375 [SLV_LPASS
] = &slv_lpass
,
1378 static const struct regmap_config msm8976_snoc_regmap_config
= {
1382 .max_register
= 0x1A000,
1386 static const struct qcom_icc_desc msm8976_snoc
= {
1387 .type
= QCOM_ICC_NOC
,
1388 .nodes
= msm8976_snoc_nodes
,
1389 .num_nodes
= ARRAY_SIZE(msm8976_snoc_nodes
),
1390 .bus_clk_desc
= &bus_1_clk
,
1391 .regmap_cfg
= &msm8976_snoc_regmap_config
,
1392 .qos_offset
= 0x7000,
1395 static struct qcom_icc_node
* const msm8976_snoc_mm_nodes
[] = {
1396 [MAS_JPEG
] = &mas_jpeg
,
1397 [MAS_OXILI
] = &mas_oxili
,
1398 [MAS_MDP0
] = &mas_mdp0
,
1399 [MAS_MDP1
] = &mas_mdp1
,
1400 [MAS_VENUS_0
] = &mas_venus_0
,
1401 [MAS_VENUS_1
] = &mas_venus_1
,
1402 [MAS_VFE_0
] = &mas_vfe_0
,
1403 [MAS_VFE_1
] = &mas_vfe_1
,
1404 [MAS_CPP
] = &mas_cpp
,
1405 [MM_INT_0
] = &mm_int_0
,
1406 [SLV_SMMNOC_BIMC
] = &slv_smmnoc_bimc
,
1409 static const struct qcom_icc_desc msm8976_snoc_mm
= {
1410 .type
= QCOM_ICC_NOC
,
1411 .nodes
= msm8976_snoc_mm_nodes
,
1412 .num_nodes
= ARRAY_SIZE(msm8976_snoc_mm_nodes
),
1413 .bus_clk_desc
= &bus_2_clk
,
1414 .regmap_cfg
= &msm8976_snoc_regmap_config
,
1415 .qos_offset
= 0x7000,
1419 static const struct of_device_id msm8976_noc_of_match
[] = {
1420 { .compatible
= "qcom,msm8976-bimc", .data
= &msm8976_bimc
},
1421 { .compatible
= "qcom,msm8976-pcnoc", .data
= &msm8976_pcnoc
},
1422 { .compatible
= "qcom,msm8976-snoc", .data
= &msm8976_snoc
},
1423 { .compatible
= "qcom,msm8976-snoc-mm", .data
= &msm8976_snoc_mm
},
1426 MODULE_DEVICE_TABLE(of
, msm8976_noc_of_match
);
1428 static struct platform_driver msm8976_noc_driver
= {
1429 .probe
= qnoc_probe
,
1430 .remove
= qnoc_remove
,
1432 .name
= "qnoc-msm8976",
1433 .of_match_table
= msm8976_noc_of_match
,
1434 .sync_state
= icc_sync_state
,
1437 module_platform_driver(msm8976_noc_driver
);
1439 MODULE_DESCRIPTION("Qualcomm MSM8976 NoC driver");
1440 MODULE_LICENSE("GPL");