1 // SPDX-License-Identifier: GPL-2.0-only
3 * Based on data from msm8909-bus.dtsi in Qualcomm's msm-3.18 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,msm8909.h>
19 QNOC_MASTER_AMPSS_M0
= 1,
20 QNOC_MASTER_GRAPHICS_3D
,
31 QNOC_MASTER_CRYPTO_CORE0
,
37 QNOC_MASTER_MDP_PORT0
,
56 QNOC_SNOC_MM_INT_BIMC
,
66 QNOC_SLAVE_CRYPTO_0_CFG
,
67 QNOC_SLAVE_MESSAGE_RAM
,
78 QNOC_SLAVE_USB_PHYS_CFG
,
79 QNOC_SLAVE_CAMERA_CFG
,
80 QNOC_SLAVE_DISPLAY_CFG
,
83 QNOC_SLAVE_GRAPHICS_3D_CFG
,
92 QNOC_SLAVE_SYSTEM_IMEM
,
99 static const u16 mas_apps_proc_links
[] = {
104 static struct qcom_icc_node mas_apps_proc
= {
105 .name
= "mas_apps_proc",
106 .id
= QNOC_MASTER_AMPSS_M0
,
110 .qos
.ap_owned
= true,
111 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
115 .num_links
= ARRAY_SIZE(mas_apps_proc_links
),
116 .links
= mas_apps_proc_links
,
119 static const u16 mas_oxili_links
[] = {
124 static struct qcom_icc_node mas_oxili
= {
126 .id
= QNOC_MASTER_GRAPHICS_3D
,
130 .qos
.ap_owned
= true,
131 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
135 .num_links
= ARRAY_SIZE(mas_oxili_links
),
136 .links
= mas_oxili_links
,
139 static const u16 mas_snoc_bimc_0_links
[] = {
143 static struct qcom_icc_node mas_snoc_bimc_0
= {
144 .name
= "mas_snoc_bimc_0",
145 .id
= QNOC_SNOC_BIMC_0_MAS
,
149 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
153 .num_links
= ARRAY_SIZE(mas_snoc_bimc_0_links
),
154 .links
= mas_snoc_bimc_0_links
,
157 static const u16 mas_snoc_bimc_1_links
[] = {
161 static struct qcom_icc_node mas_snoc_bimc_1
= {
162 .name
= "mas_snoc_bimc_1",
163 .id
= QNOC_SNOC_BIMC_1_MAS
,
167 .qos
.ap_owned
= true,
168 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
172 .num_links
= ARRAY_SIZE(mas_snoc_bimc_1_links
),
173 .links
= mas_snoc_bimc_1_links
,
176 static const u16 mas_tcu_0_links
[] = {
181 static struct qcom_icc_node mas_tcu_0
= {
183 .id
= QNOC_MASTER_TCU_0
,
187 .qos
.ap_owned
= true,
188 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
192 .num_links
= ARRAY_SIZE(mas_tcu_0_links
),
193 .links
= mas_tcu_0_links
,
196 static const u16 mas_tcu_1_links
[] = {
201 static struct qcom_icc_node mas_tcu_1
= {
203 .id
= QNOC_MASTER_TCU_1
,
207 .qos
.ap_owned
= true,
208 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
212 .num_links
= ARRAY_SIZE(mas_tcu_1_links
),
213 .links
= mas_tcu_1_links
,
216 static const u16 mas_audio_links
[] = {
220 static struct qcom_icc_node mas_audio
= {
222 .id
= QNOC_MASTER_AUDIO
,
226 .num_links
= ARRAY_SIZE(mas_audio_links
),
227 .links
= mas_audio_links
,
230 static const u16 mas_spdm_links
[] = {
234 static struct qcom_icc_node mas_spdm
= {
236 .id
= QNOC_MASTER_SPDM
,
240 .num_links
= ARRAY_SIZE(mas_spdm_links
),
241 .links
= mas_spdm_links
,
244 static const u16 mas_dehr_links
[] = {
248 static struct qcom_icc_node mas_dehr
= {
250 .id
= QNOC_MASTER_DEHR
,
254 .num_links
= ARRAY_SIZE(mas_dehr_links
),
255 .links
= mas_dehr_links
,
258 static const u16 mas_qpic_links
[] = {
262 static struct qcom_icc_node mas_qpic
= {
264 .id
= QNOC_MASTER_QPIC
,
268 .num_links
= ARRAY_SIZE(mas_qpic_links
),
269 .links
= mas_qpic_links
,
272 static const u16 mas_blsp_1_links
[] = {
276 static struct qcom_icc_node mas_blsp_1
= {
277 .name
= "mas_blsp_1",
278 .id
= QNOC_MASTER_BLSP_1
,
282 .num_links
= ARRAY_SIZE(mas_blsp_1_links
),
283 .links
= mas_blsp_1_links
,
286 static const u16 mas_usb_hs_links
[] = {
290 static struct qcom_icc_node mas_usb_hs
= {
291 .name
= "mas_usb_hs",
292 .id
= QNOC_MASTER_USB_HS
,
296 .num_links
= ARRAY_SIZE(mas_usb_hs_links
),
297 .links
= mas_usb_hs_links
,
300 static const u16 mas_crypto_links
[] = {
304 static struct qcom_icc_node mas_crypto
= {
305 .name
= "mas_crypto",
306 .id
= QNOC_MASTER_CRYPTO_CORE0
,
310 .qos
.ap_owned
= true,
311 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
315 .num_links
= ARRAY_SIZE(mas_crypto_links
),
316 .links
= mas_crypto_links
,
319 static const u16 mas_sdcc_1_links
[] = {
323 static struct qcom_icc_node mas_sdcc_1
= {
324 .name
= "mas_sdcc_1",
325 .id
= QNOC_MASTER_SDCC_1
,
329 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
333 .num_links
= ARRAY_SIZE(mas_sdcc_1_links
),
334 .links
= mas_sdcc_1_links
,
337 static const u16 mas_sdcc_2_links
[] = {
341 static struct qcom_icc_node mas_sdcc_2
= {
342 .name
= "mas_sdcc_2",
343 .id
= QNOC_MASTER_SDCC_2
,
347 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
351 .num_links
= ARRAY_SIZE(mas_sdcc_2_links
),
352 .links
= mas_sdcc_2_links
,
355 static const u16 mas_snoc_pcnoc_links
[] = {
359 static struct qcom_icc_node mas_snoc_pcnoc
= {
360 .name
= "mas_snoc_pcnoc",
361 .id
= QNOC_SNOC_PNOC_MAS
,
365 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
369 .num_links
= ARRAY_SIZE(mas_snoc_pcnoc_links
),
370 .links
= mas_snoc_pcnoc_links
,
373 static const u16 mas_qdss_bam_links
[] = {
377 static struct qcom_icc_node mas_qdss_bam
= {
378 .name
= "mas_qdss_bam",
379 .id
= QNOC_MASTER_QDSS_BAM
,
383 .qos
.ap_owned
= true,
384 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
388 .num_links
= ARRAY_SIZE(mas_qdss_bam_links
),
389 .links
= mas_qdss_bam_links
,
392 static const u16 mas_bimc_snoc_links
[] = {
397 static struct qcom_icc_node mas_bimc_snoc
= {
398 .name
= "mas_bimc_snoc",
399 .id
= QNOC_BIMC_SNOC_MAS
,
403 .num_links
= ARRAY_SIZE(mas_bimc_snoc_links
),
404 .links
= mas_bimc_snoc_links
,
407 static const u16 mas_mdp_links
[] = {
412 static struct qcom_icc_node mas_mdp
= {
414 .id
= QNOC_MASTER_MDP_PORT0
,
418 .qos
.ap_owned
= true,
419 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
423 .num_links
= ARRAY_SIZE(mas_mdp_links
),
424 .links
= mas_mdp_links
,
428 static const u16 mas_pcnoc_snoc_links
[] = {
434 static struct qcom_icc_node mas_pcnoc_snoc
= {
435 .name
= "mas_pcnoc_snoc",
436 .id
= QNOC_PNOC_SNOC_MAS
,
440 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
444 .num_links
= ARRAY_SIZE(mas_pcnoc_snoc_links
),
445 .links
= mas_pcnoc_snoc_links
,
448 static const u16 mas_venus_links
[] = {
453 static struct qcom_icc_node mas_venus
= {
455 .id
= QNOC_MASTER_VIDEO_P0
,
459 .qos
.ap_owned
= true,
460 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
464 .num_links
= ARRAY_SIZE(mas_venus_links
),
465 .links
= mas_venus_links
,
469 static const u16 mas_vfe_links
[] = {
474 static struct qcom_icc_node mas_vfe
= {
476 .id
= QNOC_MASTER_VFE
,
480 .qos
.ap_owned
= true,
481 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
485 .num_links
= ARRAY_SIZE(mas_vfe_links
),
486 .links
= mas_vfe_links
,
490 static const u16 mas_qdss_etr_links
[] = {
494 static struct qcom_icc_node mas_qdss_etr
= {
495 .name
= "mas_qdss_etr",
496 .id
= QNOC_MASTER_QDSS_ETR
,
500 .qos
.ap_owned
= true,
501 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
505 .num_links
= ARRAY_SIZE(mas_qdss_etr_links
),
506 .links
= mas_qdss_etr_links
,
509 static const u16 pcnoc_m_0_links
[] = {
513 static struct qcom_icc_node pcnoc_m_0
= {
519 .qos
.qos_mode
= NOC_QOS_MODE_BYPASS
,
523 .num_links
= ARRAY_SIZE(pcnoc_m_0_links
),
524 .links
= pcnoc_m_0_links
,
527 static const u16 pcnoc_m_1_links
[] = {
531 static struct qcom_icc_node pcnoc_m_1
= {
537 .qos
.qos_mode
= NOC_QOS_MODE_FIXED
,
541 .num_links
= ARRAY_SIZE(pcnoc_m_1_links
),
542 .links
= pcnoc_m_1_links
,
545 static const u16 pcnoc_int_0_links
[] = {
556 static struct qcom_icc_node pcnoc_int_0
= {
557 .name
= "pcnoc_int_0",
558 .id
= QNOC_PNOC_INT_0
,
562 .num_links
= ARRAY_SIZE(pcnoc_int_0_links
),
563 .links
= pcnoc_int_0_links
,
566 static const u16 pcnoc_int_1_links
[] = {
570 static struct qcom_icc_node pcnoc_int_1
= {
571 .name
= "pcnoc_int_1",
572 .id
= QNOC_PNOC_INT_1
,
576 .num_links
= ARRAY_SIZE(pcnoc_int_1_links
),
577 .links
= pcnoc_int_1_links
,
580 static const u16 pcnoc_s_0_links
[] = {
586 static struct qcom_icc_node pcnoc_s_0
= {
588 .id
= QNOC_PNOC_SLV_0
,
592 .num_links
= ARRAY_SIZE(pcnoc_s_0_links
),
593 .links
= pcnoc_s_0_links
,
596 static const u16 pcnoc_s_1_links
[] = {
597 QNOC_SLAVE_MESSAGE_RAM
,
598 QNOC_SLAVE_CRYPTO_0_CFG
,
605 static struct qcom_icc_node pcnoc_s_1
= {
607 .id
= QNOC_PNOC_SLV_1
,
611 .num_links
= ARRAY_SIZE(pcnoc_s_1_links
),
612 .links
= pcnoc_s_1_links
,
615 static const u16 pcnoc_s_2_links
[] = {
622 static struct qcom_icc_node pcnoc_s_2
= {
624 .id
= QNOC_PNOC_SLV_2
,
628 .num_links
= ARRAY_SIZE(pcnoc_s_2_links
),
629 .links
= pcnoc_s_2_links
,
632 static const u16 pcnoc_s_3_links
[] = {
634 QNOC_SLAVE_USB_PHYS_CFG
,
638 static struct qcom_icc_node pcnoc_s_3
= {
640 .id
= QNOC_PNOC_SLV_3
,
644 .num_links
= ARRAY_SIZE(pcnoc_s_3_links
),
645 .links
= pcnoc_s_3_links
,
648 static const u16 pcnoc_s_4_links
[] = {
649 QNOC_SLAVE_CAMERA_CFG
,
650 QNOC_SLAVE_DISPLAY_CFG
,
654 static struct qcom_icc_node pcnoc_s_4
= {
656 .id
= QNOC_PNOC_SLV_4
,
660 .qos
.ap_owned
= true,
661 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
662 .num_links
= ARRAY_SIZE(pcnoc_s_4_links
),
663 .links
= pcnoc_s_4_links
,
666 static const u16 pcnoc_s_5_links
[] = {
670 static struct qcom_icc_node pcnoc_s_5
= {
672 .id
= QNOC_PNOC_SLV_5
,
676 .num_links
= ARRAY_SIZE(pcnoc_s_5_links
),
677 .links
= pcnoc_s_5_links
,
680 static const u16 pcnoc_s_7_links
[] = {
681 QNOC_SLAVE_GRAPHICS_3D_CFG
,
687 static struct qcom_icc_node pcnoc_s_7
= {
689 .id
= QNOC_PNOC_SLV_7
,
693 .num_links
= ARRAY_SIZE(pcnoc_s_7_links
),
694 .links
= pcnoc_s_7_links
,
697 static const u16 mm_int_0_links
[] = {
698 QNOC_SNOC_MM_INT_BIMC
701 static struct qcom_icc_node mm_int_0
= {
703 .id
= QNOC_SNOC_MM_INT_0
,
707 .qos
.ap_owned
= true,
708 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
709 .num_links
= ARRAY_SIZE(mm_int_0_links
),
710 .links
= mm_int_0_links
,
714 static const u16 mm_int_1_links
[] = {
715 QNOC_SNOC_MM_INT_BIMC
718 static struct qcom_icc_node mm_int_1
= {
720 .id
= QNOC_SNOC_MM_INT_1
,
724 .qos
.ap_owned
= true,
725 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
726 .num_links
= ARRAY_SIZE(mm_int_1_links
),
727 .links
= mm_int_1_links
,
731 static const u16 mm_int_2_links
[] = {
735 static struct qcom_icc_node mm_int_2
= {
737 .id
= QNOC_SNOC_MM_INT_2
,
741 .qos
.ap_owned
= true,
742 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
743 .num_links
= ARRAY_SIZE(mm_int_2_links
),
744 .links
= mm_int_2_links
,
748 static const u16 mm_int_bimc_links
[] = {
752 static struct qcom_icc_node mm_int_bimc
= {
753 .name
= "mm_int_bimc",
754 .id
= QNOC_SNOC_MM_INT_BIMC
,
758 .qos
.ap_owned
= true,
759 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
760 .num_links
= ARRAY_SIZE(mm_int_bimc_links
),
761 .links
= mm_int_bimc_links
,
765 static const u16 qdss_int_links
[] = {
770 static struct qcom_icc_node qdss_int
= {
772 .id
= QNOC_SNOC_QDSS_INT
,
776 .qos
.ap_owned
= true,
777 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
778 .num_links
= ARRAY_SIZE(qdss_int_links
),
779 .links
= qdss_int_links
,
782 static const u16 snoc_int_0_links
[] = {
783 QNOC_SLAVE_SYSTEM_IMEM
,
788 static struct qcom_icc_node snoc_int_0
= {
789 .name
= "snoc_int_0",
790 .id
= QNOC_SNOC_INT_0
,
794 .num_links
= ARRAY_SIZE(snoc_int_0_links
),
795 .links
= snoc_int_0_links
,
798 static const u16 snoc_int_1_links
[] = {
804 static struct qcom_icc_node snoc_int_1
= {
805 .name
= "snoc_int_1",
806 .id
= QNOC_SNOC_INT_1
,
810 .qos
.ap_owned
= true,
811 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
812 .num_links
= ARRAY_SIZE(snoc_int_1_links
),
813 .links
= snoc_int_1_links
,
816 static const u16 snoc_int_bimc_links
[] = {
820 static struct qcom_icc_node snoc_int_bimc
= {
821 .name
= "snoc_int_bimc",
822 .id
= QNOC_SNOC_INT_BIMC
,
826 .num_links
= ARRAY_SIZE(snoc_int_bimc_links
),
827 .links
= snoc_int_bimc_links
,
830 static struct qcom_icc_node slv_ebi
= {
832 .id
= QNOC_SLAVE_EBI_CH0
,
838 static const u16 slv_bimc_snoc_links
[] = {
842 static struct qcom_icc_node slv_bimc_snoc
= {
843 .name
= "slv_bimc_snoc",
844 .id
= QNOC_BIMC_SNOC_SLV
,
848 .num_links
= ARRAY_SIZE(slv_bimc_snoc_links
),
849 .links
= slv_bimc_snoc_links
,
852 static struct qcom_icc_node slv_tcsr
= {
854 .id
= QNOC_SLAVE_TCSR
,
860 static struct qcom_icc_node slv_sdcc_1
= {
861 .name
= "slv_sdcc_1",
862 .id
= QNOC_SLAVE_SDCC_1
,
868 static struct qcom_icc_node slv_blsp_1
= {
869 .name
= "slv_blsp_1",
870 .id
= QNOC_SLAVE_BLSP_1
,
876 static struct qcom_icc_node slv_crypto_0_cfg
= {
877 .name
= "slv_crypto_0_cfg",
878 .id
= QNOC_SLAVE_CRYPTO_0_CFG
,
882 .qos
.ap_owned
= true,
883 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
886 static struct qcom_icc_node slv_message_ram
= {
887 .name
= "slv_message_ram",
888 .id
= QNOC_SLAVE_MESSAGE_RAM
,
894 static struct qcom_icc_node slv_pdm
= {
896 .id
= QNOC_SLAVE_PDM
,
902 static struct qcom_icc_node slv_prng
= {
904 .id
= QNOC_SLAVE_PRNG
,
908 .qos
.ap_owned
= true,
909 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
912 static struct qcom_icc_node slv_usb_hs
= {
913 .name
= "slv_usb_hs",
914 .id
= QNOC_SLAVE_USB_HS
,
920 static struct qcom_icc_node slv_qpic
= {
922 .id
= QNOC_SLAVE_QPIC
,
928 static struct qcom_icc_node slv_spdm
= {
930 .id
= QNOC_SLAVE_SPDM
,
936 static struct qcom_icc_node slv_sdcc_2
= {
937 .name
= "slv_sdcc_2",
938 .id
= QNOC_SLAVE_SDCC_2
,
944 static struct qcom_icc_node slv_audio
= {
946 .id
= QNOC_SLAVE_AUDIO
,
952 static struct qcom_icc_node slv_dehr_cfg
= {
953 .name
= "slv_dehr_cfg",
954 .id
= QNOC_SLAVE_DEHR_CFG
,
960 static struct qcom_icc_node slv_snoc_cfg
= {
961 .name
= "slv_snoc_cfg",
962 .id
= QNOC_SLAVE_SNOC_CFG
,
968 static struct qcom_icc_node slv_qdss_cfg
= {
969 .name
= "slv_qdss_cfg",
970 .id
= QNOC_SLAVE_QDSS_CFG
,
976 static struct qcom_icc_node slv_usb_phy
= {
977 .name
= "slv_usb_phy",
978 .id
= QNOC_SLAVE_USB_PHYS_CFG
,
984 static struct qcom_icc_node slv_camera_ss_cfg
= {
985 .name
= "slv_camera_ss_cfg",
986 .id
= QNOC_SLAVE_CAMERA_CFG
,
990 .qos
.ap_owned
= true,
991 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
994 static struct qcom_icc_node slv_disp_ss_cfg
= {
995 .name
= "slv_disp_ss_cfg",
996 .id
= QNOC_SLAVE_DISPLAY_CFG
,
1000 .qos
.ap_owned
= true,
1001 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1004 static struct qcom_icc_node slv_venus_cfg
= {
1005 .name
= "slv_venus_cfg",
1006 .id
= QNOC_SLAVE_VENUS_CFG
,
1010 .qos
.ap_owned
= true,
1011 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1014 static struct qcom_icc_node slv_tlmm
= {
1016 .id
= QNOC_SLAVE_TLMM
,
1022 static struct qcom_icc_node slv_gpu_cfg
= {
1023 .name
= "slv_gpu_cfg",
1024 .id
= QNOC_SLAVE_GRAPHICS_3D_CFG
,
1028 .qos
.ap_owned
= true,
1029 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1032 static struct qcom_icc_node slv_imem_cfg
= {
1033 .name
= "slv_imem_cfg",
1034 .id
= QNOC_SLAVE_IMEM_CFG
,
1040 static struct qcom_icc_node slv_bimc_cfg
= {
1041 .name
= "slv_bimc_cfg",
1042 .id
= QNOC_SLAVE_BIMC_CFG
,
1048 static struct qcom_icc_node slv_pmic_arb
= {
1049 .name
= "slv_pmic_arb",
1050 .id
= QNOC_SLAVE_PMIC_ARB
,
1056 static struct qcom_icc_node slv_tcu
= {
1058 .id
= QNOC_SLAVE_TCU
,
1062 .qos
.ap_owned
= true,
1063 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1066 static const u16 slv_pcnoc_snoc_links
[] = {
1070 static struct qcom_icc_node slv_pcnoc_snoc
= {
1071 .name
= "slv_pcnoc_snoc",
1072 .id
= QNOC_PNOC_SNOC_SLV
,
1076 .num_links
= ARRAY_SIZE(slv_pcnoc_snoc_links
),
1077 .links
= slv_pcnoc_snoc_links
,
1080 static struct qcom_icc_node slv_kpss_ahb
= {
1081 .name
= "slv_kpss_ahb",
1082 .id
= QNOC_SLAVE_APPSS
,
1086 .qos
.ap_owned
= true,
1087 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1090 static const u16 slv_snoc_bimc_0_links
[] = {
1091 QNOC_SNOC_BIMC_0_MAS
1094 static struct qcom_icc_node slv_snoc_bimc_0
= {
1095 .name
= "slv_snoc_bimc_0",
1096 .id
= QNOC_SNOC_BIMC_0_SLV
,
1100 .num_links
= ARRAY_SIZE(slv_snoc_bimc_0_links
),
1101 .links
= slv_snoc_bimc_0_links
,
1104 static const u16 slv_snoc_bimc_1_links
[] = {
1105 QNOC_SNOC_BIMC_1_MAS
1108 static struct qcom_icc_node slv_snoc_bimc_1
= {
1109 .name
= "slv_snoc_bimc_1",
1110 .id
= QNOC_SNOC_BIMC_1_SLV
,
1114 .qos
.ap_owned
= true,
1115 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1116 .num_links
= ARRAY_SIZE(slv_snoc_bimc_1_links
),
1117 .links
= slv_snoc_bimc_1_links
,
1120 static struct qcom_icc_node slv_imem
= {
1122 .id
= QNOC_SLAVE_SYSTEM_IMEM
,
1128 static const u16 slv_snoc_pcnoc_links
[] = {
1132 static struct qcom_icc_node slv_snoc_pcnoc
= {
1133 .name
= "slv_snoc_pcnoc",
1134 .id
= QNOC_SNOC_PNOC_SLV
,
1138 .num_links
= ARRAY_SIZE(slv_snoc_pcnoc_links
),
1139 .links
= slv_snoc_pcnoc_links
,
1142 static struct qcom_icc_node slv_qdss_stm
= {
1143 .name
= "slv_qdss_stm",
1144 .id
= QNOC_SLAVE_QDSS_STM
,
1150 static struct qcom_icc_node slv_cats_0
= {
1151 .name
= "slv_cats_0",
1152 .id
= QNOC_SLAVE_CATS_128
,
1156 .qos
.ap_owned
= true,
1157 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1160 static struct qcom_icc_node slv_cats_1
= {
1161 .name
= "slv_cats_1",
1162 .id
= QNOC_SLAVE_OCMEM_64
,
1166 .qos
.ap_owned
= true,
1167 .qos
.qos_mode
= NOC_QOS_MODE_INVALID
,
1170 static struct qcom_icc_node
* const msm8909_bimc_nodes
[] = {
1171 [MAS_APPS_PROC
] = &mas_apps_proc
,
1172 [MAS_OXILI
] = &mas_oxili
,
1173 [MAS_SNOC_BIMC_0
] = &mas_snoc_bimc_0
,
1174 [MAS_SNOC_BIMC_1
] = &mas_snoc_bimc_1
,
1175 [MAS_TCU_0
] = &mas_tcu_0
,
1176 [MAS_TCU_1
] = &mas_tcu_1
,
1177 [SLV_EBI
] = &slv_ebi
,
1178 [SLV_BIMC_SNOC
] = &slv_bimc_snoc
,
1181 static const struct regmap_config msm8909_bimc_regmap_config
= {
1185 .max_register
= 0x62000,
1189 static const struct qcom_icc_desc msm8909_bimc
= {
1190 .type
= QCOM_ICC_BIMC
,
1191 .nodes
= msm8909_bimc_nodes
,
1192 .num_nodes
= ARRAY_SIZE(msm8909_bimc_nodes
),
1193 .bus_clk_desc
= &bimc_clk
,
1194 .regmap_cfg
= &msm8909_bimc_regmap_config
,
1195 .qos_offset
= 0x8000,
1199 static struct qcom_icc_node
* const msm8909_pcnoc_nodes
[] = {
1200 [MAS_AUDIO
] = &mas_audio
,
1201 [MAS_SPDM
] = &mas_spdm
,
1202 [MAS_DEHR
] = &mas_dehr
,
1203 [MAS_QPIC
] = &mas_qpic
,
1204 [MAS_BLSP_1
] = &mas_blsp_1
,
1205 [MAS_USB_HS
] = &mas_usb_hs
,
1206 [MAS_CRYPTO
] = &mas_crypto
,
1207 [MAS_SDCC_1
] = &mas_sdcc_1
,
1208 [MAS_SDCC_2
] = &mas_sdcc_2
,
1209 [MAS_SNOC_PCNOC
] = &mas_snoc_pcnoc
,
1210 [PCNOC_M_0
] = &pcnoc_m_0
,
1211 [PCNOC_M_1
] = &pcnoc_m_1
,
1212 [PCNOC_INT_0
] = &pcnoc_int_0
,
1213 [PCNOC_INT_1
] = &pcnoc_int_1
,
1214 [PCNOC_S_0
] = &pcnoc_s_0
,
1215 [PCNOC_S_1
] = &pcnoc_s_1
,
1216 [PCNOC_S_2
] = &pcnoc_s_2
,
1217 [PCNOC_S_3
] = &pcnoc_s_3
,
1218 [PCNOC_S_4
] = &pcnoc_s_4
,
1219 [PCNOC_S_5
] = &pcnoc_s_5
,
1220 [PCNOC_S_7
] = &pcnoc_s_7
,
1221 [SLV_TCSR
] = &slv_tcsr
,
1222 [SLV_SDCC_1
] = &slv_sdcc_1
,
1223 [SLV_BLSP_1
] = &slv_blsp_1
,
1224 [SLV_CRYPTO_0_CFG
] = &slv_crypto_0_cfg
,
1225 [SLV_MESSAGE_RAM
] = &slv_message_ram
,
1226 [SLV_PDM
] = &slv_pdm
,
1227 [SLV_PRNG
] = &slv_prng
,
1228 [SLV_USB_HS
] = &slv_usb_hs
,
1229 [SLV_QPIC
] = &slv_qpic
,
1230 [SLV_SPDM
] = &slv_spdm
,
1231 [SLV_SDCC_2
] = &slv_sdcc_2
,
1232 [SLV_AUDIO
] = &slv_audio
,
1233 [SLV_DEHR_CFG
] = &slv_dehr_cfg
,
1234 [SLV_SNOC_CFG
] = &slv_snoc_cfg
,
1235 [SLV_QDSS_CFG
] = &slv_qdss_cfg
,
1236 [SLV_USB_PHY
] = &slv_usb_phy
,
1237 [SLV_CAMERA_SS_CFG
] = &slv_camera_ss_cfg
,
1238 [SLV_DISP_SS_CFG
] = &slv_disp_ss_cfg
,
1239 [SLV_VENUS_CFG
] = &slv_venus_cfg
,
1240 [SLV_TLMM
] = &slv_tlmm
,
1241 [SLV_GPU_CFG
] = &slv_gpu_cfg
,
1242 [SLV_IMEM_CFG
] = &slv_imem_cfg
,
1243 [SLV_BIMC_CFG
] = &slv_bimc_cfg
,
1244 [SLV_PMIC_ARB
] = &slv_pmic_arb
,
1245 [SLV_TCU
] = &slv_tcu
,
1246 [SLV_PCNOC_SNOC
] = &slv_pcnoc_snoc
,
1249 static const struct regmap_config msm8909_pcnoc_regmap_config
= {
1253 .max_register
= 0x11000,
1257 static const struct qcom_icc_desc msm8909_pcnoc
= {
1258 .type
= QCOM_ICC_NOC
,
1259 .nodes
= msm8909_pcnoc_nodes
,
1260 .num_nodes
= ARRAY_SIZE(msm8909_pcnoc_nodes
),
1261 .bus_clk_desc
= &bus_0_clk
,
1262 .regmap_cfg
= &msm8909_pcnoc_regmap_config
,
1263 .qos_offset
= 0x7000,
1266 static struct qcom_icc_node
* const msm8909_snoc_nodes
[] = {
1267 [MAS_QDSS_BAM
] = &mas_qdss_bam
,
1268 [MAS_BIMC_SNOC
] = &mas_bimc_snoc
,
1269 [MAS_MDP
] = &mas_mdp
,
1270 [MAS_PCNOC_SNOC
] = &mas_pcnoc_snoc
,
1271 [MAS_VENUS
] = &mas_venus
,
1272 [MAS_VFE
] = &mas_vfe
,
1273 [MAS_QDSS_ETR
] = &mas_qdss_etr
,
1274 [MM_INT_0
] = &mm_int_0
,
1275 [MM_INT_1
] = &mm_int_1
,
1276 [MM_INT_2
] = &mm_int_2
,
1277 [MM_INT_BIMC
] = &mm_int_bimc
,
1278 [QDSS_INT
] = &qdss_int
,
1279 [SNOC_INT_0
] = &snoc_int_0
,
1280 [SNOC_INT_1
] = &snoc_int_1
,
1281 [SNOC_INT_BIMC
] = &snoc_int_bimc
,
1282 [SLV_KPSS_AHB
] = &slv_kpss_ahb
,
1283 [SLV_SNOC_BIMC_0
] = &slv_snoc_bimc_0
,
1284 [SLV_SNOC_BIMC_1
] = &slv_snoc_bimc_1
,
1285 [SLV_IMEM
] = &slv_imem
,
1286 [SLV_SNOC_PCNOC
] = &slv_snoc_pcnoc
,
1287 [SLV_QDSS_STM
] = &slv_qdss_stm
,
1288 [SLV_CATS_0
] = &slv_cats_0
,
1289 [SLV_CATS_1
] = &slv_cats_1
,
1292 static const struct regmap_config msm8909_snoc_regmap_config
= {
1296 .max_register
= 0x13000,
1300 static const struct qcom_icc_desc msm8909_snoc
= {
1301 .type
= QCOM_ICC_NOC
,
1302 .nodes
= msm8909_snoc_nodes
,
1303 .num_nodes
= ARRAY_SIZE(msm8909_snoc_nodes
),
1304 .bus_clk_desc
= &bus_1_clk
,
1305 .regmap_cfg
= &msm8909_snoc_regmap_config
,
1306 .qos_offset
= 0x7000,
1309 static const struct of_device_id msm8909_noc_of_match
[] = {
1310 { .compatible
= "qcom,msm8909-bimc", .data
= &msm8909_bimc
},
1311 { .compatible
= "qcom,msm8909-pcnoc", .data
= &msm8909_pcnoc
},
1312 { .compatible
= "qcom,msm8909-snoc", .data
= &msm8909_snoc
},
1315 MODULE_DEVICE_TABLE(of
, msm8909_noc_of_match
);
1317 static struct platform_driver msm8909_noc_driver
= {
1318 .probe
= qnoc_probe
,
1319 .remove
= qnoc_remove
,
1321 .name
= "qnoc-msm8909",
1322 .of_match_table
= msm8909_noc_of_match
,
1323 .sync_state
= icc_sync_state
,
1326 module_platform_driver(msm8909_noc_driver
);
1328 MODULE_DESCRIPTION("Qualcomm MSM8909 NoC driver");
1329 MODULE_LICENSE("GPL");