sc8280xp.c 53 KB

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