x1e80100.c 47 KB

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