glymur.c 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2025, Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/module.h>
  10. #include <linux/of_platform.h>
  11. #include <dt-bindings/interconnect/qcom,glymur-rpmh.h>
  12. #include "bcm-voter.h"
  13. #include "icc-rpmh.h"
  14. static struct qcom_icc_node qup0_core_slave = {
  15. .name = "qup0_core_slave",
  16. .channels = 1,
  17. .buswidth = 4,
  18. };
  19. static struct qcom_icc_node qup1_core_slave = {
  20. .name = "qup1_core_slave",
  21. .channels = 1,
  22. .buswidth = 4,
  23. };
  24. static struct qcom_icc_node qup2_core_slave = {
  25. .name = "qup2_core_slave",
  26. .channels = 1,
  27. .buswidth = 4,
  28. };
  29. static struct qcom_icc_node qhs_ahb2phy0 = {
  30. .name = "qhs_ahb2phy0",
  31. .channels = 1,
  32. .buswidth = 4,
  33. };
  34. static struct qcom_icc_node qhs_ahb2phy1 = {
  35. .name = "qhs_ahb2phy1",
  36. .channels = 1,
  37. .buswidth = 4,
  38. };
  39. static struct qcom_icc_node qhs_ahb2phy2 = {
  40. .name = "qhs_ahb2phy2",
  41. .channels = 1,
  42. .buswidth = 4,
  43. };
  44. static struct qcom_icc_node qhs_ahb2phy3 = {
  45. .name = "qhs_ahb2phy3",
  46. .channels = 1,
  47. .buswidth = 4,
  48. };
  49. static struct qcom_icc_node qhs_av1_enc_cfg = {
  50. .name = "qhs_av1_enc_cfg",
  51. .channels = 1,
  52. .buswidth = 4,
  53. };
  54. static struct qcom_icc_node qhs_camera_cfg = {
  55. .name = "qhs_camera_cfg",
  56. .channels = 1,
  57. .buswidth = 4,
  58. };
  59. static struct qcom_icc_node qhs_clk_ctl = {
  60. .name = "qhs_clk_ctl",
  61. .channels = 1,
  62. .buswidth = 4,
  63. };
  64. static struct qcom_icc_node qhs_crypto0_cfg = {
  65. .name = "qhs_crypto0_cfg",
  66. .channels = 1,
  67. .buswidth = 4,
  68. };
  69. static struct qcom_icc_node qhs_display_cfg = {
  70. .name = "qhs_display_cfg",
  71. .channels = 1,
  72. .buswidth = 4,
  73. };
  74. static struct qcom_icc_node qhs_gpuss_cfg = {
  75. .name = "qhs_gpuss_cfg",
  76. .channels = 1,
  77. .buswidth = 8,
  78. };
  79. static struct qcom_icc_node qhs_imem_cfg = {
  80. .name = "qhs_imem_cfg",
  81. .channels = 1,
  82. .buswidth = 4,
  83. };
  84. static struct qcom_icc_node qhs_pcie0_cfg = {
  85. .name = "qhs_pcie0_cfg",
  86. .channels = 1,
  87. .buswidth = 4,
  88. };
  89. static struct qcom_icc_node qhs_pcie1_cfg = {
  90. .name = "qhs_pcie1_cfg",
  91. .channels = 1,
  92. .buswidth = 4,
  93. };
  94. static struct qcom_icc_node qhs_pcie2_cfg = {
  95. .name = "qhs_pcie2_cfg",
  96. .channels = 1,
  97. .buswidth = 4,
  98. };
  99. static struct qcom_icc_node qhs_pcie3a_cfg = {
  100. .name = "qhs_pcie3a_cfg",
  101. .channels = 1,
  102. .buswidth = 4,
  103. };
  104. static struct qcom_icc_node qhs_pcie3b_cfg = {
  105. .name = "qhs_pcie3b_cfg",
  106. .channels = 1,
  107. .buswidth = 4,
  108. };
  109. static struct qcom_icc_node qhs_pcie4_cfg = {
  110. .name = "qhs_pcie4_cfg",
  111. .channels = 1,
  112. .buswidth = 4,
  113. };
  114. static struct qcom_icc_node qhs_pcie5_cfg = {
  115. .name = "qhs_pcie5_cfg",
  116. .channels = 1,
  117. .buswidth = 4,
  118. };
  119. static struct qcom_icc_node qhs_pcie6_cfg = {
  120. .name = "qhs_pcie6_cfg",
  121. .channels = 1,
  122. .buswidth = 4,
  123. };
  124. static struct qcom_icc_node qhs_pcie_rscc = {
  125. .name = "qhs_pcie_rscc",
  126. .channels = 1,
  127. .buswidth = 4,
  128. };
  129. static struct qcom_icc_node qhs_pdm = {
  130. .name = "qhs_pdm",
  131. .channels = 1,
  132. .buswidth = 4,
  133. };
  134. static struct qcom_icc_node qhs_prng = {
  135. .name = "qhs_prng",
  136. .channels = 1,
  137. .buswidth = 4,
  138. };
  139. static struct qcom_icc_node qhs_qdss_cfg = {
  140. .name = "qhs_qdss_cfg",
  141. .channels = 1,
  142. .buswidth = 4,
  143. };
  144. static struct qcom_icc_node qhs_qspi = {
  145. .name = "qhs_qspi",
  146. .channels = 1,
  147. .buswidth = 4,
  148. };
  149. static struct qcom_icc_node qhs_qup0 = {
  150. .name = "qhs_qup0",
  151. .channels = 1,
  152. .buswidth = 4,
  153. };
  154. static struct qcom_icc_node qhs_qup1 = {
  155. .name = "qhs_qup1",
  156. .channels = 1,
  157. .buswidth = 4,
  158. };
  159. static struct qcom_icc_node qhs_qup2 = {
  160. .name = "qhs_qup2",
  161. .channels = 1,
  162. .buswidth = 4,
  163. };
  164. static struct qcom_icc_node qhs_sdc2 = {
  165. .name = "qhs_sdc2",
  166. .channels = 1,
  167. .buswidth = 4,
  168. };
  169. static struct qcom_icc_node qhs_sdc4 = {
  170. .name = "qhs_sdc4",
  171. .channels = 1,
  172. .buswidth = 4,
  173. };
  174. static struct qcom_icc_node qhs_smmuv3_cfg = {
  175. .name = "qhs_smmuv3_cfg",
  176. .channels = 1,
  177. .buswidth = 8,
  178. };
  179. static struct qcom_icc_node qhs_tcsr = {
  180. .name = "qhs_tcsr",
  181. .channels = 1,
  182. .buswidth = 4,
  183. };
  184. static struct qcom_icc_node qhs_tlmm = {
  185. .name = "qhs_tlmm",
  186. .channels = 1,
  187. .buswidth = 4,
  188. };
  189. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  190. .name = "qhs_ufs_mem_cfg",
  191. .channels = 1,
  192. .buswidth = 4,
  193. };
  194. static struct qcom_icc_node qhs_usb2_0_cfg = {
  195. .name = "qhs_usb2_0_cfg",
  196. .channels = 1,
  197. .buswidth = 4,
  198. };
  199. static struct qcom_icc_node qhs_usb3_0_cfg = {
  200. .name = "qhs_usb3_0_cfg",
  201. .channels = 1,
  202. .buswidth = 4,
  203. };
  204. static struct qcom_icc_node qhs_usb3_1_cfg = {
  205. .name = "qhs_usb3_1_cfg",
  206. .channels = 1,
  207. .buswidth = 4,
  208. };
  209. static struct qcom_icc_node qhs_usb3_2_cfg = {
  210. .name = "qhs_usb3_2_cfg",
  211. .channels = 1,
  212. .buswidth = 4,
  213. };
  214. static struct qcom_icc_node qhs_usb3_mp_cfg = {
  215. .name = "qhs_usb3_mp_cfg",
  216. .channels = 1,
  217. .buswidth = 4,
  218. };
  219. static struct qcom_icc_node qhs_usb4_0_cfg = {
  220. .name = "qhs_usb4_0_cfg",
  221. .channels = 1,
  222. .buswidth = 4,
  223. };
  224. static struct qcom_icc_node qhs_usb4_1_cfg = {
  225. .name = "qhs_usb4_1_cfg",
  226. .channels = 1,
  227. .buswidth = 4,
  228. };
  229. static struct qcom_icc_node qhs_usb4_2_cfg = {
  230. .name = "qhs_usb4_2_cfg",
  231. .channels = 1,
  232. .buswidth = 4,
  233. };
  234. static struct qcom_icc_node qhs_venus_cfg = {
  235. .name = "qhs_venus_cfg",
  236. .channels = 1,
  237. .buswidth = 4,
  238. };
  239. static struct qcom_icc_node qss_lpass_qtb_cfg = {
  240. .name = "qss_lpass_qtb_cfg",
  241. .channels = 1,
  242. .buswidth = 4,
  243. };
  244. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  245. .name = "qss_nsp_qtb_cfg",
  246. .channels = 1,
  247. .buswidth = 4,
  248. };
  249. static struct qcom_icc_node xs_qdss_stm = {
  250. .name = "xs_qdss_stm",
  251. .channels = 1,
  252. .buswidth = 4,
  253. };
  254. static struct qcom_icc_node xs_sys_tcu_cfg = {
  255. .name = "xs_sys_tcu_cfg",
  256. .channels = 1,
  257. .buswidth = 8,
  258. };
  259. static struct qcom_icc_node qhs_aoss = {
  260. .name = "qhs_aoss",
  261. .channels = 1,
  262. .buswidth = 4,
  263. };
  264. static struct qcom_icc_node qhs_ipc_router = {
  265. .name = "qhs_ipc_router",
  266. .channels = 1,
  267. .buswidth = 4,
  268. };
  269. static struct qcom_icc_node qhs_soccp = {
  270. .name = "qhs_soccp",
  271. .channels = 1,
  272. .buswidth = 4,
  273. };
  274. static struct qcom_icc_node qhs_tme_cfg = {
  275. .name = "qhs_tme_cfg",
  276. .channels = 1,
  277. .buswidth = 4,
  278. };
  279. static struct qcom_icc_node qns_apss = {
  280. .name = "qns_apss",
  281. .channels = 1,
  282. .buswidth = 8,
  283. };
  284. static struct qcom_icc_node qxs_boot_imem = {
  285. .name = "qxs_boot_imem",
  286. .channels = 1,
  287. .buswidth = 16,
  288. };
  289. static struct qcom_icc_node qxs_imem = {
  290. .name = "qxs_imem",
  291. .channels = 1,
  292. .buswidth = 8,
  293. };
  294. static struct qcom_icc_node ebi = {
  295. .name = "ebi",
  296. .channels = 12,
  297. .buswidth = 4,
  298. };
  299. static struct qcom_icc_node srvc_mnoc = {
  300. .name = "srvc_mnoc",
  301. .channels = 1,
  302. .buswidth = 4,
  303. };
  304. static struct qcom_icc_node srvc_nsinoc = {
  305. .name = "srvc_nsinoc",
  306. .channels = 1,
  307. .buswidth = 4,
  308. };
  309. static struct qcom_icc_node srvc_pcie_east_aggre_noc = {
  310. .name = "srvc_pcie_east_aggre_noc",
  311. .channels = 1,
  312. .buswidth = 4,
  313. };
  314. static struct qcom_icc_node qhs_hscnoc_pcie_east_ms_mpu_cfg = {
  315. .name = "qhs_hscnoc_pcie_east_ms_mpu_cfg",
  316. .channels = 1,
  317. .buswidth = 4,
  318. };
  319. static struct qcom_icc_node srvc_pcie_east = {
  320. .name = "srvc_pcie_east",
  321. .channels = 1,
  322. .buswidth = 4,
  323. };
  324. static struct qcom_icc_node xs_pcie_0 = {
  325. .name = "xs_pcie_0",
  326. .channels = 1,
  327. .buswidth = 16,
  328. };
  329. static struct qcom_icc_node xs_pcie_1 = {
  330. .name = "xs_pcie_1",
  331. .channels = 1,
  332. .buswidth = 32,
  333. };
  334. static struct qcom_icc_node xs_pcie_5 = {
  335. .name = "xs_pcie_5",
  336. .channels = 1,
  337. .buswidth = 32,
  338. };
  339. static struct qcom_icc_node srvc_pcie_west_aggre_noc = {
  340. .name = "srvc_pcie_west_aggre_noc",
  341. .channels = 1,
  342. .buswidth = 4,
  343. };
  344. static struct qcom_icc_node qhs_hscnoc_pcie_west_ms_mpu_cfg = {
  345. .name = "qhs_hscnoc_pcie_west_ms_mpu_cfg",
  346. .channels = 1,
  347. .buswidth = 4,
  348. };
  349. static struct qcom_icc_node srvc_pcie_west = {
  350. .name = "srvc_pcie_west",
  351. .channels = 1,
  352. .buswidth = 4,
  353. };
  354. static struct qcom_icc_node xs_pcie_2 = {
  355. .name = "xs_pcie_2",
  356. .channels = 1,
  357. .buswidth = 16,
  358. };
  359. static struct qcom_icc_node xs_pcie_3a = {
  360. .name = "xs_pcie_3a",
  361. .channels = 1,
  362. .buswidth = 64,
  363. };
  364. static struct qcom_icc_node xs_pcie_3b = {
  365. .name = "xs_pcie_3b",
  366. .channels = 1,
  367. .buswidth = 32,
  368. };
  369. static struct qcom_icc_node xs_pcie_4 = {
  370. .name = "xs_pcie_4",
  371. .channels = 1,
  372. .buswidth = 16,
  373. };
  374. static struct qcom_icc_node xs_pcie_6 = {
  375. .name = "xs_pcie_6",
  376. .channels = 1,
  377. .buswidth = 16,
  378. };
  379. static struct qcom_icc_node qup0_core_master = {
  380. .name = "qup0_core_master",
  381. .channels = 1,
  382. .buswidth = 4,
  383. .num_links = 1,
  384. .link_nodes = { &qup0_core_slave },
  385. };
  386. static struct qcom_icc_node qup1_core_master = {
  387. .name = "qup1_core_master",
  388. .channels = 1,
  389. .buswidth = 4,
  390. .num_links = 1,
  391. .link_nodes = { &qup1_core_slave },
  392. };
  393. static struct qcom_icc_node qup2_core_master = {
  394. .name = "qup2_core_master",
  395. .channels = 1,
  396. .buswidth = 4,
  397. .num_links = 1,
  398. .link_nodes = { &qup2_core_slave },
  399. };
  400. static struct qcom_icc_node llcc_mc = {
  401. .name = "llcc_mc",
  402. .channels = 12,
  403. .buswidth = 4,
  404. .num_links = 1,
  405. .link_nodes = { &ebi },
  406. };
  407. static struct qcom_icc_node qsm_mnoc_cfg = {
  408. .name = "qsm_mnoc_cfg",
  409. .channels = 1,
  410. .buswidth = 4,
  411. .num_links = 1,
  412. .link_nodes = { &srvc_mnoc },
  413. };
  414. static struct qcom_icc_node qsm_pcie_east_anoc_cfg = {
  415. .name = "qsm_pcie_east_anoc_cfg",
  416. .channels = 1,
  417. .buswidth = 4,
  418. .num_links = 1,
  419. .link_nodes = { &srvc_pcie_east_aggre_noc },
  420. };
  421. static struct qcom_icc_node qnm_hscnoc_pcie_east = {
  422. .name = "qnm_hscnoc_pcie_east",
  423. .channels = 1,
  424. .buswidth = 32,
  425. .num_links = 3,
  426. .link_nodes = { &xs_pcie_0, &xs_pcie_1,
  427. &xs_pcie_5 },
  428. };
  429. static struct qcom_icc_node qsm_cnoc_pcie_east_slave_cfg = {
  430. .name = "qsm_cnoc_pcie_east_slave_cfg",
  431. .channels = 1,
  432. .buswidth = 4,
  433. .num_links = 2,
  434. .link_nodes = { &qhs_hscnoc_pcie_east_ms_mpu_cfg,
  435. &srvc_pcie_east },
  436. };
  437. static struct qcom_icc_node qsm_pcie_west_anoc_cfg = {
  438. .name = "qsm_pcie_west_anoc_cfg",
  439. .channels = 1,
  440. .buswidth = 4,
  441. .num_links = 1,
  442. .link_nodes = { &srvc_pcie_west_aggre_noc },
  443. };
  444. static struct qcom_icc_node qnm_hscnoc_pcie_west = {
  445. .name = "qnm_hscnoc_pcie_west",
  446. .channels = 1,
  447. .buswidth = 32,
  448. .num_links = 5,
  449. .link_nodes = { &xs_pcie_2, &xs_pcie_3a,
  450. &xs_pcie_3b, &xs_pcie_4,
  451. &xs_pcie_6 },
  452. };
  453. static struct qcom_icc_node qsm_cnoc_pcie_west_slave_cfg = {
  454. .name = "qsm_cnoc_pcie_west_slave_cfg",
  455. .channels = 1,
  456. .buswidth = 4,
  457. .num_links = 2,
  458. .link_nodes = { &qhs_hscnoc_pcie_west_ms_mpu_cfg,
  459. &srvc_pcie_west },
  460. };
  461. static struct qcom_icc_node qss_cnoc_pcie_slave_east_cfg = {
  462. .name = "qss_cnoc_pcie_slave_east_cfg",
  463. .channels = 1,
  464. .buswidth = 4,
  465. .num_links = 1,
  466. .link_nodes = { &qsm_cnoc_pcie_east_slave_cfg },
  467. };
  468. static struct qcom_icc_node qss_cnoc_pcie_slave_west_cfg = {
  469. .name = "qss_cnoc_pcie_slave_west_cfg",
  470. .channels = 1,
  471. .buswidth = 4,
  472. .num_links = 1,
  473. .link_nodes = { &qsm_cnoc_pcie_west_slave_cfg },
  474. };
  475. static struct qcom_icc_node qss_mnoc_cfg = {
  476. .name = "qss_mnoc_cfg",
  477. .channels = 1,
  478. .buswidth = 4,
  479. .num_links = 1,
  480. .link_nodes = { &qsm_mnoc_cfg },
  481. };
  482. static struct qcom_icc_node qss_pcie_east_anoc_cfg = {
  483. .name = "qss_pcie_east_anoc_cfg",
  484. .channels = 1,
  485. .buswidth = 4,
  486. .num_links = 1,
  487. .link_nodes = { &qsm_pcie_east_anoc_cfg },
  488. };
  489. static struct qcom_icc_node qss_pcie_west_anoc_cfg = {
  490. .name = "qss_pcie_west_anoc_cfg",
  491. .channels = 1,
  492. .buswidth = 4,
  493. .num_links = 1,
  494. .link_nodes = { &qsm_pcie_west_anoc_cfg },
  495. };
  496. static struct qcom_icc_node qns_llcc = {
  497. .name = "qns_llcc",
  498. .channels = 12,
  499. .buswidth = 16,
  500. .num_links = 1,
  501. .link_nodes = { &llcc_mc },
  502. };
  503. static struct qcom_icc_node qns_pcie_east = {
  504. .name = "qns_pcie_east",
  505. .channels = 1,
  506. .buswidth = 32,
  507. .num_links = 1,
  508. .link_nodes = { &qnm_hscnoc_pcie_east },
  509. };
  510. static struct qcom_icc_node qns_pcie_west = {
  511. .name = "qns_pcie_west",
  512. .channels = 1,
  513. .buswidth = 32,
  514. .num_links = 1,
  515. .link_nodes = { &qnm_hscnoc_pcie_west },
  516. };
  517. static struct qcom_icc_node qsm_cfg = {
  518. .name = "qsm_cfg",
  519. .channels = 1,
  520. .buswidth = 4,
  521. .num_links = 51,
  522. .link_nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1,
  523. &qhs_ahb2phy2, &qhs_ahb2phy3,
  524. &qhs_av1_enc_cfg, &qhs_camera_cfg,
  525. &qhs_clk_ctl, &qhs_crypto0_cfg,
  526. &qhs_display_cfg, &qhs_gpuss_cfg,
  527. &qhs_imem_cfg, &qhs_pcie0_cfg,
  528. &qhs_pcie1_cfg, &qhs_pcie2_cfg,
  529. &qhs_pcie3a_cfg, &qhs_pcie3b_cfg,
  530. &qhs_pcie4_cfg, &qhs_pcie5_cfg,
  531. &qhs_pcie6_cfg, &qhs_pcie_rscc,
  532. &qhs_pdm, &qhs_prng,
  533. &qhs_qdss_cfg, &qhs_qspi,
  534. &qhs_qup0, &qhs_qup1,
  535. &qhs_qup2, &qhs_sdc2,
  536. &qhs_sdc4, &qhs_smmuv3_cfg,
  537. &qhs_tcsr, &qhs_tlmm,
  538. &qhs_ufs_mem_cfg, &qhs_usb2_0_cfg,
  539. &qhs_usb3_0_cfg, &qhs_usb3_1_cfg,
  540. &qhs_usb3_2_cfg, &qhs_usb3_mp_cfg,
  541. &qhs_usb4_0_cfg, &qhs_usb4_1_cfg,
  542. &qhs_usb4_2_cfg, &qhs_venus_cfg,
  543. &qss_cnoc_pcie_slave_east_cfg, &qss_cnoc_pcie_slave_west_cfg,
  544. &qss_lpass_qtb_cfg, &qss_mnoc_cfg,
  545. &qss_nsp_qtb_cfg, &qss_pcie_east_anoc_cfg,
  546. &qss_pcie_west_anoc_cfg, &xs_qdss_stm,
  547. &xs_sys_tcu_cfg },
  548. };
  549. static struct qcom_icc_node xm_gic = {
  550. .name = "xm_gic",
  551. .channels = 1,
  552. .buswidth = 8,
  553. .qosbox = &(const struct qcom_icc_qosbox) {
  554. .num_ports = 1,
  555. .port_offsets = { 0x33000 },
  556. .prio = 0,
  557. .urg_fwd = 1,
  558. .prio_fwd_disable = 0,
  559. },
  560. .num_links = 1,
  561. .link_nodes = { &qns_llcc },
  562. };
  563. static struct qcom_icc_node qss_cfg = {
  564. .name = "qss_cfg",
  565. .channels = 1,
  566. .buswidth = 4,
  567. .num_links = 1,
  568. .link_nodes = { &qsm_cfg },
  569. };
  570. static struct qcom_icc_node qnm_hscnoc_cnoc = {
  571. .name = "qnm_hscnoc_cnoc",
  572. .channels = 1,
  573. .buswidth = 16,
  574. .num_links = 8,
  575. .link_nodes = { &qhs_aoss, &qhs_ipc_router,
  576. &qhs_soccp, &qhs_tme_cfg,
  577. &qns_apss, &qss_cfg,
  578. &qxs_boot_imem, &qxs_imem },
  579. };
  580. static struct qcom_icc_node qns_hscnoc_cnoc = {
  581. .name = "qns_hscnoc_cnoc",
  582. .channels = 1,
  583. .buswidth = 16,
  584. .num_links = 1,
  585. .link_nodes = { &qnm_hscnoc_cnoc },
  586. };
  587. static struct qcom_icc_node alm_gpu_tcu = {
  588. .name = "alm_gpu_tcu",
  589. .channels = 1,
  590. .buswidth = 8,
  591. .qosbox = &(const struct qcom_icc_qosbox) {
  592. .num_ports = 1,
  593. .port_offsets = { 0x933000 },
  594. .prio = 1,
  595. .urg_fwd = 0,
  596. .prio_fwd_disable = 1,
  597. },
  598. .num_links = 2,
  599. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc },
  600. };
  601. static struct qcom_icc_node alm_pcie_qtc = {
  602. .name = "alm_pcie_qtc",
  603. .channels = 1,
  604. .buswidth = 8,
  605. .qosbox = &(const struct qcom_icc_qosbox) {
  606. .num_ports = 1,
  607. .port_offsets = { 0x51f000 },
  608. .prio = 3,
  609. .urg_fwd = 0,
  610. .prio_fwd_disable = 1,
  611. },
  612. .num_links = 2,
  613. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc },
  614. };
  615. static struct qcom_icc_node alm_sys_tcu = {
  616. .name = "alm_sys_tcu",
  617. .channels = 1,
  618. .buswidth = 8,
  619. .qosbox = &(const struct qcom_icc_qosbox) {
  620. .num_ports = 1,
  621. .port_offsets = { 0x51f080 },
  622. .prio = 6,
  623. .urg_fwd = 0,
  624. .prio_fwd_disable = 1,
  625. },
  626. .num_links = 2,
  627. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc },
  628. };
  629. static struct qcom_icc_node chm_apps = {
  630. .name = "chm_apps",
  631. .channels = 6,
  632. .buswidth = 32,
  633. .num_links = 4,
  634. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  635. &qns_pcie_east, &qns_pcie_west },
  636. };
  637. static struct qcom_icc_node qnm_aggre_noc_east = {
  638. .name = "qnm_aggre_noc_east",
  639. .channels = 1,
  640. .buswidth = 32,
  641. .qosbox = &(const struct qcom_icc_qosbox) {
  642. .num_ports = 1,
  643. .port_offsets = { 0x934000 },
  644. .prio = 2,
  645. .urg_fwd = 1,
  646. .prio_fwd_disable = 1,
  647. },
  648. .num_links = 4,
  649. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  650. &qns_pcie_east, &qns_pcie_west },
  651. };
  652. static struct qcom_icc_node qnm_gpu = {
  653. .name = "qnm_gpu",
  654. .channels = 4,
  655. .buswidth = 32,
  656. .qosbox = &(const struct qcom_icc_qosbox) {
  657. .num_ports = 4,
  658. .port_offsets = { 0x935000, 0x936000, 0x937000, 0x938000 },
  659. .prio = 0,
  660. .urg_fwd = 1,
  661. .prio_fwd_disable = 1,
  662. },
  663. .num_links = 4,
  664. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  665. &qns_pcie_east, &qns_pcie_west },
  666. };
  667. static struct qcom_icc_node qnm_lpass = {
  668. .name = "qnm_lpass",
  669. .channels = 1,
  670. .buswidth = 16,
  671. .qosbox = &(const struct qcom_icc_qosbox) {
  672. .num_ports = 1,
  673. .port_offsets = { 0x939000 },
  674. .prio = 0,
  675. .urg_fwd = 1,
  676. .prio_fwd_disable = 0,
  677. },
  678. .num_links = 4,
  679. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  680. &qns_pcie_east, &qns_pcie_west },
  681. };
  682. static struct qcom_icc_node qnm_mnoc_hf = {
  683. .name = "qnm_mnoc_hf",
  684. .channels = 2,
  685. .buswidth = 32,
  686. .qosbox = &(const struct qcom_icc_qosbox) {
  687. .num_ports = 2,
  688. .port_offsets = { 0x721000, 0x721080 },
  689. .prio = 0,
  690. .urg_fwd = 1,
  691. .prio_fwd_disable = 0,
  692. },
  693. .num_links = 4,
  694. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  695. &qns_pcie_east, &qns_pcie_west },
  696. };
  697. static struct qcom_icc_node qnm_mnoc_sf = {
  698. .name = "qnm_mnoc_sf",
  699. .channels = 2,
  700. .buswidth = 32,
  701. .qosbox = &(const struct qcom_icc_qosbox) {
  702. .num_ports = 2,
  703. .port_offsets = { 0x721100, 0x721180 },
  704. .prio = 0,
  705. .urg_fwd = 1,
  706. .prio_fwd_disable = 0,
  707. },
  708. .num_links = 4,
  709. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  710. &qns_pcie_east, &qns_pcie_west },
  711. };
  712. static struct qcom_icc_node qnm_nsp_noc = {
  713. .name = "qnm_nsp_noc",
  714. .channels = 4,
  715. .buswidth = 32,
  716. .qosbox = &(const struct qcom_icc_qosbox) {
  717. .num_ports = 4,
  718. .port_offsets = { 0x816000, 0x816080, 0x816100, 0x816180 },
  719. .prio = 0,
  720. .urg_fwd = 1,
  721. .prio_fwd_disable = 1,
  722. },
  723. .num_links = 4,
  724. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  725. &qns_pcie_east, &qns_pcie_west },
  726. };
  727. static struct qcom_icc_node qnm_pcie_east = {
  728. .name = "qnm_pcie_east",
  729. .channels = 1,
  730. .buswidth = 32,
  731. .qosbox = &(const struct qcom_icc_qosbox) {
  732. .num_ports = 1,
  733. .port_offsets = { 0x93a000 },
  734. .prio = 2,
  735. .urg_fwd = 1,
  736. .prio_fwd_disable = 1,
  737. },
  738. .num_links = 2,
  739. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc },
  740. };
  741. static struct qcom_icc_node qnm_pcie_west = {
  742. .name = "qnm_pcie_west",
  743. .channels = 1,
  744. .buswidth = 64,
  745. .qosbox = &(const struct qcom_icc_qosbox) {
  746. .num_ports = 1,
  747. .port_offsets = { 0x721200 },
  748. .prio = 2,
  749. .urg_fwd = 1,
  750. .prio_fwd_disable = 1,
  751. },
  752. .num_links = 2,
  753. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc },
  754. };
  755. static struct qcom_icc_node qnm_snoc_sf = {
  756. .name = "qnm_snoc_sf",
  757. .channels = 1,
  758. .buswidth = 64,
  759. .qosbox = &(const struct qcom_icc_qosbox) {
  760. .num_ports = 1,
  761. .port_offsets = { 0x51f100 },
  762. .prio = 2,
  763. .urg_fwd = 1,
  764. .prio_fwd_disable = 1,
  765. },
  766. .num_links = 4,
  767. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  768. &qns_pcie_east, &qns_pcie_west },
  769. };
  770. static struct qcom_icc_node qxm_wlan_q6 = {
  771. .name = "qxm_wlan_q6",
  772. .channels = 1,
  773. .buswidth = 8,
  774. .num_links = 4,
  775. .link_nodes = { &qns_hscnoc_cnoc, &qns_llcc,
  776. &qns_pcie_east, &qns_pcie_west },
  777. };
  778. static struct qcom_icc_node qns_a4noc_hscnoc = {
  779. .name = "qns_a4noc_hscnoc",
  780. .channels = 1,
  781. .buswidth = 32,
  782. .num_links = 1,
  783. .link_nodes = { &qnm_aggre_noc_east },
  784. };
  785. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  786. .name = "qns_lpass_ag_noc_gemnoc",
  787. .channels = 1,
  788. .buswidth = 16,
  789. .num_links = 1,
  790. .link_nodes = { &qnm_lpass },
  791. };
  792. static struct qcom_icc_node qns_mem_noc_hf = {
  793. .name = "qns_mem_noc_hf",
  794. .channels = 2,
  795. .buswidth = 32,
  796. .num_links = 1,
  797. .link_nodes = { &qnm_mnoc_hf },
  798. };
  799. static struct qcom_icc_node qns_mem_noc_sf = {
  800. .name = "qns_mem_noc_sf",
  801. .channels = 2,
  802. .buswidth = 32,
  803. .num_links = 1,
  804. .link_nodes = { &qnm_mnoc_sf },
  805. };
  806. static struct qcom_icc_node qns_nsp_hscnoc = {
  807. .name = "qns_nsp_hscnoc",
  808. .channels = 4,
  809. .buswidth = 32,
  810. .num_links = 1,
  811. .link_nodes = { &qnm_nsp_noc },
  812. };
  813. static struct qcom_icc_node qns_pcie_east_mem_noc = {
  814. .name = "qns_pcie_east_mem_noc",
  815. .channels = 1,
  816. .buswidth = 32,
  817. .num_links = 1,
  818. .link_nodes = { &qnm_pcie_east },
  819. };
  820. static struct qcom_icc_node qns_pcie_west_mem_noc = {
  821. .name = "qns_pcie_west_mem_noc",
  822. .channels = 1,
  823. .buswidth = 64,
  824. .num_links = 1,
  825. .link_nodes = { &qnm_pcie_west },
  826. };
  827. static struct qcom_icc_node qns_gemnoc_sf = {
  828. .name = "qns_gemnoc_sf",
  829. .channels = 1,
  830. .buswidth = 64,
  831. .num_links = 1,
  832. .link_nodes = { &qnm_snoc_sf },
  833. };
  834. static struct qcom_icc_node xm_usb3_0 = {
  835. .name = "xm_usb3_0",
  836. .channels = 1,
  837. .buswidth = 8,
  838. .qosbox = &(const struct qcom_icc_qosbox) {
  839. .num_ports = 1,
  840. .port_offsets = { 0xa000 },
  841. .prio = 0,
  842. .urg_fwd = 0,
  843. .prio_fwd_disable = 1,
  844. },
  845. .num_links = 1,
  846. .link_nodes = { &qns_a4noc_hscnoc },
  847. };
  848. static struct qcom_icc_node xm_usb3_1 = {
  849. .name = "xm_usb3_1",
  850. .channels = 1,
  851. .buswidth = 8,
  852. .qosbox = &(const struct qcom_icc_qosbox) {
  853. .num_ports = 1,
  854. .port_offsets = { 0xb000 },
  855. .prio = 0,
  856. .urg_fwd = 0,
  857. .prio_fwd_disable = 1,
  858. },
  859. .num_links = 1,
  860. .link_nodes = { &qns_a4noc_hscnoc },
  861. };
  862. static struct qcom_icc_node xm_usb4_0 = {
  863. .name = "xm_usb4_0",
  864. .channels = 1,
  865. .buswidth = 16,
  866. .qosbox = &(const struct qcom_icc_qosbox) {
  867. .num_ports = 1,
  868. .port_offsets = { 0xc000 },
  869. .prio = 0,
  870. .urg_fwd = 0,
  871. .prio_fwd_disable = 1,
  872. },
  873. .num_links = 1,
  874. .link_nodes = { &qns_a4noc_hscnoc },
  875. };
  876. static struct qcom_icc_node xm_usb4_1 = {
  877. .name = "xm_usb4_1",
  878. .channels = 1,
  879. .buswidth = 32,
  880. .qosbox = &(const struct qcom_icc_qosbox) {
  881. .num_ports = 1,
  882. .port_offsets = { 0xd000 },
  883. .prio = 0,
  884. .urg_fwd = 0,
  885. .prio_fwd_disable = 1,
  886. },
  887. .num_links = 1,
  888. .link_nodes = { &qns_a4noc_hscnoc },
  889. };
  890. static struct qcom_icc_node qnm_lpiaon_noc = {
  891. .name = "qnm_lpiaon_noc",
  892. .channels = 1,
  893. .buswidth = 16,
  894. .num_links = 1,
  895. .link_nodes = { &qns_lpass_ag_noc_gemnoc },
  896. };
  897. static struct qcom_icc_node qnm_av1_enc = {
  898. .name = "qnm_av1_enc",
  899. .channels = 1,
  900. .buswidth = 32,
  901. .qosbox = &(const struct qcom_icc_qosbox) {
  902. .num_ports = 1,
  903. .port_offsets = { 0x30000 },
  904. .prio = 4,
  905. .urg_fwd = 1,
  906. .prio_fwd_disable = 1,
  907. },
  908. .num_links = 1,
  909. .link_nodes = { &qns_mem_noc_sf },
  910. };
  911. static struct qcom_icc_node qnm_camnoc_hf = {
  912. .name = "qnm_camnoc_hf",
  913. .channels = 2,
  914. .buswidth = 32,
  915. .qosbox = &(const struct qcom_icc_qosbox) {
  916. .num_ports = 2,
  917. .port_offsets = { 0x29000, 0x2a000 },
  918. .prio = 0,
  919. .urg_fwd = 1,
  920. .prio_fwd_disable = 0,
  921. },
  922. .num_links = 1,
  923. .link_nodes = { &qns_mem_noc_hf },
  924. };
  925. static struct qcom_icc_node qnm_camnoc_icp = {
  926. .name = "qnm_camnoc_icp",
  927. .channels = 1,
  928. .buswidth = 8,
  929. .qosbox = &(const struct qcom_icc_qosbox) {
  930. .num_ports = 1,
  931. .port_offsets = { 0x2b000 },
  932. .prio = 4,
  933. .urg_fwd = 1,
  934. .prio_fwd_disable = 1,
  935. },
  936. .num_links = 1,
  937. .link_nodes = { &qns_mem_noc_sf },
  938. };
  939. static struct qcom_icc_node qnm_camnoc_sf = {
  940. .name = "qnm_camnoc_sf",
  941. .channels = 2,
  942. .buswidth = 32,
  943. .qosbox = &(const struct qcom_icc_qosbox) {
  944. .num_ports = 2,
  945. .port_offsets = { 0x2c000, 0x2d000 },
  946. .prio = 0,
  947. .urg_fwd = 1,
  948. .prio_fwd_disable = 0,
  949. },
  950. .num_links = 1,
  951. .link_nodes = { &qns_mem_noc_sf },
  952. };
  953. static struct qcom_icc_node qnm_eva = {
  954. .name = "qnm_eva",
  955. .channels = 1,
  956. .buswidth = 32,
  957. .qosbox = &(const struct qcom_icc_qosbox) {
  958. .num_ports = 1,
  959. .port_offsets = { 0x34000 },
  960. .prio = 0,
  961. .urg_fwd = 1,
  962. .prio_fwd_disable = 0,
  963. },
  964. .num_links = 1,
  965. .link_nodes = { &qns_mem_noc_sf },
  966. };
  967. static struct qcom_icc_node qnm_mdp = {
  968. .name = "qnm_mdp",
  969. .channels = 2,
  970. .buswidth = 32,
  971. .qosbox = &(const struct qcom_icc_qosbox) {
  972. .num_ports = 2,
  973. .port_offsets = { 0x2e000, 0x2f000 },
  974. .prio = 0,
  975. .urg_fwd = 1,
  976. .prio_fwd_disable = 0,
  977. },
  978. .num_links = 1,
  979. .link_nodes = { &qns_mem_noc_hf },
  980. };
  981. static struct qcom_icc_node qnm_vapss_hcp = {
  982. .name = "qnm_vapss_hcp",
  983. .channels = 1,
  984. .buswidth = 32,
  985. .num_links = 1,
  986. .link_nodes = { &qns_mem_noc_sf },
  987. };
  988. static struct qcom_icc_node qnm_video = {
  989. .name = "qnm_video",
  990. .channels = 4,
  991. .buswidth = 32,
  992. .qosbox = &(const struct qcom_icc_qosbox) {
  993. .num_ports = 4,
  994. .port_offsets = { 0x31000, 0x32000, 0x37000, 0x38000 },
  995. .prio = 0,
  996. .urg_fwd = 1,
  997. .prio_fwd_disable = 0,
  998. },
  999. .num_links = 1,
  1000. .link_nodes = { &qns_mem_noc_sf },
  1001. };
  1002. static struct qcom_icc_node qnm_video_cv_cpu = {
  1003. .name = "qnm_video_cv_cpu",
  1004. .channels = 1,
  1005. .buswidth = 8,
  1006. .qosbox = &(const struct qcom_icc_qosbox) {
  1007. .num_ports = 1,
  1008. .port_offsets = { 0x33000 },
  1009. .prio = 4,
  1010. .urg_fwd = 1,
  1011. .prio_fwd_disable = 1,
  1012. },
  1013. .num_links = 1,
  1014. .link_nodes = { &qns_mem_noc_sf },
  1015. };
  1016. static struct qcom_icc_node qnm_video_v_cpu = {
  1017. .name = "qnm_video_v_cpu",
  1018. .channels = 1,
  1019. .buswidth = 8,
  1020. .qosbox = &(const struct qcom_icc_qosbox) {
  1021. .num_ports = 1,
  1022. .port_offsets = { 0x35000 },
  1023. .prio = 4,
  1024. .urg_fwd = 1,
  1025. .prio_fwd_disable = 1,
  1026. },
  1027. .num_links = 1,
  1028. .link_nodes = { &qns_mem_noc_sf },
  1029. };
  1030. static struct qcom_icc_node qnm_nsp = {
  1031. .name = "qnm_nsp",
  1032. .channels = 4,
  1033. .buswidth = 32,
  1034. .num_links = 1,
  1035. .link_nodes = { &qns_nsp_hscnoc },
  1036. };
  1037. static struct qcom_icc_node xm_pcie_0 = {
  1038. .name = "xm_pcie_0",
  1039. .channels = 1,
  1040. .buswidth = 16,
  1041. .qosbox = &(const struct qcom_icc_qosbox) {
  1042. .num_ports = 1,
  1043. .port_offsets = { 0xb000 },
  1044. .prio = 2,
  1045. .urg_fwd = 0,
  1046. .prio_fwd_disable = 0,
  1047. },
  1048. .num_links = 1,
  1049. .link_nodes = { &qns_pcie_east_mem_noc },
  1050. };
  1051. static struct qcom_icc_node xm_pcie_1 = {
  1052. .name = "xm_pcie_1",
  1053. .channels = 1,
  1054. .buswidth = 32,
  1055. .qosbox = &(const struct qcom_icc_qosbox) {
  1056. .num_ports = 1,
  1057. .port_offsets = { 0xc000 },
  1058. .prio = 2,
  1059. .urg_fwd = 0,
  1060. .prio_fwd_disable = 0,
  1061. },
  1062. .num_links = 1,
  1063. .link_nodes = { &qns_pcie_east_mem_noc },
  1064. };
  1065. static struct qcom_icc_node xm_pcie_5 = {
  1066. .name = "xm_pcie_5",
  1067. .channels = 1,
  1068. .buswidth = 32,
  1069. .qosbox = &(const struct qcom_icc_qosbox) {
  1070. .num_ports = 1,
  1071. .port_offsets = { 0xd000 },
  1072. .prio = 2,
  1073. .urg_fwd = 0,
  1074. .prio_fwd_disable = 0,
  1075. },
  1076. .num_links = 1,
  1077. .link_nodes = { &qns_pcie_east_mem_noc },
  1078. };
  1079. static struct qcom_icc_node xm_pcie_2 = {
  1080. .name = "xm_pcie_2",
  1081. .channels = 1,
  1082. .buswidth = 16,
  1083. .qosbox = &(const struct qcom_icc_qosbox) {
  1084. .num_ports = 1,
  1085. .port_offsets = { 0xd000 },
  1086. .prio = 2,
  1087. .urg_fwd = 0,
  1088. .prio_fwd_disable = 0,
  1089. },
  1090. .num_links = 1,
  1091. .link_nodes = { &qns_pcie_west_mem_noc },
  1092. };
  1093. static struct qcom_icc_node xm_pcie_3a = {
  1094. .name = "xm_pcie_3a",
  1095. .channels = 1,
  1096. .buswidth = 64,
  1097. .qosbox = &(const struct qcom_icc_qosbox) {
  1098. .num_ports = 1,
  1099. .port_offsets = { 0xd200 },
  1100. .prio = 2,
  1101. .urg_fwd = 0,
  1102. .prio_fwd_disable = 0,
  1103. },
  1104. .num_links = 1,
  1105. .link_nodes = { &qns_pcie_west_mem_noc },
  1106. };
  1107. static struct qcom_icc_node xm_pcie_3b = {
  1108. .name = "xm_pcie_3b",
  1109. .channels = 1,
  1110. .buswidth = 32,
  1111. .qosbox = &(const struct qcom_icc_qosbox) {
  1112. .num_ports = 1,
  1113. .port_offsets = { 0xd400 },
  1114. .prio = 2,
  1115. .urg_fwd = 0,
  1116. .prio_fwd_disable = 0,
  1117. },
  1118. .num_links = 1,
  1119. .link_nodes = { &qns_pcie_west_mem_noc },
  1120. };
  1121. static struct qcom_icc_node xm_pcie_4 = {
  1122. .name = "xm_pcie_4",
  1123. .channels = 1,
  1124. .buswidth = 16,
  1125. .qosbox = &(const struct qcom_icc_qosbox) {
  1126. .num_ports = 1,
  1127. .port_offsets = { 0xd600 },
  1128. .prio = 2,
  1129. .urg_fwd = 0,
  1130. .prio_fwd_disable = 0,
  1131. },
  1132. .num_links = 1,
  1133. .link_nodes = { &qns_pcie_west_mem_noc },
  1134. };
  1135. static struct qcom_icc_node xm_pcie_6 = {
  1136. .name = "xm_pcie_6",
  1137. .channels = 1,
  1138. .buswidth = 16,
  1139. .qosbox = &(const struct qcom_icc_qosbox) {
  1140. .num_ports = 1,
  1141. .port_offsets = { 0xd800 },
  1142. .prio = 2,
  1143. .urg_fwd = 0,
  1144. .prio_fwd_disable = 0,
  1145. },
  1146. .num_links = 1,
  1147. .link_nodes = { &qns_pcie_west_mem_noc },
  1148. };
  1149. static struct qcom_icc_node qnm_aggre1_noc = {
  1150. .name = "qnm_aggre1_noc",
  1151. .channels = 1,
  1152. .buswidth = 16,
  1153. .num_links = 1,
  1154. .link_nodes = { &qns_gemnoc_sf },
  1155. };
  1156. static struct qcom_icc_node qnm_aggre2_noc = {
  1157. .name = "qnm_aggre2_noc",
  1158. .channels = 1,
  1159. .buswidth = 16,
  1160. .num_links = 1,
  1161. .link_nodes = { &qns_gemnoc_sf },
  1162. };
  1163. static struct qcom_icc_node qnm_aggre3_noc = {
  1164. .name = "qnm_aggre3_noc",
  1165. .channels = 1,
  1166. .buswidth = 32,
  1167. .num_links = 1,
  1168. .link_nodes = { &qns_gemnoc_sf },
  1169. };
  1170. static struct qcom_icc_node qnm_nsi_noc = {
  1171. .name = "qnm_nsi_noc",
  1172. .channels = 1,
  1173. .buswidth = 8,
  1174. .qosbox = &(const struct qcom_icc_qosbox) {
  1175. .num_ports = 1,
  1176. .port_offsets = { 0x1c000 },
  1177. .prio = 0,
  1178. .urg_fwd = 0,
  1179. .prio_fwd_disable = 1,
  1180. },
  1181. .num_links = 1,
  1182. .link_nodes = { &qns_gemnoc_sf },
  1183. };
  1184. static struct qcom_icc_node qnm_oobmss = {
  1185. .name = "qnm_oobmss",
  1186. .channels = 1,
  1187. .buswidth = 16,
  1188. .qosbox = &(const struct qcom_icc_qosbox) {
  1189. .num_ports = 1,
  1190. .port_offsets = { 0x1b000 },
  1191. .prio = 0,
  1192. .urg_fwd = 0,
  1193. .prio_fwd_disable = 1,
  1194. },
  1195. .num_links = 1,
  1196. .link_nodes = { &qns_gemnoc_sf },
  1197. };
  1198. static struct qcom_icc_node qns_a1noc_snoc = {
  1199. .name = "qns_a1noc_snoc",
  1200. .channels = 1,
  1201. .buswidth = 16,
  1202. .num_links = 1,
  1203. .link_nodes = { &qnm_aggre1_noc },
  1204. };
  1205. static struct qcom_icc_node qns_a2noc_snoc = {
  1206. .name = "qns_a2noc_snoc",
  1207. .channels = 1,
  1208. .buswidth = 16,
  1209. .num_links = 1,
  1210. .link_nodes = { &qnm_aggre2_noc },
  1211. };
  1212. static struct qcom_icc_node qns_a3noc_snoc = {
  1213. .name = "qns_a3noc_snoc",
  1214. .channels = 1,
  1215. .buswidth = 32,
  1216. .num_links = 1,
  1217. .link_nodes = { &qnm_aggre3_noc },
  1218. };
  1219. static struct qcom_icc_node qns_lpass_aggnoc = {
  1220. .name = "qns_lpass_aggnoc",
  1221. .channels = 1,
  1222. .buswidth = 16,
  1223. .num_links = 1,
  1224. .link_nodes = { &qnm_lpiaon_noc },
  1225. };
  1226. static struct qcom_icc_node qns_system_noc = {
  1227. .name = "qns_system_noc",
  1228. .channels = 1,
  1229. .buswidth = 8,
  1230. .num_links = 1,
  1231. .link_nodes = { &qnm_nsi_noc },
  1232. };
  1233. static struct qcom_icc_node qns_oobmss_snoc = {
  1234. .name = "qns_oobmss_snoc",
  1235. .channels = 1,
  1236. .buswidth = 16,
  1237. .num_links = 1,
  1238. .link_nodes = { &qnm_oobmss },
  1239. };
  1240. static struct qcom_icc_node qxm_crypto = {
  1241. .name = "qxm_crypto",
  1242. .channels = 1,
  1243. .buswidth = 8,
  1244. .qosbox = &(const struct qcom_icc_qosbox) {
  1245. .num_ports = 1,
  1246. .port_offsets = { 0xb000 },
  1247. .prio = 0,
  1248. .urg_fwd = 1,
  1249. .prio_fwd_disable = 1,
  1250. },
  1251. .num_links = 1,
  1252. .link_nodes = { &qns_a1noc_snoc },
  1253. };
  1254. static struct qcom_icc_node qxm_soccp = {
  1255. .name = "qxm_soccp",
  1256. .channels = 1,
  1257. .buswidth = 8,
  1258. .qosbox = &(const struct qcom_icc_qosbox) {
  1259. .num_ports = 1,
  1260. .port_offsets = { 0xe000 },
  1261. .prio = 0,
  1262. .urg_fwd = 1,
  1263. .prio_fwd_disable = 1,
  1264. },
  1265. .num_links = 1,
  1266. .link_nodes = { &qns_a1noc_snoc },
  1267. };
  1268. static struct qcom_icc_node xm_qdss_etr_0 = {
  1269. .name = "xm_qdss_etr_0",
  1270. .channels = 1,
  1271. .buswidth = 8,
  1272. .qosbox = &(const struct qcom_icc_qosbox) {
  1273. .num_ports = 1,
  1274. .port_offsets = { 0xc000 },
  1275. .prio = 0,
  1276. .urg_fwd = 0,
  1277. .prio_fwd_disable = 1,
  1278. },
  1279. .num_links = 1,
  1280. .link_nodes = { &qns_a1noc_snoc },
  1281. };
  1282. static struct qcom_icc_node xm_qdss_etr_1 = {
  1283. .name = "xm_qdss_etr_1",
  1284. .channels = 1,
  1285. .buswidth = 8,
  1286. .qosbox = &(const struct qcom_icc_qosbox) {
  1287. .num_ports = 1,
  1288. .port_offsets = { 0xd000 },
  1289. .prio = 0,
  1290. .urg_fwd = 0,
  1291. .prio_fwd_disable = 1,
  1292. },
  1293. .num_links = 1,
  1294. .link_nodes = { &qns_a1noc_snoc },
  1295. };
  1296. static struct qcom_icc_node xm_ufs_mem = {
  1297. .name = "xm_ufs_mem",
  1298. .channels = 1,
  1299. .buswidth = 16,
  1300. .qosbox = &(const struct qcom_icc_qosbox) {
  1301. .num_ports = 1,
  1302. .port_offsets = { 0xa000 },
  1303. .prio = 0,
  1304. .urg_fwd = 0,
  1305. .prio_fwd_disable = 1,
  1306. },
  1307. .num_links = 1,
  1308. .link_nodes = { &qns_a2noc_snoc },
  1309. };
  1310. static struct qcom_icc_node xm_usb3_2 = {
  1311. .name = "xm_usb3_2",
  1312. .channels = 1,
  1313. .buswidth = 8,
  1314. .qosbox = &(const struct qcom_icc_qosbox) {
  1315. .num_ports = 1,
  1316. .port_offsets = { 0x8000 },
  1317. .prio = 0,
  1318. .urg_fwd = 0,
  1319. .prio_fwd_disable = 1,
  1320. },
  1321. .num_links = 1,
  1322. .link_nodes = { &qns_a2noc_snoc },
  1323. };
  1324. static struct qcom_icc_node xm_usb4_2 = {
  1325. .name = "xm_usb4_2",
  1326. .channels = 1,
  1327. .buswidth = 16,
  1328. .qosbox = &(const struct qcom_icc_qosbox) {
  1329. .num_ports = 1,
  1330. .port_offsets = { 0x9000 },
  1331. .prio = 0,
  1332. .urg_fwd = 0,
  1333. .prio_fwd_disable = 1,
  1334. },
  1335. .num_links = 1,
  1336. .link_nodes = { &qns_a2noc_snoc },
  1337. };
  1338. static struct qcom_icc_node qhm_qspi = {
  1339. .name = "qhm_qspi",
  1340. .channels = 1,
  1341. .buswidth = 4,
  1342. .qosbox = &(const struct qcom_icc_qosbox) {
  1343. .num_ports = 1,
  1344. .port_offsets = { 0x10000 },
  1345. .prio = 0,
  1346. .urg_fwd = 0,
  1347. .prio_fwd_disable = 1,
  1348. },
  1349. .num_links = 1,
  1350. .link_nodes = { &qns_a3noc_snoc },
  1351. };
  1352. static struct qcom_icc_node qhm_qup0 = {
  1353. .name = "qhm_qup0",
  1354. .channels = 1,
  1355. .buswidth = 4,
  1356. .qosbox = &(const struct qcom_icc_qosbox) {
  1357. .num_ports = 1,
  1358. .port_offsets = { 0x11000 },
  1359. .prio = 0,
  1360. .urg_fwd = 0,
  1361. .prio_fwd_disable = 1,
  1362. },
  1363. .num_links = 1,
  1364. .link_nodes = { &qns_a3noc_snoc },
  1365. };
  1366. static struct qcom_icc_node qhm_qup1 = {
  1367. .name = "qhm_qup1",
  1368. .channels = 1,
  1369. .buswidth = 4,
  1370. .qosbox = &(const struct qcom_icc_qosbox) {
  1371. .num_ports = 1,
  1372. .port_offsets = { 0x12000 },
  1373. .prio = 0,
  1374. .urg_fwd = 0,
  1375. .prio_fwd_disable = 1,
  1376. },
  1377. .num_links = 1,
  1378. .link_nodes = { &qns_a3noc_snoc },
  1379. };
  1380. static struct qcom_icc_node qhm_qup2 = {
  1381. .name = "qhm_qup2",
  1382. .channels = 1,
  1383. .buswidth = 4,
  1384. .qosbox = &(const struct qcom_icc_qosbox) {
  1385. .num_ports = 1,
  1386. .port_offsets = { 0x13000 },
  1387. .prio = 0,
  1388. .urg_fwd = 0,
  1389. .prio_fwd_disable = 1,
  1390. },
  1391. .num_links = 1,
  1392. .link_nodes = { &qns_a3noc_snoc },
  1393. };
  1394. static struct qcom_icc_node qxm_sp = {
  1395. .name = "qxm_sp",
  1396. .channels = 1,
  1397. .buswidth = 8,
  1398. .num_links = 1,
  1399. .link_nodes = { &qns_a3noc_snoc },
  1400. };
  1401. static struct qcom_icc_node xm_sdc2 = {
  1402. .name = "xm_sdc2",
  1403. .channels = 1,
  1404. .buswidth = 8,
  1405. .qosbox = &(const struct qcom_icc_qosbox) {
  1406. .num_ports = 1,
  1407. .port_offsets = { 0x18000 },
  1408. .prio = 0,
  1409. .urg_fwd = 0,
  1410. .prio_fwd_disable = 1,
  1411. },
  1412. .num_links = 1,
  1413. .link_nodes = { &qns_a3noc_snoc },
  1414. };
  1415. static struct qcom_icc_node xm_sdc4 = {
  1416. .name = "xm_sdc4",
  1417. .channels = 1,
  1418. .buswidth = 8,
  1419. .qosbox = &(const struct qcom_icc_qosbox) {
  1420. .num_ports = 1,
  1421. .port_offsets = { 0x14000 },
  1422. .prio = 0,
  1423. .urg_fwd = 0,
  1424. .prio_fwd_disable = 1,
  1425. },
  1426. .num_links = 1,
  1427. .link_nodes = { &qns_a3noc_snoc },
  1428. };
  1429. static struct qcom_icc_node xm_usb2_0 = {
  1430. .name = "xm_usb2_0",
  1431. .channels = 1,
  1432. .buswidth = 8,
  1433. .qosbox = &(const struct qcom_icc_qosbox) {
  1434. .num_ports = 1,
  1435. .port_offsets = { 0x15000 },
  1436. .prio = 0,
  1437. .urg_fwd = 0,
  1438. .prio_fwd_disable = 1,
  1439. },
  1440. .num_links = 1,
  1441. .link_nodes = { &qns_a3noc_snoc },
  1442. };
  1443. static struct qcom_icc_node xm_usb3_mp = {
  1444. .name = "xm_usb3_mp",
  1445. .channels = 1,
  1446. .buswidth = 16,
  1447. .qosbox = &(const struct qcom_icc_qosbox) {
  1448. .num_ports = 1,
  1449. .port_offsets = { 0x16000 },
  1450. .prio = 0,
  1451. .urg_fwd = 0,
  1452. .prio_fwd_disable = 1,
  1453. },
  1454. .num_links = 1,
  1455. .link_nodes = { &qns_a3noc_snoc },
  1456. };
  1457. static struct qcom_icc_node qnm_lpass_lpinoc = {
  1458. .name = "qnm_lpass_lpinoc",
  1459. .channels = 1,
  1460. .buswidth = 16,
  1461. .num_links = 1,
  1462. .link_nodes = { &qns_lpass_aggnoc },
  1463. };
  1464. static struct qcom_icc_node xm_cpucp = {
  1465. .name = "xm_cpucp",
  1466. .channels = 1,
  1467. .buswidth = 8,
  1468. .num_links = 2,
  1469. .link_nodes = { &qns_system_noc, &srvc_nsinoc },
  1470. };
  1471. static struct qcom_icc_node xm_mem_sp = {
  1472. .name = "xm_mem_sp",
  1473. .channels = 1,
  1474. .buswidth = 8,
  1475. .num_links = 1,
  1476. .link_nodes = { &qns_oobmss_snoc },
  1477. };
  1478. static struct qcom_icc_node qns_lpi_aon_noc = {
  1479. .name = "qns_lpi_aon_noc",
  1480. .channels = 1,
  1481. .buswidth = 16,
  1482. .num_links = 1,
  1483. .link_nodes = { &qnm_lpass_lpinoc },
  1484. };
  1485. static struct qcom_icc_node qnm_lpinoc_dsp_qns4m = {
  1486. .name = "qnm_lpinoc_dsp_qns4m",
  1487. .channels = 1,
  1488. .buswidth = 16,
  1489. .num_links = 1,
  1490. .link_nodes = { &qns_lpi_aon_noc },
  1491. };
  1492. static struct qcom_icc_bcm bcm_acv = {
  1493. .name = "ACV",
  1494. .enable_mask = BIT(3),
  1495. .num_nodes = 1,
  1496. .nodes = { &ebi },
  1497. };
  1498. static struct qcom_icc_bcm bcm_ce0 = {
  1499. .name = "CE0",
  1500. .num_nodes = 1,
  1501. .nodes = { &qxm_crypto },
  1502. };
  1503. static struct qcom_icc_bcm bcm_cn0 = {
  1504. .name = "CN0",
  1505. .keepalive = true,
  1506. .enable_mask = BIT(0),
  1507. .num_nodes = 60,
  1508. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1509. &qhs_ahb2phy1, &qhs_ahb2phy2,
  1510. &qhs_ahb2phy3, &qhs_av1_enc_cfg,
  1511. &qhs_camera_cfg, &qhs_clk_ctl,
  1512. &qhs_crypto0_cfg, &qhs_gpuss_cfg,
  1513. &qhs_imem_cfg, &qhs_pcie0_cfg,
  1514. &qhs_pcie1_cfg, &qhs_pcie2_cfg,
  1515. &qhs_pcie3a_cfg, &qhs_pcie3b_cfg,
  1516. &qhs_pcie4_cfg, &qhs_pcie5_cfg,
  1517. &qhs_pcie6_cfg, &qhs_pcie_rscc,
  1518. &qhs_pdm, &qhs_prng,
  1519. &qhs_qdss_cfg, &qhs_qspi,
  1520. &qhs_qup0, &qhs_qup1,
  1521. &qhs_qup2, &qhs_sdc2,
  1522. &qhs_sdc4, &qhs_smmuv3_cfg,
  1523. &qhs_tcsr, &qhs_tlmm,
  1524. &qhs_ufs_mem_cfg, &qhs_usb2_0_cfg,
  1525. &qhs_usb3_0_cfg, &qhs_usb3_1_cfg,
  1526. &qhs_usb3_2_cfg, &qhs_usb3_mp_cfg,
  1527. &qhs_usb4_0_cfg, &qhs_usb4_1_cfg,
  1528. &qhs_usb4_2_cfg, &qhs_venus_cfg,
  1529. &qss_cnoc_pcie_slave_east_cfg, &qss_cnoc_pcie_slave_west_cfg,
  1530. &qss_lpass_qtb_cfg, &qss_mnoc_cfg,
  1531. &qss_nsp_qtb_cfg, &qss_pcie_east_anoc_cfg,
  1532. &qss_pcie_west_anoc_cfg, &xs_qdss_stm,
  1533. &xs_sys_tcu_cfg, &qnm_hscnoc_cnoc,
  1534. &qhs_aoss, &qhs_ipc_router,
  1535. &qhs_soccp, &qhs_tme_cfg,
  1536. &qns_apss, &qss_cfg,
  1537. &qxs_boot_imem, &qxs_imem },
  1538. };
  1539. static struct qcom_icc_bcm bcm_cn1 = {
  1540. .name = "CN1",
  1541. .num_nodes = 1,
  1542. .nodes = { &qhs_display_cfg },
  1543. };
  1544. static struct qcom_icc_bcm bcm_co0 = {
  1545. .name = "CO0",
  1546. .enable_mask = BIT(0),
  1547. .num_nodes = 2,
  1548. .nodes = { &qnm_nsp, &qns_nsp_hscnoc },
  1549. };
  1550. static struct qcom_icc_bcm bcm_lp0 = {
  1551. .name = "LP0",
  1552. .num_nodes = 2,
  1553. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1554. };
  1555. static struct qcom_icc_bcm bcm_mc0 = {
  1556. .name = "MC0",
  1557. .keepalive = true,
  1558. .num_nodes = 1,
  1559. .nodes = { &ebi },
  1560. };
  1561. static struct qcom_icc_bcm bcm_mm0 = {
  1562. .name = "MM0",
  1563. .num_nodes = 1,
  1564. .nodes = { &qns_mem_noc_hf },
  1565. };
  1566. static struct qcom_icc_bcm bcm_mm1 = {
  1567. .name = "MM1",
  1568. .enable_mask = BIT(0),
  1569. .num_nodes = 11,
  1570. .nodes = { &qnm_av1_enc, &qnm_camnoc_hf,
  1571. &qnm_camnoc_icp, &qnm_camnoc_sf,
  1572. &qnm_eva, &qnm_mdp,
  1573. &qnm_vapss_hcp, &qnm_video,
  1574. &qnm_video_cv_cpu, &qnm_video_v_cpu,
  1575. &qns_mem_noc_sf },
  1576. };
  1577. static struct qcom_icc_bcm bcm_qup0 = {
  1578. .name = "QUP0",
  1579. .vote_scale = 1,
  1580. .keepalive = true,
  1581. .num_nodes = 1,
  1582. .nodes = { &qup0_core_slave },
  1583. };
  1584. static struct qcom_icc_bcm bcm_qup1 = {
  1585. .name = "QUP1",
  1586. .vote_scale = 1,
  1587. .keepalive = true,
  1588. .num_nodes = 1,
  1589. .nodes = { &qup1_core_slave },
  1590. };
  1591. static struct qcom_icc_bcm bcm_qup2 = {
  1592. .name = "QUP2",
  1593. .vote_scale = 1,
  1594. .keepalive = true,
  1595. .num_nodes = 1,
  1596. .nodes = { &qup2_core_slave },
  1597. };
  1598. static struct qcom_icc_bcm bcm_sh0 = {
  1599. .name = "SH0",
  1600. .keepalive = true,
  1601. .num_nodes = 1,
  1602. .nodes = { &qns_llcc },
  1603. };
  1604. static struct qcom_icc_bcm bcm_sh1 = {
  1605. .name = "SH1",
  1606. .enable_mask = BIT(0),
  1607. .num_nodes = 18,
  1608. .nodes = { &alm_gpu_tcu, &alm_pcie_qtc,
  1609. &alm_sys_tcu, &chm_apps,
  1610. &qnm_aggre_noc_east, &qnm_gpu,
  1611. &qnm_lpass, &qnm_mnoc_hf,
  1612. &qnm_mnoc_sf, &qnm_nsp_noc,
  1613. &qnm_pcie_east, &qnm_pcie_west,
  1614. &qnm_snoc_sf, &qxm_wlan_q6,
  1615. &xm_gic, &qns_hscnoc_cnoc,
  1616. &qns_pcie_east, &qns_pcie_west },
  1617. };
  1618. static struct qcom_icc_bcm bcm_sn0 = {
  1619. .name = "SN0",
  1620. .keepalive = true,
  1621. .num_nodes = 1,
  1622. .nodes = { &qns_gemnoc_sf },
  1623. };
  1624. static struct qcom_icc_bcm bcm_sn1 = {
  1625. .name = "SN1",
  1626. .enable_mask = BIT(0),
  1627. .num_nodes = 1,
  1628. .nodes = { &qnm_oobmss },
  1629. };
  1630. static struct qcom_icc_bcm bcm_sn2 = {
  1631. .name = "SN2",
  1632. .num_nodes = 1,
  1633. .nodes = { &qnm_aggre1_noc },
  1634. };
  1635. static struct qcom_icc_bcm bcm_sn3 = {
  1636. .name = "SN3",
  1637. .num_nodes = 1,
  1638. .nodes = { &qnm_aggre2_noc },
  1639. };
  1640. static struct qcom_icc_bcm bcm_sn4 = {
  1641. .name = "SN4",
  1642. .num_nodes = 1,
  1643. .nodes = { &qnm_aggre3_noc },
  1644. };
  1645. static struct qcom_icc_bcm bcm_sn5 = {
  1646. .name = "SN5",
  1647. .num_nodes = 1,
  1648. .nodes = { &qns_a4noc_hscnoc },
  1649. };
  1650. static struct qcom_icc_bcm bcm_sn6 = {
  1651. .name = "SN6",
  1652. .num_nodes = 4,
  1653. .nodes = { &qns_pcie_east_mem_noc, &qnm_hscnoc_pcie_east,
  1654. &qns_pcie_west_mem_noc, &qnm_hscnoc_pcie_west },
  1655. };
  1656. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1657. &bcm_ce0,
  1658. };
  1659. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1660. [MASTER_CRYPTO] = &qxm_crypto,
  1661. [MASTER_SOCCP_PROC] = &qxm_soccp,
  1662. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1663. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1664. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1665. };
  1666. static const struct regmap_config glymur_aggre1_noc_regmap_config = {
  1667. .reg_bits = 32,
  1668. .reg_stride = 4,
  1669. .val_bits = 32,
  1670. .max_register = 0x14400,
  1671. .fast_io = true,
  1672. };
  1673. static const struct qcom_icc_desc glymur_aggre1_noc = {
  1674. .config = &glymur_aggre1_noc_regmap_config,
  1675. .nodes = aggre1_noc_nodes,
  1676. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1677. .bcms = aggre1_noc_bcms,
  1678. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1679. };
  1680. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1681. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1682. [MASTER_USB3_2] = &xm_usb3_2,
  1683. [MASTER_USB4_2] = &xm_usb4_2,
  1684. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1685. };
  1686. static const struct regmap_config glymur_aggre2_noc_regmap_config = {
  1687. .reg_bits = 32,
  1688. .reg_stride = 4,
  1689. .val_bits = 32,
  1690. .max_register = 0x14400,
  1691. .fast_io = true,
  1692. };
  1693. static const struct qcom_icc_desc glymur_aggre2_noc = {
  1694. .config = &glymur_aggre2_noc_regmap_config,
  1695. .nodes = aggre2_noc_nodes,
  1696. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1697. .qos_requires_clocks = true,
  1698. };
  1699. static struct qcom_icc_node * const aggre3_noc_nodes[] = {
  1700. [MASTER_QSPI_0] = &qhm_qspi,
  1701. [MASTER_QUP_0] = &qhm_qup0,
  1702. [MASTER_QUP_1] = &qhm_qup1,
  1703. [MASTER_QUP_2] = &qhm_qup2,
  1704. [MASTER_SP] = &qxm_sp,
  1705. [MASTER_SDCC_2] = &xm_sdc2,
  1706. [MASTER_SDCC_4] = &xm_sdc4,
  1707. [MASTER_USB2] = &xm_usb2_0,
  1708. [MASTER_USB3_MP] = &xm_usb3_mp,
  1709. [SLAVE_A3NOC_SNOC] = &qns_a3noc_snoc,
  1710. };
  1711. static const struct regmap_config glymur_aggre3_noc_regmap_config = {
  1712. .reg_bits = 32,
  1713. .reg_stride = 4,
  1714. .val_bits = 32,
  1715. .max_register = 0x1d400,
  1716. .fast_io = true,
  1717. };
  1718. static const struct qcom_icc_desc glymur_aggre3_noc = {
  1719. .config = &glymur_aggre3_noc_regmap_config,
  1720. .nodes = aggre3_noc_nodes,
  1721. .num_nodes = ARRAY_SIZE(aggre3_noc_nodes),
  1722. };
  1723. static struct qcom_icc_bcm * const aggre4_noc_bcms[] = {
  1724. &bcm_sn5,
  1725. };
  1726. static struct qcom_icc_node * const aggre4_noc_nodes[] = {
  1727. [MASTER_USB3_0] = &xm_usb3_0,
  1728. [MASTER_USB3_1] = &xm_usb3_1,
  1729. [MASTER_USB4_0] = &xm_usb4_0,
  1730. [MASTER_USB4_1] = &xm_usb4_1,
  1731. [SLAVE_A4NOC_HSCNOC] = &qns_a4noc_hscnoc,
  1732. };
  1733. static const struct regmap_config glymur_aggre4_noc_regmap_config = {
  1734. .reg_bits = 32,
  1735. .reg_stride = 4,
  1736. .val_bits = 32,
  1737. .max_register = 0x14400,
  1738. .fast_io = true,
  1739. };
  1740. static const struct qcom_icc_desc glymur_aggre4_noc = {
  1741. .config = &glymur_aggre4_noc_regmap_config,
  1742. .nodes = aggre4_noc_nodes,
  1743. .num_nodes = ARRAY_SIZE(aggre4_noc_nodes),
  1744. .bcms = aggre4_noc_bcms,
  1745. .num_bcms = ARRAY_SIZE(aggre4_noc_bcms),
  1746. .qos_requires_clocks = true,
  1747. };
  1748. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1749. &bcm_qup0,
  1750. &bcm_qup1,
  1751. &bcm_qup2,
  1752. };
  1753. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1754. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1755. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1756. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1757. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1758. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1759. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1760. };
  1761. static const struct qcom_icc_desc glymur_clk_virt = {
  1762. .nodes = clk_virt_nodes,
  1763. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1764. .bcms = clk_virt_bcms,
  1765. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1766. };
  1767. static struct qcom_icc_bcm * const cnoc_cfg_bcms[] = {
  1768. &bcm_cn0,
  1769. &bcm_cn1,
  1770. };
  1771. static struct qcom_icc_node * const cnoc_cfg_nodes[] = {
  1772. [MASTER_CNOC_CFG] = &qsm_cfg,
  1773. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1774. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1775. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  1776. [SLAVE_AHB2PHY_3] = &qhs_ahb2phy3,
  1777. [SLAVE_AV1_ENC_CFG] = &qhs_av1_enc_cfg,
  1778. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1779. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1780. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1781. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1782. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1783. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1784. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1785. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1786. [SLAVE_PCIE_2_CFG] = &qhs_pcie2_cfg,
  1787. [SLAVE_PCIE_3A_CFG] = &qhs_pcie3a_cfg,
  1788. [SLAVE_PCIE_3B_CFG] = &qhs_pcie3b_cfg,
  1789. [SLAVE_PCIE_4_CFG] = &qhs_pcie4_cfg,
  1790. [SLAVE_PCIE_5_CFG] = &qhs_pcie5_cfg,
  1791. [SLAVE_PCIE_6_CFG] = &qhs_pcie6_cfg,
  1792. [SLAVE_PCIE_RSCC] = &qhs_pcie_rscc,
  1793. [SLAVE_PDM] = &qhs_pdm,
  1794. [SLAVE_PRNG] = &qhs_prng,
  1795. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1796. [SLAVE_QSPI_0] = &qhs_qspi,
  1797. [SLAVE_QUP_0] = &qhs_qup0,
  1798. [SLAVE_QUP_1] = &qhs_qup1,
  1799. [SLAVE_QUP_2] = &qhs_qup2,
  1800. [SLAVE_SDCC_2] = &qhs_sdc2,
  1801. [SLAVE_SDCC_4] = &qhs_sdc4,
  1802. [SLAVE_SMMUV3_CFG] = &qhs_smmuv3_cfg,
  1803. [SLAVE_TCSR] = &qhs_tcsr,
  1804. [SLAVE_TLMM] = &qhs_tlmm,
  1805. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1806. [SLAVE_USB2] = &qhs_usb2_0_cfg,
  1807. [SLAVE_USB3_0] = &qhs_usb3_0_cfg,
  1808. [SLAVE_USB3_1] = &qhs_usb3_1_cfg,
  1809. [SLAVE_USB3_2] = &qhs_usb3_2_cfg,
  1810. [SLAVE_USB3_MP] = &qhs_usb3_mp_cfg,
  1811. [SLAVE_USB4_0] = &qhs_usb4_0_cfg,
  1812. [SLAVE_USB4_1] = &qhs_usb4_1_cfg,
  1813. [SLAVE_USB4_2] = &qhs_usb4_2_cfg,
  1814. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1815. [SLAVE_CNOC_PCIE_SLAVE_EAST_CFG] = &qss_cnoc_pcie_slave_east_cfg,
  1816. [SLAVE_CNOC_PCIE_SLAVE_WEST_CFG] = &qss_cnoc_pcie_slave_west_cfg,
  1817. [SLAVE_LPASS_QTB_CFG] = &qss_lpass_qtb_cfg,
  1818. [SLAVE_CNOC_MNOC_CFG] = &qss_mnoc_cfg,
  1819. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  1820. [SLAVE_PCIE_EAST_ANOC_CFG] = &qss_pcie_east_anoc_cfg,
  1821. [SLAVE_PCIE_WEST_ANOC_CFG] = &qss_pcie_west_anoc_cfg,
  1822. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1823. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1824. };
  1825. static const struct regmap_config glymur_cnoc_cfg_regmap_config = {
  1826. .reg_bits = 32,
  1827. .reg_stride = 4,
  1828. .val_bits = 32,
  1829. .max_register = 0x6600,
  1830. .fast_io = true,
  1831. };
  1832. static const struct qcom_icc_desc glymur_cnoc_cfg = {
  1833. .config = &glymur_cnoc_cfg_regmap_config,
  1834. .nodes = cnoc_cfg_nodes,
  1835. .num_nodes = ARRAY_SIZE(cnoc_cfg_nodes),
  1836. .bcms = cnoc_cfg_bcms,
  1837. .num_bcms = ARRAY_SIZE(cnoc_cfg_bcms),
  1838. };
  1839. static struct qcom_icc_bcm * const cnoc_main_bcms[] = {
  1840. &bcm_cn0,
  1841. };
  1842. static struct qcom_icc_node * const cnoc_main_nodes[] = {
  1843. [MASTER_HSCNOC_CNOC] = &qnm_hscnoc_cnoc,
  1844. [SLAVE_AOSS] = &qhs_aoss,
  1845. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1846. [SLAVE_SOCCP] = &qhs_soccp,
  1847. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1848. [SLAVE_APPSS] = &qns_apss,
  1849. [SLAVE_CNOC_CFG] = &qss_cfg,
  1850. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  1851. [SLAVE_IMEM] = &qxs_imem,
  1852. };
  1853. static const struct regmap_config glymur_cnoc_main_regmap_config = {
  1854. .reg_bits = 32,
  1855. .reg_stride = 4,
  1856. .val_bits = 32,
  1857. .max_register = 0x17080,
  1858. .fast_io = true,
  1859. };
  1860. static const struct qcom_icc_desc glymur_cnoc_main = {
  1861. .config = &glymur_cnoc_main_regmap_config,
  1862. .nodes = cnoc_main_nodes,
  1863. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  1864. .bcms = cnoc_main_bcms,
  1865. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  1866. };
  1867. static struct qcom_icc_bcm * const hscnoc_bcms[] = {
  1868. &bcm_sh0,
  1869. &bcm_sh1,
  1870. };
  1871. static struct qcom_icc_node * const hscnoc_nodes[] = {
  1872. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1873. [MASTER_PCIE_TCU] = &alm_pcie_qtc,
  1874. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1875. [MASTER_APPSS_PROC] = &chm_apps,
  1876. [MASTER_AGGRE_NOC_EAST] = &qnm_aggre_noc_east,
  1877. [MASTER_GFX3D] = &qnm_gpu,
  1878. [MASTER_LPASS_GEM_NOC] = &qnm_lpass,
  1879. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1880. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1881. [MASTER_COMPUTE_NOC] = &qnm_nsp_noc,
  1882. [MASTER_PCIE_EAST] = &qnm_pcie_east,
  1883. [MASTER_PCIE_WEST] = &qnm_pcie_west,
  1884. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1885. [MASTER_WLAN_Q6] = &qxm_wlan_q6,
  1886. [MASTER_GIC] = &xm_gic,
  1887. [SLAVE_HSCNOC_CNOC] = &qns_hscnoc_cnoc,
  1888. [SLAVE_LLCC] = &qns_llcc,
  1889. [SLAVE_PCIE_EAST] = &qns_pcie_east,
  1890. [SLAVE_PCIE_WEST] = &qns_pcie_west,
  1891. };
  1892. static const struct regmap_config glymur_hscnoc_regmap_config = {
  1893. .reg_bits = 32,
  1894. .reg_stride = 4,
  1895. .val_bits = 32,
  1896. .max_register = 0x93a080,
  1897. .fast_io = true,
  1898. };
  1899. static const struct qcom_icc_desc glymur_hscnoc = {
  1900. .config = &glymur_hscnoc_regmap_config,
  1901. .nodes = hscnoc_nodes,
  1902. .num_nodes = ARRAY_SIZE(hscnoc_nodes),
  1903. .bcms = hscnoc_bcms,
  1904. .num_bcms = ARRAY_SIZE(hscnoc_bcms),
  1905. };
  1906. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1907. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  1908. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  1909. };
  1910. static const struct regmap_config glymur_lpass_ag_noc_regmap_config = {
  1911. .reg_bits = 32,
  1912. .reg_stride = 4,
  1913. .val_bits = 32,
  1914. .max_register = 0xe080,
  1915. .fast_io = true,
  1916. };
  1917. static const struct qcom_icc_desc glymur_lpass_ag_noc = {
  1918. .config = &glymur_lpass_ag_noc_regmap_config,
  1919. .nodes = lpass_ag_noc_nodes,
  1920. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1921. };
  1922. static struct qcom_icc_bcm * const lpass_lpiaon_noc_bcms[] = {
  1923. &bcm_lp0,
  1924. };
  1925. static struct qcom_icc_node * const lpass_lpiaon_noc_nodes[] = {
  1926. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  1927. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  1928. };
  1929. static const struct regmap_config glymur_lpass_lpiaon_noc_regmap_config = {
  1930. .reg_bits = 32,
  1931. .reg_stride = 4,
  1932. .val_bits = 32,
  1933. .max_register = 0x19080,
  1934. .fast_io = true,
  1935. };
  1936. static const struct qcom_icc_desc glymur_lpass_lpiaon_noc = {
  1937. .config = &glymur_lpass_lpiaon_noc_regmap_config,
  1938. .nodes = lpass_lpiaon_noc_nodes,
  1939. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  1940. .bcms = lpass_lpiaon_noc_bcms,
  1941. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  1942. };
  1943. static struct qcom_icc_node * const lpass_lpicx_noc_nodes[] = {
  1944. [MASTER_LPASS_PROC] = &qnm_lpinoc_dsp_qns4m,
  1945. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  1946. };
  1947. static const struct regmap_config glymur_lpass_lpicx_noc_regmap_config = {
  1948. .reg_bits = 32,
  1949. .reg_stride = 4,
  1950. .val_bits = 32,
  1951. .max_register = 0x44080,
  1952. .fast_io = true,
  1953. };
  1954. static const struct qcom_icc_desc glymur_lpass_lpicx_noc = {
  1955. .config = &glymur_lpass_lpicx_noc_regmap_config,
  1956. .nodes = lpass_lpicx_noc_nodes,
  1957. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  1958. };
  1959. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1960. &bcm_acv,
  1961. &bcm_mc0,
  1962. };
  1963. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1964. [MASTER_LLCC] = &llcc_mc,
  1965. [SLAVE_EBI1] = &ebi,
  1966. };
  1967. static const struct qcom_icc_desc glymur_mc_virt = {
  1968. .nodes = mc_virt_nodes,
  1969. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1970. .bcms = mc_virt_bcms,
  1971. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1972. };
  1973. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1974. &bcm_mm0,
  1975. &bcm_mm1,
  1976. };
  1977. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1978. [MASTER_AV1_ENC] = &qnm_av1_enc,
  1979. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1980. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1981. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1982. [MASTER_EVA] = &qnm_eva,
  1983. [MASTER_MDP] = &qnm_mdp,
  1984. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  1985. [MASTER_VIDEO] = &qnm_video,
  1986. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1987. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1988. [MASTER_CNOC_MNOC_CFG] = &qsm_mnoc_cfg,
  1989. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1990. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1991. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1992. };
  1993. static const struct regmap_config glymur_mmss_noc_regmap_config = {
  1994. .reg_bits = 32,
  1995. .reg_stride = 4,
  1996. .val_bits = 32,
  1997. .max_register = 0x5b800,
  1998. .fast_io = true,
  1999. };
  2000. static const struct qcom_icc_desc glymur_mmss_noc = {
  2001. .config = &glymur_mmss_noc_regmap_config,
  2002. .nodes = mmss_noc_nodes,
  2003. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2004. .bcms = mmss_noc_bcms,
  2005. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2006. };
  2007. static struct qcom_icc_node * const nsinoc_nodes[] = {
  2008. [MASTER_CPUCP] = &xm_cpucp,
  2009. [SLAVE_NSINOC_SYSTEM_NOC] = &qns_system_noc,
  2010. [SLAVE_SERVICE_NSINOC] = &srvc_nsinoc,
  2011. };
  2012. static const struct regmap_config glymur_nsinoc_regmap_config = {
  2013. .reg_bits = 32,
  2014. .reg_stride = 4,
  2015. .val_bits = 32,
  2016. .max_register = 0x14080,
  2017. .fast_io = true,
  2018. };
  2019. static const struct qcom_icc_desc glymur_nsinoc = {
  2020. .config = &glymur_nsinoc_regmap_config,
  2021. .nodes = nsinoc_nodes,
  2022. .num_nodes = ARRAY_SIZE(nsinoc_nodes),
  2023. };
  2024. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  2025. &bcm_co0,
  2026. };
  2027. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  2028. [MASTER_CDSP_PROC] = &qnm_nsp,
  2029. [SLAVE_NSP0_HSC_NOC] = &qns_nsp_hscnoc,
  2030. };
  2031. static const struct regmap_config glymur_nsp_noc_regmap_config = {
  2032. .reg_bits = 32,
  2033. .reg_stride = 4,
  2034. .val_bits = 32,
  2035. .max_register = 0x21280,
  2036. .fast_io = true,
  2037. };
  2038. static const struct qcom_icc_desc glymur_nsp_noc = {
  2039. .config = &glymur_nsp_noc_regmap_config,
  2040. .nodes = nsp_noc_nodes,
  2041. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  2042. .bcms = nsp_noc_bcms,
  2043. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  2044. };
  2045. static struct qcom_icc_node * const oobm_ss_noc_nodes[] = {
  2046. [MASTER_OOBMSS_SP_PROC] = &xm_mem_sp,
  2047. [SLAVE_OOBMSS_SNOC] = &qns_oobmss_snoc,
  2048. };
  2049. static const struct regmap_config glymur_oobm_ss_noc_regmap_config = {
  2050. .reg_bits = 32,
  2051. .reg_stride = 4,
  2052. .val_bits = 32,
  2053. .max_register = 0x1e080,
  2054. .fast_io = true,
  2055. };
  2056. static const struct qcom_icc_desc glymur_oobm_ss_noc = {
  2057. .config = &glymur_oobm_ss_noc_regmap_config,
  2058. .nodes = oobm_ss_noc_nodes,
  2059. .num_nodes = ARRAY_SIZE(oobm_ss_noc_nodes),
  2060. };
  2061. static struct qcom_icc_bcm * const pcie_east_anoc_bcms[] = {
  2062. &bcm_sn6,
  2063. };
  2064. static struct qcom_icc_node * const pcie_east_anoc_nodes[] = {
  2065. [MASTER_PCIE_EAST_ANOC_CFG] = &qsm_pcie_east_anoc_cfg,
  2066. [MASTER_PCIE_0] = &xm_pcie_0,
  2067. [MASTER_PCIE_1] = &xm_pcie_1,
  2068. [MASTER_PCIE_5] = &xm_pcie_5,
  2069. [SLAVE_PCIE_EAST_MEM_NOC] = &qns_pcie_east_mem_noc,
  2070. [SLAVE_SERVICE_PCIE_EAST_AGGRE_NOC] = &srvc_pcie_east_aggre_noc,
  2071. };
  2072. static const struct regmap_config glymur_pcie_east_anoc_regmap_config = {
  2073. .reg_bits = 32,
  2074. .reg_stride = 4,
  2075. .val_bits = 32,
  2076. .max_register = 0xf300,
  2077. .fast_io = true,
  2078. };
  2079. static const struct qcom_icc_desc glymur_pcie_east_anoc = {
  2080. .config = &glymur_pcie_east_anoc_regmap_config,
  2081. .nodes = pcie_east_anoc_nodes,
  2082. .num_nodes = ARRAY_SIZE(pcie_east_anoc_nodes),
  2083. .bcms = pcie_east_anoc_bcms,
  2084. .num_bcms = ARRAY_SIZE(pcie_east_anoc_bcms),
  2085. .qos_requires_clocks = true,
  2086. };
  2087. static struct qcom_icc_bcm * const pcie_east_slv_noc_bcms[] = {
  2088. &bcm_sn6,
  2089. };
  2090. static struct qcom_icc_node * const pcie_east_slv_noc_nodes[] = {
  2091. [MASTER_HSCNOC_PCIE_EAST] = &qnm_hscnoc_pcie_east,
  2092. [MASTER_CNOC_PCIE_EAST_SLAVE_CFG] = &qsm_cnoc_pcie_east_slave_cfg,
  2093. [SLAVE_HSCNOC_PCIE_EAST_MS_MPU_CFG] = &qhs_hscnoc_pcie_east_ms_mpu_cfg,
  2094. [SLAVE_SERVICE_PCIE_EAST] = &srvc_pcie_east,
  2095. [SLAVE_PCIE_0] = &xs_pcie_0,
  2096. [SLAVE_PCIE_1] = &xs_pcie_1,
  2097. [SLAVE_PCIE_5] = &xs_pcie_5,
  2098. };
  2099. static const struct regmap_config glymur_pcie_east_slv_noc_regmap_config = {
  2100. .reg_bits = 32,
  2101. .reg_stride = 4,
  2102. .val_bits = 32,
  2103. .max_register = 0xe080,
  2104. .fast_io = true,
  2105. };
  2106. static const struct qcom_icc_desc glymur_pcie_east_slv_noc = {
  2107. .config = &glymur_pcie_east_slv_noc_regmap_config,
  2108. .nodes = pcie_east_slv_noc_nodes,
  2109. .num_nodes = ARRAY_SIZE(pcie_east_slv_noc_nodes),
  2110. .bcms = pcie_east_slv_noc_bcms,
  2111. .num_bcms = ARRAY_SIZE(pcie_east_slv_noc_bcms),
  2112. };
  2113. static struct qcom_icc_bcm * const pcie_west_anoc_bcms[] = {
  2114. &bcm_sn6,
  2115. };
  2116. static struct qcom_icc_node * const pcie_west_anoc_nodes[] = {
  2117. [MASTER_PCIE_WEST_ANOC_CFG] = &qsm_pcie_west_anoc_cfg,
  2118. [MASTER_PCIE_2] = &xm_pcie_2,
  2119. [MASTER_PCIE_3A] = &xm_pcie_3a,
  2120. [MASTER_PCIE_3B] = &xm_pcie_3b,
  2121. [MASTER_PCIE_4] = &xm_pcie_4,
  2122. [MASTER_PCIE_6] = &xm_pcie_6,
  2123. [SLAVE_PCIE_WEST_MEM_NOC] = &qns_pcie_west_mem_noc,
  2124. [SLAVE_SERVICE_PCIE_WEST_AGGRE_NOC] = &srvc_pcie_west_aggre_noc,
  2125. };
  2126. static const struct regmap_config glymur_pcie_west_anoc_regmap_config = {
  2127. .reg_bits = 32,
  2128. .reg_stride = 4,
  2129. .val_bits = 32,
  2130. .max_register = 0xf580,
  2131. .fast_io = true,
  2132. };
  2133. static const struct qcom_icc_desc glymur_pcie_west_anoc = {
  2134. .config = &glymur_pcie_west_anoc_regmap_config,
  2135. .nodes = pcie_west_anoc_nodes,
  2136. .num_nodes = ARRAY_SIZE(pcie_west_anoc_nodes),
  2137. .bcms = pcie_west_anoc_bcms,
  2138. .num_bcms = ARRAY_SIZE(pcie_west_anoc_bcms),
  2139. .qos_requires_clocks = true,
  2140. };
  2141. static struct qcom_icc_bcm * const pcie_west_slv_noc_bcms[] = {
  2142. &bcm_sn6,
  2143. };
  2144. static struct qcom_icc_node * const pcie_west_slv_noc_nodes[] = {
  2145. [MASTER_HSCNOC_PCIE_WEST] = &qnm_hscnoc_pcie_west,
  2146. [MASTER_CNOC_PCIE_WEST_SLAVE_CFG] = &qsm_cnoc_pcie_west_slave_cfg,
  2147. [SLAVE_HSCNOC_PCIE_WEST_MS_MPU_CFG] = &qhs_hscnoc_pcie_west_ms_mpu_cfg,
  2148. [SLAVE_SERVICE_PCIE_WEST] = &srvc_pcie_west,
  2149. [SLAVE_PCIE_2] = &xs_pcie_2,
  2150. [SLAVE_PCIE_3A] = &xs_pcie_3a,
  2151. [SLAVE_PCIE_3B] = &xs_pcie_3b,
  2152. [SLAVE_PCIE_4] = &xs_pcie_4,
  2153. [SLAVE_PCIE_6] = &xs_pcie_6,
  2154. };
  2155. static const struct regmap_config glymur_pcie_west_slv_noc_regmap_config = {
  2156. .reg_bits = 32,
  2157. .reg_stride = 4,
  2158. .val_bits = 32,
  2159. .max_register = 0xf180,
  2160. .fast_io = true,
  2161. };
  2162. static const struct qcom_icc_desc glymur_pcie_west_slv_noc = {
  2163. .config = &glymur_pcie_west_slv_noc_regmap_config,
  2164. .nodes = pcie_west_slv_noc_nodes,
  2165. .num_nodes = ARRAY_SIZE(pcie_west_slv_noc_nodes),
  2166. .bcms = pcie_west_slv_noc_bcms,
  2167. .num_bcms = ARRAY_SIZE(pcie_west_slv_noc_bcms),
  2168. };
  2169. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  2170. &bcm_sn0,
  2171. &bcm_sn1,
  2172. &bcm_sn2,
  2173. &bcm_sn3,
  2174. &bcm_sn4,
  2175. };
  2176. static struct qcom_icc_node * const system_noc_nodes[] = {
  2177. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2178. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2179. [MASTER_A3NOC_SNOC] = &qnm_aggre3_noc,
  2180. [MASTER_NSINOC_SNOC] = &qnm_nsi_noc,
  2181. [MASTER_OOBMSS] = &qnm_oobmss,
  2182. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2183. };
  2184. static const struct regmap_config glymur_system_noc_regmap_config = {
  2185. .reg_bits = 32,
  2186. .reg_stride = 4,
  2187. .val_bits = 32,
  2188. .max_register = 0x1c080,
  2189. .fast_io = true,
  2190. };
  2191. static const struct qcom_icc_desc glymur_system_noc = {
  2192. .config = &glymur_system_noc_regmap_config,
  2193. .nodes = system_noc_nodes,
  2194. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2195. .bcms = system_noc_bcms,
  2196. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2197. };
  2198. static const struct of_device_id qnoc_of_match[] = {
  2199. { .compatible = "qcom,glymur-aggre1-noc", .data = &glymur_aggre1_noc},
  2200. { .compatible = "qcom,glymur-aggre2-noc", .data = &glymur_aggre2_noc},
  2201. { .compatible = "qcom,glymur-aggre3-noc", .data = &glymur_aggre3_noc},
  2202. { .compatible = "qcom,glymur-aggre4-noc", .data = &glymur_aggre4_noc},
  2203. { .compatible = "qcom,glymur-clk-virt", .data = &glymur_clk_virt},
  2204. { .compatible = "qcom,glymur-cnoc-cfg", .data = &glymur_cnoc_cfg},
  2205. { .compatible = "qcom,glymur-cnoc-main", .data = &glymur_cnoc_main},
  2206. { .compatible = "qcom,glymur-hscnoc", .data = &glymur_hscnoc},
  2207. { .compatible = "qcom,glymur-lpass-ag-noc", .data = &glymur_lpass_ag_noc},
  2208. { .compatible = "qcom,glymur-lpass-lpiaon-noc", .data = &glymur_lpass_lpiaon_noc},
  2209. { .compatible = "qcom,glymur-lpass-lpicx-noc", .data = &glymur_lpass_lpicx_noc},
  2210. { .compatible = "qcom,glymur-mc-virt", .data = &glymur_mc_virt},
  2211. { .compatible = "qcom,glymur-mmss-noc", .data = &glymur_mmss_noc},
  2212. { .compatible = "qcom,glymur-nsinoc", .data = &glymur_nsinoc},
  2213. { .compatible = "qcom,glymur-nsp-noc", .data = &glymur_nsp_noc},
  2214. { .compatible = "qcom,glymur-oobm-ss-noc", .data = &glymur_oobm_ss_noc},
  2215. { .compatible = "qcom,glymur-pcie-east-anoc", .data = &glymur_pcie_east_anoc},
  2216. { .compatible = "qcom,glymur-pcie-east-slv-noc", .data = &glymur_pcie_east_slv_noc},
  2217. { .compatible = "qcom,glymur-pcie-west-anoc", .data = &glymur_pcie_west_anoc},
  2218. { .compatible = "qcom,glymur-pcie-west-slv-noc", .data = &glymur_pcie_west_slv_noc},
  2219. { .compatible = "qcom,glymur-system-noc", .data = &glymur_system_noc},
  2220. { }
  2221. };
  2222. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2223. static struct platform_driver qnoc_driver = {
  2224. .probe = qcom_icc_rpmh_probe,
  2225. .remove = qcom_icc_rpmh_remove,
  2226. .driver = {
  2227. .name = "qnoc-glymur",
  2228. .of_match_table = qnoc_of_match,
  2229. .sync_state = icc_sync_state,
  2230. },
  2231. };
  2232. static int __init qnoc_driver_init(void)
  2233. {
  2234. return platform_driver_register(&qnoc_driver);
  2235. }
  2236. core_initcall(qnoc_driver_init);
  2237. static void __exit qnoc_driver_exit(void)
  2238. {
  2239. platform_driver_unregister(&qnoc_driver);
  2240. }
  2241. module_exit(qnoc_driver_exit);
  2242. MODULE_DESCRIPTION("GLYMUR NoC driver");
  2243. MODULE_LICENSE("GPL");