]> Git Repo - linux.git/blob - drivers/interconnect/qcom/sc8280xp.c
mm: abstract the vma_merge()/split_vma() pattern for mprotect() et al.
[linux.git] / drivers / interconnect / qcom / sc8280xp.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
4  * Copyright (c) 2022, Linaro Ltd
5  */
6
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,sc8280xp.h>
14
15 #include "bcm-voter.h"
16 #include "icc-rpmh.h"
17 #include "sc8280xp.h"
18
19 static struct qcom_icc_node qhm_qspi = {
20         .name = "qhm_qspi",
21         .id = SC8280XP_MASTER_QSPI_0,
22         .channels = 1,
23         .buswidth = 4,
24         .num_links = 1,
25         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
26 };
27
28 static struct qcom_icc_node qhm_qup1 = {
29         .name = "qhm_qup1",
30         .id = SC8280XP_MASTER_QUP_1,
31         .channels = 1,
32         .buswidth = 4,
33         .num_links = 1,
34         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
35 };
36
37 static struct qcom_icc_node qhm_qup2 = {
38         .name = "qhm_qup2",
39         .id = SC8280XP_MASTER_QUP_2,
40         .channels = 1,
41         .buswidth = 4,
42         .num_links = 1,
43         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
44 };
45
46 static struct qcom_icc_node qnm_a1noc_cfg = {
47         .name = "qnm_a1noc_cfg",
48         .id = SC8280XP_MASTER_A1NOC_CFG,
49         .channels = 1,
50         .buswidth = 4,
51         .links = { SC8280XP_SLAVE_SERVICE_A1NOC },
52 };
53
54 static struct qcom_icc_node qxm_ipa = {
55         .name = "qxm_ipa",
56         .id = SC8280XP_MASTER_IPA,
57         .channels = 1,
58         .buswidth = 8,
59         .num_links = 1,
60         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
61 };
62
63 static struct qcom_icc_node xm_emac_1 = {
64         .name = "xm_emac_1",
65         .id = SC8280XP_MASTER_EMAC_1,
66         .channels = 1,
67         .buswidth = 8,
68         .num_links = 1,
69         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
70 };
71
72 static struct qcom_icc_node xm_sdc4 = {
73         .name = "xm_sdc4",
74         .id = SC8280XP_MASTER_SDCC_4,
75         .channels = 1,
76         .buswidth = 8,
77         .num_links = 1,
78         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
79 };
80
81 static struct qcom_icc_node xm_ufs_mem = {
82         .name = "xm_ufs_mem",
83         .id = SC8280XP_MASTER_UFS_MEM,
84         .channels = 1,
85         .buswidth = 8,
86         .num_links = 1,
87         .links = { SC8280XP_SLAVE_A1NOC_SNOC },
88 };
89
90 static struct qcom_icc_node xm_usb3_0 = {
91         .name = "xm_usb3_0",
92         .id = SC8280XP_MASTER_USB3_0,
93         .channels = 1,
94         .buswidth = 8,
95         .num_links = 1,
96         .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
97 };
98
99 static struct qcom_icc_node xm_usb3_1 = {
100         .name = "xm_usb3_1",
101         .id = SC8280XP_MASTER_USB3_1,
102         .channels = 1,
103         .buswidth = 8,
104         .num_links = 1,
105         .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
106 };
107
108 static struct qcom_icc_node xm_usb3_mp = {
109         .name = "xm_usb3_mp",
110         .id = SC8280XP_MASTER_USB3_MP,
111         .channels = 1,
112         .buswidth = 16,
113         .num_links = 1,
114         .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
115 };
116
117 static struct qcom_icc_node xm_usb4_host0 = {
118         .name = "xm_usb4_host0",
119         .id = SC8280XP_MASTER_USB4_0,
120         .channels = 1,
121         .buswidth = 16,
122         .num_links = 1,
123         .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
124 };
125
126 static struct qcom_icc_node xm_usb4_host1 = {
127         .name = "xm_usb4_host1",
128         .id = SC8280XP_MASTER_USB4_1,
129         .channels = 1,
130         .buswidth = 16,
131         .num_links = 1,
132         .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
133 };
134
135 static struct qcom_icc_node qhm_qdss_bam = {
136         .name = "qhm_qdss_bam",
137         .id = SC8280XP_MASTER_QDSS_BAM,
138         .channels = 1,
139         .buswidth = 4,
140         .num_links = 1,
141         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
142 };
143
144 static struct qcom_icc_node qhm_qup0 = {
145         .name = "qhm_qup0",
146         .id = SC8280XP_MASTER_QUP_0,
147         .channels = 1,
148         .buswidth = 4,
149         .num_links = 1,
150         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
151 };
152
153 static struct qcom_icc_node qnm_a2noc_cfg = {
154         .name = "qnm_a2noc_cfg",
155         .id = SC8280XP_MASTER_A2NOC_CFG,
156         .channels = 1,
157         .buswidth = 4,
158         .num_links = 1,
159         .links = { SC8280XP_SLAVE_SERVICE_A2NOC },
160 };
161
162 static struct qcom_icc_node qxm_crypto = {
163         .name = "qxm_crypto",
164         .id = SC8280XP_MASTER_CRYPTO,
165         .channels = 1,
166         .buswidth = 8,
167         .num_links = 1,
168         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
169 };
170
171 static struct qcom_icc_node qxm_sensorss_q6 = {
172         .name = "qxm_sensorss_q6",
173         .id = SC8280XP_MASTER_SENSORS_PROC,
174         .channels = 1,
175         .buswidth = 8,
176         .num_links = 1,
177         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
178 };
179
180 static struct qcom_icc_node qxm_sp = {
181         .name = "qxm_sp",
182         .id = SC8280XP_MASTER_SP,
183         .channels = 1,
184         .buswidth = 8,
185         .num_links = 1,
186         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
187 };
188
189 static struct qcom_icc_node xm_emac_0 = {
190         .name = "xm_emac_0",
191         .id = SC8280XP_MASTER_EMAC,
192         .channels = 1,
193         .buswidth = 8,
194         .num_links = 1,
195         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
196 };
197
198 static struct qcom_icc_node xm_pcie3_0 = {
199         .name = "xm_pcie3_0",
200         .id = SC8280XP_MASTER_PCIE_0,
201         .channels = 1,
202         .buswidth = 16,
203         .num_links = 1,
204         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
205 };
206
207 static struct qcom_icc_node xm_pcie3_1 = {
208         .name = "xm_pcie3_1",
209         .id = SC8280XP_MASTER_PCIE_1,
210         .channels = 1,
211         .buswidth = 16,
212         .num_links = 1,
213         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
214 };
215
216 static struct qcom_icc_node xm_pcie3_2a = {
217         .name = "xm_pcie3_2a",
218         .id = SC8280XP_MASTER_PCIE_2A,
219         .channels = 1,
220         .buswidth = 16,
221         .num_links = 1,
222         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
223 };
224
225 static struct qcom_icc_node xm_pcie3_2b = {
226         .name = "xm_pcie3_2b",
227         .id = SC8280XP_MASTER_PCIE_2B,
228         .channels = 1,
229         .buswidth = 8,
230         .num_links = 1,
231         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
232 };
233
234 static struct qcom_icc_node xm_pcie3_3a = {
235         .name = "xm_pcie3_3a",
236         .id = SC8280XP_MASTER_PCIE_3A,
237         .channels = 1,
238         .buswidth = 16,
239         .num_links = 1,
240         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
241 };
242
243 static struct qcom_icc_node xm_pcie3_3b = {
244         .name = "xm_pcie3_3b",
245         .id = SC8280XP_MASTER_PCIE_3B,
246         .channels = 1,
247         .buswidth = 8,
248         .num_links = 1,
249         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
250 };
251
252 static struct qcom_icc_node xm_pcie3_4 = {
253         .name = "xm_pcie3_4",
254         .id = SC8280XP_MASTER_PCIE_4,
255         .channels = 1,
256         .buswidth = 8,
257         .num_links = 1,
258         .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
259 };
260
261 static struct qcom_icc_node xm_qdss_etr = {
262         .name = "xm_qdss_etr",
263         .id = SC8280XP_MASTER_QDSS_ETR,
264         .channels = 1,
265         .buswidth = 8,
266         .num_links = 1,
267         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
268 };
269
270 static struct qcom_icc_node xm_sdc2 = {
271         .name = "xm_sdc2",
272         .id = SC8280XP_MASTER_SDCC_2,
273         .channels = 1,
274         .buswidth = 8,
275         .num_links = 1,
276         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
277 };
278
279 static struct qcom_icc_node xm_ufs_card = {
280         .name = "xm_ufs_card",
281         .id = SC8280XP_MASTER_UFS_CARD,
282         .channels = 1,
283         .buswidth = 8,
284         .num_links = 1,
285         .links = { SC8280XP_SLAVE_A2NOC_SNOC },
286 };
287
288 static struct qcom_icc_node qup0_core_master = {
289         .name = "qup0_core_master",
290         .id = SC8280XP_MASTER_QUP_CORE_0,
291         .channels = 1,
292         .buswidth = 4,
293         .num_links = 1,
294         .links = { SC8280XP_SLAVE_QUP_CORE_0 },
295 };
296
297 static struct qcom_icc_node qup1_core_master = {
298         .name = "qup1_core_master",
299         .id = SC8280XP_MASTER_QUP_CORE_1,
300         .channels = 1,
301         .buswidth = 4,
302         .num_links = 1,
303         .links = { SC8280XP_SLAVE_QUP_CORE_1 },
304 };
305
306 static struct qcom_icc_node qup2_core_master = {
307         .name = "qup2_core_master",
308         .id = SC8280XP_MASTER_QUP_CORE_2,
309         .channels = 1,
310         .buswidth = 4,
311         .num_links = 1,
312         .links = { SC8280XP_SLAVE_QUP_CORE_2 },
313 };
314
315 static struct qcom_icc_node qnm_gemnoc_cnoc = {
316         .name = "qnm_gemnoc_cnoc",
317         .id = SC8280XP_MASTER_GEM_NOC_CNOC,
318         .channels = 1,
319         .buswidth = 16,
320         .num_links = 76,
321         .links = { SC8280XP_SLAVE_AHB2PHY_0,
322                    SC8280XP_SLAVE_AHB2PHY_1,
323                    SC8280XP_SLAVE_AHB2PHY_2,
324                    SC8280XP_SLAVE_AOSS,
325                    SC8280XP_SLAVE_APPSS,
326                    SC8280XP_SLAVE_CAMERA_CFG,
327                    SC8280XP_SLAVE_CLK_CTL,
328                    SC8280XP_SLAVE_CDSP_CFG,
329                    SC8280XP_SLAVE_CDSP1_CFG,
330                    SC8280XP_SLAVE_RBCPR_CX_CFG,
331                    SC8280XP_SLAVE_RBCPR_MMCX_CFG,
332                    SC8280XP_SLAVE_RBCPR_MX_CFG,
333                    SC8280XP_SLAVE_CPR_NSPCX,
334                    SC8280XP_SLAVE_CRYPTO_0_CFG,
335                    SC8280XP_SLAVE_CX_RDPM,
336                    SC8280XP_SLAVE_DCC_CFG,
337                    SC8280XP_SLAVE_DISPLAY_CFG,
338                    SC8280XP_SLAVE_DISPLAY1_CFG,
339                    SC8280XP_SLAVE_EMAC_CFG,
340                    SC8280XP_SLAVE_EMAC1_CFG,
341                    SC8280XP_SLAVE_GFX3D_CFG,
342                    SC8280XP_SLAVE_HWKM,
343                    SC8280XP_SLAVE_IMEM_CFG,
344                    SC8280XP_SLAVE_IPA_CFG,
345                    SC8280XP_SLAVE_IPC_ROUTER_CFG,
346                    SC8280XP_SLAVE_LPASS,
347                    SC8280XP_SLAVE_MX_RDPM,
348                    SC8280XP_SLAVE_MXC_RDPM,
349                    SC8280XP_SLAVE_PCIE_0_CFG,
350                    SC8280XP_SLAVE_PCIE_1_CFG,
351                    SC8280XP_SLAVE_PCIE_2A_CFG,
352                    SC8280XP_SLAVE_PCIE_2B_CFG,
353                    SC8280XP_SLAVE_PCIE_3A_CFG,
354                    SC8280XP_SLAVE_PCIE_3B_CFG,
355                    SC8280XP_SLAVE_PCIE_4_CFG,
356                    SC8280XP_SLAVE_PCIE_RSC_CFG,
357                    SC8280XP_SLAVE_PDM,
358                    SC8280XP_SLAVE_PIMEM_CFG,
359                    SC8280XP_SLAVE_PKA_WRAPPER_CFG,
360                    SC8280XP_SLAVE_PMU_WRAPPER_CFG,
361                    SC8280XP_SLAVE_QDSS_CFG,
362                    SC8280XP_SLAVE_QSPI_0,
363                    SC8280XP_SLAVE_QUP_0,
364                    SC8280XP_SLAVE_QUP_1,
365                    SC8280XP_SLAVE_QUP_2,
366                    SC8280XP_SLAVE_SDCC_2,
367                    SC8280XP_SLAVE_SDCC_4,
368                    SC8280XP_SLAVE_SECURITY,
369                    SC8280XP_SLAVE_SMMUV3_CFG,
370                    SC8280XP_SLAVE_SMSS_CFG,
371                    SC8280XP_SLAVE_SPSS_CFG,
372                    SC8280XP_SLAVE_TCSR,
373                    SC8280XP_SLAVE_TLMM,
374                    SC8280XP_SLAVE_UFS_CARD_CFG,
375                    SC8280XP_SLAVE_UFS_MEM_CFG,
376                    SC8280XP_SLAVE_USB3_0,
377                    SC8280XP_SLAVE_USB3_1,
378                    SC8280XP_SLAVE_USB3_MP,
379                    SC8280XP_SLAVE_USB4_0,
380                    SC8280XP_SLAVE_USB4_1,
381                    SC8280XP_SLAVE_VENUS_CFG,
382                    SC8280XP_SLAVE_VSENSE_CTRL_CFG,
383                    SC8280XP_SLAVE_VSENSE_CTRL_R_CFG,
384                    SC8280XP_SLAVE_A1NOC_CFG,
385                    SC8280XP_SLAVE_A2NOC_CFG,
386                    SC8280XP_SLAVE_ANOC_PCIE_BRIDGE_CFG,
387                    SC8280XP_SLAVE_DDRSS_CFG,
388                    SC8280XP_SLAVE_CNOC_MNOC_CFG,
389                    SC8280XP_SLAVE_SNOC_CFG,
390                    SC8280XP_SLAVE_SNOC_SF_BRIDGE_CFG,
391                    SC8280XP_SLAVE_IMEM,
392                    SC8280XP_SLAVE_PIMEM,
393                    SC8280XP_SLAVE_SERVICE_CNOC,
394                    SC8280XP_SLAVE_QDSS_STM,
395                    SC8280XP_SLAVE_SMSS,
396                    SC8280XP_SLAVE_TCU
397         },
398 };
399
400 static struct qcom_icc_node qnm_gemnoc_pcie = {
401         .name = "qnm_gemnoc_pcie",
402         .id = SC8280XP_MASTER_GEM_NOC_PCIE_SNOC,
403         .channels = 1,
404         .buswidth = 16,
405         .num_links = 7,
406         .links = { SC8280XP_SLAVE_PCIE_0,
407                    SC8280XP_SLAVE_PCIE_1,
408                    SC8280XP_SLAVE_PCIE_2A,
409                    SC8280XP_SLAVE_PCIE_2B,
410                    SC8280XP_SLAVE_PCIE_3A,
411                    SC8280XP_SLAVE_PCIE_3B,
412                    SC8280XP_SLAVE_PCIE_4
413         },
414 };
415
416 static struct qcom_icc_node qnm_cnoc_dc_noc = {
417         .name = "qnm_cnoc_dc_noc",
418         .id = SC8280XP_MASTER_CNOC_DC_NOC,
419         .channels = 1,
420         .buswidth = 4,
421         .num_links = 2,
422         .links = { SC8280XP_SLAVE_LLCC_CFG,
423                    SC8280XP_SLAVE_GEM_NOC_CFG
424         },
425 };
426
427 static struct qcom_icc_node alm_gpu_tcu = {
428         .name = "alm_gpu_tcu",
429         .id = SC8280XP_MASTER_GPU_TCU,
430         .channels = 1,
431         .buswidth = 8,
432         .num_links = 2,
433         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
434                    SC8280XP_SLAVE_LLCC
435         },
436 };
437
438 static struct qcom_icc_node alm_pcie_tcu = {
439         .name = "alm_pcie_tcu",
440         .id = SC8280XP_MASTER_PCIE_TCU,
441         .channels = 1,
442         .buswidth = 8,
443         .num_links = 2,
444         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
445                    SC8280XP_SLAVE_LLCC
446         },
447 };
448
449 static struct qcom_icc_node alm_sys_tcu = {
450         .name = "alm_sys_tcu",
451         .id = SC8280XP_MASTER_SYS_TCU,
452         .channels = 1,
453         .buswidth = 8,
454         .num_links = 2,
455         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
456                    SC8280XP_SLAVE_LLCC
457         },
458 };
459
460 static struct qcom_icc_node chm_apps = {
461         .name = "chm_apps",
462         .id = SC8280XP_MASTER_APPSS_PROC,
463         .channels = 2,
464         .buswidth = 32,
465         .num_links = 3,
466         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
467                    SC8280XP_SLAVE_LLCC,
468                    SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC
469         },
470 };
471
472 static struct qcom_icc_node qnm_cmpnoc0 = {
473         .name = "qnm_cmpnoc0",
474         .id = SC8280XP_MASTER_COMPUTE_NOC,
475         .channels = 2,
476         .buswidth = 32,
477         .num_links = 2,
478         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
479                    SC8280XP_SLAVE_LLCC
480         },
481 };
482
483 static struct qcom_icc_node qnm_cmpnoc1 = {
484         .name = "qnm_cmpnoc1",
485         .id = SC8280XP_MASTER_COMPUTE_NOC_1,
486         .channels = 2,
487         .buswidth = 32,
488         .num_links = 2,
489         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
490                    SC8280XP_SLAVE_LLCC
491         },
492 };
493
494 static struct qcom_icc_node qnm_gemnoc_cfg = {
495         .name = "qnm_gemnoc_cfg",
496         .id = SC8280XP_MASTER_GEM_NOC_CFG,
497         .channels = 1,
498         .buswidth = 4,
499         .num_links = 3,
500         .links = { SC8280XP_SLAVE_SERVICE_GEM_NOC_1,
501                    SC8280XP_SLAVE_SERVICE_GEM_NOC_2,
502                    SC8280XP_SLAVE_SERVICE_GEM_NOC
503         },
504 };
505
506 static struct qcom_icc_node qnm_gpu = {
507         .name = "qnm_gpu",
508         .id = SC8280XP_MASTER_GFX3D,
509         .channels = 4,
510         .buswidth = 32,
511         .num_links = 2,
512         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
513                    SC8280XP_SLAVE_LLCC
514         },
515 };
516
517 static struct qcom_icc_node qnm_mnoc_hf = {
518         .name = "qnm_mnoc_hf",
519         .id = SC8280XP_MASTER_MNOC_HF_MEM_NOC,
520         .channels = 2,
521         .buswidth = 32,
522         .num_links = 2,
523         .links = { SC8280XP_SLAVE_LLCC,
524                    SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC
525         },
526 };
527
528 static struct qcom_icc_node qnm_mnoc_sf = {
529         .name = "qnm_mnoc_sf",
530         .id = SC8280XP_MASTER_MNOC_SF_MEM_NOC,
531         .channels = 2,
532         .buswidth = 32,
533         .num_links = 2,
534         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
535                    SC8280XP_SLAVE_LLCC
536         },
537 };
538
539 static struct qcom_icc_node qnm_pcie = {
540         .name = "qnm_pcie",
541         .id = SC8280XP_MASTER_ANOC_PCIE_GEM_NOC,
542         .channels = 1,
543         .buswidth = 32,
544         .num_links = 2,
545         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
546                    SC8280XP_SLAVE_LLCC
547         },
548 };
549
550 static struct qcom_icc_node qnm_snoc_gc = {
551         .name = "qnm_snoc_gc",
552         .id = SC8280XP_MASTER_SNOC_GC_MEM_NOC,
553         .channels = 1,
554         .buswidth = 8,
555         .num_links = 1,
556         .links = { SC8280XP_SLAVE_LLCC },
557 };
558
559 static struct qcom_icc_node qnm_snoc_sf = {
560         .name = "qnm_snoc_sf",
561         .id = SC8280XP_MASTER_SNOC_SF_MEM_NOC,
562         .channels = 1,
563         .buswidth = 16,
564         .num_links = 3,
565         .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
566                    SC8280XP_SLAVE_LLCC,
567                    SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC },
568 };
569
570 static struct qcom_icc_node qhm_config_noc = {
571         .name = "qhm_config_noc",
572         .id = SC8280XP_MASTER_CNOC_LPASS_AG_NOC,
573         .channels = 1,
574         .buswidth = 4,
575         .num_links = 6,
576         .links = { SC8280XP_SLAVE_LPASS_CORE_CFG,
577                    SC8280XP_SLAVE_LPASS_LPI_CFG,
578                    SC8280XP_SLAVE_LPASS_MPU_CFG,
579                    SC8280XP_SLAVE_LPASS_TOP_CFG,
580                    SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
581                    SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC
582         },
583 };
584
585 static struct qcom_icc_node qxm_lpass_dsp = {
586         .name = "qxm_lpass_dsp",
587         .id = SC8280XP_MASTER_LPASS_PROC,
588         .channels = 1,
589         .buswidth = 8,
590         .num_links = 4,
591         .links = { SC8280XP_SLAVE_LPASS_TOP_CFG,
592                    SC8280XP_SLAVE_LPASS_SNOC,
593                    SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
594                    SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC
595         },
596 };
597
598 static struct qcom_icc_node llcc_mc = {
599         .name = "llcc_mc",
600         .id = SC8280XP_MASTER_LLCC,
601         .channels = 8,
602         .buswidth = 4,
603         .num_links = 1,
604         .links = { SC8280XP_SLAVE_EBI1 },
605 };
606
607 static struct qcom_icc_node qnm_camnoc_hf = {
608         .name = "qnm_camnoc_hf",
609         .id = SC8280XP_MASTER_CAMNOC_HF,
610         .channels = 2,
611         .buswidth = 32,
612         .num_links = 1,
613         .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
614 };
615
616 static struct qcom_icc_node qnm_mdp0_0 = {
617         .name = "qnm_mdp0_0",
618         .id = SC8280XP_MASTER_MDP0,
619         .channels = 1,
620         .buswidth = 32,
621         .num_links = 1,
622         .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
623 };
624
625 static struct qcom_icc_node qnm_mdp0_1 = {
626         .name = "qnm_mdp0_1",
627         .id = SC8280XP_MASTER_MDP1,
628         .channels = 1,
629         .buswidth = 32,
630         .num_links = 1,
631         .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
632 };
633
634 static struct qcom_icc_node qnm_mdp1_0 = {
635         .name = "qnm_mdp1_0",
636         .id = SC8280XP_MASTER_MDP_CORE1_0,
637         .channels = 1,
638         .buswidth = 32,
639         .num_links = 1,
640         .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
641 };
642
643 static struct qcom_icc_node qnm_mdp1_1 = {
644         .name = "qnm_mdp1_1",
645         .id = SC8280XP_MASTER_MDP_CORE1_1,
646         .channels = 1,
647         .buswidth = 32,
648         .num_links = 1,
649         .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
650 };
651
652 static struct qcom_icc_node qnm_mnoc_cfg = {
653         .name = "qnm_mnoc_cfg",
654         .id = SC8280XP_MASTER_CNOC_MNOC_CFG,
655         .channels = 1,
656         .buswidth = 4,
657         .num_links = 1,
658         .links = { SC8280XP_SLAVE_SERVICE_MNOC },
659 };
660
661 static struct qcom_icc_node qnm_rot_0 = {
662         .name = "qnm_rot_0",
663         .id = SC8280XP_MASTER_ROTATOR,
664         .channels = 1,
665         .buswidth = 32,
666         .num_links = 1,
667         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
668 };
669
670 static struct qcom_icc_node qnm_rot_1 = {
671         .name = "qnm_rot_1",
672         .id = SC8280XP_MASTER_ROTATOR_1,
673         .channels = 1,
674         .buswidth = 32,
675         .num_links = 1,
676         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
677 };
678
679 static struct qcom_icc_node qnm_video0 = {
680         .name = "qnm_video0",
681         .id = SC8280XP_MASTER_VIDEO_P0,
682         .channels = 1,
683         .buswidth = 32,
684         .num_links = 1,
685         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
686 };
687
688 static struct qcom_icc_node qnm_video1 = {
689         .name = "qnm_video1",
690         .id = SC8280XP_MASTER_VIDEO_P1,
691         .channels = 1,
692         .buswidth = 32,
693         .num_links = 1,
694         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
695 };
696
697 static struct qcom_icc_node qnm_video_cvp = {
698         .name = "qnm_video_cvp",
699         .id = SC8280XP_MASTER_VIDEO_PROC,
700         .channels = 1,
701         .buswidth = 32,
702         .num_links = 1,
703         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
704 };
705
706 static struct qcom_icc_node qxm_camnoc_icp = {
707         .name = "qxm_camnoc_icp",
708         .id = SC8280XP_MASTER_CAMNOC_ICP,
709         .channels = 1,
710         .buswidth = 8,
711         .num_links = 1,
712         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
713 };
714
715 static struct qcom_icc_node qxm_camnoc_sf = {
716         .name = "qxm_camnoc_sf",
717         .id = SC8280XP_MASTER_CAMNOC_SF,
718         .channels = 1,
719         .buswidth = 32,
720         .num_links = 1,
721         .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
722 };
723
724 static struct qcom_icc_node qhm_nsp_noc_config = {
725         .name = "qhm_nsp_noc_config",
726         .id = SC8280XP_MASTER_CDSP_NOC_CFG,
727         .channels = 1,
728         .buswidth = 4,
729         .num_links = 1,
730         .links = { SC8280XP_SLAVE_SERVICE_NSP_NOC },
731 };
732
733 static struct qcom_icc_node qxm_nsp = {
734         .name = "qxm_nsp",
735         .id = SC8280XP_MASTER_CDSP_PROC,
736         .channels = 2,
737         .buswidth = 32,
738         .num_links = 2,
739         .links = { SC8280XP_SLAVE_CDSP_MEM_NOC,
740                    SC8280XP_SLAVE_NSP_XFR
741         },
742 };
743
744 static struct qcom_icc_node qhm_nspb_noc_config = {
745         .name = "qhm_nspb_noc_config",
746         .id = SC8280XP_MASTER_CDSPB_NOC_CFG,
747         .channels = 1,
748         .buswidth = 4,
749         .num_links = 1,
750         .links = { SC8280XP_SLAVE_SERVICE_NSPB_NOC },
751 };
752
753 static struct qcom_icc_node qxm_nspb = {
754         .name = "qxm_nspb",
755         .id = SC8280XP_MASTER_CDSP_PROC_B,
756         .channels = 2,
757         .buswidth = 32,
758         .num_links = 2,
759         .links = { SC8280XP_SLAVE_CDSPB_MEM_NOC,
760                    SC8280XP_SLAVE_NSPB_XFR
761         },
762 };
763
764 static struct qcom_icc_node qnm_aggre1_noc = {
765         .name = "qnm_aggre1_noc",
766         .id = SC8280XP_MASTER_A1NOC_SNOC,
767         .channels = 1,
768         .buswidth = 16,
769         .num_links = 1,
770         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
771 };
772
773 static struct qcom_icc_node qnm_aggre2_noc = {
774         .name = "qnm_aggre2_noc",
775         .id = SC8280XP_MASTER_A2NOC_SNOC,
776         .channels = 1,
777         .buswidth = 16,
778         .num_links = 1,
779         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
780 };
781
782 static struct qcom_icc_node qnm_aggre_usb_noc = {
783         .name = "qnm_aggre_usb_noc",
784         .id = SC8280XP_MASTER_USB_NOC_SNOC,
785         .channels = 1,
786         .buswidth = 16,
787         .num_links = 1,
788         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
789 };
790
791 static struct qcom_icc_node qnm_lpass_noc = {
792         .name = "qnm_lpass_noc",
793         .id = SC8280XP_MASTER_LPASS_ANOC,
794         .channels = 1,
795         .buswidth = 16,
796         .num_links = 1,
797         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
798 };
799
800 static struct qcom_icc_node qnm_snoc_cfg = {
801         .name = "qnm_snoc_cfg",
802         .id = SC8280XP_MASTER_SNOC_CFG,
803         .channels = 1,
804         .buswidth = 4,
805         .num_links = 1,
806         .links = { SC8280XP_SLAVE_SERVICE_SNOC },
807 };
808
809 static struct qcom_icc_node qxm_pimem = {
810         .name = "qxm_pimem",
811         .id = SC8280XP_MASTER_PIMEM,
812         .channels = 1,
813         .buswidth = 8,
814         .num_links = 1,
815         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_GC },
816 };
817
818 static struct qcom_icc_node xm_gic = {
819         .name = "xm_gic",
820         .id = SC8280XP_MASTER_GIC,
821         .channels = 1,
822         .buswidth = 8,
823         .num_links = 1,
824         .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_GC },
825 };
826
827 static struct qcom_icc_node qns_a1noc_snoc = {
828         .name = "qns_a1noc_snoc",
829         .id = SC8280XP_SLAVE_A1NOC_SNOC,
830         .channels = 1,
831         .buswidth = 16,
832         .num_links = 1,
833         .links = { SC8280XP_MASTER_A1NOC_SNOC },
834 };
835
836 static struct qcom_icc_node qns_aggre_usb_snoc = {
837         .name = "qns_aggre_usb_snoc",
838         .id = SC8280XP_SLAVE_USB_NOC_SNOC,
839         .channels = 1,
840         .buswidth = 16,
841         .num_links = 1,
842         .links = { SC8280XP_MASTER_USB_NOC_SNOC },
843 };
844
845 static struct qcom_icc_node srvc_aggre1_noc = {
846         .name = "srvc_aggre1_noc",
847         .id = SC8280XP_SLAVE_SERVICE_A1NOC,
848         .channels = 1,
849         .buswidth = 4,
850 };
851
852 static struct qcom_icc_node qns_a2noc_snoc = {
853         .name = "qns_a2noc_snoc",
854         .id = SC8280XP_SLAVE_A2NOC_SNOC,
855         .channels = 1,
856         .buswidth = 16,
857         .num_links = 1,
858         .links = { SC8280XP_MASTER_A2NOC_SNOC },
859 };
860
861 static struct qcom_icc_node qns_pcie_gem_noc = {
862         .name = "qns_pcie_gem_noc",
863         .id = SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC,
864         .channels = 1,
865         .buswidth = 32,
866         .num_links = 1,
867         .links = { SC8280XP_MASTER_ANOC_PCIE_GEM_NOC },
868 };
869
870 static struct qcom_icc_node srvc_aggre2_noc = {
871         .name = "srvc_aggre2_noc",
872         .id = SC8280XP_SLAVE_SERVICE_A2NOC,
873         .channels = 1,
874         .buswidth = 4,
875 };
876
877 static struct qcom_icc_node qup0_core_slave = {
878         .name = "qup0_core_slave",
879         .id = SC8280XP_SLAVE_QUP_CORE_0,
880         .channels = 1,
881         .buswidth = 4,
882 };
883
884 static struct qcom_icc_node qup1_core_slave = {
885         .name = "qup1_core_slave",
886         .id = SC8280XP_SLAVE_QUP_CORE_1,
887         .channels = 1,
888         .buswidth = 4,
889 };
890
891 static struct qcom_icc_node qup2_core_slave = {
892         .name = "qup2_core_slave",
893         .id = SC8280XP_SLAVE_QUP_CORE_2,
894         .channels = 1,
895         .buswidth = 4,
896 };
897
898 static struct qcom_icc_node qhs_ahb2phy0 = {
899         .name = "qhs_ahb2phy0",
900         .id = SC8280XP_SLAVE_AHB2PHY_0,
901         .channels = 1,
902         .buswidth = 4,
903 };
904
905 static struct qcom_icc_node qhs_ahb2phy1 = {
906         .name = "qhs_ahb2phy1",
907         .id = SC8280XP_SLAVE_AHB2PHY_1,
908         .channels = 1,
909         .buswidth = 4,
910 };
911
912 static struct qcom_icc_node qhs_ahb2phy2 = {
913         .name = "qhs_ahb2phy2",
914         .id = SC8280XP_SLAVE_AHB2PHY_2,
915         .channels = 1,
916         .buswidth = 4,
917 };
918
919 static struct qcom_icc_node qhs_aoss = {
920         .name = "qhs_aoss",
921         .id = SC8280XP_SLAVE_AOSS,
922         .channels = 1,
923         .buswidth = 4,
924 };
925
926 static struct qcom_icc_node qhs_apss = {
927         .name = "qhs_apss",
928         .id = SC8280XP_SLAVE_APPSS,
929         .channels = 1,
930         .buswidth = 8,
931 };
932
933 static struct qcom_icc_node qhs_camera_cfg = {
934         .name = "qhs_camera_cfg",
935         .id = SC8280XP_SLAVE_CAMERA_CFG,
936         .channels = 1,
937         .buswidth = 4,
938 };
939
940 static struct qcom_icc_node qhs_clk_ctl = {
941         .name = "qhs_clk_ctl",
942         .id = SC8280XP_SLAVE_CLK_CTL,
943         .channels = 1,
944         .buswidth = 4,
945 };
946
947 static struct qcom_icc_node qhs_compute0_cfg = {
948         .name = "qhs_compute0_cfg",
949         .id = SC8280XP_SLAVE_CDSP_CFG,
950         .channels = 1,
951         .buswidth = 4,
952         .num_links = 1,
953         .links = { SC8280XP_MASTER_CDSP_NOC_CFG },
954 };
955
956 static struct qcom_icc_node qhs_compute1_cfg = {
957         .name = "qhs_compute1_cfg",
958         .id = SC8280XP_SLAVE_CDSP1_CFG,
959         .channels = 1,
960         .buswidth = 4,
961         .num_links = 1,
962         .links = { SC8280XP_MASTER_CDSPB_NOC_CFG },
963 };
964
965 static struct qcom_icc_node qhs_cpr_cx = {
966         .name = "qhs_cpr_cx",
967         .id = SC8280XP_SLAVE_RBCPR_CX_CFG,
968         .channels = 1,
969         .buswidth = 4,
970 };
971
972 static struct qcom_icc_node qhs_cpr_mmcx = {
973         .name = "qhs_cpr_mmcx",
974         .id = SC8280XP_SLAVE_RBCPR_MMCX_CFG,
975         .channels = 1,
976         .buswidth = 4,
977 };
978
979 static struct qcom_icc_node qhs_cpr_mx = {
980         .name = "qhs_cpr_mx",
981         .id = SC8280XP_SLAVE_RBCPR_MX_CFG,
982         .channels = 1,
983         .buswidth = 4,
984 };
985
986 static struct qcom_icc_node qhs_cpr_nspcx = {
987         .name = "qhs_cpr_nspcx",
988         .id = SC8280XP_SLAVE_CPR_NSPCX,
989         .channels = 1,
990         .buswidth = 4,
991 };
992
993 static struct qcom_icc_node qhs_crypto0_cfg = {
994         .name = "qhs_crypto0_cfg",
995         .id = SC8280XP_SLAVE_CRYPTO_0_CFG,
996         .channels = 1,
997         .buswidth = 4,
998 };
999
1000 static struct qcom_icc_node qhs_cx_rdpm = {
1001         .name = "qhs_cx_rdpm",
1002         .id = SC8280XP_SLAVE_CX_RDPM,
1003         .channels = 1,
1004         .buswidth = 4,
1005 };
1006
1007 static struct qcom_icc_node qhs_dcc_cfg = {
1008         .name = "qhs_dcc_cfg",
1009         .id = SC8280XP_SLAVE_DCC_CFG,
1010         .channels = 1,
1011         .buswidth = 4,
1012 };
1013
1014 static struct qcom_icc_node qhs_display0_cfg = {
1015         .name = "qhs_display0_cfg",
1016         .id = SC8280XP_SLAVE_DISPLAY_CFG,
1017         .channels = 1,
1018         .buswidth = 4,
1019 };
1020
1021 static struct qcom_icc_node qhs_display1_cfg = {
1022         .name = "qhs_display1_cfg",
1023         .id = SC8280XP_SLAVE_DISPLAY1_CFG,
1024         .channels = 1,
1025         .buswidth = 4,
1026 };
1027
1028 static struct qcom_icc_node qhs_emac0_cfg = {
1029         .name = "qhs_emac0_cfg",
1030         .id = SC8280XP_SLAVE_EMAC_CFG,
1031         .channels = 1,
1032         .buswidth = 4,
1033 };
1034
1035 static struct qcom_icc_node qhs_emac1_cfg = {
1036         .name = "qhs_emac1_cfg",
1037         .id = SC8280XP_SLAVE_EMAC1_CFG,
1038         .channels = 1,
1039         .buswidth = 4,
1040 };
1041
1042 static struct qcom_icc_node qhs_gpuss_cfg = {
1043         .name = "qhs_gpuss_cfg",
1044         .id = SC8280XP_SLAVE_GFX3D_CFG,
1045         .channels = 1,
1046         .buswidth = 8,
1047 };
1048
1049 static struct qcom_icc_node qhs_hwkm = {
1050         .name = "qhs_hwkm",
1051         .id = SC8280XP_SLAVE_HWKM,
1052         .channels = 1,
1053         .buswidth = 4,
1054 };
1055
1056 static struct qcom_icc_node qhs_imem_cfg = {
1057         .name = "qhs_imem_cfg",
1058         .id = SC8280XP_SLAVE_IMEM_CFG,
1059         .channels = 1,
1060         .buswidth = 4,
1061 };
1062
1063 static struct qcom_icc_node qhs_ipa = {
1064         .name = "qhs_ipa",
1065         .id = SC8280XP_SLAVE_IPA_CFG,
1066         .channels = 1,
1067         .buswidth = 4,
1068 };
1069
1070 static struct qcom_icc_node qhs_ipc_router = {
1071         .name = "qhs_ipc_router",
1072         .id = SC8280XP_SLAVE_IPC_ROUTER_CFG,
1073         .channels = 1,
1074         .buswidth = 4,
1075 };
1076
1077 static struct qcom_icc_node qhs_lpass_cfg = {
1078         .name = "qhs_lpass_cfg",
1079         .id = SC8280XP_SLAVE_LPASS,
1080         .channels = 1,
1081         .buswidth = 4,
1082         .num_links = 1,
1083         .links = { SC8280XP_MASTER_CNOC_LPASS_AG_NOC },
1084 };
1085
1086 static struct qcom_icc_node qhs_mx_rdpm = {
1087         .name = "qhs_mx_rdpm",
1088         .id = SC8280XP_SLAVE_MX_RDPM,
1089         .channels = 1,
1090         .buswidth = 4,
1091 };
1092
1093 static struct qcom_icc_node qhs_mxc_rdpm = {
1094         .name = "qhs_mxc_rdpm",
1095         .id = SC8280XP_SLAVE_MXC_RDPM,
1096         .channels = 1,
1097         .buswidth = 4,
1098 };
1099
1100 static struct qcom_icc_node qhs_pcie0_cfg = {
1101         .name = "qhs_pcie0_cfg",
1102         .id = SC8280XP_SLAVE_PCIE_0_CFG,
1103         .channels = 1,
1104         .buswidth = 4,
1105 };
1106
1107 static struct qcom_icc_node qhs_pcie1_cfg = {
1108         .name = "qhs_pcie1_cfg",
1109         .id = SC8280XP_SLAVE_PCIE_1_CFG,
1110         .channels = 1,
1111         .buswidth = 4,
1112 };
1113
1114 static struct qcom_icc_node qhs_pcie2a_cfg = {
1115         .name = "qhs_pcie2a_cfg",
1116         .id = SC8280XP_SLAVE_PCIE_2A_CFG,
1117         .channels = 1,
1118         .buswidth = 4,
1119 };
1120
1121 static struct qcom_icc_node qhs_pcie2b_cfg = {
1122         .name = "qhs_pcie2b_cfg",
1123         .id = SC8280XP_SLAVE_PCIE_2B_CFG,
1124         .channels = 1,
1125         .buswidth = 4,
1126 };
1127
1128 static struct qcom_icc_node qhs_pcie3a_cfg = {
1129         .name = "qhs_pcie3a_cfg",
1130         .id = SC8280XP_SLAVE_PCIE_3A_CFG,
1131         .channels = 1,
1132         .buswidth = 4,
1133 };
1134
1135 static struct qcom_icc_node qhs_pcie3b_cfg = {
1136         .name = "qhs_pcie3b_cfg",
1137         .id = SC8280XP_SLAVE_PCIE_3B_CFG,
1138         .channels = 1,
1139         .buswidth = 4,
1140 };
1141
1142 static struct qcom_icc_node qhs_pcie4_cfg = {
1143         .name = "qhs_pcie4_cfg",
1144         .id = SC8280XP_SLAVE_PCIE_4_CFG,
1145         .channels = 1,
1146         .buswidth = 4,
1147 };
1148
1149 static struct qcom_icc_node qhs_pcie_rsc_cfg = {
1150         .name = "qhs_pcie_rsc_cfg",
1151         .id = SC8280XP_SLAVE_PCIE_RSC_CFG,
1152         .channels = 1,
1153         .buswidth = 4,
1154 };
1155
1156 static struct qcom_icc_node qhs_pdm = {
1157         .name = "qhs_pdm",
1158         .id = SC8280XP_SLAVE_PDM,
1159         .channels = 1,
1160         .buswidth = 4,
1161 };
1162
1163 static struct qcom_icc_node qhs_pimem_cfg = {
1164         .name = "qhs_pimem_cfg",
1165         .id = SC8280XP_SLAVE_PIMEM_CFG,
1166         .channels = 1,
1167         .buswidth = 4,
1168 };
1169
1170 static struct qcom_icc_node qhs_pka_wrapper_cfg = {
1171         .name = "qhs_pka_wrapper_cfg",
1172         .id = SC8280XP_SLAVE_PKA_WRAPPER_CFG,
1173         .channels = 1,
1174         .buswidth = 4,
1175 };
1176
1177 static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
1178         .name = "qhs_pmu_wrapper_cfg",
1179         .id = SC8280XP_SLAVE_PMU_WRAPPER_CFG,
1180         .channels = 1,
1181         .buswidth = 4,
1182 };
1183
1184 static struct qcom_icc_node qhs_qdss_cfg = {
1185         .name = "qhs_qdss_cfg",
1186         .id = SC8280XP_SLAVE_QDSS_CFG,
1187         .channels = 1,
1188         .buswidth = 4,
1189 };
1190
1191 static struct qcom_icc_node qhs_qspi = {
1192         .name = "qhs_qspi",
1193         .id = SC8280XP_SLAVE_QSPI_0,
1194         .channels = 1,
1195         .buswidth = 4,
1196 };
1197
1198 static struct qcom_icc_node qhs_qup0 = {
1199         .name = "qhs_qup0",
1200         .id = SC8280XP_SLAVE_QUP_0,
1201         .channels = 1,
1202         .buswidth = 4,
1203 };
1204
1205 static struct qcom_icc_node qhs_qup1 = {
1206         .name = "qhs_qup1",
1207         .id = SC8280XP_SLAVE_QUP_1,
1208         .channels = 1,
1209         .buswidth = 4,
1210 };
1211
1212 static struct qcom_icc_node qhs_qup2 = {
1213         .name = "qhs_qup2",
1214         .id = SC8280XP_SLAVE_QUP_2,
1215         .channels = 1,
1216         .buswidth = 4,
1217 };
1218
1219 static struct qcom_icc_node qhs_sdc2 = {
1220         .name = "qhs_sdc2",
1221         .id = SC8280XP_SLAVE_SDCC_2,
1222         .channels = 1,
1223         .buswidth = 4,
1224 };
1225
1226 static struct qcom_icc_node qhs_sdc4 = {
1227         .name = "qhs_sdc4",
1228         .id = SC8280XP_SLAVE_SDCC_4,
1229         .channels = 1,
1230         .buswidth = 4,
1231 };
1232
1233 static struct qcom_icc_node qhs_security = {
1234         .name = "qhs_security",
1235         .id = SC8280XP_SLAVE_SECURITY,
1236         .channels = 1,
1237         .buswidth = 4,
1238 };
1239
1240 static struct qcom_icc_node qhs_smmuv3_cfg = {
1241         .name = "qhs_smmuv3_cfg",
1242         .id = SC8280XP_SLAVE_SMMUV3_CFG,
1243         .channels = 1,
1244         .buswidth = 8,
1245 };
1246
1247 static struct qcom_icc_node qhs_smss_cfg = {
1248         .name = "qhs_smss_cfg",
1249         .id = SC8280XP_SLAVE_SMSS_CFG,
1250         .channels = 1,
1251         .buswidth = 4,
1252 };
1253
1254 static struct qcom_icc_node qhs_spss_cfg = {
1255         .name = "qhs_spss_cfg",
1256         .id = SC8280XP_SLAVE_SPSS_CFG,
1257         .channels = 1,
1258         .buswidth = 4,
1259 };
1260
1261 static struct qcom_icc_node qhs_tcsr = {
1262         .name = "qhs_tcsr",
1263         .id = SC8280XP_SLAVE_TCSR,
1264         .channels = 1,
1265         .buswidth = 4,
1266 };
1267
1268 static struct qcom_icc_node qhs_tlmm = {
1269         .name = "qhs_tlmm",
1270         .id = SC8280XP_SLAVE_TLMM,
1271         .channels = 1,
1272         .buswidth = 4,
1273 };
1274
1275 static struct qcom_icc_node qhs_ufs_card_cfg = {
1276         .name = "qhs_ufs_card_cfg",
1277         .id = SC8280XP_SLAVE_UFS_CARD_CFG,
1278         .channels = 1,
1279         .buswidth = 4,
1280 };
1281
1282 static struct qcom_icc_node qhs_ufs_mem_cfg = {
1283         .name = "qhs_ufs_mem_cfg",
1284         .id = SC8280XP_SLAVE_UFS_MEM_CFG,
1285         .channels = 1,
1286         .buswidth = 4,
1287 };
1288
1289 static struct qcom_icc_node qhs_usb3_0 = {
1290         .name = "qhs_usb3_0",
1291         .id = SC8280XP_SLAVE_USB3_0,
1292         .channels = 1,
1293         .buswidth = 4,
1294 };
1295
1296 static struct qcom_icc_node qhs_usb3_1 = {
1297         .name = "qhs_usb3_1",
1298         .id = SC8280XP_SLAVE_USB3_1,
1299         .channels = 1,
1300         .buswidth = 4,
1301 };
1302
1303 static struct qcom_icc_node qhs_usb3_mp = {
1304         .name = "qhs_usb3_mp",
1305         .id = SC8280XP_SLAVE_USB3_MP,
1306         .channels = 1,
1307         .buswidth = 4,
1308 };
1309
1310 static struct qcom_icc_node qhs_usb4_host_0 = {
1311         .name = "qhs_usb4_host_0",
1312         .id = SC8280XP_SLAVE_USB4_0,
1313         .channels = 1,
1314         .buswidth = 4,
1315 };
1316
1317 static struct qcom_icc_node qhs_usb4_host_1 = {
1318         .name = "qhs_usb4_host_1",
1319         .id = SC8280XP_SLAVE_USB4_1,
1320         .channels = 1,
1321         .buswidth = 4,
1322 };
1323
1324 static struct qcom_icc_node qhs_venus_cfg = {
1325         .name = "qhs_venus_cfg",
1326         .id = SC8280XP_SLAVE_VENUS_CFG,
1327         .channels = 1,
1328         .buswidth = 4,
1329 };
1330
1331 static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
1332         .name = "qhs_vsense_ctrl_cfg",
1333         .id = SC8280XP_SLAVE_VSENSE_CTRL_CFG,
1334         .channels = 1,
1335         .buswidth = 4,
1336 };
1337
1338 static struct qcom_icc_node qhs_vsense_ctrl_r_cfg = {
1339         .name = "qhs_vsense_ctrl_r_cfg",
1340         .id = SC8280XP_SLAVE_VSENSE_CTRL_R_CFG,
1341         .channels = 1,
1342         .buswidth = 4,
1343 };
1344
1345 static struct qcom_icc_node qns_a1_noc_cfg = {
1346         .name = "qns_a1_noc_cfg",
1347         .id = SC8280XP_SLAVE_A1NOC_CFG,
1348         .channels = 1,
1349         .buswidth = 4,
1350         .num_links = 1,
1351         .links = { SC8280XP_MASTER_A1NOC_CFG },
1352 };
1353
1354 static struct qcom_icc_node qns_a2_noc_cfg = {
1355         .name = "qns_a2_noc_cfg",
1356         .id = SC8280XP_SLAVE_A2NOC_CFG,
1357         .channels = 1,
1358         .buswidth = 4,
1359         .num_links = 1,
1360         .links = { SC8280XP_MASTER_A2NOC_CFG },
1361 };
1362
1363 static struct qcom_icc_node qns_anoc_pcie_bridge_cfg = {
1364         .name = "qns_anoc_pcie_bridge_cfg",
1365         .id = SC8280XP_SLAVE_ANOC_PCIE_BRIDGE_CFG,
1366         .channels = 1,
1367         .buswidth = 4,
1368 };
1369
1370 static struct qcom_icc_node qns_ddrss_cfg = {
1371         .name = "qns_ddrss_cfg",
1372         .id = SC8280XP_SLAVE_DDRSS_CFG,
1373         .channels = 1,
1374         .buswidth = 4,
1375         .num_links = 1,
1376         .links = { SC8280XP_MASTER_CNOC_DC_NOC },
1377 };
1378
1379 static struct qcom_icc_node qns_mnoc_cfg = {
1380         .name = "qns_mnoc_cfg",
1381         .id = SC8280XP_SLAVE_CNOC_MNOC_CFG,
1382         .channels = 1,
1383         .buswidth = 4,
1384         .num_links = 1,
1385         .links = { SC8280XP_MASTER_CNOC_MNOC_CFG },
1386 };
1387
1388 static struct qcom_icc_node qns_snoc_cfg = {
1389         .name = "qns_snoc_cfg",
1390         .id = SC8280XP_SLAVE_SNOC_CFG,
1391         .channels = 1,
1392         .buswidth = 4,
1393         .num_links = 1,
1394         .links = { SC8280XP_MASTER_SNOC_CFG },
1395 };
1396
1397 static struct qcom_icc_node qns_snoc_sf_bridge_cfg = {
1398         .name = "qns_snoc_sf_bridge_cfg",
1399         .id = SC8280XP_SLAVE_SNOC_SF_BRIDGE_CFG,
1400         .channels = 1,
1401         .buswidth = 4,
1402 };
1403
1404 static struct qcom_icc_node qxs_imem = {
1405         .name = "qxs_imem",
1406         .id = SC8280XP_SLAVE_IMEM,
1407         .channels = 1,
1408         .buswidth = 8,
1409 };
1410
1411 static struct qcom_icc_node qxs_pimem = {
1412         .name = "qxs_pimem",
1413         .id = SC8280XP_SLAVE_PIMEM,
1414         .channels = 1,
1415         .buswidth = 8,
1416 };
1417
1418 static struct qcom_icc_node srvc_cnoc = {
1419         .name = "srvc_cnoc",
1420         .id = SC8280XP_SLAVE_SERVICE_CNOC,
1421         .channels = 1,
1422         .buswidth = 4,
1423 };
1424
1425 static struct qcom_icc_node xs_pcie_0 = {
1426         .name = "xs_pcie_0",
1427         .id = SC8280XP_SLAVE_PCIE_0,
1428         .channels = 1,
1429         .buswidth = 16,
1430 };
1431
1432 static struct qcom_icc_node xs_pcie_1 = {
1433         .name = "xs_pcie_1",
1434         .id = SC8280XP_SLAVE_PCIE_1,
1435         .channels = 1,
1436         .buswidth = 16,
1437 };
1438
1439 static struct qcom_icc_node xs_pcie_2a = {
1440         .name = "xs_pcie_2a",
1441         .id = SC8280XP_SLAVE_PCIE_2A,
1442         .channels = 1,
1443         .buswidth = 16,
1444 };
1445
1446 static struct qcom_icc_node xs_pcie_2b = {
1447         .name = "xs_pcie_2b",
1448         .id = SC8280XP_SLAVE_PCIE_2B,
1449         .channels = 1,
1450         .buswidth = 8,
1451 };
1452
1453 static struct qcom_icc_node xs_pcie_3a = {
1454         .name = "xs_pcie_3a",
1455         .id = SC8280XP_SLAVE_PCIE_3A,
1456         .channels = 1,
1457         .buswidth = 16,
1458 };
1459
1460 static struct qcom_icc_node xs_pcie_3b = {
1461         .name = "xs_pcie_3b",
1462         .id = SC8280XP_SLAVE_PCIE_3B,
1463         .channels = 1,
1464         .buswidth = 8,
1465 };
1466
1467 static struct qcom_icc_node xs_pcie_4 = {
1468         .name = "xs_pcie_4",
1469         .id = SC8280XP_SLAVE_PCIE_4,
1470         .channels = 1,
1471         .buswidth = 8,
1472 };
1473
1474 static struct qcom_icc_node xs_qdss_stm = {
1475         .name = "xs_qdss_stm",
1476         .id = SC8280XP_SLAVE_QDSS_STM,
1477         .channels = 1,
1478         .buswidth = 4,
1479 };
1480
1481 static struct qcom_icc_node xs_smss = {
1482         .name = "xs_smss",
1483         .id = SC8280XP_SLAVE_SMSS,
1484         .channels = 1,
1485         .buswidth = 8,
1486 };
1487
1488 static struct qcom_icc_node xs_sys_tcu_cfg = {
1489         .name = "xs_sys_tcu_cfg",
1490         .id = SC8280XP_SLAVE_TCU,
1491         .channels = 1,
1492         .buswidth = 8,
1493 };
1494
1495 static struct qcom_icc_node qhs_llcc = {
1496         .name = "qhs_llcc",
1497         .id = SC8280XP_SLAVE_LLCC_CFG,
1498         .channels = 1,
1499         .buswidth = 4,
1500 };
1501
1502 static struct qcom_icc_node qns_gemnoc = {
1503         .name = "qns_gemnoc",
1504         .id = SC8280XP_SLAVE_GEM_NOC_CFG,
1505         .channels = 1,
1506         .buswidth = 4,
1507         .num_links = 1,
1508         .links = { SC8280XP_MASTER_GEM_NOC_CFG },
1509 };
1510
1511 static struct qcom_icc_node qns_gem_noc_cnoc = {
1512         .name = "qns_gem_noc_cnoc",
1513         .id = SC8280XP_SLAVE_GEM_NOC_CNOC,
1514         .channels = 1,
1515         .buswidth = 16,
1516         .num_links = 1,
1517         .links = { SC8280XP_MASTER_GEM_NOC_CNOC },
1518 };
1519
1520 static struct qcom_icc_node qns_llcc = {
1521         .name = "qns_llcc",
1522         .id = SC8280XP_SLAVE_LLCC,
1523         .channels = 8,
1524         .buswidth = 16,
1525         .num_links = 1,
1526         .links = { SC8280XP_MASTER_LLCC },
1527 };
1528
1529 static struct qcom_icc_node qns_pcie = {
1530         .name = "qns_pcie",
1531         .id = SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC,
1532         .channels = 1,
1533         .buswidth = 16,
1534         .num_links = 1,
1535         .links = { SC8280XP_MASTER_GEM_NOC_PCIE_SNOC },
1536 };
1537
1538 static struct qcom_icc_node srvc_even_gemnoc = {
1539         .name = "srvc_even_gemnoc",
1540         .id = SC8280XP_SLAVE_SERVICE_GEM_NOC_1,
1541         .channels = 1,
1542         .buswidth = 4,
1543 };
1544
1545 static struct qcom_icc_node srvc_odd_gemnoc = {
1546         .name = "srvc_odd_gemnoc",
1547         .id = SC8280XP_SLAVE_SERVICE_GEM_NOC_2,
1548         .channels = 1,
1549         .buswidth = 4,
1550 };
1551
1552 static struct qcom_icc_node srvc_sys_gemnoc = {
1553         .name = "srvc_sys_gemnoc",
1554         .id = SC8280XP_SLAVE_SERVICE_GEM_NOC,
1555         .channels = 1,
1556         .buswidth = 4,
1557 };
1558
1559 static struct qcom_icc_node qhs_lpass_core = {
1560         .name = "qhs_lpass_core",
1561         .id = SC8280XP_SLAVE_LPASS_CORE_CFG,
1562         .channels = 1,
1563         .buswidth = 4,
1564 };
1565
1566 static struct qcom_icc_node qhs_lpass_lpi = {
1567         .name = "qhs_lpass_lpi",
1568         .id = SC8280XP_SLAVE_LPASS_LPI_CFG,
1569         .channels = 1,
1570         .buswidth = 4,
1571 };
1572
1573 static struct qcom_icc_node qhs_lpass_mpu = {
1574         .name = "qhs_lpass_mpu",
1575         .id = SC8280XP_SLAVE_LPASS_MPU_CFG,
1576         .channels = 1,
1577         .buswidth = 4,
1578 };
1579
1580 static struct qcom_icc_node qhs_lpass_top = {
1581         .name = "qhs_lpass_top",
1582         .id = SC8280XP_SLAVE_LPASS_TOP_CFG,
1583         .channels = 1,
1584         .buswidth = 4,
1585 };
1586
1587 static struct qcom_icc_node qns_sysnoc = {
1588         .name = "qns_sysnoc",
1589         .id = SC8280XP_SLAVE_LPASS_SNOC,
1590         .channels = 1,
1591         .buswidth = 16,
1592         .num_links = 1,
1593         .links = { SC8280XP_MASTER_LPASS_ANOC },
1594 };
1595
1596 static struct qcom_icc_node srvc_niu_aml_noc = {
1597         .name = "srvc_niu_aml_noc",
1598         .id = SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
1599         .channels = 1,
1600         .buswidth = 4,
1601 };
1602
1603 static struct qcom_icc_node srvc_niu_lpass_agnoc = {
1604         .name = "srvc_niu_lpass_agnoc",
1605         .id = SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC,
1606         .channels = 1,
1607         .buswidth = 4,
1608 };
1609
1610 static struct qcom_icc_node ebi = {
1611         .name = "ebi",
1612         .id = SC8280XP_SLAVE_EBI1,
1613         .channels = 8,
1614         .buswidth = 4,
1615 };
1616
1617 static struct qcom_icc_node qns_mem_noc_hf = {
1618         .name = "qns_mem_noc_hf",
1619         .id = SC8280XP_SLAVE_MNOC_HF_MEM_NOC,
1620         .channels = 2,
1621         .buswidth = 32,
1622         .num_links = 1,
1623         .links = { SC8280XP_MASTER_MNOC_HF_MEM_NOC },
1624 };
1625
1626 static struct qcom_icc_node qns_mem_noc_sf = {
1627         .name = "qns_mem_noc_sf",
1628         .id = SC8280XP_SLAVE_MNOC_SF_MEM_NOC,
1629         .channels = 2,
1630         .buswidth = 32,
1631         .num_links = 1,
1632         .links = { SC8280XP_MASTER_MNOC_SF_MEM_NOC },
1633 };
1634
1635 static struct qcom_icc_node srvc_mnoc = {
1636         .name = "srvc_mnoc",
1637         .id = SC8280XP_SLAVE_SERVICE_MNOC,
1638         .channels = 1,
1639         .buswidth = 4,
1640 };
1641
1642 static struct qcom_icc_node qns_nsp_gemnoc = {
1643         .name = "qns_nsp_gemnoc",
1644         .id = SC8280XP_SLAVE_CDSP_MEM_NOC,
1645         .channels = 2,
1646         .buswidth = 32,
1647         .num_links = 1,
1648         .links = { SC8280XP_MASTER_COMPUTE_NOC },
1649 };
1650
1651 static struct qcom_icc_node qxs_nsp_xfr = {
1652         .name = "qxs_nsp_xfr",
1653         .id = SC8280XP_SLAVE_NSP_XFR,
1654         .channels = 1,
1655         .buswidth = 32,
1656 };
1657
1658 static struct qcom_icc_node service_nsp_noc = {
1659         .name = "service_nsp_noc",
1660         .id = SC8280XP_SLAVE_SERVICE_NSP_NOC,
1661         .channels = 1,
1662         .buswidth = 4,
1663 };
1664
1665 static struct qcom_icc_node qns_nspb_gemnoc = {
1666         .name = "qns_nspb_gemnoc",
1667         .id = SC8280XP_SLAVE_CDSPB_MEM_NOC,
1668         .channels = 2,
1669         .buswidth = 32,
1670         .num_links = 1,
1671         .links = { SC8280XP_MASTER_COMPUTE_NOC_1 },
1672 };
1673
1674 static struct qcom_icc_node qxs_nspb_xfr = {
1675         .name = "qxs_nspb_xfr",
1676         .id = SC8280XP_SLAVE_NSPB_XFR,
1677         .channels = 1,
1678         .buswidth = 32,
1679 };
1680
1681 static struct qcom_icc_node service_nspb_noc = {
1682         .name = "service_nspb_noc",
1683         .id = SC8280XP_SLAVE_SERVICE_NSPB_NOC,
1684         .channels = 1,
1685         .buswidth = 4,
1686 };
1687
1688 static struct qcom_icc_node qns_gemnoc_gc = {
1689         .name = "qns_gemnoc_gc",
1690         .id = SC8280XP_SLAVE_SNOC_GEM_NOC_GC,
1691         .channels = 1,
1692         .buswidth = 8,
1693         .num_links = 1,
1694         .links = { SC8280XP_MASTER_SNOC_GC_MEM_NOC },
1695 };
1696
1697 static struct qcom_icc_node qns_gemnoc_sf = {
1698         .name = "qns_gemnoc_sf",
1699         .id = SC8280XP_SLAVE_SNOC_GEM_NOC_SF,
1700         .channels = 1,
1701         .buswidth = 16,
1702         .num_links = 1,
1703         .links = { SC8280XP_MASTER_SNOC_SF_MEM_NOC },
1704 };
1705
1706 static struct qcom_icc_node srvc_snoc = {
1707         .name = "srvc_snoc",
1708         .id = SC8280XP_SLAVE_SERVICE_SNOC,
1709         .channels = 1,
1710         .buswidth = 4,
1711 };
1712
1713 static struct qcom_icc_bcm bcm_acv = {
1714         .name = "ACV",
1715         .num_nodes = 1,
1716         .nodes = { &ebi },
1717 };
1718
1719 static struct qcom_icc_bcm bcm_ce0 = {
1720         .name = "CE0",
1721         .num_nodes = 1,
1722         .nodes = { &qxm_crypto },
1723 };
1724
1725 static struct qcom_icc_bcm bcm_cn0 = {
1726         .name = "CN0",
1727         .keepalive = true,
1728         .num_nodes = 9,
1729         .nodes = { &qnm_gemnoc_cnoc,
1730                    &qnm_gemnoc_pcie,
1731                    &xs_pcie_0,
1732                    &xs_pcie_1,
1733                    &xs_pcie_2a,
1734                    &xs_pcie_2b,
1735                    &xs_pcie_3a,
1736                    &xs_pcie_3b,
1737                    &xs_pcie_4
1738         },
1739 };
1740
1741 static struct qcom_icc_bcm bcm_cn1 = {
1742         .name = "CN1",
1743         .num_nodes = 67,
1744         .nodes = { &qhs_ahb2phy0,
1745                    &qhs_ahb2phy1,
1746                    &qhs_ahb2phy2,
1747                    &qhs_aoss,
1748                    &qhs_apss,
1749                    &qhs_camera_cfg,
1750                    &qhs_clk_ctl,
1751                    &qhs_compute0_cfg,
1752                    &qhs_compute1_cfg,
1753                    &qhs_cpr_cx,
1754                    &qhs_cpr_mmcx,
1755                    &qhs_cpr_mx,
1756                    &qhs_cpr_nspcx,
1757                    &qhs_crypto0_cfg,
1758                    &qhs_cx_rdpm,
1759                    &qhs_dcc_cfg,
1760                    &qhs_display0_cfg,
1761                    &qhs_display1_cfg,
1762                    &qhs_emac0_cfg,
1763                    &qhs_emac1_cfg,
1764                    &qhs_gpuss_cfg,
1765                    &qhs_hwkm,
1766                    &qhs_imem_cfg,
1767                    &qhs_ipa,
1768                    &qhs_ipc_router,
1769                    &qhs_lpass_cfg,
1770                    &qhs_mx_rdpm,
1771                    &qhs_mxc_rdpm,
1772                    &qhs_pcie0_cfg,
1773                    &qhs_pcie1_cfg,
1774                    &qhs_pcie2a_cfg,
1775                    &qhs_pcie2b_cfg,
1776                    &qhs_pcie3a_cfg,
1777                    &qhs_pcie3b_cfg,
1778                    &qhs_pcie4_cfg,
1779                    &qhs_pcie_rsc_cfg,
1780                    &qhs_pdm,
1781                    &qhs_pimem_cfg,
1782                    &qhs_pka_wrapper_cfg,
1783                    &qhs_pmu_wrapper_cfg,
1784                    &qhs_qdss_cfg,
1785                    &qhs_sdc2,
1786                    &qhs_sdc4,
1787                    &qhs_security,
1788                    &qhs_smmuv3_cfg,
1789                    &qhs_smss_cfg,
1790                    &qhs_spss_cfg,
1791                    &qhs_tcsr,
1792                    &qhs_tlmm,
1793                    &qhs_ufs_card_cfg,
1794                    &qhs_ufs_mem_cfg,
1795                    &qhs_usb3_0,
1796                    &qhs_usb3_1,
1797                    &qhs_usb3_mp,
1798                    &qhs_usb4_host_0,
1799                    &qhs_usb4_host_1,
1800                    &qhs_venus_cfg,
1801                    &qhs_vsense_ctrl_cfg,
1802                    &qhs_vsense_ctrl_r_cfg,
1803                    &qns_a1_noc_cfg,
1804                    &qns_a2_noc_cfg,
1805                    &qns_anoc_pcie_bridge_cfg,
1806                    &qns_ddrss_cfg,
1807                    &qns_mnoc_cfg,
1808                    &qns_snoc_cfg,
1809                    &qns_snoc_sf_bridge_cfg,
1810                    &srvc_cnoc
1811         },
1812 };
1813
1814 static struct qcom_icc_bcm bcm_cn2 = {
1815         .name = "CN2",
1816         .num_nodes = 4,
1817         .nodes = { &qhs_qspi,
1818                    &qhs_qup0,
1819                    &qhs_qup1,
1820                    &qhs_qup2
1821         },
1822 };
1823
1824 static struct qcom_icc_bcm bcm_cn3 = {
1825         .name = "CN3",
1826         .num_nodes = 3,
1827         .nodes = { &qxs_imem,
1828                    &xs_smss,
1829                    &xs_sys_tcu_cfg
1830         },
1831 };
1832
1833 static struct qcom_icc_bcm bcm_mc0 = {
1834         .name = "MC0",
1835         .keepalive = true,
1836         .num_nodes = 1,
1837         .nodes = { &ebi },
1838 };
1839
1840 static struct qcom_icc_bcm bcm_mm0 = {
1841         .name = "MM0",
1842         .keepalive = true,
1843         .num_nodes = 5,
1844         .nodes = { &qnm_camnoc_hf,
1845                    &qnm_mdp0_0,
1846                    &qnm_mdp0_1,
1847                    &qnm_mdp1_0,
1848                    &qns_mem_noc_hf
1849         },
1850 };
1851
1852 static struct qcom_icc_bcm bcm_mm1 = {
1853         .name = "MM1",
1854         .num_nodes = 8,
1855         .nodes = { &qnm_rot_0,
1856                    &qnm_rot_1,
1857                    &qnm_video0,
1858                    &qnm_video1,
1859                    &qnm_video_cvp,
1860                    &qxm_camnoc_icp,
1861                    &qxm_camnoc_sf,
1862                    &qns_mem_noc_sf
1863         },
1864 };
1865
1866 static struct qcom_icc_bcm bcm_nsa0 = {
1867         .name = "NSA0",
1868         .num_nodes = 2,
1869         .nodes = { &qns_nsp_gemnoc,
1870                    &qxs_nsp_xfr
1871         },
1872 };
1873
1874 static struct qcom_icc_bcm bcm_nsa1 = {
1875         .name = "NSA1",
1876         .num_nodes = 1,
1877         .nodes = { &qxm_nsp },
1878 };
1879
1880 static struct qcom_icc_bcm bcm_nsb0 = {
1881         .name = "NSB0",
1882         .num_nodes = 2,
1883         .nodes = { &qns_nspb_gemnoc,
1884                    &qxs_nspb_xfr
1885         },
1886 };
1887
1888 static struct qcom_icc_bcm bcm_nsb1 = {
1889         .name = "NSB1",
1890         .num_nodes = 1,
1891         .nodes = { &qxm_nspb },
1892 };
1893
1894 static struct qcom_icc_bcm bcm_pci0 = {
1895         .name = "PCI0",
1896         .num_nodes = 1,
1897         .nodes = { &qns_pcie_gem_noc },
1898 };
1899
1900 static struct qcom_icc_bcm bcm_qup0 = {
1901         .name = "QUP0",
1902         .vote_scale = 1,
1903         .num_nodes = 1,
1904         .nodes = { &qup0_core_slave },
1905 };
1906
1907 static struct qcom_icc_bcm bcm_qup1 = {
1908         .name = "QUP1",
1909         .vote_scale = 1,
1910         .num_nodes = 1,
1911         .nodes = { &qup1_core_slave },
1912 };
1913
1914 static struct qcom_icc_bcm bcm_qup2 = {
1915         .name = "QUP2",
1916         .vote_scale = 1,
1917         .num_nodes = 1,
1918         .nodes = { &qup2_core_slave },
1919 };
1920
1921 static struct qcom_icc_bcm bcm_sh0 = {
1922         .name = "SH0",
1923         .keepalive = true,
1924         .num_nodes = 1,
1925         .nodes = { &qns_llcc },
1926 };
1927
1928 static struct qcom_icc_bcm bcm_sh2 = {
1929         .name = "SH2",
1930         .num_nodes = 1,
1931         .nodes = { &chm_apps },
1932 };
1933
1934 static struct qcom_icc_bcm bcm_sn0 = {
1935         .name = "SN0",
1936         .keepalive = true,
1937         .num_nodes = 1,
1938         .nodes = { &qns_gemnoc_sf },
1939 };
1940
1941 static struct qcom_icc_bcm bcm_sn1 = {
1942         .name = "SN1",
1943         .num_nodes = 1,
1944         .nodes = { &qns_gemnoc_gc },
1945 };
1946
1947 static struct qcom_icc_bcm bcm_sn2 = {
1948         .name = "SN2",
1949         .num_nodes = 1,
1950         .nodes = { &qxs_pimem },
1951 };
1952
1953 static struct qcom_icc_bcm bcm_sn3 = {
1954         .name = "SN3",
1955         .num_nodes = 2,
1956         .nodes = { &qns_a1noc_snoc,
1957                    &qnm_aggre1_noc
1958         },
1959 };
1960
1961 static struct qcom_icc_bcm bcm_sn4 = {
1962         .name = "SN4",
1963         .num_nodes = 2,
1964         .nodes = { &qns_a2noc_snoc,
1965                    &qnm_aggre2_noc
1966         },
1967 };
1968
1969 static struct qcom_icc_bcm bcm_sn5 = {
1970         .name = "SN5",
1971         .num_nodes = 2,
1972         .nodes = { &qns_aggre_usb_snoc,
1973                    &qnm_aggre_usb_noc
1974         },
1975 };
1976
1977 static struct qcom_icc_bcm bcm_sn9 = {
1978         .name = "SN9",
1979         .num_nodes = 2,
1980         .nodes = { &qns_sysnoc,
1981                    &qnm_lpass_noc
1982         },
1983 };
1984
1985 static struct qcom_icc_bcm bcm_sn10 = {
1986         .name = "SN10",
1987         .num_nodes = 1,
1988         .nodes = { &xs_qdss_stm },
1989 };
1990
1991 static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
1992         &bcm_sn3,
1993         &bcm_sn5,
1994 };
1995
1996 static struct qcom_icc_node * const aggre1_noc_nodes[] = {
1997         [MASTER_QSPI_0] = &qhm_qspi,
1998         [MASTER_QUP_1] = &qhm_qup1,
1999         [MASTER_QUP_2] = &qhm_qup2,
2000         [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
2001         [MASTER_IPA] = &qxm_ipa,
2002         [MASTER_EMAC_1] = &xm_emac_1,
2003         [MASTER_SDCC_4] = &xm_sdc4,
2004         [MASTER_UFS_MEM] = &xm_ufs_mem,
2005         [MASTER_USB3_0] = &xm_usb3_0,
2006         [MASTER_USB3_1] = &xm_usb3_1,
2007         [MASTER_USB3_MP] = &xm_usb3_mp,
2008         [MASTER_USB4_0] = &xm_usb4_host0,
2009         [MASTER_USB4_1] = &xm_usb4_host1,
2010         [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
2011         [SLAVE_USB_NOC_SNOC] = &qns_aggre_usb_snoc,
2012         [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
2013 };
2014
2015 static const struct qcom_icc_desc sc8280xp_aggre1_noc = {
2016         .nodes = aggre1_noc_nodes,
2017         .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
2018         .bcms = aggre1_noc_bcms,
2019         .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
2020 };
2021
2022 static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
2023         &bcm_ce0,
2024         &bcm_pci0,
2025         &bcm_sn4,
2026 };
2027
2028 static struct qcom_icc_node * const aggre2_noc_nodes[] = {
2029         [MASTER_QDSS_BAM] = &qhm_qdss_bam,
2030         [MASTER_QUP_0] = &qhm_qup0,
2031         [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
2032         [MASTER_CRYPTO] = &qxm_crypto,
2033         [MASTER_SENSORS_PROC] = &qxm_sensorss_q6,
2034         [MASTER_SP] = &qxm_sp,
2035         [MASTER_EMAC] = &xm_emac_0,
2036         [MASTER_PCIE_0] = &xm_pcie3_0,
2037         [MASTER_PCIE_1] = &xm_pcie3_1,
2038         [MASTER_PCIE_2A] = &xm_pcie3_2a,
2039         [MASTER_PCIE_2B] = &xm_pcie3_2b,
2040         [MASTER_PCIE_3A] = &xm_pcie3_3a,
2041         [MASTER_PCIE_3B] = &xm_pcie3_3b,
2042         [MASTER_PCIE_4] = &xm_pcie3_4,
2043         [MASTER_QDSS_ETR] = &xm_qdss_etr,
2044         [MASTER_SDCC_2] = &xm_sdc2,
2045         [MASTER_UFS_CARD] = &xm_ufs_card,
2046         [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
2047         [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_gem_noc,
2048         [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
2049 };
2050
2051 static const struct qcom_icc_desc sc8280xp_aggre2_noc = {
2052         .nodes = aggre2_noc_nodes,
2053         .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
2054         .bcms = aggre2_noc_bcms,
2055         .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
2056 };
2057
2058 static struct qcom_icc_bcm * const clk_virt_bcms[] = {
2059         &bcm_qup0,
2060         &bcm_qup1,
2061         &bcm_qup2,
2062 };
2063
2064 static struct qcom_icc_node * const clk_virt_nodes[] = {
2065         [MASTER_QUP_CORE_0] = &qup0_core_master,
2066         [MASTER_QUP_CORE_1] = &qup1_core_master,
2067         [MASTER_QUP_CORE_2] = &qup2_core_master,
2068         [SLAVE_QUP_CORE_0] = &qup0_core_slave,
2069         [SLAVE_QUP_CORE_1] = &qup1_core_slave,
2070         [SLAVE_QUP_CORE_2] = &qup2_core_slave,
2071 };
2072
2073 static const struct qcom_icc_desc sc8280xp_clk_virt = {
2074         .nodes = clk_virt_nodes,
2075         .num_nodes = ARRAY_SIZE(clk_virt_nodes),
2076         .bcms = clk_virt_bcms,
2077         .num_bcms = ARRAY_SIZE(clk_virt_bcms),
2078 };
2079
2080 static struct qcom_icc_bcm * const config_noc_bcms[] = {
2081         &bcm_cn0,
2082         &bcm_cn1,
2083         &bcm_cn2,
2084         &bcm_cn3,
2085         &bcm_sn2,
2086         &bcm_sn10,
2087 };
2088
2089 static struct qcom_icc_node * const config_noc_nodes[] = {
2090         [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
2091         [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
2092         [SLAVE_AHB2PHY_0] = &qhs_ahb2phy0,
2093         [SLAVE_AHB2PHY_1] = &qhs_ahb2phy1,
2094         [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
2095         [SLAVE_AOSS] = &qhs_aoss,
2096         [SLAVE_APPSS] = &qhs_apss,
2097         [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
2098         [SLAVE_CLK_CTL] = &qhs_clk_ctl,
2099         [SLAVE_CDSP_CFG] = &qhs_compute0_cfg,
2100         [SLAVE_CDSP1_CFG] = &qhs_compute1_cfg,
2101         [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
2102         [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
2103         [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
2104         [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
2105         [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
2106         [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
2107         [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
2108         [SLAVE_DISPLAY_CFG] = &qhs_display0_cfg,
2109         [SLAVE_DISPLAY1_CFG] = &qhs_display1_cfg,
2110         [SLAVE_EMAC_CFG] = &qhs_emac0_cfg,
2111         [SLAVE_EMAC1_CFG] = &qhs_emac1_cfg,
2112         [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
2113         [SLAVE_HWKM] = &qhs_hwkm,
2114         [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
2115         [SLAVE_IPA_CFG] = &qhs_ipa,
2116         [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
2117         [SLAVE_LPASS] = &qhs_lpass_cfg,
2118         [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
2119         [SLAVE_MXC_RDPM] = &qhs_mxc_rdpm,
2120         [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
2121         [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
2122         [SLAVE_PCIE_2A_CFG] = &qhs_pcie2a_cfg,
2123         [SLAVE_PCIE_2B_CFG] = &qhs_pcie2b_cfg,
2124         [SLAVE_PCIE_3A_CFG] = &qhs_pcie3a_cfg,
2125         [SLAVE_PCIE_3B_CFG] = &qhs_pcie3b_cfg,
2126         [SLAVE_PCIE_4_CFG] = &qhs_pcie4_cfg,
2127         [SLAVE_PCIE_RSC_CFG] = &qhs_pcie_rsc_cfg,
2128         [SLAVE_PDM] = &qhs_pdm,
2129         [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
2130         [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
2131         [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
2132         [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
2133         [SLAVE_QSPI_0] = &qhs_qspi,
2134         [SLAVE_QUP_0] = &qhs_qup0,
2135         [SLAVE_QUP_1] = &qhs_qup1,
2136         [SLAVE_QUP_2] = &qhs_qup2,
2137         [SLAVE_SDCC_2] = &qhs_sdc2,
2138         [SLAVE_SDCC_4] = &qhs_sdc4,
2139         [SLAVE_SECURITY] = &qhs_security,
2140         [SLAVE_SMMUV3_CFG] = &qhs_smmuv3_cfg,
2141         [SLAVE_SMSS_CFG] = &qhs_smss_cfg,
2142         [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
2143         [SLAVE_TCSR] = &qhs_tcsr,
2144         [SLAVE_TLMM] = &qhs_tlmm,
2145         [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
2146         [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
2147         [SLAVE_USB3_0] = &qhs_usb3_0,
2148         [SLAVE_USB3_1] = &qhs_usb3_1,
2149         [SLAVE_USB3_MP] = &qhs_usb3_mp,
2150         [SLAVE_USB4_0] = &qhs_usb4_host_0,
2151         [SLAVE_USB4_1] = &qhs_usb4_host_1,
2152         [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
2153         [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
2154         [SLAVE_VSENSE_CTRL_R_CFG] = &qhs_vsense_ctrl_r_cfg,
2155         [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
2156         [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
2157         [SLAVE_ANOC_PCIE_BRIDGE_CFG] = &qns_anoc_pcie_bridge_cfg,
2158         [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
2159         [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
2160         [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
2161         [SLAVE_SNOC_SF_BRIDGE_CFG] = &qns_snoc_sf_bridge_cfg,
2162         [SLAVE_IMEM] = &qxs_imem,
2163         [SLAVE_PIMEM] = &qxs_pimem,
2164         [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
2165         [SLAVE_PCIE_0] = &xs_pcie_0,
2166         [SLAVE_PCIE_1] = &xs_pcie_1,
2167         [SLAVE_PCIE_2A] = &xs_pcie_2a,
2168         [SLAVE_PCIE_2B] = &xs_pcie_2b,
2169         [SLAVE_PCIE_3A] = &xs_pcie_3a,
2170         [SLAVE_PCIE_3B] = &xs_pcie_3b,
2171         [SLAVE_PCIE_4] = &xs_pcie_4,
2172         [SLAVE_QDSS_STM] = &xs_qdss_stm,
2173         [SLAVE_SMSS] = &xs_smss,
2174         [SLAVE_TCU] = &xs_sys_tcu_cfg,
2175 };
2176
2177 static const struct qcom_icc_desc sc8280xp_config_noc = {
2178         .nodes = config_noc_nodes,
2179         .num_nodes = ARRAY_SIZE(config_noc_nodes),
2180         .bcms = config_noc_bcms,
2181         .num_bcms = ARRAY_SIZE(config_noc_bcms),
2182 };
2183
2184 static struct qcom_icc_bcm * const dc_noc_bcms[] = {
2185 };
2186
2187 static struct qcom_icc_node * const dc_noc_nodes[] = {
2188         [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
2189         [SLAVE_LLCC_CFG] = &qhs_llcc,
2190         [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
2191 };
2192
2193 static const struct qcom_icc_desc sc8280xp_dc_noc = {
2194         .nodes = dc_noc_nodes,
2195         .num_nodes = ARRAY_SIZE(dc_noc_nodes),
2196         .bcms = dc_noc_bcms,
2197         .num_bcms = ARRAY_SIZE(dc_noc_bcms),
2198 };
2199
2200 static struct qcom_icc_bcm * const gem_noc_bcms[] = {
2201         &bcm_sh0,
2202         &bcm_sh2,
2203 };
2204
2205 static struct qcom_icc_node * const gem_noc_nodes[] = {
2206         [MASTER_GPU_TCU] = &alm_gpu_tcu,
2207         [MASTER_PCIE_TCU] = &alm_pcie_tcu,
2208         [MASTER_SYS_TCU] = &alm_sys_tcu,
2209         [MASTER_APPSS_PROC] = &chm_apps,
2210         [MASTER_COMPUTE_NOC] = &qnm_cmpnoc0,
2211         [MASTER_COMPUTE_NOC_1] = &qnm_cmpnoc1,
2212         [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
2213         [MASTER_GFX3D] = &qnm_gpu,
2214         [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
2215         [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
2216         [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
2217         [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
2218         [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
2219         [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
2220         [SLAVE_LLCC] = &qns_llcc,
2221         [SLAVE_GEM_NOC_PCIE_CNOC] = &qns_pcie,
2222         [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
2223         [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
2224         [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
2225 };
2226
2227 static const struct qcom_icc_desc sc8280xp_gem_noc = {
2228         .nodes = gem_noc_nodes,
2229         .num_nodes = ARRAY_SIZE(gem_noc_nodes),
2230         .bcms = gem_noc_bcms,
2231         .num_bcms = ARRAY_SIZE(gem_noc_bcms),
2232 };
2233
2234 static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
2235         &bcm_sn9,
2236 };
2237
2238 static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
2239         [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
2240         [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
2241         [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
2242         [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
2243         [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
2244         [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
2245         [SLAVE_LPASS_SNOC] = &qns_sysnoc,
2246         [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
2247         [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
2248 };
2249
2250 static const struct qcom_icc_desc sc8280xp_lpass_ag_noc = {
2251         .nodes = lpass_ag_noc_nodes,
2252         .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
2253         .bcms = lpass_ag_noc_bcms,
2254         .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
2255 };
2256
2257 static struct qcom_icc_bcm * const mc_virt_bcms[] = {
2258         &bcm_acv,
2259         &bcm_mc0,
2260 };
2261
2262 static struct qcom_icc_node * const mc_virt_nodes[] = {
2263         [MASTER_LLCC] = &llcc_mc,
2264         [SLAVE_EBI1] = &ebi,
2265 };
2266
2267 static const struct qcom_icc_desc sc8280xp_mc_virt = {
2268         .nodes = mc_virt_nodes,
2269         .num_nodes = ARRAY_SIZE(mc_virt_nodes),
2270         .bcms = mc_virt_bcms,
2271         .num_bcms = ARRAY_SIZE(mc_virt_bcms),
2272 };
2273
2274 static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
2275         &bcm_mm0,
2276         &bcm_mm1,
2277 };
2278
2279 static struct qcom_icc_node * const mmss_noc_nodes[] = {
2280         [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
2281         [MASTER_MDP0] = &qnm_mdp0_0,
2282         [MASTER_MDP1] = &qnm_mdp0_1,
2283         [MASTER_MDP_CORE1_0] = &qnm_mdp1_0,
2284         [MASTER_MDP_CORE1_1] = &qnm_mdp1_1,
2285         [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
2286         [MASTER_ROTATOR] = &qnm_rot_0,
2287         [MASTER_ROTATOR_1] = &qnm_rot_1,
2288         [MASTER_VIDEO_P0] = &qnm_video0,
2289         [MASTER_VIDEO_P1] = &qnm_video1,
2290         [MASTER_VIDEO_PROC] = &qnm_video_cvp,
2291         [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
2292         [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
2293         [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
2294         [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
2295         [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
2296 };
2297
2298 static const struct qcom_icc_desc sc8280xp_mmss_noc = {
2299         .nodes = mmss_noc_nodes,
2300         .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
2301         .bcms = mmss_noc_bcms,
2302         .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
2303 };
2304
2305 static struct qcom_icc_bcm * const nspa_noc_bcms[] = {
2306         &bcm_nsa0,
2307         &bcm_nsa1,
2308 };
2309
2310 static struct qcom_icc_node * const nspa_noc_nodes[] = {
2311         [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
2312         [MASTER_CDSP_PROC] = &qxm_nsp,
2313         [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
2314         [SLAVE_NSP_XFR] = &qxs_nsp_xfr,
2315         [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
2316 };
2317
2318 static const struct qcom_icc_desc sc8280xp_nspa_noc = {
2319         .nodes = nspa_noc_nodes,
2320         .num_nodes = ARRAY_SIZE(nspa_noc_nodes),
2321         .bcms = nspa_noc_bcms,
2322         .num_bcms = ARRAY_SIZE(nspa_noc_bcms),
2323 };
2324
2325 static struct qcom_icc_bcm * const nspb_noc_bcms[] = {
2326         &bcm_nsb0,
2327         &bcm_nsb1,
2328 };
2329
2330 static struct qcom_icc_node * const nspb_noc_nodes[] = {
2331         [MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config,
2332         [MASTER_CDSP_PROC_B] = &qxm_nspb,
2333         [SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc,
2334         [SLAVE_NSPB_XFR] = &qxs_nspb_xfr,
2335         [SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc,
2336 };
2337
2338 static const struct qcom_icc_desc sc8280xp_nspb_noc = {
2339         .nodes = nspb_noc_nodes,
2340         .num_nodes = ARRAY_SIZE(nspb_noc_nodes),
2341         .bcms = nspb_noc_bcms,
2342         .num_bcms = ARRAY_SIZE(nspb_noc_bcms),
2343 };
2344
2345 static struct qcom_icc_bcm * const system_noc_main_bcms[] = {
2346         &bcm_sn0,
2347         &bcm_sn1,
2348         &bcm_sn3,
2349         &bcm_sn4,
2350         &bcm_sn5,
2351         &bcm_sn9,
2352 };
2353
2354 static struct qcom_icc_node * const system_noc_main_nodes[] = {
2355         [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
2356         [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
2357         [MASTER_USB_NOC_SNOC] = &qnm_aggre_usb_noc,
2358         [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
2359         [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
2360         [MASTER_PIMEM] = &qxm_pimem,
2361         [MASTER_GIC] = &xm_gic,
2362         [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
2363         [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
2364         [SLAVE_SERVICE_SNOC] = &srvc_snoc,
2365 };
2366
2367 static const struct qcom_icc_desc sc8280xp_system_noc_main = {
2368         .nodes = system_noc_main_nodes,
2369         .num_nodes = ARRAY_SIZE(system_noc_main_nodes),
2370         .bcms = system_noc_main_bcms,
2371         .num_bcms = ARRAY_SIZE(system_noc_main_bcms),
2372 };
2373
2374 static const struct of_device_id qnoc_of_match[] = {
2375         { .compatible = "qcom,sc8280xp-aggre1-noc", .data = &sc8280xp_aggre1_noc, },
2376         { .compatible = "qcom,sc8280xp-aggre2-noc", .data = &sc8280xp_aggre2_noc, },
2377         { .compatible = "qcom,sc8280xp-clk-virt", .data = &sc8280xp_clk_virt, },
2378         { .compatible = "qcom,sc8280xp-config-noc", .data = &sc8280xp_config_noc, },
2379         { .compatible = "qcom,sc8280xp-dc-noc", .data = &sc8280xp_dc_noc, },
2380         { .compatible = "qcom,sc8280xp-gem-noc", .data = &sc8280xp_gem_noc, },
2381         { .compatible = "qcom,sc8280xp-lpass-ag-noc", .data = &sc8280xp_lpass_ag_noc, },
2382         { .compatible = "qcom,sc8280xp-mc-virt", .data = &sc8280xp_mc_virt, },
2383         { .compatible = "qcom,sc8280xp-mmss-noc", .data = &sc8280xp_mmss_noc, },
2384         { .compatible = "qcom,sc8280xp-nspa-noc", .data = &sc8280xp_nspa_noc, },
2385         { .compatible = "qcom,sc8280xp-nspb-noc", .data = &sc8280xp_nspb_noc, },
2386         { .compatible = "qcom,sc8280xp-system-noc", .data = &sc8280xp_system_noc_main, },
2387         { }
2388 };
2389 MODULE_DEVICE_TABLE(of, qnoc_of_match);
2390
2391 static struct platform_driver qnoc_driver = {
2392         .probe = qcom_icc_rpmh_probe,
2393         .remove = qcom_icc_rpmh_remove,
2394         .driver = {
2395                 .name = "qnoc-sc8280xp",
2396                 .of_match_table = qnoc_of_match,
2397                 .sync_state = icc_sync_state,
2398         },
2399 };
2400
2401 static int __init qnoc_driver_init(void)
2402 {
2403         return platform_driver_register(&qnoc_driver);
2404 }
2405 core_initcall(qnoc_driver_init);
2406
2407 static void __exit qnoc_driver_exit(void)
2408 {
2409         platform_driver_unregister(&qnoc_driver);
2410 }
2411 module_exit(qnoc_driver_exit);
2412
2413 MODULE_DESCRIPTION("Qualcomm SC8280XP NoC driver");
2414 MODULE_LICENSE("GPL");
This page took 0.173674 seconds and 4 git commands to generate.