sm6350.c 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2022 Luca Weiss <luca.weiss@fairphone.com>
  4. */
  5. #include <linux/device.h>
  6. #include <linux/interconnect.h>
  7. #include <linux/interconnect-provider.h>
  8. #include <linux/mod_devicetable.h>
  9. #include <linux/module.h>
  10. #include <linux/platform_device.h>
  11. #include <dt-bindings/interconnect/qcom,sm6350.h>
  12. #include "bcm-voter.h"
  13. #include "icc-rpmh.h"
  14. #include "sm6350.h"
  15. static struct qcom_icc_node qhm_a1noc_cfg = {
  16. .name = "qhm_a1noc_cfg",
  17. .id = SM6350_MASTER_A1NOC_CFG,
  18. .channels = 1,
  19. .buswidth = 4,
  20. .num_links = 1,
  21. .links = { SM6350_SLAVE_SERVICE_A1NOC },
  22. };
  23. static struct qcom_icc_node qhm_qup_0 = {
  24. .name = "qhm_qup_0",
  25. .id = SM6350_MASTER_QUP_0,
  26. .channels = 1,
  27. .buswidth = 4,
  28. .num_links = 1,
  29. .links = { SM6350_A1NOC_SNOC_SLV },
  30. };
  31. static struct qcom_icc_node xm_emmc = {
  32. .name = "xm_emmc",
  33. .id = SM6350_MASTER_EMMC,
  34. .channels = 1,
  35. .buswidth = 8,
  36. .num_links = 1,
  37. .links = { SM6350_A1NOC_SNOC_SLV },
  38. };
  39. static struct qcom_icc_node xm_ufs_mem = {
  40. .name = "xm_ufs_mem",
  41. .id = SM6350_MASTER_UFS_MEM,
  42. .channels = 1,
  43. .buswidth = 8,
  44. .num_links = 1,
  45. .links = { SM6350_A1NOC_SNOC_SLV },
  46. };
  47. static struct qcom_icc_node qhm_a2noc_cfg = {
  48. .name = "qhm_a2noc_cfg",
  49. .id = SM6350_MASTER_A2NOC_CFG,
  50. .channels = 1,
  51. .buswidth = 4,
  52. .num_links = 1,
  53. .links = { SM6350_SLAVE_SERVICE_A2NOC },
  54. };
  55. static struct qcom_icc_node qhm_qdss_bam = {
  56. .name = "qhm_qdss_bam",
  57. .id = SM6350_MASTER_QDSS_BAM,
  58. .channels = 1,
  59. .buswidth = 4,
  60. .num_links = 1,
  61. .links = { SM6350_A2NOC_SNOC_SLV },
  62. };
  63. static struct qcom_icc_node qhm_qup_1 = {
  64. .name = "qhm_qup_1",
  65. .id = SM6350_MASTER_QUP_1,
  66. .channels = 1,
  67. .buswidth = 4,
  68. .num_links = 1,
  69. .links = { SM6350_A2NOC_SNOC_SLV },
  70. };
  71. static struct qcom_icc_node qxm_crypto = {
  72. .name = "qxm_crypto",
  73. .id = SM6350_MASTER_CRYPTO_CORE_0,
  74. .channels = 1,
  75. .buswidth = 8,
  76. .num_links = 1,
  77. .links = { SM6350_A2NOC_SNOC_SLV },
  78. };
  79. static struct qcom_icc_node qxm_ipa = {
  80. .name = "qxm_ipa",
  81. .id = SM6350_MASTER_IPA,
  82. .channels = 1,
  83. .buswidth = 8,
  84. .num_links = 1,
  85. .links = { SM6350_A2NOC_SNOC_SLV },
  86. };
  87. static struct qcom_icc_node xm_qdss_etr = {
  88. .name = "xm_qdss_etr",
  89. .id = SM6350_MASTER_QDSS_ETR,
  90. .channels = 1,
  91. .buswidth = 8,
  92. .num_links = 1,
  93. .links = { SM6350_A2NOC_SNOC_SLV },
  94. };
  95. static struct qcom_icc_node xm_sdc2 = {
  96. .name = "xm_sdc2",
  97. .id = SM6350_MASTER_SDCC_2,
  98. .channels = 1,
  99. .buswidth = 8,
  100. .num_links = 1,
  101. .links = { SM6350_A2NOC_SNOC_SLV },
  102. };
  103. static struct qcom_icc_node xm_usb3_0 = {
  104. .name = "xm_usb3_0",
  105. .id = SM6350_MASTER_USB3,
  106. .channels = 1,
  107. .buswidth = 8,
  108. .num_links = 1,
  109. .links = { SM6350_A2NOC_SNOC_SLV },
  110. };
  111. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  112. .name = "qxm_camnoc_hf0_uncomp",
  113. .id = SM6350_MASTER_CAMNOC_HF0_UNCOMP,
  114. .channels = 2,
  115. .buswidth = 32,
  116. .num_links = 1,
  117. .links = { SM6350_SLAVE_CAMNOC_UNCOMP },
  118. };
  119. static struct qcom_icc_node qxm_camnoc_icp_uncomp = {
  120. .name = "qxm_camnoc_icp_uncomp",
  121. .id = SM6350_MASTER_CAMNOC_ICP_UNCOMP,
  122. .channels = 1,
  123. .buswidth = 32,
  124. .num_links = 1,
  125. .links = { SM6350_SLAVE_CAMNOC_UNCOMP },
  126. };
  127. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  128. .name = "qxm_camnoc_sf_uncomp",
  129. .id = SM6350_MASTER_CAMNOC_SF_UNCOMP,
  130. .channels = 1,
  131. .buswidth = 32,
  132. .num_links = 1,
  133. .links = { SM6350_SLAVE_CAMNOC_UNCOMP },
  134. };
  135. static struct qcom_icc_node qup0_core_master = {
  136. .name = "qup0_core_master",
  137. .id = SM6350_MASTER_QUP_CORE_0,
  138. .channels = 1,
  139. .buswidth = 4,
  140. .num_links = 1,
  141. .links = { SM6350_SLAVE_QUP_CORE_0 },
  142. };
  143. static struct qcom_icc_node qup1_core_master = {
  144. .name = "qup1_core_master",
  145. .id = SM6350_MASTER_QUP_CORE_1,
  146. .channels = 1,
  147. .buswidth = 4,
  148. .num_links = 1,
  149. .links = { SM6350_SLAVE_QUP_CORE_1 },
  150. };
  151. static struct qcom_icc_node qnm_npu = {
  152. .name = "qnm_npu",
  153. .id = SM6350_MASTER_NPU,
  154. .channels = 2,
  155. .buswidth = 32,
  156. .num_links = 1,
  157. .links = { SM6350_SLAVE_CDSP_GEM_NOC },
  158. };
  159. static struct qcom_icc_node qxm_npu_dsp = {
  160. .name = "qxm_npu_dsp",
  161. .id = SM6350_MASTER_NPU_PROC,
  162. .channels = 1,
  163. .buswidth = 8,
  164. .num_links = 1,
  165. .links = { SM6350_SLAVE_CDSP_GEM_NOC },
  166. };
  167. static struct qcom_icc_node qnm_snoc = {
  168. .name = "qnm_snoc",
  169. .id = SM6350_SNOC_CNOC_MAS,
  170. .channels = 1,
  171. .buswidth = 8,
  172. .num_links = 42,
  173. .links = { SM6350_SLAVE_CAMERA_CFG,
  174. SM6350_SLAVE_SDCC_2,
  175. SM6350_SLAVE_CNOC_MNOC_CFG,
  176. SM6350_SLAVE_UFS_MEM_CFG,
  177. SM6350_SLAVE_QM_CFG,
  178. SM6350_SLAVE_SNOC_CFG,
  179. SM6350_SLAVE_QM_MPU_CFG,
  180. SM6350_SLAVE_GLM,
  181. SM6350_SLAVE_PDM,
  182. SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  183. SM6350_SLAVE_A2NOC_CFG,
  184. SM6350_SLAVE_QDSS_CFG,
  185. SM6350_SLAVE_VSENSE_CTRL_CFG,
  186. SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG,
  187. SM6350_SLAVE_DISPLAY_CFG,
  188. SM6350_SLAVE_TCSR,
  189. SM6350_SLAVE_DCC_CFG,
  190. SM6350_SLAVE_CNOC_DDRSS,
  191. SM6350_SLAVE_DISPLAY_THROTTLE_CFG,
  192. SM6350_SLAVE_NPU_CFG,
  193. SM6350_SLAVE_AHB2PHY,
  194. SM6350_SLAVE_GRAPHICS_3D_CFG,
  195. SM6350_SLAVE_BOOT_ROM,
  196. SM6350_SLAVE_VENUS_CFG,
  197. SM6350_SLAVE_IPA_CFG,
  198. SM6350_SLAVE_SECURITY,
  199. SM6350_SLAVE_IMEM_CFG,
  200. SM6350_SLAVE_CNOC_MSS,
  201. SM6350_SLAVE_SERVICE_CNOC,
  202. SM6350_SLAVE_USB3,
  203. SM6350_SLAVE_VENUS_THROTTLE_CFG,
  204. SM6350_SLAVE_RBCPR_CX_CFG,
  205. SM6350_SLAVE_A1NOC_CFG,
  206. SM6350_SLAVE_AOSS,
  207. SM6350_SLAVE_PRNG,
  208. SM6350_SLAVE_EMMC_CFG,
  209. SM6350_SLAVE_CRYPTO_0_CFG,
  210. SM6350_SLAVE_PIMEM_CFG,
  211. SM6350_SLAVE_RBCPR_MX_CFG,
  212. SM6350_SLAVE_QUP_0,
  213. SM6350_SLAVE_QUP_1,
  214. SM6350_SLAVE_CLK_CTL
  215. },
  216. };
  217. static struct qcom_icc_node xm_qdss_dap = {
  218. .name = "xm_qdss_dap",
  219. .id = SM6350_MASTER_QDSS_DAP,
  220. .channels = 1,
  221. .buswidth = 8,
  222. .num_links = 42,
  223. .links = { SM6350_SLAVE_CAMERA_CFG,
  224. SM6350_SLAVE_SDCC_2,
  225. SM6350_SLAVE_CNOC_MNOC_CFG,
  226. SM6350_SLAVE_UFS_MEM_CFG,
  227. SM6350_SLAVE_QM_CFG,
  228. SM6350_SLAVE_SNOC_CFG,
  229. SM6350_SLAVE_QM_MPU_CFG,
  230. SM6350_SLAVE_GLM,
  231. SM6350_SLAVE_PDM,
  232. SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  233. SM6350_SLAVE_A2NOC_CFG,
  234. SM6350_SLAVE_QDSS_CFG,
  235. SM6350_SLAVE_VSENSE_CTRL_CFG,
  236. SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG,
  237. SM6350_SLAVE_DISPLAY_CFG,
  238. SM6350_SLAVE_TCSR,
  239. SM6350_SLAVE_DCC_CFG,
  240. SM6350_SLAVE_CNOC_DDRSS,
  241. SM6350_SLAVE_DISPLAY_THROTTLE_CFG,
  242. SM6350_SLAVE_NPU_CFG,
  243. SM6350_SLAVE_AHB2PHY,
  244. SM6350_SLAVE_GRAPHICS_3D_CFG,
  245. SM6350_SLAVE_BOOT_ROM,
  246. SM6350_SLAVE_VENUS_CFG,
  247. SM6350_SLAVE_IPA_CFG,
  248. SM6350_SLAVE_SECURITY,
  249. SM6350_SLAVE_IMEM_CFG,
  250. SM6350_SLAVE_CNOC_MSS,
  251. SM6350_SLAVE_SERVICE_CNOC,
  252. SM6350_SLAVE_USB3,
  253. SM6350_SLAVE_VENUS_THROTTLE_CFG,
  254. SM6350_SLAVE_RBCPR_CX_CFG,
  255. SM6350_SLAVE_A1NOC_CFG,
  256. SM6350_SLAVE_AOSS,
  257. SM6350_SLAVE_PRNG,
  258. SM6350_SLAVE_EMMC_CFG,
  259. SM6350_SLAVE_CRYPTO_0_CFG,
  260. SM6350_SLAVE_PIMEM_CFG,
  261. SM6350_SLAVE_RBCPR_MX_CFG,
  262. SM6350_SLAVE_QUP_0,
  263. SM6350_SLAVE_QUP_1,
  264. SM6350_SLAVE_CLK_CTL
  265. },
  266. };
  267. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  268. .name = "qhm_cnoc_dc_noc",
  269. .id = SM6350_MASTER_CNOC_DC_NOC,
  270. .channels = 1,
  271. .buswidth = 4,
  272. .num_links = 2,
  273. .links = { SM6350_SLAVE_LLCC_CFG,
  274. SM6350_SLAVE_GEM_NOC_CFG
  275. },
  276. };
  277. static struct qcom_icc_node acm_apps = {
  278. .name = "acm_apps",
  279. .id = SM6350_MASTER_AMPSS_M0,
  280. .channels = 1,
  281. .buswidth = 16,
  282. .num_links = 2,
  283. .links = { SM6350_SLAVE_LLCC,
  284. SM6350_SLAVE_GEM_NOC_SNOC
  285. },
  286. };
  287. static struct qcom_icc_node acm_sys_tcu = {
  288. .name = "acm_sys_tcu",
  289. .id = SM6350_MASTER_SYS_TCU,
  290. .channels = 1,
  291. .buswidth = 8,
  292. .num_links = 2,
  293. .links = { SM6350_SLAVE_LLCC,
  294. SM6350_SLAVE_GEM_NOC_SNOC
  295. },
  296. };
  297. static struct qcom_icc_node qhm_gemnoc_cfg = {
  298. .name = "qhm_gemnoc_cfg",
  299. .id = SM6350_MASTER_GEM_NOC_CFG,
  300. .channels = 1,
  301. .buswidth = 4,
  302. .num_links = 3,
  303. .links = { SM6350_SLAVE_MCDMA_MS_MPU_CFG,
  304. SM6350_SLAVE_SERVICE_GEM_NOC,
  305. SM6350_SLAVE_MSS_PROC_MS_MPU_CFG
  306. },
  307. };
  308. static struct qcom_icc_node qnm_cmpnoc = {
  309. .name = "qnm_cmpnoc",
  310. .id = SM6350_MASTER_COMPUTE_NOC,
  311. .channels = 1,
  312. .buswidth = 32,
  313. .num_links = 2,
  314. .links = { SM6350_SLAVE_LLCC,
  315. SM6350_SLAVE_GEM_NOC_SNOC
  316. },
  317. };
  318. static struct qcom_icc_node qnm_mnoc_hf = {
  319. .name = "qnm_mnoc_hf",
  320. .id = SM6350_MASTER_MNOC_HF_MEM_NOC,
  321. .channels = 1,
  322. .buswidth = 32,
  323. .num_links = 2,
  324. .links = { SM6350_SLAVE_LLCC,
  325. SM6350_SLAVE_GEM_NOC_SNOC
  326. },
  327. };
  328. static struct qcom_icc_node qnm_mnoc_sf = {
  329. .name = "qnm_mnoc_sf",
  330. .id = SM6350_MASTER_MNOC_SF_MEM_NOC,
  331. .channels = 1,
  332. .buswidth = 32,
  333. .num_links = 2,
  334. .links = { SM6350_SLAVE_LLCC,
  335. SM6350_SLAVE_GEM_NOC_SNOC
  336. },
  337. };
  338. static struct qcom_icc_node qnm_snoc_gc = {
  339. .name = "qnm_snoc_gc",
  340. .id = SM6350_MASTER_SNOC_GC_MEM_NOC,
  341. .channels = 1,
  342. .buswidth = 8,
  343. .num_links = 1,
  344. .links = { SM6350_SLAVE_LLCC },
  345. };
  346. static struct qcom_icc_node qnm_snoc_sf = {
  347. .name = "qnm_snoc_sf",
  348. .id = SM6350_MASTER_SNOC_SF_MEM_NOC,
  349. .channels = 1,
  350. .buswidth = 16,
  351. .num_links = 1,
  352. .links = { SM6350_SLAVE_LLCC },
  353. };
  354. static struct qcom_icc_node qxm_gpu = {
  355. .name = "qxm_gpu",
  356. .id = SM6350_MASTER_GRAPHICS_3D,
  357. .channels = 2,
  358. .buswidth = 32,
  359. .num_links = 2,
  360. .links = { SM6350_SLAVE_LLCC,
  361. SM6350_SLAVE_GEM_NOC_SNOC
  362. },
  363. };
  364. static struct qcom_icc_node llcc_mc = {
  365. .name = "llcc_mc",
  366. .id = SM6350_MASTER_LLCC,
  367. .channels = 2,
  368. .buswidth = 4,
  369. .num_links = 1,
  370. .links = { SM6350_SLAVE_EBI_CH0 },
  371. };
  372. static struct qcom_icc_node qhm_mnoc_cfg = {
  373. .name = "qhm_mnoc_cfg",
  374. .id = SM6350_MASTER_CNOC_MNOC_CFG,
  375. .channels = 1,
  376. .buswidth = 4,
  377. .num_links = 1,
  378. .links = { SM6350_SLAVE_SERVICE_MNOC },
  379. };
  380. static struct qcom_icc_node qnm_video0 = {
  381. .name = "qnm_video0",
  382. .id = SM6350_MASTER_VIDEO_P0,
  383. .channels = 1,
  384. .buswidth = 32,
  385. .num_links = 1,
  386. .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC },
  387. };
  388. static struct qcom_icc_node qnm_video_cvp = {
  389. .name = "qnm_video_cvp",
  390. .id = SM6350_MASTER_VIDEO_PROC,
  391. .channels = 1,
  392. .buswidth = 8,
  393. .num_links = 1,
  394. .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC },
  395. };
  396. static struct qcom_icc_node qxm_camnoc_hf = {
  397. .name = "qxm_camnoc_hf",
  398. .id = SM6350_MASTER_CAMNOC_HF,
  399. .channels = 2,
  400. .buswidth = 32,
  401. .num_links = 1,
  402. .links = { SM6350_SLAVE_MNOC_HF_MEM_NOC },
  403. };
  404. static struct qcom_icc_node qxm_camnoc_icp = {
  405. .name = "qxm_camnoc_icp",
  406. .id = SM6350_MASTER_CAMNOC_ICP,
  407. .channels = 1,
  408. .buswidth = 8,
  409. .num_links = 1,
  410. .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC },
  411. };
  412. static struct qcom_icc_node qxm_camnoc_sf = {
  413. .name = "qxm_camnoc_sf",
  414. .id = SM6350_MASTER_CAMNOC_SF,
  415. .channels = 1,
  416. .buswidth = 32,
  417. .num_links = 1,
  418. .links = { SM6350_SLAVE_MNOC_SF_MEM_NOC },
  419. };
  420. static struct qcom_icc_node qxm_mdp0 = {
  421. .name = "qxm_mdp0",
  422. .id = SM6350_MASTER_MDP_PORT0,
  423. .channels = 1,
  424. .buswidth = 32,
  425. .num_links = 1,
  426. .links = { SM6350_SLAVE_MNOC_HF_MEM_NOC },
  427. };
  428. static struct qcom_icc_node amm_npu_sys = {
  429. .name = "amm_npu_sys",
  430. .id = SM6350_MASTER_NPU_SYS,
  431. .channels = 2,
  432. .buswidth = 32,
  433. .num_links = 1,
  434. .links = { SM6350_SLAVE_NPU_COMPUTE_NOC },
  435. };
  436. static struct qcom_icc_node qhm_npu_cfg = {
  437. .name = "qhm_npu_cfg",
  438. .id = SM6350_MASTER_NPU_NOC_CFG,
  439. .channels = 1,
  440. .buswidth = 4,
  441. .num_links = 8,
  442. .links = { SM6350_SLAVE_SERVICE_NPU_NOC,
  443. SM6350_SLAVE_ISENSE_CFG,
  444. SM6350_SLAVE_NPU_LLM_CFG,
  445. SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG,
  446. SM6350_SLAVE_NPU_CP,
  447. SM6350_SLAVE_NPU_TCM,
  448. SM6350_SLAVE_NPU_CAL_DP0,
  449. SM6350_SLAVE_NPU_DPM
  450. },
  451. };
  452. static struct qcom_icc_node qhm_snoc_cfg = {
  453. .name = "qhm_snoc_cfg",
  454. .id = SM6350_MASTER_SNOC_CFG,
  455. .channels = 1,
  456. .buswidth = 4,
  457. .num_links = 1,
  458. .links = { SM6350_SLAVE_SERVICE_SNOC },
  459. };
  460. static struct qcom_icc_node qnm_aggre1_noc = {
  461. .name = "qnm_aggre1_noc",
  462. .id = SM6350_A1NOC_SNOC_MAS,
  463. .channels = 1,
  464. .buswidth = 16,
  465. .num_links = 6,
  466. .links = { SM6350_SLAVE_SNOC_GEM_NOC_SF,
  467. SM6350_SLAVE_PIMEM,
  468. SM6350_SLAVE_OCIMEM,
  469. SM6350_SLAVE_APPSS,
  470. SM6350_SNOC_CNOC_SLV,
  471. SM6350_SLAVE_QDSS_STM
  472. },
  473. };
  474. static struct qcom_icc_node qnm_aggre2_noc = {
  475. .name = "qnm_aggre2_noc",
  476. .id = SM6350_A2NOC_SNOC_MAS,
  477. .channels = 1,
  478. .buswidth = 16,
  479. .num_links = 7,
  480. .links = { SM6350_SLAVE_SNOC_GEM_NOC_SF,
  481. SM6350_SLAVE_PIMEM,
  482. SM6350_SLAVE_OCIMEM,
  483. SM6350_SLAVE_APPSS,
  484. SM6350_SNOC_CNOC_SLV,
  485. SM6350_SLAVE_TCU,
  486. SM6350_SLAVE_QDSS_STM
  487. },
  488. };
  489. static struct qcom_icc_node qnm_gemnoc = {
  490. .name = "qnm_gemnoc",
  491. .id = SM6350_MASTER_GEM_NOC_SNOC,
  492. .channels = 1,
  493. .buswidth = 8,
  494. .num_links = 6,
  495. .links = { SM6350_SLAVE_PIMEM,
  496. SM6350_SLAVE_OCIMEM,
  497. SM6350_SLAVE_APPSS,
  498. SM6350_SNOC_CNOC_SLV,
  499. SM6350_SLAVE_TCU,
  500. SM6350_SLAVE_QDSS_STM
  501. },
  502. };
  503. static struct qcom_icc_node qxm_pimem = {
  504. .name = "qxm_pimem",
  505. .id = SM6350_MASTER_PIMEM,
  506. .channels = 1,
  507. .buswidth = 8,
  508. .num_links = 2,
  509. .links = { SM6350_SLAVE_SNOC_GEM_NOC_GC,
  510. SM6350_SLAVE_OCIMEM
  511. },
  512. };
  513. static struct qcom_icc_node xm_gic = {
  514. .name = "xm_gic",
  515. .id = SM6350_MASTER_GIC,
  516. .channels = 1,
  517. .buswidth = 8,
  518. .num_links = 1,
  519. .links = { SM6350_SLAVE_SNOC_GEM_NOC_GC },
  520. };
  521. static struct qcom_icc_node qns_a1noc_snoc = {
  522. .name = "qns_a1noc_snoc",
  523. .id = SM6350_A1NOC_SNOC_SLV,
  524. .channels = 1,
  525. .buswidth = 16,
  526. .num_links = 1,
  527. .links = { SM6350_A1NOC_SNOC_MAS },
  528. };
  529. static struct qcom_icc_node srvc_aggre1_noc = {
  530. .name = "srvc_aggre1_noc",
  531. .id = SM6350_SLAVE_SERVICE_A1NOC,
  532. .channels = 1,
  533. .buswidth = 4,
  534. };
  535. static struct qcom_icc_node qns_a2noc_snoc = {
  536. .name = "qns_a2noc_snoc",
  537. .id = SM6350_A2NOC_SNOC_SLV,
  538. .channels = 1,
  539. .buswidth = 16,
  540. .num_links = 1,
  541. .links = { SM6350_A2NOC_SNOC_MAS },
  542. };
  543. static struct qcom_icc_node srvc_aggre2_noc = {
  544. .name = "srvc_aggre2_noc",
  545. .id = SM6350_SLAVE_SERVICE_A2NOC,
  546. .channels = 1,
  547. .buswidth = 4,
  548. };
  549. static struct qcom_icc_node qns_camnoc_uncomp = {
  550. .name = "qns_camnoc_uncomp",
  551. .id = SM6350_SLAVE_CAMNOC_UNCOMP,
  552. .channels = 1,
  553. .buswidth = 32,
  554. };
  555. static struct qcom_icc_node qup0_core_slave = {
  556. .name = "qup0_core_slave",
  557. .id = SM6350_SLAVE_QUP_CORE_0,
  558. .channels = 1,
  559. .buswidth = 4,
  560. };
  561. static struct qcom_icc_node qup1_core_slave = {
  562. .name = "qup1_core_slave",
  563. .id = SM6350_SLAVE_QUP_CORE_1,
  564. .channels = 1,
  565. .buswidth = 4,
  566. };
  567. static struct qcom_icc_node qns_cdsp_gemnoc = {
  568. .name = "qns_cdsp_gemnoc",
  569. .id = SM6350_SLAVE_CDSP_GEM_NOC,
  570. .channels = 1,
  571. .buswidth = 32,
  572. .num_links = 1,
  573. .links = { SM6350_MASTER_COMPUTE_NOC },
  574. };
  575. static struct qcom_icc_node qhs_a1_noc_cfg = {
  576. .name = "qhs_a1_noc_cfg",
  577. .id = SM6350_SLAVE_A1NOC_CFG,
  578. .channels = 1,
  579. .buswidth = 4,
  580. .num_links = 1,
  581. .links = { SM6350_MASTER_A1NOC_CFG },
  582. };
  583. static struct qcom_icc_node qhs_a2_noc_cfg = {
  584. .name = "qhs_a2_noc_cfg",
  585. .id = SM6350_SLAVE_A2NOC_CFG,
  586. .channels = 1,
  587. .buswidth = 4,
  588. .num_links = 1,
  589. .links = { SM6350_MASTER_A2NOC_CFG },
  590. };
  591. static struct qcom_icc_node qhs_ahb2phy0 = {
  592. .name = "qhs_ahb2phy0",
  593. .id = SM6350_SLAVE_AHB2PHY,
  594. .channels = 1,
  595. .buswidth = 4,
  596. };
  597. static struct qcom_icc_node qhs_ahb2phy2 = {
  598. .name = "qhs_ahb2phy2",
  599. .id = SM6350_SLAVE_AHB2PHY_2,
  600. .channels = 1,
  601. .buswidth = 4,
  602. };
  603. static struct qcom_icc_node qhs_aoss = {
  604. .name = "qhs_aoss",
  605. .id = SM6350_SLAVE_AOSS,
  606. .channels = 1,
  607. .buswidth = 4,
  608. };
  609. static struct qcom_icc_node qhs_boot_rom = {
  610. .name = "qhs_boot_rom",
  611. .id = SM6350_SLAVE_BOOT_ROM,
  612. .channels = 1,
  613. .buswidth = 4,
  614. };
  615. static struct qcom_icc_node qhs_camera_cfg = {
  616. .name = "qhs_camera_cfg",
  617. .id = SM6350_SLAVE_CAMERA_CFG,
  618. .channels = 1,
  619. .buswidth = 4,
  620. };
  621. static struct qcom_icc_node qhs_camera_nrt_thrott_cfg = {
  622. .name = "qhs_camera_nrt_thrott_cfg",
  623. .id = SM6350_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  624. .channels = 1,
  625. .buswidth = 4,
  626. };
  627. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  628. .name = "qhs_camera_rt_throttle_cfg",
  629. .id = SM6350_SLAVE_CAMERA_RT_THROTTLE_CFG,
  630. .channels = 1,
  631. .buswidth = 4,
  632. };
  633. static struct qcom_icc_node qhs_clk_ctl = {
  634. .name = "qhs_clk_ctl",
  635. .id = SM6350_SLAVE_CLK_CTL,
  636. .channels = 1,
  637. .buswidth = 4,
  638. };
  639. static struct qcom_icc_node qhs_cpr_cx = {
  640. .name = "qhs_cpr_cx",
  641. .id = SM6350_SLAVE_RBCPR_CX_CFG,
  642. .channels = 1,
  643. .buswidth = 4,
  644. };
  645. static struct qcom_icc_node qhs_cpr_mx = {
  646. .name = "qhs_cpr_mx",
  647. .id = SM6350_SLAVE_RBCPR_MX_CFG,
  648. .channels = 1,
  649. .buswidth = 4,
  650. };
  651. static struct qcom_icc_node qhs_crypto0_cfg = {
  652. .name = "qhs_crypto0_cfg",
  653. .id = SM6350_SLAVE_CRYPTO_0_CFG,
  654. .channels = 1,
  655. .buswidth = 4,
  656. };
  657. static struct qcom_icc_node qhs_dcc_cfg = {
  658. .name = "qhs_dcc_cfg",
  659. .id = SM6350_SLAVE_DCC_CFG,
  660. .channels = 1,
  661. .buswidth = 4,
  662. };
  663. static struct qcom_icc_node qhs_ddrss_cfg = {
  664. .name = "qhs_ddrss_cfg",
  665. .id = SM6350_SLAVE_CNOC_DDRSS,
  666. .channels = 1,
  667. .buswidth = 4,
  668. .num_links = 1,
  669. .links = { SM6350_MASTER_CNOC_DC_NOC },
  670. };
  671. static struct qcom_icc_node qhs_display_cfg = {
  672. .name = "qhs_display_cfg",
  673. .id = SM6350_SLAVE_DISPLAY_CFG,
  674. .channels = 1,
  675. .buswidth = 4,
  676. };
  677. static struct qcom_icc_node qhs_display_throttle_cfg = {
  678. .name = "qhs_display_throttle_cfg",
  679. .id = SM6350_SLAVE_DISPLAY_THROTTLE_CFG,
  680. .channels = 1,
  681. .buswidth = 4,
  682. };
  683. static struct qcom_icc_node qhs_emmc_cfg = {
  684. .name = "qhs_emmc_cfg",
  685. .id = SM6350_SLAVE_EMMC_CFG,
  686. .channels = 1,
  687. .buswidth = 4,
  688. };
  689. static struct qcom_icc_node qhs_glm = {
  690. .name = "qhs_glm",
  691. .id = SM6350_SLAVE_GLM,
  692. .channels = 1,
  693. .buswidth = 4,
  694. };
  695. static struct qcom_icc_node qhs_gpuss_cfg = {
  696. .name = "qhs_gpuss_cfg",
  697. .id = SM6350_SLAVE_GRAPHICS_3D_CFG,
  698. .channels = 1,
  699. .buswidth = 8,
  700. };
  701. static struct qcom_icc_node qhs_imem_cfg = {
  702. .name = "qhs_imem_cfg",
  703. .id = SM6350_SLAVE_IMEM_CFG,
  704. .channels = 1,
  705. .buswidth = 4,
  706. };
  707. static struct qcom_icc_node qhs_ipa = {
  708. .name = "qhs_ipa",
  709. .id = SM6350_SLAVE_IPA_CFG,
  710. .channels = 1,
  711. .buswidth = 4,
  712. };
  713. static struct qcom_icc_node qhs_mnoc_cfg = {
  714. .name = "qhs_mnoc_cfg",
  715. .id = SM6350_SLAVE_CNOC_MNOC_CFG,
  716. .channels = 1,
  717. .buswidth = 4,
  718. .num_links = 1,
  719. .links = { SM6350_MASTER_CNOC_MNOC_CFG },
  720. };
  721. static struct qcom_icc_node qhs_mss_cfg = {
  722. .name = "qhs_mss_cfg",
  723. .id = SM6350_SLAVE_CNOC_MSS,
  724. .channels = 1,
  725. .buswidth = 4,
  726. };
  727. static struct qcom_icc_node qhs_npu_cfg = {
  728. .name = "qhs_npu_cfg",
  729. .id = SM6350_SLAVE_NPU_CFG,
  730. .channels = 1,
  731. .buswidth = 4,
  732. .num_links = 1,
  733. .links = { SM6350_MASTER_NPU_NOC_CFG },
  734. };
  735. static struct qcom_icc_node qhs_pdm = {
  736. .name = "qhs_pdm",
  737. .id = SM6350_SLAVE_PDM,
  738. .channels = 1,
  739. .buswidth = 4,
  740. };
  741. static struct qcom_icc_node qhs_pimem_cfg = {
  742. .name = "qhs_pimem_cfg",
  743. .id = SM6350_SLAVE_PIMEM_CFG,
  744. .channels = 1,
  745. .buswidth = 4,
  746. };
  747. static struct qcom_icc_node qhs_prng = {
  748. .name = "qhs_prng",
  749. .id = SM6350_SLAVE_PRNG,
  750. .channels = 1,
  751. .buswidth = 4,
  752. };
  753. static struct qcom_icc_node qhs_qdss_cfg = {
  754. .name = "qhs_qdss_cfg",
  755. .id = SM6350_SLAVE_QDSS_CFG,
  756. .channels = 1,
  757. .buswidth = 4,
  758. };
  759. static struct qcom_icc_node qhs_qm_cfg = {
  760. .name = "qhs_qm_cfg",
  761. .id = SM6350_SLAVE_QM_CFG,
  762. .channels = 1,
  763. .buswidth = 4,
  764. };
  765. static struct qcom_icc_node qhs_qm_mpu_cfg = {
  766. .name = "qhs_qm_mpu_cfg",
  767. .id = SM6350_SLAVE_QM_MPU_CFG,
  768. .channels = 1,
  769. .buswidth = 4,
  770. };
  771. static struct qcom_icc_node qhs_qup0 = {
  772. .name = "qhs_qup0",
  773. .id = SM6350_SLAVE_QUP_0,
  774. .channels = 1,
  775. .buswidth = 4,
  776. };
  777. static struct qcom_icc_node qhs_qup1 = {
  778. .name = "qhs_qup1",
  779. .id = SM6350_SLAVE_QUP_1,
  780. .channels = 1,
  781. .buswidth = 4,
  782. };
  783. static struct qcom_icc_node qhs_sdc2 = {
  784. .name = "qhs_sdc2",
  785. .id = SM6350_SLAVE_SDCC_2,
  786. .channels = 1,
  787. .buswidth = 4,
  788. };
  789. static struct qcom_icc_node qhs_security = {
  790. .name = "qhs_security",
  791. .id = SM6350_SLAVE_SECURITY,
  792. .channels = 1,
  793. .buswidth = 4,
  794. };
  795. static struct qcom_icc_node qhs_snoc_cfg = {
  796. .name = "qhs_snoc_cfg",
  797. .id = SM6350_SLAVE_SNOC_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. .num_links = 1,
  801. .links = { SM6350_MASTER_SNOC_CFG },
  802. };
  803. static struct qcom_icc_node qhs_tcsr = {
  804. .name = "qhs_tcsr",
  805. .id = SM6350_SLAVE_TCSR,
  806. .channels = 1,
  807. .buswidth = 4,
  808. };
  809. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  810. .name = "qhs_ufs_mem_cfg",
  811. .id = SM6350_SLAVE_UFS_MEM_CFG,
  812. .channels = 1,
  813. .buswidth = 4,
  814. };
  815. static struct qcom_icc_node qhs_usb3_0 = {
  816. .name = "qhs_usb3_0",
  817. .id = SM6350_SLAVE_USB3,
  818. .channels = 1,
  819. .buswidth = 4,
  820. };
  821. static struct qcom_icc_node qhs_venus_cfg = {
  822. .name = "qhs_venus_cfg",
  823. .id = SM6350_SLAVE_VENUS_CFG,
  824. .channels = 1,
  825. .buswidth = 4,
  826. };
  827. static struct qcom_icc_node qhs_venus_throttle_cfg = {
  828. .name = "qhs_venus_throttle_cfg",
  829. .id = SM6350_SLAVE_VENUS_THROTTLE_CFG,
  830. .channels = 1,
  831. .buswidth = 4,
  832. };
  833. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  834. .name = "qhs_vsense_ctrl_cfg",
  835. .id = SM6350_SLAVE_VSENSE_CTRL_CFG,
  836. .channels = 1,
  837. .buswidth = 4,
  838. };
  839. static struct qcom_icc_node srvc_cnoc = {
  840. .name = "srvc_cnoc",
  841. .id = SM6350_SLAVE_SERVICE_CNOC,
  842. .channels = 1,
  843. .buswidth = 4,
  844. };
  845. static struct qcom_icc_node qhs_gemnoc = {
  846. .name = "qhs_gemnoc",
  847. .id = SM6350_SLAVE_GEM_NOC_CFG,
  848. .channels = 1,
  849. .buswidth = 4,
  850. .num_links = 1,
  851. .links = { SM6350_MASTER_GEM_NOC_CFG },
  852. };
  853. static struct qcom_icc_node qhs_llcc = {
  854. .name = "qhs_llcc",
  855. .id = SM6350_SLAVE_LLCC_CFG,
  856. .channels = 1,
  857. .buswidth = 4,
  858. };
  859. static struct qcom_icc_node qhs_mcdma_ms_mpu_cfg = {
  860. .name = "qhs_mcdma_ms_mpu_cfg",
  861. .id = SM6350_SLAVE_MCDMA_MS_MPU_CFG,
  862. .channels = 1,
  863. .buswidth = 4,
  864. };
  865. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  866. .name = "qhs_mdsp_ms_mpu_cfg",
  867. .id = SM6350_SLAVE_MSS_PROC_MS_MPU_CFG,
  868. .channels = 1,
  869. .buswidth = 4,
  870. };
  871. static struct qcom_icc_node qns_gem_noc_snoc = {
  872. .name = "qns_gem_noc_snoc",
  873. .id = SM6350_SLAVE_GEM_NOC_SNOC,
  874. .channels = 1,
  875. .buswidth = 8,
  876. .num_links = 1,
  877. .links = { SM6350_MASTER_GEM_NOC_SNOC },
  878. };
  879. static struct qcom_icc_node qns_llcc = {
  880. .name = "qns_llcc",
  881. .id = SM6350_SLAVE_LLCC,
  882. .channels = 1,
  883. .buswidth = 16,
  884. .num_links = 1,
  885. .links = { SM6350_MASTER_LLCC },
  886. };
  887. static struct qcom_icc_node srvc_gemnoc = {
  888. .name = "srvc_gemnoc",
  889. .id = SM6350_SLAVE_SERVICE_GEM_NOC,
  890. .channels = 1,
  891. .buswidth = 4,
  892. };
  893. static struct qcom_icc_node ebi = {
  894. .name = "ebi",
  895. .id = SM6350_SLAVE_EBI_CH0,
  896. .channels = 2,
  897. .buswidth = 4,
  898. };
  899. static struct qcom_icc_node qns_mem_noc_hf = {
  900. .name = "qns_mem_noc_hf",
  901. .id = SM6350_SLAVE_MNOC_HF_MEM_NOC,
  902. .channels = 1,
  903. .buswidth = 32,
  904. .num_links = 1,
  905. .links = { SM6350_MASTER_MNOC_HF_MEM_NOC },
  906. };
  907. static struct qcom_icc_node qns_mem_noc_sf = {
  908. .name = "qns_mem_noc_sf",
  909. .id = SM6350_SLAVE_MNOC_SF_MEM_NOC,
  910. .channels = 1,
  911. .buswidth = 32,
  912. .num_links = 1,
  913. .links = { SM6350_MASTER_MNOC_SF_MEM_NOC },
  914. };
  915. static struct qcom_icc_node srvc_mnoc = {
  916. .name = "srvc_mnoc",
  917. .id = SM6350_SLAVE_SERVICE_MNOC,
  918. .channels = 1,
  919. .buswidth = 4,
  920. };
  921. static struct qcom_icc_node qhs_cal_dp0 = {
  922. .name = "qhs_cal_dp0",
  923. .id = SM6350_SLAVE_NPU_CAL_DP0,
  924. .channels = 1,
  925. .buswidth = 4,
  926. };
  927. static struct qcom_icc_node qhs_cp = {
  928. .name = "qhs_cp",
  929. .id = SM6350_SLAVE_NPU_CP,
  930. .channels = 1,
  931. .buswidth = 4,
  932. };
  933. static struct qcom_icc_node qhs_dma_bwmon = {
  934. .name = "qhs_dma_bwmon",
  935. .id = SM6350_SLAVE_NPU_INT_DMA_BWMON_CFG,
  936. .channels = 1,
  937. .buswidth = 4,
  938. };
  939. static struct qcom_icc_node qhs_dpm = {
  940. .name = "qhs_dpm",
  941. .id = SM6350_SLAVE_NPU_DPM,
  942. .channels = 1,
  943. .buswidth = 4,
  944. };
  945. static struct qcom_icc_node qhs_isense = {
  946. .name = "qhs_isense",
  947. .id = SM6350_SLAVE_ISENSE_CFG,
  948. .channels = 1,
  949. .buswidth = 4,
  950. };
  951. static struct qcom_icc_node qhs_llm = {
  952. .name = "qhs_llm",
  953. .id = SM6350_SLAVE_NPU_LLM_CFG,
  954. .channels = 1,
  955. .buswidth = 4,
  956. };
  957. static struct qcom_icc_node qhs_tcm = {
  958. .name = "qhs_tcm",
  959. .id = SM6350_SLAVE_NPU_TCM,
  960. .channels = 1,
  961. .buswidth = 4,
  962. };
  963. static struct qcom_icc_node qns_npu_sys = {
  964. .name = "qns_npu_sys",
  965. .id = SM6350_SLAVE_NPU_COMPUTE_NOC,
  966. .channels = 2,
  967. .buswidth = 32,
  968. };
  969. static struct qcom_icc_node srvc_noc = {
  970. .name = "srvc_noc",
  971. .id = SM6350_SLAVE_SERVICE_NPU_NOC,
  972. .channels = 1,
  973. .buswidth = 4,
  974. };
  975. static struct qcom_icc_node qhs_apss = {
  976. .name = "qhs_apss",
  977. .id = SM6350_SLAVE_APPSS,
  978. .channels = 1,
  979. .buswidth = 8,
  980. };
  981. static struct qcom_icc_node qns_cnoc = {
  982. .name = "qns_cnoc",
  983. .id = SM6350_SNOC_CNOC_SLV,
  984. .channels = 1,
  985. .buswidth = 8,
  986. .num_links = 1,
  987. .links = { SM6350_SNOC_CNOC_MAS },
  988. };
  989. static struct qcom_icc_node qns_gemnoc_gc = {
  990. .name = "qns_gemnoc_gc",
  991. .id = SM6350_SLAVE_SNOC_GEM_NOC_GC,
  992. .channels = 1,
  993. .buswidth = 8,
  994. .num_links = 1,
  995. .links = { SM6350_MASTER_SNOC_GC_MEM_NOC },
  996. };
  997. static struct qcom_icc_node qns_gemnoc_sf = {
  998. .name = "qns_gemnoc_sf",
  999. .id = SM6350_SLAVE_SNOC_GEM_NOC_SF,
  1000. .channels = 1,
  1001. .buswidth = 16,
  1002. .num_links = 1,
  1003. .links = { SM6350_MASTER_SNOC_SF_MEM_NOC },
  1004. };
  1005. static struct qcom_icc_node qxs_imem = {
  1006. .name = "qxs_imem",
  1007. .id = SM6350_SLAVE_OCIMEM,
  1008. .channels = 1,
  1009. .buswidth = 8,
  1010. };
  1011. static struct qcom_icc_node qxs_pimem = {
  1012. .name = "qxs_pimem",
  1013. .id = SM6350_SLAVE_PIMEM,
  1014. .channels = 1,
  1015. .buswidth = 8,
  1016. };
  1017. static struct qcom_icc_node srvc_snoc = {
  1018. .name = "srvc_snoc",
  1019. .id = SM6350_SLAVE_SERVICE_SNOC,
  1020. .channels = 1,
  1021. .buswidth = 4,
  1022. };
  1023. static struct qcom_icc_node xs_qdss_stm = {
  1024. .name = "xs_qdss_stm",
  1025. .id = SM6350_SLAVE_QDSS_STM,
  1026. .channels = 1,
  1027. .buswidth = 4,
  1028. };
  1029. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1030. .name = "xs_sys_tcu_cfg",
  1031. .id = SM6350_SLAVE_TCU,
  1032. .channels = 1,
  1033. .buswidth = 8,
  1034. };
  1035. static struct qcom_icc_bcm bcm_acv = {
  1036. .name = "ACV",
  1037. .enable_mask = BIT(3),
  1038. .keepalive = false,
  1039. .num_nodes = 1,
  1040. .nodes = { &ebi },
  1041. };
  1042. static struct qcom_icc_bcm bcm_ce0 = {
  1043. .name = "CE0",
  1044. .keepalive = false,
  1045. .num_nodes = 1,
  1046. .nodes = { &qxm_crypto },
  1047. };
  1048. static struct qcom_icc_bcm bcm_cn0 = {
  1049. .name = "CN0",
  1050. .keepalive = true,
  1051. .num_nodes = 41,
  1052. .nodes = { &qnm_snoc,
  1053. &xm_qdss_dap,
  1054. &qhs_a1_noc_cfg,
  1055. &qhs_a2_noc_cfg,
  1056. &qhs_ahb2phy0,
  1057. &qhs_aoss,
  1058. &qhs_boot_rom,
  1059. &qhs_camera_cfg,
  1060. &qhs_camera_nrt_thrott_cfg,
  1061. &qhs_camera_rt_throttle_cfg,
  1062. &qhs_clk_ctl,
  1063. &qhs_cpr_cx,
  1064. &qhs_cpr_mx,
  1065. &qhs_crypto0_cfg,
  1066. &qhs_dcc_cfg,
  1067. &qhs_ddrss_cfg,
  1068. &qhs_display_cfg,
  1069. &qhs_display_throttle_cfg,
  1070. &qhs_glm,
  1071. &qhs_gpuss_cfg,
  1072. &qhs_imem_cfg,
  1073. &qhs_ipa,
  1074. &qhs_mnoc_cfg,
  1075. &qhs_mss_cfg,
  1076. &qhs_npu_cfg,
  1077. &qhs_pimem_cfg,
  1078. &qhs_prng,
  1079. &qhs_qdss_cfg,
  1080. &qhs_qm_cfg,
  1081. &qhs_qm_mpu_cfg,
  1082. &qhs_qup0,
  1083. &qhs_qup1,
  1084. &qhs_security,
  1085. &qhs_snoc_cfg,
  1086. &qhs_tcsr,
  1087. &qhs_ufs_mem_cfg,
  1088. &qhs_usb3_0,
  1089. &qhs_venus_cfg,
  1090. &qhs_venus_throttle_cfg,
  1091. &qhs_vsense_ctrl_cfg,
  1092. &srvc_cnoc
  1093. },
  1094. };
  1095. static struct qcom_icc_bcm bcm_cn1 = {
  1096. .name = "CN1",
  1097. .keepalive = false,
  1098. .num_nodes = 6,
  1099. .nodes = { &xm_emmc,
  1100. &xm_sdc2,
  1101. &qhs_ahb2phy2,
  1102. &qhs_emmc_cfg,
  1103. &qhs_pdm,
  1104. &qhs_sdc2
  1105. },
  1106. };
  1107. static struct qcom_icc_bcm bcm_co0 = {
  1108. .name = "CO0",
  1109. .keepalive = false,
  1110. .num_nodes = 1,
  1111. .nodes = { &qns_cdsp_gemnoc },
  1112. };
  1113. static struct qcom_icc_bcm bcm_co2 = {
  1114. .name = "CO2",
  1115. .keepalive = false,
  1116. .num_nodes = 1,
  1117. .nodes = { &qnm_npu },
  1118. };
  1119. static struct qcom_icc_bcm bcm_co3 = {
  1120. .name = "CO3",
  1121. .keepalive = false,
  1122. .num_nodes = 1,
  1123. .nodes = { &qxm_npu_dsp },
  1124. };
  1125. static struct qcom_icc_bcm bcm_mc0 = {
  1126. .name = "MC0",
  1127. .keepalive = true,
  1128. .num_nodes = 1,
  1129. .nodes = { &ebi },
  1130. };
  1131. static struct qcom_icc_bcm bcm_mm0 = {
  1132. .name = "MM0",
  1133. .keepalive = true,
  1134. .num_nodes = 1,
  1135. .nodes = { &qns_mem_noc_hf },
  1136. };
  1137. static struct qcom_icc_bcm bcm_mm1 = {
  1138. .name = "MM1",
  1139. .keepalive = true,
  1140. .num_nodes = 5,
  1141. .nodes = { &qxm_camnoc_hf0_uncomp,
  1142. &qxm_camnoc_icp_uncomp,
  1143. &qxm_camnoc_sf_uncomp,
  1144. &qxm_camnoc_hf,
  1145. &qxm_mdp0
  1146. },
  1147. };
  1148. static struct qcom_icc_bcm bcm_mm2 = {
  1149. .name = "MM2",
  1150. .keepalive = false,
  1151. .num_nodes = 1,
  1152. .nodes = { &qns_mem_noc_sf },
  1153. };
  1154. static struct qcom_icc_bcm bcm_mm3 = {
  1155. .name = "MM3",
  1156. .keepalive = false,
  1157. .num_nodes = 4,
  1158. .nodes = { &qhm_mnoc_cfg, &qnm_video0, &qnm_video_cvp, &qxm_camnoc_sf },
  1159. };
  1160. static struct qcom_icc_bcm bcm_qup0 = {
  1161. .name = "QUP0",
  1162. .keepalive = false,
  1163. .num_nodes = 4,
  1164. .nodes = { &qup0_core_master, &qup1_core_master, &qup0_core_slave, &qup1_core_slave },
  1165. };
  1166. static struct qcom_icc_bcm bcm_sh0 = {
  1167. .name = "SH0",
  1168. .keepalive = true,
  1169. .num_nodes = 1,
  1170. .nodes = { &qns_llcc },
  1171. };
  1172. static struct qcom_icc_bcm bcm_sh2 = {
  1173. .name = "SH2",
  1174. .keepalive = false,
  1175. .num_nodes = 1,
  1176. .nodes = { &acm_sys_tcu },
  1177. };
  1178. static struct qcom_icc_bcm bcm_sh3 = {
  1179. .name = "SH3",
  1180. .keepalive = false,
  1181. .num_nodes = 1,
  1182. .nodes = { &qnm_cmpnoc },
  1183. };
  1184. static struct qcom_icc_bcm bcm_sh4 = {
  1185. .name = "SH4",
  1186. .keepalive = false,
  1187. .num_nodes = 1,
  1188. .nodes = { &acm_apps },
  1189. };
  1190. static struct qcom_icc_bcm bcm_sn0 = {
  1191. .name = "SN0",
  1192. .keepalive = true,
  1193. .num_nodes = 1,
  1194. .nodes = { &qns_gemnoc_sf },
  1195. };
  1196. static struct qcom_icc_bcm bcm_sn1 = {
  1197. .name = "SN1",
  1198. .keepalive = false,
  1199. .num_nodes = 1,
  1200. .nodes = { &qxs_imem },
  1201. };
  1202. static struct qcom_icc_bcm bcm_sn2 = {
  1203. .name = "SN2",
  1204. .keepalive = false,
  1205. .num_nodes = 1,
  1206. .nodes = { &qns_gemnoc_gc },
  1207. };
  1208. static struct qcom_icc_bcm bcm_sn3 = {
  1209. .name = "SN3",
  1210. .keepalive = false,
  1211. .num_nodes = 1,
  1212. .nodes = { &qxs_pimem },
  1213. };
  1214. static struct qcom_icc_bcm bcm_sn4 = {
  1215. .name = "SN4",
  1216. .keepalive = false,
  1217. .num_nodes = 1,
  1218. .nodes = { &xs_qdss_stm },
  1219. };
  1220. static struct qcom_icc_bcm bcm_sn5 = {
  1221. .name = "SN5",
  1222. .keepalive = false,
  1223. .num_nodes = 1,
  1224. .nodes = { &qnm_aggre1_noc },
  1225. };
  1226. static struct qcom_icc_bcm bcm_sn6 = {
  1227. .name = "SN6",
  1228. .keepalive = false,
  1229. .num_nodes = 1,
  1230. .nodes = { &qnm_aggre2_noc },
  1231. };
  1232. static struct qcom_icc_bcm bcm_sn10 = {
  1233. .name = "SN10",
  1234. .keepalive = false,
  1235. .num_nodes = 1,
  1236. .nodes = { &qnm_gemnoc },
  1237. };
  1238. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1239. &bcm_cn1,
  1240. };
  1241. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1242. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1243. [MASTER_QUP_0] = &qhm_qup_0,
  1244. [MASTER_EMMC] = &xm_emmc,
  1245. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1246. [A1NOC_SNOC_SLV] = &qns_a1noc_snoc,
  1247. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1248. };
  1249. static const struct qcom_icc_desc sm6350_aggre1_noc = {
  1250. .nodes = aggre1_noc_nodes,
  1251. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1252. .bcms = aggre1_noc_bcms,
  1253. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1254. };
  1255. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1256. &bcm_ce0,
  1257. &bcm_cn1,
  1258. };
  1259. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1260. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1261. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1262. [MASTER_QUP_1] = &qhm_qup_1,
  1263. [MASTER_CRYPTO_CORE_0] = &qxm_crypto,
  1264. [MASTER_IPA] = &qxm_ipa,
  1265. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1266. [MASTER_SDCC_2] = &xm_sdc2,
  1267. [MASTER_USB3] = &xm_usb3_0,
  1268. [A2NOC_SNOC_SLV] = &qns_a2noc_snoc,
  1269. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1270. };
  1271. static const struct qcom_icc_desc sm6350_aggre2_noc = {
  1272. .nodes = aggre2_noc_nodes,
  1273. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1274. .bcms = aggre2_noc_bcms,
  1275. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1276. };
  1277. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1278. &bcm_acv,
  1279. &bcm_mc0,
  1280. &bcm_mm1,
  1281. &bcm_qup0,
  1282. };
  1283. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1284. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1285. [MASTER_CAMNOC_ICP_UNCOMP] = &qxm_camnoc_icp_uncomp,
  1286. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1287. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1288. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1289. [MASTER_LLCC] = &llcc_mc,
  1290. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1291. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1292. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1293. [SLAVE_EBI_CH0] = &ebi,
  1294. };
  1295. static const struct qcom_icc_desc sm6350_clk_virt = {
  1296. .nodes = clk_virt_nodes,
  1297. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1298. .bcms = clk_virt_bcms,
  1299. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1300. };
  1301. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1302. &bcm_co0,
  1303. &bcm_co2,
  1304. &bcm_co3,
  1305. };
  1306. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1307. [MASTER_NPU] = &qnm_npu,
  1308. [MASTER_NPU_PROC] = &qxm_npu_dsp,
  1309. [SLAVE_CDSP_GEM_NOC] = &qns_cdsp_gemnoc,
  1310. };
  1311. static const struct qcom_icc_desc sm6350_compute_noc = {
  1312. .nodes = compute_noc_nodes,
  1313. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1314. .bcms = compute_noc_bcms,
  1315. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1316. };
  1317. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1318. &bcm_cn0,
  1319. &bcm_cn1,
  1320. };
  1321. static struct qcom_icc_node * const config_noc_nodes[] = {
  1322. [SNOC_CNOC_MAS] = &qnm_snoc,
  1323. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1324. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1325. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1326. [SLAVE_AHB2PHY] = &qhs_ahb2phy0,
  1327. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  1328. [SLAVE_AOSS] = &qhs_aoss,
  1329. [SLAVE_BOOT_ROM] = &qhs_boot_rom,
  1330. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1331. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_thrott_cfg,
  1332. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  1333. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1334. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1335. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1336. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1337. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1338. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1339. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1340. [SLAVE_DISPLAY_THROTTLE_CFG] = &qhs_display_throttle_cfg,
  1341. [SLAVE_EMMC_CFG] = &qhs_emmc_cfg,
  1342. [SLAVE_GLM] = &qhs_glm,
  1343. [SLAVE_GRAPHICS_3D_CFG] = &qhs_gpuss_cfg,
  1344. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1345. [SLAVE_IPA_CFG] = &qhs_ipa,
  1346. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1347. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1348. [SLAVE_NPU_CFG] = &qhs_npu_cfg,
  1349. [SLAVE_PDM] = &qhs_pdm,
  1350. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1351. [SLAVE_PRNG] = &qhs_prng,
  1352. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1353. [SLAVE_QM_CFG] = &qhs_qm_cfg,
  1354. [SLAVE_QM_MPU_CFG] = &qhs_qm_mpu_cfg,
  1355. [SLAVE_QUP_0] = &qhs_qup0,
  1356. [SLAVE_QUP_1] = &qhs_qup1,
  1357. [SLAVE_SDCC_2] = &qhs_sdc2,
  1358. [SLAVE_SECURITY] = &qhs_security,
  1359. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1360. [SLAVE_TCSR] = &qhs_tcsr,
  1361. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1362. [SLAVE_USB3] = &qhs_usb3_0,
  1363. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1364. [SLAVE_VENUS_THROTTLE_CFG] = &qhs_venus_throttle_cfg,
  1365. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1366. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1367. };
  1368. static const struct qcom_icc_desc sm6350_config_noc = {
  1369. .nodes = config_noc_nodes,
  1370. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1371. .bcms = config_noc_bcms,
  1372. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1373. };
  1374. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1375. };
  1376. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1377. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1378. [SLAVE_GEM_NOC_CFG] = &qhs_gemnoc,
  1379. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1380. };
  1381. static const struct qcom_icc_desc sm6350_dc_noc = {
  1382. .nodes = dc_noc_nodes,
  1383. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1384. .bcms = dc_noc_bcms,
  1385. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1386. };
  1387. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1388. &bcm_sh0,
  1389. &bcm_sh2,
  1390. &bcm_sh3,
  1391. &bcm_sh4,
  1392. };
  1393. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1394. [MASTER_AMPSS_M0] = &acm_apps,
  1395. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1396. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1397. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1398. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1399. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1400. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1401. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1402. [MASTER_GRAPHICS_3D] = &qxm_gpu,
  1403. [SLAVE_MCDMA_MS_MPU_CFG] = &qhs_mcdma_ms_mpu_cfg,
  1404. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1405. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1406. [SLAVE_LLCC] = &qns_llcc,
  1407. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1408. };
  1409. static const struct qcom_icc_desc sm6350_gem_noc = {
  1410. .nodes = gem_noc_nodes,
  1411. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1412. .bcms = gem_noc_bcms,
  1413. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1414. };
  1415. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1416. &bcm_mm0,
  1417. &bcm_mm1,
  1418. &bcm_mm2,
  1419. &bcm_mm3,
  1420. };
  1421. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1422. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1423. [MASTER_VIDEO_P0] = &qnm_video0,
  1424. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1425. [MASTER_CAMNOC_HF] = &qxm_camnoc_hf,
  1426. [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
  1427. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1428. [MASTER_MDP_PORT0] = &qxm_mdp0,
  1429. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1430. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1431. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1432. };
  1433. static const struct qcom_icc_desc sm6350_mmss_noc = {
  1434. .nodes = mmss_noc_nodes,
  1435. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1436. .bcms = mmss_noc_bcms,
  1437. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1438. };
  1439. static struct qcom_icc_bcm * const npu_noc_bcms[] = {
  1440. };
  1441. static struct qcom_icc_node * const npu_noc_nodes[] = {
  1442. [MASTER_NPU_SYS] = &amm_npu_sys,
  1443. [MASTER_NPU_NOC_CFG] = &qhm_npu_cfg,
  1444. [SLAVE_NPU_CAL_DP0] = &qhs_cal_dp0,
  1445. [SLAVE_NPU_CP] = &qhs_cp,
  1446. [SLAVE_NPU_INT_DMA_BWMON_CFG] = &qhs_dma_bwmon,
  1447. [SLAVE_NPU_DPM] = &qhs_dpm,
  1448. [SLAVE_ISENSE_CFG] = &qhs_isense,
  1449. [SLAVE_NPU_LLM_CFG] = &qhs_llm,
  1450. [SLAVE_NPU_TCM] = &qhs_tcm,
  1451. [SLAVE_NPU_COMPUTE_NOC] = &qns_npu_sys,
  1452. [SLAVE_SERVICE_NPU_NOC] = &srvc_noc,
  1453. };
  1454. static const struct qcom_icc_desc sm6350_npu_noc = {
  1455. .nodes = npu_noc_nodes,
  1456. .num_nodes = ARRAY_SIZE(npu_noc_nodes),
  1457. .bcms = npu_noc_bcms,
  1458. .num_bcms = ARRAY_SIZE(npu_noc_bcms),
  1459. };
  1460. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1461. &bcm_sn0,
  1462. &bcm_sn1,
  1463. &bcm_sn10,
  1464. &bcm_sn2,
  1465. &bcm_sn3,
  1466. &bcm_sn4,
  1467. &bcm_sn5,
  1468. &bcm_sn6,
  1469. };
  1470. static struct qcom_icc_node * const system_noc_nodes[] = {
  1471. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1472. [A1NOC_SNOC_MAS] = &qnm_aggre1_noc,
  1473. [A2NOC_SNOC_MAS] = &qnm_aggre2_noc,
  1474. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1475. [MASTER_PIMEM] = &qxm_pimem,
  1476. [MASTER_GIC] = &xm_gic,
  1477. [SLAVE_APPSS] = &qhs_apss,
  1478. [SNOC_CNOC_SLV] = &qns_cnoc,
  1479. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1480. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1481. [SLAVE_OCIMEM] = &qxs_imem,
  1482. [SLAVE_PIMEM] = &qxs_pimem,
  1483. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1484. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1485. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1486. };
  1487. static const struct qcom_icc_desc sm6350_system_noc = {
  1488. .nodes = system_noc_nodes,
  1489. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1490. .bcms = system_noc_bcms,
  1491. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1492. };
  1493. static const struct of_device_id qnoc_of_match[] = {
  1494. { .compatible = "qcom,sm6350-aggre1-noc",
  1495. .data = &sm6350_aggre1_noc},
  1496. { .compatible = "qcom,sm6350-aggre2-noc",
  1497. .data = &sm6350_aggre2_noc},
  1498. { .compatible = "qcom,sm6350-clk-virt",
  1499. .data = &sm6350_clk_virt},
  1500. { .compatible = "qcom,sm6350-compute-noc",
  1501. .data = &sm6350_compute_noc},
  1502. { .compatible = "qcom,sm6350-config-noc",
  1503. .data = &sm6350_config_noc},
  1504. { .compatible = "qcom,sm6350-dc-noc",
  1505. .data = &sm6350_dc_noc},
  1506. { .compatible = "qcom,sm6350-gem-noc",
  1507. .data = &sm6350_gem_noc},
  1508. { .compatible = "qcom,sm6350-mmss-noc",
  1509. .data = &sm6350_mmss_noc},
  1510. { .compatible = "qcom,sm6350-npu-noc",
  1511. .data = &sm6350_npu_noc},
  1512. { .compatible = "qcom,sm6350-system-noc",
  1513. .data = &sm6350_system_noc},
  1514. { }
  1515. };
  1516. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1517. static struct platform_driver qnoc_driver = {
  1518. .probe = qcom_icc_rpmh_probe,
  1519. .remove_new = qcom_icc_rpmh_remove,
  1520. .driver = {
  1521. .name = "qnoc-sm6350",
  1522. .of_match_table = qnoc_of_match,
  1523. .sync_state = icc_sync_state,
  1524. },
  1525. };
  1526. module_platform_driver(qnoc_driver);
  1527. MODULE_DESCRIPTION("Qualcomm SM6350 NoC driver");
  1528. MODULE_LICENSE("GPL v2");