sm8350.c 40 KB

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