x1e80100.c 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. * Copyright (c) 2023, Linaro Limited
  5. *
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/module.h>
  11. #include <linux/of_platform.h>
  12. #include <dt-bindings/interconnect/qcom,x1e80100-rpmh.h>
  13. #include "bcm-voter.h"
  14. #include "icc-common.h"
  15. #include "icc-rpmh.h"
  16. static struct qcom_icc_node qhm_qspi;
  17. static struct qcom_icc_node qhm_qup1;
  18. static struct qcom_icc_node xm_sdc4;
  19. static struct qcom_icc_node xm_ufs_mem;
  20. static struct qcom_icc_node qhm_qup0;
  21. static struct qcom_icc_node qhm_qup2;
  22. static struct qcom_icc_node qxm_crypto;
  23. static struct qcom_icc_node qxm_sp;
  24. static struct qcom_icc_node xm_qdss_etr_0;
  25. static struct qcom_icc_node xm_qdss_etr_1;
  26. static struct qcom_icc_node xm_sdc2;
  27. static struct qcom_icc_node qup0_core_master;
  28. static struct qcom_icc_node qup1_core_master;
  29. static struct qcom_icc_node qup2_core_master;
  30. static struct qcom_icc_node qsm_cfg;
  31. static struct qcom_icc_node qnm_gemnoc_cnoc;
  32. static struct qcom_icc_node qnm_gemnoc_pcie;
  33. static struct qcom_icc_node alm_gpu_tcu;
  34. static struct qcom_icc_node alm_pcie_tcu;
  35. static struct qcom_icc_node alm_sys_tcu;
  36. static struct qcom_icc_node chm_apps;
  37. static struct qcom_icc_node qnm_gpu;
  38. static struct qcom_icc_node qnm_lpass;
  39. static struct qcom_icc_node qnm_mnoc_hf;
  40. static struct qcom_icc_node qnm_mnoc_sf;
  41. static struct qcom_icc_node qnm_nsp_noc;
  42. static struct qcom_icc_node qnm_pcie;
  43. static struct qcom_icc_node qnm_snoc_sf;
  44. static struct qcom_icc_node xm_gic;
  45. static struct qcom_icc_node qnm_lpiaon_noc;
  46. static struct qcom_icc_node qnm_lpass_lpinoc;
  47. static struct qcom_icc_node qxm_lpinoc_dsp_axim;
  48. static struct qcom_icc_node llcc_mc;
  49. static struct qcom_icc_node qnm_av1_enc;
  50. static struct qcom_icc_node qnm_camnoc_hf;
  51. static struct qcom_icc_node qnm_camnoc_icp;
  52. static struct qcom_icc_node qnm_camnoc_sf;
  53. static struct qcom_icc_node qnm_eva;
  54. static struct qcom_icc_node qnm_mdp;
  55. static struct qcom_icc_node qnm_video;
  56. static struct qcom_icc_node qnm_video_cv_cpu;
  57. static struct qcom_icc_node qnm_video_v_cpu;
  58. static struct qcom_icc_node qsm_mnoc_cfg;
  59. static struct qcom_icc_node qxm_nsp;
  60. static struct qcom_icc_node qnm_pcie_north_gem_noc;
  61. static struct qcom_icc_node qnm_pcie_south_gem_noc;
  62. static struct qcom_icc_node xm_pcie_3;
  63. static struct qcom_icc_node xm_pcie_4;
  64. static struct qcom_icc_node xm_pcie_5;
  65. static struct qcom_icc_node xm_pcie_0;
  66. static struct qcom_icc_node xm_pcie_1;
  67. static struct qcom_icc_node xm_pcie_2;
  68. static struct qcom_icc_node xm_pcie_6a;
  69. static struct qcom_icc_node xm_pcie_6b;
  70. static struct qcom_icc_node qnm_aggre1_noc;
  71. static struct qcom_icc_node qnm_aggre2_noc;
  72. static struct qcom_icc_node qnm_gic;
  73. static struct qcom_icc_node qnm_usb_anoc;
  74. static struct qcom_icc_node qnm_aggre_usb_north_snoc;
  75. static struct qcom_icc_node qnm_aggre_usb_south_snoc;
  76. static struct qcom_icc_node xm_usb2_0;
  77. static struct qcom_icc_node xm_usb3_mp;
  78. static struct qcom_icc_node xm_usb3_0;
  79. static struct qcom_icc_node xm_usb3_1;
  80. static struct qcom_icc_node xm_usb3_2;
  81. static struct qcom_icc_node xm_usb4_0;
  82. static struct qcom_icc_node xm_usb4_1;
  83. static struct qcom_icc_node xm_usb4_2;
  84. static struct qcom_icc_node qns_a1noc_snoc;
  85. static struct qcom_icc_node qns_a2noc_snoc;
  86. static struct qcom_icc_node qup0_core_slave;
  87. static struct qcom_icc_node qup1_core_slave;
  88. static struct qcom_icc_node qup2_core_slave;
  89. static struct qcom_icc_node qhs_ahb2phy0;
  90. static struct qcom_icc_node qhs_ahb2phy1;
  91. static struct qcom_icc_node qhs_ahb2phy2;
  92. static struct qcom_icc_node qhs_av1_enc_cfg;
  93. static struct qcom_icc_node qhs_camera_cfg;
  94. static struct qcom_icc_node qhs_clk_ctl;
  95. static struct qcom_icc_node qhs_crypto0_cfg;
  96. static struct qcom_icc_node qhs_display_cfg;
  97. static struct qcom_icc_node qhs_gpuss_cfg;
  98. static struct qcom_icc_node qhs_imem_cfg;
  99. static struct qcom_icc_node qhs_ipc_router;
  100. static struct qcom_icc_node qhs_pcie0_cfg;
  101. static struct qcom_icc_node qhs_pcie1_cfg;
  102. static struct qcom_icc_node qhs_pcie2_cfg;
  103. static struct qcom_icc_node qhs_pcie3_cfg;
  104. static struct qcom_icc_node qhs_pcie4_cfg;
  105. static struct qcom_icc_node qhs_pcie5_cfg;
  106. static struct qcom_icc_node qhs_pcie6a_cfg;
  107. static struct qcom_icc_node qhs_pcie6b_cfg;
  108. static struct qcom_icc_node qhs_pcie_rsc_cfg;
  109. static struct qcom_icc_node qhs_pdm;
  110. static struct qcom_icc_node qhs_prng;
  111. static struct qcom_icc_node qhs_qdss_cfg;
  112. static struct qcom_icc_node qhs_qspi;
  113. static struct qcom_icc_node qhs_qup0;
  114. static struct qcom_icc_node qhs_qup1;
  115. static struct qcom_icc_node qhs_qup2;
  116. static struct qcom_icc_node qhs_sdc2;
  117. static struct qcom_icc_node qhs_sdc4;
  118. static struct qcom_icc_node qhs_smmuv3_cfg;
  119. static struct qcom_icc_node qhs_tcsr;
  120. static struct qcom_icc_node qhs_tlmm;
  121. static struct qcom_icc_node qhs_ufs_mem_cfg;
  122. static struct qcom_icc_node qhs_usb2_0_cfg;
  123. static struct qcom_icc_node qhs_usb3_0_cfg;
  124. static struct qcom_icc_node qhs_usb3_1_cfg;
  125. static struct qcom_icc_node qhs_usb3_2_cfg;
  126. static struct qcom_icc_node qhs_usb3_mp_cfg;
  127. static struct qcom_icc_node qhs_usb4_0_cfg;
  128. static struct qcom_icc_node qhs_usb4_1_cfg;
  129. static struct qcom_icc_node qhs_usb4_2_cfg;
  130. static struct qcom_icc_node qhs_venus_cfg;
  131. static struct qcom_icc_node qss_lpass_qtb_cfg;
  132. static struct qcom_icc_node qss_mnoc_cfg;
  133. static struct qcom_icc_node qss_nsp_qtb_cfg;
  134. static struct qcom_icc_node xs_qdss_stm;
  135. static struct qcom_icc_node xs_sys_tcu_cfg;
  136. static struct qcom_icc_node qhs_aoss;
  137. static struct qcom_icc_node qhs_tme_cfg;
  138. static struct qcom_icc_node qns_apss;
  139. static struct qcom_icc_node qss_cfg;
  140. static struct qcom_icc_node qxs_boot_imem;
  141. static struct qcom_icc_node qxs_imem;
  142. static struct qcom_icc_node xs_pcie_0;
  143. static struct qcom_icc_node xs_pcie_1;
  144. static struct qcom_icc_node xs_pcie_2;
  145. static struct qcom_icc_node xs_pcie_3;
  146. static struct qcom_icc_node xs_pcie_4;
  147. static struct qcom_icc_node xs_pcie_5;
  148. static struct qcom_icc_node xs_pcie_6a;
  149. static struct qcom_icc_node xs_pcie_6b;
  150. static struct qcom_icc_node qns_gem_noc_cnoc;
  151. static struct qcom_icc_node qns_llcc;
  152. static struct qcom_icc_node qns_pcie;
  153. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc;
  154. static struct qcom_icc_node qns_lpass_aggnoc;
  155. static struct qcom_icc_node qns_lpi_aon_noc;
  156. static struct qcom_icc_node ebi;
  157. static struct qcom_icc_node qns_mem_noc_hf;
  158. static struct qcom_icc_node qns_mem_noc_sf;
  159. static struct qcom_icc_node srvc_mnoc;
  160. static struct qcom_icc_node qns_nsp_gemnoc;
  161. static struct qcom_icc_node qns_pcie_mem_noc;
  162. static struct qcom_icc_node qns_pcie_north_gem_noc;
  163. static struct qcom_icc_node qns_pcie_south_gem_noc;
  164. static struct qcom_icc_node qns_gemnoc_sf;
  165. static struct qcom_icc_node qns_aggre_usb_snoc;
  166. static struct qcom_icc_node qns_aggre_usb_north_snoc;
  167. static struct qcom_icc_node qns_aggre_usb_south_snoc;
  168. static struct qcom_icc_node qhm_qspi = {
  169. .name = "qhm_qspi",
  170. .channels = 1,
  171. .buswidth = 4,
  172. .num_links = 1,
  173. .link_nodes = { &qns_a1noc_snoc },
  174. };
  175. static struct qcom_icc_node qhm_qup1 = {
  176. .name = "qhm_qup1",
  177. .channels = 1,
  178. .buswidth = 4,
  179. .num_links = 1,
  180. .link_nodes = { &qns_a1noc_snoc },
  181. };
  182. static struct qcom_icc_node xm_sdc4 = {
  183. .name = "xm_sdc4",
  184. .channels = 1,
  185. .buswidth = 8,
  186. .num_links = 1,
  187. .link_nodes = { &qns_a1noc_snoc },
  188. };
  189. static struct qcom_icc_node xm_ufs_mem = {
  190. .name = "xm_ufs_mem",
  191. .channels = 1,
  192. .buswidth = 16,
  193. .num_links = 1,
  194. .link_nodes = { &qns_a1noc_snoc },
  195. };
  196. static struct qcom_icc_node qhm_qup0 = {
  197. .name = "qhm_qup0",
  198. .channels = 1,
  199. .buswidth = 4,
  200. .num_links = 1,
  201. .link_nodes = { &qns_a2noc_snoc },
  202. };
  203. static struct qcom_icc_node qhm_qup2 = {
  204. .name = "qhm_qup2",
  205. .channels = 1,
  206. .buswidth = 4,
  207. .num_links = 1,
  208. .link_nodes = { &qns_a2noc_snoc },
  209. };
  210. static struct qcom_icc_node qxm_crypto = {
  211. .name = "qxm_crypto",
  212. .channels = 1,
  213. .buswidth = 8,
  214. .num_links = 1,
  215. .link_nodes = { &qns_a2noc_snoc },
  216. };
  217. static struct qcom_icc_node qxm_sp = {
  218. .name = "qxm_sp",
  219. .channels = 1,
  220. .buswidth = 8,
  221. .num_links = 1,
  222. .link_nodes = { &qns_a2noc_snoc },
  223. };
  224. static struct qcom_icc_node xm_qdss_etr_0 = {
  225. .name = "xm_qdss_etr_0",
  226. .channels = 1,
  227. .buswidth = 8,
  228. .num_links = 1,
  229. .link_nodes = { &qns_a2noc_snoc },
  230. };
  231. static struct qcom_icc_node xm_qdss_etr_1 = {
  232. .name = "xm_qdss_etr_1",
  233. .channels = 1,
  234. .buswidth = 8,
  235. .num_links = 1,
  236. .link_nodes = { &qns_a2noc_snoc },
  237. };
  238. static struct qcom_icc_node xm_sdc2 = {
  239. .name = "xm_sdc2",
  240. .channels = 1,
  241. .buswidth = 8,
  242. .num_links = 1,
  243. .link_nodes = { &qns_a2noc_snoc },
  244. };
  245. static struct qcom_icc_node qup0_core_master = {
  246. .name = "qup0_core_master",
  247. .channels = 1,
  248. .buswidth = 4,
  249. .num_links = 1,
  250. .link_nodes = { &qup0_core_slave },
  251. };
  252. static struct qcom_icc_node qup1_core_master = {
  253. .name = "qup1_core_master",
  254. .channels = 1,
  255. .buswidth = 4,
  256. .num_links = 1,
  257. .link_nodes = { &qup1_core_slave },
  258. };
  259. static struct qcom_icc_node qup2_core_master = {
  260. .name = "qup2_core_master",
  261. .channels = 1,
  262. .buswidth = 4,
  263. .num_links = 1,
  264. .link_nodes = { &qup2_core_slave },
  265. };
  266. static struct qcom_icc_node qsm_cfg = {
  267. .name = "qsm_cfg",
  268. .channels = 1,
  269. .buswidth = 4,
  270. .num_links = 47,
  271. .link_nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1,
  272. &qhs_ahb2phy2, &qhs_av1_enc_cfg,
  273. &qhs_camera_cfg, &qhs_clk_ctl,
  274. &qhs_crypto0_cfg, &qhs_display_cfg,
  275. &qhs_gpuss_cfg, &qhs_imem_cfg,
  276. &qhs_ipc_router, &qhs_pcie0_cfg,
  277. &qhs_pcie1_cfg, &qhs_pcie2_cfg,
  278. &qhs_pcie3_cfg, &qhs_pcie4_cfg,
  279. &qhs_pcie5_cfg, &qhs_pcie6a_cfg,
  280. &qhs_pcie6b_cfg, &qhs_pcie_rsc_cfg,
  281. &qhs_pdm, &qhs_prng,
  282. &qhs_qdss_cfg, &qhs_qspi,
  283. &qhs_qup0, &qhs_qup1,
  284. &qhs_qup2, &qhs_sdc2,
  285. &qhs_sdc4, &qhs_smmuv3_cfg,
  286. &qhs_tcsr, &qhs_tlmm,
  287. &qhs_ufs_mem_cfg, &qhs_usb2_0_cfg,
  288. &qhs_usb3_0_cfg, &qhs_usb3_1_cfg,
  289. &qhs_usb3_2_cfg, &qhs_usb3_mp_cfg,
  290. &qhs_usb4_0_cfg, &qhs_usb4_1_cfg,
  291. &qhs_usb4_2_cfg, &qhs_venus_cfg,
  292. &qss_lpass_qtb_cfg, &qss_mnoc_cfg,
  293. &qss_nsp_qtb_cfg, &xs_qdss_stm,
  294. &xs_sys_tcu_cfg },
  295. };
  296. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  297. .name = "qnm_gemnoc_cnoc",
  298. .channels = 1,
  299. .buswidth = 16,
  300. .num_links = 6,
  301. .link_nodes = { &qhs_aoss, &qhs_tme_cfg,
  302. &qns_apss, &qss_cfg,
  303. &qxs_boot_imem, &qxs_imem },
  304. };
  305. static struct qcom_icc_node qnm_gemnoc_pcie = {
  306. .name = "qnm_gemnoc_pcie",
  307. .channels = 1,
  308. .buswidth = 32,
  309. .num_links = 8,
  310. .link_nodes = { &xs_pcie_0, &xs_pcie_1,
  311. &xs_pcie_2, &xs_pcie_3,
  312. &xs_pcie_4, &xs_pcie_5,
  313. &xs_pcie_6a, &xs_pcie_6b },
  314. };
  315. static struct qcom_icc_node alm_gpu_tcu = {
  316. .name = "alm_gpu_tcu",
  317. .channels = 1,
  318. .buswidth = 8,
  319. .num_links = 2,
  320. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  321. };
  322. static struct qcom_icc_node alm_pcie_tcu = {
  323. .name = "alm_pcie_tcu",
  324. .channels = 1,
  325. .buswidth = 8,
  326. .num_links = 2,
  327. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  328. };
  329. static struct qcom_icc_node alm_sys_tcu = {
  330. .name = "alm_sys_tcu",
  331. .channels = 1,
  332. .buswidth = 8,
  333. .num_links = 2,
  334. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  335. };
  336. static struct qcom_icc_node chm_apps = {
  337. .name = "chm_apps",
  338. .channels = 6,
  339. .buswidth = 32,
  340. .num_links = 3,
  341. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  342. &qns_pcie },
  343. };
  344. static struct qcom_icc_node qnm_gpu = {
  345. .name = "qnm_gpu",
  346. .channels = 4,
  347. .buswidth = 32,
  348. .num_links = 2,
  349. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  350. };
  351. static struct qcom_icc_node qnm_lpass = {
  352. .name = "qnm_lpass",
  353. .channels = 1,
  354. .buswidth = 16,
  355. .num_links = 3,
  356. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  357. &qns_pcie },
  358. };
  359. static struct qcom_icc_node qnm_mnoc_hf = {
  360. .name = "qnm_mnoc_hf",
  361. .channels = 2,
  362. .buswidth = 32,
  363. .num_links = 2,
  364. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  365. };
  366. static struct qcom_icc_node qnm_mnoc_sf = {
  367. .name = "qnm_mnoc_sf",
  368. .channels = 2,
  369. .buswidth = 32,
  370. .num_links = 2,
  371. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  372. };
  373. static struct qcom_icc_node qnm_nsp_noc = {
  374. .name = "qnm_nsp_noc",
  375. .channels = 2,
  376. .buswidth = 32,
  377. .num_links = 3,
  378. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  379. &qns_pcie },
  380. };
  381. static struct qcom_icc_node qnm_pcie = {
  382. .name = "qnm_pcie",
  383. .channels = 1,
  384. .buswidth = 64,
  385. .num_links = 2,
  386. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  387. };
  388. static struct qcom_icc_node qnm_snoc_sf = {
  389. .name = "qnm_snoc_sf",
  390. .channels = 1,
  391. .buswidth = 64,
  392. .num_links = 3,
  393. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  394. &qns_pcie },
  395. };
  396. static struct qcom_icc_node xm_gic = {
  397. .name = "xm_gic",
  398. .channels = 1,
  399. .buswidth = 8,
  400. .num_links = 1,
  401. .link_nodes = { &qns_llcc },
  402. };
  403. static struct qcom_icc_node qnm_lpiaon_noc = {
  404. .name = "qnm_lpiaon_noc",
  405. .channels = 1,
  406. .buswidth = 16,
  407. .num_links = 1,
  408. .link_nodes = { &qns_lpass_ag_noc_gemnoc },
  409. };
  410. static struct qcom_icc_node qnm_lpass_lpinoc = {
  411. .name = "qnm_lpass_lpinoc",
  412. .channels = 1,
  413. .buswidth = 16,
  414. .num_links = 1,
  415. .link_nodes = { &qns_lpass_aggnoc },
  416. };
  417. static struct qcom_icc_node qxm_lpinoc_dsp_axim = {
  418. .name = "qxm_lpinoc_dsp_axim",
  419. .channels = 1,
  420. .buswidth = 16,
  421. .num_links = 1,
  422. .link_nodes = { &qns_lpi_aon_noc },
  423. };
  424. static struct qcom_icc_node llcc_mc = {
  425. .name = "llcc_mc",
  426. .channels = 8,
  427. .buswidth = 4,
  428. .num_links = 1,
  429. .link_nodes = { &ebi },
  430. };
  431. static struct qcom_icc_node qnm_av1_enc = {
  432. .name = "qnm_av1_enc",
  433. .channels = 1,
  434. .buswidth = 32,
  435. .num_links = 1,
  436. .link_nodes = { &qns_mem_noc_sf },
  437. };
  438. static struct qcom_icc_node qnm_camnoc_hf = {
  439. .name = "qnm_camnoc_hf",
  440. .channels = 2,
  441. .buswidth = 32,
  442. .num_links = 1,
  443. .link_nodes = { &qns_mem_noc_hf },
  444. };
  445. static struct qcom_icc_node qnm_camnoc_icp = {
  446. .name = "qnm_camnoc_icp",
  447. .channels = 1,
  448. .buswidth = 8,
  449. .num_links = 1,
  450. .link_nodes = { &qns_mem_noc_sf },
  451. };
  452. static struct qcom_icc_node qnm_camnoc_sf = {
  453. .name = "qnm_camnoc_sf",
  454. .channels = 2,
  455. .buswidth = 32,
  456. .num_links = 1,
  457. .link_nodes = { &qns_mem_noc_sf },
  458. };
  459. static struct qcom_icc_node qnm_eva = {
  460. .name = "qnm_eva",
  461. .channels = 1,
  462. .buswidth = 32,
  463. .num_links = 1,
  464. .link_nodes = { &qns_mem_noc_sf },
  465. };
  466. static struct qcom_icc_node qnm_mdp = {
  467. .name = "qnm_mdp",
  468. .channels = 2,
  469. .buswidth = 32,
  470. .num_links = 1,
  471. .link_nodes = { &qns_mem_noc_hf },
  472. };
  473. static struct qcom_icc_node qnm_video = {
  474. .name = "qnm_video",
  475. .channels = 2,
  476. .buswidth = 32,
  477. .num_links = 1,
  478. .link_nodes = { &qns_mem_noc_sf },
  479. };
  480. static struct qcom_icc_node qnm_video_cv_cpu = {
  481. .name = "qnm_video_cv_cpu",
  482. .channels = 1,
  483. .buswidth = 8,
  484. .num_links = 1,
  485. .link_nodes = { &qns_mem_noc_sf },
  486. };
  487. static struct qcom_icc_node qnm_video_v_cpu = {
  488. .name = "qnm_video_v_cpu",
  489. .channels = 1,
  490. .buswidth = 8,
  491. .num_links = 1,
  492. .link_nodes = { &qns_mem_noc_sf },
  493. };
  494. static struct qcom_icc_node qsm_mnoc_cfg = {
  495. .name = "qsm_mnoc_cfg",
  496. .channels = 1,
  497. .buswidth = 4,
  498. .num_links = 1,
  499. .link_nodes = { &srvc_mnoc },
  500. };
  501. static struct qcom_icc_node qxm_nsp = {
  502. .name = "qxm_nsp",
  503. .channels = 2,
  504. .buswidth = 32,
  505. .num_links = 1,
  506. .link_nodes = { &qns_nsp_gemnoc },
  507. };
  508. static struct qcom_icc_node qnm_pcie_north_gem_noc = {
  509. .name = "qnm_pcie_north_gem_noc",
  510. .channels = 1,
  511. .buswidth = 64,
  512. .num_links = 1,
  513. .link_nodes = { &qns_pcie_mem_noc },
  514. };
  515. static struct qcom_icc_node qnm_pcie_south_gem_noc = {
  516. .name = "qnm_pcie_south_gem_noc",
  517. .channels = 1,
  518. .buswidth = 64,
  519. .num_links = 1,
  520. .link_nodes = { &qns_pcie_mem_noc },
  521. };
  522. static struct qcom_icc_node xm_pcie_3 = {
  523. .name = "xm_pcie_3",
  524. .channels = 1,
  525. .buswidth = 64,
  526. .num_links = 1,
  527. .link_nodes = { &qns_pcie_north_gem_noc },
  528. };
  529. static struct qcom_icc_node xm_pcie_4 = {
  530. .name = "xm_pcie_4",
  531. .channels = 1,
  532. .buswidth = 8,
  533. .num_links = 1,
  534. .link_nodes = { &qns_pcie_north_gem_noc },
  535. };
  536. static struct qcom_icc_node xm_pcie_5 = {
  537. .name = "xm_pcie_5",
  538. .channels = 1,
  539. .buswidth = 8,
  540. .num_links = 1,
  541. .link_nodes = { &qns_pcie_north_gem_noc },
  542. };
  543. static struct qcom_icc_node xm_pcie_0 = {
  544. .name = "xm_pcie_0",
  545. .channels = 1,
  546. .buswidth = 16,
  547. .num_links = 1,
  548. .link_nodes = { &qns_pcie_south_gem_noc },
  549. };
  550. static struct qcom_icc_node xm_pcie_1 = {
  551. .name = "xm_pcie_1",
  552. .channels = 1,
  553. .buswidth = 16,
  554. .num_links = 1,
  555. .link_nodes = { &qns_pcie_south_gem_noc },
  556. };
  557. static struct qcom_icc_node xm_pcie_2 = {
  558. .name = "xm_pcie_2",
  559. .channels = 1,
  560. .buswidth = 16,
  561. .num_links = 1,
  562. .link_nodes = { &qns_pcie_south_gem_noc },
  563. };
  564. static struct qcom_icc_node xm_pcie_6a = {
  565. .name = "xm_pcie_6a",
  566. .channels = 1,
  567. .buswidth = 32,
  568. .num_links = 1,
  569. .link_nodes = { &qns_pcie_south_gem_noc },
  570. };
  571. static struct qcom_icc_node xm_pcie_6b = {
  572. .name = "xm_pcie_6b",
  573. .channels = 1,
  574. .buswidth = 16,
  575. .num_links = 1,
  576. .link_nodes = { &qns_pcie_south_gem_noc },
  577. };
  578. static struct qcom_icc_node qnm_aggre1_noc = {
  579. .name = "qnm_aggre1_noc",
  580. .channels = 1,
  581. .buswidth = 16,
  582. .num_links = 1,
  583. .link_nodes = { &qns_gemnoc_sf },
  584. };
  585. static struct qcom_icc_node qnm_aggre2_noc = {
  586. .name = "qnm_aggre2_noc",
  587. .channels = 1,
  588. .buswidth = 16,
  589. .num_links = 1,
  590. .link_nodes = { &qns_gemnoc_sf },
  591. };
  592. static struct qcom_icc_node qnm_gic = {
  593. .name = "qnm_gic",
  594. .channels = 1,
  595. .buswidth = 8,
  596. .num_links = 1,
  597. .link_nodes = { &qns_gemnoc_sf },
  598. };
  599. static struct qcom_icc_node qnm_usb_anoc = {
  600. .name = "qnm_usb_anoc",
  601. .channels = 1,
  602. .buswidth = 64,
  603. .num_links = 1,
  604. .link_nodes = { &qns_gemnoc_sf },
  605. };
  606. static struct qcom_icc_node qnm_aggre_usb_north_snoc = {
  607. .name = "qnm_aggre_usb_north_snoc",
  608. .channels = 1,
  609. .buswidth = 64,
  610. .num_links = 1,
  611. .link_nodes = { &qns_aggre_usb_snoc },
  612. };
  613. static struct qcom_icc_node qnm_aggre_usb_south_snoc = {
  614. .name = "qnm_aggre_usb_south_snoc",
  615. .channels = 1,
  616. .buswidth = 64,
  617. .num_links = 1,
  618. .link_nodes = { &qns_aggre_usb_snoc },
  619. };
  620. static struct qcom_icc_node xm_usb2_0 = {
  621. .name = "xm_usb2_0",
  622. .channels = 1,
  623. .buswidth = 8,
  624. .num_links = 1,
  625. .link_nodes = { &qns_aggre_usb_north_snoc },
  626. };
  627. static struct qcom_icc_node xm_usb3_mp = {
  628. .name = "xm_usb3_mp",
  629. .channels = 1,
  630. .buswidth = 16,
  631. .num_links = 1,
  632. .link_nodes = { &qns_aggre_usb_north_snoc },
  633. };
  634. static struct qcom_icc_node xm_usb3_0 = {
  635. .name = "xm_usb3_0",
  636. .channels = 1,
  637. .buswidth = 8,
  638. .num_links = 1,
  639. .link_nodes = { &qns_aggre_usb_south_snoc },
  640. };
  641. static struct qcom_icc_node xm_usb3_1 = {
  642. .name = "xm_usb3_1",
  643. .channels = 1,
  644. .buswidth = 8,
  645. .num_links = 1,
  646. .link_nodes = { &qns_aggre_usb_south_snoc },
  647. };
  648. static struct qcom_icc_node xm_usb3_2 = {
  649. .name = "xm_usb3_2",
  650. .channels = 1,
  651. .buswidth = 8,
  652. .num_links = 1,
  653. .link_nodes = { &qns_aggre_usb_south_snoc },
  654. };
  655. static struct qcom_icc_node xm_usb4_0 = {
  656. .name = "xm_usb4_0",
  657. .channels = 1,
  658. .buswidth = 16,
  659. .num_links = 1,
  660. .link_nodes = { &qns_aggre_usb_south_snoc },
  661. };
  662. static struct qcom_icc_node xm_usb4_1 = {
  663. .name = "xm_usb4_1",
  664. .channels = 1,
  665. .buswidth = 16,
  666. .num_links = 1,
  667. .link_nodes = { &qns_aggre_usb_south_snoc },
  668. };
  669. static struct qcom_icc_node xm_usb4_2 = {
  670. .name = "xm_usb4_2",
  671. .channels = 1,
  672. .buswidth = 16,
  673. .num_links = 1,
  674. .link_nodes = { &qns_aggre_usb_south_snoc },
  675. };
  676. static struct qcom_icc_node qns_a1noc_snoc = {
  677. .name = "qns_a1noc_snoc",
  678. .channels = 1,
  679. .buswidth = 16,
  680. .num_links = 1,
  681. .link_nodes = { &qnm_aggre1_noc },
  682. };
  683. static struct qcom_icc_node qns_a2noc_snoc = {
  684. .name = "qns_a2noc_snoc",
  685. .channels = 1,
  686. .buswidth = 16,
  687. .num_links = 1,
  688. .link_nodes = { &qnm_aggre2_noc },
  689. };
  690. static struct qcom_icc_node qup0_core_slave = {
  691. .name = "qup0_core_slave",
  692. .channels = 1,
  693. .buswidth = 4,
  694. };
  695. static struct qcom_icc_node qup1_core_slave = {
  696. .name = "qup1_core_slave",
  697. .channels = 1,
  698. .buswidth = 4,
  699. };
  700. static struct qcom_icc_node qup2_core_slave = {
  701. .name = "qup2_core_slave",
  702. .channels = 1,
  703. .buswidth = 4,
  704. };
  705. static struct qcom_icc_node qhs_ahb2phy0 = {
  706. .name = "qhs_ahb2phy0",
  707. .channels = 1,
  708. .buswidth = 4,
  709. };
  710. static struct qcom_icc_node qhs_ahb2phy1 = {
  711. .name = "qhs_ahb2phy1",
  712. .channels = 1,
  713. .buswidth = 4,
  714. };
  715. static struct qcom_icc_node qhs_ahb2phy2 = {
  716. .name = "qhs_ahb2phy2",
  717. .channels = 1,
  718. .buswidth = 4,
  719. };
  720. static struct qcom_icc_node qhs_av1_enc_cfg = {
  721. .name = "qhs_av1_enc_cfg",
  722. .channels = 1,
  723. .buswidth = 4,
  724. };
  725. static struct qcom_icc_node qhs_camera_cfg = {
  726. .name = "qhs_camera_cfg",
  727. .channels = 1,
  728. .buswidth = 4,
  729. };
  730. static struct qcom_icc_node qhs_clk_ctl = {
  731. .name = "qhs_clk_ctl",
  732. .channels = 1,
  733. .buswidth = 4,
  734. };
  735. static struct qcom_icc_node qhs_crypto0_cfg = {
  736. .name = "qhs_crypto0_cfg",
  737. .channels = 1,
  738. .buswidth = 4,
  739. };
  740. static struct qcom_icc_node qhs_display_cfg = {
  741. .name = "qhs_display_cfg",
  742. .channels = 1,
  743. .buswidth = 4,
  744. };
  745. static struct qcom_icc_node qhs_gpuss_cfg = {
  746. .name = "qhs_gpuss_cfg",
  747. .channels = 1,
  748. .buswidth = 8,
  749. };
  750. static struct qcom_icc_node qhs_imem_cfg = {
  751. .name = "qhs_imem_cfg",
  752. .channels = 1,
  753. .buswidth = 4,
  754. };
  755. static struct qcom_icc_node qhs_ipc_router = {
  756. .name = "qhs_ipc_router",
  757. .channels = 1,
  758. .buswidth = 4,
  759. };
  760. static struct qcom_icc_node qhs_pcie0_cfg = {
  761. .name = "qhs_pcie0_cfg",
  762. .channels = 1,
  763. .buswidth = 4,
  764. };
  765. static struct qcom_icc_node qhs_pcie1_cfg = {
  766. .name = "qhs_pcie1_cfg",
  767. .channels = 1,
  768. .buswidth = 4,
  769. };
  770. static struct qcom_icc_node qhs_pcie2_cfg = {
  771. .name = "qhs_pcie2_cfg",
  772. .channels = 1,
  773. .buswidth = 4,
  774. };
  775. static struct qcom_icc_node qhs_pcie3_cfg = {
  776. .name = "qhs_pcie3_cfg",
  777. .channels = 1,
  778. .buswidth = 4,
  779. };
  780. static struct qcom_icc_node qhs_pcie4_cfg = {
  781. .name = "qhs_pcie4_cfg",
  782. .channels = 1,
  783. .buswidth = 4,
  784. };
  785. static struct qcom_icc_node qhs_pcie5_cfg = {
  786. .name = "qhs_pcie5_cfg",
  787. .channels = 1,
  788. .buswidth = 4,
  789. };
  790. static struct qcom_icc_node qhs_pcie6a_cfg = {
  791. .name = "qhs_pcie6a_cfg",
  792. .channels = 1,
  793. .buswidth = 4,
  794. };
  795. static struct qcom_icc_node qhs_pcie6b_cfg = {
  796. .name = "qhs_pcie6b_cfg",
  797. .channels = 1,
  798. .buswidth = 4,
  799. };
  800. static struct qcom_icc_node qhs_pcie_rsc_cfg = {
  801. .name = "qhs_pcie_rsc_cfg",
  802. .channels = 1,
  803. .buswidth = 4,
  804. };
  805. static struct qcom_icc_node qhs_pdm = {
  806. .name = "qhs_pdm",
  807. .channels = 1,
  808. .buswidth = 4,
  809. };
  810. static struct qcom_icc_node qhs_prng = {
  811. .name = "qhs_prng",
  812. .channels = 1,
  813. .buswidth = 4,
  814. };
  815. static struct qcom_icc_node qhs_qdss_cfg = {
  816. .name = "qhs_qdss_cfg",
  817. .channels = 1,
  818. .buswidth = 4,
  819. };
  820. static struct qcom_icc_node qhs_qspi = {
  821. .name = "qhs_qspi",
  822. .channels = 1,
  823. .buswidth = 4,
  824. };
  825. static struct qcom_icc_node qhs_qup0 = {
  826. .name = "qhs_qup0",
  827. .channels = 1,
  828. .buswidth = 4,
  829. };
  830. static struct qcom_icc_node qhs_qup1 = {
  831. .name = "qhs_qup1",
  832. .channels = 1,
  833. .buswidth = 4,
  834. };
  835. static struct qcom_icc_node qhs_qup2 = {
  836. .name = "qhs_qup2",
  837. .channels = 1,
  838. .buswidth = 4,
  839. };
  840. static struct qcom_icc_node qhs_sdc2 = {
  841. .name = "qhs_sdc2",
  842. .channels = 1,
  843. .buswidth = 4,
  844. };
  845. static struct qcom_icc_node qhs_sdc4 = {
  846. .name = "qhs_sdc4",
  847. .channels = 1,
  848. .buswidth = 4,
  849. };
  850. static struct qcom_icc_node qhs_smmuv3_cfg = {
  851. .name = "qhs_smmuv3_cfg",
  852. .channels = 1,
  853. .buswidth = 8,
  854. };
  855. static struct qcom_icc_node qhs_tcsr = {
  856. .name = "qhs_tcsr",
  857. .channels = 1,
  858. .buswidth = 4,
  859. };
  860. static struct qcom_icc_node qhs_tlmm = {
  861. .name = "qhs_tlmm",
  862. .channels = 1,
  863. .buswidth = 4,
  864. };
  865. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  866. .name = "qhs_ufs_mem_cfg",
  867. .channels = 1,
  868. .buswidth = 4,
  869. };
  870. static struct qcom_icc_node qhs_usb2_0_cfg = {
  871. .name = "qhs_usb2_0_cfg",
  872. .channels = 1,
  873. .buswidth = 4,
  874. };
  875. static struct qcom_icc_node qhs_usb3_0_cfg = {
  876. .name = "qhs_usb3_0_cfg",
  877. .channels = 1,
  878. .buswidth = 4,
  879. };
  880. static struct qcom_icc_node qhs_usb3_1_cfg = {
  881. .name = "qhs_usb3_1_cfg",
  882. .channels = 1,
  883. .buswidth = 4,
  884. };
  885. static struct qcom_icc_node qhs_usb3_2_cfg = {
  886. .name = "qhs_usb3_2_cfg",
  887. .channels = 1,
  888. .buswidth = 4,
  889. };
  890. static struct qcom_icc_node qhs_usb3_mp_cfg = {
  891. .name = "qhs_usb3_mp_cfg",
  892. .channels = 1,
  893. .buswidth = 4,
  894. };
  895. static struct qcom_icc_node qhs_usb4_0_cfg = {
  896. .name = "qhs_usb4_0_cfg",
  897. .channels = 1,
  898. .buswidth = 4,
  899. };
  900. static struct qcom_icc_node qhs_usb4_1_cfg = {
  901. .name = "qhs_usb4_1_cfg",
  902. .channels = 1,
  903. .buswidth = 4,
  904. };
  905. static struct qcom_icc_node qhs_usb4_2_cfg = {
  906. .name = "qhs_usb4_2_cfg",
  907. .channels = 1,
  908. .buswidth = 4,
  909. };
  910. static struct qcom_icc_node qhs_venus_cfg = {
  911. .name = "qhs_venus_cfg",
  912. .channels = 1,
  913. .buswidth = 4,
  914. };
  915. static struct qcom_icc_node qss_lpass_qtb_cfg = {
  916. .name = "qss_lpass_qtb_cfg",
  917. .channels = 1,
  918. .buswidth = 4,
  919. };
  920. static struct qcom_icc_node qss_mnoc_cfg = {
  921. .name = "qss_mnoc_cfg",
  922. .channels = 1,
  923. .buswidth = 4,
  924. .num_links = 1,
  925. .link_nodes = { &qsm_mnoc_cfg },
  926. };
  927. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  928. .name = "qss_nsp_qtb_cfg",
  929. .channels = 1,
  930. .buswidth = 4,
  931. };
  932. static struct qcom_icc_node xs_qdss_stm = {
  933. .name = "xs_qdss_stm",
  934. .channels = 1,
  935. .buswidth = 4,
  936. };
  937. static struct qcom_icc_node xs_sys_tcu_cfg = {
  938. .name = "xs_sys_tcu_cfg",
  939. .channels = 1,
  940. .buswidth = 8,
  941. };
  942. static struct qcom_icc_node qhs_aoss = {
  943. .name = "qhs_aoss",
  944. .channels = 1,
  945. .buswidth = 4,
  946. };
  947. static struct qcom_icc_node qhs_tme_cfg = {
  948. .name = "qhs_tme_cfg",
  949. .channels = 1,
  950. .buswidth = 4,
  951. };
  952. static struct qcom_icc_node qns_apss = {
  953. .name = "qns_apss",
  954. .channels = 1,
  955. .buswidth = 8,
  956. };
  957. static struct qcom_icc_node qss_cfg = {
  958. .name = "qss_cfg",
  959. .channels = 1,
  960. .buswidth = 4,
  961. .num_links = 1,
  962. .link_nodes = { &qsm_cfg },
  963. };
  964. static struct qcom_icc_node qxs_boot_imem = {
  965. .name = "qxs_boot_imem",
  966. .channels = 1,
  967. .buswidth = 16,
  968. };
  969. static struct qcom_icc_node qxs_imem = {
  970. .name = "qxs_imem",
  971. .channels = 1,
  972. .buswidth = 8,
  973. };
  974. static struct qcom_icc_node xs_pcie_0 = {
  975. .name = "xs_pcie_0",
  976. .channels = 1,
  977. .buswidth = 16,
  978. };
  979. static struct qcom_icc_node xs_pcie_1 = {
  980. .name = "xs_pcie_1",
  981. .channels = 1,
  982. .buswidth = 16,
  983. };
  984. static struct qcom_icc_node xs_pcie_2 = {
  985. .name = "xs_pcie_2",
  986. .channels = 1,
  987. .buswidth = 16,
  988. };
  989. static struct qcom_icc_node xs_pcie_3 = {
  990. .name = "xs_pcie_3",
  991. .channels = 1,
  992. .buswidth = 64,
  993. };
  994. static struct qcom_icc_node xs_pcie_4 = {
  995. .name = "xs_pcie_4",
  996. .channels = 1,
  997. .buswidth = 8,
  998. };
  999. static struct qcom_icc_node xs_pcie_5 = {
  1000. .name = "xs_pcie_5",
  1001. .channels = 1,
  1002. .buswidth = 8,
  1003. };
  1004. static struct qcom_icc_node xs_pcie_6a = {
  1005. .name = "xs_pcie_6a",
  1006. .channels = 1,
  1007. .buswidth = 32,
  1008. };
  1009. static struct qcom_icc_node xs_pcie_6b = {
  1010. .name = "xs_pcie_6b",
  1011. .channels = 1,
  1012. .buswidth = 16,
  1013. };
  1014. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1015. .name = "qns_gem_noc_cnoc",
  1016. .channels = 1,
  1017. .buswidth = 16,
  1018. .num_links = 1,
  1019. .link_nodes = { &qnm_gemnoc_cnoc },
  1020. };
  1021. static struct qcom_icc_node qns_llcc = {
  1022. .name = "qns_llcc",
  1023. .channels = 8,
  1024. .buswidth = 16,
  1025. .num_links = 1,
  1026. .link_nodes = { &llcc_mc },
  1027. };
  1028. static struct qcom_icc_node qns_pcie = {
  1029. .name = "qns_pcie",
  1030. .channels = 1,
  1031. .buswidth = 32,
  1032. .num_links = 1,
  1033. .link_nodes = { &qnm_gemnoc_pcie },
  1034. };
  1035. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  1036. .name = "qns_lpass_ag_noc_gemnoc",
  1037. .channels = 1,
  1038. .buswidth = 16,
  1039. .num_links = 1,
  1040. .link_nodes = { &qnm_lpass },
  1041. };
  1042. static struct qcom_icc_node qns_lpass_aggnoc = {
  1043. .name = "qns_lpass_aggnoc",
  1044. .channels = 1,
  1045. .buswidth = 16,
  1046. .num_links = 1,
  1047. .link_nodes = { &qnm_lpiaon_noc },
  1048. };
  1049. static struct qcom_icc_node qns_lpi_aon_noc = {
  1050. .name = "qns_lpi_aon_noc",
  1051. .channels = 1,
  1052. .buswidth = 16,
  1053. .num_links = 1,
  1054. .link_nodes = { &qnm_lpass_lpinoc },
  1055. };
  1056. static struct qcom_icc_node ebi = {
  1057. .name = "ebi",
  1058. .channels = 8,
  1059. .buswidth = 4,
  1060. };
  1061. static struct qcom_icc_node qns_mem_noc_hf = {
  1062. .name = "qns_mem_noc_hf",
  1063. .channels = 2,
  1064. .buswidth = 32,
  1065. .num_links = 1,
  1066. .link_nodes = { &qnm_mnoc_hf },
  1067. };
  1068. static struct qcom_icc_node qns_mem_noc_sf = {
  1069. .name = "qns_mem_noc_sf",
  1070. .channels = 2,
  1071. .buswidth = 32,
  1072. .num_links = 1,
  1073. .link_nodes = { &qnm_mnoc_sf },
  1074. };
  1075. static struct qcom_icc_node srvc_mnoc = {
  1076. .name = "srvc_mnoc",
  1077. .channels = 1,
  1078. .buswidth = 4,
  1079. };
  1080. static struct qcom_icc_node qns_nsp_gemnoc = {
  1081. .name = "qns_nsp_gemnoc",
  1082. .channels = 2,
  1083. .buswidth = 32,
  1084. .num_links = 1,
  1085. .link_nodes = { &qnm_nsp_noc },
  1086. };
  1087. static struct qcom_icc_node qns_pcie_mem_noc = {
  1088. .name = "qns_pcie_mem_noc",
  1089. .channels = 1,
  1090. .buswidth = 64,
  1091. .num_links = 1,
  1092. .link_nodes = { &qnm_pcie },
  1093. };
  1094. static struct qcom_icc_node qns_pcie_north_gem_noc = {
  1095. .name = "qns_pcie_north_gem_noc",
  1096. .channels = 1,
  1097. .buswidth = 64,
  1098. .num_links = 1,
  1099. .link_nodes = { &qnm_pcie_north_gem_noc },
  1100. };
  1101. static struct qcom_icc_node qns_pcie_south_gem_noc = {
  1102. .name = "qns_pcie_south_gem_noc",
  1103. .channels = 1,
  1104. .buswidth = 64,
  1105. .num_links = 1,
  1106. .link_nodes = { &qnm_pcie_south_gem_noc },
  1107. };
  1108. static struct qcom_icc_node qns_gemnoc_sf = {
  1109. .name = "qns_gemnoc_sf",
  1110. .channels = 1,
  1111. .buswidth = 64,
  1112. .num_links = 1,
  1113. .link_nodes = { &qnm_snoc_sf },
  1114. };
  1115. static struct qcom_icc_node qns_aggre_usb_snoc = {
  1116. .name = "qns_aggre_usb_snoc",
  1117. .channels = 1,
  1118. .buswidth = 64,
  1119. .num_links = 1,
  1120. .link_nodes = { &qnm_usb_anoc },
  1121. };
  1122. static struct qcom_icc_node qns_aggre_usb_north_snoc = {
  1123. .name = "qns_aggre_usb_north_snoc",
  1124. .channels = 1,
  1125. .buswidth = 64,
  1126. .num_links = 1,
  1127. .link_nodes = { &qnm_aggre_usb_north_snoc },
  1128. };
  1129. static struct qcom_icc_node qns_aggre_usb_south_snoc = {
  1130. .name = "qns_aggre_usb_south_snoc",
  1131. .channels = 1,
  1132. .buswidth = 64,
  1133. .num_links = 1,
  1134. .link_nodes = { &qnm_aggre_usb_south_snoc },
  1135. };
  1136. static struct qcom_icc_bcm bcm_acv = {
  1137. .name = "ACV",
  1138. .enable_mask = BIT(3),
  1139. .num_nodes = 1,
  1140. .nodes = { &ebi },
  1141. };
  1142. static struct qcom_icc_bcm bcm_ce0 = {
  1143. .name = "CE0",
  1144. .num_nodes = 1,
  1145. .nodes = { &qxm_crypto },
  1146. };
  1147. static struct qcom_icc_bcm bcm_cn0 = {
  1148. .name = "CN0",
  1149. .keepalive = true,
  1150. .num_nodes = 63,
  1151. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1152. &qhs_ahb2phy1, &qhs_ahb2phy2,
  1153. &qhs_av1_enc_cfg, &qhs_camera_cfg,
  1154. &qhs_clk_ctl, &qhs_crypto0_cfg,
  1155. &qhs_gpuss_cfg, &qhs_imem_cfg,
  1156. &qhs_ipc_router, &qhs_pcie0_cfg,
  1157. &qhs_pcie1_cfg, &qhs_pcie2_cfg,
  1158. &qhs_pcie3_cfg, &qhs_pcie4_cfg,
  1159. &qhs_pcie5_cfg, &qhs_pcie6a_cfg,
  1160. &qhs_pcie6b_cfg, &qhs_pcie_rsc_cfg,
  1161. &qhs_pdm, &qhs_prng,
  1162. &qhs_qdss_cfg, &qhs_qspi,
  1163. &qhs_qup0, &qhs_qup1,
  1164. &qhs_qup2, &qhs_sdc2,
  1165. &qhs_sdc4, &qhs_smmuv3_cfg,
  1166. &qhs_tcsr, &qhs_tlmm,
  1167. &qhs_ufs_mem_cfg, &qhs_usb2_0_cfg,
  1168. &qhs_usb3_0_cfg, &qhs_usb3_1_cfg,
  1169. &qhs_usb3_2_cfg, &qhs_usb3_mp_cfg,
  1170. &qhs_usb4_0_cfg, &qhs_usb4_1_cfg,
  1171. &qhs_usb4_2_cfg, &qhs_venus_cfg,
  1172. &qss_lpass_qtb_cfg, &qss_mnoc_cfg,
  1173. &qss_nsp_qtb_cfg, &xs_qdss_stm,
  1174. &xs_sys_tcu_cfg, &qnm_gemnoc_cnoc,
  1175. &qnm_gemnoc_pcie, &qhs_aoss,
  1176. &qhs_tme_cfg, &qns_apss,
  1177. &qss_cfg, &qxs_boot_imem,
  1178. &qxs_imem, &xs_pcie_0,
  1179. &xs_pcie_1, &xs_pcie_2,
  1180. &xs_pcie_3, &xs_pcie_4,
  1181. &xs_pcie_5, &xs_pcie_6a,
  1182. &xs_pcie_6b },
  1183. };
  1184. static struct qcom_icc_bcm bcm_cn1 = {
  1185. .name = "CN1",
  1186. .num_nodes = 1,
  1187. .nodes = { &qhs_display_cfg },
  1188. };
  1189. static struct qcom_icc_bcm bcm_co0 = {
  1190. .name = "CO0",
  1191. .num_nodes = 2,
  1192. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1193. };
  1194. static struct qcom_icc_bcm bcm_lp0 = {
  1195. .name = "LP0",
  1196. .num_nodes = 2,
  1197. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1198. };
  1199. static struct qcom_icc_bcm bcm_mc0 = {
  1200. .name = "MC0",
  1201. .keepalive = true,
  1202. .num_nodes = 1,
  1203. .nodes = { &ebi },
  1204. };
  1205. static struct qcom_icc_bcm bcm_mm0 = {
  1206. .name = "MM0",
  1207. .num_nodes = 1,
  1208. .nodes = { &qns_mem_noc_hf },
  1209. };
  1210. static struct qcom_icc_bcm bcm_mm1 = {
  1211. .name = "MM1",
  1212. .num_nodes = 10,
  1213. .nodes = { &qnm_av1_enc, &qnm_camnoc_hf,
  1214. &qnm_camnoc_icp, &qnm_camnoc_sf,
  1215. &qnm_eva, &qnm_mdp,
  1216. &qnm_video, &qnm_video_cv_cpu,
  1217. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1218. };
  1219. static struct qcom_icc_bcm bcm_pc0 = {
  1220. .name = "PC0",
  1221. .num_nodes = 1,
  1222. .nodes = { &qns_pcie_mem_noc },
  1223. };
  1224. static struct qcom_icc_bcm bcm_qup0 = {
  1225. .name = "QUP0",
  1226. .keepalive = true,
  1227. .vote_scale = 1,
  1228. .num_nodes = 1,
  1229. .nodes = { &qup0_core_slave },
  1230. };
  1231. static struct qcom_icc_bcm bcm_qup1 = {
  1232. .name = "QUP1",
  1233. .keepalive = true,
  1234. .vote_scale = 1,
  1235. .num_nodes = 1,
  1236. .nodes = { &qup1_core_slave },
  1237. };
  1238. static struct qcom_icc_bcm bcm_qup2 = {
  1239. .name = "QUP2",
  1240. .keepalive = true,
  1241. .vote_scale = 1,
  1242. .num_nodes = 1,
  1243. .nodes = { &qup2_core_slave },
  1244. };
  1245. static struct qcom_icc_bcm bcm_sh0 = {
  1246. .name = "SH0",
  1247. .keepalive = true,
  1248. .num_nodes = 1,
  1249. .nodes = { &qns_llcc },
  1250. };
  1251. static struct qcom_icc_bcm bcm_sh1 = {
  1252. .name = "SH1",
  1253. .num_nodes = 13,
  1254. .nodes = { &alm_gpu_tcu, &alm_pcie_tcu,
  1255. &alm_sys_tcu, &chm_apps,
  1256. &qnm_gpu, &qnm_lpass,
  1257. &qnm_mnoc_hf, &qnm_mnoc_sf,
  1258. &qnm_nsp_noc, &qnm_pcie,
  1259. &xm_gic, &qns_gem_noc_cnoc,
  1260. &qns_pcie },
  1261. };
  1262. static struct qcom_icc_bcm bcm_sn0 = {
  1263. .name = "SN0",
  1264. .keepalive = true,
  1265. .num_nodes = 1,
  1266. .nodes = { &qns_gemnoc_sf },
  1267. };
  1268. static struct qcom_icc_bcm bcm_sn2 = {
  1269. .name = "SN2",
  1270. .num_nodes = 1,
  1271. .nodes = { &qnm_aggre1_noc },
  1272. };
  1273. static struct qcom_icc_bcm bcm_sn3 = {
  1274. .name = "SN3",
  1275. .num_nodes = 1,
  1276. .nodes = { &qnm_aggre2_noc },
  1277. };
  1278. static struct qcom_icc_bcm bcm_sn4 = {
  1279. .name = "SN4",
  1280. .num_nodes = 1,
  1281. .nodes = { &qnm_usb_anoc },
  1282. };
  1283. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1284. };
  1285. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1286. [MASTER_QSPI_0] = &qhm_qspi,
  1287. [MASTER_QUP_1] = &qhm_qup1,
  1288. [MASTER_SDCC_4] = &xm_sdc4,
  1289. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1290. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1291. };
  1292. static const struct qcom_icc_desc x1e80100_aggre1_noc = {
  1293. .nodes = aggre1_noc_nodes,
  1294. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1295. .bcms = aggre1_noc_bcms,
  1296. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1297. };
  1298. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1299. &bcm_ce0,
  1300. };
  1301. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1302. [MASTER_QUP_0] = &qhm_qup0,
  1303. [MASTER_QUP_2] = &qhm_qup2,
  1304. [MASTER_CRYPTO] = &qxm_crypto,
  1305. [MASTER_SP] = &qxm_sp,
  1306. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1307. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1308. [MASTER_SDCC_2] = &xm_sdc2,
  1309. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1310. };
  1311. static const struct qcom_icc_desc x1e80100_aggre2_noc = {
  1312. .nodes = aggre2_noc_nodes,
  1313. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1314. .bcms = aggre2_noc_bcms,
  1315. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1316. };
  1317. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1318. &bcm_qup0,
  1319. &bcm_qup1,
  1320. &bcm_qup2,
  1321. };
  1322. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1323. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1324. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1325. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1326. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1327. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1328. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1329. };
  1330. static const struct qcom_icc_desc x1e80100_clk_virt = {
  1331. .nodes = clk_virt_nodes,
  1332. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1333. .bcms = clk_virt_bcms,
  1334. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1335. };
  1336. static struct qcom_icc_bcm * const cnoc_cfg_bcms[] = {
  1337. &bcm_cn0,
  1338. &bcm_cn1,
  1339. };
  1340. static struct qcom_icc_node * const cnoc_cfg_nodes[] = {
  1341. [MASTER_CNOC_CFG] = &qsm_cfg,
  1342. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1343. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1344. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  1345. [SLAVE_AV1_ENC_CFG] = &qhs_av1_enc_cfg,
  1346. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1347. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1348. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1349. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1350. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1351. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1352. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1353. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1354. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1355. [SLAVE_PCIE_2_CFG] = &qhs_pcie2_cfg,
  1356. [SLAVE_PCIE_3_CFG] = &qhs_pcie3_cfg,
  1357. [SLAVE_PCIE_4_CFG] = &qhs_pcie4_cfg,
  1358. [SLAVE_PCIE_5_CFG] = &qhs_pcie5_cfg,
  1359. [SLAVE_PCIE_6A_CFG] = &qhs_pcie6a_cfg,
  1360. [SLAVE_PCIE_6B_CFG] = &qhs_pcie6b_cfg,
  1361. [SLAVE_PCIE_RSC_CFG] = &qhs_pcie_rsc_cfg,
  1362. [SLAVE_PDM] = &qhs_pdm,
  1363. [SLAVE_PRNG] = &qhs_prng,
  1364. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1365. [SLAVE_QSPI_0] = &qhs_qspi,
  1366. [SLAVE_QUP_0] = &qhs_qup0,
  1367. [SLAVE_QUP_1] = &qhs_qup1,
  1368. [SLAVE_QUP_2] = &qhs_qup2,
  1369. [SLAVE_SDCC_2] = &qhs_sdc2,
  1370. [SLAVE_SDCC_4] = &qhs_sdc4,
  1371. [SLAVE_SMMUV3_CFG] = &qhs_smmuv3_cfg,
  1372. [SLAVE_TCSR] = &qhs_tcsr,
  1373. [SLAVE_TLMM] = &qhs_tlmm,
  1374. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1375. [SLAVE_USB2] = &qhs_usb2_0_cfg,
  1376. [SLAVE_USB3_0] = &qhs_usb3_0_cfg,
  1377. [SLAVE_USB3_1] = &qhs_usb3_1_cfg,
  1378. [SLAVE_USB3_2] = &qhs_usb3_2_cfg,
  1379. [SLAVE_USB3_MP] = &qhs_usb3_mp_cfg,
  1380. [SLAVE_USB4_0] = &qhs_usb4_0_cfg,
  1381. [SLAVE_USB4_1] = &qhs_usb4_1_cfg,
  1382. [SLAVE_USB4_2] = &qhs_usb4_2_cfg,
  1383. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1384. [SLAVE_LPASS_QTB_CFG] = &qss_lpass_qtb_cfg,
  1385. [SLAVE_CNOC_MNOC_CFG] = &qss_mnoc_cfg,
  1386. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  1387. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1388. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1389. };
  1390. static const struct qcom_icc_desc x1e80100_cnoc_cfg = {
  1391. .nodes = cnoc_cfg_nodes,
  1392. .num_nodes = ARRAY_SIZE(cnoc_cfg_nodes),
  1393. .bcms = cnoc_cfg_bcms,
  1394. .num_bcms = ARRAY_SIZE(cnoc_cfg_bcms),
  1395. };
  1396. static struct qcom_icc_bcm * const cnoc_main_bcms[] = {
  1397. &bcm_cn0,
  1398. };
  1399. static struct qcom_icc_node * const cnoc_main_nodes[] = {
  1400. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1401. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1402. [SLAVE_AOSS] = &qhs_aoss,
  1403. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1404. [SLAVE_APPSS] = &qns_apss,
  1405. [SLAVE_CNOC_CFG] = &qss_cfg,
  1406. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  1407. [SLAVE_IMEM] = &qxs_imem,
  1408. [SLAVE_PCIE_0] = &xs_pcie_0,
  1409. [SLAVE_PCIE_1] = &xs_pcie_1,
  1410. [SLAVE_PCIE_2] = &xs_pcie_2,
  1411. [SLAVE_PCIE_3] = &xs_pcie_3,
  1412. [SLAVE_PCIE_4] = &xs_pcie_4,
  1413. [SLAVE_PCIE_5] = &xs_pcie_5,
  1414. [SLAVE_PCIE_6A] = &xs_pcie_6a,
  1415. [SLAVE_PCIE_6B] = &xs_pcie_6b,
  1416. };
  1417. static const struct qcom_icc_desc x1e80100_cnoc_main = {
  1418. .nodes = cnoc_main_nodes,
  1419. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  1420. .bcms = cnoc_main_bcms,
  1421. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  1422. };
  1423. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1424. &bcm_sh0,
  1425. &bcm_sh1,
  1426. };
  1427. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1428. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1429. [MASTER_PCIE_TCU] = &alm_pcie_tcu,
  1430. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1431. [MASTER_APPSS_PROC] = &chm_apps,
  1432. [MASTER_GFX3D] = &qnm_gpu,
  1433. [MASTER_LPASS_GEM_NOC] = &qnm_lpass,
  1434. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1435. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1436. [MASTER_COMPUTE_NOC] = &qnm_nsp_noc,
  1437. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1438. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1439. [MASTER_GIC2] = &xm_gic,
  1440. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1441. [SLAVE_LLCC] = &qns_llcc,
  1442. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1443. };
  1444. static const struct qcom_icc_desc x1e80100_gem_noc = {
  1445. .nodes = gem_noc_nodes,
  1446. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1447. .bcms = gem_noc_bcms,
  1448. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1449. };
  1450. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1451. };
  1452. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1453. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  1454. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  1455. };
  1456. static const struct qcom_icc_desc x1e80100_lpass_ag_noc = {
  1457. .nodes = lpass_ag_noc_nodes,
  1458. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1459. .bcms = lpass_ag_noc_bcms,
  1460. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1461. };
  1462. static struct qcom_icc_bcm * const lpass_lpiaon_noc_bcms[] = {
  1463. &bcm_lp0,
  1464. };
  1465. static struct qcom_icc_node * const lpass_lpiaon_noc_nodes[] = {
  1466. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  1467. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  1468. };
  1469. static const struct qcom_icc_desc x1e80100_lpass_lpiaon_noc = {
  1470. .nodes = lpass_lpiaon_noc_nodes,
  1471. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  1472. .bcms = lpass_lpiaon_noc_bcms,
  1473. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  1474. };
  1475. static struct qcom_icc_bcm * const lpass_lpicx_noc_bcms[] = {
  1476. };
  1477. static struct qcom_icc_node * const lpass_lpicx_noc_nodes[] = {
  1478. [MASTER_LPASS_PROC] = &qxm_lpinoc_dsp_axim,
  1479. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  1480. };
  1481. static const struct qcom_icc_desc x1e80100_lpass_lpicx_noc = {
  1482. .nodes = lpass_lpicx_noc_nodes,
  1483. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  1484. .bcms = lpass_lpicx_noc_bcms,
  1485. .num_bcms = ARRAY_SIZE(lpass_lpicx_noc_bcms),
  1486. };
  1487. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1488. &bcm_acv,
  1489. &bcm_mc0,
  1490. };
  1491. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1492. [MASTER_LLCC] = &llcc_mc,
  1493. [SLAVE_EBI1] = &ebi,
  1494. };
  1495. static const struct qcom_icc_desc x1e80100_mc_virt = {
  1496. .nodes = mc_virt_nodes,
  1497. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1498. .bcms = mc_virt_bcms,
  1499. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1500. };
  1501. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1502. &bcm_mm0,
  1503. &bcm_mm1,
  1504. };
  1505. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1506. [MASTER_AV1_ENC] = &qnm_av1_enc,
  1507. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1508. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1509. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1510. [MASTER_EVA] = &qnm_eva,
  1511. [MASTER_MDP] = &qnm_mdp,
  1512. [MASTER_VIDEO] = &qnm_video,
  1513. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1514. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1515. [MASTER_CNOC_MNOC_CFG] = &qsm_mnoc_cfg,
  1516. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1517. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1518. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1519. };
  1520. static const struct qcom_icc_desc x1e80100_mmss_noc = {
  1521. .nodes = mmss_noc_nodes,
  1522. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1523. .bcms = mmss_noc_bcms,
  1524. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1525. };
  1526. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1527. &bcm_co0,
  1528. };
  1529. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1530. [MASTER_CDSP_PROC] = &qxm_nsp,
  1531. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1532. };
  1533. static const struct qcom_icc_desc x1e80100_nsp_noc = {
  1534. .nodes = nsp_noc_nodes,
  1535. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1536. .bcms = nsp_noc_bcms,
  1537. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1538. };
  1539. static struct qcom_icc_bcm * const pcie_center_anoc_bcms[] = {
  1540. &bcm_pc0,
  1541. };
  1542. static struct qcom_icc_node * const pcie_center_anoc_nodes[] = {
  1543. [MASTER_PCIE_NORTH] = &qnm_pcie_north_gem_noc,
  1544. [MASTER_PCIE_SOUTH] = &qnm_pcie_south_gem_noc,
  1545. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1546. };
  1547. static const struct qcom_icc_desc x1e80100_pcie_center_anoc = {
  1548. .nodes = pcie_center_anoc_nodes,
  1549. .num_nodes = ARRAY_SIZE(pcie_center_anoc_nodes),
  1550. .bcms = pcie_center_anoc_bcms,
  1551. .num_bcms = ARRAY_SIZE(pcie_center_anoc_bcms),
  1552. };
  1553. static struct qcom_icc_bcm * const pcie_north_anoc_bcms[] = {
  1554. };
  1555. static struct qcom_icc_node * const pcie_north_anoc_nodes[] = {
  1556. [MASTER_PCIE_3] = &xm_pcie_3,
  1557. [MASTER_PCIE_4] = &xm_pcie_4,
  1558. [MASTER_PCIE_5] = &xm_pcie_5,
  1559. [SLAVE_PCIE_NORTH] = &qns_pcie_north_gem_noc,
  1560. };
  1561. static const struct qcom_icc_desc x1e80100_pcie_north_anoc = {
  1562. .nodes = pcie_north_anoc_nodes,
  1563. .num_nodes = ARRAY_SIZE(pcie_north_anoc_nodes),
  1564. .bcms = pcie_north_anoc_bcms,
  1565. .num_bcms = ARRAY_SIZE(pcie_north_anoc_bcms),
  1566. };
  1567. static struct qcom_icc_bcm * const pcie_south_anoc_bcms[] = {
  1568. };
  1569. static struct qcom_icc_node * const pcie_south_anoc_nodes[] = {
  1570. [MASTER_PCIE_0] = &xm_pcie_0,
  1571. [MASTER_PCIE_1] = &xm_pcie_1,
  1572. [MASTER_PCIE_2] = &xm_pcie_2,
  1573. [MASTER_PCIE_6A] = &xm_pcie_6a,
  1574. [MASTER_PCIE_6B] = &xm_pcie_6b,
  1575. [SLAVE_PCIE_SOUTH] = &qns_pcie_south_gem_noc,
  1576. };
  1577. static const struct qcom_icc_desc x1e80100_pcie_south_anoc = {
  1578. .nodes = pcie_south_anoc_nodes,
  1579. .num_nodes = ARRAY_SIZE(pcie_south_anoc_nodes),
  1580. .bcms = pcie_south_anoc_bcms,
  1581. .num_bcms = ARRAY_SIZE(pcie_south_anoc_bcms),
  1582. };
  1583. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1584. &bcm_sn0,
  1585. &bcm_sn2,
  1586. &bcm_sn3,
  1587. &bcm_sn4,
  1588. };
  1589. static struct qcom_icc_node * const system_noc_nodes[] = {
  1590. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1591. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1592. [MASTER_GIC1] = &qnm_gic,
  1593. [MASTER_USB_NOC_SNOC] = &qnm_usb_anoc,
  1594. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1595. };
  1596. static const struct qcom_icc_desc x1e80100_system_noc = {
  1597. .nodes = system_noc_nodes,
  1598. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1599. .bcms = system_noc_bcms,
  1600. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1601. };
  1602. static struct qcom_icc_bcm * const usb_center_anoc_bcms[] = {
  1603. };
  1604. static struct qcom_icc_node * const usb_center_anoc_nodes[] = {
  1605. [MASTER_AGGRE_USB_NORTH] = &qnm_aggre_usb_north_snoc,
  1606. [MASTER_AGGRE_USB_SOUTH] = &qnm_aggre_usb_south_snoc,
  1607. [SLAVE_USB_NOC_SNOC] = &qns_aggre_usb_snoc,
  1608. };
  1609. static const struct qcom_icc_desc x1e80100_usb_center_anoc = {
  1610. .nodes = usb_center_anoc_nodes,
  1611. .num_nodes = ARRAY_SIZE(usb_center_anoc_nodes),
  1612. .bcms = usb_center_anoc_bcms,
  1613. .num_bcms = ARRAY_SIZE(usb_center_anoc_bcms),
  1614. };
  1615. static struct qcom_icc_bcm * const usb_north_anoc_bcms[] = {
  1616. };
  1617. static struct qcom_icc_node * const usb_north_anoc_nodes[] = {
  1618. [MASTER_USB2] = &xm_usb2_0,
  1619. [MASTER_USB3_MP] = &xm_usb3_mp,
  1620. [SLAVE_AGGRE_USB_NORTH] = &qns_aggre_usb_north_snoc,
  1621. };
  1622. static const struct qcom_icc_desc x1e80100_usb_north_anoc = {
  1623. .nodes = usb_north_anoc_nodes,
  1624. .num_nodes = ARRAY_SIZE(usb_north_anoc_nodes),
  1625. .bcms = usb_north_anoc_bcms,
  1626. .num_bcms = ARRAY_SIZE(usb_north_anoc_bcms),
  1627. };
  1628. static struct qcom_icc_bcm * const usb_south_anoc_bcms[] = {
  1629. };
  1630. static struct qcom_icc_node * const usb_south_anoc_nodes[] = {
  1631. [MASTER_USB3_0] = &xm_usb3_0,
  1632. [MASTER_USB3_1] = &xm_usb3_1,
  1633. [MASTER_USB3_2] = &xm_usb3_2,
  1634. [MASTER_USB4_0] = &xm_usb4_0,
  1635. [MASTER_USB4_1] = &xm_usb4_1,
  1636. [MASTER_USB4_2] = &xm_usb4_2,
  1637. [SLAVE_AGGRE_USB_SOUTH] = &qns_aggre_usb_south_snoc,
  1638. };
  1639. static const struct qcom_icc_desc x1e80100_usb_south_anoc = {
  1640. .nodes = usb_south_anoc_nodes,
  1641. .num_nodes = ARRAY_SIZE(usb_south_anoc_nodes),
  1642. .bcms = usb_south_anoc_bcms,
  1643. .num_bcms = ARRAY_SIZE(usb_south_anoc_bcms),
  1644. };
  1645. static const struct of_device_id qnoc_of_match[] = {
  1646. { .compatible = "qcom,x1e80100-aggre1-noc", .data = &x1e80100_aggre1_noc},
  1647. { .compatible = "qcom,x1e80100-aggre2-noc", .data = &x1e80100_aggre2_noc},
  1648. { .compatible = "qcom,x1e80100-clk-virt", .data = &x1e80100_clk_virt},
  1649. { .compatible = "qcom,x1e80100-cnoc-cfg", .data = &x1e80100_cnoc_cfg},
  1650. { .compatible = "qcom,x1e80100-cnoc-main", .data = &x1e80100_cnoc_main},
  1651. { .compatible = "qcom,x1e80100-gem-noc", .data = &x1e80100_gem_noc},
  1652. { .compatible = "qcom,x1e80100-lpass-ag-noc", .data = &x1e80100_lpass_ag_noc},
  1653. { .compatible = "qcom,x1e80100-lpass-lpiaon-noc", .data = &x1e80100_lpass_lpiaon_noc},
  1654. { .compatible = "qcom,x1e80100-lpass-lpicx-noc", .data = &x1e80100_lpass_lpicx_noc},
  1655. { .compatible = "qcom,x1e80100-mc-virt", .data = &x1e80100_mc_virt},
  1656. { .compatible = "qcom,x1e80100-mmss-noc", .data = &x1e80100_mmss_noc},
  1657. { .compatible = "qcom,x1e80100-nsp-noc", .data = &x1e80100_nsp_noc},
  1658. { .compatible = "qcom,x1e80100-pcie-center-anoc", .data = &x1e80100_pcie_center_anoc},
  1659. { .compatible = "qcom,x1e80100-pcie-north-anoc", .data = &x1e80100_pcie_north_anoc},
  1660. { .compatible = "qcom,x1e80100-pcie-south-anoc", .data = &x1e80100_pcie_south_anoc},
  1661. { .compatible = "qcom,x1e80100-system-noc", .data = &x1e80100_system_noc},
  1662. { .compatible = "qcom,x1e80100-usb-center-anoc", .data = &x1e80100_usb_center_anoc},
  1663. { .compatible = "qcom,x1e80100-usb-north-anoc", .data = &x1e80100_usb_north_anoc},
  1664. { .compatible = "qcom,x1e80100-usb-south-anoc", .data = &x1e80100_usb_south_anoc},
  1665. { }
  1666. };
  1667. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1668. static struct platform_driver qnoc_driver = {
  1669. .probe = qcom_icc_rpmh_probe,
  1670. .remove = qcom_icc_rpmh_remove,
  1671. .driver = {
  1672. .name = "qnoc-x1e80100",
  1673. .of_match_table = qnoc_of_match,
  1674. .sync_state = icc_sync_state,
  1675. },
  1676. };
  1677. static int __init qnoc_driver_init(void)
  1678. {
  1679. return platform_driver_register(&qnoc_driver);
  1680. }
  1681. core_initcall(qnoc_driver_init);
  1682. static void __exit qnoc_driver_exit(void)
  1683. {
  1684. platform_driver_unregister(&qnoc_driver);
  1685. }
  1686. module_exit(qnoc_driver_exit);
  1687. MODULE_DESCRIPTION("x1e80100 NoC driver");
  1688. MODULE_LICENSE("GPL");