sc7280.c 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2021, 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/module.h>
  10. #include <linux/of_platform.h>
  11. #include <dt-bindings/interconnect/qcom,sc7280.h>
  12. #include "bcm-voter.h"
  13. #include "icc-rpmh.h"
  14. #include "sc7280.h"
  15. static struct qcom_icc_node qhm_qspi = {
  16. .name = "qhm_qspi",
  17. .id = SC7280_MASTER_QSPI_0,
  18. .channels = 1,
  19. .buswidth = 4,
  20. .num_links = 1,
  21. .links = { SC7280_SLAVE_A1NOC_SNOC },
  22. };
  23. static struct qcom_icc_node qhm_qup0 = {
  24. .name = "qhm_qup0",
  25. .id = SC7280_MASTER_QUP_0,
  26. .channels = 1,
  27. .buswidth = 4,
  28. .num_links = 1,
  29. .links = { SC7280_SLAVE_A1NOC_SNOC },
  30. };
  31. static struct qcom_icc_node qhm_qup1 = {
  32. .name = "qhm_qup1",
  33. .id = SC7280_MASTER_QUP_1,
  34. .channels = 1,
  35. .buswidth = 4,
  36. .num_links = 1,
  37. .links = { SC7280_SLAVE_A1NOC_SNOC },
  38. };
  39. static struct qcom_icc_node qnm_a1noc_cfg = {
  40. .name = "qnm_a1noc_cfg",
  41. .id = SC7280_MASTER_A1NOC_CFG,
  42. .channels = 1,
  43. .buswidth = 4,
  44. .num_links = 1,
  45. .links = { SC7280_SLAVE_SERVICE_A1NOC },
  46. };
  47. static struct qcom_icc_node xm_sdc1 = {
  48. .name = "xm_sdc1",
  49. .id = SC7280_MASTER_SDCC_1,
  50. .channels = 1,
  51. .buswidth = 8,
  52. .num_links = 1,
  53. .links = { SC7280_SLAVE_A1NOC_SNOC },
  54. };
  55. static struct qcom_icc_node xm_sdc2 = {
  56. .name = "xm_sdc2",
  57. .id = SC7280_MASTER_SDCC_2,
  58. .channels = 1,
  59. .buswidth = 8,
  60. .num_links = 1,
  61. .links = { SC7280_SLAVE_A1NOC_SNOC },
  62. };
  63. static struct qcom_icc_node xm_sdc4 = {
  64. .name = "xm_sdc4",
  65. .id = SC7280_MASTER_SDCC_4,
  66. .channels = 1,
  67. .buswidth = 8,
  68. .num_links = 1,
  69. .links = { SC7280_SLAVE_A1NOC_SNOC },
  70. };
  71. static struct qcom_icc_node xm_ufs_mem = {
  72. .name = "xm_ufs_mem",
  73. .id = SC7280_MASTER_UFS_MEM,
  74. .channels = 1,
  75. .buswidth = 8,
  76. .num_links = 1,
  77. .links = { SC7280_SLAVE_A1NOC_SNOC },
  78. };
  79. static struct qcom_icc_node xm_usb2 = {
  80. .name = "xm_usb2",
  81. .id = SC7280_MASTER_USB2,
  82. .channels = 1,
  83. .buswidth = 8,
  84. .num_links = 1,
  85. .links = { SC7280_SLAVE_A1NOC_SNOC },
  86. };
  87. static struct qcom_icc_node xm_usb3_0 = {
  88. .name = "xm_usb3_0",
  89. .id = SC7280_MASTER_USB3_0,
  90. .channels = 1,
  91. .buswidth = 8,
  92. .num_links = 1,
  93. .links = { SC7280_SLAVE_A1NOC_SNOC },
  94. };
  95. static struct qcom_icc_node qhm_qdss_bam = {
  96. .name = "qhm_qdss_bam",
  97. .id = SC7280_MASTER_QDSS_BAM,
  98. .channels = 1,
  99. .buswidth = 4,
  100. .num_links = 1,
  101. .links = { SC7280_SLAVE_A2NOC_SNOC },
  102. };
  103. static struct qcom_icc_node qnm_a2noc_cfg = {
  104. .name = "qnm_a2noc_cfg",
  105. .id = SC7280_MASTER_A2NOC_CFG,
  106. .channels = 1,
  107. .buswidth = 4,
  108. .num_links = 1,
  109. .links = { SC7280_SLAVE_SERVICE_A2NOC },
  110. };
  111. static struct qcom_icc_node qnm_cnoc_datapath = {
  112. .name = "qnm_cnoc_datapath",
  113. .id = SC7280_MASTER_CNOC_A2NOC,
  114. .channels = 1,
  115. .buswidth = 8,
  116. .num_links = 1,
  117. .links = { SC7280_SLAVE_A2NOC_SNOC },
  118. };
  119. static struct qcom_icc_node qxm_crypto = {
  120. .name = "qxm_crypto",
  121. .id = SC7280_MASTER_CRYPTO,
  122. .channels = 1,
  123. .buswidth = 8,
  124. .num_links = 1,
  125. .links = { SC7280_SLAVE_A2NOC_SNOC },
  126. };
  127. static struct qcom_icc_node qxm_ipa = {
  128. .name = "qxm_ipa",
  129. .id = SC7280_MASTER_IPA,
  130. .channels = 1,
  131. .buswidth = 8,
  132. .num_links = 1,
  133. .links = { SC7280_SLAVE_A2NOC_SNOC },
  134. };
  135. static struct qcom_icc_node xm_pcie3_0 = {
  136. .name = "xm_pcie3_0",
  137. .id = SC7280_MASTER_PCIE_0,
  138. .channels = 1,
  139. .buswidth = 8,
  140. .num_links = 1,
  141. .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
  142. };
  143. static struct qcom_icc_node xm_pcie3_1 = {
  144. .name = "xm_pcie3_1",
  145. .id = SC7280_MASTER_PCIE_1,
  146. .channels = 1,
  147. .buswidth = 8,
  148. .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
  149. };
  150. static struct qcom_icc_node xm_qdss_etr = {
  151. .name = "xm_qdss_etr",
  152. .id = SC7280_MASTER_QDSS_ETR,
  153. .channels = 1,
  154. .buswidth = 8,
  155. .num_links = 1,
  156. .links = { SC7280_SLAVE_A2NOC_SNOC },
  157. };
  158. static struct qcom_icc_node qup0_core_master = {
  159. .name = "qup0_core_master",
  160. .id = SC7280_MASTER_QUP_CORE_0,
  161. .channels = 1,
  162. .buswidth = 4,
  163. .num_links = 1,
  164. .links = { SC7280_SLAVE_QUP_CORE_0 },
  165. };
  166. static struct qcom_icc_node qup1_core_master = {
  167. .name = "qup1_core_master",
  168. .id = SC7280_MASTER_QUP_CORE_1,
  169. .channels = 1,
  170. .buswidth = 4,
  171. .num_links = 1,
  172. .links = { SC7280_SLAVE_QUP_CORE_1 },
  173. };
  174. static struct qcom_icc_node qnm_cnoc3_cnoc2 = {
  175. .name = "qnm_cnoc3_cnoc2",
  176. .id = SC7280_MASTER_CNOC3_CNOC2,
  177. .channels = 1,
  178. .buswidth = 8,
  179. .num_links = 44,
  180. .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
  181. SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
  182. SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
  183. SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
  184. SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
  185. SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
  186. SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
  187. SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
  188. SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
  189. SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
  190. SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
  191. SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
  192. SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
  193. SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
  194. SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
  195. SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
  196. SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
  197. SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
  198. SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
  199. SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
  200. SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
  201. SC7280_SLAVE_CNOC_MNOC_CFG, SC7280_SLAVE_SNOC_CFG },
  202. };
  203. static struct qcom_icc_node xm_qdss_dap = {
  204. .name = "xm_qdss_dap",
  205. .id = SC7280_MASTER_QDSS_DAP,
  206. .channels = 1,
  207. .buswidth = 8,
  208. .num_links = 45,
  209. .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
  210. SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
  211. SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
  212. SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
  213. SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
  214. SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
  215. SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
  216. SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
  217. SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
  218. SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
  219. SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
  220. SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
  221. SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
  222. SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
  223. SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
  224. SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
  225. SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
  226. SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
  227. SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
  228. SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
  229. SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
  230. SC7280_SLAVE_CNOC2_CNOC3, SC7280_SLAVE_CNOC_MNOC_CFG,
  231. SC7280_SLAVE_SNOC_CFG },
  232. };
  233. static struct qcom_icc_node qnm_cnoc2_cnoc3 = {
  234. .name = "qnm_cnoc2_cnoc3",
  235. .id = SC7280_MASTER_CNOC2_CNOC3,
  236. .channels = 1,
  237. .buswidth = 8,
  238. .num_links = 9,
  239. .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
  240. SC7280_SLAVE_CNOC_A2NOC, SC7280_SLAVE_DDRSS_CFG,
  241. SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
  242. SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
  243. SC7280_SLAVE_TCU },
  244. };
  245. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  246. .name = "qnm_gemnoc_cnoc",
  247. .id = SC7280_MASTER_GEM_NOC_CNOC,
  248. .channels = 1,
  249. .buswidth = 16,
  250. .num_links = 9,
  251. .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
  252. SC7280_SLAVE_CNOC3_CNOC2, SC7280_SLAVE_DDRSS_CFG,
  253. SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
  254. SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
  255. SC7280_SLAVE_TCU },
  256. };
  257. static struct qcom_icc_node qnm_gemnoc_pcie = {
  258. .name = "qnm_gemnoc_pcie",
  259. .id = SC7280_MASTER_GEM_NOC_PCIE_SNOC,
  260. .channels = 1,
  261. .buswidth = 8,
  262. .num_links = 2,
  263. .links = { SC7280_SLAVE_PCIE_0, SC7280_SLAVE_PCIE_1 },
  264. };
  265. static struct qcom_icc_node qnm_cnoc_dc_noc = {
  266. .name = "qnm_cnoc_dc_noc",
  267. .id = SC7280_MASTER_CNOC_DC_NOC,
  268. .channels = 1,
  269. .buswidth = 4,
  270. .num_links = 2,
  271. .links = { SC7280_SLAVE_LLCC_CFG, SC7280_SLAVE_GEM_NOC_CFG },
  272. };
  273. static struct qcom_icc_node alm_gpu_tcu = {
  274. .name = "alm_gpu_tcu",
  275. .id = SC7280_MASTER_GPU_TCU,
  276. .channels = 1,
  277. .buswidth = 8,
  278. .num_links = 2,
  279. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  280. };
  281. static struct qcom_icc_node alm_sys_tcu = {
  282. .name = "alm_sys_tcu",
  283. .id = SC7280_MASTER_SYS_TCU,
  284. .channels = 1,
  285. .buswidth = 8,
  286. .num_links = 2,
  287. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  288. };
  289. static struct qcom_icc_node chm_apps = {
  290. .name = "chm_apps",
  291. .id = SC7280_MASTER_APPSS_PROC,
  292. .channels = 1,
  293. .buswidth = 32,
  294. .num_links = 3,
  295. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
  296. SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
  297. };
  298. static struct qcom_icc_node qnm_cmpnoc = {
  299. .name = "qnm_cmpnoc",
  300. .id = SC7280_MASTER_COMPUTE_NOC,
  301. .channels = 2,
  302. .buswidth = 32,
  303. .num_links = 2,
  304. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  305. };
  306. static struct qcom_icc_node qnm_gemnoc_cfg = {
  307. .name = "qnm_gemnoc_cfg",
  308. .id = SC7280_MASTER_GEM_NOC_CFG,
  309. .channels = 1,
  310. .buswidth = 4,
  311. .num_links = 5,
  312. .links = { SC7280_SLAVE_MSS_PROC_MS_MPU_CFG, SC7280_SLAVE_MCDMA_MS_MPU_CFG,
  313. SC7280_SLAVE_SERVICE_GEM_NOC_1, SC7280_SLAVE_SERVICE_GEM_NOC_2,
  314. SC7280_SLAVE_SERVICE_GEM_NOC },
  315. };
  316. static struct qcom_icc_node qnm_gpu = {
  317. .name = "qnm_gpu",
  318. .id = SC7280_MASTER_GFX3D,
  319. .channels = 2,
  320. .buswidth = 32,
  321. .num_links = 2,
  322. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  323. };
  324. static struct qcom_icc_node qnm_mnoc_hf = {
  325. .name = "qnm_mnoc_hf",
  326. .id = SC7280_MASTER_MNOC_HF_MEM_NOC,
  327. .channels = 2,
  328. .buswidth = 32,
  329. .num_links = 1,
  330. .links = { SC7280_SLAVE_LLCC },
  331. };
  332. static struct qcom_icc_node qnm_mnoc_sf = {
  333. .name = "qnm_mnoc_sf",
  334. .id = SC7280_MASTER_MNOC_SF_MEM_NOC,
  335. .channels = 1,
  336. .buswidth = 32,
  337. .num_links = 2,
  338. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  339. };
  340. static struct qcom_icc_node qnm_pcie = {
  341. .name = "qnm_pcie",
  342. .id = SC7280_MASTER_ANOC_PCIE_GEM_NOC,
  343. .channels = 1,
  344. .buswidth = 16,
  345. .num_links = 2,
  346. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  347. };
  348. static struct qcom_icc_node qnm_snoc_gc = {
  349. .name = "qnm_snoc_gc",
  350. .id = SC7280_MASTER_SNOC_GC_MEM_NOC,
  351. .channels = 1,
  352. .buswidth = 8,
  353. .num_links = 1,
  354. .links = { SC7280_SLAVE_LLCC },
  355. };
  356. static struct qcom_icc_node qnm_snoc_sf = {
  357. .name = "qnm_snoc_sf",
  358. .id = SC7280_MASTER_SNOC_SF_MEM_NOC,
  359. .channels = 1,
  360. .buswidth = 16,
  361. .num_links = 3,
  362. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
  363. SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
  364. };
  365. static struct qcom_icc_node qhm_config_noc = {
  366. .name = "qhm_config_noc",
  367. .id = SC7280_MASTER_CNOC_LPASS_AG_NOC,
  368. .channels = 1,
  369. .buswidth = 4,
  370. .num_links = 6,
  371. .links = { SC7280_SLAVE_LPASS_CORE_CFG, SC7280_SLAVE_LPASS_LPI_CFG,
  372. SC7280_SLAVE_LPASS_MPU_CFG, SC7280_SLAVE_LPASS_TOP_CFG,
  373. SC7280_SLAVE_SERVICES_LPASS_AML_NOC, SC7280_SLAVE_SERVICE_LPASS_AG_NOC },
  374. };
  375. static struct qcom_icc_node llcc_mc = {
  376. .name = "llcc_mc",
  377. .id = SC7280_MASTER_LLCC,
  378. .channels = 2,
  379. .buswidth = 4,
  380. .num_links = 1,
  381. .links = { SC7280_SLAVE_EBI1 },
  382. };
  383. static struct qcom_icc_node qnm_mnoc_cfg = {
  384. .name = "qnm_mnoc_cfg",
  385. .id = SC7280_MASTER_CNOC_MNOC_CFG,
  386. .channels = 1,
  387. .buswidth = 4,
  388. .num_links = 1,
  389. .links = { SC7280_SLAVE_SERVICE_MNOC },
  390. };
  391. static struct qcom_icc_node qnm_video0 = {
  392. .name = "qnm_video0",
  393. .id = SC7280_MASTER_VIDEO_P0,
  394. .channels = 1,
  395. .buswidth = 32,
  396. .num_links = 1,
  397. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  398. };
  399. static struct qcom_icc_node qnm_video_cpu = {
  400. .name = "qnm_video_cpu",
  401. .id = SC7280_MASTER_VIDEO_PROC,
  402. .channels = 1,
  403. .buswidth = 8,
  404. .num_links = 1,
  405. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  406. };
  407. static struct qcom_icc_node qxm_camnoc_hf = {
  408. .name = "qxm_camnoc_hf",
  409. .id = SC7280_MASTER_CAMNOC_HF,
  410. .channels = 2,
  411. .buswidth = 32,
  412. .num_links = 1,
  413. .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
  414. };
  415. static struct qcom_icc_node qxm_camnoc_icp = {
  416. .name = "qxm_camnoc_icp",
  417. .id = SC7280_MASTER_CAMNOC_ICP,
  418. .channels = 1,
  419. .buswidth = 8,
  420. .num_links = 1,
  421. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  422. };
  423. static struct qcom_icc_node qxm_camnoc_sf = {
  424. .name = "qxm_camnoc_sf",
  425. .id = SC7280_MASTER_CAMNOC_SF,
  426. .channels = 1,
  427. .buswidth = 32,
  428. .num_links = 1,
  429. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  430. };
  431. static struct qcom_icc_node qxm_mdp0 = {
  432. .name = "qxm_mdp0",
  433. .id = SC7280_MASTER_MDP0,
  434. .channels = 1,
  435. .buswidth = 32,
  436. .num_links = 1,
  437. .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
  438. };
  439. static struct qcom_icc_node qhm_nsp_noc_config = {
  440. .name = "qhm_nsp_noc_config",
  441. .id = SC7280_MASTER_CDSP_NOC_CFG,
  442. .channels = 1,
  443. .buswidth = 4,
  444. .num_links = 1,
  445. .links = { SC7280_SLAVE_SERVICE_NSP_NOC },
  446. };
  447. static struct qcom_icc_node qxm_nsp = {
  448. .name = "qxm_nsp",
  449. .id = SC7280_MASTER_CDSP_PROC,
  450. .channels = 2,
  451. .buswidth = 32,
  452. .num_links = 1,
  453. .links = { SC7280_SLAVE_CDSP_MEM_NOC },
  454. };
  455. static struct qcom_icc_node qnm_aggre1_noc = {
  456. .name = "qnm_aggre1_noc",
  457. .id = SC7280_MASTER_A1NOC_SNOC,
  458. .channels = 1,
  459. .buswidth = 16,
  460. .num_links = 1,
  461. .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
  462. };
  463. static struct qcom_icc_node qnm_aggre2_noc = {
  464. .name = "qnm_aggre2_noc",
  465. .id = SC7280_MASTER_A2NOC_SNOC,
  466. .channels = 1,
  467. .buswidth = 16,
  468. .num_links = 1,
  469. .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
  470. };
  471. static struct qcom_icc_node qnm_snoc_cfg = {
  472. .name = "qnm_snoc_cfg",
  473. .id = SC7280_MASTER_SNOC_CFG,
  474. .channels = 1,
  475. .buswidth = 4,
  476. .num_links = 1,
  477. .links = { SC7280_SLAVE_SERVICE_SNOC },
  478. };
  479. static struct qcom_icc_node qxm_pimem = {
  480. .name = "qxm_pimem",
  481. .id = SC7280_MASTER_PIMEM,
  482. .channels = 1,
  483. .buswidth = 8,
  484. .num_links = 1,
  485. .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
  486. };
  487. static struct qcom_icc_node xm_gic = {
  488. .name = "xm_gic",
  489. .id = SC7280_MASTER_GIC,
  490. .channels = 1,
  491. .buswidth = 8,
  492. .num_links = 1,
  493. .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
  494. };
  495. static struct qcom_icc_node qns_a1noc_snoc = {
  496. .name = "qns_a1noc_snoc",
  497. .id = SC7280_SLAVE_A1NOC_SNOC,
  498. .channels = 1,
  499. .buswidth = 16,
  500. .num_links = 1,
  501. .links = { SC7280_MASTER_A1NOC_SNOC },
  502. };
  503. static struct qcom_icc_node srvc_aggre1_noc = {
  504. .name = "srvc_aggre1_noc",
  505. .id = SC7280_SLAVE_SERVICE_A1NOC,
  506. .channels = 1,
  507. .buswidth = 4,
  508. .num_links = 0,
  509. };
  510. static struct qcom_icc_node qns_a2noc_snoc = {
  511. .name = "qns_a2noc_snoc",
  512. .id = SC7280_SLAVE_A2NOC_SNOC,
  513. .channels = 1,
  514. .buswidth = 16,
  515. .num_links = 1,
  516. .links = { SC7280_MASTER_A2NOC_SNOC },
  517. };
  518. static struct qcom_icc_node qns_pcie_mem_noc = {
  519. .name = "qns_pcie_mem_noc",
  520. .id = SC7280_SLAVE_ANOC_PCIE_GEM_NOC,
  521. .channels = 1,
  522. .buswidth = 16,
  523. .num_links = 1,
  524. .links = { SC7280_MASTER_ANOC_PCIE_GEM_NOC },
  525. };
  526. static struct qcom_icc_node srvc_aggre2_noc = {
  527. .name = "srvc_aggre2_noc",
  528. .id = SC7280_SLAVE_SERVICE_A2NOC,
  529. .channels = 1,
  530. .buswidth = 4,
  531. .num_links = 0,
  532. };
  533. static struct qcom_icc_node qup0_core_slave = {
  534. .name = "qup0_core_slave",
  535. .id = SC7280_SLAVE_QUP_CORE_0,
  536. .channels = 1,
  537. .buswidth = 4,
  538. .num_links = 0,
  539. };
  540. static struct qcom_icc_node qup1_core_slave = {
  541. .name = "qup1_core_slave",
  542. .id = SC7280_SLAVE_QUP_CORE_1,
  543. .channels = 1,
  544. .buswidth = 4,
  545. .num_links = 0,
  546. };
  547. static struct qcom_icc_node qhs_ahb2phy0 = {
  548. .name = "qhs_ahb2phy0",
  549. .id = SC7280_SLAVE_AHB2PHY_SOUTH,
  550. .channels = 1,
  551. .buswidth = 4,
  552. .num_links = 0,
  553. };
  554. static struct qcom_icc_node qhs_ahb2phy1 = {
  555. .name = "qhs_ahb2phy1",
  556. .id = SC7280_SLAVE_AHB2PHY_NORTH,
  557. .channels = 1,
  558. .buswidth = 4,
  559. .num_links = 0,
  560. };
  561. static struct qcom_icc_node qhs_camera_cfg = {
  562. .name = "qhs_camera_cfg",
  563. .id = SC7280_SLAVE_CAMERA_CFG,
  564. .channels = 1,
  565. .buswidth = 4,
  566. .num_links = 0,
  567. };
  568. static struct qcom_icc_node qhs_clk_ctl = {
  569. .name = "qhs_clk_ctl",
  570. .id = SC7280_SLAVE_CLK_CTL,
  571. .channels = 1,
  572. .buswidth = 4,
  573. .num_links = 0,
  574. };
  575. static struct qcom_icc_node qhs_compute_cfg = {
  576. .name = "qhs_compute_cfg",
  577. .id = SC7280_SLAVE_CDSP_CFG,
  578. .channels = 1,
  579. .buswidth = 4,
  580. .num_links = 1,
  581. .links = { SC7280_MASTER_CDSP_NOC_CFG },
  582. };
  583. static struct qcom_icc_node qhs_cpr_cx = {
  584. .name = "qhs_cpr_cx",
  585. .id = SC7280_SLAVE_RBCPR_CX_CFG,
  586. .channels = 1,
  587. .buswidth = 4,
  588. .num_links = 0,
  589. };
  590. static struct qcom_icc_node qhs_cpr_mx = {
  591. .name = "qhs_cpr_mx",
  592. .id = SC7280_SLAVE_RBCPR_MX_CFG,
  593. .channels = 1,
  594. .buswidth = 4,
  595. .num_links = 0,
  596. };
  597. static struct qcom_icc_node qhs_crypto0_cfg = {
  598. .name = "qhs_crypto0_cfg",
  599. .id = SC7280_SLAVE_CRYPTO_0_CFG,
  600. .channels = 1,
  601. .buswidth = 4,
  602. .num_links = 0,
  603. };
  604. static struct qcom_icc_node qhs_cx_rdpm = {
  605. .name = "qhs_cx_rdpm",
  606. .id = SC7280_SLAVE_CX_RDPM,
  607. .channels = 1,
  608. .buswidth = 4,
  609. .num_links = 0,
  610. };
  611. static struct qcom_icc_node qhs_dcc_cfg = {
  612. .name = "qhs_dcc_cfg",
  613. .id = SC7280_SLAVE_DCC_CFG,
  614. .channels = 1,
  615. .buswidth = 4,
  616. .num_links = 0,
  617. };
  618. static struct qcom_icc_node qhs_display_cfg = {
  619. .name = "qhs_display_cfg",
  620. .id = SC7280_SLAVE_DISPLAY_CFG,
  621. .channels = 1,
  622. .buswidth = 4,
  623. .num_links = 0,
  624. };
  625. static struct qcom_icc_node qhs_gpuss_cfg = {
  626. .name = "qhs_gpuss_cfg",
  627. .id = SC7280_SLAVE_GFX3D_CFG,
  628. .channels = 1,
  629. .buswidth = 8,
  630. .num_links = 0,
  631. };
  632. static struct qcom_icc_node qhs_hwkm = {
  633. .name = "qhs_hwkm",
  634. .id = SC7280_SLAVE_HWKM,
  635. .channels = 1,
  636. .buswidth = 4,
  637. .num_links = 0,
  638. };
  639. static struct qcom_icc_node qhs_imem_cfg = {
  640. .name = "qhs_imem_cfg",
  641. .id = SC7280_SLAVE_IMEM_CFG,
  642. .channels = 1,
  643. .buswidth = 4,
  644. .num_links = 0,
  645. };
  646. static struct qcom_icc_node qhs_ipa = {
  647. .name = "qhs_ipa",
  648. .id = SC7280_SLAVE_IPA_CFG,
  649. .channels = 1,
  650. .buswidth = 4,
  651. .num_links = 0,
  652. };
  653. static struct qcom_icc_node qhs_ipc_router = {
  654. .name = "qhs_ipc_router",
  655. .id = SC7280_SLAVE_IPC_ROUTER_CFG,
  656. .channels = 1,
  657. .buswidth = 4,
  658. .num_links = 0,
  659. };
  660. static struct qcom_icc_node qhs_lpass_cfg = {
  661. .name = "qhs_lpass_cfg",
  662. .id = SC7280_SLAVE_LPASS,
  663. .channels = 1,
  664. .buswidth = 4,
  665. .num_links = 1,
  666. .links = { SC7280_MASTER_CNOC_LPASS_AG_NOC },
  667. };
  668. static struct qcom_icc_node qhs_mss_cfg = {
  669. .name = "qhs_mss_cfg",
  670. .id = SC7280_SLAVE_CNOC_MSS,
  671. .channels = 1,
  672. .buswidth = 4,
  673. .num_links = 0,
  674. };
  675. static struct qcom_icc_node qhs_mx_rdpm = {
  676. .name = "qhs_mx_rdpm",
  677. .id = SC7280_SLAVE_MX_RDPM,
  678. .channels = 1,
  679. .buswidth = 4,
  680. .num_links = 0,
  681. };
  682. static struct qcom_icc_node qhs_pcie0_cfg = {
  683. .name = "qhs_pcie0_cfg",
  684. .id = SC7280_SLAVE_PCIE_0_CFG,
  685. .channels = 1,
  686. .buswidth = 4,
  687. .num_links = 0,
  688. };
  689. static struct qcom_icc_node qhs_pcie1_cfg = {
  690. .name = "qhs_pcie1_cfg",
  691. .id = SC7280_SLAVE_PCIE_1_CFG,
  692. .channels = 1,
  693. .buswidth = 4,
  694. .num_links = 0,
  695. };
  696. static struct qcom_icc_node qhs_pdm = {
  697. .name = "qhs_pdm",
  698. .id = SC7280_SLAVE_PDM,
  699. .channels = 1,
  700. .buswidth = 4,
  701. .num_links = 0,
  702. };
  703. static struct qcom_icc_node qhs_pimem_cfg = {
  704. .name = "qhs_pimem_cfg",
  705. .id = SC7280_SLAVE_PIMEM_CFG,
  706. .channels = 1,
  707. .buswidth = 4,
  708. .num_links = 0,
  709. };
  710. static struct qcom_icc_node qhs_pka_wrapper_cfg = {
  711. .name = "qhs_pka_wrapper_cfg",
  712. .id = SC7280_SLAVE_PKA_WRAPPER_CFG,
  713. .channels = 1,
  714. .buswidth = 4,
  715. .num_links = 0,
  716. };
  717. static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
  718. .name = "qhs_pmu_wrapper_cfg",
  719. .id = SC7280_SLAVE_PMU_WRAPPER_CFG,
  720. .channels = 1,
  721. .buswidth = 4,
  722. .num_links = 0,
  723. };
  724. static struct qcom_icc_node qhs_qdss_cfg = {
  725. .name = "qhs_qdss_cfg",
  726. .id = SC7280_SLAVE_QDSS_CFG,
  727. .channels = 1,
  728. .buswidth = 4,
  729. .num_links = 0,
  730. };
  731. static struct qcom_icc_node qhs_qspi = {
  732. .name = "qhs_qspi",
  733. .id = SC7280_SLAVE_QSPI_0,
  734. .channels = 1,
  735. .buswidth = 4,
  736. .num_links = 0,
  737. };
  738. static struct qcom_icc_node qhs_qup0 = {
  739. .name = "qhs_qup0",
  740. .id = SC7280_SLAVE_QUP_0,
  741. .channels = 1,
  742. .buswidth = 4,
  743. .num_links = 0,
  744. };
  745. static struct qcom_icc_node qhs_qup1 = {
  746. .name = "qhs_qup1",
  747. .id = SC7280_SLAVE_QUP_1,
  748. .channels = 1,
  749. .buswidth = 4,
  750. .num_links = 0,
  751. };
  752. static struct qcom_icc_node qhs_sdc1 = {
  753. .name = "qhs_sdc1",
  754. .id = SC7280_SLAVE_SDCC_1,
  755. .channels = 1,
  756. .buswidth = 4,
  757. .num_links = 0,
  758. };
  759. static struct qcom_icc_node qhs_sdc2 = {
  760. .name = "qhs_sdc2",
  761. .id = SC7280_SLAVE_SDCC_2,
  762. .channels = 1,
  763. .buswidth = 4,
  764. .num_links = 0,
  765. };
  766. static struct qcom_icc_node qhs_sdc4 = {
  767. .name = "qhs_sdc4",
  768. .id = SC7280_SLAVE_SDCC_4,
  769. .channels = 1,
  770. .buswidth = 4,
  771. .num_links = 0,
  772. };
  773. static struct qcom_icc_node qhs_security = {
  774. .name = "qhs_security",
  775. .id = SC7280_SLAVE_SECURITY,
  776. .channels = 1,
  777. .buswidth = 4,
  778. .num_links = 0,
  779. };
  780. static struct qcom_icc_node qhs_tcsr = {
  781. .name = "qhs_tcsr",
  782. .id = SC7280_SLAVE_TCSR,
  783. .channels = 1,
  784. .buswidth = 4,
  785. .num_links = 0,
  786. };
  787. static struct qcom_icc_node qhs_tlmm = {
  788. .name = "qhs_tlmm",
  789. .id = SC7280_SLAVE_TLMM,
  790. .channels = 1,
  791. .buswidth = 4,
  792. .num_links = 0,
  793. };
  794. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  795. .name = "qhs_ufs_mem_cfg",
  796. .id = SC7280_SLAVE_UFS_MEM_CFG,
  797. .channels = 1,
  798. .buswidth = 4,
  799. .num_links = 0,
  800. };
  801. static struct qcom_icc_node qhs_usb2 = {
  802. .name = "qhs_usb2",
  803. .id = SC7280_SLAVE_USB2,
  804. .channels = 1,
  805. .buswidth = 4,
  806. .num_links = 0,
  807. };
  808. static struct qcom_icc_node qhs_usb3_0 = {
  809. .name = "qhs_usb3_0",
  810. .id = SC7280_SLAVE_USB3_0,
  811. .channels = 1,
  812. .buswidth = 4,
  813. .num_links = 0,
  814. };
  815. static struct qcom_icc_node qhs_venus_cfg = {
  816. .name = "qhs_venus_cfg",
  817. .id = SC7280_SLAVE_VENUS_CFG,
  818. .channels = 1,
  819. .buswidth = 4,
  820. .num_links = 0,
  821. };
  822. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  823. .name = "qhs_vsense_ctrl_cfg",
  824. .id = SC7280_SLAVE_VSENSE_CTRL_CFG,
  825. .channels = 1,
  826. .buswidth = 4,
  827. .num_links = 0,
  828. };
  829. static struct qcom_icc_node qns_a1_noc_cfg = {
  830. .name = "qns_a1_noc_cfg",
  831. .id = SC7280_SLAVE_A1NOC_CFG,
  832. .channels = 1,
  833. .buswidth = 4,
  834. .num_links = 1,
  835. .links = { SC7280_MASTER_A1NOC_CFG },
  836. };
  837. static struct qcom_icc_node qns_a2_noc_cfg = {
  838. .name = "qns_a2_noc_cfg",
  839. .id = SC7280_SLAVE_A2NOC_CFG,
  840. .channels = 1,
  841. .buswidth = 4,
  842. .num_links = 1,
  843. .links = { SC7280_MASTER_A2NOC_CFG },
  844. };
  845. static struct qcom_icc_node qns_cnoc2_cnoc3 = {
  846. .name = "qns_cnoc2_cnoc3",
  847. .id = SC7280_SLAVE_CNOC2_CNOC3,
  848. .channels = 1,
  849. .buswidth = 8,
  850. .num_links = 1,
  851. .links = { SC7280_MASTER_CNOC2_CNOC3 },
  852. };
  853. static struct qcom_icc_node qns_mnoc_cfg = {
  854. .name = "qns_mnoc_cfg",
  855. .id = SC7280_SLAVE_CNOC_MNOC_CFG,
  856. .channels = 1,
  857. .buswidth = 4,
  858. .num_links = 1,
  859. .links = { SC7280_MASTER_CNOC_MNOC_CFG },
  860. };
  861. static struct qcom_icc_node qns_snoc_cfg = {
  862. .name = "qns_snoc_cfg",
  863. .id = SC7280_SLAVE_SNOC_CFG,
  864. .channels = 1,
  865. .buswidth = 4,
  866. .num_links = 1,
  867. .links = { SC7280_MASTER_SNOC_CFG },
  868. };
  869. static struct qcom_icc_node qhs_aoss = {
  870. .name = "qhs_aoss",
  871. .id = SC7280_SLAVE_AOSS,
  872. .channels = 1,
  873. .buswidth = 4,
  874. .num_links = 0,
  875. };
  876. static struct qcom_icc_node qhs_apss = {
  877. .name = "qhs_apss",
  878. .id = SC7280_SLAVE_APPSS,
  879. .channels = 1,
  880. .buswidth = 8,
  881. .num_links = 0,
  882. };
  883. static struct qcom_icc_node qns_cnoc3_cnoc2 = {
  884. .name = "qns_cnoc3_cnoc2",
  885. .id = SC7280_SLAVE_CNOC3_CNOC2,
  886. .channels = 1,
  887. .buswidth = 8,
  888. .num_links = 1,
  889. .links = { SC7280_MASTER_CNOC3_CNOC2 },
  890. };
  891. static struct qcom_icc_node qns_cnoc_a2noc = {
  892. .name = "qns_cnoc_a2noc",
  893. .id = SC7280_SLAVE_CNOC_A2NOC,
  894. .channels = 1,
  895. .buswidth = 8,
  896. .num_links = 1,
  897. .links = { SC7280_MASTER_CNOC_A2NOC },
  898. };
  899. static struct qcom_icc_node qns_ddrss_cfg = {
  900. .name = "qns_ddrss_cfg",
  901. .id = SC7280_SLAVE_DDRSS_CFG,
  902. .channels = 1,
  903. .buswidth = 4,
  904. .num_links = 1,
  905. .links = { SC7280_MASTER_CNOC_DC_NOC },
  906. };
  907. static struct qcom_icc_node qxs_boot_imem = {
  908. .name = "qxs_boot_imem",
  909. .id = SC7280_SLAVE_BOOT_IMEM,
  910. .channels = 1,
  911. .buswidth = 8,
  912. .num_links = 0,
  913. };
  914. static struct qcom_icc_node qxs_imem = {
  915. .name = "qxs_imem",
  916. .id = SC7280_SLAVE_IMEM,
  917. .channels = 1,
  918. .buswidth = 8,
  919. .num_links = 0,
  920. };
  921. static struct qcom_icc_node qxs_pimem = {
  922. .name = "qxs_pimem",
  923. .id = SC7280_SLAVE_PIMEM,
  924. .channels = 1,
  925. .buswidth = 8,
  926. .num_links = 0,
  927. };
  928. static struct qcom_icc_node xs_pcie_0 = {
  929. .name = "xs_pcie_0",
  930. .id = SC7280_SLAVE_PCIE_0,
  931. .channels = 1,
  932. .buswidth = 8,
  933. .num_links = 0,
  934. };
  935. static struct qcom_icc_node xs_pcie_1 = {
  936. .name = "xs_pcie_1",
  937. .id = SC7280_SLAVE_PCIE_1,
  938. .channels = 1,
  939. .buswidth = 8,
  940. .num_links = 0,
  941. };
  942. static struct qcom_icc_node xs_qdss_stm = {
  943. .name = "xs_qdss_stm",
  944. .id = SC7280_SLAVE_QDSS_STM,
  945. .channels = 1,
  946. .buswidth = 4,
  947. .num_links = 0,
  948. };
  949. static struct qcom_icc_node xs_sys_tcu_cfg = {
  950. .name = "xs_sys_tcu_cfg",
  951. .id = SC7280_SLAVE_TCU,
  952. .channels = 1,
  953. .buswidth = 8,
  954. .num_links = 0,
  955. };
  956. static struct qcom_icc_node qhs_llcc = {
  957. .name = "qhs_llcc",
  958. .id = SC7280_SLAVE_LLCC_CFG,
  959. .channels = 1,
  960. .buswidth = 4,
  961. .num_links = 0,
  962. };
  963. static struct qcom_icc_node qns_gemnoc = {
  964. .name = "qns_gemnoc",
  965. .id = SC7280_SLAVE_GEM_NOC_CFG,
  966. .channels = 1,
  967. .buswidth = 4,
  968. .num_links = 1,
  969. .links = { SC7280_MASTER_GEM_NOC_CFG },
  970. };
  971. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  972. .name = "qhs_mdsp_ms_mpu_cfg",
  973. .id = SC7280_SLAVE_MSS_PROC_MS_MPU_CFG,
  974. .channels = 1,
  975. .buswidth = 4,
  976. .num_links = 0,
  977. };
  978. static struct qcom_icc_node qhs_modem_ms_mpu_cfg = {
  979. .name = "qhs_modem_ms_mpu_cfg",
  980. .id = SC7280_SLAVE_MCDMA_MS_MPU_CFG,
  981. .channels = 1,
  982. .buswidth = 4,
  983. .num_links = 0,
  984. };
  985. static struct qcom_icc_node qns_gem_noc_cnoc = {
  986. .name = "qns_gem_noc_cnoc",
  987. .id = SC7280_SLAVE_GEM_NOC_CNOC,
  988. .channels = 1,
  989. .buswidth = 16,
  990. .num_links = 1,
  991. .links = { SC7280_MASTER_GEM_NOC_CNOC },
  992. };
  993. static struct qcom_icc_node qns_llcc = {
  994. .name = "qns_llcc",
  995. .id = SC7280_SLAVE_LLCC,
  996. .channels = 2,
  997. .buswidth = 16,
  998. .num_links = 1,
  999. .links = { SC7280_MASTER_LLCC },
  1000. };
  1001. static struct qcom_icc_node qns_pcie = {
  1002. .name = "qns_pcie",
  1003. .id = SC7280_SLAVE_MEM_NOC_PCIE_SNOC,
  1004. .channels = 1,
  1005. .buswidth = 8,
  1006. .num_links = 1,
  1007. .links = { SC7280_MASTER_GEM_NOC_PCIE_SNOC },
  1008. };
  1009. static struct qcom_icc_node srvc_even_gemnoc = {
  1010. .name = "srvc_even_gemnoc",
  1011. .id = SC7280_SLAVE_SERVICE_GEM_NOC_1,
  1012. .channels = 1,
  1013. .buswidth = 4,
  1014. .num_links = 0,
  1015. };
  1016. static struct qcom_icc_node srvc_odd_gemnoc = {
  1017. .name = "srvc_odd_gemnoc",
  1018. .id = SC7280_SLAVE_SERVICE_GEM_NOC_2,
  1019. .channels = 1,
  1020. .buswidth = 4,
  1021. .num_links = 0,
  1022. };
  1023. static struct qcom_icc_node srvc_sys_gemnoc = {
  1024. .name = "srvc_sys_gemnoc",
  1025. .id = SC7280_SLAVE_SERVICE_GEM_NOC,
  1026. .channels = 1,
  1027. .buswidth = 4,
  1028. .num_links = 0,
  1029. };
  1030. static struct qcom_icc_node qhs_lpass_core = {
  1031. .name = "qhs_lpass_core",
  1032. .id = SC7280_SLAVE_LPASS_CORE_CFG,
  1033. .channels = 1,
  1034. .buswidth = 4,
  1035. .num_links = 0,
  1036. };
  1037. static struct qcom_icc_node qhs_lpass_lpi = {
  1038. .name = "qhs_lpass_lpi",
  1039. .id = SC7280_SLAVE_LPASS_LPI_CFG,
  1040. .channels = 1,
  1041. .buswidth = 4,
  1042. .num_links = 0,
  1043. };
  1044. static struct qcom_icc_node qhs_lpass_mpu = {
  1045. .name = "qhs_lpass_mpu",
  1046. .id = SC7280_SLAVE_LPASS_MPU_CFG,
  1047. .channels = 1,
  1048. .buswidth = 4,
  1049. .num_links = 0,
  1050. };
  1051. static struct qcom_icc_node qhs_lpass_top = {
  1052. .name = "qhs_lpass_top",
  1053. .id = SC7280_SLAVE_LPASS_TOP_CFG,
  1054. .channels = 1,
  1055. .buswidth = 4,
  1056. .num_links = 0,
  1057. };
  1058. static struct qcom_icc_node srvc_niu_aml_noc = {
  1059. .name = "srvc_niu_aml_noc",
  1060. .id = SC7280_SLAVE_SERVICES_LPASS_AML_NOC,
  1061. .channels = 1,
  1062. .buswidth = 4,
  1063. .num_links = 0,
  1064. };
  1065. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1066. .name = "srvc_niu_lpass_agnoc",
  1067. .id = SC7280_SLAVE_SERVICE_LPASS_AG_NOC,
  1068. .channels = 1,
  1069. .buswidth = 4,
  1070. .num_links = 0,
  1071. };
  1072. static struct qcom_icc_node ebi = {
  1073. .name = "ebi",
  1074. .id = SC7280_SLAVE_EBI1,
  1075. .channels = 2,
  1076. .buswidth = 4,
  1077. .num_links = 0,
  1078. };
  1079. static struct qcom_icc_node qns_mem_noc_hf = {
  1080. .name = "qns_mem_noc_hf",
  1081. .id = SC7280_SLAVE_MNOC_HF_MEM_NOC,
  1082. .channels = 2,
  1083. .buswidth = 32,
  1084. .num_links = 1,
  1085. .links = { SC7280_MASTER_MNOC_HF_MEM_NOC },
  1086. };
  1087. static struct qcom_icc_node qns_mem_noc_sf = {
  1088. .name = "qns_mem_noc_sf",
  1089. .id = SC7280_SLAVE_MNOC_SF_MEM_NOC,
  1090. .channels = 1,
  1091. .buswidth = 32,
  1092. .num_links = 1,
  1093. .links = { SC7280_MASTER_MNOC_SF_MEM_NOC },
  1094. };
  1095. static struct qcom_icc_node srvc_mnoc = {
  1096. .name = "srvc_mnoc",
  1097. .id = SC7280_SLAVE_SERVICE_MNOC,
  1098. .channels = 1,
  1099. .buswidth = 4,
  1100. .num_links = 0,
  1101. };
  1102. static struct qcom_icc_node qns_nsp_gemnoc = {
  1103. .name = "qns_nsp_gemnoc",
  1104. .id = SC7280_SLAVE_CDSP_MEM_NOC,
  1105. .channels = 2,
  1106. .buswidth = 32,
  1107. .num_links = 1,
  1108. .links = { SC7280_MASTER_COMPUTE_NOC },
  1109. };
  1110. static struct qcom_icc_node service_nsp_noc = {
  1111. .name = "service_nsp_noc",
  1112. .id = SC7280_SLAVE_SERVICE_NSP_NOC,
  1113. .channels = 1,
  1114. .buswidth = 4,
  1115. .num_links = 0,
  1116. };
  1117. static struct qcom_icc_node qns_gemnoc_gc = {
  1118. .name = "qns_gemnoc_gc",
  1119. .id = SC7280_SLAVE_SNOC_GEM_NOC_GC,
  1120. .channels = 1,
  1121. .buswidth = 8,
  1122. .num_links = 1,
  1123. .links = { SC7280_MASTER_SNOC_GC_MEM_NOC },
  1124. };
  1125. static struct qcom_icc_node qns_gemnoc_sf = {
  1126. .name = "qns_gemnoc_sf",
  1127. .id = SC7280_SLAVE_SNOC_GEM_NOC_SF,
  1128. .channels = 1,
  1129. .buswidth = 16,
  1130. .num_links = 1,
  1131. .links = { SC7280_MASTER_SNOC_SF_MEM_NOC },
  1132. };
  1133. static struct qcom_icc_node srvc_snoc = {
  1134. .name = "srvc_snoc",
  1135. .id = SC7280_SLAVE_SERVICE_SNOC,
  1136. .channels = 1,
  1137. .buswidth = 4,
  1138. .num_links = 0,
  1139. };
  1140. static struct qcom_icc_bcm bcm_acv = {
  1141. .name = "ACV",
  1142. .enable_mask = BIT(3),
  1143. .num_nodes = 1,
  1144. .nodes = { &ebi },
  1145. };
  1146. static struct qcom_icc_bcm bcm_ce0 = {
  1147. .name = "CE0",
  1148. .num_nodes = 1,
  1149. .nodes = { &qxm_crypto },
  1150. };
  1151. static struct qcom_icc_bcm bcm_cn0 = {
  1152. .name = "CN0",
  1153. .keepalive = true,
  1154. .num_nodes = 2,
  1155. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
  1156. };
  1157. static struct qcom_icc_bcm bcm_cn1 = {
  1158. .name = "CN1",
  1159. .num_nodes = 47,
  1160. .nodes = { &qnm_cnoc3_cnoc2, &xm_qdss_dap,
  1161. &qhs_ahb2phy0, &qhs_ahb2phy1,
  1162. &qhs_camera_cfg, &qhs_clk_ctl,
  1163. &qhs_compute_cfg, &qhs_cpr_cx,
  1164. &qhs_cpr_mx, &qhs_crypto0_cfg,
  1165. &qhs_cx_rdpm, &qhs_dcc_cfg,
  1166. &qhs_display_cfg, &qhs_gpuss_cfg,
  1167. &qhs_hwkm, &qhs_imem_cfg,
  1168. &qhs_ipa, &qhs_ipc_router,
  1169. &qhs_mss_cfg, &qhs_mx_rdpm,
  1170. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1171. &qhs_pimem_cfg, &qhs_pka_wrapper_cfg,
  1172. &qhs_pmu_wrapper_cfg, &qhs_qdss_cfg,
  1173. &qhs_qup0, &qhs_qup1,
  1174. &qhs_security, &qhs_tcsr,
  1175. &qhs_tlmm, &qhs_ufs_mem_cfg, &qhs_usb2,
  1176. &qhs_usb3_0, &qhs_venus_cfg,
  1177. &qhs_vsense_ctrl_cfg, &qns_a1_noc_cfg,
  1178. &qns_a2_noc_cfg, &qns_cnoc2_cnoc3,
  1179. &qns_mnoc_cfg, &qns_snoc_cfg,
  1180. &qnm_cnoc2_cnoc3, &qhs_aoss,
  1181. &qhs_apss, &qns_cnoc3_cnoc2,
  1182. &qns_cnoc_a2noc, &qns_ddrss_cfg },
  1183. };
  1184. static struct qcom_icc_bcm bcm_cn2 = {
  1185. .name = "CN2",
  1186. .num_nodes = 6,
  1187. .nodes = { &qhs_lpass_cfg, &qhs_pdm,
  1188. &qhs_qspi, &qhs_sdc1,
  1189. &qhs_sdc2, &qhs_sdc4 },
  1190. };
  1191. static struct qcom_icc_bcm bcm_co0 = {
  1192. .name = "CO0",
  1193. .num_nodes = 1,
  1194. .nodes = { &qns_nsp_gemnoc },
  1195. };
  1196. static struct qcom_icc_bcm bcm_co3 = {
  1197. .name = "CO3",
  1198. .num_nodes = 1,
  1199. .nodes = { &qxm_nsp },
  1200. };
  1201. static struct qcom_icc_bcm bcm_mc0 = {
  1202. .name = "MC0",
  1203. .keepalive = true,
  1204. .num_nodes = 1,
  1205. .nodes = { &ebi },
  1206. };
  1207. static struct qcom_icc_bcm bcm_mm0 = {
  1208. .name = "MM0",
  1209. .keepalive = true,
  1210. .num_nodes = 1,
  1211. .nodes = { &qns_mem_noc_hf },
  1212. };
  1213. static struct qcom_icc_bcm bcm_mm1 = {
  1214. .name = "MM1",
  1215. .num_nodes = 2,
  1216. .nodes = { &qxm_camnoc_hf, &qxm_mdp0 },
  1217. };
  1218. static struct qcom_icc_bcm bcm_mm4 = {
  1219. .name = "MM4",
  1220. .num_nodes = 1,
  1221. .nodes = { &qns_mem_noc_sf },
  1222. };
  1223. static struct qcom_icc_bcm bcm_mm5 = {
  1224. .name = "MM5",
  1225. .num_nodes = 3,
  1226. .nodes = { &qnm_video0, &qxm_camnoc_icp,
  1227. &qxm_camnoc_sf },
  1228. };
  1229. static struct qcom_icc_bcm bcm_qup0 = {
  1230. .name = "QUP0",
  1231. .vote_scale = 1,
  1232. .num_nodes = 1,
  1233. .nodes = { &qup0_core_slave },
  1234. };
  1235. static struct qcom_icc_bcm bcm_qup1 = {
  1236. .name = "QUP1",
  1237. .vote_scale = 1,
  1238. .num_nodes = 1,
  1239. .nodes = { &qup1_core_slave },
  1240. };
  1241. static struct qcom_icc_bcm bcm_sh0 = {
  1242. .name = "SH0",
  1243. .keepalive = true,
  1244. .num_nodes = 1,
  1245. .nodes = { &qns_llcc },
  1246. };
  1247. static struct qcom_icc_bcm bcm_sh2 = {
  1248. .name = "SH2",
  1249. .num_nodes = 2,
  1250. .nodes = { &alm_gpu_tcu, &alm_sys_tcu },
  1251. };
  1252. static struct qcom_icc_bcm bcm_sh3 = {
  1253. .name = "SH3",
  1254. .num_nodes = 1,
  1255. .nodes = { &qnm_cmpnoc },
  1256. };
  1257. static struct qcom_icc_bcm bcm_sh4 = {
  1258. .name = "SH4",
  1259. .num_nodes = 1,
  1260. .nodes = { &chm_apps },
  1261. };
  1262. static struct qcom_icc_bcm bcm_sn0 = {
  1263. .name = "SN0",
  1264. .keepalive = true,
  1265. .num_nodes = 1,
  1266. .nodes = { &qns_gemnoc_sf },
  1267. };
  1268. static struct qcom_icc_bcm bcm_sn2 = {
  1269. .name = "SN2",
  1270. .num_nodes = 1,
  1271. .nodes = { &qns_gemnoc_gc },
  1272. };
  1273. static struct qcom_icc_bcm bcm_sn3 = {
  1274. .name = "SN3",
  1275. .num_nodes = 1,
  1276. .nodes = { &qxs_pimem },
  1277. };
  1278. static struct qcom_icc_bcm bcm_sn4 = {
  1279. .name = "SN4",
  1280. .num_nodes = 1,
  1281. .nodes = { &xs_qdss_stm },
  1282. };
  1283. static struct qcom_icc_bcm bcm_sn5 = {
  1284. .name = "SN5",
  1285. .num_nodes = 1,
  1286. .nodes = { &xm_pcie3_0 },
  1287. };
  1288. static struct qcom_icc_bcm bcm_sn6 = {
  1289. .name = "SN6",
  1290. .num_nodes = 1,
  1291. .nodes = { &xm_pcie3_1 },
  1292. };
  1293. static struct qcom_icc_bcm bcm_sn7 = {
  1294. .name = "SN7",
  1295. .num_nodes = 1,
  1296. .nodes = { &qnm_aggre1_noc },
  1297. };
  1298. static struct qcom_icc_bcm bcm_sn8 = {
  1299. .name = "SN8",
  1300. .num_nodes = 1,
  1301. .nodes = { &qnm_aggre2_noc },
  1302. };
  1303. static struct qcom_icc_bcm bcm_sn14 = {
  1304. .name = "SN14",
  1305. .num_nodes = 1,
  1306. .nodes = { &qns_pcie_mem_noc },
  1307. };
  1308. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1309. &bcm_sn5,
  1310. &bcm_sn6,
  1311. &bcm_sn14,
  1312. };
  1313. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1314. [MASTER_QSPI_0] = &qhm_qspi,
  1315. [MASTER_QUP_0] = &qhm_qup0,
  1316. [MASTER_QUP_1] = &qhm_qup1,
  1317. [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
  1318. [MASTER_PCIE_0] = &xm_pcie3_0,
  1319. [MASTER_PCIE_1] = &xm_pcie3_1,
  1320. [MASTER_SDCC_1] = &xm_sdc1,
  1321. [MASTER_SDCC_2] = &xm_sdc2,
  1322. [MASTER_SDCC_4] = &xm_sdc4,
  1323. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1324. [MASTER_USB2] = &xm_usb2,
  1325. [MASTER_USB3_0] = &xm_usb3_0,
  1326. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1327. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1328. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1329. };
  1330. static const struct qcom_icc_desc sc7280_aggre1_noc = {
  1331. .nodes = aggre1_noc_nodes,
  1332. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1333. .bcms = aggre1_noc_bcms,
  1334. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1335. };
  1336. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1337. &bcm_ce0,
  1338. };
  1339. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1340. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1341. [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
  1342. [MASTER_CNOC_A2NOC] = &qnm_cnoc_datapath,
  1343. [MASTER_CRYPTO] = &qxm_crypto,
  1344. [MASTER_IPA] = &qxm_ipa,
  1345. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1346. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1347. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1348. };
  1349. static const struct qcom_icc_desc sc7280_aggre2_noc = {
  1350. .nodes = aggre2_noc_nodes,
  1351. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1352. .bcms = aggre2_noc_bcms,
  1353. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1354. };
  1355. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1356. &bcm_qup0,
  1357. &bcm_qup1,
  1358. };
  1359. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1360. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1361. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1362. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1363. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1364. };
  1365. static const struct qcom_icc_desc sc7280_clk_virt = {
  1366. .nodes = clk_virt_nodes,
  1367. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1368. .bcms = clk_virt_bcms,
  1369. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1370. };
  1371. static struct qcom_icc_bcm * const cnoc2_bcms[] = {
  1372. &bcm_cn1,
  1373. &bcm_cn2,
  1374. };
  1375. static struct qcom_icc_node * const cnoc2_nodes[] = {
  1376. [MASTER_CNOC3_CNOC2] = &qnm_cnoc3_cnoc2,
  1377. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1378. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1379. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1380. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1381. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1382. [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
  1383. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1384. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1385. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1386. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1387. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1388. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1389. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1390. [SLAVE_HWKM] = &qhs_hwkm,
  1391. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1392. [SLAVE_IPA_CFG] = &qhs_ipa,
  1393. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1394. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1395. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1396. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1397. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1398. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1399. [SLAVE_PDM] = &qhs_pdm,
  1400. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1401. [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
  1402. [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
  1403. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1404. [SLAVE_QSPI_0] = &qhs_qspi,
  1405. [SLAVE_QUP_0] = &qhs_qup0,
  1406. [SLAVE_QUP_1] = &qhs_qup1,
  1407. [SLAVE_SDCC_1] = &qhs_sdc1,
  1408. [SLAVE_SDCC_2] = &qhs_sdc2,
  1409. [SLAVE_SDCC_4] = &qhs_sdc4,
  1410. [SLAVE_SECURITY] = &qhs_security,
  1411. [SLAVE_TCSR] = &qhs_tcsr,
  1412. [SLAVE_TLMM] = &qhs_tlmm,
  1413. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1414. [SLAVE_USB2] = &qhs_usb2,
  1415. [SLAVE_USB3_0] = &qhs_usb3_0,
  1416. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1417. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1418. [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
  1419. [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
  1420. [SLAVE_CNOC2_CNOC3] = &qns_cnoc2_cnoc3,
  1421. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1422. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1423. };
  1424. static const struct qcom_icc_desc sc7280_cnoc2 = {
  1425. .nodes = cnoc2_nodes,
  1426. .num_nodes = ARRAY_SIZE(cnoc2_nodes),
  1427. .bcms = cnoc2_bcms,
  1428. .num_bcms = ARRAY_SIZE(cnoc2_bcms),
  1429. };
  1430. static struct qcom_icc_bcm * const cnoc3_bcms[] = {
  1431. &bcm_cn0,
  1432. &bcm_cn1,
  1433. &bcm_sn3,
  1434. &bcm_sn4,
  1435. };
  1436. static struct qcom_icc_node * const cnoc3_nodes[] = {
  1437. [MASTER_CNOC2_CNOC3] = &qnm_cnoc2_cnoc3,
  1438. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1439. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1440. [SLAVE_AOSS] = &qhs_aoss,
  1441. [SLAVE_APPSS] = &qhs_apss,
  1442. [SLAVE_CNOC3_CNOC2] = &qns_cnoc3_cnoc2,
  1443. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1444. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1445. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  1446. [SLAVE_IMEM] = &qxs_imem,
  1447. [SLAVE_PIMEM] = &qxs_pimem,
  1448. [SLAVE_PCIE_0] = &xs_pcie_0,
  1449. [SLAVE_PCIE_1] = &xs_pcie_1,
  1450. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1451. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1452. };
  1453. static const struct qcom_icc_desc sc7280_cnoc3 = {
  1454. .nodes = cnoc3_nodes,
  1455. .num_nodes = ARRAY_SIZE(cnoc3_nodes),
  1456. .bcms = cnoc3_bcms,
  1457. .num_bcms = ARRAY_SIZE(cnoc3_bcms),
  1458. };
  1459. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1460. };
  1461. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1462. [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
  1463. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1464. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  1465. };
  1466. static const struct qcom_icc_desc sc7280_dc_noc = {
  1467. .nodes = dc_noc_nodes,
  1468. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1469. .bcms = dc_noc_bcms,
  1470. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1471. };
  1472. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1473. &bcm_sh0,
  1474. &bcm_sh2,
  1475. &bcm_sh3,
  1476. &bcm_sh4,
  1477. };
  1478. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1479. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1480. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1481. [MASTER_APPSS_PROC] = &chm_apps,
  1482. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1483. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  1484. [MASTER_GFX3D] = &qnm_gpu,
  1485. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1486. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1487. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1488. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1489. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1490. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1491. [SLAVE_MCDMA_MS_MPU_CFG] = &qhs_modem_ms_mpu_cfg,
  1492. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1493. [SLAVE_LLCC] = &qns_llcc,
  1494. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1495. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  1496. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  1497. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  1498. };
  1499. static const struct qcom_icc_desc sc7280_gem_noc = {
  1500. .nodes = gem_noc_nodes,
  1501. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1502. .bcms = gem_noc_bcms,
  1503. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1504. };
  1505. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1506. };
  1507. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1508. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  1509. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  1510. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  1511. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  1512. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  1513. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  1514. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  1515. };
  1516. static const struct qcom_icc_desc sc7280_lpass_ag_noc = {
  1517. .nodes = lpass_ag_noc_nodes,
  1518. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1519. .bcms = lpass_ag_noc_bcms,
  1520. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1521. };
  1522. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1523. &bcm_acv,
  1524. &bcm_mc0,
  1525. };
  1526. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1527. [MASTER_LLCC] = &llcc_mc,
  1528. [SLAVE_EBI1] = &ebi,
  1529. };
  1530. static const struct qcom_icc_desc sc7280_mc_virt = {
  1531. .nodes = mc_virt_nodes,
  1532. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1533. .bcms = mc_virt_bcms,
  1534. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1535. };
  1536. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1537. &bcm_mm0,
  1538. &bcm_mm1,
  1539. &bcm_mm4,
  1540. &bcm_mm5,
  1541. };
  1542. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1543. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  1544. [MASTER_VIDEO_P0] = &qnm_video0,
  1545. [MASTER_VIDEO_PROC] = &qnm_video_cpu,
  1546. [MASTER_CAMNOC_HF] = &qxm_camnoc_hf,
  1547. [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
  1548. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1549. [MASTER_MDP0] = &qxm_mdp0,
  1550. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1551. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1552. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1553. };
  1554. static const struct qcom_icc_desc sc7280_mmss_noc = {
  1555. .nodes = mmss_noc_nodes,
  1556. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1557. .bcms = mmss_noc_bcms,
  1558. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1559. };
  1560. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1561. &bcm_co0,
  1562. &bcm_co3,
  1563. };
  1564. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1565. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  1566. [MASTER_CDSP_PROC] = &qxm_nsp,
  1567. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1568. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  1569. };
  1570. static const struct qcom_icc_desc sc7280_nsp_noc = {
  1571. .nodes = nsp_noc_nodes,
  1572. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1573. .bcms = nsp_noc_bcms,
  1574. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1575. };
  1576. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1577. &bcm_sn0,
  1578. &bcm_sn2,
  1579. &bcm_sn7,
  1580. &bcm_sn8,
  1581. };
  1582. static struct qcom_icc_node * const system_noc_nodes[] = {
  1583. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1584. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1585. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  1586. [MASTER_PIMEM] = &qxm_pimem,
  1587. [MASTER_GIC] = &xm_gic,
  1588. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1589. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1590. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1591. };
  1592. static const struct qcom_icc_desc sc7280_system_noc = {
  1593. .nodes = system_noc_nodes,
  1594. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1595. .bcms = system_noc_bcms,
  1596. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1597. };
  1598. static const struct of_device_id qnoc_of_match[] = {
  1599. { .compatible = "qcom,sc7280-aggre1-noc",
  1600. .data = &sc7280_aggre1_noc},
  1601. { .compatible = "qcom,sc7280-aggre2-noc",
  1602. .data = &sc7280_aggre2_noc},
  1603. { .compatible = "qcom,sc7280-clk-virt",
  1604. .data = &sc7280_clk_virt},
  1605. { .compatible = "qcom,sc7280-cnoc2",
  1606. .data = &sc7280_cnoc2},
  1607. { .compatible = "qcom,sc7280-cnoc3",
  1608. .data = &sc7280_cnoc3},
  1609. { .compatible = "qcom,sc7280-dc-noc",
  1610. .data = &sc7280_dc_noc},
  1611. { .compatible = "qcom,sc7280-gem-noc",
  1612. .data = &sc7280_gem_noc},
  1613. { .compatible = "qcom,sc7280-lpass-ag-noc",
  1614. .data = &sc7280_lpass_ag_noc},
  1615. { .compatible = "qcom,sc7280-mc-virt",
  1616. .data = &sc7280_mc_virt},
  1617. { .compatible = "qcom,sc7280-mmss-noc",
  1618. .data = &sc7280_mmss_noc},
  1619. { .compatible = "qcom,sc7280-nsp-noc",
  1620. .data = &sc7280_nsp_noc},
  1621. { .compatible = "qcom,sc7280-system-noc",
  1622. .data = &sc7280_system_noc},
  1623. { }
  1624. };
  1625. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1626. static struct platform_driver qnoc_driver = {
  1627. .probe = qcom_icc_rpmh_probe,
  1628. .remove = qcom_icc_rpmh_remove,
  1629. .driver = {
  1630. .name = "qnoc-sc7280",
  1631. .of_match_table = qnoc_of_match,
  1632. .sync_state = icc_sync_state,
  1633. },
  1634. };
  1635. module_platform_driver(qnoc_driver);
  1636. MODULE_DESCRIPTION("SC7280 NoC driver");
  1637. MODULE_LICENSE("GPL v2");