sm8450.c 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2021, Linaro Limited
  5. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/module.h>
  11. #include <linux/of_platform.h>
  12. #include <dt-bindings/interconnect/qcom,sm8450.h>
  13. #include "bcm-voter.h"
  14. #include "icc-common.h"
  15. #include "icc-rpmh.h"
  16. #include "sm8450.h"
  17. static struct qcom_icc_node qhm_qspi = {
  18. .name = "qhm_qspi",
  19. .id = SM8450_MASTER_QSPI_0,
  20. .channels = 1,
  21. .buswidth = 4,
  22. .num_links = 1,
  23. .links = { SM8450_SLAVE_A1NOC_SNOC },
  24. };
  25. static struct qcom_icc_node qhm_qup1 = {
  26. .name = "qhm_qup1",
  27. .id = SM8450_MASTER_QUP_1,
  28. .channels = 1,
  29. .buswidth = 4,
  30. .num_links = 1,
  31. .links = { SM8450_SLAVE_A1NOC_SNOC },
  32. };
  33. static struct qcom_icc_node qnm_a1noc_cfg = {
  34. .name = "qnm_a1noc_cfg",
  35. .id = SM8450_MASTER_A1NOC_CFG,
  36. .channels = 1,
  37. .buswidth = 4,
  38. .num_links = 1,
  39. .links = { SM8450_SLAVE_SERVICE_A1NOC },
  40. };
  41. static struct qcom_icc_node xm_sdc4 = {
  42. .name = "xm_sdc4",
  43. .id = SM8450_MASTER_SDCC_4,
  44. .channels = 1,
  45. .buswidth = 8,
  46. .num_links = 1,
  47. .links = { SM8450_SLAVE_A1NOC_SNOC },
  48. };
  49. static struct qcom_icc_node xm_ufs_mem = {
  50. .name = "xm_ufs_mem",
  51. .id = SM8450_MASTER_UFS_MEM,
  52. .channels = 1,
  53. .buswidth = 8,
  54. .num_links = 1,
  55. .links = { SM8450_SLAVE_A1NOC_SNOC },
  56. };
  57. static struct qcom_icc_node xm_usb3_0 = {
  58. .name = "xm_usb3_0",
  59. .id = SM8450_MASTER_USB3_0,
  60. .channels = 1,
  61. .buswidth = 8,
  62. .num_links = 1,
  63. .links = { SM8450_SLAVE_A1NOC_SNOC },
  64. };
  65. static struct qcom_icc_node qhm_qdss_bam = {
  66. .name = "qhm_qdss_bam",
  67. .id = SM8450_MASTER_QDSS_BAM,
  68. .channels = 1,
  69. .buswidth = 4,
  70. .num_links = 1,
  71. .links = { SM8450_SLAVE_A2NOC_SNOC },
  72. };
  73. static struct qcom_icc_node qhm_qup0 = {
  74. .name = "qhm_qup0",
  75. .id = SM8450_MASTER_QUP_0,
  76. .channels = 1,
  77. .buswidth = 4,
  78. .num_links = 1,
  79. .links = { SM8450_SLAVE_A2NOC_SNOC },
  80. };
  81. static struct qcom_icc_node qhm_qup2 = {
  82. .name = "qhm_qup2",
  83. .id = SM8450_MASTER_QUP_2,
  84. .channels = 1,
  85. .buswidth = 4,
  86. .num_links = 1,
  87. .links = { SM8450_SLAVE_A2NOC_SNOC },
  88. };
  89. static struct qcom_icc_node qnm_a2noc_cfg = {
  90. .name = "qnm_a2noc_cfg",
  91. .id = SM8450_MASTER_A2NOC_CFG,
  92. .channels = 1,
  93. .buswidth = 4,
  94. .num_links = 1,
  95. .links = { SM8450_SLAVE_SERVICE_A2NOC },
  96. };
  97. static struct qcom_icc_node qxm_crypto = {
  98. .name = "qxm_crypto",
  99. .id = SM8450_MASTER_CRYPTO,
  100. .channels = 1,
  101. .buswidth = 8,
  102. .num_links = 1,
  103. .links = { SM8450_SLAVE_A2NOC_SNOC },
  104. };
  105. static struct qcom_icc_node qxm_ipa = {
  106. .name = "qxm_ipa",
  107. .id = SM8450_MASTER_IPA,
  108. .channels = 1,
  109. .buswidth = 8,
  110. .num_links = 1,
  111. .links = { SM8450_SLAVE_A2NOC_SNOC },
  112. };
  113. static struct qcom_icc_node qxm_sensorss_q6 = {
  114. .name = "qxm_sensorss_q6",
  115. .id = SM8450_MASTER_SENSORS_PROC,
  116. .channels = 1,
  117. .buswidth = 8,
  118. .num_links = 1,
  119. .links = { SM8450_SLAVE_A2NOC_SNOC },
  120. };
  121. static struct qcom_icc_node qxm_sp = {
  122. .name = "qxm_sp",
  123. .id = SM8450_MASTER_SP,
  124. .channels = 1,
  125. .buswidth = 8,
  126. .num_links = 1,
  127. .links = { SM8450_SLAVE_A2NOC_SNOC },
  128. };
  129. static struct qcom_icc_node xm_qdss_etr_0 = {
  130. .name = "xm_qdss_etr_0",
  131. .id = SM8450_MASTER_QDSS_ETR,
  132. .channels = 1,
  133. .buswidth = 8,
  134. .num_links = 1,
  135. .links = { SM8450_SLAVE_A2NOC_SNOC },
  136. };
  137. static struct qcom_icc_node xm_qdss_etr_1 = {
  138. .name = "xm_qdss_etr_1",
  139. .id = SM8450_MASTER_QDSS_ETR_1,
  140. .channels = 1,
  141. .buswidth = 8,
  142. .num_links = 1,
  143. .links = { SM8450_SLAVE_A2NOC_SNOC },
  144. };
  145. static struct qcom_icc_node xm_sdc2 = {
  146. .name = "xm_sdc2",
  147. .id = SM8450_MASTER_SDCC_2,
  148. .channels = 1,
  149. .buswidth = 8,
  150. .num_links = 1,
  151. .links = { SM8450_SLAVE_A2NOC_SNOC },
  152. };
  153. static struct qcom_icc_node qup0_core_master = {
  154. .name = "qup0_core_master",
  155. .id = SM8450_MASTER_QUP_CORE_0,
  156. .channels = 1,
  157. .buswidth = 4,
  158. .num_links = 1,
  159. .links = { SM8450_SLAVE_QUP_CORE_0 },
  160. };
  161. static struct qcom_icc_node qup1_core_master = {
  162. .name = "qup1_core_master",
  163. .id = SM8450_MASTER_QUP_CORE_1,
  164. .channels = 1,
  165. .buswidth = 4,
  166. .num_links = 1,
  167. .links = { SM8450_SLAVE_QUP_CORE_1 },
  168. };
  169. static struct qcom_icc_node qup2_core_master = {
  170. .name = "qup2_core_master",
  171. .id = SM8450_MASTER_QUP_CORE_2,
  172. .channels = 1,
  173. .buswidth = 4,
  174. .num_links = 1,
  175. .links = { SM8450_SLAVE_QUP_CORE_2 },
  176. };
  177. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  178. .name = "qnm_gemnoc_cnoc",
  179. .id = SM8450_MASTER_GEM_NOC_CNOC,
  180. .channels = 1,
  181. .buswidth = 16,
  182. .num_links = 51,
  183. .links = { SM8450_SLAVE_AHB2PHY_SOUTH, SM8450_SLAVE_AHB2PHY_NORTH,
  184. SM8450_SLAVE_AOSS, SM8450_SLAVE_CAMERA_CFG,
  185. SM8450_SLAVE_CLK_CTL, SM8450_SLAVE_CDSP_CFG,
  186. SM8450_SLAVE_RBCPR_CX_CFG, SM8450_SLAVE_RBCPR_MMCX_CFG,
  187. SM8450_SLAVE_RBCPR_MXA_CFG, SM8450_SLAVE_RBCPR_MXC_CFG,
  188. SM8450_SLAVE_CRYPTO_0_CFG, SM8450_SLAVE_CX_RDPM,
  189. SM8450_SLAVE_DISPLAY_CFG, SM8450_SLAVE_GFX3D_CFG,
  190. SM8450_SLAVE_IMEM_CFG, SM8450_SLAVE_IPA_CFG,
  191. SM8450_SLAVE_IPC_ROUTER_CFG, SM8450_SLAVE_LPASS,
  192. SM8450_SLAVE_CNOC_MSS, SM8450_SLAVE_MX_RDPM,
  193. SM8450_SLAVE_PCIE_0_CFG, SM8450_SLAVE_PCIE_1_CFG,
  194. SM8450_SLAVE_PDM, SM8450_SLAVE_PIMEM_CFG,
  195. SM8450_SLAVE_PRNG, SM8450_SLAVE_QDSS_CFG,
  196. SM8450_SLAVE_QSPI_0, SM8450_SLAVE_QUP_0,
  197. SM8450_SLAVE_QUP_1, SM8450_SLAVE_QUP_2,
  198. SM8450_SLAVE_SDCC_2, SM8450_SLAVE_SDCC_4,
  199. SM8450_SLAVE_SPSS_CFG, SM8450_SLAVE_TCSR,
  200. SM8450_SLAVE_TLMM, SM8450_SLAVE_TME_CFG,
  201. SM8450_SLAVE_UFS_MEM_CFG, SM8450_SLAVE_USB3_0,
  202. SM8450_SLAVE_VENUS_CFG, SM8450_SLAVE_VSENSE_CTRL_CFG,
  203. SM8450_SLAVE_A1NOC_CFG, SM8450_SLAVE_A2NOC_CFG,
  204. SM8450_SLAVE_DDRSS_CFG, SM8450_SLAVE_CNOC_MNOC_CFG,
  205. SM8450_SLAVE_PCIE_ANOC_CFG, SM8450_SLAVE_SNOC_CFG,
  206. SM8450_SLAVE_IMEM, SM8450_SLAVE_PIMEM,
  207. SM8450_SLAVE_SERVICE_CNOC, SM8450_SLAVE_QDSS_STM,
  208. SM8450_SLAVE_TCU },
  209. };
  210. static struct qcom_icc_node qnm_gemnoc_pcie = {
  211. .name = "qnm_gemnoc_pcie",
  212. .id = SM8450_MASTER_GEM_NOC_PCIE_SNOC,
  213. .channels = 1,
  214. .buswidth = 8,
  215. .num_links = 2,
  216. .links = { SM8450_SLAVE_PCIE_0, SM8450_SLAVE_PCIE_1 },
  217. };
  218. static struct qcom_icc_node alm_gpu_tcu = {
  219. .name = "alm_gpu_tcu",
  220. .id = SM8450_MASTER_GPU_TCU,
  221. .channels = 1,
  222. .buswidth = 8,
  223. .num_links = 2,
  224. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  225. };
  226. static struct qcom_icc_node alm_sys_tcu = {
  227. .name = "alm_sys_tcu",
  228. .id = SM8450_MASTER_SYS_TCU,
  229. .channels = 1,
  230. .buswidth = 8,
  231. .num_links = 2,
  232. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  233. };
  234. static struct qcom_icc_node chm_apps = {
  235. .name = "chm_apps",
  236. .id = SM8450_MASTER_APPSS_PROC,
  237. .channels = 3,
  238. .buswidth = 32,
  239. .num_links = 3,
  240. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  241. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  242. };
  243. static struct qcom_icc_node qnm_gpu = {
  244. .name = "qnm_gpu",
  245. .id = SM8450_MASTER_GFX3D,
  246. .channels = 2,
  247. .buswidth = 32,
  248. .num_links = 2,
  249. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  250. };
  251. static struct qcom_icc_node qnm_mdsp = {
  252. .name = "qnm_mdsp",
  253. .id = SM8450_MASTER_MSS_PROC,
  254. .channels = 1,
  255. .buswidth = 16,
  256. .num_links = 3,
  257. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  258. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  259. };
  260. static struct qcom_icc_node qnm_mnoc_hf = {
  261. .name = "qnm_mnoc_hf",
  262. .id = SM8450_MASTER_MNOC_HF_MEM_NOC,
  263. .channels = 2,
  264. .buswidth = 32,
  265. .num_links = 1,
  266. .links = { SM8450_SLAVE_LLCC },
  267. };
  268. static struct qcom_icc_node qnm_mnoc_sf = {
  269. .name = "qnm_mnoc_sf",
  270. .id = SM8450_MASTER_MNOC_SF_MEM_NOC,
  271. .channels = 2,
  272. .buswidth = 32,
  273. .num_links = 2,
  274. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  275. };
  276. static struct qcom_icc_node qnm_nsp_gemnoc = {
  277. .name = "qnm_nsp_gemnoc",
  278. .id = SM8450_MASTER_COMPUTE_NOC,
  279. .channels = 2,
  280. .buswidth = 32,
  281. .num_links = 2,
  282. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  283. };
  284. static struct qcom_icc_node qnm_pcie = {
  285. .name = "qnm_pcie",
  286. .id = SM8450_MASTER_ANOC_PCIE_GEM_NOC,
  287. .channels = 1,
  288. .buswidth = 16,
  289. .num_links = 2,
  290. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  291. };
  292. static struct qcom_icc_node qnm_snoc_gc = {
  293. .name = "qnm_snoc_gc",
  294. .id = SM8450_MASTER_SNOC_GC_MEM_NOC,
  295. .channels = 1,
  296. .buswidth = 8,
  297. .num_links = 1,
  298. .links = { SM8450_SLAVE_LLCC },
  299. };
  300. static struct qcom_icc_node qnm_snoc_sf = {
  301. .name = "qnm_snoc_sf",
  302. .id = SM8450_MASTER_SNOC_SF_MEM_NOC,
  303. .channels = 1,
  304. .buswidth = 16,
  305. .num_links = 3,
  306. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  307. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  308. };
  309. static struct qcom_icc_node qhm_config_noc = {
  310. .name = "qhm_config_noc",
  311. .id = SM8450_MASTER_CNOC_LPASS_AG_NOC,
  312. .channels = 1,
  313. .buswidth = 4,
  314. .num_links = 6,
  315. .links = { SM8450_SLAVE_LPASS_CORE_CFG, SM8450_SLAVE_LPASS_LPI_CFG,
  316. SM8450_SLAVE_LPASS_MPU_CFG, SM8450_SLAVE_LPASS_TOP_CFG,
  317. SM8450_SLAVE_SERVICES_LPASS_AML_NOC, SM8450_SLAVE_SERVICE_LPASS_AG_NOC },
  318. };
  319. static struct qcom_icc_node qxm_lpass_dsp = {
  320. .name = "qxm_lpass_dsp",
  321. .id = SM8450_MASTER_LPASS_PROC,
  322. .channels = 1,
  323. .buswidth = 8,
  324. .num_links = 4,
  325. .links = { SM8450_SLAVE_LPASS_TOP_CFG, SM8450_SLAVE_LPASS_SNOC,
  326. SM8450_SLAVE_SERVICES_LPASS_AML_NOC, SM8450_SLAVE_SERVICE_LPASS_AG_NOC },
  327. };
  328. static struct qcom_icc_node llcc_mc = {
  329. .name = "llcc_mc",
  330. .id = SM8450_MASTER_LLCC,
  331. .channels = 4,
  332. .buswidth = 4,
  333. .num_links = 1,
  334. .links = { SM8450_SLAVE_EBI1 },
  335. };
  336. static struct qcom_icc_node qnm_camnoc_hf = {
  337. .name = "qnm_camnoc_hf",
  338. .id = SM8450_MASTER_CAMNOC_HF,
  339. .channels = 2,
  340. .buswidth = 32,
  341. .num_links = 1,
  342. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC },
  343. };
  344. static struct qcom_icc_node qnm_camnoc_icp = {
  345. .name = "qnm_camnoc_icp",
  346. .id = SM8450_MASTER_CAMNOC_ICP,
  347. .channels = 1,
  348. .buswidth = 8,
  349. .num_links = 1,
  350. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  351. };
  352. static struct qcom_icc_node qnm_camnoc_sf = {
  353. .name = "qnm_camnoc_sf",
  354. .id = SM8450_MASTER_CAMNOC_SF,
  355. .channels = 2,
  356. .buswidth = 32,
  357. .num_links = 1,
  358. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  359. };
  360. static struct qcom_icc_node qnm_mdp = {
  361. .name = "qnm_mdp",
  362. .id = SM8450_MASTER_MDP,
  363. .channels = 2,
  364. .buswidth = 32,
  365. .num_links = 1,
  366. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC },
  367. };
  368. static struct qcom_icc_node qnm_mnoc_cfg = {
  369. .name = "qnm_mnoc_cfg",
  370. .id = SM8450_MASTER_CNOC_MNOC_CFG,
  371. .channels = 1,
  372. .buswidth = 4,
  373. .num_links = 1,
  374. .links = { SM8450_SLAVE_SERVICE_MNOC },
  375. };
  376. static struct qcom_icc_node qnm_rot = {
  377. .name = "qnm_rot",
  378. .id = SM8450_MASTER_ROTATOR,
  379. .channels = 1,
  380. .buswidth = 32,
  381. .num_links = 1,
  382. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  383. };
  384. static struct qcom_icc_node qnm_vapss_hcp = {
  385. .name = "qnm_vapss_hcp",
  386. .id = SM8450_MASTER_CDSP_HCP,
  387. .channels = 1,
  388. .buswidth = 32,
  389. .num_links = 1,
  390. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  391. };
  392. static struct qcom_icc_node qnm_video = {
  393. .name = "qnm_video",
  394. .id = SM8450_MASTER_VIDEO,
  395. .channels = 2,
  396. .buswidth = 32,
  397. .num_links = 1,
  398. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  399. };
  400. static struct qcom_icc_node qnm_video_cv_cpu = {
  401. .name = "qnm_video_cv_cpu",
  402. .id = SM8450_MASTER_VIDEO_CV_PROC,
  403. .channels = 1,
  404. .buswidth = 8,
  405. .num_links = 1,
  406. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  407. };
  408. static struct qcom_icc_node qnm_video_cvp = {
  409. .name = "qnm_video_cvp",
  410. .id = SM8450_MASTER_VIDEO_PROC,
  411. .channels = 1,
  412. .buswidth = 32,
  413. .num_links = 1,
  414. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  415. };
  416. static struct qcom_icc_node qnm_video_v_cpu = {
  417. .name = "qnm_video_v_cpu",
  418. .id = SM8450_MASTER_VIDEO_V_PROC,
  419. .channels = 1,
  420. .buswidth = 8,
  421. .num_links = 1,
  422. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  423. };
  424. static struct qcom_icc_node qhm_nsp_noc_config = {
  425. .name = "qhm_nsp_noc_config",
  426. .id = SM8450_MASTER_CDSP_NOC_CFG,
  427. .channels = 1,
  428. .buswidth = 4,
  429. .num_links = 1,
  430. .links = { SM8450_SLAVE_SERVICE_NSP_NOC },
  431. };
  432. static struct qcom_icc_node qxm_nsp = {
  433. .name = "qxm_nsp",
  434. .id = SM8450_MASTER_CDSP_PROC,
  435. .channels = 2,
  436. .buswidth = 32,
  437. .num_links = 1,
  438. .links = { SM8450_SLAVE_CDSP_MEM_NOC },
  439. };
  440. static struct qcom_icc_node qnm_pcie_anoc_cfg = {
  441. .name = "qnm_pcie_anoc_cfg",
  442. .id = SM8450_MASTER_PCIE_ANOC_CFG,
  443. .channels = 1,
  444. .buswidth = 4,
  445. .num_links = 1,
  446. .links = { SM8450_SLAVE_SERVICE_PCIE_ANOC },
  447. };
  448. static struct qcom_icc_node xm_pcie3_0 = {
  449. .name = "xm_pcie3_0",
  450. .id = SM8450_MASTER_PCIE_0,
  451. .channels = 1,
  452. .buswidth = 8,
  453. .num_links = 1,
  454. .links = { SM8450_SLAVE_ANOC_PCIE_GEM_NOC },
  455. };
  456. static struct qcom_icc_node xm_pcie3_1 = {
  457. .name = "xm_pcie3_1",
  458. .id = SM8450_MASTER_PCIE_1,
  459. .channels = 1,
  460. .buswidth = 8,
  461. .num_links = 1,
  462. .links = { SM8450_SLAVE_ANOC_PCIE_GEM_NOC },
  463. };
  464. static struct qcom_icc_node qhm_gic = {
  465. .name = "qhm_gic",
  466. .id = SM8450_MASTER_GIC_AHB,
  467. .channels = 1,
  468. .buswidth = 4,
  469. .num_links = 1,
  470. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  471. };
  472. static struct qcom_icc_node qnm_aggre1_noc = {
  473. .name = "qnm_aggre1_noc",
  474. .id = SM8450_MASTER_A1NOC_SNOC,
  475. .channels = 1,
  476. .buswidth = 16,
  477. .num_links = 1,
  478. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  479. };
  480. static struct qcom_icc_node qnm_aggre2_noc = {
  481. .name = "qnm_aggre2_noc",
  482. .id = SM8450_MASTER_A2NOC_SNOC,
  483. .channels = 1,
  484. .buswidth = 16,
  485. .num_links = 1,
  486. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  487. };
  488. static struct qcom_icc_node qnm_lpass_noc = {
  489. .name = "qnm_lpass_noc",
  490. .id = SM8450_MASTER_LPASS_ANOC,
  491. .channels = 1,
  492. .buswidth = 16,
  493. .num_links = 1,
  494. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  495. };
  496. static struct qcom_icc_node qnm_snoc_cfg = {
  497. .name = "qnm_snoc_cfg",
  498. .id = SM8450_MASTER_SNOC_CFG,
  499. .channels = 1,
  500. .buswidth = 4,
  501. .num_links = 1,
  502. .links = { SM8450_SLAVE_SERVICE_SNOC },
  503. };
  504. static struct qcom_icc_node qxm_pimem = {
  505. .name = "qxm_pimem",
  506. .id = SM8450_MASTER_PIMEM,
  507. .channels = 1,
  508. .buswidth = 8,
  509. .num_links = 1,
  510. .links = { SM8450_SLAVE_SNOC_GEM_NOC_GC },
  511. };
  512. static struct qcom_icc_node xm_gic = {
  513. .name = "xm_gic",
  514. .id = SM8450_MASTER_GIC,
  515. .channels = 1,
  516. .buswidth = 8,
  517. .num_links = 1,
  518. .links = { SM8450_SLAVE_SNOC_GEM_NOC_GC },
  519. };
  520. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  521. .name = "qnm_mnoc_hf_disp",
  522. .id = SM8450_MASTER_MNOC_HF_MEM_NOC_DISP,
  523. .channels = 2,
  524. .buswidth = 32,
  525. .num_links = 1,
  526. .links = { SM8450_SLAVE_LLCC_DISP },
  527. };
  528. static struct qcom_icc_node qnm_mnoc_sf_disp = {
  529. .name = "qnm_mnoc_sf_disp",
  530. .id = SM8450_MASTER_MNOC_SF_MEM_NOC_DISP,
  531. .channels = 2,
  532. .buswidth = 32,
  533. .num_links = 1,
  534. .links = { SM8450_SLAVE_LLCC_DISP },
  535. };
  536. static struct qcom_icc_node qnm_pcie_disp = {
  537. .name = "qnm_pcie_disp",
  538. .id = SM8450_MASTER_ANOC_PCIE_GEM_NOC_DISP,
  539. .channels = 1,
  540. .buswidth = 16,
  541. .num_links = 1,
  542. .links = { SM8450_SLAVE_LLCC_DISP },
  543. };
  544. static struct qcom_icc_node llcc_mc_disp = {
  545. .name = "llcc_mc_disp",
  546. .id = SM8450_MASTER_LLCC_DISP,
  547. .channels = 4,
  548. .buswidth = 4,
  549. .num_links = 1,
  550. .links = { SM8450_SLAVE_EBI1_DISP },
  551. };
  552. static struct qcom_icc_node qnm_mdp_disp = {
  553. .name = "qnm_mdp_disp",
  554. .id = SM8450_MASTER_MDP_DISP,
  555. .channels = 2,
  556. .buswidth = 32,
  557. .num_links = 1,
  558. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC_DISP },
  559. };
  560. static struct qcom_icc_node qnm_rot_disp = {
  561. .name = "qnm_rot_disp",
  562. .id = SM8450_MASTER_ROTATOR_DISP,
  563. .channels = 1,
  564. .buswidth = 32,
  565. .num_links = 1,
  566. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC_DISP },
  567. };
  568. static struct qcom_icc_node qns_a1noc_snoc = {
  569. .name = "qns_a1noc_snoc",
  570. .id = SM8450_SLAVE_A1NOC_SNOC,
  571. .channels = 1,
  572. .buswidth = 16,
  573. .num_links = 1,
  574. .links = { SM8450_MASTER_A1NOC_SNOC },
  575. };
  576. static struct qcom_icc_node srvc_aggre1_noc = {
  577. .name = "srvc_aggre1_noc",
  578. .id = SM8450_SLAVE_SERVICE_A1NOC,
  579. .channels = 1,
  580. .buswidth = 4,
  581. .num_links = 0,
  582. };
  583. static struct qcom_icc_node qns_a2noc_snoc = {
  584. .name = "qns_a2noc_snoc",
  585. .id = SM8450_SLAVE_A2NOC_SNOC,
  586. .channels = 1,
  587. .buswidth = 16,
  588. .num_links = 1,
  589. .links = { SM8450_MASTER_A2NOC_SNOC },
  590. };
  591. static struct qcom_icc_node srvc_aggre2_noc = {
  592. .name = "srvc_aggre2_noc",
  593. .id = SM8450_SLAVE_SERVICE_A2NOC,
  594. .channels = 1,
  595. .buswidth = 4,
  596. .num_links = 0,
  597. };
  598. static struct qcom_icc_node qup0_core_slave = {
  599. .name = "qup0_core_slave",
  600. .id = SM8450_SLAVE_QUP_CORE_0,
  601. .channels = 1,
  602. .buswidth = 4,
  603. .num_links = 0,
  604. };
  605. static struct qcom_icc_node qup1_core_slave = {
  606. .name = "qup1_core_slave",
  607. .id = SM8450_SLAVE_QUP_CORE_1,
  608. .channels = 1,
  609. .buswidth = 4,
  610. .num_links = 0,
  611. };
  612. static struct qcom_icc_node qup2_core_slave = {
  613. .name = "qup2_core_slave",
  614. .id = SM8450_SLAVE_QUP_CORE_2,
  615. .channels = 1,
  616. .buswidth = 4,
  617. .num_links = 0,
  618. };
  619. static struct qcom_icc_node qhs_ahb2phy0 = {
  620. .name = "qhs_ahb2phy0",
  621. .id = SM8450_SLAVE_AHB2PHY_SOUTH,
  622. .channels = 1,
  623. .buswidth = 4,
  624. .num_links = 0,
  625. };
  626. static struct qcom_icc_node qhs_ahb2phy1 = {
  627. .name = "qhs_ahb2phy1",
  628. .id = SM8450_SLAVE_AHB2PHY_NORTH,
  629. .channels = 1,
  630. .buswidth = 4,
  631. .num_links = 0,
  632. };
  633. static struct qcom_icc_node qhs_aoss = {
  634. .name = "qhs_aoss",
  635. .id = SM8450_SLAVE_AOSS,
  636. .channels = 1,
  637. .buswidth = 4,
  638. .num_links = 0,
  639. };
  640. static struct qcom_icc_node qhs_camera_cfg = {
  641. .name = "qhs_camera_cfg",
  642. .id = SM8450_SLAVE_CAMERA_CFG,
  643. .channels = 1,
  644. .buswidth = 4,
  645. .num_links = 0,
  646. };
  647. static struct qcom_icc_node qhs_clk_ctl = {
  648. .name = "qhs_clk_ctl",
  649. .id = SM8450_SLAVE_CLK_CTL,
  650. .channels = 1,
  651. .buswidth = 4,
  652. .num_links = 0,
  653. };
  654. static struct qcom_icc_node qhs_compute_cfg = {
  655. .name = "qhs_compute_cfg",
  656. .id = SM8450_SLAVE_CDSP_CFG,
  657. .channels = 1,
  658. .buswidth = 4,
  659. .num_links = 1,
  660. .links = { MASTER_CDSP_NOC_CFG },
  661. };
  662. static struct qcom_icc_node qhs_cpr_cx = {
  663. .name = "qhs_cpr_cx",
  664. .id = SM8450_SLAVE_RBCPR_CX_CFG,
  665. .channels = 1,
  666. .buswidth = 4,
  667. .num_links = 0,
  668. };
  669. static struct qcom_icc_node qhs_cpr_mmcx = {
  670. .name = "qhs_cpr_mmcx",
  671. .id = SM8450_SLAVE_RBCPR_MMCX_CFG,
  672. .channels = 1,
  673. .buswidth = 4,
  674. .num_links = 0,
  675. };
  676. static struct qcom_icc_node qhs_cpr_mxa = {
  677. .name = "qhs_cpr_mxa",
  678. .id = SM8450_SLAVE_RBCPR_MXA_CFG,
  679. .channels = 1,
  680. .buswidth = 4,
  681. .num_links = 0,
  682. };
  683. static struct qcom_icc_node qhs_cpr_mxc = {
  684. .name = "qhs_cpr_mxc",
  685. .id = SM8450_SLAVE_RBCPR_MXC_CFG,
  686. .channels = 1,
  687. .buswidth = 4,
  688. .num_links = 0,
  689. };
  690. static struct qcom_icc_node qhs_crypto0_cfg = {
  691. .name = "qhs_crypto0_cfg",
  692. .id = SM8450_SLAVE_CRYPTO_0_CFG,
  693. .channels = 1,
  694. .buswidth = 4,
  695. .num_links = 0,
  696. };
  697. static struct qcom_icc_node qhs_cx_rdpm = {
  698. .name = "qhs_cx_rdpm",
  699. .id = SM8450_SLAVE_CX_RDPM,
  700. .channels = 1,
  701. .buswidth = 4,
  702. .num_links = 0,
  703. };
  704. static struct qcom_icc_node qhs_display_cfg = {
  705. .name = "qhs_display_cfg",
  706. .id = SM8450_SLAVE_DISPLAY_CFG,
  707. .channels = 1,
  708. .buswidth = 4,
  709. .num_links = 0,
  710. };
  711. static struct qcom_icc_node qhs_gpuss_cfg = {
  712. .name = "qhs_gpuss_cfg",
  713. .id = SM8450_SLAVE_GFX3D_CFG,
  714. .channels = 1,
  715. .buswidth = 8,
  716. .num_links = 0,
  717. };
  718. static struct qcom_icc_node qhs_imem_cfg = {
  719. .name = "qhs_imem_cfg",
  720. .id = SM8450_SLAVE_IMEM_CFG,
  721. .channels = 1,
  722. .buswidth = 4,
  723. .num_links = 0,
  724. };
  725. static struct qcom_icc_node qhs_ipa = {
  726. .name = "qhs_ipa",
  727. .id = SM8450_SLAVE_IPA_CFG,
  728. .channels = 1,
  729. .buswidth = 4,
  730. .num_links = 0,
  731. };
  732. static struct qcom_icc_node qhs_ipc_router = {
  733. .name = "qhs_ipc_router",
  734. .id = SM8450_SLAVE_IPC_ROUTER_CFG,
  735. .channels = 1,
  736. .buswidth = 4,
  737. .num_links = 0,
  738. };
  739. static struct qcom_icc_node qhs_lpass_cfg = {
  740. .name = "qhs_lpass_cfg",
  741. .id = SM8450_SLAVE_LPASS,
  742. .channels = 1,
  743. .buswidth = 4,
  744. .num_links = 1,
  745. .links = { MASTER_CNOC_LPASS_AG_NOC },
  746. };
  747. static struct qcom_icc_node qhs_mss_cfg = {
  748. .name = "qhs_mss_cfg",
  749. .id = SM8450_SLAVE_CNOC_MSS,
  750. .channels = 1,
  751. .buswidth = 4,
  752. .num_links = 0,
  753. };
  754. static struct qcom_icc_node qhs_mx_rdpm = {
  755. .name = "qhs_mx_rdpm",
  756. .id = SM8450_SLAVE_MX_RDPM,
  757. .channels = 1,
  758. .buswidth = 4,
  759. .num_links = 0,
  760. };
  761. static struct qcom_icc_node qhs_pcie0_cfg = {
  762. .name = "qhs_pcie0_cfg",
  763. .id = SM8450_SLAVE_PCIE_0_CFG,
  764. .channels = 1,
  765. .buswidth = 4,
  766. .num_links = 0,
  767. };
  768. static struct qcom_icc_node qhs_pcie1_cfg = {
  769. .name = "qhs_pcie1_cfg",
  770. .id = SM8450_SLAVE_PCIE_1_CFG,
  771. .channels = 1,
  772. .buswidth = 4,
  773. .num_links = 0,
  774. };
  775. static struct qcom_icc_node qhs_pdm = {
  776. .name = "qhs_pdm",
  777. .id = SM8450_SLAVE_PDM,
  778. .channels = 1,
  779. .buswidth = 4,
  780. .num_links = 0,
  781. };
  782. static struct qcom_icc_node qhs_pimem_cfg = {
  783. .name = "qhs_pimem_cfg",
  784. .id = SM8450_SLAVE_PIMEM_CFG,
  785. .channels = 1,
  786. .buswidth = 4,
  787. .num_links = 0,
  788. };
  789. static struct qcom_icc_node qhs_prng = {
  790. .name = "qhs_prng",
  791. .id = SM8450_SLAVE_PRNG,
  792. .channels = 1,
  793. .buswidth = 4,
  794. .num_links = 0,
  795. };
  796. static struct qcom_icc_node qhs_qdss_cfg = {
  797. .name = "qhs_qdss_cfg",
  798. .id = SM8450_SLAVE_QDSS_CFG,
  799. .channels = 1,
  800. .buswidth = 4,
  801. .num_links = 0,
  802. };
  803. static struct qcom_icc_node qhs_qspi = {
  804. .name = "qhs_qspi",
  805. .id = SM8450_SLAVE_QSPI_0,
  806. .channels = 1,
  807. .buswidth = 4,
  808. .num_links = 0,
  809. };
  810. static struct qcom_icc_node qhs_qup0 = {
  811. .name = "qhs_qup0",
  812. .id = SM8450_SLAVE_QUP_0,
  813. .channels = 1,
  814. .buswidth = 4,
  815. .num_links = 0,
  816. };
  817. static struct qcom_icc_node qhs_qup1 = {
  818. .name = "qhs_qup1",
  819. .id = SM8450_SLAVE_QUP_1,
  820. .channels = 1,
  821. .buswidth = 4,
  822. .num_links = 0,
  823. };
  824. static struct qcom_icc_node qhs_qup2 = {
  825. .name = "qhs_qup2",
  826. .id = SM8450_SLAVE_QUP_2,
  827. .channels = 1,
  828. .buswidth = 4,
  829. .num_links = 0,
  830. };
  831. static struct qcom_icc_node qhs_sdc2 = {
  832. .name = "qhs_sdc2",
  833. .id = SM8450_SLAVE_SDCC_2,
  834. .channels = 1,
  835. .buswidth = 4,
  836. .num_links = 0,
  837. };
  838. static struct qcom_icc_node qhs_sdc4 = {
  839. .name = "qhs_sdc4",
  840. .id = SM8450_SLAVE_SDCC_4,
  841. .channels = 1,
  842. .buswidth = 4,
  843. .num_links = 0,
  844. };
  845. static struct qcom_icc_node qhs_spss_cfg = {
  846. .name = "qhs_spss_cfg",
  847. .id = SM8450_SLAVE_SPSS_CFG,
  848. .channels = 1,
  849. .buswidth = 4,
  850. .num_links = 0,
  851. };
  852. static struct qcom_icc_node qhs_tcsr = {
  853. .name = "qhs_tcsr",
  854. .id = SM8450_SLAVE_TCSR,
  855. .channels = 1,
  856. .buswidth = 4,
  857. .num_links = 0,
  858. };
  859. static struct qcom_icc_node qhs_tlmm = {
  860. .name = "qhs_tlmm",
  861. .id = SM8450_SLAVE_TLMM,
  862. .channels = 1,
  863. .buswidth = 4,
  864. .num_links = 0,
  865. };
  866. static struct qcom_icc_node qhs_tme_cfg = {
  867. .name = "qhs_tme_cfg",
  868. .id = SM8450_SLAVE_TME_CFG,
  869. .channels = 1,
  870. .buswidth = 4,
  871. .num_links = 0,
  872. };
  873. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  874. .name = "qhs_ufs_mem_cfg",
  875. .id = SM8450_SLAVE_UFS_MEM_CFG,
  876. .channels = 1,
  877. .buswidth = 4,
  878. .num_links = 0,
  879. };
  880. static struct qcom_icc_node qhs_usb3_0 = {
  881. .name = "qhs_usb3_0",
  882. .id = SM8450_SLAVE_USB3_0,
  883. .channels = 1,
  884. .buswidth = 4,
  885. .num_links = 0,
  886. };
  887. static struct qcom_icc_node qhs_venus_cfg = {
  888. .name = "qhs_venus_cfg",
  889. .id = SM8450_SLAVE_VENUS_CFG,
  890. .channels = 1,
  891. .buswidth = 4,
  892. .num_links = 0,
  893. };
  894. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  895. .name = "qhs_vsense_ctrl_cfg",
  896. .id = SM8450_SLAVE_VSENSE_CTRL_CFG,
  897. .channels = 1,
  898. .buswidth = 4,
  899. .num_links = 0,
  900. };
  901. static struct qcom_icc_node qns_a1_noc_cfg = {
  902. .name = "qns_a1_noc_cfg",
  903. .id = SM8450_SLAVE_A1NOC_CFG,
  904. .channels = 1,
  905. .buswidth = 4,
  906. .num_links = 1,
  907. .links = { SM8450_MASTER_A1NOC_CFG },
  908. };
  909. static struct qcom_icc_node qns_a2_noc_cfg = {
  910. .name = "qns_a2_noc_cfg",
  911. .id = SM8450_SLAVE_A2NOC_CFG,
  912. .channels = 1,
  913. .buswidth = 4,
  914. .num_links = 1,
  915. .links = { SM8450_MASTER_A2NOC_CFG },
  916. };
  917. static struct qcom_icc_node qns_ddrss_cfg = {
  918. .name = "qns_ddrss_cfg",
  919. .id = SM8450_SLAVE_DDRSS_CFG,
  920. .channels = 1,
  921. .buswidth = 4,
  922. .num_links = 1,
  923. //FIXME where is link
  924. };
  925. static struct qcom_icc_node qns_mnoc_cfg = {
  926. .name = "qns_mnoc_cfg",
  927. .id = SM8450_SLAVE_CNOC_MNOC_CFG,
  928. .channels = 1,
  929. .buswidth = 4,
  930. .num_links = 1,
  931. .links = { SM8450_MASTER_CNOC_MNOC_CFG },
  932. };
  933. static struct qcom_icc_node qns_pcie_anoc_cfg = {
  934. .name = "qns_pcie_anoc_cfg",
  935. .id = SM8450_SLAVE_PCIE_ANOC_CFG,
  936. .channels = 1,
  937. .buswidth = 4,
  938. .num_links = 1,
  939. .links = { SM8450_MASTER_PCIE_ANOC_CFG },
  940. };
  941. static struct qcom_icc_node qns_snoc_cfg = {
  942. .name = "qns_snoc_cfg",
  943. .id = SM8450_SLAVE_SNOC_CFG,
  944. .channels = 1,
  945. .buswidth = 4,
  946. .num_links = 1,
  947. .links = { SM8450_MASTER_SNOC_CFG },
  948. };
  949. static struct qcom_icc_node qxs_imem = {
  950. .name = "qxs_imem",
  951. .id = SM8450_SLAVE_IMEM,
  952. .channels = 1,
  953. .buswidth = 8,
  954. .num_links = 0,
  955. };
  956. static struct qcom_icc_node qxs_pimem = {
  957. .name = "qxs_pimem",
  958. .id = SM8450_SLAVE_PIMEM,
  959. .channels = 1,
  960. .buswidth = 8,
  961. .num_links = 0,
  962. };
  963. static struct qcom_icc_node srvc_cnoc = {
  964. .name = "srvc_cnoc",
  965. .id = SM8450_SLAVE_SERVICE_CNOC,
  966. .channels = 1,
  967. .buswidth = 4,
  968. .num_links = 0,
  969. };
  970. static struct qcom_icc_node xs_pcie_0 = {
  971. .name = "xs_pcie_0",
  972. .id = SM8450_SLAVE_PCIE_0,
  973. .channels = 1,
  974. .buswidth = 8,
  975. .num_links = 0,
  976. };
  977. static struct qcom_icc_node xs_pcie_1 = {
  978. .name = "xs_pcie_1",
  979. .id = SM8450_SLAVE_PCIE_1,
  980. .channels = 1,
  981. .buswidth = 8,
  982. .num_links = 0,
  983. };
  984. static struct qcom_icc_node xs_qdss_stm = {
  985. .name = "xs_qdss_stm",
  986. .id = SM8450_SLAVE_QDSS_STM,
  987. .channels = 1,
  988. .buswidth = 4,
  989. .num_links = 0,
  990. };
  991. static struct qcom_icc_node xs_sys_tcu_cfg = {
  992. .name = "xs_sys_tcu_cfg",
  993. .id = SM8450_SLAVE_TCU,
  994. .channels = 1,
  995. .buswidth = 8,
  996. .num_links = 0,
  997. };
  998. static struct qcom_icc_node qns_gem_noc_cnoc = {
  999. .name = "qns_gem_noc_cnoc",
  1000. .id = SM8450_SLAVE_GEM_NOC_CNOC,
  1001. .channels = 1,
  1002. .buswidth = 16,
  1003. .num_links = 1,
  1004. .links = { SM8450_MASTER_GEM_NOC_CNOC },
  1005. };
  1006. static struct qcom_icc_node qns_llcc = {
  1007. .name = "qns_llcc",
  1008. .id = SM8450_SLAVE_LLCC,
  1009. .channels = 4,
  1010. .buswidth = 16,
  1011. .num_links = 1,
  1012. .links = { SM8450_MASTER_LLCC },
  1013. };
  1014. static struct qcom_icc_node qns_pcie = {
  1015. .name = "qns_pcie",
  1016. .id = SM8450_SLAVE_MEM_NOC_PCIE_SNOC,
  1017. .channels = 1,
  1018. .buswidth = 8,
  1019. .num_links = 1,
  1020. .links = { SM8450_MASTER_GEM_NOC_PCIE_SNOC },
  1021. };
  1022. static struct qcom_icc_node qhs_lpass_core = {
  1023. .name = "qhs_lpass_core",
  1024. .id = SM8450_SLAVE_LPASS_CORE_CFG,
  1025. .channels = 1,
  1026. .buswidth = 4,
  1027. .num_links = 0,
  1028. };
  1029. static struct qcom_icc_node qhs_lpass_lpi = {
  1030. .name = "qhs_lpass_lpi",
  1031. .id = SM8450_SLAVE_LPASS_LPI_CFG,
  1032. .channels = 1,
  1033. .buswidth = 4,
  1034. .num_links = 0,
  1035. };
  1036. static struct qcom_icc_node qhs_lpass_mpu = {
  1037. .name = "qhs_lpass_mpu",
  1038. .id = SM8450_SLAVE_LPASS_MPU_CFG,
  1039. .channels = 1,
  1040. .buswidth = 4,
  1041. .num_links = 0,
  1042. };
  1043. static struct qcom_icc_node qhs_lpass_top = {
  1044. .name = "qhs_lpass_top",
  1045. .id = SM8450_SLAVE_LPASS_TOP_CFG,
  1046. .channels = 1,
  1047. .buswidth = 4,
  1048. .num_links = 0,
  1049. };
  1050. static struct qcom_icc_node qns_sysnoc = {
  1051. .name = "qns_sysnoc",
  1052. .id = SM8450_SLAVE_LPASS_SNOC,
  1053. .channels = 1,
  1054. .buswidth = 16,
  1055. .num_links = 1,
  1056. .links = { SM8450_MASTER_LPASS_ANOC },
  1057. };
  1058. static struct qcom_icc_node srvc_niu_aml_noc = {
  1059. .name = "srvc_niu_aml_noc",
  1060. .id = SM8450_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 = SM8450_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 = SM8450_SLAVE_EBI1,
  1075. .channels = 4,
  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 = SM8450_SLAVE_MNOC_HF_MEM_NOC,
  1082. .channels = 2,
  1083. .buswidth = 32,
  1084. .num_links = 1,
  1085. .links = { SM8450_MASTER_MNOC_HF_MEM_NOC },
  1086. };
  1087. static struct qcom_icc_node qns_mem_noc_sf = {
  1088. .name = "qns_mem_noc_sf",
  1089. .id = SM8450_SLAVE_MNOC_SF_MEM_NOC,
  1090. .channels = 2,
  1091. .buswidth = 32,
  1092. .num_links = 1,
  1093. .links = { SM8450_MASTER_MNOC_SF_MEM_NOC },
  1094. };
  1095. static struct qcom_icc_node srvc_mnoc = {
  1096. .name = "srvc_mnoc",
  1097. .id = SM8450_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 = SM8450_SLAVE_CDSP_MEM_NOC,
  1105. .channels = 2,
  1106. .buswidth = 32,
  1107. .num_links = 1,
  1108. .links = { SM8450_MASTER_COMPUTE_NOC },
  1109. };
  1110. static struct qcom_icc_node service_nsp_noc = {
  1111. .name = "service_nsp_noc",
  1112. .id = SM8450_SLAVE_SERVICE_NSP_NOC,
  1113. .channels = 1,
  1114. .buswidth = 4,
  1115. .num_links = 0,
  1116. };
  1117. static struct qcom_icc_node qns_pcie_mem_noc = {
  1118. .name = "qns_pcie_mem_noc",
  1119. .id = SM8450_SLAVE_ANOC_PCIE_GEM_NOC,
  1120. .channels = 1,
  1121. .buswidth = 16,
  1122. .num_links = 1,
  1123. .links = { SM8450_MASTER_ANOC_PCIE_GEM_NOC },
  1124. };
  1125. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  1126. .name = "srvc_pcie_aggre_noc",
  1127. .id = SM8450_SLAVE_SERVICE_PCIE_ANOC,
  1128. .channels = 1,
  1129. .buswidth = 4,
  1130. .num_links = 0,
  1131. };
  1132. static struct qcom_icc_node qns_gemnoc_gc = {
  1133. .name = "qns_gemnoc_gc",
  1134. .id = SM8450_SLAVE_SNOC_GEM_NOC_GC,
  1135. .channels = 1,
  1136. .buswidth = 8,
  1137. .num_links = 1,
  1138. .links = { SM8450_MASTER_SNOC_GC_MEM_NOC },
  1139. };
  1140. static struct qcom_icc_node qns_gemnoc_sf = {
  1141. .name = "qns_gemnoc_sf",
  1142. .id = SM8450_SLAVE_SNOC_GEM_NOC_SF,
  1143. .channels = 1,
  1144. .buswidth = 16,
  1145. .num_links = 1,
  1146. .links = { SM8450_MASTER_SNOC_SF_MEM_NOC },
  1147. };
  1148. static struct qcom_icc_node srvc_snoc = {
  1149. .name = "srvc_snoc",
  1150. .id = SM8450_SLAVE_SERVICE_SNOC,
  1151. .channels = 1,
  1152. .buswidth = 4,
  1153. .num_links = 0,
  1154. };
  1155. static struct qcom_icc_node qns_llcc_disp = {
  1156. .name = "qns_llcc_disp",
  1157. .id = SM8450_SLAVE_LLCC_DISP,
  1158. .channels = 4,
  1159. .buswidth = 16,
  1160. .num_links = 1,
  1161. .links = { SM8450_MASTER_LLCC_DISP },
  1162. };
  1163. static struct qcom_icc_node ebi_disp = {
  1164. .name = "ebi_disp",
  1165. .id = SM8450_SLAVE_EBI1_DISP,
  1166. .channels = 4,
  1167. .buswidth = 4,
  1168. .num_links = 0,
  1169. };
  1170. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1171. .name = "qns_mem_noc_hf_disp",
  1172. .id = SM8450_SLAVE_MNOC_HF_MEM_NOC_DISP,
  1173. .channels = 2,
  1174. .buswidth = 32,
  1175. .num_links = 1,
  1176. .links = { SM8450_MASTER_MNOC_HF_MEM_NOC_DISP },
  1177. };
  1178. static struct qcom_icc_node qns_mem_noc_sf_disp = {
  1179. .name = "qns_mem_noc_sf_disp",
  1180. .id = SM8450_SLAVE_MNOC_SF_MEM_NOC_DISP,
  1181. .channels = 2,
  1182. .buswidth = 32,
  1183. .num_links = 1,
  1184. .links = { SM8450_MASTER_MNOC_SF_MEM_NOC_DISP },
  1185. };
  1186. static struct qcom_icc_bcm bcm_acv = {
  1187. .name = "ACV",
  1188. .enable_mask = 0x8,
  1189. .num_nodes = 1,
  1190. .nodes = { &ebi },
  1191. };
  1192. static struct qcom_icc_bcm bcm_ce0 = {
  1193. .name = "CE0",
  1194. .num_nodes = 1,
  1195. .nodes = { &qxm_crypto },
  1196. };
  1197. static struct qcom_icc_bcm bcm_cn0 = {
  1198. .name = "CN0",
  1199. .enable_mask = 0x1,
  1200. .keepalive = true,
  1201. .num_nodes = 55,
  1202. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
  1203. &qhs_ahb2phy0, &qhs_ahb2phy1,
  1204. &qhs_aoss, &qhs_camera_cfg,
  1205. &qhs_clk_ctl, &qhs_compute_cfg,
  1206. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1207. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1208. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  1209. &qhs_display_cfg, &qhs_gpuss_cfg,
  1210. &qhs_imem_cfg, &qhs_ipa,
  1211. &qhs_ipc_router, &qhs_lpass_cfg,
  1212. &qhs_mss_cfg, &qhs_mx_rdpm,
  1213. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1214. &qhs_pdm, &qhs_pimem_cfg,
  1215. &qhs_prng, &qhs_qdss_cfg,
  1216. &qhs_qspi, &qhs_qup0,
  1217. &qhs_qup1, &qhs_qup2,
  1218. &qhs_sdc2, &qhs_sdc4,
  1219. &qhs_spss_cfg, &qhs_tcsr,
  1220. &qhs_tlmm, &qhs_tme_cfg,
  1221. &qhs_ufs_mem_cfg, &qhs_usb3_0,
  1222. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  1223. &qns_a1_noc_cfg, &qns_a2_noc_cfg,
  1224. &qns_ddrss_cfg, &qns_mnoc_cfg,
  1225. &qns_pcie_anoc_cfg, &qns_snoc_cfg,
  1226. &qxs_imem, &qxs_pimem,
  1227. &srvc_cnoc, &xs_pcie_0,
  1228. &xs_pcie_1, &xs_qdss_stm,
  1229. &xs_sys_tcu_cfg },
  1230. };
  1231. static struct qcom_icc_bcm bcm_co0 = {
  1232. .name = "CO0",
  1233. .enable_mask = 0x1,
  1234. .num_nodes = 2,
  1235. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1236. };
  1237. static struct qcom_icc_bcm bcm_mc0 = {
  1238. .name = "MC0",
  1239. .keepalive = true,
  1240. .num_nodes = 1,
  1241. .nodes = { &ebi },
  1242. };
  1243. static struct qcom_icc_bcm bcm_mm0 = {
  1244. .name = "MM0",
  1245. .keepalive = true,
  1246. .num_nodes = 1,
  1247. .nodes = { &qns_mem_noc_hf },
  1248. };
  1249. static struct qcom_icc_bcm bcm_mm1 = {
  1250. .name = "MM1",
  1251. .enable_mask = 0x1,
  1252. .num_nodes = 12,
  1253. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1254. &qnm_camnoc_sf, &qnm_mdp,
  1255. &qnm_mnoc_cfg, &qnm_rot,
  1256. &qnm_vapss_hcp, &qnm_video,
  1257. &qnm_video_cv_cpu, &qnm_video_cvp,
  1258. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1259. };
  1260. static struct qcom_icc_bcm bcm_qup0 = {
  1261. .name = "QUP0",
  1262. .keepalive = true,
  1263. .vote_scale = 1,
  1264. .num_nodes = 1,
  1265. .nodes = { &qup0_core_slave },
  1266. };
  1267. static struct qcom_icc_bcm bcm_qup1 = {
  1268. .name = "QUP1",
  1269. .keepalive = true,
  1270. .vote_scale = 1,
  1271. .num_nodes = 1,
  1272. .nodes = { &qup1_core_slave },
  1273. };
  1274. static struct qcom_icc_bcm bcm_qup2 = {
  1275. .name = "QUP2",
  1276. .keepalive = true,
  1277. .vote_scale = 1,
  1278. .num_nodes = 1,
  1279. .nodes = { &qup2_core_slave },
  1280. };
  1281. static struct qcom_icc_bcm bcm_sh0 = {
  1282. .name = "SH0",
  1283. .keepalive = true,
  1284. .num_nodes = 1,
  1285. .nodes = { &qns_llcc },
  1286. };
  1287. static struct qcom_icc_bcm bcm_sh1 = {
  1288. .name = "SH1",
  1289. .enable_mask = 0x1,
  1290. .num_nodes = 7,
  1291. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1292. &qnm_nsp_gemnoc, &qnm_pcie,
  1293. &qnm_snoc_gc, &qns_gem_noc_cnoc,
  1294. &qns_pcie },
  1295. };
  1296. static struct qcom_icc_bcm bcm_sn0 = {
  1297. .name = "SN0",
  1298. .keepalive = true,
  1299. .num_nodes = 1,
  1300. .nodes = { &qns_gemnoc_sf },
  1301. };
  1302. static struct qcom_icc_bcm bcm_sn1 = {
  1303. .name = "SN1",
  1304. .enable_mask = 0x1,
  1305. .num_nodes = 4,
  1306. .nodes = { &qhm_gic, &qxm_pimem,
  1307. &xm_gic, &qns_gemnoc_gc },
  1308. };
  1309. static struct qcom_icc_bcm bcm_sn2 = {
  1310. .name = "SN2",
  1311. .num_nodes = 1,
  1312. .nodes = { &qnm_aggre1_noc },
  1313. };
  1314. static struct qcom_icc_bcm bcm_sn3 = {
  1315. .name = "SN3",
  1316. .num_nodes = 1,
  1317. .nodes = { &qnm_aggre2_noc },
  1318. };
  1319. static struct qcom_icc_bcm bcm_sn4 = {
  1320. .name = "SN4",
  1321. .num_nodes = 1,
  1322. .nodes = { &qnm_lpass_noc },
  1323. };
  1324. static struct qcom_icc_bcm bcm_sn7 = {
  1325. .name = "SN7",
  1326. .num_nodes = 1,
  1327. .nodes = { &qns_pcie_mem_noc },
  1328. };
  1329. static struct qcom_icc_bcm bcm_acv_disp = {
  1330. .name = "ACV",
  1331. .enable_mask = 0x1,
  1332. .num_nodes = 1,
  1333. .nodes = { &ebi_disp },
  1334. };
  1335. static struct qcom_icc_bcm bcm_mc0_disp = {
  1336. .name = "MC0",
  1337. .num_nodes = 1,
  1338. .nodes = { &ebi_disp },
  1339. };
  1340. static struct qcom_icc_bcm bcm_mm0_disp = {
  1341. .name = "MM0",
  1342. .num_nodes = 1,
  1343. .nodes = { &qns_mem_noc_hf_disp },
  1344. };
  1345. static struct qcom_icc_bcm bcm_mm1_disp = {
  1346. .name = "MM1",
  1347. .enable_mask = 0x1,
  1348. .num_nodes = 3,
  1349. .nodes = { &qnm_mdp_disp, &qnm_rot_disp,
  1350. &qns_mem_noc_sf_disp },
  1351. };
  1352. static struct qcom_icc_bcm bcm_sh0_disp = {
  1353. .name = "SH0",
  1354. .num_nodes = 1,
  1355. .nodes = { &qns_llcc_disp },
  1356. };
  1357. static struct qcom_icc_bcm bcm_sh1_disp = {
  1358. .name = "SH1",
  1359. .enable_mask = 0x1,
  1360. .num_nodes = 1,
  1361. .nodes = { &qnm_pcie_disp },
  1362. };
  1363. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1364. };
  1365. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1366. [MASTER_QSPI_0] = &qhm_qspi,
  1367. [MASTER_QUP_1] = &qhm_qup1,
  1368. [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
  1369. [MASTER_SDCC_4] = &xm_sdc4,
  1370. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1371. [MASTER_USB3_0] = &xm_usb3_0,
  1372. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1373. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1374. };
  1375. static const struct qcom_icc_desc sm8450_aggre1_noc = {
  1376. .nodes = aggre1_noc_nodes,
  1377. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1378. .bcms = aggre1_noc_bcms,
  1379. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1380. };
  1381. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1382. &bcm_ce0,
  1383. };
  1384. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1385. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1386. [MASTER_QUP_0] = &qhm_qup0,
  1387. [MASTER_QUP_2] = &qhm_qup2,
  1388. [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
  1389. [MASTER_CRYPTO] = &qxm_crypto,
  1390. [MASTER_IPA] = &qxm_ipa,
  1391. [MASTER_SENSORS_PROC] = &qxm_sensorss_q6,
  1392. [MASTER_SP] = &qxm_sp,
  1393. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1394. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1395. [MASTER_SDCC_2] = &xm_sdc2,
  1396. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1397. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1398. };
  1399. static const struct qcom_icc_desc sm8450_aggre2_noc = {
  1400. .nodes = aggre2_noc_nodes,
  1401. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1402. .bcms = aggre2_noc_bcms,
  1403. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1404. };
  1405. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1406. &bcm_qup0,
  1407. &bcm_qup1,
  1408. &bcm_qup2,
  1409. };
  1410. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1411. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1412. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1413. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1414. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1415. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1416. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1417. };
  1418. static const struct qcom_icc_desc sm8450_clk_virt = {
  1419. .nodes = clk_virt_nodes,
  1420. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1421. .bcms = clk_virt_bcms,
  1422. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1423. };
  1424. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1425. &bcm_cn0,
  1426. };
  1427. static struct qcom_icc_node * const config_noc_nodes[] = {
  1428. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1429. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1430. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1431. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1432. [SLAVE_AOSS] = &qhs_aoss,
  1433. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1434. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1435. [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
  1436. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1437. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1438. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  1439. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  1440. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1441. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1442. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1443. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1444. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1445. [SLAVE_IPA_CFG] = &qhs_ipa,
  1446. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1447. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1448. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1449. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1450. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1451. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1452. [SLAVE_PDM] = &qhs_pdm,
  1453. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1454. [SLAVE_PRNG] = &qhs_prng,
  1455. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1456. [SLAVE_QSPI_0] = &qhs_qspi,
  1457. [SLAVE_QUP_0] = &qhs_qup0,
  1458. [SLAVE_QUP_1] = &qhs_qup1,
  1459. [SLAVE_QUP_2] = &qhs_qup2,
  1460. [SLAVE_SDCC_2] = &qhs_sdc2,
  1461. [SLAVE_SDCC_4] = &qhs_sdc4,
  1462. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1463. [SLAVE_TCSR] = &qhs_tcsr,
  1464. [SLAVE_TLMM] = &qhs_tlmm,
  1465. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1466. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1467. [SLAVE_USB3_0] = &qhs_usb3_0,
  1468. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1469. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1470. [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
  1471. [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
  1472. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1473. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1474. [SLAVE_PCIE_ANOC_CFG] = &qns_pcie_anoc_cfg,
  1475. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1476. [SLAVE_IMEM] = &qxs_imem,
  1477. [SLAVE_PIMEM] = &qxs_pimem,
  1478. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1479. [SLAVE_PCIE_0] = &xs_pcie_0,
  1480. [SLAVE_PCIE_1] = &xs_pcie_1,
  1481. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1482. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1483. };
  1484. static const struct qcom_icc_desc sm8450_config_noc = {
  1485. .nodes = config_noc_nodes,
  1486. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1487. .bcms = config_noc_bcms,
  1488. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1489. };
  1490. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1491. &bcm_sh0,
  1492. &bcm_sh1,
  1493. &bcm_sh0_disp,
  1494. &bcm_sh1_disp,
  1495. };
  1496. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1497. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1498. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1499. [MASTER_APPSS_PROC] = &chm_apps,
  1500. [MASTER_GFX3D] = &qnm_gpu,
  1501. [MASTER_MSS_PROC] = &qnm_mdsp,
  1502. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1503. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1504. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  1505. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1506. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1507. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1508. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1509. [SLAVE_LLCC] = &qns_llcc,
  1510. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1511. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  1512. [MASTER_MNOC_SF_MEM_NOC_DISP] = &qnm_mnoc_sf_disp,
  1513. [MASTER_ANOC_PCIE_GEM_NOC_DISP] = &qnm_pcie_disp,
  1514. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  1515. };
  1516. static const struct qcom_icc_desc sm8450_gem_noc = {
  1517. .nodes = gem_noc_nodes,
  1518. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1519. .bcms = gem_noc_bcms,
  1520. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1521. };
  1522. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1523. };
  1524. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1525. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  1526. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  1527. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  1528. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  1529. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  1530. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  1531. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  1532. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  1533. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  1534. };
  1535. static const struct qcom_icc_desc sm8450_lpass_ag_noc = {
  1536. .nodes = lpass_ag_noc_nodes,
  1537. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1538. .bcms = lpass_ag_noc_bcms,
  1539. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1540. };
  1541. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1542. &bcm_acv,
  1543. &bcm_mc0,
  1544. &bcm_acv_disp,
  1545. &bcm_mc0_disp,
  1546. };
  1547. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1548. [MASTER_LLCC] = &llcc_mc,
  1549. [SLAVE_EBI1] = &ebi,
  1550. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  1551. [SLAVE_EBI1_DISP] = &ebi_disp,
  1552. };
  1553. static const struct qcom_icc_desc sm8450_mc_virt = {
  1554. .nodes = mc_virt_nodes,
  1555. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1556. .bcms = mc_virt_bcms,
  1557. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1558. };
  1559. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1560. &bcm_mm0,
  1561. &bcm_mm1,
  1562. &bcm_mm0_disp,
  1563. &bcm_mm1_disp,
  1564. };
  1565. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1566. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1567. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1568. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1569. [MASTER_MDP] = &qnm_mdp,
  1570. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  1571. [MASTER_ROTATOR] = &qnm_rot,
  1572. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  1573. [MASTER_VIDEO] = &qnm_video,
  1574. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1575. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1576. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1577. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1578. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1579. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1580. [MASTER_MDP_DISP] = &qnm_mdp_disp,
  1581. [MASTER_ROTATOR_DISP] = &qnm_rot_disp,
  1582. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  1583. [SLAVE_MNOC_SF_MEM_NOC_DISP] = &qns_mem_noc_sf_disp,
  1584. };
  1585. static const struct qcom_icc_desc sm8450_mmss_noc = {
  1586. .nodes = mmss_noc_nodes,
  1587. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1588. .bcms = mmss_noc_bcms,
  1589. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1590. };
  1591. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1592. &bcm_co0,
  1593. };
  1594. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1595. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  1596. [MASTER_CDSP_PROC] = &qxm_nsp,
  1597. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1598. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  1599. };
  1600. static const struct qcom_icc_desc sm8450_nsp_noc = {
  1601. .nodes = nsp_noc_nodes,
  1602. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1603. .bcms = nsp_noc_bcms,
  1604. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1605. };
  1606. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  1607. &bcm_sn7,
  1608. };
  1609. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  1610. [MASTER_PCIE_ANOC_CFG] = &qnm_pcie_anoc_cfg,
  1611. [MASTER_PCIE_0] = &xm_pcie3_0,
  1612. [MASTER_PCIE_1] = &xm_pcie3_1,
  1613. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1614. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  1615. };
  1616. static const struct qcom_icc_desc sm8450_pcie_anoc = {
  1617. .nodes = pcie_anoc_nodes,
  1618. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  1619. .bcms = pcie_anoc_bcms,
  1620. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  1621. };
  1622. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1623. &bcm_sn0,
  1624. &bcm_sn1,
  1625. &bcm_sn2,
  1626. &bcm_sn3,
  1627. &bcm_sn4,
  1628. };
  1629. static struct qcom_icc_node * const system_noc_nodes[] = {
  1630. [MASTER_GIC_AHB] = &qhm_gic,
  1631. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1632. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1633. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  1634. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  1635. [MASTER_PIMEM] = &qxm_pimem,
  1636. [MASTER_GIC] = &xm_gic,
  1637. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1638. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1639. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1640. };
  1641. static const struct qcom_icc_desc sm8450_system_noc = {
  1642. .nodes = system_noc_nodes,
  1643. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1644. .bcms = system_noc_bcms,
  1645. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1646. };
  1647. static const struct of_device_id qnoc_of_match[] = {
  1648. { .compatible = "qcom,sm8450-aggre1-noc",
  1649. .data = &sm8450_aggre1_noc},
  1650. { .compatible = "qcom,sm8450-aggre2-noc",
  1651. .data = &sm8450_aggre2_noc},
  1652. { .compatible = "qcom,sm8450-clk-virt",
  1653. .data = &sm8450_clk_virt},
  1654. { .compatible = "qcom,sm8450-config-noc",
  1655. .data = &sm8450_config_noc},
  1656. { .compatible = "qcom,sm8450-gem-noc",
  1657. .data = &sm8450_gem_noc},
  1658. { .compatible = "qcom,sm8450-lpass-ag-noc",
  1659. .data = &sm8450_lpass_ag_noc},
  1660. { .compatible = "qcom,sm8450-mc-virt",
  1661. .data = &sm8450_mc_virt},
  1662. { .compatible = "qcom,sm8450-mmss-noc",
  1663. .data = &sm8450_mmss_noc},
  1664. { .compatible = "qcom,sm8450-nsp-noc",
  1665. .data = &sm8450_nsp_noc},
  1666. { .compatible = "qcom,sm8450-pcie-anoc",
  1667. .data = &sm8450_pcie_anoc},
  1668. { .compatible = "qcom,sm8450-system-noc",
  1669. .data = &sm8450_system_noc},
  1670. { }
  1671. };
  1672. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1673. static struct platform_driver qnoc_driver = {
  1674. .probe = qcom_icc_rpmh_probe,
  1675. .remove = qcom_icc_rpmh_remove,
  1676. .driver = {
  1677. .name = "qnoc-sm8450",
  1678. .of_match_table = qnoc_of_match,
  1679. .sync_state = icc_sync_state,
  1680. },
  1681. };
  1682. static int __init qnoc_driver_init(void)
  1683. {
  1684. return platform_driver_register(&qnoc_driver);
  1685. }
  1686. core_initcall(qnoc_driver_init);
  1687. MODULE_DESCRIPTION("sm8450 NoC driver");
  1688. MODULE_LICENSE("GPL v2");