sc7180.c 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sc7180.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #include "sc7180.h"
  16. static struct qcom_icc_node qhm_a1noc_cfg = {
  17. .name = "qhm_a1noc_cfg",
  18. .id = SC7180_MASTER_A1NOC_CFG,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SC7180_SLAVE_SERVICE_A1NOC },
  23. };
  24. static struct qcom_icc_node qhm_qspi = {
  25. .name = "qhm_qspi",
  26. .id = SC7180_MASTER_QSPI,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SC7180_SLAVE_A1NOC_SNOC },
  31. };
  32. static struct qcom_icc_node qhm_qup_0 = {
  33. .name = "qhm_qup_0",
  34. .id = SC7180_MASTER_QUP_0,
  35. .channels = 1,
  36. .buswidth = 4,
  37. .num_links = 1,
  38. .links = { SC7180_SLAVE_A1NOC_SNOC },
  39. };
  40. static struct qcom_icc_node xm_sdc2 = {
  41. .name = "xm_sdc2",
  42. .id = SC7180_MASTER_SDCC_2,
  43. .channels = 1,
  44. .buswidth = 8,
  45. .num_links = 1,
  46. .links = { SC7180_SLAVE_A1NOC_SNOC },
  47. };
  48. static struct qcom_icc_node xm_emmc = {
  49. .name = "xm_emmc",
  50. .id = SC7180_MASTER_EMMC,
  51. .channels = 1,
  52. .buswidth = 8,
  53. .num_links = 1,
  54. .links = { SC7180_SLAVE_A1NOC_SNOC },
  55. };
  56. static struct qcom_icc_node xm_ufs_mem = {
  57. .name = "xm_ufs_mem",
  58. .id = SC7180_MASTER_UFS_MEM,
  59. .channels = 1,
  60. .buswidth = 8,
  61. .num_links = 1,
  62. .links = { SC7180_SLAVE_A1NOC_SNOC },
  63. };
  64. static struct qcom_icc_node qhm_a2noc_cfg = {
  65. .name = "qhm_a2noc_cfg",
  66. .id = SC7180_MASTER_A2NOC_CFG,
  67. .channels = 1,
  68. .buswidth = 4,
  69. .num_links = 1,
  70. .links = { SC7180_SLAVE_SERVICE_A2NOC },
  71. };
  72. static struct qcom_icc_node qhm_qdss_bam = {
  73. .name = "qhm_qdss_bam",
  74. .id = SC7180_MASTER_QDSS_BAM,
  75. .channels = 1,
  76. .buswidth = 4,
  77. .num_links = 1,
  78. .links = { SC7180_SLAVE_A2NOC_SNOC },
  79. };
  80. static struct qcom_icc_node qhm_qup_1 = {
  81. .name = "qhm_qup_1",
  82. .id = SC7180_MASTER_QUP_1,
  83. .channels = 1,
  84. .buswidth = 4,
  85. .num_links = 1,
  86. .links = { SC7180_SLAVE_A2NOC_SNOC },
  87. };
  88. static struct qcom_icc_node qxm_crypto = {
  89. .name = "qxm_crypto",
  90. .id = SC7180_MASTER_CRYPTO,
  91. .channels = 1,
  92. .buswidth = 8,
  93. .num_links = 1,
  94. .links = { SC7180_SLAVE_A2NOC_SNOC },
  95. };
  96. static struct qcom_icc_node qxm_ipa = {
  97. .name = "qxm_ipa",
  98. .id = SC7180_MASTER_IPA,
  99. .channels = 1,
  100. .buswidth = 8,
  101. .num_links = 1,
  102. .links = { SC7180_SLAVE_A2NOC_SNOC },
  103. };
  104. static struct qcom_icc_node xm_qdss_etr = {
  105. .name = "xm_qdss_etr",
  106. .id = SC7180_MASTER_QDSS_ETR,
  107. .channels = 1,
  108. .buswidth = 8,
  109. .num_links = 1,
  110. .links = { SC7180_SLAVE_A2NOC_SNOC },
  111. };
  112. static struct qcom_icc_node qhm_usb3 = {
  113. .name = "qhm_usb3",
  114. .id = SC7180_MASTER_USB3,
  115. .channels = 1,
  116. .buswidth = 8,
  117. .num_links = 1,
  118. .links = { SC7180_SLAVE_A2NOC_SNOC },
  119. };
  120. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  121. .name = "qxm_camnoc_hf0_uncomp",
  122. .id = SC7180_MASTER_CAMNOC_HF0_UNCOMP,
  123. .channels = 1,
  124. .buswidth = 32,
  125. .num_links = 1,
  126. .links = { SC7180_SLAVE_CAMNOC_UNCOMP },
  127. };
  128. static struct qcom_icc_node qxm_camnoc_hf1_uncomp = {
  129. .name = "qxm_camnoc_hf1_uncomp",
  130. .id = SC7180_MASTER_CAMNOC_HF1_UNCOMP,
  131. .channels = 1,
  132. .buswidth = 32,
  133. .num_links = 1,
  134. .links = { SC7180_SLAVE_CAMNOC_UNCOMP },
  135. };
  136. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  137. .name = "qxm_camnoc_sf_uncomp",
  138. .id = SC7180_MASTER_CAMNOC_SF_UNCOMP,
  139. .channels = 1,
  140. .buswidth = 32,
  141. .num_links = 1,
  142. .links = { SC7180_SLAVE_CAMNOC_UNCOMP },
  143. };
  144. static struct qcom_icc_node qnm_npu = {
  145. .name = "qnm_npu",
  146. .id = SC7180_MASTER_NPU,
  147. .channels = 2,
  148. .buswidth = 32,
  149. .num_links = 1,
  150. .links = { SC7180_SLAVE_CDSP_GEM_NOC },
  151. };
  152. static struct qcom_icc_node qxm_npu_dsp = {
  153. .name = "qxm_npu_dsp",
  154. .id = SC7180_MASTER_NPU_PROC,
  155. .channels = 1,
  156. .buswidth = 8,
  157. .num_links = 1,
  158. .links = { SC7180_SLAVE_CDSP_GEM_NOC },
  159. };
  160. static struct qcom_icc_node qnm_snoc = {
  161. .name = "qnm_snoc",
  162. .id = SC7180_MASTER_SNOC_CNOC,
  163. .channels = 1,
  164. .buswidth = 8,
  165. .num_links = 51,
  166. .links = { SC7180_SLAVE_A1NOC_CFG,
  167. SC7180_SLAVE_A2NOC_CFG,
  168. SC7180_SLAVE_AHB2PHY_SOUTH,
  169. SC7180_SLAVE_AHB2PHY_CENTER,
  170. SC7180_SLAVE_AOP,
  171. SC7180_SLAVE_AOSS,
  172. SC7180_SLAVE_BOOT_ROM,
  173. SC7180_SLAVE_CAMERA_CFG,
  174. SC7180_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  175. SC7180_SLAVE_CAMERA_RT_THROTTLE_CFG,
  176. SC7180_SLAVE_CLK_CTL,
  177. SC7180_SLAVE_RBCPR_CX_CFG,
  178. SC7180_SLAVE_RBCPR_MX_CFG,
  179. SC7180_SLAVE_CRYPTO_0_CFG,
  180. SC7180_SLAVE_DCC_CFG,
  181. SC7180_SLAVE_CNOC_DDRSS,
  182. SC7180_SLAVE_DISPLAY_CFG,
  183. SC7180_SLAVE_DISPLAY_RT_THROTTLE_CFG,
  184. SC7180_SLAVE_DISPLAY_THROTTLE_CFG,
  185. SC7180_SLAVE_EMMC_CFG,
  186. SC7180_SLAVE_GLM,
  187. SC7180_SLAVE_GFX3D_CFG,
  188. SC7180_SLAVE_IMEM_CFG,
  189. SC7180_SLAVE_IPA_CFG,
  190. SC7180_SLAVE_CNOC_MNOC_CFG,
  191. SC7180_SLAVE_CNOC_MSS,
  192. SC7180_SLAVE_NPU_CFG,
  193. SC7180_SLAVE_NPU_DMA_BWMON_CFG,
  194. SC7180_SLAVE_NPU_PROC_BWMON_CFG,
  195. SC7180_SLAVE_PDM,
  196. SC7180_SLAVE_PIMEM_CFG,
  197. SC7180_SLAVE_PRNG,
  198. SC7180_SLAVE_QDSS_CFG,
  199. SC7180_SLAVE_QM_CFG,
  200. SC7180_SLAVE_QM_MPU_CFG,
  201. SC7180_SLAVE_QSPI_0,
  202. SC7180_SLAVE_QUP_0,
  203. SC7180_SLAVE_QUP_1,
  204. SC7180_SLAVE_SDCC_2,
  205. SC7180_SLAVE_SECURITY,
  206. SC7180_SLAVE_SNOC_CFG,
  207. SC7180_SLAVE_TCSR,
  208. SC7180_SLAVE_TLMM_WEST,
  209. SC7180_SLAVE_TLMM_NORTH,
  210. SC7180_SLAVE_TLMM_SOUTH,
  211. SC7180_SLAVE_UFS_MEM_CFG,
  212. SC7180_SLAVE_USB3,
  213. SC7180_SLAVE_VENUS_CFG,
  214. SC7180_SLAVE_VENUS_THROTTLE_CFG,
  215. SC7180_SLAVE_VSENSE_CTRL_CFG,
  216. SC7180_SLAVE_SERVICE_CNOC
  217. },
  218. };
  219. static struct qcom_icc_node xm_qdss_dap = {
  220. .name = "xm_qdss_dap",
  221. .id = SC7180_MASTER_QDSS_DAP,
  222. .channels = 1,
  223. .buswidth = 8,
  224. .num_links = 51,
  225. .links = { SC7180_SLAVE_A1NOC_CFG,
  226. SC7180_SLAVE_A2NOC_CFG,
  227. SC7180_SLAVE_AHB2PHY_SOUTH,
  228. SC7180_SLAVE_AHB2PHY_CENTER,
  229. SC7180_SLAVE_AOP,
  230. SC7180_SLAVE_AOSS,
  231. SC7180_SLAVE_BOOT_ROM,
  232. SC7180_SLAVE_CAMERA_CFG,
  233. SC7180_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  234. SC7180_SLAVE_CAMERA_RT_THROTTLE_CFG,
  235. SC7180_SLAVE_CLK_CTL,
  236. SC7180_SLAVE_RBCPR_CX_CFG,
  237. SC7180_SLAVE_RBCPR_MX_CFG,
  238. SC7180_SLAVE_CRYPTO_0_CFG,
  239. SC7180_SLAVE_DCC_CFG,
  240. SC7180_SLAVE_CNOC_DDRSS,
  241. SC7180_SLAVE_DISPLAY_CFG,
  242. SC7180_SLAVE_DISPLAY_RT_THROTTLE_CFG,
  243. SC7180_SLAVE_DISPLAY_THROTTLE_CFG,
  244. SC7180_SLAVE_EMMC_CFG,
  245. SC7180_SLAVE_GLM,
  246. SC7180_SLAVE_GFX3D_CFG,
  247. SC7180_SLAVE_IMEM_CFG,
  248. SC7180_SLAVE_IPA_CFG,
  249. SC7180_SLAVE_CNOC_MNOC_CFG,
  250. SC7180_SLAVE_CNOC_MSS,
  251. SC7180_SLAVE_NPU_CFG,
  252. SC7180_SLAVE_NPU_DMA_BWMON_CFG,
  253. SC7180_SLAVE_NPU_PROC_BWMON_CFG,
  254. SC7180_SLAVE_PDM,
  255. SC7180_SLAVE_PIMEM_CFG,
  256. SC7180_SLAVE_PRNG,
  257. SC7180_SLAVE_QDSS_CFG,
  258. SC7180_SLAVE_QM_CFG,
  259. SC7180_SLAVE_QM_MPU_CFG,
  260. SC7180_SLAVE_QSPI_0,
  261. SC7180_SLAVE_QUP_0,
  262. SC7180_SLAVE_QUP_1,
  263. SC7180_SLAVE_SDCC_2,
  264. SC7180_SLAVE_SECURITY,
  265. SC7180_SLAVE_SNOC_CFG,
  266. SC7180_SLAVE_TCSR,
  267. SC7180_SLAVE_TLMM_WEST,
  268. SC7180_SLAVE_TLMM_NORTH,
  269. SC7180_SLAVE_TLMM_SOUTH,
  270. SC7180_SLAVE_UFS_MEM_CFG,
  271. SC7180_SLAVE_USB3,
  272. SC7180_SLAVE_VENUS_CFG,
  273. SC7180_SLAVE_VENUS_THROTTLE_CFG,
  274. SC7180_SLAVE_VSENSE_CTRL_CFG,
  275. SC7180_SLAVE_SERVICE_CNOC
  276. },
  277. };
  278. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  279. .name = "qhm_cnoc_dc_noc",
  280. .id = SC7180_MASTER_CNOC_DC_NOC,
  281. .channels = 1,
  282. .buswidth = 4,
  283. .num_links = 2,
  284. .links = { SC7180_SLAVE_GEM_NOC_CFG,
  285. SC7180_SLAVE_LLCC_CFG
  286. },
  287. };
  288. static struct qcom_icc_node acm_apps0 = {
  289. .name = "acm_apps0",
  290. .id = SC7180_MASTER_APPSS_PROC,
  291. .channels = 1,
  292. .buswidth = 16,
  293. .num_links = 2,
  294. .links = { SC7180_SLAVE_GEM_NOC_SNOC,
  295. SC7180_SLAVE_LLCC
  296. },
  297. };
  298. static struct qcom_icc_node acm_sys_tcu = {
  299. .name = "acm_sys_tcu",
  300. .id = SC7180_MASTER_SYS_TCU,
  301. .channels = 1,
  302. .buswidth = 8,
  303. .num_links = 2,
  304. .links = { SC7180_SLAVE_GEM_NOC_SNOC,
  305. SC7180_SLAVE_LLCC
  306. },
  307. };
  308. static struct qcom_icc_node qhm_gemnoc_cfg = {
  309. .name = "qhm_gemnoc_cfg",
  310. .id = SC7180_MASTER_GEM_NOC_CFG,
  311. .channels = 1,
  312. .buswidth = 4,
  313. .num_links = 2,
  314. .links = { SC7180_SLAVE_MSS_PROC_MS_MPU_CFG,
  315. SC7180_SLAVE_SERVICE_GEM_NOC
  316. },
  317. };
  318. static struct qcom_icc_node qnm_cmpnoc = {
  319. .name = "qnm_cmpnoc",
  320. .id = SC7180_MASTER_COMPUTE_NOC,
  321. .channels = 1,
  322. .buswidth = 32,
  323. .num_links = 2,
  324. .links = { SC7180_SLAVE_GEM_NOC_SNOC,
  325. SC7180_SLAVE_LLCC
  326. },
  327. };
  328. static struct qcom_icc_node qnm_mnoc_hf = {
  329. .name = "qnm_mnoc_hf",
  330. .id = SC7180_MASTER_MNOC_HF_MEM_NOC,
  331. .channels = 1,
  332. .buswidth = 32,
  333. .num_links = 1,
  334. .links = { SC7180_SLAVE_LLCC },
  335. };
  336. static struct qcom_icc_node qnm_mnoc_sf = {
  337. .name = "qnm_mnoc_sf",
  338. .id = SC7180_MASTER_MNOC_SF_MEM_NOC,
  339. .channels = 1,
  340. .buswidth = 32,
  341. .num_links = 2,
  342. .links = { SC7180_SLAVE_GEM_NOC_SNOC,
  343. SC7180_SLAVE_LLCC
  344. },
  345. };
  346. static struct qcom_icc_node qnm_snoc_gc = {
  347. .name = "qnm_snoc_gc",
  348. .id = SC7180_MASTER_SNOC_GC_MEM_NOC,
  349. .channels = 1,
  350. .buswidth = 8,
  351. .num_links = 1,
  352. .links = { SC7180_SLAVE_LLCC },
  353. };
  354. static struct qcom_icc_node qnm_snoc_sf = {
  355. .name = "qnm_snoc_sf",
  356. .id = SC7180_MASTER_SNOC_SF_MEM_NOC,
  357. .channels = 1,
  358. .buswidth = 16,
  359. .num_links = 1,
  360. .links = { SC7180_SLAVE_LLCC },
  361. };
  362. static struct qcom_icc_node qxm_gpu = {
  363. .name = "qxm_gpu",
  364. .id = SC7180_MASTER_GFX3D,
  365. .channels = 2,
  366. .buswidth = 32,
  367. .num_links = 2,
  368. .links = { SC7180_SLAVE_GEM_NOC_SNOC,
  369. SC7180_SLAVE_LLCC
  370. },
  371. };
  372. static struct qcom_icc_node llcc_mc = {
  373. .name = "llcc_mc",
  374. .id = SC7180_MASTER_LLCC,
  375. .channels = 2,
  376. .buswidth = 4,
  377. .num_links = 1,
  378. .links = { SC7180_SLAVE_EBI1 },
  379. };
  380. static struct qcom_icc_node qhm_mnoc_cfg = {
  381. .name = "qhm_mnoc_cfg",
  382. .id = SC7180_MASTER_CNOC_MNOC_CFG,
  383. .channels = 1,
  384. .buswidth = 4,
  385. .num_links = 1,
  386. .links = { SC7180_SLAVE_SERVICE_MNOC },
  387. };
  388. static struct qcom_icc_node qxm_camnoc_hf0 = {
  389. .name = "qxm_camnoc_hf0",
  390. .id = SC7180_MASTER_CAMNOC_HF0,
  391. .channels = 2,
  392. .buswidth = 32,
  393. .num_links = 1,
  394. .links = { SC7180_SLAVE_MNOC_HF_MEM_NOC },
  395. };
  396. static struct qcom_icc_node qxm_camnoc_hf1 = {
  397. .name = "qxm_camnoc_hf1",
  398. .id = SC7180_MASTER_CAMNOC_HF1,
  399. .channels = 2,
  400. .buswidth = 32,
  401. .num_links = 1,
  402. .links = { SC7180_SLAVE_MNOC_HF_MEM_NOC },
  403. };
  404. static struct qcom_icc_node qxm_camnoc_sf = {
  405. .name = "qxm_camnoc_sf",
  406. .id = SC7180_MASTER_CAMNOC_SF,
  407. .channels = 1,
  408. .buswidth = 32,
  409. .num_links = 1,
  410. .links = { SC7180_SLAVE_MNOC_SF_MEM_NOC },
  411. };
  412. static struct qcom_icc_node qxm_mdp0 = {
  413. .name = "qxm_mdp0",
  414. .id = SC7180_MASTER_MDP0,
  415. .channels = 1,
  416. .buswidth = 32,
  417. .num_links = 1,
  418. .links = { SC7180_SLAVE_MNOC_HF_MEM_NOC },
  419. };
  420. static struct qcom_icc_node qxm_rot = {
  421. .name = "qxm_rot",
  422. .id = SC7180_MASTER_ROTATOR,
  423. .channels = 1,
  424. .buswidth = 16,
  425. .num_links = 1,
  426. .links = { SC7180_SLAVE_MNOC_SF_MEM_NOC },
  427. };
  428. static struct qcom_icc_node qxm_venus0 = {
  429. .name = "qxm_venus0",
  430. .id = SC7180_MASTER_VIDEO_P0,
  431. .channels = 1,
  432. .buswidth = 32,
  433. .num_links = 1,
  434. .links = { SC7180_SLAVE_MNOC_SF_MEM_NOC },
  435. };
  436. static struct qcom_icc_node qxm_venus_arm9 = {
  437. .name = "qxm_venus_arm9",
  438. .id = SC7180_MASTER_VIDEO_PROC,
  439. .channels = 1,
  440. .buswidth = 8,
  441. .num_links = 1,
  442. .links = { SC7180_SLAVE_MNOC_SF_MEM_NOC },
  443. };
  444. static struct qcom_icc_node amm_npu_sys = {
  445. .name = "amm_npu_sys",
  446. .id = SC7180_MASTER_NPU_SYS,
  447. .channels = 2,
  448. .buswidth = 32,
  449. .num_links = 1,
  450. .links = { SC7180_SLAVE_NPU_COMPUTE_NOC },
  451. };
  452. static struct qcom_icc_node qhm_npu_cfg = {
  453. .name = "qhm_npu_cfg",
  454. .id = SC7180_MASTER_NPU_NOC_CFG,
  455. .channels = 1,
  456. .buswidth = 4,
  457. .num_links = 8,
  458. .links = { SC7180_SLAVE_NPU_CAL_DP0,
  459. SC7180_SLAVE_NPU_CP,
  460. SC7180_SLAVE_NPU_INT_DMA_BWMON_CFG,
  461. SC7180_SLAVE_NPU_DPM,
  462. SC7180_SLAVE_ISENSE_CFG,
  463. SC7180_SLAVE_NPU_LLM_CFG,
  464. SC7180_SLAVE_NPU_TCM,
  465. SC7180_SLAVE_SERVICE_NPU_NOC
  466. },
  467. };
  468. static struct qcom_icc_node qup_core_master_1 = {
  469. .name = "qup_core_master_1",
  470. .id = SC7180_MASTER_QUP_CORE_0,
  471. .channels = 1,
  472. .buswidth = 4,
  473. .num_links = 1,
  474. .links = { SC7180_SLAVE_QUP_CORE_0 },
  475. };
  476. static struct qcom_icc_node qup_core_master_2 = {
  477. .name = "qup_core_master_2",
  478. .id = SC7180_MASTER_QUP_CORE_1,
  479. .channels = 1,
  480. .buswidth = 4,
  481. .num_links = 1,
  482. .links = { SC7180_SLAVE_QUP_CORE_1 },
  483. };
  484. static struct qcom_icc_node qhm_snoc_cfg = {
  485. .name = "qhm_snoc_cfg",
  486. .id = SC7180_MASTER_SNOC_CFG,
  487. .channels = 1,
  488. .buswidth = 4,
  489. .num_links = 1,
  490. .links = { SC7180_SLAVE_SERVICE_SNOC },
  491. };
  492. static struct qcom_icc_node qnm_aggre1_noc = {
  493. .name = "qnm_aggre1_noc",
  494. .id = SC7180_MASTER_A1NOC_SNOC,
  495. .channels = 1,
  496. .buswidth = 16,
  497. .num_links = 6,
  498. .links = { SC7180_SLAVE_APPSS,
  499. SC7180_SLAVE_SNOC_CNOC,
  500. SC7180_SLAVE_SNOC_GEM_NOC_SF,
  501. SC7180_SLAVE_IMEM,
  502. SC7180_SLAVE_PIMEM,
  503. SC7180_SLAVE_QDSS_STM
  504. },
  505. };
  506. static struct qcom_icc_node qnm_aggre2_noc = {
  507. .name = "qnm_aggre2_noc",
  508. .id = SC7180_MASTER_A2NOC_SNOC,
  509. .channels = 1,
  510. .buswidth = 16,
  511. .num_links = 7,
  512. .links = { SC7180_SLAVE_APPSS,
  513. SC7180_SLAVE_SNOC_CNOC,
  514. SC7180_SLAVE_SNOC_GEM_NOC_SF,
  515. SC7180_SLAVE_IMEM,
  516. SC7180_SLAVE_PIMEM,
  517. SC7180_SLAVE_QDSS_STM,
  518. SC7180_SLAVE_TCU
  519. },
  520. };
  521. static struct qcom_icc_node qnm_gemnoc = {
  522. .name = "qnm_gemnoc",
  523. .id = SC7180_MASTER_GEM_NOC_SNOC,
  524. .channels = 1,
  525. .buswidth = 8,
  526. .num_links = 6,
  527. .links = { SC7180_SLAVE_APPSS,
  528. SC7180_SLAVE_SNOC_CNOC,
  529. SC7180_SLAVE_IMEM,
  530. SC7180_SLAVE_PIMEM,
  531. SC7180_SLAVE_QDSS_STM,
  532. SC7180_SLAVE_TCU
  533. },
  534. };
  535. static struct qcom_icc_node qxm_pimem = {
  536. .name = "qxm_pimem",
  537. .id = SC7180_MASTER_PIMEM,
  538. .channels = 1,
  539. .buswidth = 8,
  540. .num_links = 2,
  541. .links = { SC7180_SLAVE_SNOC_GEM_NOC_GC,
  542. SC7180_SLAVE_IMEM
  543. },
  544. };
  545. static struct qcom_icc_node qns_a1noc_snoc = {
  546. .name = "qns_a1noc_snoc",
  547. .id = SC7180_SLAVE_A1NOC_SNOC,
  548. .channels = 1,
  549. .buswidth = 16,
  550. .num_links = 1,
  551. .links = { SC7180_MASTER_A1NOC_SNOC },
  552. };
  553. static struct qcom_icc_node srvc_aggre1_noc = {
  554. .name = "srvc_aggre1_noc",
  555. .id = SC7180_SLAVE_SERVICE_A1NOC,
  556. .channels = 1,
  557. .buswidth = 4,
  558. };
  559. static struct qcom_icc_node qns_a2noc_snoc = {
  560. .name = "qns_a2noc_snoc",
  561. .id = SC7180_SLAVE_A2NOC_SNOC,
  562. .channels = 1,
  563. .buswidth = 16,
  564. .num_links = 1,
  565. .links = { SC7180_MASTER_A2NOC_SNOC },
  566. };
  567. static struct qcom_icc_node srvc_aggre2_noc = {
  568. .name = "srvc_aggre2_noc",
  569. .id = SC7180_SLAVE_SERVICE_A2NOC,
  570. .channels = 1,
  571. .buswidth = 4,
  572. };
  573. static struct qcom_icc_node qns_camnoc_uncomp = {
  574. .name = "qns_camnoc_uncomp",
  575. .id = SC7180_SLAVE_CAMNOC_UNCOMP,
  576. .channels = 1,
  577. .buswidth = 32,
  578. };
  579. static struct qcom_icc_node qns_cdsp_gemnoc = {
  580. .name = "qns_cdsp_gemnoc",
  581. .id = SC7180_SLAVE_CDSP_GEM_NOC,
  582. .channels = 1,
  583. .buswidth = 32,
  584. .num_links = 1,
  585. .links = { SC7180_MASTER_COMPUTE_NOC },
  586. };
  587. static struct qcom_icc_node qhs_a1_noc_cfg = {
  588. .name = "qhs_a1_noc_cfg",
  589. .id = SC7180_SLAVE_A1NOC_CFG,
  590. .channels = 1,
  591. .buswidth = 4,
  592. .num_links = 1,
  593. .links = { SC7180_MASTER_A1NOC_CFG },
  594. };
  595. static struct qcom_icc_node qhs_a2_noc_cfg = {
  596. .name = "qhs_a2_noc_cfg",
  597. .id = SC7180_SLAVE_A2NOC_CFG,
  598. .channels = 1,
  599. .buswidth = 4,
  600. .num_links = 1,
  601. .links = { SC7180_MASTER_A2NOC_CFG },
  602. };
  603. static struct qcom_icc_node qhs_ahb2phy0 = {
  604. .name = "qhs_ahb2phy0",
  605. .id = SC7180_SLAVE_AHB2PHY_SOUTH,
  606. .channels = 1,
  607. .buswidth = 4,
  608. };
  609. static struct qcom_icc_node qhs_ahb2phy2 = {
  610. .name = "qhs_ahb2phy2",
  611. .id = SC7180_SLAVE_AHB2PHY_CENTER,
  612. .channels = 1,
  613. .buswidth = 4,
  614. };
  615. static struct qcom_icc_node qhs_aop = {
  616. .name = "qhs_aop",
  617. .id = SC7180_SLAVE_AOP,
  618. .channels = 1,
  619. .buswidth = 4,
  620. };
  621. static struct qcom_icc_node qhs_aoss = {
  622. .name = "qhs_aoss",
  623. .id = SC7180_SLAVE_AOSS,
  624. .channels = 1,
  625. .buswidth = 4,
  626. };
  627. static struct qcom_icc_node qhs_boot_rom = {
  628. .name = "qhs_boot_rom",
  629. .id = SC7180_SLAVE_BOOT_ROM,
  630. .channels = 1,
  631. .buswidth = 4,
  632. };
  633. static struct qcom_icc_node qhs_camera_cfg = {
  634. .name = "qhs_camera_cfg",
  635. .id = SC7180_SLAVE_CAMERA_CFG,
  636. .channels = 1,
  637. .buswidth = 4,
  638. };
  639. static struct qcom_icc_node qhs_camera_nrt_throttle_cfg = {
  640. .name = "qhs_camera_nrt_throttle_cfg",
  641. .id = SC7180_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  642. .channels = 1,
  643. .buswidth = 4,
  644. };
  645. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  646. .name = "qhs_camera_rt_throttle_cfg",
  647. .id = SC7180_SLAVE_CAMERA_RT_THROTTLE_CFG,
  648. .channels = 1,
  649. .buswidth = 4,
  650. };
  651. static struct qcom_icc_node qhs_clk_ctl = {
  652. .name = "qhs_clk_ctl",
  653. .id = SC7180_SLAVE_CLK_CTL,
  654. .channels = 1,
  655. .buswidth = 4,
  656. };
  657. static struct qcom_icc_node qhs_cpr_cx = {
  658. .name = "qhs_cpr_cx",
  659. .id = SC7180_SLAVE_RBCPR_CX_CFG,
  660. .channels = 1,
  661. .buswidth = 4,
  662. };
  663. static struct qcom_icc_node qhs_cpr_mx = {
  664. .name = "qhs_cpr_mx",
  665. .id = SC7180_SLAVE_RBCPR_MX_CFG,
  666. .channels = 1,
  667. .buswidth = 4,
  668. };
  669. static struct qcom_icc_node qhs_crypto0_cfg = {
  670. .name = "qhs_crypto0_cfg",
  671. .id = SC7180_SLAVE_CRYPTO_0_CFG,
  672. .channels = 1,
  673. .buswidth = 4,
  674. };
  675. static struct qcom_icc_node qhs_dcc_cfg = {
  676. .name = "qhs_dcc_cfg",
  677. .id = SC7180_SLAVE_DCC_CFG,
  678. .channels = 1,
  679. .buswidth = 4,
  680. };
  681. static struct qcom_icc_node qhs_ddrss_cfg = {
  682. .name = "qhs_ddrss_cfg",
  683. .id = SC7180_SLAVE_CNOC_DDRSS,
  684. .channels = 1,
  685. .buswidth = 4,
  686. .num_links = 1,
  687. .links = { SC7180_MASTER_CNOC_DC_NOC },
  688. };
  689. static struct qcom_icc_node qhs_display_cfg = {
  690. .name = "qhs_display_cfg",
  691. .id = SC7180_SLAVE_DISPLAY_CFG,
  692. .channels = 1,
  693. .buswidth = 4,
  694. };
  695. static struct qcom_icc_node qhs_display_rt_throttle_cfg = {
  696. .name = "qhs_display_rt_throttle_cfg",
  697. .id = SC7180_SLAVE_DISPLAY_RT_THROTTLE_CFG,
  698. .channels = 1,
  699. .buswidth = 4,
  700. };
  701. static struct qcom_icc_node qhs_display_throttle_cfg = {
  702. .name = "qhs_display_throttle_cfg",
  703. .id = SC7180_SLAVE_DISPLAY_THROTTLE_CFG,
  704. .channels = 1,
  705. .buswidth = 4,
  706. };
  707. static struct qcom_icc_node qhs_emmc_cfg = {
  708. .name = "qhs_emmc_cfg",
  709. .id = SC7180_SLAVE_EMMC_CFG,
  710. .channels = 1,
  711. .buswidth = 4,
  712. };
  713. static struct qcom_icc_node qhs_glm = {
  714. .name = "qhs_glm",
  715. .id = SC7180_SLAVE_GLM,
  716. .channels = 1,
  717. .buswidth = 4,
  718. };
  719. static struct qcom_icc_node qhs_gpuss_cfg = {
  720. .name = "qhs_gpuss_cfg",
  721. .id = SC7180_SLAVE_GFX3D_CFG,
  722. .channels = 1,
  723. .buswidth = 8,
  724. };
  725. static struct qcom_icc_node qhs_imem_cfg = {
  726. .name = "qhs_imem_cfg",
  727. .id = SC7180_SLAVE_IMEM_CFG,
  728. .channels = 1,
  729. .buswidth = 4,
  730. };
  731. static struct qcom_icc_node qhs_ipa = {
  732. .name = "qhs_ipa",
  733. .id = SC7180_SLAVE_IPA_CFG,
  734. .channels = 1,
  735. .buswidth = 4,
  736. };
  737. static struct qcom_icc_node qhs_mnoc_cfg = {
  738. .name = "qhs_mnoc_cfg",
  739. .id = SC7180_SLAVE_CNOC_MNOC_CFG,
  740. .channels = 1,
  741. .buswidth = 4,
  742. .num_links = 1,
  743. .links = { SC7180_MASTER_CNOC_MNOC_CFG },
  744. };
  745. static struct qcom_icc_node qhs_mss_cfg = {
  746. .name = "qhs_mss_cfg",
  747. .id = SC7180_SLAVE_CNOC_MSS,
  748. .channels = 1,
  749. .buswidth = 4,
  750. };
  751. static struct qcom_icc_node qhs_npu_cfg = {
  752. .name = "qhs_npu_cfg",
  753. .id = SC7180_SLAVE_NPU_CFG,
  754. .channels = 1,
  755. .buswidth = 4,
  756. .num_links = 1,
  757. .links = { SC7180_MASTER_NPU_NOC_CFG },
  758. };
  759. static struct qcom_icc_node qhs_npu_dma_throttle_cfg = {
  760. .name = "qhs_npu_dma_throttle_cfg",
  761. .id = SC7180_SLAVE_NPU_DMA_BWMON_CFG,
  762. .channels = 1,
  763. .buswidth = 4,
  764. };
  765. static struct qcom_icc_node qhs_npu_dsp_throttle_cfg = {
  766. .name = "qhs_npu_dsp_throttle_cfg",
  767. .id = SC7180_SLAVE_NPU_PROC_BWMON_CFG,
  768. .channels = 1,
  769. .buswidth = 4,
  770. };
  771. static struct qcom_icc_node qhs_pdm = {
  772. .name = "qhs_pdm",
  773. .id = SC7180_SLAVE_PDM,
  774. .channels = 1,
  775. .buswidth = 4,
  776. };
  777. static struct qcom_icc_node qhs_pimem_cfg = {
  778. .name = "qhs_pimem_cfg",
  779. .id = SC7180_SLAVE_PIMEM_CFG,
  780. .channels = 1,
  781. .buswidth = 4,
  782. };
  783. static struct qcom_icc_node qhs_prng = {
  784. .name = "qhs_prng",
  785. .id = SC7180_SLAVE_PRNG,
  786. .channels = 1,
  787. .buswidth = 4,
  788. };
  789. static struct qcom_icc_node qhs_qdss_cfg = {
  790. .name = "qhs_qdss_cfg",
  791. .id = SC7180_SLAVE_QDSS_CFG,
  792. .channels = 1,
  793. .buswidth = 4,
  794. };
  795. static struct qcom_icc_node qhs_qm_cfg = {
  796. .name = "qhs_qm_cfg",
  797. .id = SC7180_SLAVE_QM_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. };
  801. static struct qcom_icc_node qhs_qm_mpu_cfg = {
  802. .name = "qhs_qm_mpu_cfg",
  803. .id = SC7180_SLAVE_QM_MPU_CFG,
  804. .channels = 1,
  805. .buswidth = 4,
  806. };
  807. static struct qcom_icc_node qhs_qspi = {
  808. .name = "qhs_qspi",
  809. .id = SC7180_SLAVE_QSPI_0,
  810. .channels = 1,
  811. .buswidth = 4,
  812. };
  813. static struct qcom_icc_node qhs_qup0 = {
  814. .name = "qhs_qup0",
  815. .id = SC7180_SLAVE_QUP_0,
  816. .channels = 1,
  817. .buswidth = 4,
  818. };
  819. static struct qcom_icc_node qhs_qup1 = {
  820. .name = "qhs_qup1",
  821. .id = SC7180_SLAVE_QUP_1,
  822. .channels = 1,
  823. .buswidth = 4,
  824. };
  825. static struct qcom_icc_node qhs_sdc2 = {
  826. .name = "qhs_sdc2",
  827. .id = SC7180_SLAVE_SDCC_2,
  828. .channels = 1,
  829. .buswidth = 4,
  830. };
  831. static struct qcom_icc_node qhs_security = {
  832. .name = "qhs_security",
  833. .id = SC7180_SLAVE_SECURITY,
  834. .channels = 1,
  835. .buswidth = 4,
  836. };
  837. static struct qcom_icc_node qhs_snoc_cfg = {
  838. .name = "qhs_snoc_cfg",
  839. .id = SC7180_SLAVE_SNOC_CFG,
  840. .channels = 1,
  841. .buswidth = 4,
  842. .num_links = 1,
  843. .links = { SC7180_MASTER_SNOC_CFG },
  844. };
  845. static struct qcom_icc_node qhs_tcsr = {
  846. .name = "qhs_tcsr",
  847. .id = SC7180_SLAVE_TCSR,
  848. .channels = 1,
  849. .buswidth = 4,
  850. };
  851. static struct qcom_icc_node qhs_tlmm_1 = {
  852. .name = "qhs_tlmm_1",
  853. .id = SC7180_SLAVE_TLMM_WEST,
  854. .channels = 1,
  855. .buswidth = 4,
  856. };
  857. static struct qcom_icc_node qhs_tlmm_2 = {
  858. .name = "qhs_tlmm_2",
  859. .id = SC7180_SLAVE_TLMM_NORTH,
  860. .channels = 1,
  861. .buswidth = 4,
  862. };
  863. static struct qcom_icc_node qhs_tlmm_3 = {
  864. .name = "qhs_tlmm_3",
  865. .id = SC7180_SLAVE_TLMM_SOUTH,
  866. .channels = 1,
  867. .buswidth = 4,
  868. };
  869. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  870. .name = "qhs_ufs_mem_cfg",
  871. .id = SC7180_SLAVE_UFS_MEM_CFG,
  872. .channels = 1,
  873. .buswidth = 4,
  874. };
  875. static struct qcom_icc_node qhs_usb3 = {
  876. .name = "qhs_usb3",
  877. .id = SC7180_SLAVE_USB3,
  878. .channels = 1,
  879. .buswidth = 4,
  880. };
  881. static struct qcom_icc_node qhs_venus_cfg = {
  882. .name = "qhs_venus_cfg",
  883. .id = SC7180_SLAVE_VENUS_CFG,
  884. .channels = 1,
  885. .buswidth = 4,
  886. };
  887. static struct qcom_icc_node qhs_venus_throttle_cfg = {
  888. .name = "qhs_venus_throttle_cfg",
  889. .id = SC7180_SLAVE_VENUS_THROTTLE_CFG,
  890. .channels = 1,
  891. .buswidth = 4,
  892. };
  893. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  894. .name = "qhs_vsense_ctrl_cfg",
  895. .id = SC7180_SLAVE_VSENSE_CTRL_CFG,
  896. .channels = 1,
  897. .buswidth = 4,
  898. };
  899. static struct qcom_icc_node srvc_cnoc = {
  900. .name = "srvc_cnoc",
  901. .id = SC7180_SLAVE_SERVICE_CNOC,
  902. .channels = 1,
  903. .buswidth = 4,
  904. };
  905. static struct qcom_icc_node qhs_gemnoc = {
  906. .name = "qhs_gemnoc",
  907. .id = SC7180_SLAVE_GEM_NOC_CFG,
  908. .channels = 1,
  909. .buswidth = 4,
  910. .num_links = 1,
  911. .links = { SC7180_MASTER_GEM_NOC_CFG },
  912. };
  913. static struct qcom_icc_node qhs_llcc = {
  914. .name = "qhs_llcc",
  915. .id = SC7180_SLAVE_LLCC_CFG,
  916. .channels = 1,
  917. .buswidth = 4,
  918. };
  919. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  920. .name = "qhs_mdsp_ms_mpu_cfg",
  921. .id = SC7180_SLAVE_MSS_PROC_MS_MPU_CFG,
  922. .channels = 1,
  923. .buswidth = 4,
  924. };
  925. static struct qcom_icc_node qns_gem_noc_snoc = {
  926. .name = "qns_gem_noc_snoc",
  927. .id = SC7180_SLAVE_GEM_NOC_SNOC,
  928. .channels = 1,
  929. .buswidth = 8,
  930. .num_links = 1,
  931. .links = { SC7180_MASTER_GEM_NOC_SNOC },
  932. };
  933. static struct qcom_icc_node qns_llcc = {
  934. .name = "qns_llcc",
  935. .id = SC7180_SLAVE_LLCC,
  936. .channels = 1,
  937. .buswidth = 16,
  938. .num_links = 1,
  939. .links = { SC7180_MASTER_LLCC },
  940. };
  941. static struct qcom_icc_node srvc_gemnoc = {
  942. .name = "srvc_gemnoc",
  943. .id = SC7180_SLAVE_SERVICE_GEM_NOC,
  944. .channels = 1,
  945. .buswidth = 4,
  946. };
  947. static struct qcom_icc_node ebi = {
  948. .name = "ebi",
  949. .id = SC7180_SLAVE_EBI1,
  950. .channels = 2,
  951. .buswidth = 4,
  952. };
  953. static struct qcom_icc_node qns_mem_noc_hf = {
  954. .name = "qns_mem_noc_hf",
  955. .id = SC7180_SLAVE_MNOC_HF_MEM_NOC,
  956. .channels = 1,
  957. .buswidth = 32,
  958. .num_links = 1,
  959. .links = { SC7180_MASTER_MNOC_HF_MEM_NOC },
  960. };
  961. static struct qcom_icc_node qns_mem_noc_sf = {
  962. .name = "qns_mem_noc_sf",
  963. .id = SC7180_SLAVE_MNOC_SF_MEM_NOC,
  964. .channels = 1,
  965. .buswidth = 32,
  966. .num_links = 1,
  967. .links = { SC7180_MASTER_MNOC_SF_MEM_NOC },
  968. };
  969. static struct qcom_icc_node srvc_mnoc = {
  970. .name = "srvc_mnoc",
  971. .id = SC7180_SLAVE_SERVICE_MNOC,
  972. .channels = 1,
  973. .buswidth = 4,
  974. };
  975. static struct qcom_icc_node qhs_cal_dp0 = {
  976. .name = "qhs_cal_dp0",
  977. .id = SC7180_SLAVE_NPU_CAL_DP0,
  978. .channels = 1,
  979. .buswidth = 4,
  980. };
  981. static struct qcom_icc_node qhs_cp = {
  982. .name = "qhs_cp",
  983. .id = SC7180_SLAVE_NPU_CP,
  984. .channels = 1,
  985. .buswidth = 4,
  986. };
  987. static struct qcom_icc_node qhs_dma_bwmon = {
  988. .name = "qhs_dma_bwmon",
  989. .id = SC7180_SLAVE_NPU_INT_DMA_BWMON_CFG,
  990. .channels = 1,
  991. .buswidth = 4,
  992. };
  993. static struct qcom_icc_node qhs_dpm = {
  994. .name = "qhs_dpm",
  995. .id = SC7180_SLAVE_NPU_DPM,
  996. .channels = 1,
  997. .buswidth = 4,
  998. };
  999. static struct qcom_icc_node qhs_isense = {
  1000. .name = "qhs_isense",
  1001. .id = SC7180_SLAVE_ISENSE_CFG,
  1002. .channels = 1,
  1003. .buswidth = 4,
  1004. };
  1005. static struct qcom_icc_node qhs_llm = {
  1006. .name = "qhs_llm",
  1007. .id = SC7180_SLAVE_NPU_LLM_CFG,
  1008. .channels = 1,
  1009. .buswidth = 4,
  1010. };
  1011. static struct qcom_icc_node qhs_tcm = {
  1012. .name = "qhs_tcm",
  1013. .id = SC7180_SLAVE_NPU_TCM,
  1014. .channels = 1,
  1015. .buswidth = 4,
  1016. };
  1017. static struct qcom_icc_node qns_npu_sys = {
  1018. .name = "qns_npu_sys",
  1019. .id = SC7180_SLAVE_NPU_COMPUTE_NOC,
  1020. .channels = 2,
  1021. .buswidth = 32,
  1022. };
  1023. static struct qcom_icc_node srvc_noc = {
  1024. .name = "srvc_noc",
  1025. .id = SC7180_SLAVE_SERVICE_NPU_NOC,
  1026. .channels = 1,
  1027. .buswidth = 4,
  1028. };
  1029. static struct qcom_icc_node qup_core_slave_1 = {
  1030. .name = "qup_core_slave_1",
  1031. .id = SC7180_SLAVE_QUP_CORE_0,
  1032. .channels = 1,
  1033. .buswidth = 4,
  1034. };
  1035. static struct qcom_icc_node qup_core_slave_2 = {
  1036. .name = "qup_core_slave_2",
  1037. .id = SC7180_SLAVE_QUP_CORE_1,
  1038. .channels = 1,
  1039. .buswidth = 4,
  1040. };
  1041. static struct qcom_icc_node qhs_apss = {
  1042. .name = "qhs_apss",
  1043. .id = SC7180_SLAVE_APPSS,
  1044. .channels = 1,
  1045. .buswidth = 8,
  1046. };
  1047. static struct qcom_icc_node qns_cnoc = {
  1048. .name = "qns_cnoc",
  1049. .id = SC7180_SLAVE_SNOC_CNOC,
  1050. .channels = 1,
  1051. .buswidth = 8,
  1052. .num_links = 1,
  1053. .links = { SC7180_MASTER_SNOC_CNOC },
  1054. };
  1055. static struct qcom_icc_node qns_gemnoc_gc = {
  1056. .name = "qns_gemnoc_gc",
  1057. .id = SC7180_SLAVE_SNOC_GEM_NOC_GC,
  1058. .channels = 1,
  1059. .buswidth = 8,
  1060. .num_links = 1,
  1061. .links = { SC7180_MASTER_SNOC_GC_MEM_NOC },
  1062. };
  1063. static struct qcom_icc_node qns_gemnoc_sf = {
  1064. .name = "qns_gemnoc_sf",
  1065. .id = SC7180_SLAVE_SNOC_GEM_NOC_SF,
  1066. .channels = 1,
  1067. .buswidth = 16,
  1068. .num_links = 1,
  1069. .links = { SC7180_MASTER_SNOC_SF_MEM_NOC },
  1070. };
  1071. static struct qcom_icc_node qxs_imem = {
  1072. .name = "qxs_imem",
  1073. .id = SC7180_SLAVE_IMEM,
  1074. .channels = 1,
  1075. .buswidth = 8,
  1076. };
  1077. static struct qcom_icc_node qxs_pimem = {
  1078. .name = "qxs_pimem",
  1079. .id = SC7180_SLAVE_PIMEM,
  1080. .channels = 1,
  1081. .buswidth = 8,
  1082. };
  1083. static struct qcom_icc_node srvc_snoc = {
  1084. .name = "srvc_snoc",
  1085. .id = SC7180_SLAVE_SERVICE_SNOC,
  1086. .channels = 1,
  1087. .buswidth = 4,
  1088. };
  1089. static struct qcom_icc_node xs_qdss_stm = {
  1090. .name = "xs_qdss_stm",
  1091. .id = SC7180_SLAVE_QDSS_STM,
  1092. .channels = 1,
  1093. .buswidth = 4,
  1094. };
  1095. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1096. .name = "xs_sys_tcu_cfg",
  1097. .id = SC7180_SLAVE_TCU,
  1098. .channels = 1,
  1099. .buswidth = 8,
  1100. };
  1101. static struct qcom_icc_bcm bcm_acv = {
  1102. .name = "ACV",
  1103. .enable_mask = BIT(3),
  1104. .keepalive = false,
  1105. .num_nodes = 1,
  1106. .nodes = { &ebi },
  1107. };
  1108. static struct qcom_icc_bcm bcm_mc0 = {
  1109. .name = "MC0",
  1110. .keepalive = true,
  1111. .num_nodes = 1,
  1112. .nodes = { &ebi },
  1113. };
  1114. static struct qcom_icc_bcm bcm_sh0 = {
  1115. .name = "SH0",
  1116. .keepalive = true,
  1117. .num_nodes = 1,
  1118. .nodes = { &qns_llcc },
  1119. };
  1120. static struct qcom_icc_bcm bcm_mm0 = {
  1121. .name = "MM0",
  1122. .keepalive = false,
  1123. .num_nodes = 1,
  1124. .nodes = { &qns_mem_noc_hf },
  1125. };
  1126. static struct qcom_icc_bcm bcm_ce0 = {
  1127. .name = "CE0",
  1128. .keepalive = false,
  1129. .num_nodes = 1,
  1130. .nodes = { &qxm_crypto },
  1131. };
  1132. static struct qcom_icc_bcm bcm_cn0 = {
  1133. .name = "CN0",
  1134. .keepalive = true,
  1135. .num_nodes = 48,
  1136. .nodes = { &qnm_snoc,
  1137. &xm_qdss_dap,
  1138. &qhs_a1_noc_cfg,
  1139. &qhs_a2_noc_cfg,
  1140. &qhs_ahb2phy0,
  1141. &qhs_aop,
  1142. &qhs_aoss,
  1143. &qhs_boot_rom,
  1144. &qhs_camera_cfg,
  1145. &qhs_camera_nrt_throttle_cfg,
  1146. &qhs_camera_rt_throttle_cfg,
  1147. &qhs_clk_ctl,
  1148. &qhs_cpr_cx,
  1149. &qhs_cpr_mx,
  1150. &qhs_crypto0_cfg,
  1151. &qhs_dcc_cfg,
  1152. &qhs_ddrss_cfg,
  1153. &qhs_display_cfg,
  1154. &qhs_display_rt_throttle_cfg,
  1155. &qhs_display_throttle_cfg,
  1156. &qhs_glm,
  1157. &qhs_gpuss_cfg,
  1158. &qhs_imem_cfg,
  1159. &qhs_ipa,
  1160. &qhs_mnoc_cfg,
  1161. &qhs_mss_cfg,
  1162. &qhs_npu_cfg,
  1163. &qhs_npu_dma_throttle_cfg,
  1164. &qhs_npu_dsp_throttle_cfg,
  1165. &qhs_pimem_cfg,
  1166. &qhs_prng,
  1167. &qhs_qdss_cfg,
  1168. &qhs_qm_cfg,
  1169. &qhs_qm_mpu_cfg,
  1170. &qhs_qup0,
  1171. &qhs_qup1,
  1172. &qhs_security,
  1173. &qhs_snoc_cfg,
  1174. &qhs_tcsr,
  1175. &qhs_tlmm_1,
  1176. &qhs_tlmm_2,
  1177. &qhs_tlmm_3,
  1178. &qhs_ufs_mem_cfg,
  1179. &qhs_usb3,
  1180. &qhs_venus_cfg,
  1181. &qhs_venus_throttle_cfg,
  1182. &qhs_vsense_ctrl_cfg,
  1183. &srvc_cnoc
  1184. },
  1185. };
  1186. static struct qcom_icc_bcm bcm_mm1 = {
  1187. .name = "MM1",
  1188. .keepalive = false,
  1189. .num_nodes = 8,
  1190. .nodes = { &qxm_camnoc_hf0_uncomp,
  1191. &qxm_camnoc_hf1_uncomp,
  1192. &qxm_camnoc_sf_uncomp,
  1193. &qhm_mnoc_cfg,
  1194. &qxm_mdp0,
  1195. &qxm_rot,
  1196. &qxm_venus0,
  1197. &qxm_venus_arm9
  1198. },
  1199. };
  1200. static struct qcom_icc_bcm bcm_sh2 = {
  1201. .name = "SH2",
  1202. .keepalive = false,
  1203. .num_nodes = 1,
  1204. .nodes = { &acm_sys_tcu },
  1205. };
  1206. static struct qcom_icc_bcm bcm_mm2 = {
  1207. .name = "MM2",
  1208. .keepalive = false,
  1209. .num_nodes = 1,
  1210. .nodes = { &qns_mem_noc_sf },
  1211. };
  1212. static struct qcom_icc_bcm bcm_qup0 = {
  1213. .name = "QUP0",
  1214. .keepalive = false,
  1215. .num_nodes = 2,
  1216. .nodes = { &qup_core_master_1, &qup_core_master_2 },
  1217. };
  1218. static struct qcom_icc_bcm bcm_sh3 = {
  1219. .name = "SH3",
  1220. .keepalive = false,
  1221. .num_nodes = 1,
  1222. .nodes = { &qnm_cmpnoc },
  1223. };
  1224. static struct qcom_icc_bcm bcm_sh4 = {
  1225. .name = "SH4",
  1226. .keepalive = false,
  1227. .num_nodes = 1,
  1228. .nodes = { &acm_apps0 },
  1229. };
  1230. static struct qcom_icc_bcm bcm_sn0 = {
  1231. .name = "SN0",
  1232. .keepalive = true,
  1233. .num_nodes = 1,
  1234. .nodes = { &qns_gemnoc_sf },
  1235. };
  1236. static struct qcom_icc_bcm bcm_co0 = {
  1237. .name = "CO0",
  1238. .keepalive = false,
  1239. .num_nodes = 1,
  1240. .nodes = { &qns_cdsp_gemnoc },
  1241. };
  1242. static struct qcom_icc_bcm bcm_sn1 = {
  1243. .name = "SN1",
  1244. .keepalive = false,
  1245. .num_nodes = 1,
  1246. .nodes = { &qxs_imem },
  1247. };
  1248. static struct qcom_icc_bcm bcm_cn1 = {
  1249. .name = "CN1",
  1250. .keepalive = false,
  1251. .num_nodes = 8,
  1252. .nodes = { &qhm_qspi,
  1253. &xm_sdc2,
  1254. &xm_emmc,
  1255. &qhs_ahb2phy2,
  1256. &qhs_emmc_cfg,
  1257. &qhs_pdm,
  1258. &qhs_qspi,
  1259. &qhs_sdc2
  1260. },
  1261. };
  1262. static struct qcom_icc_bcm bcm_sn2 = {
  1263. .name = "SN2",
  1264. .keepalive = false,
  1265. .num_nodes = 2,
  1266. .nodes = { &qxm_pimem, &qns_gemnoc_gc },
  1267. };
  1268. static struct qcom_icc_bcm bcm_co2 = {
  1269. .name = "CO2",
  1270. .keepalive = false,
  1271. .num_nodes = 1,
  1272. .nodes = { &qnm_npu },
  1273. };
  1274. static struct qcom_icc_bcm bcm_sn3 = {
  1275. .name = "SN3",
  1276. .keepalive = false,
  1277. .num_nodes = 1,
  1278. .nodes = { &qxs_pimem },
  1279. };
  1280. static struct qcom_icc_bcm bcm_co3 = {
  1281. .name = "CO3",
  1282. .keepalive = false,
  1283. .num_nodes = 1,
  1284. .nodes = { &qxm_npu_dsp },
  1285. };
  1286. static struct qcom_icc_bcm bcm_sn4 = {
  1287. .name = "SN4",
  1288. .keepalive = false,
  1289. .num_nodes = 1,
  1290. .nodes = { &xs_qdss_stm },
  1291. };
  1292. static struct qcom_icc_bcm bcm_sn7 = {
  1293. .name = "SN7",
  1294. .keepalive = false,
  1295. .num_nodes = 1,
  1296. .nodes = { &qnm_aggre1_noc },
  1297. };
  1298. static struct qcom_icc_bcm bcm_sn9 = {
  1299. .name = "SN9",
  1300. .keepalive = false,
  1301. .num_nodes = 1,
  1302. .nodes = { &qnm_aggre2_noc },
  1303. };
  1304. static struct qcom_icc_bcm bcm_sn12 = {
  1305. .name = "SN12",
  1306. .keepalive = false,
  1307. .num_nodes = 1,
  1308. .nodes = { &qnm_gemnoc },
  1309. };
  1310. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1311. &bcm_cn1,
  1312. };
  1313. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1314. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1315. [MASTER_QSPI] = &qhm_qspi,
  1316. [MASTER_QUP_0] = &qhm_qup_0,
  1317. [MASTER_SDCC_2] = &xm_sdc2,
  1318. [MASTER_EMMC] = &xm_emmc,
  1319. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1320. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1321. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1322. };
  1323. static const struct qcom_icc_desc sc7180_aggre1_noc = {
  1324. .nodes = aggre1_noc_nodes,
  1325. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1326. .bcms = aggre1_noc_bcms,
  1327. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1328. };
  1329. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1330. &bcm_ce0,
  1331. };
  1332. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1333. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1334. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1335. [MASTER_QUP_1] = &qhm_qup_1,
  1336. [MASTER_USB3] = &qhm_usb3,
  1337. [MASTER_CRYPTO] = &qxm_crypto,
  1338. [MASTER_IPA] = &qxm_ipa,
  1339. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1340. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1341. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1342. };
  1343. static const struct qcom_icc_desc sc7180_aggre2_noc = {
  1344. .nodes = aggre2_noc_nodes,
  1345. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1346. .bcms = aggre2_noc_bcms,
  1347. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1348. };
  1349. static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
  1350. &bcm_mm1,
  1351. };
  1352. static struct qcom_icc_node * const camnoc_virt_nodes[] = {
  1353. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1354. [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp,
  1355. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1356. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1357. };
  1358. static const struct qcom_icc_desc sc7180_camnoc_virt = {
  1359. .nodes = camnoc_virt_nodes,
  1360. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1361. .bcms = camnoc_virt_bcms,
  1362. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1363. };
  1364. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1365. &bcm_co0,
  1366. &bcm_co2,
  1367. &bcm_co3,
  1368. };
  1369. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1370. [MASTER_NPU] = &qnm_npu,
  1371. [MASTER_NPU_PROC] = &qxm_npu_dsp,
  1372. [SLAVE_CDSP_GEM_NOC] = &qns_cdsp_gemnoc,
  1373. };
  1374. static const struct qcom_icc_desc sc7180_compute_noc = {
  1375. .nodes = compute_noc_nodes,
  1376. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1377. .bcms = compute_noc_bcms,
  1378. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1379. };
  1380. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1381. &bcm_cn0,
  1382. &bcm_cn1,
  1383. };
  1384. static struct qcom_icc_node * const config_noc_nodes[] = {
  1385. [MASTER_SNOC_CNOC] = &qnm_snoc,
  1386. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1387. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1388. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1389. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1390. [SLAVE_AHB2PHY_CENTER] = &qhs_ahb2phy2,
  1391. [SLAVE_AOP] = &qhs_aop,
  1392. [SLAVE_AOSS] = &qhs_aoss,
  1393. [SLAVE_BOOT_ROM] = &qhs_boot_rom,
  1394. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1395. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_throttle_cfg,
  1396. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  1397. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1398. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1399. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1400. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1401. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1402. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1403. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1404. [SLAVE_DISPLAY_RT_THROTTLE_CFG] = &qhs_display_rt_throttle_cfg,
  1405. [SLAVE_DISPLAY_THROTTLE_CFG] = &qhs_display_throttle_cfg,
  1406. [SLAVE_EMMC_CFG] = &qhs_emmc_cfg,
  1407. [SLAVE_GLM] = &qhs_glm,
  1408. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1409. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1410. [SLAVE_IPA_CFG] = &qhs_ipa,
  1411. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1412. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1413. [SLAVE_NPU_CFG] = &qhs_npu_cfg,
  1414. [SLAVE_NPU_DMA_BWMON_CFG] = &qhs_npu_dma_throttle_cfg,
  1415. [SLAVE_NPU_PROC_BWMON_CFG] = &qhs_npu_dsp_throttle_cfg,
  1416. [SLAVE_PDM] = &qhs_pdm,
  1417. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1418. [SLAVE_PRNG] = &qhs_prng,
  1419. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1420. [SLAVE_QM_CFG] = &qhs_qm_cfg,
  1421. [SLAVE_QM_MPU_CFG] = &qhs_qm_mpu_cfg,
  1422. [SLAVE_QSPI_0] = &qhs_qspi,
  1423. [SLAVE_QUP_0] = &qhs_qup0,
  1424. [SLAVE_QUP_1] = &qhs_qup1,
  1425. [SLAVE_SDCC_2] = &qhs_sdc2,
  1426. [SLAVE_SECURITY] = &qhs_security,
  1427. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1428. [SLAVE_TCSR] = &qhs_tcsr,
  1429. [SLAVE_TLMM_WEST] = &qhs_tlmm_1,
  1430. [SLAVE_TLMM_NORTH] = &qhs_tlmm_2,
  1431. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_3,
  1432. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1433. [SLAVE_USB3] = &qhs_usb3,
  1434. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1435. [SLAVE_VENUS_THROTTLE_CFG] = &qhs_venus_throttle_cfg,
  1436. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1437. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1438. };
  1439. static const struct qcom_icc_desc sc7180_config_noc = {
  1440. .nodes = config_noc_nodes,
  1441. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1442. .bcms = config_noc_bcms,
  1443. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1444. };
  1445. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1446. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1447. [SLAVE_GEM_NOC_CFG] = &qhs_gemnoc,
  1448. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1449. };
  1450. static const struct qcom_icc_desc sc7180_dc_noc = {
  1451. .nodes = dc_noc_nodes,
  1452. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1453. };
  1454. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1455. &bcm_sh0,
  1456. &bcm_sh2,
  1457. &bcm_sh3,
  1458. &bcm_sh4,
  1459. };
  1460. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1461. [MASTER_APPSS_PROC] = &acm_apps0,
  1462. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1463. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1464. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1465. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1466. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1467. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1468. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1469. [MASTER_GFX3D] = &qxm_gpu,
  1470. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1471. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1472. [SLAVE_LLCC] = &qns_llcc,
  1473. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1474. };
  1475. static const struct qcom_icc_desc sc7180_gem_noc = {
  1476. .nodes = gem_noc_nodes,
  1477. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1478. .bcms = gem_noc_bcms,
  1479. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1480. };
  1481. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1482. &bcm_acv,
  1483. &bcm_mc0,
  1484. };
  1485. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1486. [MASTER_LLCC] = &llcc_mc,
  1487. [SLAVE_EBI1] = &ebi,
  1488. };
  1489. static const struct qcom_icc_desc sc7180_mc_virt = {
  1490. .nodes = mc_virt_nodes,
  1491. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1492. .bcms = mc_virt_bcms,
  1493. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1494. };
  1495. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1496. &bcm_mm0,
  1497. &bcm_mm1,
  1498. &bcm_mm2,
  1499. };
  1500. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1501. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1502. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0,
  1503. [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1,
  1504. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1505. [MASTER_MDP0] = &qxm_mdp0,
  1506. [MASTER_ROTATOR] = &qxm_rot,
  1507. [MASTER_VIDEO_P0] = &qxm_venus0,
  1508. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1509. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1510. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1511. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1512. };
  1513. static const struct qcom_icc_desc sc7180_mmss_noc = {
  1514. .nodes = mmss_noc_nodes,
  1515. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1516. .bcms = mmss_noc_bcms,
  1517. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1518. };
  1519. static struct qcom_icc_node * const npu_noc_nodes[] = {
  1520. [MASTER_NPU_SYS] = &amm_npu_sys,
  1521. [MASTER_NPU_NOC_CFG] = &qhm_npu_cfg,
  1522. [SLAVE_NPU_CAL_DP0] = &qhs_cal_dp0,
  1523. [SLAVE_NPU_CP] = &qhs_cp,
  1524. [SLAVE_NPU_INT_DMA_BWMON_CFG] = &qhs_dma_bwmon,
  1525. [SLAVE_NPU_DPM] = &qhs_dpm,
  1526. [SLAVE_ISENSE_CFG] = &qhs_isense,
  1527. [SLAVE_NPU_LLM_CFG] = &qhs_llm,
  1528. [SLAVE_NPU_TCM] = &qhs_tcm,
  1529. [SLAVE_NPU_COMPUTE_NOC] = &qns_npu_sys,
  1530. [SLAVE_SERVICE_NPU_NOC] = &srvc_noc,
  1531. };
  1532. static const struct qcom_icc_desc sc7180_npu_noc = {
  1533. .nodes = npu_noc_nodes,
  1534. .num_nodes = ARRAY_SIZE(npu_noc_nodes),
  1535. };
  1536. static struct qcom_icc_bcm * const qup_virt_bcms[] = {
  1537. &bcm_qup0,
  1538. };
  1539. static struct qcom_icc_node * const qup_virt_nodes[] = {
  1540. [MASTER_QUP_CORE_0] = &qup_core_master_1,
  1541. [MASTER_QUP_CORE_1] = &qup_core_master_2,
  1542. [SLAVE_QUP_CORE_0] = &qup_core_slave_1,
  1543. [SLAVE_QUP_CORE_1] = &qup_core_slave_2,
  1544. };
  1545. static const struct qcom_icc_desc sc7180_qup_virt = {
  1546. .nodes = qup_virt_nodes,
  1547. .num_nodes = ARRAY_SIZE(qup_virt_nodes),
  1548. .bcms = qup_virt_bcms,
  1549. .num_bcms = ARRAY_SIZE(qup_virt_bcms),
  1550. };
  1551. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1552. &bcm_sn0,
  1553. &bcm_sn1,
  1554. &bcm_sn2,
  1555. &bcm_sn3,
  1556. &bcm_sn4,
  1557. &bcm_sn7,
  1558. &bcm_sn9,
  1559. &bcm_sn12,
  1560. };
  1561. static struct qcom_icc_node * const system_noc_nodes[] = {
  1562. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1563. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1564. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1565. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1566. [MASTER_PIMEM] = &qxm_pimem,
  1567. [SLAVE_APPSS] = &qhs_apss,
  1568. [SLAVE_SNOC_CNOC] = &qns_cnoc,
  1569. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1570. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1571. [SLAVE_IMEM] = &qxs_imem,
  1572. [SLAVE_PIMEM] = &qxs_pimem,
  1573. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1574. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1575. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1576. };
  1577. static const struct qcom_icc_desc sc7180_system_noc = {
  1578. .nodes = system_noc_nodes,
  1579. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1580. .bcms = system_noc_bcms,
  1581. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1582. };
  1583. static const struct of_device_id qnoc_of_match[] = {
  1584. { .compatible = "qcom,sc7180-aggre1-noc",
  1585. .data = &sc7180_aggre1_noc},
  1586. { .compatible = "qcom,sc7180-aggre2-noc",
  1587. .data = &sc7180_aggre2_noc},
  1588. { .compatible = "qcom,sc7180-camnoc-virt",
  1589. .data = &sc7180_camnoc_virt},
  1590. { .compatible = "qcom,sc7180-compute-noc",
  1591. .data = &sc7180_compute_noc},
  1592. { .compatible = "qcom,sc7180-config-noc",
  1593. .data = &sc7180_config_noc},
  1594. { .compatible = "qcom,sc7180-dc-noc",
  1595. .data = &sc7180_dc_noc},
  1596. { .compatible = "qcom,sc7180-gem-noc",
  1597. .data = &sc7180_gem_noc},
  1598. { .compatible = "qcom,sc7180-mc-virt",
  1599. .data = &sc7180_mc_virt},
  1600. { .compatible = "qcom,sc7180-mmss-noc",
  1601. .data = &sc7180_mmss_noc},
  1602. { .compatible = "qcom,sc7180-npu-noc",
  1603. .data = &sc7180_npu_noc},
  1604. { .compatible = "qcom,sc7180-qup-virt",
  1605. .data = &sc7180_qup_virt},
  1606. { .compatible = "qcom,sc7180-system-noc",
  1607. .data = &sc7180_system_noc},
  1608. { }
  1609. };
  1610. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1611. static struct platform_driver qnoc_driver = {
  1612. .probe = qcom_icc_rpmh_probe,
  1613. .remove_new = qcom_icc_rpmh_remove,
  1614. .driver = {
  1615. .name = "qnoc-sc7180",
  1616. .of_match_table = qnoc_of_match,
  1617. .sync_state = icc_sync_state,
  1618. },
  1619. };
  1620. module_platform_driver(qnoc_driver);
  1621. MODULE_DESCRIPTION("Qualcomm SC7180 NoC driver");
  1622. MODULE_LICENSE("GPL v2");