sm7150.c 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sm7150-rpmh.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #include "sm7150.h"
  16. static struct qcom_icc_node qhm_a1noc_cfg = {
  17. .name = "qhm-a1noc-cfg",
  18. .id = SM7150_MASTER_A1NOC_CFG,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SM7150_SLAVE_SERVICE_A1NOC },
  23. };
  24. static struct qcom_icc_node qhm_qup_center = {
  25. .name = "qhm_qup_center",
  26. .id = SM7150_MASTER_QUP_0,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SM7150_A1NOC_SNOC_SLV },
  31. };
  32. static struct qcom_icc_node qhm_tsif = {
  33. .name = "qhm_tsif",
  34. .id = SM7150_MASTER_TSIF,
  35. .channels = 1,
  36. .buswidth = 4,
  37. .num_links = 1,
  38. .links = { SM7150_A1NOC_SNOC_SLV },
  39. };
  40. static struct qcom_icc_node xm_emmc = {
  41. .name = "xm_emmc",
  42. .id = SM7150_MASTER_EMMC,
  43. .channels = 1,
  44. .buswidth = 8,
  45. .num_links = 1,
  46. .links = { SM7150_A1NOC_SNOC_SLV },
  47. };
  48. static struct qcom_icc_node xm_sdc2 = {
  49. .name = "xm_sdc2",
  50. .id = SM7150_MASTER_SDCC_2,
  51. .channels = 1,
  52. .buswidth = 8,
  53. .num_links = 1,
  54. .links = { SM7150_A1NOC_SNOC_SLV },
  55. };
  56. static struct qcom_icc_node xm_sdc4 = {
  57. .name = "xm_sdc4",
  58. .id = SM7150_MASTER_SDCC_4,
  59. .channels = 1,
  60. .buswidth = 8,
  61. .num_links = 1,
  62. .links = { SM7150_A1NOC_SNOC_SLV },
  63. };
  64. static struct qcom_icc_node xm_ufs_mem = {
  65. .name = "xm_ufs_mem",
  66. .id = SM7150_MASTER_UFS_MEM,
  67. .channels = 1,
  68. .buswidth = 8,
  69. .num_links = 1,
  70. .links = { SM7150_A1NOC_SNOC_SLV },
  71. };
  72. static struct qcom_icc_node qhm_a2noc_cfg = {
  73. .name = "qhm_a2noc_cfg",
  74. .id = SM7150_MASTER_A2NOC_CFG,
  75. .channels = 1,
  76. .buswidth = 4,
  77. .num_links = 1,
  78. .links = { SM7150_SLAVE_SERVICE_A2NOC },
  79. };
  80. static struct qcom_icc_node qhm_qdss_bam = {
  81. .name = "qhm_qdss_bam",
  82. .id = SM7150_MASTER_QDSS_BAM,
  83. .channels = 1,
  84. .buswidth = 4,
  85. .num_links = 1,
  86. .links = { SM7150_A2NOC_SNOC_SLV },
  87. };
  88. static struct qcom_icc_node qhm_qup_north = {
  89. .name = "qhm_qup_north",
  90. .id = SM7150_MASTER_QUP_1,
  91. .channels = 1,
  92. .buswidth = 4,
  93. .num_links = 1,
  94. .links = { SM7150_A2NOC_SNOC_SLV },
  95. };
  96. static struct qcom_icc_node qnm_cnoc = {
  97. .name = "qnm_cnoc",
  98. .id = SM7150_MASTER_CNOC_A2NOC,
  99. .channels = 1,
  100. .buswidth = 8,
  101. .num_links = 1,
  102. .links = { SM7150_A2NOC_SNOC_SLV },
  103. };
  104. static struct qcom_icc_node qxm_crypto = {
  105. .name = "qxm_crypto",
  106. .id = SM7150_MASTER_CRYPTO_CORE_0,
  107. .channels = 1,
  108. .buswidth = 8,
  109. .num_links = 1,
  110. .links = { SM7150_A2NOC_SNOC_SLV },
  111. };
  112. static struct qcom_icc_node qxm_ipa = {
  113. .name = "qxm_ipa",
  114. .id = SM7150_MASTER_IPA,
  115. .channels = 1,
  116. .buswidth = 8,
  117. .num_links = 1,
  118. .links = { SM7150_A2NOC_SNOC_SLV },
  119. };
  120. static struct qcom_icc_node xm_pcie3_0 = {
  121. .name = "xm_pcie3_0",
  122. .id = SM7150_MASTER_PCIE,
  123. .channels = 1,
  124. .buswidth = 8,
  125. .num_links = 1,
  126. .links = { SM7150_SLAVE_ANOC_PCIE_GEM_NOC },
  127. };
  128. static struct qcom_icc_node xm_qdss_etr = {
  129. .name = "xm_qdss_etr",
  130. .id = SM7150_MASTER_QDSS_ETR,
  131. .channels = 1,
  132. .buswidth = 8,
  133. .num_links = 1,
  134. .links = { SM7150_A2NOC_SNOC_SLV },
  135. };
  136. static struct qcom_icc_node xm_usb3_0 = {
  137. .name = "xm_usb3_0",
  138. .id = SM7150_MASTER_USB3,
  139. .channels = 1,
  140. .buswidth = 8,
  141. .num_links = 1,
  142. .links = { SM7150_A2NOC_SNOC_SLV },
  143. };
  144. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  145. .name = "qxm_camnoc_hf0_uncomp",
  146. .id = SM7150_MASTER_CAMNOC_HF0_UNCOMP,
  147. .channels = 2,
  148. .buswidth = 32,
  149. .num_links = 1,
  150. .links = { SM7150_SLAVE_CAMNOC_UNCOMP },
  151. };
  152. static struct qcom_icc_node qxm_camnoc_rt_uncomp = {
  153. .name = "qxm_camnoc_rt_uncomp",
  154. .id = SM7150_MASTER_CAMNOC_RT_UNCOMP,
  155. .channels = 1,
  156. .buswidth = 32,
  157. .num_links = 1,
  158. .links = { SM7150_SLAVE_CAMNOC_UNCOMP },
  159. };
  160. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  161. .name = "qxm_camnoc_sf_uncomp",
  162. .id = SM7150_MASTER_CAMNOC_SF_UNCOMP,
  163. .channels = 1,
  164. .buswidth = 32,
  165. .num_links = 1,
  166. .links = { SM7150_SLAVE_CAMNOC_UNCOMP },
  167. };
  168. static struct qcom_icc_node qxm_camnoc_nrt_uncomp = {
  169. .name = "qxm_camnoc_nrt_uncomp",
  170. .id = SM7150_MASTER_CAMNOC_NRT_UNCOMP,
  171. .channels = 1,
  172. .buswidth = 32,
  173. .num_links = 1,
  174. .links = { SM7150_SLAVE_CAMNOC_UNCOMP },
  175. };
  176. static struct qcom_icc_node qnm_npu = {
  177. .name = "qnm_npu",
  178. .id = SM7150_MASTER_NPU,
  179. .channels = 1,
  180. .buswidth = 32,
  181. .num_links = 1,
  182. .links = { SM7150_SLAVE_CDSP_GEM_NOC },
  183. };
  184. static struct qcom_icc_node qhm_spdm = {
  185. .name = "qhm_spdm",
  186. .id = SM7150_MASTER_SPDM,
  187. .channels = 1,
  188. .buswidth = 4,
  189. .num_links = 1,
  190. .links = { SM7150_SLAVE_CNOC_A2NOC },
  191. };
  192. static struct qcom_icc_node qnm_snoc = {
  193. .name = "qnm_snoc",
  194. .id = SM7150_SNOC_CNOC_MAS,
  195. .channels = 1,
  196. .buswidth = 8,
  197. .num_links = 47,
  198. .links = { SM7150_SLAVE_TLMM_SOUTH,
  199. SM7150_SLAVE_CAMERA_CFG,
  200. SM7150_SLAVE_SDCC_4,
  201. SM7150_SLAVE_SDCC_2,
  202. SM7150_SLAVE_CNOC_MNOC_CFG,
  203. SM7150_SLAVE_UFS_MEM_CFG,
  204. SM7150_SLAVE_QUP_0,
  205. SM7150_SLAVE_GLM,
  206. SM7150_SLAVE_PDM,
  207. SM7150_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  208. SM7150_SLAVE_A2NOC_CFG,
  209. SM7150_SLAVE_QDSS_CFG,
  210. SM7150_SLAVE_CAMERA_RT_THROTTLE_CFG,
  211. SM7150_SLAVE_DISPLAY_CFG,
  212. SM7150_SLAVE_PCIE_CFG,
  213. SM7150_SLAVE_DISPLAY_THROTTLE_CFG,
  214. SM7150_SLAVE_TCSR,
  215. SM7150_SLAVE_VENUS_CVP_THROTTLE_CFG,
  216. SM7150_SLAVE_CNOC_DDRSS,
  217. SM7150_SLAVE_AHB2PHY_NORTH,
  218. SM7150_SLAVE_SNOC_CFG,
  219. SM7150_SLAVE_GRAPHICS_3D_CFG,
  220. SM7150_SLAVE_VENUS_CFG,
  221. SM7150_SLAVE_TSIF,
  222. SM7150_SLAVE_CDSP_CFG,
  223. SM7150_SLAVE_CLK_CTL,
  224. SM7150_SLAVE_AOP,
  225. SM7150_SLAVE_QUP_1,
  226. SM7150_SLAVE_AHB2PHY_SOUTH,
  227. SM7150_SLAVE_SERVICE_CNOC,
  228. SM7150_SLAVE_AHB2PHY_WEST,
  229. SM7150_SLAVE_USB3,
  230. SM7150_SLAVE_VENUS_THROTTLE_CFG,
  231. SM7150_SLAVE_IPA_CFG,
  232. SM7150_SLAVE_RBCPR_CX_CFG,
  233. SM7150_SLAVE_TLMM_WEST,
  234. SM7150_SLAVE_A1NOC_CFG,
  235. SM7150_SLAVE_AOSS,
  236. SM7150_SLAVE_PRNG,
  237. SM7150_SLAVE_VSENSE_CTRL_CFG,
  238. SM7150_SLAVE_EMMC_CFG,
  239. SM7150_SLAVE_SPDM_WRAPPER,
  240. SM7150_SLAVE_CRYPTO_0_CFG,
  241. SM7150_SLAVE_PIMEM_CFG,
  242. SM7150_SLAVE_TLMM_NORTH,
  243. SM7150_SLAVE_RBCPR_MX_CFG,
  244. SM7150_SLAVE_IMEM_CFG
  245. },
  246. };
  247. static struct qcom_icc_node xm_qdss_dap = {
  248. .name = "xm_qdss_dap",
  249. .id = SM7150_MASTER_QDSS_DAP,
  250. .channels = 1,
  251. .buswidth = 8,
  252. .num_links = 48,
  253. .links = { SM7150_SLAVE_TLMM_SOUTH,
  254. SM7150_SLAVE_CAMERA_CFG,
  255. SM7150_SLAVE_SDCC_4,
  256. SM7150_SLAVE_SDCC_2,
  257. SM7150_SLAVE_CNOC_MNOC_CFG,
  258. SM7150_SLAVE_UFS_MEM_CFG,
  259. SM7150_SLAVE_QUP_0,
  260. SM7150_SLAVE_GLM,
  261. SM7150_SLAVE_PDM,
  262. SM7150_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  263. SM7150_SLAVE_A2NOC_CFG,
  264. SM7150_SLAVE_QDSS_CFG,
  265. SM7150_SLAVE_CAMERA_RT_THROTTLE_CFG,
  266. SM7150_SLAVE_DISPLAY_CFG,
  267. SM7150_SLAVE_PCIE_CFG,
  268. SM7150_SLAVE_DISPLAY_THROTTLE_CFG,
  269. SM7150_SLAVE_TCSR,
  270. SM7150_SLAVE_VENUS_CVP_THROTTLE_CFG,
  271. SM7150_SLAVE_CNOC_DDRSS,
  272. SM7150_SLAVE_CNOC_A2NOC,
  273. SM7150_SLAVE_AHB2PHY_NORTH,
  274. SM7150_SLAVE_SNOC_CFG,
  275. SM7150_SLAVE_GRAPHICS_3D_CFG,
  276. SM7150_SLAVE_VENUS_CFG,
  277. SM7150_SLAVE_TSIF,
  278. SM7150_SLAVE_CDSP_CFG,
  279. SM7150_SLAVE_CLK_CTL,
  280. SM7150_SLAVE_AOP,
  281. SM7150_SLAVE_QUP_1,
  282. SM7150_SLAVE_AHB2PHY_SOUTH,
  283. SM7150_SLAVE_SERVICE_CNOC,
  284. SM7150_SLAVE_AHB2PHY_WEST,
  285. SM7150_SLAVE_USB3,
  286. SM7150_SLAVE_VENUS_THROTTLE_CFG,
  287. SM7150_SLAVE_IPA_CFG,
  288. SM7150_SLAVE_RBCPR_CX_CFG,
  289. SM7150_SLAVE_TLMM_WEST,
  290. SM7150_SLAVE_A1NOC_CFG,
  291. SM7150_SLAVE_AOSS,
  292. SM7150_SLAVE_PRNG,
  293. SM7150_SLAVE_VSENSE_CTRL_CFG,
  294. SM7150_SLAVE_EMMC_CFG,
  295. SM7150_SLAVE_SPDM_WRAPPER,
  296. SM7150_SLAVE_CRYPTO_0_CFG,
  297. SM7150_SLAVE_PIMEM_CFG,
  298. SM7150_SLAVE_TLMM_NORTH,
  299. SM7150_SLAVE_RBCPR_MX_CFG,
  300. SM7150_SLAVE_IMEM_CFG
  301. },
  302. };
  303. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  304. .name = "qhm_cnoc_dc_noc",
  305. .id = SM7150_MASTER_CNOC_DC_NOC,
  306. .channels = 1,
  307. .buswidth = 4,
  308. .num_links = 2,
  309. .links = { SM7150_SLAVE_LLCC_CFG,
  310. SM7150_SLAVE_GEM_NOC_CFG
  311. },
  312. };
  313. static struct qcom_icc_node acm_apps = {
  314. .name = "acm_apps",
  315. .id = SM7150_MASTER_AMPSS_M0,
  316. .channels = 1,
  317. .buswidth = 16,
  318. .num_links = 2,
  319. .links = { SM7150_SLAVE_LLCC,
  320. SM7150_SLAVE_GEM_NOC_SNOC
  321. },
  322. };
  323. static struct qcom_icc_node acm_sys_tcu = {
  324. .name = "acm_sys_tcu",
  325. .id = SM7150_MASTER_SYS_TCU,
  326. .channels = 1,
  327. .buswidth = 8,
  328. .num_links = 2,
  329. .links = { SM7150_SLAVE_LLCC,
  330. SM7150_SLAVE_GEM_NOC_SNOC
  331. },
  332. };
  333. static struct qcom_icc_node qhm_gemnoc_cfg = {
  334. .name = "qhm_gemnoc_cfg",
  335. .id = SM7150_MASTER_GEM_NOC_CFG,
  336. .channels = 1,
  337. .buswidth = 4,
  338. .num_links = 2,
  339. .links = { SM7150_SLAVE_SERVICE_GEM_NOC,
  340. SM7150_SLAVE_MSS_PROC_MS_MPU_CFG
  341. },
  342. };
  343. static struct qcom_icc_node qnm_cmpnoc = {
  344. .name = "qnm_cmpnoc",
  345. .id = SM7150_MASTER_COMPUTE_NOC,
  346. .channels = 1,
  347. .buswidth = 32,
  348. .num_links = 2,
  349. .links = { SM7150_SLAVE_LLCC,
  350. SM7150_SLAVE_GEM_NOC_SNOC
  351. },
  352. };
  353. static struct qcom_icc_node qnm_mnoc_hf = {
  354. .name = "qnm_mnoc_hf",
  355. .id = SM7150_MASTER_MNOC_HF_MEM_NOC,
  356. .channels = 2,
  357. .buswidth = 32,
  358. .num_links = 1,
  359. .links = { SM7150_SLAVE_LLCC },
  360. };
  361. static struct qcom_icc_node qnm_mnoc_sf = {
  362. .name = "qnm_mnoc_sf",
  363. .id = SM7150_MASTER_MNOC_SF_MEM_NOC,
  364. .channels = 1,
  365. .buswidth = 32,
  366. .num_links = 2,
  367. .links = { SM7150_SLAVE_LLCC,
  368. SM7150_SLAVE_GEM_NOC_SNOC
  369. },
  370. };
  371. static struct qcom_icc_node qnm_pcie = {
  372. .name = "qnm_pcie",
  373. .id = SM7150_MASTER_GEM_NOC_PCIE_SNOC,
  374. .channels = 1,
  375. .buswidth = 8,
  376. .num_links = 2,
  377. .links = { SM7150_SLAVE_LLCC,
  378. SM7150_SLAVE_GEM_NOC_SNOC
  379. },
  380. };
  381. static struct qcom_icc_node qnm_snoc_gc = {
  382. .name = "qnm_snoc_gc",
  383. .id = SM7150_MASTER_SNOC_GC_MEM_NOC,
  384. .channels = 1,
  385. .buswidth = 8,
  386. .num_links = 1,
  387. .links = { SM7150_SLAVE_LLCC },
  388. };
  389. static struct qcom_icc_node qnm_snoc_sf = {
  390. .name = "qnm_snoc_sf",
  391. .id = SM7150_MASTER_SNOC_SF_MEM_NOC,
  392. .channels = 1,
  393. .buswidth = 16,
  394. .num_links = 1,
  395. .links = { SM7150_SLAVE_LLCC },
  396. };
  397. static struct qcom_icc_node qxm_gpu = {
  398. .name = "qxm_gpu",
  399. .id = SM7150_MASTER_GRAPHICS_3D,
  400. .channels = 2,
  401. .buswidth = 32,
  402. .num_links = 2,
  403. .links = { SM7150_SLAVE_LLCC,
  404. SM7150_SLAVE_GEM_NOC_SNOC
  405. },
  406. };
  407. static struct qcom_icc_node llcc_mc = {
  408. .name = "llcc_mc",
  409. .id = SM7150_MASTER_LLCC,
  410. .channels = 2,
  411. .buswidth = 4,
  412. .num_links = 1,
  413. .links = { SM7150_SLAVE_EBI_CH0 },
  414. };
  415. static struct qcom_icc_node qhm_mnoc_cfg = {
  416. .name = "qhm_mnoc_cfg",
  417. .id = SM7150_MASTER_CNOC_MNOC_CFG,
  418. .channels = 1,
  419. .buswidth = 4,
  420. .num_links = 1,
  421. .links = { SM7150_SLAVE_SERVICE_MNOC },
  422. };
  423. static struct qcom_icc_node qxm_camnoc_hf = {
  424. .name = "qxm_camnoc_hf",
  425. .id = SM7150_MASTER_CAMNOC_HF0,
  426. .channels = 2,
  427. .buswidth = 32,
  428. .num_links = 1,
  429. .links = { SM7150_SLAVE_MNOC_HF_MEM_NOC },
  430. };
  431. static struct qcom_icc_node qxm_camnoc_nrt = {
  432. .name = "qxm_camnoc_nrt",
  433. .id = SM7150_MASTER_CAMNOC_NRT,
  434. .channels = 1,
  435. .buswidth = 8,
  436. .num_links = 1,
  437. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  438. };
  439. static struct qcom_icc_node qxm_camnoc_rt = {
  440. .name = "qxm_camnoc_rt",
  441. .id = SM7150_MASTER_CAMNOC_RT,
  442. .channels = 1,
  443. .buswidth = 32,
  444. .num_links = 1,
  445. .links = { SM7150_SLAVE_MNOC_HF_MEM_NOC },
  446. };
  447. static struct qcom_icc_node qxm_camnoc_sf = {
  448. .name = "qxm_camnoc_sf",
  449. .id = SM7150_MASTER_CAMNOC_SF,
  450. .channels = 1,
  451. .buswidth = 32,
  452. .num_links = 1,
  453. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  454. };
  455. static struct qcom_icc_node qxm_mdp0 = {
  456. .name = "qxm_mdp0",
  457. .id = SM7150_MASTER_MDP_PORT0,
  458. .channels = 1,
  459. .buswidth = 32,
  460. .num_links = 1,
  461. .links = { SM7150_SLAVE_MNOC_HF_MEM_NOC },
  462. };
  463. static struct qcom_icc_node qxm_mdp1 = {
  464. .name = "qxm_mdp1",
  465. .id = SM7150_MASTER_MDP_PORT1,
  466. .channels = 1,
  467. .buswidth = 32,
  468. .num_links = 1,
  469. .links = { SM7150_SLAVE_MNOC_HF_MEM_NOC },
  470. };
  471. static struct qcom_icc_node qxm_rot = {
  472. .name = "qxm_rot",
  473. .id = SM7150_MASTER_ROTATOR,
  474. .channels = 1,
  475. .buswidth = 32,
  476. .num_links = 1,
  477. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  478. };
  479. static struct qcom_icc_node qxm_venus0 = {
  480. .name = "qxm_venus0",
  481. .id = SM7150_MASTER_VIDEO_P0,
  482. .channels = 1,
  483. .buswidth = 32,
  484. .num_links = 1,
  485. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  486. };
  487. static struct qcom_icc_node qxm_venus1 = {
  488. .name = "qxm_venus1",
  489. .id = SM7150_MASTER_VIDEO_P1,
  490. .channels = 1,
  491. .buswidth = 32,
  492. .num_links = 1,
  493. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  494. };
  495. static struct qcom_icc_node qxm_venus_arm9 = {
  496. .name = "qxm_venus_arm9",
  497. .id = SM7150_MASTER_VIDEO_PROC,
  498. .channels = 1,
  499. .buswidth = 8,
  500. .num_links = 1,
  501. .links = { SM7150_SLAVE_MNOC_SF_MEM_NOC },
  502. };
  503. static struct qcom_icc_node qhm_snoc_cfg = {
  504. .name = "qhm_snoc_cfg",
  505. .id = SM7150_MASTER_SNOC_CFG,
  506. .channels = 1,
  507. .buswidth = 4,
  508. .num_links = 1,
  509. .links = { SM7150_SLAVE_SERVICE_SNOC },
  510. };
  511. static struct qcom_icc_node qnm_aggre1_noc = {
  512. .name = "qnm_aggre1_noc",
  513. .id = SM7150_A1NOC_SNOC_MAS,
  514. .channels = 1,
  515. .buswidth = 16,
  516. .num_links = 6,
  517. .links = { SM7150_SLAVE_SNOC_GEM_NOC_SF,
  518. SM7150_SLAVE_PIMEM,
  519. SM7150_SLAVE_OCIMEM,
  520. SM7150_SLAVE_APPSS,
  521. SM7150_SNOC_CNOC_SLV,
  522. SM7150_SLAVE_QDSS_STM
  523. },
  524. };
  525. static struct qcom_icc_node qnm_aggre2_noc = {
  526. .name = "qnm_aggre2_noc",
  527. .id = SM7150_A2NOC_SNOC_MAS,
  528. .channels = 1,
  529. .buswidth = 16,
  530. .num_links = 7,
  531. .links = { SM7150_SLAVE_SNOC_GEM_NOC_SF,
  532. SM7150_SLAVE_PIMEM,
  533. SM7150_SLAVE_OCIMEM,
  534. SM7150_SLAVE_APPSS,
  535. SM7150_SNOC_CNOC_SLV,
  536. SM7150_SLAVE_TCU,
  537. SM7150_SLAVE_QDSS_STM
  538. },
  539. };
  540. static struct qcom_icc_node qnm_gemnoc = {
  541. .name = "qnm_gemnoc",
  542. .id = SM7150_MASTER_GEM_NOC_SNOC,
  543. .channels = 1,
  544. .buswidth = 8,
  545. .num_links = 6,
  546. .links = { SM7150_SLAVE_PIMEM,
  547. SM7150_SLAVE_OCIMEM,
  548. SM7150_SLAVE_APPSS,
  549. SM7150_SNOC_CNOC_SLV,
  550. SM7150_SLAVE_TCU,
  551. SM7150_SLAVE_QDSS_STM
  552. },
  553. };
  554. static struct qcom_icc_node qxm_pimem = {
  555. .name = "qxm_pimem",
  556. .id = SM7150_MASTER_PIMEM,
  557. .channels = 1,
  558. .buswidth = 8,
  559. .num_links = 2,
  560. .links = { SM7150_SLAVE_SNOC_GEM_NOC_GC,
  561. SM7150_SLAVE_OCIMEM
  562. },
  563. };
  564. static struct qcom_icc_node xm_gic = {
  565. .name = "xm_gic",
  566. .id = SM7150_MASTER_GIC,
  567. .channels = 1,
  568. .buswidth = 8,
  569. .num_links = 2,
  570. .links = { SM7150_SLAVE_SNOC_GEM_NOC_GC,
  571. SM7150_SLAVE_OCIMEM
  572. },
  573. };
  574. static struct qcom_icc_node qns_a1noc_snoc = {
  575. .name = "qns_a1noc_snoc",
  576. .id = SM7150_A1NOC_SNOC_SLV,
  577. .channels = 1,
  578. .buswidth = 16,
  579. .num_links = 1,
  580. .links = { SM7150_A1NOC_SNOC_MAS },
  581. };
  582. static struct qcom_icc_node srvc_aggre1_noc = {
  583. .name = "srvc_aggre1_noc",
  584. .id = SM7150_SLAVE_SERVICE_A1NOC,
  585. .channels = 1,
  586. .buswidth = 4,
  587. };
  588. static struct qcom_icc_node qns_a2noc_snoc = {
  589. .name = "qns_a2noc_snoc",
  590. .id = SM7150_A2NOC_SNOC_SLV,
  591. .channels = 1,
  592. .buswidth = 16,
  593. .num_links = 1,
  594. .links = { SM7150_A2NOC_SNOC_MAS },
  595. };
  596. static struct qcom_icc_node qns_pcie_gemnoc = {
  597. .name = "qns_pcie_gemnoc",
  598. .id = SM7150_SLAVE_ANOC_PCIE_GEM_NOC,
  599. .channels = 1,
  600. .buswidth = 8,
  601. .num_links = 1,
  602. .links = { SM7150_MASTER_GEM_NOC_PCIE_SNOC },
  603. };
  604. static struct qcom_icc_node srvc_aggre2_noc = {
  605. .name = "srvc_aggre2_noc",
  606. .id = SM7150_SLAVE_SERVICE_A2NOC,
  607. .channels = 1,
  608. .buswidth = 4,
  609. };
  610. static struct qcom_icc_node qns_camnoc_uncomp = {
  611. .name = "qns_camnoc_uncomp",
  612. .id = SM7150_SLAVE_CAMNOC_UNCOMP,
  613. .channels = 1,
  614. .buswidth = 32,
  615. };
  616. static struct qcom_icc_node qns_cdsp_gemnoc = {
  617. .name = "qns_cdsp_gemnoc",
  618. .id = SM7150_SLAVE_CDSP_GEM_NOC,
  619. .channels = 1,
  620. .buswidth = 32,
  621. .num_links = 1,
  622. .links = { SM7150_MASTER_COMPUTE_NOC },
  623. };
  624. static struct qcom_icc_node qhs_a1_noc_cfg = {
  625. .name = "qhs_a1_noc_cfg",
  626. .id = SM7150_SLAVE_A1NOC_CFG,
  627. .channels = 1,
  628. .buswidth = 4,
  629. .num_links = 1,
  630. .links = { SM7150_MASTER_A1NOC_CFG },
  631. };
  632. static struct qcom_icc_node qhs_a2_noc_cfg = {
  633. .name = "qhs_a2_noc_cfg",
  634. .id = SM7150_SLAVE_A2NOC_CFG,
  635. .channels = 1,
  636. .buswidth = 4,
  637. .num_links = 1,
  638. .links = { SM7150_MASTER_A2NOC_CFG },
  639. };
  640. static struct qcom_icc_node qhs_ahb2phy_north = {
  641. .name = "qhs_ahb2phy_north",
  642. .id = SM7150_SLAVE_AHB2PHY_NORTH,
  643. .channels = 1,
  644. .buswidth = 4,
  645. };
  646. static struct qcom_icc_node qhs_ahb2phy_south = {
  647. .name = "qhs_ahb2phy_south",
  648. .id = SM7150_SLAVE_AHB2PHY_SOUTH,
  649. .channels = 1,
  650. .buswidth = 4,
  651. };
  652. static struct qcom_icc_node qhs_ahb2phy_west = {
  653. .name = "qhs_ahb2phy_west",
  654. .id = SM7150_SLAVE_AHB2PHY_WEST,
  655. .channels = 1,
  656. .buswidth = 4,
  657. };
  658. static struct qcom_icc_node qhs_aop = {
  659. .name = "qhs_aop",
  660. .id = SM7150_SLAVE_AOP,
  661. .channels = 1,
  662. .buswidth = 4,
  663. };
  664. static struct qcom_icc_node qhs_aoss = {
  665. .name = "qhs_aoss",
  666. .id = SM7150_SLAVE_AOSS,
  667. .channels = 1,
  668. .buswidth = 4,
  669. };
  670. static struct qcom_icc_node qhs_camera_cfg = {
  671. .name = "qhs_camera_cfg",
  672. .id = SM7150_SLAVE_CAMERA_CFG,
  673. .channels = 1,
  674. .buswidth = 4,
  675. };
  676. static struct qcom_icc_node qhs_camera_nrt_thrott_cfg = {
  677. .name = "qhs_camera_nrt_thrott_cfg",
  678. .id = SM7150_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  679. .channels = 1,
  680. .buswidth = 4,
  681. };
  682. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  683. .name = "qhs_camera_rt_throttle_cfg",
  684. .id = SM7150_SLAVE_CAMERA_RT_THROTTLE_CFG,
  685. .channels = 1,
  686. .buswidth = 4,
  687. };
  688. static struct qcom_icc_node qhs_clk_ctl = {
  689. .name = "qhs_clk_ctl",
  690. .id = SM7150_SLAVE_CLK_CTL,
  691. .channels = 1,
  692. .buswidth = 4,
  693. };
  694. static struct qcom_icc_node qhs_compute_dsp_cfg = {
  695. .name = "qhs_compute_dsp_cfg",
  696. .id = SM7150_SLAVE_CDSP_CFG,
  697. .channels = 1,
  698. .buswidth = 4,
  699. };
  700. static struct qcom_icc_node qhs_cpr_cx = {
  701. .name = "qhs_cpr_cx",
  702. .id = SM7150_SLAVE_RBCPR_CX_CFG,
  703. .channels = 1,
  704. .buswidth = 4,
  705. };
  706. static struct qcom_icc_node qhs_cpr_mx = {
  707. .name = "qhs_cpr_mx",
  708. .id = SM7150_SLAVE_RBCPR_MX_CFG,
  709. .channels = 1,
  710. .buswidth = 4,
  711. };
  712. static struct qcom_icc_node qhs_crypto0_cfg = {
  713. .name = "qhs_crypto0_cfg",
  714. .id = SM7150_SLAVE_CRYPTO_0_CFG,
  715. .channels = 1,
  716. .buswidth = 4,
  717. };
  718. static struct qcom_icc_node qhs_ddrss_cfg = {
  719. .name = "qhs_ddrss_cfg",
  720. .id = SM7150_SLAVE_CNOC_DDRSS,
  721. .channels = 1,
  722. .buswidth = 4,
  723. .num_links = 1,
  724. .links = { SM7150_MASTER_CNOC_DC_NOC },
  725. };
  726. static struct qcom_icc_node qhs_display_cfg = {
  727. .name = "qhs_display_cfg",
  728. .id = SM7150_SLAVE_DISPLAY_CFG,
  729. .channels = 1,
  730. .buswidth = 4,
  731. };
  732. static struct qcom_icc_node qhs_display_throttle_cfg = {
  733. .name = "qhs_display_throttle_cfg",
  734. .id = SM7150_SLAVE_DISPLAY_THROTTLE_CFG,
  735. .channels = 1,
  736. .buswidth = 4,
  737. };
  738. static struct qcom_icc_node qhs_emmc_cfg = {
  739. .name = "qhs_emmc_cfg",
  740. .id = SM7150_SLAVE_EMMC_CFG,
  741. .channels = 1,
  742. .buswidth = 4,
  743. };
  744. static struct qcom_icc_node qhs_glm = {
  745. .name = "qhs_glm",
  746. .id = SM7150_SLAVE_GLM,
  747. .channels = 1,
  748. .buswidth = 4,
  749. };
  750. static struct qcom_icc_node qhs_gpuss_cfg = {
  751. .name = "qhs_gpuss_cfg",
  752. .id = SM7150_SLAVE_GRAPHICS_3D_CFG,
  753. .channels = 1,
  754. .buswidth = 8,
  755. };
  756. static struct qcom_icc_node qhs_imem_cfg = {
  757. .name = "qhs_imem_cfg",
  758. .id = SM7150_SLAVE_IMEM_CFG,
  759. .channels = 1,
  760. .buswidth = 4,
  761. };
  762. static struct qcom_icc_node qhs_ipa = {
  763. .name = "qhs_ipa",
  764. .id = SM7150_SLAVE_IPA_CFG,
  765. .channels = 1,
  766. .buswidth = 4,
  767. };
  768. static struct qcom_icc_node qhs_mnoc_cfg = {
  769. .name = "qhs_mnoc_cfg",
  770. .id = SM7150_SLAVE_CNOC_MNOC_CFG,
  771. .channels = 1,
  772. .buswidth = 4,
  773. .num_links = 1,
  774. .links = { SM7150_MASTER_CNOC_MNOC_CFG },
  775. };
  776. static struct qcom_icc_node qhs_pcie_cfg = {
  777. .name = "qhs_pcie_cfg",
  778. .id = SM7150_SLAVE_PCIE_CFG,
  779. .channels = 1,
  780. .buswidth = 4,
  781. };
  782. static struct qcom_icc_node qhs_pdm = {
  783. .name = "qhs_pdm",
  784. .id = SM7150_SLAVE_PDM,
  785. .channels = 1,
  786. .buswidth = 4,
  787. };
  788. static struct qcom_icc_node qhs_pimem_cfg = {
  789. .name = "qhs_pimem_cfg",
  790. .id = SM7150_SLAVE_PIMEM_CFG,
  791. .channels = 1,
  792. .buswidth = 4,
  793. };
  794. static struct qcom_icc_node qhs_prng = {
  795. .name = "qhs_prng",
  796. .id = SM7150_SLAVE_PRNG,
  797. .channels = 1,
  798. .buswidth = 4,
  799. };
  800. static struct qcom_icc_node qhs_qdss_cfg = {
  801. .name = "qhs_qdss_cfg",
  802. .id = SM7150_SLAVE_QDSS_CFG,
  803. .channels = 1,
  804. .buswidth = 4,
  805. };
  806. static struct qcom_icc_node qhs_qupv3_center = {
  807. .name = "qhs_qupv3_center",
  808. .id = SM7150_SLAVE_QUP_0,
  809. .channels = 1,
  810. .buswidth = 4,
  811. };
  812. static struct qcom_icc_node qhs_qupv3_north = {
  813. .name = "qhs_qupv3_north",
  814. .id = SM7150_SLAVE_QUP_1,
  815. .channels = 1,
  816. .buswidth = 4,
  817. };
  818. static struct qcom_icc_node qhs_sdc2 = {
  819. .name = "qhs_sdc2",
  820. .id = SM7150_SLAVE_SDCC_2,
  821. .channels = 1,
  822. .buswidth = 4,
  823. };
  824. static struct qcom_icc_node qhs_sdc4 = {
  825. .name = "qhs_sdc4",
  826. .id = SM7150_SLAVE_SDCC_4,
  827. .channels = 1,
  828. .buswidth = 4,
  829. };
  830. static struct qcom_icc_node qhs_snoc_cfg = {
  831. .name = "qhs_snoc_cfg",
  832. .id = SM7150_SLAVE_SNOC_CFG,
  833. .channels = 1,
  834. .buswidth = 4,
  835. .num_links = 1,
  836. .links = { SM7150_MASTER_SNOC_CFG },
  837. };
  838. static struct qcom_icc_node qhs_spdm = {
  839. .name = "qhs_spdm",
  840. .id = SM7150_SLAVE_SPDM_WRAPPER,
  841. .channels = 1,
  842. .buswidth = 4,
  843. };
  844. static struct qcom_icc_node qhs_tcsr = {
  845. .name = "qhs_tcsr",
  846. .id = SM7150_SLAVE_TCSR,
  847. .channels = 1,
  848. .buswidth = 4,
  849. };
  850. static struct qcom_icc_node qhs_tlmm_north = {
  851. .name = "qhs_tlmm_north",
  852. .id = SM7150_SLAVE_TLMM_NORTH,
  853. .channels = 1,
  854. .buswidth = 4,
  855. };
  856. static struct qcom_icc_node qhs_tlmm_south = {
  857. .name = "qhs_tlmm_south",
  858. .id = SM7150_SLAVE_TLMM_SOUTH,
  859. .channels = 1,
  860. .buswidth = 4,
  861. };
  862. static struct qcom_icc_node qhs_tlmm_west = {
  863. .name = "qhs_tlmm_west",
  864. .id = SM7150_SLAVE_TLMM_WEST,
  865. .channels = 1,
  866. .buswidth = 4,
  867. };
  868. static struct qcom_icc_node qhs_tsif = {
  869. .name = "qhs_tsif",
  870. .id = SM7150_SLAVE_TSIF,
  871. .channels = 1,
  872. .buswidth = 4,
  873. };
  874. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  875. .name = "qhs_ufs_mem_cfg",
  876. .id = SM7150_SLAVE_UFS_MEM_CFG,
  877. .channels = 1,
  878. .buswidth = 4,
  879. };
  880. static struct qcom_icc_node qhs_usb3_0 = {
  881. .name = "qhs_usb3_0",
  882. .id = SM7150_SLAVE_USB3,
  883. .channels = 1,
  884. .buswidth = 4,
  885. };
  886. static struct qcom_icc_node qhs_venus_cfg = {
  887. .name = "qhs_venus_cfg",
  888. .id = SM7150_SLAVE_VENUS_CFG,
  889. .channels = 1,
  890. .buswidth = 4,
  891. };
  892. static struct qcom_icc_node qhs_venus_cvp_throttle_cfg = {
  893. .name = "qhs_venus_cvp_throttle_cfg",
  894. .id = SM7150_SLAVE_VENUS_CVP_THROTTLE_CFG,
  895. .channels = 1,
  896. .buswidth = 4,
  897. };
  898. static struct qcom_icc_node qhs_venus_throttle_cfg = {
  899. .name = "qhs_venus_throttle_cfg",
  900. .id = SM7150_SLAVE_VENUS_THROTTLE_CFG,
  901. .channels = 1,
  902. .buswidth = 4,
  903. };
  904. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  905. .name = "qhs_vsense_ctrl_cfg",
  906. .id = SM7150_SLAVE_VSENSE_CTRL_CFG,
  907. .channels = 1,
  908. .buswidth = 4,
  909. };
  910. static struct qcom_icc_node qns_cnoc_a2noc = {
  911. .name = "qns_cnoc_a2noc",
  912. .id = SM7150_SLAVE_CNOC_A2NOC,
  913. .channels = 1,
  914. .buswidth = 8,
  915. .num_links = 1,
  916. .links = { SM7150_MASTER_CNOC_A2NOC },
  917. };
  918. static struct qcom_icc_node srvc_cnoc = {
  919. .name = "srvc_cnoc",
  920. .id = SM7150_SLAVE_SERVICE_CNOC,
  921. .channels = 1,
  922. .buswidth = 4,
  923. };
  924. static struct qcom_icc_node qhs_gemnoc = {
  925. .name = "qhs_gemnoc",
  926. .id = SM7150_SLAVE_GEM_NOC_CFG,
  927. .channels = 1,
  928. .buswidth = 4,
  929. .num_links = 1,
  930. .links = { SM7150_MASTER_GEM_NOC_CFG },
  931. };
  932. static struct qcom_icc_node qhs_llcc = {
  933. .name = "qhs_llcc",
  934. .id = SM7150_SLAVE_LLCC_CFG,
  935. .channels = 1,
  936. .buswidth = 4,
  937. };
  938. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  939. .name = "qhs_mdsp_ms_mpu_cfg",
  940. .id = SM7150_SLAVE_MSS_PROC_MS_MPU_CFG,
  941. .channels = 1,
  942. .buswidth = 4,
  943. };
  944. static struct qcom_icc_node qns_gem_noc_snoc = {
  945. .name = "qns_gem_noc_snoc",
  946. .id = SM7150_SLAVE_GEM_NOC_SNOC,
  947. .channels = 1,
  948. .buswidth = 8,
  949. .num_links = 1,
  950. .links = { SM7150_MASTER_GEM_NOC_SNOC },
  951. };
  952. static struct qcom_icc_node qns_llcc = {
  953. .name = "qns_llcc",
  954. .id = SM7150_SLAVE_LLCC,
  955. .channels = 2,
  956. .buswidth = 16,
  957. .num_links = 1,
  958. .links = { SM7150_MASTER_LLCC },
  959. };
  960. static struct qcom_icc_node srvc_gemnoc = {
  961. .name = "srvc_gemnoc",
  962. .id = SM7150_SLAVE_SERVICE_GEM_NOC,
  963. .channels = 1,
  964. .buswidth = 4,
  965. };
  966. static struct qcom_icc_node ebi = {
  967. .name = "ebi",
  968. .id = SM7150_SLAVE_EBI_CH0,
  969. .channels = 2,
  970. .buswidth = 4,
  971. };
  972. static struct qcom_icc_node qns2_mem_noc = {
  973. .name = "qns2_mem_noc",
  974. .id = SM7150_SLAVE_MNOC_SF_MEM_NOC,
  975. .channels = 1,
  976. .buswidth = 32,
  977. .num_links = 1,
  978. .links = { SM7150_MASTER_MNOC_SF_MEM_NOC },
  979. };
  980. static struct qcom_icc_node qns_mem_noc_hf = {
  981. .name = "qns_mem_noc_hf",
  982. .id = SM7150_SLAVE_MNOC_HF_MEM_NOC,
  983. .channels = 2,
  984. .buswidth = 32,
  985. .num_links = 1,
  986. .links = { SM7150_MASTER_MNOC_HF_MEM_NOC },
  987. };
  988. static struct qcom_icc_node srvc_mnoc = {
  989. .name = "srvc_mnoc",
  990. .id = SM7150_SLAVE_SERVICE_MNOC,
  991. .channels = 1,
  992. .buswidth = 4,
  993. };
  994. static struct qcom_icc_node qhs_apss = {
  995. .name = "qhs_apss",
  996. .id = SM7150_SLAVE_APPSS,
  997. .channels = 1,
  998. .buswidth = 8,
  999. };
  1000. static struct qcom_icc_node qns_cnoc = {
  1001. .name = "qns_cnoc",
  1002. .id = SM7150_SNOC_CNOC_SLV,
  1003. .channels = 1,
  1004. .buswidth = 8,
  1005. .num_links = 1,
  1006. .links = { SM7150_SNOC_CNOC_MAS },
  1007. };
  1008. static struct qcom_icc_node qns_gemnoc_gc = {
  1009. .name = "qns_gemnoc_gc",
  1010. .id = SM7150_SLAVE_SNOC_GEM_NOC_GC,
  1011. .channels = 1,
  1012. .buswidth = 8,
  1013. .num_links = 1,
  1014. .links = { SM7150_MASTER_SNOC_GC_MEM_NOC },
  1015. };
  1016. static struct qcom_icc_node qns_gemnoc_sf = {
  1017. .name = "qns_gemnoc_sf",
  1018. .id = SM7150_SLAVE_SNOC_GEM_NOC_SF,
  1019. .channels = 1,
  1020. .buswidth = 16,
  1021. .num_links = 1,
  1022. .links = { SM7150_MASTER_SNOC_SF_MEM_NOC },
  1023. };
  1024. static struct qcom_icc_node qxs_imem = {
  1025. .name = "qxs_imem",
  1026. .id = SM7150_SLAVE_OCIMEM,
  1027. .channels = 1,
  1028. .buswidth = 8,
  1029. };
  1030. static struct qcom_icc_node qxs_pimem = {
  1031. .name = "qxs_pimem",
  1032. .id = SM7150_SLAVE_PIMEM,
  1033. .channels = 1,
  1034. .buswidth = 8,
  1035. };
  1036. static struct qcom_icc_node srvc_snoc = {
  1037. .name = "srvc_snoc",
  1038. .id = SM7150_SLAVE_SERVICE_SNOC,
  1039. .channels = 1,
  1040. .buswidth = 4,
  1041. };
  1042. static struct qcom_icc_node xs_qdss_stm = {
  1043. .name = "xs_qdss_stm",
  1044. .id = SM7150_SLAVE_QDSS_STM,
  1045. .channels = 1,
  1046. .buswidth = 4,
  1047. };
  1048. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1049. .name = "xs_sys_tcu_cfg",
  1050. .id = SM7150_SLAVE_TCU,
  1051. .channels = 1,
  1052. .buswidth = 8,
  1053. };
  1054. static struct qcom_icc_bcm bcm_acv = {
  1055. .name = "ACV",
  1056. .enable_mask = BIT(3),
  1057. .keepalive = false,
  1058. .num_nodes = 1,
  1059. .nodes = { &ebi },
  1060. };
  1061. static struct qcom_icc_bcm bcm_mc0 = {
  1062. .name = "MC0",
  1063. .keepalive = true,
  1064. .num_nodes = 1,
  1065. .nodes = { &ebi },
  1066. };
  1067. static struct qcom_icc_bcm bcm_sh0 = {
  1068. .name = "SH0",
  1069. .keepalive = true,
  1070. .num_nodes = 1,
  1071. .nodes = { &qns_llcc },
  1072. };
  1073. static struct qcom_icc_bcm bcm_mm0 = {
  1074. .name = "MM0",
  1075. .keepalive = true,
  1076. .num_nodes = 1,
  1077. .nodes = { &qns_mem_noc_hf },
  1078. };
  1079. static struct qcom_icc_bcm bcm_mm1 = {
  1080. .name = "MM1",
  1081. .keepalive = true,
  1082. .num_nodes = 8,
  1083. .nodes = { &qxm_camnoc_hf0_uncomp,
  1084. &qxm_camnoc_rt_uncomp,
  1085. &qxm_camnoc_sf_uncomp,
  1086. &qxm_camnoc_nrt_uncomp,
  1087. &qxm_camnoc_hf,
  1088. &qxm_camnoc_rt,
  1089. &qxm_mdp0,
  1090. &qxm_mdp1
  1091. },
  1092. };
  1093. static struct qcom_icc_bcm bcm_sh2 = {
  1094. .name = "SH2",
  1095. .keepalive = false,
  1096. .num_nodes = 1,
  1097. .nodes = { &qns_gem_noc_snoc },
  1098. };
  1099. static struct qcom_icc_bcm bcm_sh3 = {
  1100. .name = "SH3",
  1101. .keepalive = false,
  1102. .num_nodes = 1,
  1103. .nodes = { &acm_sys_tcu },
  1104. };
  1105. static struct qcom_icc_bcm bcm_mm2 = {
  1106. .name = "MM2",
  1107. .keepalive = false,
  1108. .num_nodes = 2,
  1109. .nodes = { &qxm_camnoc_nrt,
  1110. &qns2_mem_noc
  1111. },
  1112. };
  1113. static struct qcom_icc_bcm bcm_mm3 = {
  1114. .name = "MM3",
  1115. .keepalive = false,
  1116. .num_nodes = 5,
  1117. .nodes = { &qxm_camnoc_sf,
  1118. &qxm_rot,
  1119. &qxm_venus0,
  1120. &qxm_venus1,
  1121. &qxm_venus_arm9
  1122. },
  1123. };
  1124. static struct qcom_icc_bcm bcm_sh5 = {
  1125. .name = "SH5",
  1126. .keepalive = false,
  1127. .num_nodes = 1,
  1128. .nodes = { &acm_apps },
  1129. };
  1130. static struct qcom_icc_bcm bcm_sn0 = {
  1131. .name = "SN0",
  1132. .keepalive = true,
  1133. .num_nodes = 1,
  1134. .nodes = { &qns_gemnoc_sf },
  1135. };
  1136. static struct qcom_icc_bcm bcm_sh8 = {
  1137. .name = "SH8",
  1138. .keepalive = false,
  1139. .num_nodes = 1,
  1140. .nodes = { &qns_cdsp_gemnoc },
  1141. };
  1142. static struct qcom_icc_bcm bcm_sh10 = {
  1143. .name = "SH10",
  1144. .keepalive = false,
  1145. .num_nodes = 1,
  1146. .nodes = { &qnm_npu },
  1147. };
  1148. static struct qcom_icc_bcm bcm_ce0 = {
  1149. .name = "CE0",
  1150. .keepalive = false,
  1151. .num_nodes = 1,
  1152. .nodes = { &qxm_crypto },
  1153. };
  1154. static struct qcom_icc_bcm bcm_cn0 = {
  1155. .name = "CN0",
  1156. .keepalive = true,
  1157. .num_nodes = 54,
  1158. .nodes = { &qhm_tsif,
  1159. &xm_emmc,
  1160. &xm_sdc2,
  1161. &xm_sdc4,
  1162. &qhm_spdm,
  1163. &qnm_snoc,
  1164. &qhs_a1_noc_cfg,
  1165. &qhs_a2_noc_cfg,
  1166. &qhs_ahb2phy_north,
  1167. &qhs_ahb2phy_south,
  1168. &qhs_ahb2phy_west,
  1169. &qhs_aop,
  1170. &qhs_aoss,
  1171. &qhs_camera_cfg,
  1172. &qhs_camera_nrt_thrott_cfg,
  1173. &qhs_camera_rt_throttle_cfg,
  1174. &qhs_clk_ctl,
  1175. &qhs_compute_dsp_cfg,
  1176. &qhs_cpr_cx,
  1177. &qhs_cpr_mx,
  1178. &qhs_crypto0_cfg,
  1179. &qhs_ddrss_cfg,
  1180. &qhs_display_cfg,
  1181. &qhs_display_throttle_cfg,
  1182. &qhs_emmc_cfg,
  1183. &qhs_glm,
  1184. &qhs_gpuss_cfg,
  1185. &qhs_imem_cfg,
  1186. &qhs_ipa,
  1187. &qhs_mnoc_cfg,
  1188. &qhs_pcie_cfg,
  1189. &qhs_pdm,
  1190. &qhs_pimem_cfg,
  1191. &qhs_prng,
  1192. &qhs_qdss_cfg,
  1193. &qhs_qupv3_center,
  1194. &qhs_qupv3_north,
  1195. &qhs_sdc2,
  1196. &qhs_sdc4,
  1197. &qhs_snoc_cfg,
  1198. &qhs_spdm,
  1199. &qhs_tcsr,
  1200. &qhs_tlmm_north,
  1201. &qhs_tlmm_south,
  1202. &qhs_tlmm_west,
  1203. &qhs_tsif,
  1204. &qhs_ufs_mem_cfg,
  1205. &qhs_usb3_0,
  1206. &qhs_venus_cfg,
  1207. &qhs_venus_cvp_throttle_cfg,
  1208. &qhs_venus_throttle_cfg,
  1209. &qhs_vsense_ctrl_cfg,
  1210. &qns_cnoc_a2noc,
  1211. &srvc_cnoc
  1212. },
  1213. };
  1214. static struct qcom_icc_bcm bcm_qup0 = {
  1215. .name = "QUP0",
  1216. .keepalive = false,
  1217. .num_nodes = 2,
  1218. .nodes = { &qhm_qup_center,
  1219. &qhm_qup_north
  1220. },
  1221. };
  1222. static struct qcom_icc_bcm bcm_sn1 = {
  1223. .name = "SN1",
  1224. .keepalive = false,
  1225. .num_nodes = 1,
  1226. .nodes = { &qxs_imem },
  1227. };
  1228. static struct qcom_icc_bcm bcm_sn2 = {
  1229. .name = "SN2",
  1230. .keepalive = false,
  1231. .num_nodes = 1,
  1232. .nodes = { &qns_gemnoc_gc },
  1233. };
  1234. static struct qcom_icc_bcm bcm_sn4 = {
  1235. .name = "SN4",
  1236. .keepalive = false,
  1237. .num_nodes = 1,
  1238. .nodes = { &qxs_pimem },
  1239. };
  1240. static struct qcom_icc_bcm bcm_sn9 = {
  1241. .name = "SN9",
  1242. .keepalive = false,
  1243. .num_nodes = 2,
  1244. .nodes = { &qnm_aggre1_noc,
  1245. &qns_a1noc_snoc
  1246. },
  1247. };
  1248. static struct qcom_icc_bcm bcm_sn11 = {
  1249. .name = "SN11",
  1250. .keepalive = false,
  1251. .num_nodes = 2,
  1252. .nodes = { &qnm_aggre2_noc,
  1253. &qns_a2noc_snoc
  1254. },
  1255. };
  1256. static struct qcom_icc_bcm bcm_sn12 = {
  1257. .name = "SN12",
  1258. .keepalive = false,
  1259. .num_nodes = 2,
  1260. .nodes = { &qxm_pimem,
  1261. &xm_gic
  1262. },
  1263. };
  1264. static struct qcom_icc_bcm bcm_sn14 = {
  1265. .name = "SN14",
  1266. .keepalive = false,
  1267. .num_nodes = 1,
  1268. .nodes = { &qns_pcie_gemnoc },
  1269. };
  1270. static struct qcom_icc_bcm bcm_sn15 = {
  1271. .name = "SN15",
  1272. .keepalive = false,
  1273. .num_nodes = 1,
  1274. .nodes = { &qnm_gemnoc },
  1275. };
  1276. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1277. &bcm_cn0,
  1278. &bcm_qup0,
  1279. &bcm_sn9,
  1280. };
  1281. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1282. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1283. [MASTER_QUP_0] = &qhm_qup_center,
  1284. [MASTER_TSIF] = &qhm_tsif,
  1285. [MASTER_EMMC] = &xm_emmc,
  1286. [MASTER_SDCC_2] = &xm_sdc2,
  1287. [MASTER_SDCC_4] = &xm_sdc4,
  1288. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1289. [A1NOC_SNOC_SLV] = &qns_a1noc_snoc,
  1290. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1291. };
  1292. static const struct qcom_icc_desc sm7150_aggre1_noc = {
  1293. .nodes = aggre1_noc_nodes,
  1294. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1295. .bcms = aggre1_noc_bcms,
  1296. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1297. };
  1298. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1299. &bcm_ce0,
  1300. &bcm_qup0,
  1301. &bcm_sn11,
  1302. &bcm_sn14,
  1303. };
  1304. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1305. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1306. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1307. [MASTER_QUP_1] = &qhm_qup_north,
  1308. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1309. [MASTER_CRYPTO_CORE_0] = &qxm_crypto,
  1310. [MASTER_IPA] = &qxm_ipa,
  1311. [MASTER_PCIE] = &xm_pcie3_0,
  1312. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1313. [MASTER_USB3] = &xm_usb3_0,
  1314. [A2NOC_SNOC_SLV] = &qns_a2noc_snoc,
  1315. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_gemnoc,
  1316. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1317. };
  1318. static const struct qcom_icc_desc sm7150_aggre2_noc = {
  1319. .nodes = aggre2_noc_nodes,
  1320. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1321. .bcms = aggre2_noc_bcms,
  1322. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1323. };
  1324. static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
  1325. &bcm_mm1,
  1326. };
  1327. static struct qcom_icc_node * const camnoc_virt_nodes[] = {
  1328. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1329. [MASTER_CAMNOC_RT_UNCOMP] = &qxm_camnoc_rt_uncomp,
  1330. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1331. [MASTER_CAMNOC_NRT_UNCOMP] = &qxm_camnoc_nrt_uncomp,
  1332. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1333. };
  1334. static const struct qcom_icc_desc sm7150_camnoc_virt = {
  1335. .nodes = camnoc_virt_nodes,
  1336. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1337. .bcms = camnoc_virt_bcms,
  1338. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1339. };
  1340. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1341. &bcm_sh10,
  1342. &bcm_sh8,
  1343. };
  1344. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1345. [MASTER_NPU] = &qnm_npu,
  1346. [SLAVE_CDSP_GEM_NOC] = &qns_cdsp_gemnoc,
  1347. };
  1348. static const struct qcom_icc_desc sm7150_compute_noc = {
  1349. .nodes = compute_noc_nodes,
  1350. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1351. .bcms = compute_noc_bcms,
  1352. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1353. };
  1354. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1355. &bcm_cn0,
  1356. };
  1357. static struct qcom_icc_node * const config_noc_nodes[] = {
  1358. [MASTER_SPDM] = &qhm_spdm,
  1359. [SNOC_CNOC_MAS] = &qnm_snoc,
  1360. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1361. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1362. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1363. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy_north,
  1364. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy_south,
  1365. [SLAVE_AHB2PHY_WEST] = &qhs_ahb2phy_west,
  1366. [SLAVE_AOP] = &qhs_aop,
  1367. [SLAVE_AOSS] = &qhs_aoss,
  1368. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1369. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_thrott_cfg,
  1370. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  1371. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1372. [SLAVE_CDSP_CFG] = &qhs_compute_dsp_cfg,
  1373. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1374. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1375. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1376. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1377. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1378. [SLAVE_DISPLAY_THROTTLE_CFG] = &qhs_display_throttle_cfg,
  1379. [SLAVE_EMMC_CFG] = &qhs_emmc_cfg,
  1380. [SLAVE_GLM] = &qhs_glm,
  1381. [SLAVE_GRAPHICS_3D_CFG] = &qhs_gpuss_cfg,
  1382. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1383. [SLAVE_IPA_CFG] = &qhs_ipa,
  1384. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1385. [SLAVE_PCIE_CFG] = &qhs_pcie_cfg,
  1386. [SLAVE_PDM] = &qhs_pdm,
  1387. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1388. [SLAVE_PRNG] = &qhs_prng,
  1389. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1390. [SLAVE_QUP_0] = &qhs_qupv3_center,
  1391. [SLAVE_QUP_1] = &qhs_qupv3_north,
  1392. [SLAVE_SDCC_2] = &qhs_sdc2,
  1393. [SLAVE_SDCC_4] = &qhs_sdc4,
  1394. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1395. [SLAVE_SPDM_WRAPPER] = &qhs_spdm,
  1396. [SLAVE_TCSR] = &qhs_tcsr,
  1397. [SLAVE_TLMM_NORTH] = &qhs_tlmm_north,
  1398. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  1399. [SLAVE_TLMM_WEST] = &qhs_tlmm_west,
  1400. [SLAVE_TSIF] = &qhs_tsif,
  1401. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1402. [SLAVE_USB3] = &qhs_usb3_0,
  1403. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1404. [SLAVE_VENUS_CVP_THROTTLE_CFG] = &qhs_venus_cvp_throttle_cfg,
  1405. [SLAVE_VENUS_THROTTLE_CFG] = &qhs_venus_throttle_cfg,
  1406. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1407. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1408. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1409. };
  1410. static const struct qcom_icc_desc sm7150_config_noc = {
  1411. .nodes = config_noc_nodes,
  1412. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1413. .bcms = config_noc_bcms,
  1414. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1415. };
  1416. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1417. };
  1418. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1419. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1420. [SLAVE_GEM_NOC_CFG] = &qhs_gemnoc,
  1421. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1422. };
  1423. static const struct qcom_icc_desc sm7150_dc_noc = {
  1424. .nodes = dc_noc_nodes,
  1425. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1426. .bcms = dc_noc_bcms,
  1427. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1428. };
  1429. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1430. &bcm_sh0,
  1431. &bcm_sh2,
  1432. &bcm_sh3,
  1433. &bcm_sh5,
  1434. };
  1435. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1436. [MASTER_AMPSS_M0] = &acm_apps,
  1437. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1438. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1439. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1440. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1441. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1442. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_pcie,
  1443. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1444. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1445. [MASTER_GRAPHICS_3D] = &qxm_gpu,
  1446. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1447. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1448. [SLAVE_LLCC] = &qns_llcc,
  1449. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1450. };
  1451. static const struct qcom_icc_desc sm7150_gem_noc = {
  1452. .nodes = gem_noc_nodes,
  1453. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1454. .bcms = gem_noc_bcms,
  1455. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1456. };
  1457. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1458. &bcm_acv,
  1459. &bcm_mc0,
  1460. };
  1461. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1462. [MASTER_LLCC] = &llcc_mc,
  1463. [SLAVE_EBI_CH0] = &ebi,
  1464. };
  1465. static const struct qcom_icc_desc sm7150_mc_virt = {
  1466. .nodes = mc_virt_nodes,
  1467. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1468. .bcms = mc_virt_bcms,
  1469. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1470. };
  1471. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1472. &bcm_mm0,
  1473. &bcm_mm1,
  1474. &bcm_mm2,
  1475. &bcm_mm3,
  1476. };
  1477. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1478. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1479. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf,
  1480. [MASTER_CAMNOC_NRT] = &qxm_camnoc_nrt,
  1481. [MASTER_CAMNOC_RT] = &qxm_camnoc_rt,
  1482. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1483. [MASTER_MDP_PORT0] = &qxm_mdp0,
  1484. [MASTER_MDP_PORT1] = &qxm_mdp1,
  1485. [MASTER_ROTATOR] = &qxm_rot,
  1486. [MASTER_VIDEO_P0] = &qxm_venus0,
  1487. [MASTER_VIDEO_P1] = &qxm_venus1,
  1488. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1489. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  1490. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1491. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1492. };
  1493. static const struct qcom_icc_desc sm7150_mmss_noc = {
  1494. .nodes = mmss_noc_nodes,
  1495. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1496. .bcms = mmss_noc_bcms,
  1497. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1498. };
  1499. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1500. &bcm_sn0,
  1501. &bcm_sn1,
  1502. &bcm_sn11,
  1503. &bcm_sn12,
  1504. &bcm_sn15,
  1505. &bcm_sn2,
  1506. &bcm_sn4,
  1507. &bcm_sn9,
  1508. };
  1509. static struct qcom_icc_node * const system_noc_nodes[] = {
  1510. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1511. [A1NOC_SNOC_MAS] = &qnm_aggre1_noc,
  1512. [A2NOC_SNOC_MAS] = &qnm_aggre2_noc,
  1513. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1514. [MASTER_PIMEM] = &qxm_pimem,
  1515. [MASTER_GIC] = &xm_gic,
  1516. [SLAVE_APPSS] = &qhs_apss,
  1517. [SNOC_CNOC_SLV] = &qns_cnoc,
  1518. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1519. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1520. [SLAVE_OCIMEM] = &qxs_imem,
  1521. [SLAVE_PIMEM] = &qxs_pimem,
  1522. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1523. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1524. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1525. };
  1526. static const struct qcom_icc_desc sm7150_system_noc = {
  1527. .nodes = system_noc_nodes,
  1528. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1529. .bcms = system_noc_bcms,
  1530. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1531. };
  1532. static const struct of_device_id qnoc_of_match[] = {
  1533. { .compatible = "qcom,sm7150-aggre1-noc", .data = &sm7150_aggre1_noc },
  1534. { .compatible = "qcom,sm7150-aggre2-noc", .data = &sm7150_aggre2_noc },
  1535. { .compatible = "qcom,sm7150-camnoc-virt", .data = &sm7150_camnoc_virt },
  1536. { .compatible = "qcom,sm7150-compute-noc", .data = &sm7150_compute_noc },
  1537. { .compatible = "qcom,sm7150-config-noc", .data = &sm7150_config_noc },
  1538. { .compatible = "qcom,sm7150-dc-noc", .data = &sm7150_dc_noc },
  1539. { .compatible = "qcom,sm7150-gem-noc", .data = &sm7150_gem_noc },
  1540. { .compatible = "qcom,sm7150-mc-virt", .data = &sm7150_mc_virt },
  1541. { .compatible = "qcom,sm7150-mmss-noc", .data = &sm7150_mmss_noc },
  1542. { .compatible = "qcom,sm7150-system-noc", .data = &sm7150_system_noc },
  1543. { }
  1544. };
  1545. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1546. static struct platform_driver qnoc_driver = {
  1547. .probe = qcom_icc_rpmh_probe,
  1548. .remove_new = qcom_icc_rpmh_remove,
  1549. .driver = {
  1550. .name = "qnoc-sm7150",
  1551. .of_match_table = qnoc_of_match,
  1552. .sync_state = icc_sync_state,
  1553. },
  1554. };
  1555. static int __init qnoc_driver_init(void)
  1556. {
  1557. return platform_driver_register(&qnoc_driver);
  1558. }
  1559. core_initcall(qnoc_driver_init);
  1560. static void __exit qnoc_driver_exit(void)
  1561. {
  1562. platform_driver_unregister(&qnoc_driver);
  1563. }
  1564. module_exit(qnoc_driver_exit);
  1565. MODULE_DESCRIPTION("Qualcomm SM7150 NoC driver");
  1566. MODULE_LICENSE("GPL");