xref: /linux/drivers/interconnect/qcom/sc8180x.c (revision f26b118031205135c23b43a311712fe8f34febf9)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2020, The Linux Foundation. All rights reserved.
4  * Copyright (c) 2021, Linaro Ltd.
5  */
6 
7 #include <linux/device.h>
8 #include <linux/interconnect-provider.h>
9 #include <linux/module.h>
10 #include <linux/mod_devicetable.h>
11 #include <linux/platform_device.h>
12 
13 #include <dt-bindings/interconnect/qcom,sc8180x.h>
14 
15 #include "bcm-voter.h"
16 #include "icc-rpmh.h"
17 #include "sc8180x.h"
18 
19 static struct qcom_icc_node mas_qhm_a1noc_cfg = {
20 	.name = "mas_qhm_a1noc_cfg",
21 	.id = SC8180X_MASTER_A1NOC_CFG,
22 	.channels = 1,
23 	.buswidth = 4,
24 	.num_links = 1,
25 	.links = { SC8180X_SLAVE_SERVICE_A1NOC }
26 };
27 
28 static struct qcom_icc_node mas_xm_ufs_card = {
29 	.name = "mas_xm_ufs_card",
30 	.id = SC8180X_MASTER_UFS_CARD,
31 	.channels = 1,
32 	.buswidth = 8,
33 	.num_links = 1,
34 	.links = { SC8180X_A1NOC_SNOC_SLV }
35 };
36 
37 static struct qcom_icc_node mas_xm_ufs_g4 = {
38 	.name = "mas_xm_ufs_g4",
39 	.id = SC8180X_MASTER_UFS_GEN4,
40 	.channels = 1,
41 	.buswidth = 8,
42 	.num_links = 1,
43 	.links = { SC8180X_A1NOC_SNOC_SLV }
44 };
45 
46 static struct qcom_icc_node mas_xm_ufs_mem = {
47 	.name = "mas_xm_ufs_mem",
48 	.id = SC8180X_MASTER_UFS_MEM,
49 	.channels = 1,
50 	.buswidth = 8,
51 	.num_links = 1,
52 	.links = { SC8180X_A1NOC_SNOC_SLV }
53 };
54 
55 static struct qcom_icc_node mas_xm_usb3_0 = {
56 	.name = "mas_xm_usb3_0",
57 	.id = SC8180X_MASTER_USB3,
58 	.channels = 1,
59 	.buswidth = 8,
60 	.num_links = 1,
61 	.links = { SC8180X_A1NOC_SNOC_SLV }
62 };
63 
64 static struct qcom_icc_node mas_xm_usb3_1 = {
65 	.name = "mas_xm_usb3_1",
66 	.id = SC8180X_MASTER_USB3_1,
67 	.channels = 1,
68 	.buswidth = 8,
69 	.num_links = 1,
70 	.links = { SC8180X_A1NOC_SNOC_SLV }
71 };
72 
73 static struct qcom_icc_node mas_xm_usb3_2 = {
74 	.name = "mas_xm_usb3_2",
75 	.id = SC8180X_MASTER_USB3_2,
76 	.channels = 1,
77 	.buswidth = 16,
78 	.num_links = 1,
79 	.links = { SC8180X_A1NOC_SNOC_SLV }
80 };
81 
82 static struct qcom_icc_node mas_qhm_a2noc_cfg = {
83 	.name = "mas_qhm_a2noc_cfg",
84 	.id = SC8180X_MASTER_A2NOC_CFG,
85 	.channels = 1,
86 	.buswidth = 4,
87 	.num_links = 1,
88 	.links = { SC8180X_SLAVE_SERVICE_A2NOC }
89 };
90 
91 static struct qcom_icc_node mas_qhm_qdss_bam = {
92 	.name = "mas_qhm_qdss_bam",
93 	.id = SC8180X_MASTER_QDSS_BAM,
94 	.channels = 1,
95 	.buswidth = 4,
96 	.num_links = 1,
97 	.links = { SC8180X_A2NOC_SNOC_SLV }
98 };
99 
100 static struct qcom_icc_node mas_qhm_qspi = {
101 	.name = "mas_qhm_qspi",
102 	.id = SC8180X_MASTER_QSPI_0,
103 	.channels = 1,
104 	.buswidth = 4,
105 	.num_links = 1,
106 	.links = { SC8180X_A2NOC_SNOC_SLV }
107 };
108 
109 static struct qcom_icc_node mas_qhm_qspi1 = {
110 	.name = "mas_qhm_qspi1",
111 	.id = SC8180X_MASTER_QSPI_1,
112 	.channels = 1,
113 	.buswidth = 4,
114 	.num_links = 1,
115 	.links = { SC8180X_A2NOC_SNOC_SLV }
116 };
117 
118 static struct qcom_icc_node mas_qhm_qup0 = {
119 	.name = "mas_qhm_qup0",
120 	.id = SC8180X_MASTER_QUP_0,
121 	.channels = 1,
122 	.buswidth = 4,
123 	.num_links = 1,
124 	.links = { SC8180X_A2NOC_SNOC_SLV }
125 };
126 
127 static struct qcom_icc_node mas_qhm_qup1 = {
128 	.name = "mas_qhm_qup1",
129 	.id = SC8180X_MASTER_QUP_1,
130 	.channels = 1,
131 	.buswidth = 4,
132 	.num_links = 1,
133 	.links = { SC8180X_A2NOC_SNOC_SLV }
134 };
135 
136 static struct qcom_icc_node mas_qhm_qup2 = {
137 	.name = "mas_qhm_qup2",
138 	.id = SC8180X_MASTER_QUP_2,
139 	.channels = 1,
140 	.buswidth = 4,
141 	.num_links = 1,
142 	.links = { SC8180X_A2NOC_SNOC_SLV }
143 };
144 
145 static struct qcom_icc_node mas_qhm_sensorss_ahb = {
146 	.name = "mas_qhm_sensorss_ahb",
147 	.id = SC8180X_MASTER_SENSORS_AHB,
148 	.channels = 1,
149 	.buswidth = 4,
150 	.num_links = 1,
151 	.links = { SC8180X_A2NOC_SNOC_SLV }
152 };
153 
154 static struct qcom_icc_node mas_qxm_crypto = {
155 	.name = "mas_qxm_crypto",
156 	.id = SC8180X_MASTER_CRYPTO_CORE_0,
157 	.channels = 1,
158 	.buswidth = 8,
159 	.num_links = 1,
160 	.links = { SC8180X_A2NOC_SNOC_SLV }
161 };
162 
163 static struct qcom_icc_node mas_qxm_ipa = {
164 	.name = "mas_qxm_ipa",
165 	.id = SC8180X_MASTER_IPA,
166 	.channels = 1,
167 	.buswidth = 8,
168 	.num_links = 1,
169 	.links = { SC8180X_A2NOC_SNOC_SLV }
170 };
171 
172 static struct qcom_icc_node mas_xm_emac = {
173 	.name = "mas_xm_emac",
174 	.id = SC8180X_MASTER_EMAC,
175 	.channels = 1,
176 	.buswidth = 8,
177 	.num_links = 1,
178 	.links = { SC8180X_A2NOC_SNOC_SLV }
179 };
180 
181 static struct qcom_icc_node mas_xm_pcie3_0 = {
182 	.name = "mas_xm_pcie3_0",
183 	.id = SC8180X_MASTER_PCIE,
184 	.channels = 1,
185 	.buswidth = 8,
186 	.num_links = 1,
187 	.links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
188 };
189 
190 static struct qcom_icc_node mas_xm_pcie3_1 = {
191 	.name = "mas_xm_pcie3_1",
192 	.id = SC8180X_MASTER_PCIE_1,
193 	.channels = 1,
194 	.buswidth = 16,
195 	.num_links = 1,
196 	.links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
197 };
198 
199 static struct qcom_icc_node mas_xm_pcie3_2 = {
200 	.name = "mas_xm_pcie3_2",
201 	.id = SC8180X_MASTER_PCIE_2,
202 	.channels = 1,
203 	.buswidth = 8,
204 	.num_links = 1,
205 	.links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
206 };
207 
208 static struct qcom_icc_node mas_xm_pcie3_3 = {
209 	.name = "mas_xm_pcie3_3",
210 	.id = SC8180X_MASTER_PCIE_3,
211 	.channels = 1,
212 	.buswidth = 16,
213 	.num_links = 1,
214 	.links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
215 };
216 
217 static struct qcom_icc_node mas_xm_qdss_etr = {
218 	.name = "mas_xm_qdss_etr",
219 	.id = SC8180X_MASTER_QDSS_ETR,
220 	.channels = 1,
221 	.buswidth = 8,
222 	.num_links = 1,
223 	.links = { SC8180X_A2NOC_SNOC_SLV }
224 };
225 
226 static struct qcom_icc_node mas_xm_sdc2 = {
227 	.name = "mas_xm_sdc2",
228 	.id = SC8180X_MASTER_SDCC_2,
229 	.channels = 1,
230 	.buswidth = 8,
231 	.num_links = 1,
232 	.links = { SC8180X_A2NOC_SNOC_SLV }
233 };
234 
235 static struct qcom_icc_node mas_xm_sdc4 = {
236 	.name = "mas_xm_sdc4",
237 	.id = SC8180X_MASTER_SDCC_4,
238 	.channels = 1,
239 	.buswidth = 8,
240 	.num_links = 1,
241 	.links = { SC8180X_A2NOC_SNOC_SLV }
242 };
243 
244 static struct qcom_icc_node mas_qxm_camnoc_hf0_uncomp = {
245 	.name = "mas_qxm_camnoc_hf0_uncomp",
246 	.id = SC8180X_MASTER_CAMNOC_HF0_UNCOMP,
247 	.channels = 1,
248 	.buswidth = 32,
249 	.num_links = 1,
250 	.links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
251 };
252 
253 static struct qcom_icc_node mas_qxm_camnoc_hf1_uncomp = {
254 	.name = "mas_qxm_camnoc_hf1_uncomp",
255 	.id = SC8180X_MASTER_CAMNOC_HF1_UNCOMP,
256 	.channels = 1,
257 	.buswidth = 32,
258 	.num_links = 1,
259 	.links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
260 };
261 
262 static struct qcom_icc_node mas_qxm_camnoc_sf_uncomp = {
263 	.name = "mas_qxm_camnoc_sf_uncomp",
264 	.id = SC8180X_MASTER_CAMNOC_SF_UNCOMP,
265 	.channels = 1,
266 	.buswidth = 32,
267 	.num_links = 1,
268 	.links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
269 };
270 
271 static struct qcom_icc_node mas_qnm_npu = {
272 	.name = "mas_qnm_npu",
273 	.id = SC8180X_MASTER_NPU,
274 	.channels = 1,
275 	.buswidth = 32,
276 	.num_links = 1,
277 	.links = { SC8180X_SLAVE_CDSP_MEM_NOC }
278 };
279 
280 static struct qcom_icc_node mas_qnm_snoc = {
281 	.name = "mas_qnm_snoc",
282 	.id = SC8180X_SNOC_CNOC_MAS,
283 	.channels = 1,
284 	.buswidth = 8,
285 	.num_links = 56,
286 	.links = { SC8180X_SLAVE_TLMM_SOUTH,
287 		   SC8180X_SLAVE_CDSP_CFG,
288 		   SC8180X_SLAVE_SPSS_CFG,
289 		   SC8180X_SLAVE_CAMERA_CFG,
290 		   SC8180X_SLAVE_SDCC_4,
291 		   SC8180X_SLAVE_AHB2PHY_CENTER,
292 		   SC8180X_SLAVE_SDCC_2,
293 		   SC8180X_SLAVE_PCIE_2_CFG,
294 		   SC8180X_SLAVE_CNOC_MNOC_CFG,
295 		   SC8180X_SLAVE_EMAC_CFG,
296 		   SC8180X_SLAVE_QSPI_0,
297 		   SC8180X_SLAVE_QSPI_1,
298 		   SC8180X_SLAVE_TLMM_EAST,
299 		   SC8180X_SLAVE_SNOC_CFG,
300 		   SC8180X_SLAVE_AHB2PHY_EAST,
301 		   SC8180X_SLAVE_GLM,
302 		   SC8180X_SLAVE_PDM,
303 		   SC8180X_SLAVE_PCIE_1_CFG,
304 		   SC8180X_SLAVE_A2NOC_CFG,
305 		   SC8180X_SLAVE_QDSS_CFG,
306 		   SC8180X_SLAVE_DISPLAY_CFG,
307 		   SC8180X_SLAVE_TCSR,
308 		   SC8180X_SLAVE_UFS_MEM_0_CFG,
309 		   SC8180X_SLAVE_CNOC_DDRSS,
310 		   SC8180X_SLAVE_PCIE_0_CFG,
311 		   SC8180X_SLAVE_QUP_1,
312 		   SC8180X_SLAVE_QUP_2,
313 		   SC8180X_SLAVE_NPU_CFG,
314 		   SC8180X_SLAVE_CRYPTO_0_CFG,
315 		   SC8180X_SLAVE_GRAPHICS_3D_CFG,
316 		   SC8180X_SLAVE_VENUS_CFG,
317 		   SC8180X_SLAVE_TSIF,
318 		   SC8180X_SLAVE_IPA_CFG,
319 		   SC8180X_SLAVE_CLK_CTL,
320 		   SC8180X_SLAVE_SECURITY,
321 		   SC8180X_SLAVE_AOP,
322 		   SC8180X_SLAVE_AHB2PHY_WEST,
323 		   SC8180X_SLAVE_AHB2PHY_SOUTH,
324 		   SC8180X_SLAVE_SERVICE_CNOC,
325 		   SC8180X_SLAVE_UFS_CARD_CFG,
326 		   SC8180X_SLAVE_USB3_1,
327 		   SC8180X_SLAVE_USB3_2,
328 		   SC8180X_SLAVE_PCIE_3_CFG,
329 		   SC8180X_SLAVE_RBCPR_CX_CFG,
330 		   SC8180X_SLAVE_TLMM_WEST,
331 		   SC8180X_SLAVE_A1NOC_CFG,
332 		   SC8180X_SLAVE_AOSS,
333 		   SC8180X_SLAVE_PRNG,
334 		   SC8180X_SLAVE_VSENSE_CTRL_CFG,
335 		   SC8180X_SLAVE_QUP_0,
336 		   SC8180X_SLAVE_USB3,
337 		   SC8180X_SLAVE_RBCPR_MMCX_CFG,
338 		   SC8180X_SLAVE_PIMEM_CFG,
339 		   SC8180X_SLAVE_UFS_MEM_1_CFG,
340 		   SC8180X_SLAVE_RBCPR_MX_CFG,
341 		   SC8180X_SLAVE_IMEM_CFG }
342 };
343 
344 static struct qcom_icc_node mas_qhm_cnoc_dc_noc = {
345 	.name = "mas_qhm_cnoc_dc_noc",
346 	.id = SC8180X_MASTER_CNOC_DC_NOC,
347 	.channels = 1,
348 	.buswidth = 4,
349 	.num_links = 2,
350 	.links = { SC8180X_SLAVE_LLCC_CFG,
351 		   SC8180X_SLAVE_GEM_NOC_CFG }
352 };
353 
354 static struct qcom_icc_node mas_acm_apps = {
355 	.name = "mas_acm_apps",
356 	.id = SC8180X_MASTER_AMPSS_M0,
357 	.channels = 4,
358 	.buswidth = 64,
359 	.num_links = 3,
360 	.links = { SC8180X_SLAVE_ECC,
361 		   SC8180X_SLAVE_LLCC,
362 		   SC8180X_SLAVE_GEM_NOC_SNOC }
363 };
364 
365 static struct qcom_icc_node mas_acm_gpu_tcu = {
366 	.name = "mas_acm_gpu_tcu",
367 	.id = SC8180X_MASTER_GPU_TCU,
368 	.channels = 1,
369 	.buswidth = 8,
370 	.num_links = 2,
371 	.links = { SC8180X_SLAVE_LLCC,
372 		   SC8180X_SLAVE_GEM_NOC_SNOC }
373 };
374 
375 static struct qcom_icc_node mas_acm_sys_tcu = {
376 	.name = "mas_acm_sys_tcu",
377 	.id = SC8180X_MASTER_SYS_TCU,
378 	.channels = 1,
379 	.buswidth = 8,
380 	.num_links = 2,
381 	.links = { SC8180X_SLAVE_LLCC,
382 		   SC8180X_SLAVE_GEM_NOC_SNOC }
383 };
384 
385 static struct qcom_icc_node mas_qhm_gemnoc_cfg = {
386 	.name = "mas_qhm_gemnoc_cfg",
387 	.id = SC8180X_MASTER_GEM_NOC_CFG,
388 	.channels = 1,
389 	.buswidth = 4,
390 	.num_links = 3,
391 	.links = { SC8180X_SLAVE_SERVICE_GEM_NOC_1,
392 		   SC8180X_SLAVE_SERVICE_GEM_NOC,
393 		   SC8180X_SLAVE_MSS_PROC_MS_MPU_CFG }
394 };
395 
396 static struct qcom_icc_node mas_qnm_cmpnoc = {
397 	.name = "mas_qnm_cmpnoc",
398 	.id = SC8180X_MASTER_COMPUTE_NOC,
399 	.channels = 2,
400 	.buswidth = 32,
401 	.num_links = 3,
402 	.links = { SC8180X_SLAVE_ECC,
403 		   SC8180X_SLAVE_LLCC,
404 		   SC8180X_SLAVE_GEM_NOC_SNOC }
405 };
406 
407 static struct qcom_icc_node mas_qnm_gpu = {
408 	.name = "mas_qnm_gpu",
409 	.id = SC8180X_MASTER_GRAPHICS_3D,
410 	.channels = 4,
411 	.buswidth = 32,
412 	.num_links = 2,
413 	.links = { SC8180X_SLAVE_LLCC,
414 		   SC8180X_SLAVE_GEM_NOC_SNOC }
415 };
416 
417 static struct qcom_icc_node mas_qnm_mnoc_hf = {
418 	.name = "mas_qnm_mnoc_hf",
419 	.id = SC8180X_MASTER_MNOC_HF_MEM_NOC,
420 	.channels = 2,
421 	.buswidth = 32,
422 	.num_links = 1,
423 	.links = { SC8180X_SLAVE_LLCC }
424 };
425 
426 static struct qcom_icc_node mas_qnm_mnoc_sf = {
427 	.name = "mas_qnm_mnoc_sf",
428 	.id = SC8180X_MASTER_MNOC_SF_MEM_NOC,
429 	.channels = 1,
430 	.buswidth = 32,
431 	.num_links = 2,
432 	.links = { SC8180X_SLAVE_LLCC,
433 		   SC8180X_SLAVE_GEM_NOC_SNOC }
434 };
435 
436 static struct qcom_icc_node mas_qnm_pcie = {
437 	.name = "mas_qnm_pcie",
438 	.id = SC8180X_MASTER_GEM_NOC_PCIE_SNOC,
439 	.channels = 1,
440 	.buswidth = 32,
441 	.num_links = 2,
442 	.links = { SC8180X_SLAVE_LLCC,
443 		   SC8180X_SLAVE_GEM_NOC_SNOC }
444 };
445 
446 static struct qcom_icc_node mas_qnm_snoc_gc = {
447 	.name = "mas_qnm_snoc_gc",
448 	.id = SC8180X_MASTER_SNOC_GC_MEM_NOC,
449 	.channels = 1,
450 	.buswidth = 8,
451 	.num_links = 1,
452 	.links = { SC8180X_SLAVE_LLCC }
453 };
454 
455 static struct qcom_icc_node mas_qnm_snoc_sf = {
456 	.name = "mas_qnm_snoc_sf",
457 	.id = SC8180X_MASTER_SNOC_SF_MEM_NOC,
458 	.channels = 1,
459 	.buswidth = 32,
460 	.num_links = 1,
461 	.links = { SC8180X_SLAVE_LLCC }
462 };
463 
464 static struct qcom_icc_node mas_qxm_ecc = {
465 	.name = "mas_qxm_ecc",
466 	.id = SC8180X_MASTER_ECC,
467 	.channels = 2,
468 	.buswidth = 32,
469 	.num_links = 1,
470 	.links = { SC8180X_SLAVE_LLCC }
471 };
472 
473 static struct qcom_icc_node mas_llcc_mc = {
474 	.name = "mas_llcc_mc",
475 	.id = SC8180X_MASTER_LLCC,
476 	.channels = 8,
477 	.buswidth = 4,
478 	.num_links = 1,
479 	.links = { SC8180X_SLAVE_EBI_CH0 }
480 };
481 
482 static struct qcom_icc_node mas_qhm_mnoc_cfg = {
483 	.name = "mas_qhm_mnoc_cfg",
484 	.id = SC8180X_MASTER_CNOC_MNOC_CFG,
485 	.channels = 1,
486 	.buswidth = 4,
487 	.num_links = 1,
488 	.links = { SC8180X_SLAVE_SERVICE_MNOC }
489 };
490 
491 static struct qcom_icc_node mas_qxm_camnoc_hf0 = {
492 	.name = "mas_qxm_camnoc_hf0",
493 	.id = SC8180X_MASTER_CAMNOC_HF0,
494 	.channels = 1,
495 	.buswidth = 32,
496 	.num_links = 1,
497 	.links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
498 };
499 
500 static struct qcom_icc_node mas_qxm_camnoc_hf1 = {
501 	.name = "mas_qxm_camnoc_hf1",
502 	.id = SC8180X_MASTER_CAMNOC_HF1,
503 	.channels = 1,
504 	.buswidth = 32,
505 	.num_links = 1,
506 	.links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
507 };
508 
509 static struct qcom_icc_node mas_qxm_camnoc_sf = {
510 	.name = "mas_qxm_camnoc_sf",
511 	.id = SC8180X_MASTER_CAMNOC_SF,
512 	.channels = 1,
513 	.buswidth = 32,
514 	.num_links = 1,
515 	.links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
516 };
517 
518 static struct qcom_icc_node mas_qxm_mdp0 = {
519 	.name = "mas_qxm_mdp0",
520 	.id = SC8180X_MASTER_MDP_PORT0,
521 	.channels = 1,
522 	.buswidth = 32,
523 	.num_links = 1,
524 	.links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
525 };
526 
527 static struct qcom_icc_node mas_qxm_mdp1 = {
528 	.name = "mas_qxm_mdp1",
529 	.id = SC8180X_MASTER_MDP_PORT1,
530 	.channels = 1,
531 	.buswidth = 32,
532 	.num_links = 1,
533 	.links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
534 };
535 
536 static struct qcom_icc_node mas_qxm_rot = {
537 	.name = "mas_qxm_rot",
538 	.id = SC8180X_MASTER_ROTATOR,
539 	.channels = 1,
540 	.buswidth = 32,
541 	.num_links = 1,
542 	.links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
543 };
544 
545 static struct qcom_icc_node mas_qxm_venus0 = {
546 	.name = "mas_qxm_venus0",
547 	.id = SC8180X_MASTER_VIDEO_P0,
548 	.channels = 1,
549 	.buswidth = 32,
550 	.num_links = 1,
551 	.links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
552 };
553 
554 static struct qcom_icc_node mas_qxm_venus1 = {
555 	.name = "mas_qxm_venus1",
556 	.id = SC8180X_MASTER_VIDEO_P1,
557 	.channels = 1,
558 	.buswidth = 32,
559 	.num_links = 1,
560 	.links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
561 };
562 
563 static struct qcom_icc_node mas_qxm_venus_arm9 = {
564 	.name = "mas_qxm_venus_arm9",
565 	.id = SC8180X_MASTER_VIDEO_PROC,
566 	.channels = 1,
567 	.buswidth = 8,
568 	.num_links = 1,
569 	.links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
570 };
571 
572 static struct qcom_icc_node mas_qhm_snoc_cfg = {
573 	.name = "mas_qhm_snoc_cfg",
574 	.id = SC8180X_MASTER_SNOC_CFG,
575 	.channels = 1,
576 	.buswidth = 4,
577 	.num_links = 1,
578 	.links = { SC8180X_SLAVE_SERVICE_SNOC }
579 };
580 
581 static struct qcom_icc_node mas_qnm_aggre1_noc = {
582 	.name = "mas_qnm_aggre1_noc",
583 	.id = SC8180X_A1NOC_SNOC_MAS,
584 	.channels = 1,
585 	.buswidth = 32,
586 	.num_links = 6,
587 	.links = { SC8180X_SLAVE_SNOC_GEM_NOC_SF,
588 		   SC8180X_SLAVE_PIMEM,
589 		   SC8180X_SLAVE_OCIMEM,
590 		   SC8180X_SLAVE_APPSS,
591 		   SC8180X_SNOC_CNOC_SLV,
592 		   SC8180X_SLAVE_QDSS_STM }
593 };
594 
595 static struct qcom_icc_node mas_qnm_aggre2_noc = {
596 	.name = "mas_qnm_aggre2_noc",
597 	.id = SC8180X_A2NOC_SNOC_MAS,
598 	.channels = 1,
599 	.buswidth = 16,
600 	.num_links = 11,
601 	.links = { SC8180X_SLAVE_SNOC_GEM_NOC_SF,
602 		   SC8180X_SLAVE_PIMEM,
603 		   SC8180X_SLAVE_PCIE_3,
604 		   SC8180X_SLAVE_OCIMEM,
605 		   SC8180X_SLAVE_APPSS,
606 		   SC8180X_SLAVE_PCIE_2,
607 		   SC8180X_SNOC_CNOC_SLV,
608 		   SC8180X_SLAVE_PCIE_0,
609 		   SC8180X_SLAVE_PCIE_1,
610 		   SC8180X_SLAVE_TCU,
611 		   SC8180X_SLAVE_QDSS_STM }
612 };
613 
614 static struct qcom_icc_node mas_qnm_gemnoc = {
615 	.name = "mas_qnm_gemnoc",
616 	.id = SC8180X_MASTER_GEM_NOC_SNOC,
617 	.channels = 1,
618 	.buswidth = 8,
619 	.num_links = 6,
620 	.links = { SC8180X_SLAVE_PIMEM,
621 		   SC8180X_SLAVE_OCIMEM,
622 		   SC8180X_SLAVE_APPSS,
623 		   SC8180X_SNOC_CNOC_SLV,
624 		   SC8180X_SLAVE_TCU,
625 		   SC8180X_SLAVE_QDSS_STM }
626 };
627 
628 static struct qcom_icc_node mas_qxm_pimem = {
629 	.name = "mas_qxm_pimem",
630 	.id = SC8180X_MASTER_PIMEM,
631 	.channels = 1,
632 	.buswidth = 8,
633 	.num_links = 2,
634 	.links = { SC8180X_SLAVE_SNOC_GEM_NOC_GC,
635 		   SC8180X_SLAVE_OCIMEM }
636 };
637 
638 static struct qcom_icc_node mas_xm_gic = {
639 	.name = "mas_xm_gic",
640 	.id = SC8180X_MASTER_GIC,
641 	.channels = 1,
642 	.buswidth = 8,
643 	.num_links = 2,
644 	.links = { SC8180X_SLAVE_SNOC_GEM_NOC_GC,
645 		   SC8180X_SLAVE_OCIMEM }
646 };
647 
648 static struct qcom_icc_node mas_qup_core_0 = {
649 	.name = "mas_qup_core_0",
650 	.id = SC8180X_MASTER_QUP_CORE_0,
651 	.channels = 1,
652 	.buswidth = 4,
653 	.num_links = 1,
654 	.links = { SC8180X_SLAVE_QUP_CORE_0 }
655 };
656 
657 static struct qcom_icc_node mas_qup_core_1 = {
658 	.name = "mas_qup_core_1",
659 	.id = SC8180X_MASTER_QUP_CORE_1,
660 	.channels = 1,
661 	.buswidth = 4,
662 	.num_links = 1,
663 	.links = { SC8180X_SLAVE_QUP_CORE_1 }
664 };
665 
666 static struct qcom_icc_node mas_qup_core_2 = {
667 	.name = "mas_qup_core_2",
668 	.id = SC8180X_MASTER_QUP_CORE_2,
669 	.channels = 1,
670 	.buswidth = 4,
671 	.num_links = 1,
672 	.links = { SC8180X_SLAVE_QUP_CORE_2 }
673 };
674 
675 static struct qcom_icc_node slv_qns_a1noc_snoc = {
676 	.name = "slv_qns_a1noc_snoc",
677 	.id = SC8180X_A1NOC_SNOC_SLV,
678 	.channels = 1,
679 	.buswidth = 32,
680 	.num_links = 1,
681 	.links = { SC8180X_A1NOC_SNOC_MAS }
682 };
683 
684 static struct qcom_icc_node slv_srvc_aggre1_noc = {
685 	.name = "slv_srvc_aggre1_noc",
686 	.id = SC8180X_SLAVE_SERVICE_A1NOC,
687 	.channels = 1,
688 	.buswidth = 4
689 };
690 
691 static struct qcom_icc_node slv_qns_a2noc_snoc = {
692 	.name = "slv_qns_a2noc_snoc",
693 	.id = SC8180X_A2NOC_SNOC_SLV,
694 	.channels = 1,
695 	.buswidth = 16,
696 	.num_links = 1,
697 	.links = { SC8180X_A2NOC_SNOC_MAS }
698 };
699 
700 static struct qcom_icc_node slv_qns_pcie_mem_noc = {
701 	.name = "slv_qns_pcie_mem_noc",
702 	.id = SC8180X_SLAVE_ANOC_PCIE_GEM_NOC,
703 	.channels = 1,
704 	.buswidth = 32,
705 	.num_links = 1,
706 	.links = { SC8180X_MASTER_GEM_NOC_PCIE_SNOC }
707 };
708 
709 static struct qcom_icc_node slv_srvc_aggre2_noc = {
710 	.name = "slv_srvc_aggre2_noc",
711 	.id = SC8180X_SLAVE_SERVICE_A2NOC,
712 	.channels = 1,
713 	.buswidth = 4
714 };
715 
716 static struct qcom_icc_node slv_qns_camnoc_uncomp = {
717 	.name = "slv_qns_camnoc_uncomp",
718 	.id = SC8180X_SLAVE_CAMNOC_UNCOMP,
719 	.channels = 1,
720 	.buswidth = 32
721 };
722 
723 static struct qcom_icc_node slv_qns_cdsp_mem_noc = {
724 	.name = "slv_qns_cdsp_mem_noc",
725 	.id = SC8180X_SLAVE_CDSP_MEM_NOC,
726 	.channels = 2,
727 	.buswidth = 32,
728 	.num_links = 1,
729 	.links = { SC8180X_MASTER_COMPUTE_NOC }
730 };
731 
732 static struct qcom_icc_node slv_qhs_a1_noc_cfg = {
733 	.name = "slv_qhs_a1_noc_cfg",
734 	.id = SC8180X_SLAVE_A1NOC_CFG,
735 	.channels = 1,
736 	.buswidth = 4,
737 	.num_links = 1,
738 	.links = { SC8180X_MASTER_A1NOC_CFG }
739 };
740 
741 static struct qcom_icc_node slv_qhs_a2_noc_cfg = {
742 	.name = "slv_qhs_a2_noc_cfg",
743 	.id = SC8180X_SLAVE_A2NOC_CFG,
744 	.channels = 1,
745 	.buswidth = 4,
746 	.num_links = 1,
747 	.links = { SC8180X_MASTER_A2NOC_CFG }
748 };
749 
750 static struct qcom_icc_node slv_qhs_ahb2phy_refgen_center = {
751 	.name = "slv_qhs_ahb2phy_refgen_center",
752 	.id = SC8180X_SLAVE_AHB2PHY_CENTER,
753 	.channels = 1,
754 	.buswidth = 4
755 };
756 
757 static struct qcom_icc_node slv_qhs_ahb2phy_refgen_east = {
758 	.name = "slv_qhs_ahb2phy_refgen_east",
759 	.id = SC8180X_SLAVE_AHB2PHY_EAST,
760 	.channels = 1,
761 	.buswidth = 4
762 };
763 
764 static struct qcom_icc_node slv_qhs_ahb2phy_refgen_west = {
765 	.name = "slv_qhs_ahb2phy_refgen_west",
766 	.id = SC8180X_SLAVE_AHB2PHY_WEST,
767 	.channels = 1,
768 	.buswidth = 4
769 };
770 
771 static struct qcom_icc_node slv_qhs_ahb2phy_south = {
772 	.name = "slv_qhs_ahb2phy_south",
773 	.id = SC8180X_SLAVE_AHB2PHY_SOUTH,
774 	.channels = 1,
775 	.buswidth = 4
776 };
777 
778 static struct qcom_icc_node slv_qhs_aop = {
779 	.name = "slv_qhs_aop",
780 	.id = SC8180X_SLAVE_AOP,
781 	.channels = 1,
782 	.buswidth = 4
783 };
784 
785 static struct qcom_icc_node slv_qhs_aoss = {
786 	.name = "slv_qhs_aoss",
787 	.id = SC8180X_SLAVE_AOSS,
788 	.channels = 1,
789 	.buswidth = 4
790 };
791 
792 static struct qcom_icc_node slv_qhs_camera_cfg = {
793 	.name = "slv_qhs_camera_cfg",
794 	.id = SC8180X_SLAVE_CAMERA_CFG,
795 	.channels = 1,
796 	.buswidth = 4
797 };
798 
799 static struct qcom_icc_node slv_qhs_clk_ctl = {
800 	.name = "slv_qhs_clk_ctl",
801 	.id = SC8180X_SLAVE_CLK_CTL,
802 	.channels = 1,
803 	.buswidth = 4
804 };
805 
806 static struct qcom_icc_node slv_qhs_compute_dsp = {
807 	.name = "slv_qhs_compute_dsp",
808 	.id = SC8180X_SLAVE_CDSP_CFG,
809 	.channels = 1,
810 	.buswidth = 4
811 };
812 
813 static struct qcom_icc_node slv_qhs_cpr_cx = {
814 	.name = "slv_qhs_cpr_cx",
815 	.id = SC8180X_SLAVE_RBCPR_CX_CFG,
816 	.channels = 1,
817 	.buswidth = 4
818 };
819 
820 static struct qcom_icc_node slv_qhs_cpr_mmcx = {
821 	.name = "slv_qhs_cpr_mmcx",
822 	.id = SC8180X_SLAVE_RBCPR_MMCX_CFG,
823 	.channels = 1,
824 	.buswidth = 4
825 };
826 
827 static struct qcom_icc_node slv_qhs_cpr_mx = {
828 	.name = "slv_qhs_cpr_mx",
829 	.id = SC8180X_SLAVE_RBCPR_MX_CFG,
830 	.channels = 1,
831 	.buswidth = 4
832 };
833 
834 static struct qcom_icc_node slv_qhs_crypto0_cfg = {
835 	.name = "slv_qhs_crypto0_cfg",
836 	.id = SC8180X_SLAVE_CRYPTO_0_CFG,
837 	.channels = 1,
838 	.buswidth = 4
839 };
840 
841 static struct qcom_icc_node slv_qhs_ddrss_cfg = {
842 	.name = "slv_qhs_ddrss_cfg",
843 	.id = SC8180X_SLAVE_CNOC_DDRSS,
844 	.channels = 1,
845 	.buswidth = 4,
846 	.num_links = 1,
847 	.links = { SC8180X_MASTER_CNOC_DC_NOC }
848 };
849 
850 static struct qcom_icc_node slv_qhs_display_cfg = {
851 	.name = "slv_qhs_display_cfg",
852 	.id = SC8180X_SLAVE_DISPLAY_CFG,
853 	.channels = 1,
854 	.buswidth = 4
855 };
856 
857 static struct qcom_icc_node slv_qhs_emac_cfg = {
858 	.name = "slv_qhs_emac_cfg",
859 	.id = SC8180X_SLAVE_EMAC_CFG,
860 	.channels = 1,
861 	.buswidth = 4
862 };
863 
864 static struct qcom_icc_node slv_qhs_glm = {
865 	.name = "slv_qhs_glm",
866 	.id = SC8180X_SLAVE_GLM,
867 	.channels = 1,
868 	.buswidth = 4
869 };
870 
871 static struct qcom_icc_node slv_qhs_gpuss_cfg = {
872 	.name = "slv_qhs_gpuss_cfg",
873 	.id = SC8180X_SLAVE_GRAPHICS_3D_CFG,
874 	.channels = 1,
875 	.buswidth = 8
876 };
877 
878 static struct qcom_icc_node slv_qhs_imem_cfg = {
879 	.name = "slv_qhs_imem_cfg",
880 	.id = SC8180X_SLAVE_IMEM_CFG,
881 	.channels = 1,
882 	.buswidth = 4
883 };
884 
885 static struct qcom_icc_node slv_qhs_ipa = {
886 	.name = "slv_qhs_ipa",
887 	.id = SC8180X_SLAVE_IPA_CFG,
888 	.channels = 1,
889 	.buswidth = 4
890 };
891 
892 static struct qcom_icc_node slv_qhs_mnoc_cfg = {
893 	.name = "slv_qhs_mnoc_cfg",
894 	.id = SC8180X_SLAVE_CNOC_MNOC_CFG,
895 	.channels = 1,
896 	.buswidth = 4,
897 	.num_links = 1,
898 	.links = { SC8180X_MASTER_CNOC_MNOC_CFG }
899 };
900 
901 static struct qcom_icc_node slv_qhs_npu_cfg = {
902 	.name = "slv_qhs_npu_cfg",
903 	.id = SC8180X_SLAVE_NPU_CFG,
904 	.channels = 1,
905 	.buswidth = 4
906 };
907 
908 static struct qcom_icc_node slv_qhs_pcie0_cfg = {
909 	.name = "slv_qhs_pcie0_cfg",
910 	.id = SC8180X_SLAVE_PCIE_0_CFG,
911 	.channels = 1,
912 	.buswidth = 4
913 };
914 
915 static struct qcom_icc_node slv_qhs_pcie1_cfg = {
916 	.name = "slv_qhs_pcie1_cfg",
917 	.id = SC8180X_SLAVE_PCIE_1_CFG,
918 	.channels = 1,
919 	.buswidth = 4
920 };
921 
922 static struct qcom_icc_node slv_qhs_pcie2_cfg = {
923 	.name = "slv_qhs_pcie2_cfg",
924 	.id = SC8180X_SLAVE_PCIE_2_CFG,
925 	.channels = 1,
926 	.buswidth = 4
927 };
928 
929 static struct qcom_icc_node slv_qhs_pcie3_cfg = {
930 	.name = "slv_qhs_pcie3_cfg",
931 	.id = SC8180X_SLAVE_PCIE_3_CFG,
932 	.channels = 1,
933 	.buswidth = 4
934 };
935 
936 static struct qcom_icc_node slv_qhs_pdm = {
937 	.name = "slv_qhs_pdm",
938 	.id = SC8180X_SLAVE_PDM,
939 	.channels = 1,
940 	.buswidth = 4
941 };
942 
943 static struct qcom_icc_node slv_qhs_pimem_cfg = {
944 	.name = "slv_qhs_pimem_cfg",
945 	.id = SC8180X_SLAVE_PIMEM_CFG,
946 	.channels = 1,
947 	.buswidth = 4
948 };
949 
950 static struct qcom_icc_node slv_qhs_prng = {
951 	.name = "slv_qhs_prng",
952 	.id = SC8180X_SLAVE_PRNG,
953 	.channels = 1,
954 	.buswidth = 4
955 };
956 
957 static struct qcom_icc_node slv_qhs_qdss_cfg = {
958 	.name = "slv_qhs_qdss_cfg",
959 	.id = SC8180X_SLAVE_QDSS_CFG,
960 	.channels = 1,
961 	.buswidth = 4
962 };
963 
964 static struct qcom_icc_node slv_qhs_qspi_0 = {
965 	.name = "slv_qhs_qspi_0",
966 	.id = SC8180X_SLAVE_QSPI_0,
967 	.channels = 1,
968 	.buswidth = 4
969 };
970 
971 static struct qcom_icc_node slv_qhs_qspi_1 = {
972 	.name = "slv_qhs_qspi_1",
973 	.id = SC8180X_SLAVE_QSPI_1,
974 	.channels = 1,
975 	.buswidth = 4
976 };
977 
978 static struct qcom_icc_node slv_qhs_qupv3_east0 = {
979 	.name = "slv_qhs_qupv3_east0",
980 	.id = SC8180X_SLAVE_QUP_1,
981 	.channels = 1,
982 	.buswidth = 4
983 };
984 
985 static struct qcom_icc_node slv_qhs_qupv3_east1 = {
986 	.name = "slv_qhs_qupv3_east1",
987 	.id = SC8180X_SLAVE_QUP_2,
988 	.channels = 1,
989 	.buswidth = 4
990 };
991 
992 static struct qcom_icc_node slv_qhs_qupv3_west = {
993 	.name = "slv_qhs_qupv3_west",
994 	.id = SC8180X_SLAVE_QUP_0,
995 	.channels = 1,
996 	.buswidth = 4
997 };
998 
999 static struct qcom_icc_node slv_qhs_sdc2 = {
1000 	.name = "slv_qhs_sdc2",
1001 	.id = SC8180X_SLAVE_SDCC_2,
1002 	.channels = 1,
1003 	.buswidth = 4
1004 };
1005 
1006 static struct qcom_icc_node slv_qhs_sdc4 = {
1007 	.name = "slv_qhs_sdc4",
1008 	.id = SC8180X_SLAVE_SDCC_4,
1009 	.channels = 1,
1010 	.buswidth = 4
1011 };
1012 
1013 static struct qcom_icc_node slv_qhs_security = {
1014 	.name = "slv_qhs_security",
1015 	.id = SC8180X_SLAVE_SECURITY,
1016 	.channels = 1,
1017 	.buswidth = 4
1018 };
1019 
1020 static struct qcom_icc_node slv_qhs_snoc_cfg = {
1021 	.name = "slv_qhs_snoc_cfg",
1022 	.id = SC8180X_SLAVE_SNOC_CFG,
1023 	.channels = 1,
1024 	.buswidth = 4,
1025 	.num_links = 1,
1026 	.links = { SC8180X_MASTER_SNOC_CFG }
1027 };
1028 
1029 static struct qcom_icc_node slv_qhs_spss_cfg = {
1030 	.name = "slv_qhs_spss_cfg",
1031 	.id = SC8180X_SLAVE_SPSS_CFG,
1032 	.channels = 1,
1033 	.buswidth = 4
1034 };
1035 
1036 static struct qcom_icc_node slv_qhs_tcsr = {
1037 	.name = "slv_qhs_tcsr",
1038 	.id = SC8180X_SLAVE_TCSR,
1039 	.channels = 1,
1040 	.buswidth = 4
1041 };
1042 
1043 static struct qcom_icc_node slv_qhs_tlmm_east = {
1044 	.name = "slv_qhs_tlmm_east",
1045 	.id = SC8180X_SLAVE_TLMM_EAST,
1046 	.channels = 1,
1047 	.buswidth = 4
1048 };
1049 
1050 static struct qcom_icc_node slv_qhs_tlmm_south = {
1051 	.name = "slv_qhs_tlmm_south",
1052 	.id = SC8180X_SLAVE_TLMM_SOUTH,
1053 	.channels = 1,
1054 	.buswidth = 4
1055 };
1056 
1057 static struct qcom_icc_node slv_qhs_tlmm_west = {
1058 	.name = "slv_qhs_tlmm_west",
1059 	.id = SC8180X_SLAVE_TLMM_WEST,
1060 	.channels = 1,
1061 	.buswidth = 4
1062 };
1063 
1064 static struct qcom_icc_node slv_qhs_tsif = {
1065 	.name = "slv_qhs_tsif",
1066 	.id = SC8180X_SLAVE_TSIF,
1067 	.channels = 1,
1068 	.buswidth = 4
1069 };
1070 
1071 static struct qcom_icc_node slv_qhs_ufs_card_cfg = {
1072 	.name = "slv_qhs_ufs_card_cfg",
1073 	.id = SC8180X_SLAVE_UFS_CARD_CFG,
1074 	.channels = 1,
1075 	.buswidth = 4
1076 };
1077 
1078 static struct qcom_icc_node slv_qhs_ufs_mem0_cfg = {
1079 	.name = "slv_qhs_ufs_mem0_cfg",
1080 	.id = SC8180X_SLAVE_UFS_MEM_0_CFG,
1081 	.channels = 1,
1082 	.buswidth = 4
1083 };
1084 
1085 static struct qcom_icc_node slv_qhs_ufs_mem1_cfg = {
1086 	.name = "slv_qhs_ufs_mem1_cfg",
1087 	.id = SC8180X_SLAVE_UFS_MEM_1_CFG,
1088 	.channels = 1,
1089 	.buswidth = 4
1090 };
1091 
1092 static struct qcom_icc_node slv_qhs_usb3_0 = {
1093 	.name = "slv_qhs_usb3_0",
1094 	.id = SC8180X_SLAVE_USB3,
1095 	.channels = 1,
1096 	.buswidth = 4
1097 };
1098 
1099 static struct qcom_icc_node slv_qhs_usb3_1 = {
1100 	.name = "slv_qhs_usb3_1",
1101 	.id = SC8180X_SLAVE_USB3_1,
1102 	.channels = 1,
1103 	.buswidth = 4
1104 };
1105 
1106 static struct qcom_icc_node slv_qhs_usb3_2 = {
1107 	.name = "slv_qhs_usb3_2",
1108 	.id = SC8180X_SLAVE_USB3_2,
1109 	.channels = 1,
1110 	.buswidth = 4
1111 };
1112 
1113 static struct qcom_icc_node slv_qhs_venus_cfg = {
1114 	.name = "slv_qhs_venus_cfg",
1115 	.id = SC8180X_SLAVE_VENUS_CFG,
1116 	.channels = 1,
1117 	.buswidth = 4
1118 };
1119 
1120 static struct qcom_icc_node slv_qhs_vsense_ctrl_cfg = {
1121 	.name = "slv_qhs_vsense_ctrl_cfg",
1122 	.id = SC8180X_SLAVE_VSENSE_CTRL_CFG,
1123 	.channels = 1,
1124 	.buswidth = 4
1125 };
1126 
1127 static struct qcom_icc_node slv_srvc_cnoc = {
1128 	.name = "slv_srvc_cnoc",
1129 	.id = SC8180X_SLAVE_SERVICE_CNOC,
1130 	.channels = 1,
1131 	.buswidth = 4
1132 };
1133 
1134 static struct qcom_icc_node slv_qhs_gemnoc = {
1135 	.name = "slv_qhs_gemnoc",
1136 	.id = SC8180X_SLAVE_GEM_NOC_CFG,
1137 	.channels = 1,
1138 	.buswidth = 4,
1139 	.num_links = 1,
1140 	.links = { SC8180X_MASTER_GEM_NOC_CFG }
1141 };
1142 
1143 static struct qcom_icc_node slv_qhs_llcc = {
1144 	.name = "slv_qhs_llcc",
1145 	.id = SC8180X_SLAVE_LLCC_CFG,
1146 	.channels = 1,
1147 	.buswidth = 4
1148 };
1149 
1150 static struct qcom_icc_node slv_qhs_mdsp_ms_mpu_cfg = {
1151 	.name = "slv_qhs_mdsp_ms_mpu_cfg",
1152 	.id = SC8180X_SLAVE_MSS_PROC_MS_MPU_CFG,
1153 	.channels = 1,
1154 	.buswidth = 4
1155 };
1156 
1157 static struct qcom_icc_node slv_qns_ecc = {
1158 	.name = "slv_qns_ecc",
1159 	.id = SC8180X_SLAVE_ECC,
1160 	.channels = 1,
1161 	.buswidth = 32
1162 };
1163 
1164 static struct qcom_icc_node slv_qns_gem_noc_snoc = {
1165 	.name = "slv_qns_gem_noc_snoc",
1166 	.id = SC8180X_SLAVE_GEM_NOC_SNOC,
1167 	.channels = 1,
1168 	.buswidth = 8,
1169 	.num_links = 1,
1170 	.links = { SC8180X_MASTER_GEM_NOC_SNOC }
1171 };
1172 
1173 static struct qcom_icc_node slv_qns_llcc = {
1174 	.name = "slv_qns_llcc",
1175 	.id = SC8180X_SLAVE_LLCC,
1176 	.channels = 8,
1177 	.buswidth = 16,
1178 	.num_links = 1,
1179 	.links = { SC8180X_MASTER_LLCC }
1180 };
1181 
1182 static struct qcom_icc_node slv_srvc_gemnoc = {
1183 	.name = "slv_srvc_gemnoc",
1184 	.id = SC8180X_SLAVE_SERVICE_GEM_NOC,
1185 	.channels = 1,
1186 	.buswidth = 4
1187 };
1188 
1189 static struct qcom_icc_node slv_srvc_gemnoc1 = {
1190 	.name = "slv_srvc_gemnoc1",
1191 	.id = SC8180X_SLAVE_SERVICE_GEM_NOC_1,
1192 	.channels = 1,
1193 	.buswidth = 4
1194 };
1195 
1196 static struct qcom_icc_node slv_ebi = {
1197 	.name = "slv_ebi",
1198 	.id = SC8180X_SLAVE_EBI_CH0,
1199 	.channels = 8,
1200 	.buswidth = 4
1201 };
1202 
1203 static struct qcom_icc_node slv_qns2_mem_noc = {
1204 	.name = "slv_qns2_mem_noc",
1205 	.id = SC8180X_SLAVE_MNOC_SF_MEM_NOC,
1206 	.channels = 1,
1207 	.buswidth = 32,
1208 	.num_links = 1,
1209 	.links = { SC8180X_MASTER_MNOC_SF_MEM_NOC }
1210 };
1211 
1212 static struct qcom_icc_node slv_qns_mem_noc_hf = {
1213 	.name = "slv_qns_mem_noc_hf",
1214 	.id = SC8180X_SLAVE_MNOC_HF_MEM_NOC,
1215 	.channels = 2,
1216 	.buswidth = 32,
1217 	.num_links = 1,
1218 	.links = { SC8180X_MASTER_MNOC_HF_MEM_NOC }
1219 };
1220 
1221 static struct qcom_icc_node slv_srvc_mnoc = {
1222 	.name = "slv_srvc_mnoc",
1223 	.id = SC8180X_SLAVE_SERVICE_MNOC,
1224 	.channels = 1,
1225 	.buswidth = 4
1226 };
1227 
1228 static struct qcom_icc_node slv_qhs_apss = {
1229 	.name = "slv_qhs_apss",
1230 	.id = SC8180X_SLAVE_APPSS,
1231 	.channels = 1,
1232 	.buswidth = 8
1233 };
1234 
1235 static struct qcom_icc_node slv_qns_cnoc = {
1236 	.name = "slv_qns_cnoc",
1237 	.id = SC8180X_SNOC_CNOC_SLV,
1238 	.channels = 1,
1239 	.buswidth = 8,
1240 	.num_links = 1,
1241 	.links = { SC8180X_SNOC_CNOC_MAS }
1242 };
1243 
1244 static struct qcom_icc_node slv_qns_gemnoc_gc = {
1245 	.name = "slv_qns_gemnoc_gc",
1246 	.id = SC8180X_SLAVE_SNOC_GEM_NOC_GC,
1247 	.channels = 1,
1248 	.buswidth = 8,
1249 	.num_links = 1,
1250 	.links = { SC8180X_MASTER_SNOC_GC_MEM_NOC }
1251 };
1252 
1253 static struct qcom_icc_node slv_qns_gemnoc_sf = {
1254 	.name = "slv_qns_gemnoc_sf",
1255 	.id = SC8180X_SLAVE_SNOC_GEM_NOC_SF,
1256 	.channels = 1,
1257 	.buswidth = 32,
1258 	.num_links = 1,
1259 	.links = { SC8180X_MASTER_SNOC_SF_MEM_NOC }
1260 };
1261 
1262 static struct qcom_icc_node slv_qxs_imem = {
1263 	.name = "slv_qxs_imem",
1264 	.id = SC8180X_SLAVE_OCIMEM,
1265 	.channels = 1,
1266 	.buswidth = 8
1267 };
1268 
1269 static struct qcom_icc_node slv_qxs_pimem = {
1270 	.name = "slv_qxs_pimem",
1271 	.id = SC8180X_SLAVE_PIMEM,
1272 	.channels = 1,
1273 	.buswidth = 8
1274 };
1275 
1276 static struct qcom_icc_node slv_srvc_snoc = {
1277 	.name = "slv_srvc_snoc",
1278 	.id = SC8180X_SLAVE_SERVICE_SNOC,
1279 	.channels = 1,
1280 	.buswidth = 4
1281 };
1282 
1283 static struct qcom_icc_node slv_xs_pcie_0 = {
1284 	.name = "slv_xs_pcie_0",
1285 	.id = SC8180X_SLAVE_PCIE_0,
1286 	.channels = 1,
1287 	.buswidth = 8
1288 };
1289 
1290 static struct qcom_icc_node slv_xs_pcie_1 = {
1291 	.name = "slv_xs_pcie_1",
1292 	.id = SC8180X_SLAVE_PCIE_1,
1293 	.channels = 1,
1294 	.buswidth = 8
1295 };
1296 
1297 static struct qcom_icc_node slv_xs_pcie_2 = {
1298 	.name = "slv_xs_pcie_2",
1299 	.id = SC8180X_SLAVE_PCIE_2,
1300 	.channels = 1,
1301 	.buswidth = 8
1302 };
1303 
1304 static struct qcom_icc_node slv_xs_pcie_3 = {
1305 	.name = "slv_xs_pcie_3",
1306 	.id = SC8180X_SLAVE_PCIE_3,
1307 	.channels = 1,
1308 	.buswidth = 8
1309 };
1310 
1311 static struct qcom_icc_node slv_xs_qdss_stm = {
1312 	.name = "slv_xs_qdss_stm",
1313 	.id = SC8180X_SLAVE_QDSS_STM,
1314 	.channels = 1,
1315 	.buswidth = 4
1316 };
1317 
1318 static struct qcom_icc_node slv_xs_sys_tcu_cfg = {
1319 	.name = "slv_xs_sys_tcu_cfg",
1320 	.id = SC8180X_SLAVE_TCU,
1321 	.channels = 1,
1322 	.buswidth = 8
1323 };
1324 
1325 static struct qcom_icc_node slv_qup_core_0 = {
1326 	.name = "slv_qup_core_0",
1327 	.id = SC8180X_SLAVE_QUP_CORE_0,
1328 	.channels = 1,
1329 	.buswidth = 4
1330 };
1331 
1332 static struct qcom_icc_node slv_qup_core_1 = {
1333 	.name = "slv_qup_core_1",
1334 	.id = SC8180X_SLAVE_QUP_CORE_1,
1335 	.channels = 1,
1336 	.buswidth = 4
1337 };
1338 
1339 static struct qcom_icc_node slv_qup_core_2 = {
1340 	.name = "slv_qup_core_2",
1341 	.id = SC8180X_SLAVE_QUP_CORE_2,
1342 	.channels = 1,
1343 	.buswidth = 4
1344 };
1345 
1346 static struct qcom_icc_bcm bcm_acv = {
1347 	.name = "ACV",
1348 	.num_nodes = 1,
1349 	.nodes = { &slv_ebi }
1350 };
1351 
1352 static struct qcom_icc_bcm bcm_mc0 = {
1353 	.name = "MC0",
1354 	.keepalive = true,
1355 	.num_nodes = 1,
1356 	.nodes = { &slv_ebi }
1357 };
1358 
1359 static struct qcom_icc_bcm bcm_sh0 = {
1360 	.name = "SH0",
1361 	.keepalive = true,
1362 	.num_nodes = 1,
1363 	.nodes = { &slv_qns_llcc }
1364 };
1365 
1366 static struct qcom_icc_bcm bcm_mm0 = {
1367 	.name = "MM0",
1368 	.num_nodes = 1,
1369 	.nodes = { &slv_qns_mem_noc_hf }
1370 };
1371 
1372 static struct qcom_icc_bcm bcm_co0 = {
1373 	.name = "CO0",
1374 	.num_nodes = 1,
1375 	.nodes = { &slv_qns_cdsp_mem_noc }
1376 };
1377 
1378 static struct qcom_icc_bcm bcm_ce0 = {
1379 	.name = "CE0",
1380 	.num_nodes = 1,
1381 	.nodes = { &mas_qxm_crypto }
1382 };
1383 
1384 static struct qcom_icc_bcm bcm_cn0 = {
1385 	.name = "CN0",
1386 	.keepalive = true,
1387 	.num_nodes = 57,
1388 	.nodes = { &mas_qnm_snoc,
1389 		   &slv_qhs_a1_noc_cfg,
1390 		   &slv_qhs_a2_noc_cfg,
1391 		   &slv_qhs_ahb2phy_refgen_center,
1392 		   &slv_qhs_ahb2phy_refgen_east,
1393 		   &slv_qhs_ahb2phy_refgen_west,
1394 		   &slv_qhs_ahb2phy_south,
1395 		   &slv_qhs_aop,
1396 		   &slv_qhs_aoss,
1397 		   &slv_qhs_camera_cfg,
1398 		   &slv_qhs_clk_ctl,
1399 		   &slv_qhs_compute_dsp,
1400 		   &slv_qhs_cpr_cx,
1401 		   &slv_qhs_cpr_mmcx,
1402 		   &slv_qhs_cpr_mx,
1403 		   &slv_qhs_crypto0_cfg,
1404 		   &slv_qhs_ddrss_cfg,
1405 		   &slv_qhs_display_cfg,
1406 		   &slv_qhs_emac_cfg,
1407 		   &slv_qhs_glm,
1408 		   &slv_qhs_gpuss_cfg,
1409 		   &slv_qhs_imem_cfg,
1410 		   &slv_qhs_ipa,
1411 		   &slv_qhs_mnoc_cfg,
1412 		   &slv_qhs_npu_cfg,
1413 		   &slv_qhs_pcie0_cfg,
1414 		   &slv_qhs_pcie1_cfg,
1415 		   &slv_qhs_pcie2_cfg,
1416 		   &slv_qhs_pcie3_cfg,
1417 		   &slv_qhs_pdm,
1418 		   &slv_qhs_pimem_cfg,
1419 		   &slv_qhs_prng,
1420 		   &slv_qhs_qdss_cfg,
1421 		   &slv_qhs_qspi_0,
1422 		   &slv_qhs_qspi_1,
1423 		   &slv_qhs_qupv3_east0,
1424 		   &slv_qhs_qupv3_east1,
1425 		   &slv_qhs_qupv3_west,
1426 		   &slv_qhs_sdc2,
1427 		   &slv_qhs_sdc4,
1428 		   &slv_qhs_security,
1429 		   &slv_qhs_snoc_cfg,
1430 		   &slv_qhs_spss_cfg,
1431 		   &slv_qhs_tcsr,
1432 		   &slv_qhs_tlmm_east,
1433 		   &slv_qhs_tlmm_south,
1434 		   &slv_qhs_tlmm_west,
1435 		   &slv_qhs_tsif,
1436 		   &slv_qhs_ufs_card_cfg,
1437 		   &slv_qhs_ufs_mem0_cfg,
1438 		   &slv_qhs_ufs_mem1_cfg,
1439 		   &slv_qhs_usb3_0,
1440 		   &slv_qhs_usb3_1,
1441 		   &slv_qhs_usb3_2,
1442 		   &slv_qhs_venus_cfg,
1443 		   &slv_qhs_vsense_ctrl_cfg,
1444 		   &slv_srvc_cnoc }
1445 };
1446 
1447 static struct qcom_icc_bcm bcm_mm1 = {
1448 	.name = "MM1",
1449 	.num_nodes = 7,
1450 	.nodes = { &mas_qxm_camnoc_hf0_uncomp,
1451 		   &mas_qxm_camnoc_hf1_uncomp,
1452 		   &mas_qxm_camnoc_sf_uncomp,
1453 		   &mas_qxm_camnoc_hf0,
1454 		   &mas_qxm_camnoc_hf1,
1455 		   &mas_qxm_mdp0,
1456 		   &mas_qxm_mdp1 }
1457 };
1458 
1459 static struct qcom_icc_bcm bcm_qup0 = {
1460 	.name = "QUP0",
1461 	.num_nodes = 3,
1462 	.nodes = { &mas_qup_core_0,
1463 		   &mas_qup_core_1,
1464 		   &mas_qup_core_2 }
1465 };
1466 
1467 static struct qcom_icc_bcm bcm_sh2 = {
1468 	.name = "SH2",
1469 	.num_nodes = 1,
1470 	.nodes = { &slv_qns_gem_noc_snoc }
1471 };
1472 
1473 static struct qcom_icc_bcm bcm_mm2 = {
1474 	.name = "MM2",
1475 	.num_nodes = 6,
1476 	.nodes = { &mas_qxm_camnoc_sf,
1477 		   &mas_qxm_rot,
1478 		   &mas_qxm_venus0,
1479 		   &mas_qxm_venus1,
1480 		   &mas_qxm_venus_arm9,
1481 		   &slv_qns2_mem_noc }
1482 };
1483 
1484 static struct qcom_icc_bcm bcm_sh3 = {
1485 	.name = "SH3",
1486 	.keepalive = true,
1487 	.num_nodes = 1,
1488 	.nodes = { &mas_acm_apps }
1489 };
1490 
1491 static struct qcom_icc_bcm bcm_sn0 = {
1492 	.name = "SN0",
1493 	.nodes = { &slv_qns_gemnoc_sf }
1494 };
1495 
1496 static struct qcom_icc_bcm bcm_sn1 = {
1497 	.name = "SN1",
1498 	.nodes = { &slv_qxs_imem }
1499 };
1500 
1501 static struct qcom_icc_bcm bcm_sn2 = {
1502 	.name = "SN2",
1503 	.keepalive = true,
1504 	.nodes = { &slv_qns_gemnoc_gc }
1505 };
1506 
1507 static struct qcom_icc_bcm bcm_co2 = {
1508 	.name = "CO2",
1509 	.nodes = { &mas_qnm_npu }
1510 };
1511 
1512 static struct qcom_icc_bcm bcm_sn3 = {
1513 	.name = "SN3",
1514 	.keepalive = true,
1515 	.nodes = { &slv_srvc_aggre1_noc,
1516 		  &slv_qns_cnoc }
1517 };
1518 
1519 static struct qcom_icc_bcm bcm_sn4 = {
1520 	.name = "SN4",
1521 	.nodes = { &slv_qxs_pimem }
1522 };
1523 
1524 static struct qcom_icc_bcm bcm_sn8 = {
1525 	.name = "SN8",
1526 	.num_nodes = 4,
1527 	.nodes = { &slv_xs_pcie_0,
1528 		   &slv_xs_pcie_1,
1529 		   &slv_xs_pcie_2,
1530 		   &slv_xs_pcie_3 }
1531 };
1532 
1533 static struct qcom_icc_bcm bcm_sn9 = {
1534 	.name = "SN9",
1535 	.num_nodes = 1,
1536 	.nodes = { &mas_qnm_aggre1_noc }
1537 };
1538 
1539 static struct qcom_icc_bcm bcm_sn11 = {
1540 	.name = "SN11",
1541 	.num_nodes = 1,
1542 	.nodes = { &mas_qnm_aggre2_noc }
1543 };
1544 
1545 static struct qcom_icc_bcm bcm_sn14 = {
1546 	.name = "SN14",
1547 	.num_nodes = 1,
1548 	.nodes = { &slv_qns_pcie_mem_noc }
1549 };
1550 
1551 static struct qcom_icc_bcm bcm_sn15 = {
1552 	.name = "SN15",
1553 	.keepalive = true,
1554 	.num_nodes = 1,
1555 	.nodes = { &mas_qnm_gemnoc }
1556 };
1557 
1558 static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
1559 	&bcm_sn3,
1560 	&bcm_ce0,
1561 };
1562 
1563 static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
1564 	&bcm_sn14,
1565 	&bcm_ce0,
1566 };
1567 
1568 static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
1569 	&bcm_mm1,
1570 };
1571 
1572 static struct qcom_icc_bcm * const compute_noc_bcms[] = {
1573 	&bcm_co0,
1574 	&bcm_co2,
1575 };
1576 
1577 static struct qcom_icc_bcm * const config_noc_bcms[] = {
1578 	&bcm_cn0,
1579 };
1580 
1581 static struct qcom_icc_bcm * const gem_noc_bcms[] = {
1582 	&bcm_sh0,
1583 	&bcm_sh2,
1584 	&bcm_sh3,
1585 };
1586 
1587 static struct qcom_icc_bcm * const mc_virt_bcms[] = {
1588 	&bcm_mc0,
1589 	&bcm_acv,
1590 };
1591 
1592 static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
1593 	&bcm_mm0,
1594 	&bcm_mm1,
1595 	&bcm_mm2,
1596 };
1597 
1598 static struct qcom_icc_bcm * const system_noc_bcms[] = {
1599 	&bcm_sn0,
1600 	&bcm_sn1,
1601 	&bcm_sn2,
1602 	&bcm_sn3,
1603 	&bcm_sn4,
1604 	&bcm_sn8,
1605 	&bcm_sn9,
1606 	&bcm_sn11,
1607 	&bcm_sn15,
1608 };
1609 
1610 static struct qcom_icc_node * const aggre1_noc_nodes[] = {
1611 	[MASTER_A1NOC_CFG] = &mas_qhm_a1noc_cfg,
1612 	[MASTER_UFS_CARD] = &mas_xm_ufs_card,
1613 	[MASTER_UFS_GEN4] = &mas_xm_ufs_g4,
1614 	[MASTER_UFS_MEM] = &mas_xm_ufs_mem,
1615 	[MASTER_USB3] = &mas_xm_usb3_0,
1616 	[MASTER_USB3_1] = &mas_xm_usb3_1,
1617 	[MASTER_USB3_2] = &mas_xm_usb3_2,
1618 	[A1NOC_SNOC_SLV] = &slv_qns_a1noc_snoc,
1619 	[SLAVE_SERVICE_A1NOC] = &slv_srvc_aggre1_noc,
1620 };
1621 
1622 static struct qcom_icc_node * const aggre2_noc_nodes[] = {
1623 	[MASTER_A2NOC_CFG] = &mas_qhm_a2noc_cfg,
1624 	[MASTER_QDSS_BAM] = &mas_qhm_qdss_bam,
1625 	[MASTER_QSPI_0] = &mas_qhm_qspi,
1626 	[MASTER_QSPI_1] = &mas_qhm_qspi1,
1627 	[MASTER_QUP_0] = &mas_qhm_qup0,
1628 	[MASTER_QUP_1] = &mas_qhm_qup1,
1629 	[MASTER_QUP_2] = &mas_qhm_qup2,
1630 	[MASTER_SENSORS_AHB] = &mas_qhm_sensorss_ahb,
1631 	[MASTER_CRYPTO_CORE_0] = &mas_qxm_crypto,
1632 	[MASTER_IPA] = &mas_qxm_ipa,
1633 	[MASTER_EMAC] = &mas_xm_emac,
1634 	[MASTER_PCIE] = &mas_xm_pcie3_0,
1635 	[MASTER_PCIE_1] = &mas_xm_pcie3_1,
1636 	[MASTER_PCIE_2] = &mas_xm_pcie3_2,
1637 	[MASTER_PCIE_3] = &mas_xm_pcie3_3,
1638 	[MASTER_QDSS_ETR] = &mas_xm_qdss_etr,
1639 	[MASTER_SDCC_2] = &mas_xm_sdc2,
1640 	[MASTER_SDCC_4] = &mas_xm_sdc4,
1641 	[A2NOC_SNOC_SLV] = &slv_qns_a2noc_snoc,
1642 	[SLAVE_ANOC_PCIE_GEM_NOC] = &slv_qns_pcie_mem_noc,
1643 	[SLAVE_SERVICE_A2NOC] = &slv_srvc_aggre2_noc,
1644 };
1645 
1646 static struct qcom_icc_node * const camnoc_virt_nodes[] = {
1647 	[MASTER_CAMNOC_HF0_UNCOMP] = &mas_qxm_camnoc_hf0_uncomp,
1648 	[MASTER_CAMNOC_HF1_UNCOMP] = &mas_qxm_camnoc_hf1_uncomp,
1649 	[MASTER_CAMNOC_SF_UNCOMP] = &mas_qxm_camnoc_sf_uncomp,
1650 	[SLAVE_CAMNOC_UNCOMP] = &slv_qns_camnoc_uncomp,
1651 };
1652 
1653 static struct qcom_icc_node * const compute_noc_nodes[] = {
1654 	[MASTER_NPU] = &mas_qnm_npu,
1655 	[SLAVE_CDSP_MEM_NOC] = &slv_qns_cdsp_mem_noc,
1656 };
1657 
1658 static struct qcom_icc_node * const config_noc_nodes[] = {
1659 	[SNOC_CNOC_MAS] = &mas_qnm_snoc,
1660 	[SLAVE_A1NOC_CFG] = &slv_qhs_a1_noc_cfg,
1661 	[SLAVE_A2NOC_CFG] = &slv_qhs_a2_noc_cfg,
1662 	[SLAVE_AHB2PHY_CENTER] = &slv_qhs_ahb2phy_refgen_center,
1663 	[SLAVE_AHB2PHY_EAST] = &slv_qhs_ahb2phy_refgen_east,
1664 	[SLAVE_AHB2PHY_WEST] = &slv_qhs_ahb2phy_refgen_west,
1665 	[SLAVE_AHB2PHY_SOUTH] = &slv_qhs_ahb2phy_south,
1666 	[SLAVE_AOP] = &slv_qhs_aop,
1667 	[SLAVE_AOSS] = &slv_qhs_aoss,
1668 	[SLAVE_CAMERA_CFG] = &slv_qhs_camera_cfg,
1669 	[SLAVE_CLK_CTL] = &slv_qhs_clk_ctl,
1670 	[SLAVE_CDSP_CFG] = &slv_qhs_compute_dsp,
1671 	[SLAVE_RBCPR_CX_CFG] = &slv_qhs_cpr_cx,
1672 	[SLAVE_RBCPR_MMCX_CFG] = &slv_qhs_cpr_mmcx,
1673 	[SLAVE_RBCPR_MX_CFG] = &slv_qhs_cpr_mx,
1674 	[SLAVE_CRYPTO_0_CFG] = &slv_qhs_crypto0_cfg,
1675 	[SLAVE_CNOC_DDRSS] = &slv_qhs_ddrss_cfg,
1676 	[SLAVE_DISPLAY_CFG] = &slv_qhs_display_cfg,
1677 	[SLAVE_EMAC_CFG] = &slv_qhs_emac_cfg,
1678 	[SLAVE_GLM] = &slv_qhs_glm,
1679 	[SLAVE_GRAPHICS_3D_CFG] = &slv_qhs_gpuss_cfg,
1680 	[SLAVE_IMEM_CFG] = &slv_qhs_imem_cfg,
1681 	[SLAVE_IPA_CFG] = &slv_qhs_ipa,
1682 	[SLAVE_CNOC_MNOC_CFG] = &slv_qhs_mnoc_cfg,
1683 	[SLAVE_NPU_CFG] = &slv_qhs_npu_cfg,
1684 	[SLAVE_PCIE_0_CFG] = &slv_qhs_pcie0_cfg,
1685 	[SLAVE_PCIE_1_CFG] = &slv_qhs_pcie1_cfg,
1686 	[SLAVE_PCIE_2_CFG] = &slv_qhs_pcie2_cfg,
1687 	[SLAVE_PCIE_3_CFG] = &slv_qhs_pcie3_cfg,
1688 	[SLAVE_PDM] = &slv_qhs_pdm,
1689 	[SLAVE_PIMEM_CFG] = &slv_qhs_pimem_cfg,
1690 	[SLAVE_PRNG] = &slv_qhs_prng,
1691 	[SLAVE_QDSS_CFG] = &slv_qhs_qdss_cfg,
1692 	[SLAVE_QSPI_0] = &slv_qhs_qspi_0,
1693 	[SLAVE_QSPI_1] = &slv_qhs_qspi_1,
1694 	[SLAVE_QUP_1] = &slv_qhs_qupv3_east0,
1695 	[SLAVE_QUP_2] = &slv_qhs_qupv3_east1,
1696 	[SLAVE_QUP_0] = &slv_qhs_qupv3_west,
1697 	[SLAVE_SDCC_2] = &slv_qhs_sdc2,
1698 	[SLAVE_SDCC_4] = &slv_qhs_sdc4,
1699 	[SLAVE_SECURITY] = &slv_qhs_security,
1700 	[SLAVE_SNOC_CFG] = &slv_qhs_snoc_cfg,
1701 	[SLAVE_SPSS_CFG] = &slv_qhs_spss_cfg,
1702 	[SLAVE_TCSR] = &slv_qhs_tcsr,
1703 	[SLAVE_TLMM_EAST] = &slv_qhs_tlmm_east,
1704 	[SLAVE_TLMM_SOUTH] = &slv_qhs_tlmm_south,
1705 	[SLAVE_TLMM_WEST] = &slv_qhs_tlmm_west,
1706 	[SLAVE_TSIF] = &slv_qhs_tsif,
1707 	[SLAVE_UFS_CARD_CFG] = &slv_qhs_ufs_card_cfg,
1708 	[SLAVE_UFS_MEM_0_CFG] = &slv_qhs_ufs_mem0_cfg,
1709 	[SLAVE_UFS_MEM_1_CFG] = &slv_qhs_ufs_mem1_cfg,
1710 	[SLAVE_USB3] = &slv_qhs_usb3_0,
1711 	[SLAVE_USB3_1] = &slv_qhs_usb3_1,
1712 	[SLAVE_USB3_2] = &slv_qhs_usb3_2,
1713 	[SLAVE_VENUS_CFG] = &slv_qhs_venus_cfg,
1714 	[SLAVE_VSENSE_CTRL_CFG] = &slv_qhs_vsense_ctrl_cfg,
1715 	[SLAVE_SERVICE_CNOC] = &slv_srvc_cnoc,
1716 };
1717 
1718 static struct qcom_icc_node * const dc_noc_nodes[] = {
1719 	[MASTER_CNOC_DC_NOC] = &mas_qhm_cnoc_dc_noc,
1720 	[SLAVE_GEM_NOC_CFG] = &slv_qhs_gemnoc,
1721 	[SLAVE_LLCC_CFG] = &slv_qhs_llcc,
1722 };
1723 
1724 static struct qcom_icc_node * const gem_noc_nodes[] = {
1725 	[MASTER_AMPSS_M0] = &mas_acm_apps,
1726 	[MASTER_GPU_TCU] = &mas_acm_gpu_tcu,
1727 	[MASTER_SYS_TCU] = &mas_acm_sys_tcu,
1728 	[MASTER_GEM_NOC_CFG] = &mas_qhm_gemnoc_cfg,
1729 	[MASTER_COMPUTE_NOC] = &mas_qnm_cmpnoc,
1730 	[MASTER_GRAPHICS_3D] = &mas_qnm_gpu,
1731 	[MASTER_MNOC_HF_MEM_NOC] = &mas_qnm_mnoc_hf,
1732 	[MASTER_MNOC_SF_MEM_NOC] = &mas_qnm_mnoc_sf,
1733 	[MASTER_GEM_NOC_PCIE_SNOC] = &mas_qnm_pcie,
1734 	[MASTER_SNOC_GC_MEM_NOC] = &mas_qnm_snoc_gc,
1735 	[MASTER_SNOC_SF_MEM_NOC] = &mas_qnm_snoc_sf,
1736 	[MASTER_ECC] = &mas_qxm_ecc,
1737 	[SLAVE_MSS_PROC_MS_MPU_CFG] = &slv_qhs_mdsp_ms_mpu_cfg,
1738 	[SLAVE_ECC] = &slv_qns_ecc,
1739 	[SLAVE_GEM_NOC_SNOC] = &slv_qns_gem_noc_snoc,
1740 	[SLAVE_LLCC] = &slv_qns_llcc,
1741 	[SLAVE_SERVICE_GEM_NOC] = &slv_srvc_gemnoc,
1742 	[SLAVE_SERVICE_GEM_NOC_1] = &slv_srvc_gemnoc1,
1743 };
1744 
1745 static struct qcom_icc_node * const mc_virt_nodes[] = {
1746 	[MASTER_LLCC] = &mas_llcc_mc,
1747 	[SLAVE_EBI_CH0] = &slv_ebi,
1748 };
1749 
1750 static struct qcom_icc_node * const mmss_noc_nodes[] = {
1751 	[MASTER_CNOC_MNOC_CFG] = &mas_qhm_mnoc_cfg,
1752 	[MASTER_CAMNOC_HF0] = &mas_qxm_camnoc_hf0,
1753 	[MASTER_CAMNOC_HF1] = &mas_qxm_camnoc_hf1,
1754 	[MASTER_CAMNOC_SF] = &mas_qxm_camnoc_sf,
1755 	[MASTER_MDP_PORT0] = &mas_qxm_mdp0,
1756 	[MASTER_MDP_PORT1] = &mas_qxm_mdp1,
1757 	[MASTER_ROTATOR] = &mas_qxm_rot,
1758 	[MASTER_VIDEO_P0] = &mas_qxm_venus0,
1759 	[MASTER_VIDEO_P1] = &mas_qxm_venus1,
1760 	[MASTER_VIDEO_PROC] = &mas_qxm_venus_arm9,
1761 	[SLAVE_MNOC_SF_MEM_NOC] = &slv_qns2_mem_noc,
1762 	[SLAVE_MNOC_HF_MEM_NOC] = &slv_qns_mem_noc_hf,
1763 	[SLAVE_SERVICE_MNOC] = &slv_srvc_mnoc,
1764 };
1765 
1766 static struct qcom_icc_node * const system_noc_nodes[] = {
1767 	[MASTER_SNOC_CFG] = &mas_qhm_snoc_cfg,
1768 	[A1NOC_SNOC_MAS] = &mas_qnm_aggre1_noc,
1769 	[A2NOC_SNOC_MAS] = &mas_qnm_aggre2_noc,
1770 	[MASTER_GEM_NOC_SNOC] = &mas_qnm_gemnoc,
1771 	[MASTER_PIMEM] = &mas_qxm_pimem,
1772 	[MASTER_GIC] = &mas_xm_gic,
1773 	[SLAVE_APPSS] = &slv_qhs_apss,
1774 	[SNOC_CNOC_SLV] = &slv_qns_cnoc,
1775 	[SLAVE_SNOC_GEM_NOC_GC] = &slv_qns_gemnoc_gc,
1776 	[SLAVE_SNOC_GEM_NOC_SF] = &slv_qns_gemnoc_sf,
1777 	[SLAVE_OCIMEM] = &slv_qxs_imem,
1778 	[SLAVE_PIMEM] = &slv_qxs_pimem,
1779 	[SLAVE_SERVICE_SNOC] = &slv_srvc_snoc,
1780 	[SLAVE_QDSS_STM] = &slv_xs_qdss_stm,
1781 	[SLAVE_TCU] = &slv_xs_sys_tcu_cfg,
1782 };
1783 
1784 static const struct qcom_icc_desc sc8180x_aggre1_noc = {
1785 	.nodes = aggre1_noc_nodes,
1786 	.num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
1787 	.bcms = aggre1_noc_bcms,
1788 	.num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
1789 };
1790 
1791 static const struct qcom_icc_desc sc8180x_aggre2_noc = {
1792 	.nodes = aggre2_noc_nodes,
1793 	.num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
1794 	.bcms = aggre2_noc_bcms,
1795 	.num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
1796 };
1797 
1798 static const struct qcom_icc_desc sc8180x_camnoc_virt = {
1799 	.nodes = camnoc_virt_nodes,
1800 	.num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
1801 	.bcms = camnoc_virt_bcms,
1802 	.num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
1803 };
1804 
1805 static const struct qcom_icc_desc sc8180x_compute_noc = {
1806 	.nodes = compute_noc_nodes,
1807 	.num_nodes = ARRAY_SIZE(compute_noc_nodes),
1808 	.bcms = compute_noc_bcms,
1809 	.num_bcms = ARRAY_SIZE(compute_noc_bcms),
1810 };
1811 
1812 static const struct qcom_icc_desc sc8180x_config_noc = {
1813 	.nodes = config_noc_nodes,
1814 	.num_nodes = ARRAY_SIZE(config_noc_nodes),
1815 	.bcms = config_noc_bcms,
1816 	.num_bcms = ARRAY_SIZE(config_noc_bcms),
1817 };
1818 
1819 static const struct qcom_icc_desc sc8180x_dc_noc = {
1820 	.nodes = dc_noc_nodes,
1821 	.num_nodes = ARRAY_SIZE(dc_noc_nodes),
1822 };
1823 
1824 static const struct qcom_icc_desc sc8180x_gem_noc  = {
1825 	.nodes = gem_noc_nodes,
1826 	.num_nodes = ARRAY_SIZE(gem_noc_nodes),
1827 	.bcms = gem_noc_bcms,
1828 	.num_bcms = ARRAY_SIZE(gem_noc_bcms),
1829 };
1830 
1831 static const struct qcom_icc_desc sc8180x_mc_virt  = {
1832 	.nodes = mc_virt_nodes,
1833 	.num_nodes = ARRAY_SIZE(mc_virt_nodes),
1834 	.bcms = mc_virt_bcms,
1835 	.num_bcms = ARRAY_SIZE(mc_virt_bcms),
1836 };
1837 
1838 static const struct qcom_icc_desc sc8180x_mmss_noc  = {
1839 	.nodes = mmss_noc_nodes,
1840 	.num_nodes = ARRAY_SIZE(mmss_noc_nodes),
1841 	.bcms = mmss_noc_bcms,
1842 	.num_bcms = ARRAY_SIZE(mmss_noc_bcms),
1843 };
1844 
1845 static const struct qcom_icc_desc sc8180x_system_noc  = {
1846 	.nodes = system_noc_nodes,
1847 	.num_nodes = ARRAY_SIZE(system_noc_nodes),
1848 	.bcms = system_noc_bcms,
1849 	.num_bcms = ARRAY_SIZE(system_noc_bcms),
1850 };
1851 
1852 static struct qcom_icc_bcm * const qup_virt_bcms[] = {
1853 	&bcm_qup0,
1854 };
1855 
1856 static struct qcom_icc_node * const qup_virt_nodes[] = {
1857 	[MASTER_QUP_CORE_0] = &mas_qup_core_0,
1858 	[MASTER_QUP_CORE_1] = &mas_qup_core_1,
1859 	[MASTER_QUP_CORE_2] = &mas_qup_core_2,
1860 	[SLAVE_QUP_CORE_0] = &slv_qup_core_0,
1861 	[SLAVE_QUP_CORE_1] = &slv_qup_core_1,
1862 	[SLAVE_QUP_CORE_2] = &slv_qup_core_2,
1863 };
1864 
1865 static const struct qcom_icc_desc sc8180x_qup_virt = {
1866 	.nodes = qup_virt_nodes,
1867 	.num_nodes = ARRAY_SIZE(qup_virt_nodes),
1868 	.bcms = qup_virt_bcms,
1869 	.num_bcms = ARRAY_SIZE(qup_virt_bcms),
1870 };
1871 
1872 static const struct of_device_id qnoc_of_match[] = {
1873 	{ .compatible = "qcom,sc8180x-aggre1-noc", .data = &sc8180x_aggre1_noc },
1874 	{ .compatible = "qcom,sc8180x-aggre2-noc", .data = &sc8180x_aggre2_noc },
1875 	{ .compatible = "qcom,sc8180x-camnoc-virt", .data = &sc8180x_camnoc_virt },
1876 	{ .compatible = "qcom,sc8180x-compute-noc", .data = &sc8180x_compute_noc, },
1877 	{ .compatible = "qcom,sc8180x-config-noc", .data = &sc8180x_config_noc },
1878 	{ .compatible = "qcom,sc8180x-dc-noc", .data = &sc8180x_dc_noc },
1879 	{ .compatible = "qcom,sc8180x-gem-noc", .data = &sc8180x_gem_noc },
1880 	{ .compatible = "qcom,sc8180x-mc-virt", .data = &sc8180x_mc_virt },
1881 	{ .compatible = "qcom,sc8180x-mmss-noc", .data = &sc8180x_mmss_noc },
1882 	{ .compatible = "qcom,sc8180x-qup-virt", .data = &sc8180x_qup_virt },
1883 	{ .compatible = "qcom,sc8180x-system-noc", .data = &sc8180x_system_noc },
1884 	{ }
1885 };
1886 MODULE_DEVICE_TABLE(of, qnoc_of_match);
1887 
1888 static struct platform_driver qnoc_driver = {
1889 	.probe = qcom_icc_rpmh_probe,
1890 	.remove = qcom_icc_rpmh_remove,
1891 	.driver = {
1892 		.name = "qnoc-sc8180x",
1893 		.of_match_table = qnoc_of_match,
1894 		.sync_state = icc_sync_state,
1895 	},
1896 };
1897 module_platform_driver(qnoc_driver);
1898 
1899 MODULE_DESCRIPTION("Qualcomm sc8180x NoC driver");
1900 MODULE_LICENSE("GPL v2");
1901