sdm845.c 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/device.h>
  6. #include <linux/interconnect.h>
  7. #include <linux/interconnect-provider.h>
  8. #include <linux/module.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/platform_device.h>
  11. #include <dt-bindings/interconnect/qcom,sdm845.h>
  12. #include "bcm-voter.h"
  13. #include "icc-rpmh.h"
  14. #include "sdm845.h"
  15. static struct qcom_icc_node qhm_a1noc_cfg = {
  16. .name = "qhm_a1noc_cfg",
  17. .id = SDM845_MASTER_A1NOC_CFG,
  18. .channels = 1,
  19. .buswidth = 4,
  20. .num_links = 1,
  21. .links = { SDM845_SLAVE_SERVICE_A1NOC },
  22. };
  23. static struct qcom_icc_node qhm_qup1 = {
  24. .name = "qhm_qup1",
  25. .id = SDM845_MASTER_BLSP_1,
  26. .channels = 1,
  27. .buswidth = 4,
  28. .num_links = 1,
  29. .links = { SDM845_SLAVE_A1NOC_SNOC },
  30. };
  31. static struct qcom_icc_node qhm_tsif = {
  32. .name = "qhm_tsif",
  33. .id = SDM845_MASTER_TSIF,
  34. .channels = 1,
  35. .buswidth = 4,
  36. .num_links = 1,
  37. .links = { SDM845_SLAVE_A1NOC_SNOC },
  38. };
  39. static struct qcom_icc_node xm_sdc2 = {
  40. .name = "xm_sdc2",
  41. .id = SDM845_MASTER_SDCC_2,
  42. .channels = 1,
  43. .buswidth = 8,
  44. .num_links = 1,
  45. .links = { SDM845_SLAVE_A1NOC_SNOC },
  46. };
  47. static struct qcom_icc_node xm_sdc4 = {
  48. .name = "xm_sdc4",
  49. .id = SDM845_MASTER_SDCC_4,
  50. .channels = 1,
  51. .buswidth = 8,
  52. .num_links = 1,
  53. .links = { SDM845_SLAVE_A1NOC_SNOC },
  54. };
  55. static struct qcom_icc_node xm_ufs_card = {
  56. .name = "xm_ufs_card",
  57. .id = SDM845_MASTER_UFS_CARD,
  58. .channels = 1,
  59. .buswidth = 8,
  60. .num_links = 1,
  61. .links = { SDM845_SLAVE_A1NOC_SNOC },
  62. };
  63. static struct qcom_icc_node xm_ufs_mem = {
  64. .name = "xm_ufs_mem",
  65. .id = SDM845_MASTER_UFS_MEM,
  66. .channels = 1,
  67. .buswidth = 8,
  68. .num_links = 1,
  69. .links = { SDM845_SLAVE_A1NOC_SNOC },
  70. };
  71. static struct qcom_icc_node xm_pcie_0 = {
  72. .name = "xm_pcie_0",
  73. .id = SDM845_MASTER_PCIE_0,
  74. .channels = 1,
  75. .buswidth = 8,
  76. .num_links = 1,
  77. .links = { SDM845_SLAVE_ANOC_PCIE_A1NOC_SNOC },
  78. };
  79. static struct qcom_icc_node qhm_a2noc_cfg = {
  80. .name = "qhm_a2noc_cfg",
  81. .id = SDM845_MASTER_A2NOC_CFG,
  82. .channels = 1,
  83. .buswidth = 4,
  84. .num_links = 1,
  85. .links = { SDM845_SLAVE_SERVICE_A2NOC },
  86. };
  87. static struct qcom_icc_node qhm_qdss_bam = {
  88. .name = "qhm_qdss_bam",
  89. .id = SDM845_MASTER_QDSS_BAM,
  90. .channels = 1,
  91. .buswidth = 4,
  92. .num_links = 1,
  93. .links = { SDM845_SLAVE_A2NOC_SNOC },
  94. };
  95. static struct qcom_icc_node qhm_qup2 = {
  96. .name = "qhm_qup2",
  97. .id = SDM845_MASTER_BLSP_2,
  98. .channels = 1,
  99. .buswidth = 4,
  100. .num_links = 1,
  101. .links = { SDM845_SLAVE_A2NOC_SNOC },
  102. };
  103. static struct qcom_icc_node qnm_cnoc = {
  104. .name = "qnm_cnoc",
  105. .id = SDM845_MASTER_CNOC_A2NOC,
  106. .channels = 1,
  107. .buswidth = 8,
  108. .num_links = 1,
  109. .links = { SDM845_SLAVE_A2NOC_SNOC },
  110. };
  111. static struct qcom_icc_node qxm_crypto = {
  112. .name = "qxm_crypto",
  113. .id = SDM845_MASTER_CRYPTO,
  114. .channels = 1,
  115. .buswidth = 8,
  116. .num_links = 1,
  117. .links = { SDM845_SLAVE_A2NOC_SNOC },
  118. };
  119. static struct qcom_icc_node qxm_ipa = {
  120. .name = "qxm_ipa",
  121. .id = SDM845_MASTER_IPA,
  122. .channels = 1,
  123. .buswidth = 8,
  124. .num_links = 1,
  125. .links = { SDM845_SLAVE_A2NOC_SNOC },
  126. };
  127. static struct qcom_icc_node xm_pcie3_1 = {
  128. .name = "xm_pcie3_1",
  129. .id = SDM845_MASTER_PCIE_1,
  130. .channels = 1,
  131. .buswidth = 8,
  132. .num_links = 1,
  133. .links = { SDM845_SLAVE_ANOC_PCIE_SNOC },
  134. };
  135. static struct qcom_icc_node xm_qdss_etr = {
  136. .name = "xm_qdss_etr",
  137. .id = SDM845_MASTER_QDSS_ETR,
  138. .channels = 1,
  139. .buswidth = 8,
  140. .num_links = 1,
  141. .links = { SDM845_SLAVE_A2NOC_SNOC },
  142. };
  143. static struct qcom_icc_node xm_usb3_0 = {
  144. .name = "xm_usb3_0",
  145. .id = SDM845_MASTER_USB3_0,
  146. .channels = 1,
  147. .buswidth = 8,
  148. .num_links = 1,
  149. .links = { SDM845_SLAVE_A2NOC_SNOC },
  150. };
  151. static struct qcom_icc_node xm_usb3_1 = {
  152. .name = "xm_usb3_1",
  153. .id = SDM845_MASTER_USB3_1,
  154. .channels = 1,
  155. .buswidth = 8,
  156. .num_links = 1,
  157. .links = { SDM845_SLAVE_A2NOC_SNOC },
  158. };
  159. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  160. .name = "qxm_camnoc_hf0_uncomp",
  161. .id = SDM845_MASTER_CAMNOC_HF0_UNCOMP,
  162. .channels = 1,
  163. .buswidth = 32,
  164. .num_links = 1,
  165. .links = { SDM845_SLAVE_CAMNOC_UNCOMP },
  166. };
  167. static struct qcom_icc_node qxm_camnoc_hf1_uncomp = {
  168. .name = "qxm_camnoc_hf1_uncomp",
  169. .id = SDM845_MASTER_CAMNOC_HF1_UNCOMP,
  170. .channels = 1,
  171. .buswidth = 32,
  172. .num_links = 1,
  173. .links = { SDM845_SLAVE_CAMNOC_UNCOMP },
  174. };
  175. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  176. .name = "qxm_camnoc_sf_uncomp",
  177. .id = SDM845_MASTER_CAMNOC_SF_UNCOMP,
  178. .channels = 1,
  179. .buswidth = 32,
  180. .num_links = 1,
  181. .links = { SDM845_SLAVE_CAMNOC_UNCOMP },
  182. };
  183. static struct qcom_icc_node qhm_spdm = {
  184. .name = "qhm_spdm",
  185. .id = SDM845_MASTER_SPDM,
  186. .channels = 1,
  187. .buswidth = 4,
  188. .num_links = 1,
  189. .links = { SDM845_SLAVE_CNOC_A2NOC },
  190. };
  191. static struct qcom_icc_node qhm_tic = {
  192. .name = "qhm_tic",
  193. .id = SDM845_MASTER_TIC,
  194. .channels = 1,
  195. .buswidth = 4,
  196. .num_links = 43,
  197. .links = { SDM845_SLAVE_A1NOC_CFG,
  198. SDM845_SLAVE_A2NOC_CFG,
  199. SDM845_SLAVE_AOP,
  200. SDM845_SLAVE_AOSS,
  201. SDM845_SLAVE_CAMERA_CFG,
  202. SDM845_SLAVE_CLK_CTL,
  203. SDM845_SLAVE_CDSP_CFG,
  204. SDM845_SLAVE_RBCPR_CX_CFG,
  205. SDM845_SLAVE_CRYPTO_0_CFG,
  206. SDM845_SLAVE_DCC_CFG,
  207. SDM845_SLAVE_CNOC_DDRSS,
  208. SDM845_SLAVE_DISPLAY_CFG,
  209. SDM845_SLAVE_GLM,
  210. SDM845_SLAVE_GFX3D_CFG,
  211. SDM845_SLAVE_IMEM_CFG,
  212. SDM845_SLAVE_IPA_CFG,
  213. SDM845_SLAVE_CNOC_MNOC_CFG,
  214. SDM845_SLAVE_PCIE_0_CFG,
  215. SDM845_SLAVE_PCIE_1_CFG,
  216. SDM845_SLAVE_PDM,
  217. SDM845_SLAVE_SOUTH_PHY_CFG,
  218. SDM845_SLAVE_PIMEM_CFG,
  219. SDM845_SLAVE_PRNG,
  220. SDM845_SLAVE_QDSS_CFG,
  221. SDM845_SLAVE_BLSP_2,
  222. SDM845_SLAVE_BLSP_1,
  223. SDM845_SLAVE_SDCC_2,
  224. SDM845_SLAVE_SDCC_4,
  225. SDM845_SLAVE_SNOC_CFG,
  226. SDM845_SLAVE_SPDM_WRAPPER,
  227. SDM845_SLAVE_SPSS_CFG,
  228. SDM845_SLAVE_TCSR,
  229. SDM845_SLAVE_TLMM_NORTH,
  230. SDM845_SLAVE_TLMM_SOUTH,
  231. SDM845_SLAVE_TSIF,
  232. SDM845_SLAVE_UFS_CARD_CFG,
  233. SDM845_SLAVE_UFS_MEM_CFG,
  234. SDM845_SLAVE_USB3_0,
  235. SDM845_SLAVE_USB3_1,
  236. SDM845_SLAVE_VENUS_CFG,
  237. SDM845_SLAVE_VSENSE_CTRL_CFG,
  238. SDM845_SLAVE_CNOC_A2NOC,
  239. SDM845_SLAVE_SERVICE_CNOC
  240. },
  241. };
  242. static struct qcom_icc_node qnm_snoc = {
  243. .name = "qnm_snoc",
  244. .id = SDM845_MASTER_SNOC_CNOC,
  245. .channels = 1,
  246. .buswidth = 8,
  247. .num_links = 42,
  248. .links = { SDM845_SLAVE_A1NOC_CFG,
  249. SDM845_SLAVE_A2NOC_CFG,
  250. SDM845_SLAVE_AOP,
  251. SDM845_SLAVE_AOSS,
  252. SDM845_SLAVE_CAMERA_CFG,
  253. SDM845_SLAVE_CLK_CTL,
  254. SDM845_SLAVE_CDSP_CFG,
  255. SDM845_SLAVE_RBCPR_CX_CFG,
  256. SDM845_SLAVE_CRYPTO_0_CFG,
  257. SDM845_SLAVE_DCC_CFG,
  258. SDM845_SLAVE_CNOC_DDRSS,
  259. SDM845_SLAVE_DISPLAY_CFG,
  260. SDM845_SLAVE_GLM,
  261. SDM845_SLAVE_GFX3D_CFG,
  262. SDM845_SLAVE_IMEM_CFG,
  263. SDM845_SLAVE_IPA_CFG,
  264. SDM845_SLAVE_CNOC_MNOC_CFG,
  265. SDM845_SLAVE_PCIE_0_CFG,
  266. SDM845_SLAVE_PCIE_1_CFG,
  267. SDM845_SLAVE_PDM,
  268. SDM845_SLAVE_SOUTH_PHY_CFG,
  269. SDM845_SLAVE_PIMEM_CFG,
  270. SDM845_SLAVE_PRNG,
  271. SDM845_SLAVE_QDSS_CFG,
  272. SDM845_SLAVE_BLSP_2,
  273. SDM845_SLAVE_BLSP_1,
  274. SDM845_SLAVE_SDCC_2,
  275. SDM845_SLAVE_SDCC_4,
  276. SDM845_SLAVE_SNOC_CFG,
  277. SDM845_SLAVE_SPDM_WRAPPER,
  278. SDM845_SLAVE_SPSS_CFG,
  279. SDM845_SLAVE_TCSR,
  280. SDM845_SLAVE_TLMM_NORTH,
  281. SDM845_SLAVE_TLMM_SOUTH,
  282. SDM845_SLAVE_TSIF,
  283. SDM845_SLAVE_UFS_CARD_CFG,
  284. SDM845_SLAVE_UFS_MEM_CFG,
  285. SDM845_SLAVE_USB3_0,
  286. SDM845_SLAVE_USB3_1,
  287. SDM845_SLAVE_VENUS_CFG,
  288. SDM845_SLAVE_VSENSE_CTRL_CFG,
  289. SDM845_SLAVE_SERVICE_CNOC
  290. },
  291. };
  292. static struct qcom_icc_node xm_qdss_dap = {
  293. .name = "xm_qdss_dap",
  294. .id = SDM845_MASTER_QDSS_DAP,
  295. .channels = 1,
  296. .buswidth = 8,
  297. .num_links = 43,
  298. .links = { SDM845_SLAVE_A1NOC_CFG,
  299. SDM845_SLAVE_A2NOC_CFG,
  300. SDM845_SLAVE_AOP,
  301. SDM845_SLAVE_AOSS,
  302. SDM845_SLAVE_CAMERA_CFG,
  303. SDM845_SLAVE_CLK_CTL,
  304. SDM845_SLAVE_CDSP_CFG,
  305. SDM845_SLAVE_RBCPR_CX_CFG,
  306. SDM845_SLAVE_CRYPTO_0_CFG,
  307. SDM845_SLAVE_DCC_CFG,
  308. SDM845_SLAVE_CNOC_DDRSS,
  309. SDM845_SLAVE_DISPLAY_CFG,
  310. SDM845_SLAVE_GLM,
  311. SDM845_SLAVE_GFX3D_CFG,
  312. SDM845_SLAVE_IMEM_CFG,
  313. SDM845_SLAVE_IPA_CFG,
  314. SDM845_SLAVE_CNOC_MNOC_CFG,
  315. SDM845_SLAVE_PCIE_0_CFG,
  316. SDM845_SLAVE_PCIE_1_CFG,
  317. SDM845_SLAVE_PDM,
  318. SDM845_SLAVE_SOUTH_PHY_CFG,
  319. SDM845_SLAVE_PIMEM_CFG,
  320. SDM845_SLAVE_PRNG,
  321. SDM845_SLAVE_QDSS_CFG,
  322. SDM845_SLAVE_BLSP_2,
  323. SDM845_SLAVE_BLSP_1,
  324. SDM845_SLAVE_SDCC_2,
  325. SDM845_SLAVE_SDCC_4,
  326. SDM845_SLAVE_SNOC_CFG,
  327. SDM845_SLAVE_SPDM_WRAPPER,
  328. SDM845_SLAVE_SPSS_CFG,
  329. SDM845_SLAVE_TCSR,
  330. SDM845_SLAVE_TLMM_NORTH,
  331. SDM845_SLAVE_TLMM_SOUTH,
  332. SDM845_SLAVE_TSIF,
  333. SDM845_SLAVE_UFS_CARD_CFG,
  334. SDM845_SLAVE_UFS_MEM_CFG,
  335. SDM845_SLAVE_USB3_0,
  336. SDM845_SLAVE_USB3_1,
  337. SDM845_SLAVE_VENUS_CFG,
  338. SDM845_SLAVE_VSENSE_CTRL_CFG,
  339. SDM845_SLAVE_CNOC_A2NOC,
  340. SDM845_SLAVE_SERVICE_CNOC
  341. },
  342. };
  343. static struct qcom_icc_node qhm_cnoc = {
  344. .name = "qhm_cnoc",
  345. .id = SDM845_MASTER_CNOC_DC_NOC,
  346. .channels = 1,
  347. .buswidth = 4,
  348. .num_links = 2,
  349. .links = { SDM845_SLAVE_LLCC_CFG,
  350. SDM845_SLAVE_MEM_NOC_CFG
  351. },
  352. };
  353. static struct qcom_icc_node acm_l3 = {
  354. .name = "acm_l3",
  355. .id = SDM845_MASTER_APPSS_PROC,
  356. .channels = 1,
  357. .buswidth = 16,
  358. .num_links = 3,
  359. .links = { SDM845_SLAVE_GNOC_SNOC,
  360. SDM845_SLAVE_GNOC_MEM_NOC,
  361. SDM845_SLAVE_SERVICE_GNOC
  362. },
  363. };
  364. static struct qcom_icc_node pm_gnoc_cfg = {
  365. .name = "pm_gnoc_cfg",
  366. .id = SDM845_MASTER_GNOC_CFG,
  367. .channels = 1,
  368. .buswidth = 4,
  369. .num_links = 1,
  370. .links = { SDM845_SLAVE_SERVICE_GNOC },
  371. };
  372. static struct qcom_icc_node llcc_mc = {
  373. .name = "llcc_mc",
  374. .id = SDM845_MASTER_LLCC,
  375. .channels = 4,
  376. .buswidth = 4,
  377. .num_links = 1,
  378. .links = { SDM845_SLAVE_EBI1 },
  379. };
  380. static struct qcom_icc_node acm_tcu = {
  381. .name = "acm_tcu",
  382. .id = SDM845_MASTER_TCU_0,
  383. .channels = 1,
  384. .buswidth = 8,
  385. .num_links = 3,
  386. .links = { SDM845_SLAVE_MEM_NOC_GNOC,
  387. SDM845_SLAVE_LLCC,
  388. SDM845_SLAVE_MEM_NOC_SNOC
  389. },
  390. };
  391. static struct qcom_icc_node qhm_memnoc_cfg = {
  392. .name = "qhm_memnoc_cfg",
  393. .id = SDM845_MASTER_MEM_NOC_CFG,
  394. .channels = 1,
  395. .buswidth = 4,
  396. .num_links = 2,
  397. .links = { SDM845_SLAVE_MSS_PROC_MS_MPU_CFG,
  398. SDM845_SLAVE_SERVICE_MEM_NOC
  399. },
  400. };
  401. static struct qcom_icc_node qnm_apps = {
  402. .name = "qnm_apps",
  403. .id = SDM845_MASTER_GNOC_MEM_NOC,
  404. .channels = 2,
  405. .buswidth = 32,
  406. .num_links = 1,
  407. .links = { SDM845_SLAVE_LLCC },
  408. };
  409. static struct qcom_icc_node qnm_mnoc_hf = {
  410. .name = "qnm_mnoc_hf",
  411. .id = SDM845_MASTER_MNOC_HF_MEM_NOC,
  412. .channels = 2,
  413. .buswidth = 32,
  414. .num_links = 2,
  415. .links = { SDM845_SLAVE_MEM_NOC_GNOC,
  416. SDM845_SLAVE_LLCC
  417. },
  418. };
  419. static struct qcom_icc_node qnm_mnoc_sf = {
  420. .name = "qnm_mnoc_sf",
  421. .id = SDM845_MASTER_MNOC_SF_MEM_NOC,
  422. .channels = 1,
  423. .buswidth = 32,
  424. .num_links = 3,
  425. .links = { SDM845_SLAVE_MEM_NOC_GNOC,
  426. SDM845_SLAVE_LLCC,
  427. SDM845_SLAVE_MEM_NOC_SNOC
  428. },
  429. };
  430. static struct qcom_icc_node qnm_snoc_gc = {
  431. .name = "qnm_snoc_gc",
  432. .id = SDM845_MASTER_SNOC_GC_MEM_NOC,
  433. .channels = 1,
  434. .buswidth = 8,
  435. .num_links = 1,
  436. .links = { SDM845_SLAVE_LLCC },
  437. };
  438. static struct qcom_icc_node qnm_snoc_sf = {
  439. .name = "qnm_snoc_sf",
  440. .id = SDM845_MASTER_SNOC_SF_MEM_NOC,
  441. .channels = 1,
  442. .buswidth = 16,
  443. .num_links = 2,
  444. .links = { SDM845_SLAVE_MEM_NOC_GNOC,
  445. SDM845_SLAVE_LLCC
  446. },
  447. };
  448. static struct qcom_icc_node qxm_gpu = {
  449. .name = "qxm_gpu",
  450. .id = SDM845_MASTER_GFX3D,
  451. .channels = 2,
  452. .buswidth = 32,
  453. .num_links = 3,
  454. .links = { SDM845_SLAVE_MEM_NOC_GNOC,
  455. SDM845_SLAVE_LLCC,
  456. SDM845_SLAVE_MEM_NOC_SNOC
  457. },
  458. };
  459. static struct qcom_icc_node qhm_mnoc_cfg = {
  460. .name = "qhm_mnoc_cfg",
  461. .id = SDM845_MASTER_CNOC_MNOC_CFG,
  462. .channels = 1,
  463. .buswidth = 4,
  464. .num_links = 1,
  465. .links = { SDM845_SLAVE_SERVICE_MNOC },
  466. };
  467. static struct qcom_icc_node qxm_camnoc_hf0 = {
  468. .name = "qxm_camnoc_hf0",
  469. .id = SDM845_MASTER_CAMNOC_HF0,
  470. .channels = 1,
  471. .buswidth = 32,
  472. .num_links = 1,
  473. .links = { SDM845_SLAVE_MNOC_HF_MEM_NOC },
  474. };
  475. static struct qcom_icc_node qxm_camnoc_hf1 = {
  476. .name = "qxm_camnoc_hf1",
  477. .id = SDM845_MASTER_CAMNOC_HF1,
  478. .channels = 1,
  479. .buswidth = 32,
  480. .num_links = 1,
  481. .links = { SDM845_SLAVE_MNOC_HF_MEM_NOC },
  482. };
  483. static struct qcom_icc_node qxm_camnoc_sf = {
  484. .name = "qxm_camnoc_sf",
  485. .id = SDM845_MASTER_CAMNOC_SF,
  486. .channels = 1,
  487. .buswidth = 32,
  488. .num_links = 1,
  489. .links = { SDM845_SLAVE_MNOC_SF_MEM_NOC },
  490. };
  491. static struct qcom_icc_node qxm_mdp0 = {
  492. .name = "qxm_mdp0",
  493. .id = SDM845_MASTER_MDP0,
  494. .channels = 1,
  495. .buswidth = 32,
  496. .num_links = 1,
  497. .links = { SDM845_SLAVE_MNOC_HF_MEM_NOC },
  498. };
  499. static struct qcom_icc_node qxm_mdp1 = {
  500. .name = "qxm_mdp1",
  501. .id = SDM845_MASTER_MDP1,
  502. .channels = 1,
  503. .buswidth = 32,
  504. .num_links = 1,
  505. .links = { SDM845_SLAVE_MNOC_HF_MEM_NOC },
  506. };
  507. static struct qcom_icc_node qxm_rot = {
  508. .name = "qxm_rot",
  509. .id = SDM845_MASTER_ROTATOR,
  510. .channels = 1,
  511. .buswidth = 32,
  512. .num_links = 1,
  513. .links = { SDM845_SLAVE_MNOC_SF_MEM_NOC },
  514. };
  515. static struct qcom_icc_node qxm_venus0 = {
  516. .name = "qxm_venus0",
  517. .id = SDM845_MASTER_VIDEO_P0,
  518. .channels = 1,
  519. .buswidth = 32,
  520. .num_links = 1,
  521. .links = { SDM845_SLAVE_MNOC_SF_MEM_NOC },
  522. };
  523. static struct qcom_icc_node qxm_venus1 = {
  524. .name = "qxm_venus1",
  525. .id = SDM845_MASTER_VIDEO_P1,
  526. .channels = 1,
  527. .buswidth = 32,
  528. .num_links = 1,
  529. .links = { SDM845_SLAVE_MNOC_SF_MEM_NOC },
  530. };
  531. static struct qcom_icc_node qxm_venus_arm9 = {
  532. .name = "qxm_venus_arm9",
  533. .id = SDM845_MASTER_VIDEO_PROC,
  534. .channels = 1,
  535. .buswidth = 8,
  536. .num_links = 1,
  537. .links = { SDM845_SLAVE_MNOC_SF_MEM_NOC },
  538. };
  539. static struct qcom_icc_node qhm_snoc_cfg = {
  540. .name = "qhm_snoc_cfg",
  541. .id = SDM845_MASTER_SNOC_CFG,
  542. .channels = 1,
  543. .buswidth = 4,
  544. .num_links = 1,
  545. .links = { SDM845_SLAVE_SERVICE_SNOC },
  546. };
  547. static struct qcom_icc_node qnm_aggre1_noc = {
  548. .name = "qnm_aggre1_noc",
  549. .id = SDM845_MASTER_A1NOC_SNOC,
  550. .channels = 1,
  551. .buswidth = 16,
  552. .num_links = 6,
  553. .links = { SDM845_SLAVE_APPSS,
  554. SDM845_SLAVE_SNOC_CNOC,
  555. SDM845_SLAVE_SNOC_MEM_NOC_SF,
  556. SDM845_SLAVE_IMEM,
  557. SDM845_SLAVE_PIMEM,
  558. SDM845_SLAVE_QDSS_STM
  559. },
  560. };
  561. static struct qcom_icc_node qnm_aggre2_noc = {
  562. .name = "qnm_aggre2_noc",
  563. .id = SDM845_MASTER_A2NOC_SNOC,
  564. .channels = 1,
  565. .buswidth = 16,
  566. .num_links = 9,
  567. .links = { SDM845_SLAVE_APPSS,
  568. SDM845_SLAVE_SNOC_CNOC,
  569. SDM845_SLAVE_SNOC_MEM_NOC_SF,
  570. SDM845_SLAVE_IMEM,
  571. SDM845_SLAVE_PCIE_0,
  572. SDM845_SLAVE_PCIE_1,
  573. SDM845_SLAVE_PIMEM,
  574. SDM845_SLAVE_QDSS_STM,
  575. SDM845_SLAVE_TCU
  576. },
  577. };
  578. static struct qcom_icc_node qnm_gladiator_sodv = {
  579. .name = "qnm_gladiator_sodv",
  580. .id = SDM845_MASTER_GNOC_SNOC,
  581. .channels = 1,
  582. .buswidth = 8,
  583. .num_links = 8,
  584. .links = { SDM845_SLAVE_APPSS,
  585. SDM845_SLAVE_SNOC_CNOC,
  586. SDM845_SLAVE_IMEM,
  587. SDM845_SLAVE_PCIE_0,
  588. SDM845_SLAVE_PCIE_1,
  589. SDM845_SLAVE_PIMEM,
  590. SDM845_SLAVE_QDSS_STM,
  591. SDM845_SLAVE_TCU
  592. },
  593. };
  594. static struct qcom_icc_node qnm_memnoc = {
  595. .name = "qnm_memnoc",
  596. .id = SDM845_MASTER_MEM_NOC_SNOC,
  597. .channels = 1,
  598. .buswidth = 8,
  599. .num_links = 5,
  600. .links = { SDM845_SLAVE_APPSS,
  601. SDM845_SLAVE_SNOC_CNOC,
  602. SDM845_SLAVE_IMEM,
  603. SDM845_SLAVE_PIMEM,
  604. SDM845_SLAVE_QDSS_STM
  605. },
  606. };
  607. static struct qcom_icc_node qnm_pcie_anoc = {
  608. .name = "qnm_pcie_anoc",
  609. .id = SDM845_MASTER_ANOC_PCIE_SNOC,
  610. .channels = 1,
  611. .buswidth = 16,
  612. .num_links = 5,
  613. .links = { SDM845_SLAVE_APPSS,
  614. SDM845_SLAVE_SNOC_CNOC,
  615. SDM845_SLAVE_SNOC_MEM_NOC_SF,
  616. SDM845_SLAVE_IMEM,
  617. SDM845_SLAVE_QDSS_STM
  618. },
  619. };
  620. static struct qcom_icc_node qxm_pimem = {
  621. .name = "qxm_pimem",
  622. .id = SDM845_MASTER_PIMEM,
  623. .channels = 1,
  624. .buswidth = 8,
  625. .num_links = 2,
  626. .links = { SDM845_SLAVE_SNOC_MEM_NOC_GC,
  627. SDM845_SLAVE_IMEM
  628. },
  629. };
  630. static struct qcom_icc_node xm_gic = {
  631. .name = "xm_gic",
  632. .id = SDM845_MASTER_GIC,
  633. .channels = 1,
  634. .buswidth = 8,
  635. .num_links = 2,
  636. .links = { SDM845_SLAVE_SNOC_MEM_NOC_GC,
  637. SDM845_SLAVE_IMEM
  638. },
  639. };
  640. static struct qcom_icc_node qns_a1noc_snoc = {
  641. .name = "qns_a1noc_snoc",
  642. .id = SDM845_SLAVE_A1NOC_SNOC,
  643. .channels = 1,
  644. .buswidth = 16,
  645. .num_links = 1,
  646. .links = { SDM845_MASTER_A1NOC_SNOC },
  647. };
  648. static struct qcom_icc_node srvc_aggre1_noc = {
  649. .name = "srvc_aggre1_noc",
  650. .id = SDM845_SLAVE_SERVICE_A1NOC,
  651. .channels = 1,
  652. .buswidth = 4,
  653. .num_links = 1,
  654. .links = { 0 },
  655. };
  656. static struct qcom_icc_node qns_pcie_a1noc_snoc = {
  657. .name = "qns_pcie_a1noc_snoc",
  658. .id = SDM845_SLAVE_ANOC_PCIE_A1NOC_SNOC,
  659. .channels = 1,
  660. .buswidth = 16,
  661. .num_links = 1,
  662. .links = { SDM845_MASTER_ANOC_PCIE_SNOC },
  663. };
  664. static struct qcom_icc_node qns_a2noc_snoc = {
  665. .name = "qns_a2noc_snoc",
  666. .id = SDM845_SLAVE_A2NOC_SNOC,
  667. .channels = 1,
  668. .buswidth = 16,
  669. .num_links = 1,
  670. .links = { SDM845_MASTER_A2NOC_SNOC },
  671. };
  672. static struct qcom_icc_node qns_pcie_snoc = {
  673. .name = "qns_pcie_snoc",
  674. .id = SDM845_SLAVE_ANOC_PCIE_SNOC,
  675. .channels = 1,
  676. .buswidth = 16,
  677. .num_links = 1,
  678. .links = { SDM845_MASTER_ANOC_PCIE_SNOC },
  679. };
  680. static struct qcom_icc_node srvc_aggre2_noc = {
  681. .name = "srvc_aggre2_noc",
  682. .id = SDM845_SLAVE_SERVICE_A2NOC,
  683. .channels = 1,
  684. .buswidth = 4,
  685. };
  686. static struct qcom_icc_node qns_camnoc_uncomp = {
  687. .name = "qns_camnoc_uncomp",
  688. .id = SDM845_SLAVE_CAMNOC_UNCOMP,
  689. .channels = 1,
  690. .buswidth = 32,
  691. };
  692. static struct qcom_icc_node qhs_a1_noc_cfg = {
  693. .name = "qhs_a1_noc_cfg",
  694. .id = SDM845_SLAVE_A1NOC_CFG,
  695. .channels = 1,
  696. .buswidth = 4,
  697. .num_links = 1,
  698. .links = { SDM845_MASTER_A1NOC_CFG },
  699. };
  700. static struct qcom_icc_node qhs_a2_noc_cfg = {
  701. .name = "qhs_a2_noc_cfg",
  702. .id = SDM845_SLAVE_A2NOC_CFG,
  703. .channels = 1,
  704. .buswidth = 4,
  705. .num_links = 1,
  706. .links = { SDM845_MASTER_A2NOC_CFG },
  707. };
  708. static struct qcom_icc_node qhs_aop = {
  709. .name = "qhs_aop",
  710. .id = SDM845_SLAVE_AOP,
  711. .channels = 1,
  712. .buswidth = 4,
  713. };
  714. static struct qcom_icc_node qhs_aoss = {
  715. .name = "qhs_aoss",
  716. .id = SDM845_SLAVE_AOSS,
  717. .channels = 1,
  718. .buswidth = 4,
  719. };
  720. static struct qcom_icc_node qhs_camera_cfg = {
  721. .name = "qhs_camera_cfg",
  722. .id = SDM845_SLAVE_CAMERA_CFG,
  723. .channels = 1,
  724. .buswidth = 4,
  725. };
  726. static struct qcom_icc_node qhs_clk_ctl = {
  727. .name = "qhs_clk_ctl",
  728. .id = SDM845_SLAVE_CLK_CTL,
  729. .channels = 1,
  730. .buswidth = 4,
  731. };
  732. static struct qcom_icc_node qhs_compute_dsp_cfg = {
  733. .name = "qhs_compute_dsp_cfg",
  734. .id = SDM845_SLAVE_CDSP_CFG,
  735. .channels = 1,
  736. .buswidth = 4,
  737. };
  738. static struct qcom_icc_node qhs_cpr_cx = {
  739. .name = "qhs_cpr_cx",
  740. .id = SDM845_SLAVE_RBCPR_CX_CFG,
  741. .channels = 1,
  742. .buswidth = 4,
  743. };
  744. static struct qcom_icc_node qhs_crypto0_cfg = {
  745. .name = "qhs_crypto0_cfg",
  746. .id = SDM845_SLAVE_CRYPTO_0_CFG,
  747. .channels = 1,
  748. .buswidth = 4,
  749. };
  750. static struct qcom_icc_node qhs_dcc_cfg = {
  751. .name = "qhs_dcc_cfg",
  752. .id = SDM845_SLAVE_DCC_CFG,
  753. .channels = 1,
  754. .buswidth = 4,
  755. .num_links = 1,
  756. .links = { SDM845_MASTER_CNOC_DC_NOC },
  757. };
  758. static struct qcom_icc_node qhs_ddrss_cfg = {
  759. .name = "qhs_ddrss_cfg",
  760. .id = SDM845_SLAVE_CNOC_DDRSS,
  761. .channels = 1,
  762. .buswidth = 4,
  763. };
  764. static struct qcom_icc_node qhs_display_cfg = {
  765. .name = "qhs_display_cfg",
  766. .id = SDM845_SLAVE_DISPLAY_CFG,
  767. .channels = 1,
  768. .buswidth = 4,
  769. };
  770. static struct qcom_icc_node qhs_glm = {
  771. .name = "qhs_glm",
  772. .id = SDM845_SLAVE_GLM,
  773. .channels = 1,
  774. .buswidth = 4,
  775. };
  776. static struct qcom_icc_node qhs_gpuss_cfg = {
  777. .name = "qhs_gpuss_cfg",
  778. .id = SDM845_SLAVE_GFX3D_CFG,
  779. .channels = 1,
  780. .buswidth = 8,
  781. };
  782. static struct qcom_icc_node qhs_imem_cfg = {
  783. .name = "qhs_imem_cfg",
  784. .id = SDM845_SLAVE_IMEM_CFG,
  785. .channels = 1,
  786. .buswidth = 4,
  787. };
  788. static struct qcom_icc_node qhs_ipa = {
  789. .name = "qhs_ipa",
  790. .id = SDM845_SLAVE_IPA_CFG,
  791. .channels = 1,
  792. .buswidth = 4,
  793. };
  794. static struct qcom_icc_node qhs_mnoc_cfg = {
  795. .name = "qhs_mnoc_cfg",
  796. .id = SDM845_SLAVE_CNOC_MNOC_CFG,
  797. .channels = 1,
  798. .buswidth = 4,
  799. .num_links = 1,
  800. .links = { SDM845_MASTER_CNOC_MNOC_CFG },
  801. };
  802. static struct qcom_icc_node qhs_pcie0_cfg = {
  803. .name = "qhs_pcie0_cfg",
  804. .id = SDM845_SLAVE_PCIE_0_CFG,
  805. .channels = 1,
  806. .buswidth = 4,
  807. };
  808. static struct qcom_icc_node qhs_pcie_gen3_cfg = {
  809. .name = "qhs_pcie_gen3_cfg",
  810. .id = SDM845_SLAVE_PCIE_1_CFG,
  811. .channels = 1,
  812. .buswidth = 4,
  813. };
  814. static struct qcom_icc_node qhs_pdm = {
  815. .name = "qhs_pdm",
  816. .id = SDM845_SLAVE_PDM,
  817. .channels = 1,
  818. .buswidth = 4,
  819. };
  820. static struct qcom_icc_node qhs_phy_refgen_south = {
  821. .name = "qhs_phy_refgen_south",
  822. .id = SDM845_SLAVE_SOUTH_PHY_CFG,
  823. .channels = 1,
  824. .buswidth = 4,
  825. };
  826. static struct qcom_icc_node qhs_pimem_cfg = {
  827. .name = "qhs_pimem_cfg",
  828. .id = SDM845_SLAVE_PIMEM_CFG,
  829. .channels = 1,
  830. .buswidth = 4,
  831. };
  832. static struct qcom_icc_node qhs_prng = {
  833. .name = "qhs_prng",
  834. .id = SDM845_SLAVE_PRNG,
  835. .channels = 1,
  836. .buswidth = 4,
  837. };
  838. static struct qcom_icc_node qhs_qdss_cfg = {
  839. .name = "qhs_qdss_cfg",
  840. .id = SDM845_SLAVE_QDSS_CFG,
  841. .channels = 1,
  842. .buswidth = 4,
  843. };
  844. static struct qcom_icc_node qhs_qupv3_north = {
  845. .name = "qhs_qupv3_north",
  846. .id = SDM845_SLAVE_BLSP_2,
  847. .channels = 1,
  848. .buswidth = 4,
  849. };
  850. static struct qcom_icc_node qhs_qupv3_south = {
  851. .name = "qhs_qupv3_south",
  852. .id = SDM845_SLAVE_BLSP_1,
  853. .channels = 1,
  854. .buswidth = 4,
  855. };
  856. static struct qcom_icc_node qhs_sdc2 = {
  857. .name = "qhs_sdc2",
  858. .id = SDM845_SLAVE_SDCC_2,
  859. .channels = 1,
  860. .buswidth = 4,
  861. };
  862. static struct qcom_icc_node qhs_sdc4 = {
  863. .name = "qhs_sdc4",
  864. .id = SDM845_SLAVE_SDCC_4,
  865. .channels = 1,
  866. .buswidth = 4,
  867. };
  868. static struct qcom_icc_node qhs_snoc_cfg = {
  869. .name = "qhs_snoc_cfg",
  870. .id = SDM845_SLAVE_SNOC_CFG,
  871. .channels = 1,
  872. .buswidth = 4,
  873. .num_links = 1,
  874. .links = { SDM845_MASTER_SNOC_CFG },
  875. };
  876. static struct qcom_icc_node qhs_spdm = {
  877. .name = "qhs_spdm",
  878. .id = SDM845_SLAVE_SPDM_WRAPPER,
  879. .channels = 1,
  880. .buswidth = 4,
  881. };
  882. static struct qcom_icc_node qhs_spss_cfg = {
  883. .name = "qhs_spss_cfg",
  884. .id = SDM845_SLAVE_SPSS_CFG,
  885. .channels = 1,
  886. .buswidth = 4,
  887. };
  888. static struct qcom_icc_node qhs_tcsr = {
  889. .name = "qhs_tcsr",
  890. .id = SDM845_SLAVE_TCSR,
  891. .channels = 1,
  892. .buswidth = 4,
  893. };
  894. static struct qcom_icc_node qhs_tlmm_north = {
  895. .name = "qhs_tlmm_north",
  896. .id = SDM845_SLAVE_TLMM_NORTH,
  897. .channels = 1,
  898. .buswidth = 4,
  899. };
  900. static struct qcom_icc_node qhs_tlmm_south = {
  901. .name = "qhs_tlmm_south",
  902. .id = SDM845_SLAVE_TLMM_SOUTH,
  903. .channels = 1,
  904. .buswidth = 4,
  905. };
  906. static struct qcom_icc_node qhs_tsif = {
  907. .name = "qhs_tsif",
  908. .id = SDM845_SLAVE_TSIF,
  909. .channels = 1,
  910. .buswidth = 4,
  911. };
  912. static struct qcom_icc_node qhs_ufs_card_cfg = {
  913. .name = "qhs_ufs_card_cfg",
  914. .id = SDM845_SLAVE_UFS_CARD_CFG,
  915. .channels = 1,
  916. .buswidth = 4,
  917. };
  918. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  919. .name = "qhs_ufs_mem_cfg",
  920. .id = SDM845_SLAVE_UFS_MEM_CFG,
  921. .channels = 1,
  922. .buswidth = 4,
  923. };
  924. static struct qcom_icc_node qhs_usb3_0 = {
  925. .name = "qhs_usb3_0",
  926. .id = SDM845_SLAVE_USB3_0,
  927. .channels = 1,
  928. .buswidth = 4,
  929. };
  930. static struct qcom_icc_node qhs_usb3_1 = {
  931. .name = "qhs_usb3_1",
  932. .id = SDM845_SLAVE_USB3_1,
  933. .channels = 1,
  934. .buswidth = 4,
  935. };
  936. static struct qcom_icc_node qhs_venus_cfg = {
  937. .name = "qhs_venus_cfg",
  938. .id = SDM845_SLAVE_VENUS_CFG,
  939. .channels = 1,
  940. .buswidth = 4,
  941. };
  942. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  943. .name = "qhs_vsense_ctrl_cfg",
  944. .id = SDM845_SLAVE_VSENSE_CTRL_CFG,
  945. .channels = 1,
  946. .buswidth = 4,
  947. };
  948. static struct qcom_icc_node qns_cnoc_a2noc = {
  949. .name = "qns_cnoc_a2noc",
  950. .id = SDM845_SLAVE_CNOC_A2NOC,
  951. .channels = 1,
  952. .buswidth = 8,
  953. .num_links = 1,
  954. .links = { SDM845_MASTER_CNOC_A2NOC },
  955. };
  956. static struct qcom_icc_node srvc_cnoc = {
  957. .name = "srvc_cnoc",
  958. .id = SDM845_SLAVE_SERVICE_CNOC,
  959. .channels = 1,
  960. .buswidth = 4,
  961. };
  962. static struct qcom_icc_node qhs_llcc = {
  963. .name = "qhs_llcc",
  964. .id = SDM845_SLAVE_LLCC_CFG,
  965. .channels = 1,
  966. .buswidth = 4,
  967. };
  968. static struct qcom_icc_node qhs_memnoc = {
  969. .name = "qhs_memnoc",
  970. .id = SDM845_SLAVE_MEM_NOC_CFG,
  971. .channels = 1,
  972. .buswidth = 4,
  973. .num_links = 1,
  974. .links = { SDM845_MASTER_MEM_NOC_CFG },
  975. };
  976. static struct qcom_icc_node qns_gladiator_sodv = {
  977. .name = "qns_gladiator_sodv",
  978. .id = SDM845_SLAVE_GNOC_SNOC,
  979. .channels = 1,
  980. .buswidth = 8,
  981. .num_links = 1,
  982. .links = { SDM845_MASTER_GNOC_SNOC },
  983. };
  984. static struct qcom_icc_node qns_gnoc_memnoc = {
  985. .name = "qns_gnoc_memnoc",
  986. .id = SDM845_SLAVE_GNOC_MEM_NOC,
  987. .channels = 2,
  988. .buswidth = 32,
  989. .num_links = 1,
  990. .links = { SDM845_MASTER_GNOC_MEM_NOC },
  991. };
  992. static struct qcom_icc_node srvc_gnoc = {
  993. .name = "srvc_gnoc",
  994. .id = SDM845_SLAVE_SERVICE_GNOC,
  995. .channels = 1,
  996. .buswidth = 4,
  997. };
  998. static struct qcom_icc_node ebi = {
  999. .name = "ebi",
  1000. .id = SDM845_SLAVE_EBI1,
  1001. .channels = 4,
  1002. .buswidth = 4,
  1003. };
  1004. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  1005. .name = "qhs_mdsp_ms_mpu_cfg",
  1006. .id = SDM845_SLAVE_MSS_PROC_MS_MPU_CFG,
  1007. .channels = 1,
  1008. .buswidth = 4,
  1009. };
  1010. static struct qcom_icc_node qns_apps_io = {
  1011. .name = "qns_apps_io",
  1012. .id = SDM845_SLAVE_MEM_NOC_GNOC,
  1013. .channels = 1,
  1014. .buswidth = 32,
  1015. };
  1016. static struct qcom_icc_node qns_llcc = {
  1017. .name = "qns_llcc",
  1018. .id = SDM845_SLAVE_LLCC,
  1019. .channels = 4,
  1020. .buswidth = 16,
  1021. .num_links = 1,
  1022. .links = { SDM845_MASTER_LLCC },
  1023. };
  1024. static struct qcom_icc_node qns_memnoc_snoc = {
  1025. .name = "qns_memnoc_snoc",
  1026. .id = SDM845_SLAVE_MEM_NOC_SNOC,
  1027. .channels = 1,
  1028. .buswidth = 8,
  1029. .num_links = 1,
  1030. .links = { SDM845_MASTER_MEM_NOC_SNOC },
  1031. };
  1032. static struct qcom_icc_node srvc_memnoc = {
  1033. .name = "srvc_memnoc",
  1034. .id = SDM845_SLAVE_SERVICE_MEM_NOC,
  1035. .channels = 1,
  1036. .buswidth = 4,
  1037. };
  1038. static struct qcom_icc_node qns2_mem_noc = {
  1039. .name = "qns2_mem_noc",
  1040. .id = SDM845_SLAVE_MNOC_SF_MEM_NOC,
  1041. .channels = 1,
  1042. .buswidth = 32,
  1043. .num_links = 1,
  1044. .links = { SDM845_MASTER_MNOC_SF_MEM_NOC },
  1045. };
  1046. static struct qcom_icc_node qns_mem_noc_hf = {
  1047. .name = "qns_mem_noc_hf",
  1048. .id = SDM845_SLAVE_MNOC_HF_MEM_NOC,
  1049. .channels = 2,
  1050. .buswidth = 32,
  1051. .num_links = 1,
  1052. .links = { SDM845_MASTER_MNOC_HF_MEM_NOC },
  1053. };
  1054. static struct qcom_icc_node srvc_mnoc = {
  1055. .name = "srvc_mnoc",
  1056. .id = SDM845_SLAVE_SERVICE_MNOC,
  1057. .channels = 1,
  1058. .buswidth = 4,
  1059. };
  1060. static struct qcom_icc_node qhs_apss = {
  1061. .name = "qhs_apss",
  1062. .id = SDM845_SLAVE_APPSS,
  1063. .channels = 1,
  1064. .buswidth = 8,
  1065. };
  1066. static struct qcom_icc_node qns_cnoc = {
  1067. .name = "qns_cnoc",
  1068. .id = SDM845_SLAVE_SNOC_CNOC,
  1069. .channels = 1,
  1070. .buswidth = 8,
  1071. .num_links = 1,
  1072. .links = { SDM845_MASTER_SNOC_CNOC },
  1073. };
  1074. static struct qcom_icc_node qns_memnoc_gc = {
  1075. .name = "qns_memnoc_gc",
  1076. .id = SDM845_SLAVE_SNOC_MEM_NOC_GC,
  1077. .channels = 1,
  1078. .buswidth = 8,
  1079. .num_links = 1,
  1080. .links = { SDM845_MASTER_SNOC_GC_MEM_NOC },
  1081. };
  1082. static struct qcom_icc_node qns_memnoc_sf = {
  1083. .name = "qns_memnoc_sf",
  1084. .id = SDM845_SLAVE_SNOC_MEM_NOC_SF,
  1085. .channels = 1,
  1086. .buswidth = 16,
  1087. .num_links = 1,
  1088. .links = { SDM845_MASTER_SNOC_SF_MEM_NOC },
  1089. };
  1090. static struct qcom_icc_node qxs_imem = {
  1091. .name = "qxs_imem",
  1092. .id = SDM845_SLAVE_IMEM,
  1093. .channels = 1,
  1094. .buswidth = 8,
  1095. };
  1096. static struct qcom_icc_node qxs_pcie = {
  1097. .name = "qxs_pcie",
  1098. .id = SDM845_SLAVE_PCIE_0,
  1099. .channels = 1,
  1100. .buswidth = 8,
  1101. };
  1102. static struct qcom_icc_node qxs_pcie_gen3 = {
  1103. .name = "qxs_pcie_gen3",
  1104. .id = SDM845_SLAVE_PCIE_1,
  1105. .channels = 1,
  1106. .buswidth = 8,
  1107. };
  1108. static struct qcom_icc_node qxs_pimem = {
  1109. .name = "qxs_pimem",
  1110. .id = SDM845_SLAVE_PIMEM,
  1111. .channels = 1,
  1112. .buswidth = 8,
  1113. };
  1114. static struct qcom_icc_node srvc_snoc = {
  1115. .name = "srvc_snoc",
  1116. .id = SDM845_SLAVE_SERVICE_SNOC,
  1117. .channels = 1,
  1118. .buswidth = 4,
  1119. };
  1120. static struct qcom_icc_node xs_qdss_stm = {
  1121. .name = "xs_qdss_stm",
  1122. .id = SDM845_SLAVE_QDSS_STM,
  1123. .channels = 1,
  1124. .buswidth = 4,
  1125. };
  1126. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1127. .name = "xs_sys_tcu_cfg",
  1128. .id = SDM845_SLAVE_TCU,
  1129. .channels = 1,
  1130. .buswidth = 8,
  1131. };
  1132. static struct qcom_icc_bcm bcm_acv = {
  1133. .name = "ACV",
  1134. .enable_mask = BIT(3),
  1135. .keepalive = false,
  1136. .num_nodes = 1,
  1137. .nodes = { &ebi },
  1138. };
  1139. static struct qcom_icc_bcm bcm_mc0 = {
  1140. .name = "MC0",
  1141. .keepalive = true,
  1142. .num_nodes = 1,
  1143. .nodes = { &ebi },
  1144. };
  1145. static struct qcom_icc_bcm bcm_sh0 = {
  1146. .name = "SH0",
  1147. .keepalive = true,
  1148. .num_nodes = 1,
  1149. .nodes = { &qns_llcc },
  1150. };
  1151. static struct qcom_icc_bcm bcm_mm0 = {
  1152. .name = "MM0",
  1153. .keepalive = false,
  1154. .num_nodes = 1,
  1155. .nodes = { &qns_mem_noc_hf },
  1156. };
  1157. static struct qcom_icc_bcm bcm_sh1 = {
  1158. .name = "SH1",
  1159. .keepalive = false,
  1160. .num_nodes = 1,
  1161. .nodes = { &qns_apps_io },
  1162. };
  1163. static struct qcom_icc_bcm bcm_mm1 = {
  1164. .name = "MM1",
  1165. .keepalive = true,
  1166. .num_nodes = 7,
  1167. .nodes = { &qxm_camnoc_hf0_uncomp,
  1168. &qxm_camnoc_hf1_uncomp,
  1169. &qxm_camnoc_sf_uncomp,
  1170. &qxm_camnoc_hf0,
  1171. &qxm_camnoc_hf1,
  1172. &qxm_mdp0,
  1173. &qxm_mdp1
  1174. },
  1175. };
  1176. static struct qcom_icc_bcm bcm_sh2 = {
  1177. .name = "SH2",
  1178. .keepalive = false,
  1179. .num_nodes = 1,
  1180. .nodes = { &qns_memnoc_snoc },
  1181. };
  1182. static struct qcom_icc_bcm bcm_mm2 = {
  1183. .name = "MM2",
  1184. .keepalive = false,
  1185. .num_nodes = 1,
  1186. .nodes = { &qns2_mem_noc },
  1187. };
  1188. static struct qcom_icc_bcm bcm_sh3 = {
  1189. .name = "SH3",
  1190. .keepalive = false,
  1191. .num_nodes = 1,
  1192. .nodes = { &acm_tcu },
  1193. };
  1194. static struct qcom_icc_bcm bcm_mm3 = {
  1195. .name = "MM3",
  1196. .keepalive = false,
  1197. .num_nodes = 5,
  1198. .nodes = { &qxm_camnoc_sf, &qxm_rot, &qxm_venus0, &qxm_venus1, &qxm_venus_arm9 },
  1199. };
  1200. static struct qcom_icc_bcm bcm_sh5 = {
  1201. .name = "SH5",
  1202. .keepalive = false,
  1203. .num_nodes = 1,
  1204. .nodes = { &qnm_apps },
  1205. };
  1206. static struct qcom_icc_bcm bcm_sn0 = {
  1207. .name = "SN0",
  1208. .keepalive = true,
  1209. .num_nodes = 1,
  1210. .nodes = { &qns_memnoc_sf },
  1211. };
  1212. static struct qcom_icc_bcm bcm_ce0 = {
  1213. .name = "CE0",
  1214. .keepalive = false,
  1215. .num_nodes = 1,
  1216. .nodes = { &qxm_crypto },
  1217. };
  1218. static struct qcom_icc_bcm bcm_cn0 = {
  1219. .name = "CN0",
  1220. .keepalive = false,
  1221. .num_nodes = 47,
  1222. .nodes = { &qhm_spdm,
  1223. &qhm_tic,
  1224. &qnm_snoc,
  1225. &xm_qdss_dap,
  1226. &qhs_a1_noc_cfg,
  1227. &qhs_a2_noc_cfg,
  1228. &qhs_aop,
  1229. &qhs_aoss,
  1230. &qhs_camera_cfg,
  1231. &qhs_clk_ctl,
  1232. &qhs_compute_dsp_cfg,
  1233. &qhs_cpr_cx,
  1234. &qhs_crypto0_cfg,
  1235. &qhs_dcc_cfg,
  1236. &qhs_ddrss_cfg,
  1237. &qhs_display_cfg,
  1238. &qhs_glm,
  1239. &qhs_gpuss_cfg,
  1240. &qhs_imem_cfg,
  1241. &qhs_ipa,
  1242. &qhs_mnoc_cfg,
  1243. &qhs_pcie0_cfg,
  1244. &qhs_pcie_gen3_cfg,
  1245. &qhs_pdm,
  1246. &qhs_phy_refgen_south,
  1247. &qhs_pimem_cfg,
  1248. &qhs_prng,
  1249. &qhs_qdss_cfg,
  1250. &qhs_qupv3_north,
  1251. &qhs_qupv3_south,
  1252. &qhs_sdc2,
  1253. &qhs_sdc4,
  1254. &qhs_snoc_cfg,
  1255. &qhs_spdm,
  1256. &qhs_spss_cfg,
  1257. &qhs_tcsr,
  1258. &qhs_tlmm_north,
  1259. &qhs_tlmm_south,
  1260. &qhs_tsif,
  1261. &qhs_ufs_card_cfg,
  1262. &qhs_ufs_mem_cfg,
  1263. &qhs_usb3_0,
  1264. &qhs_usb3_1,
  1265. &qhs_venus_cfg,
  1266. &qhs_vsense_ctrl_cfg,
  1267. &qns_cnoc_a2noc,
  1268. &srvc_cnoc
  1269. },
  1270. };
  1271. static struct qcom_icc_bcm bcm_qup0 = {
  1272. .name = "QUP0",
  1273. .keepalive = false,
  1274. .num_nodes = 2,
  1275. .nodes = { &qhm_qup1, &qhm_qup2 },
  1276. };
  1277. static struct qcom_icc_bcm bcm_sn1 = {
  1278. .name = "SN1",
  1279. .keepalive = false,
  1280. .num_nodes = 1,
  1281. .nodes = { &qxs_imem },
  1282. };
  1283. static struct qcom_icc_bcm bcm_sn2 = {
  1284. .name = "SN2",
  1285. .keepalive = false,
  1286. .num_nodes = 1,
  1287. .nodes = { &qns_memnoc_gc },
  1288. };
  1289. static struct qcom_icc_bcm bcm_sn3 = {
  1290. .name = "SN3",
  1291. .keepalive = false,
  1292. .num_nodes = 1,
  1293. .nodes = { &qns_cnoc },
  1294. };
  1295. static struct qcom_icc_bcm bcm_sn4 = {
  1296. .name = "SN4",
  1297. .keepalive = false,
  1298. .num_nodes = 1,
  1299. .nodes = { &qxm_pimem },
  1300. };
  1301. static struct qcom_icc_bcm bcm_sn5 = {
  1302. .name = "SN5",
  1303. .keepalive = false,
  1304. .num_nodes = 1,
  1305. .nodes = { &xs_qdss_stm },
  1306. };
  1307. static struct qcom_icc_bcm bcm_sn6 = {
  1308. .name = "SN6",
  1309. .keepalive = false,
  1310. .num_nodes = 3,
  1311. .nodes = { &qhs_apss, &srvc_snoc, &xs_sys_tcu_cfg },
  1312. };
  1313. static struct qcom_icc_bcm bcm_sn7 = {
  1314. .name = "SN7",
  1315. .keepalive = false,
  1316. .num_nodes = 1,
  1317. .nodes = { &qxs_pcie },
  1318. };
  1319. static struct qcom_icc_bcm bcm_sn8 = {
  1320. .name = "SN8",
  1321. .keepalive = false,
  1322. .num_nodes = 1,
  1323. .nodes = { &qxs_pcie_gen3 },
  1324. };
  1325. static struct qcom_icc_bcm bcm_sn9 = {
  1326. .name = "SN9",
  1327. .keepalive = false,
  1328. .num_nodes = 2,
  1329. .nodes = { &srvc_aggre1_noc, &qnm_aggre1_noc },
  1330. };
  1331. static struct qcom_icc_bcm bcm_sn11 = {
  1332. .name = "SN11",
  1333. .keepalive = false,
  1334. .num_nodes = 2,
  1335. .nodes = { &srvc_aggre2_noc, &qnm_aggre2_noc },
  1336. };
  1337. static struct qcom_icc_bcm bcm_sn12 = {
  1338. .name = "SN12",
  1339. .keepalive = false,
  1340. .num_nodes = 2,
  1341. .nodes = { &qnm_gladiator_sodv, &xm_gic },
  1342. };
  1343. static struct qcom_icc_bcm bcm_sn14 = {
  1344. .name = "SN14",
  1345. .keepalive = false,
  1346. .num_nodes = 1,
  1347. .nodes = { &qnm_pcie_anoc },
  1348. };
  1349. static struct qcom_icc_bcm bcm_sn15 = {
  1350. .name = "SN15",
  1351. .keepalive = false,
  1352. .num_nodes = 1,
  1353. .nodes = { &qnm_memnoc },
  1354. };
  1355. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1356. &bcm_sn9,
  1357. &bcm_qup0,
  1358. };
  1359. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1360. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1361. [MASTER_TSIF] = &qhm_tsif,
  1362. [MASTER_SDCC_2] = &xm_sdc2,
  1363. [MASTER_SDCC_4] = &xm_sdc4,
  1364. [MASTER_UFS_CARD] = &xm_ufs_card,
  1365. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1366. [MASTER_PCIE_0] = &xm_pcie_0,
  1367. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1368. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1369. [SLAVE_ANOC_PCIE_A1NOC_SNOC] = &qns_pcie_a1noc_snoc,
  1370. [MASTER_QUP_1] = &qhm_qup1,
  1371. };
  1372. static const struct qcom_icc_desc sdm845_aggre1_noc = {
  1373. .nodes = aggre1_noc_nodes,
  1374. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1375. .bcms = aggre1_noc_bcms,
  1376. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1377. };
  1378. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1379. &bcm_ce0,
  1380. &bcm_sn11,
  1381. &bcm_qup0,
  1382. };
  1383. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1384. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1385. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1386. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1387. [MASTER_CRYPTO] = &qxm_crypto,
  1388. [MASTER_IPA] = &qxm_ipa,
  1389. [MASTER_PCIE_1] = &xm_pcie3_1,
  1390. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1391. [MASTER_USB3_0] = &xm_usb3_0,
  1392. [MASTER_USB3_1] = &xm_usb3_1,
  1393. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1394. [SLAVE_ANOC_PCIE_SNOC] = &qns_pcie_snoc,
  1395. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1396. [MASTER_QUP_2] = &qhm_qup2,
  1397. };
  1398. static const struct qcom_icc_desc sdm845_aggre2_noc = {
  1399. .nodes = aggre2_noc_nodes,
  1400. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1401. .bcms = aggre2_noc_bcms,
  1402. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1403. };
  1404. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1405. &bcm_cn0,
  1406. };
  1407. static struct qcom_icc_node * const config_noc_nodes[] = {
  1408. [MASTER_SPDM] = &qhm_spdm,
  1409. [MASTER_TIC] = &qhm_tic,
  1410. [MASTER_SNOC_CNOC] = &qnm_snoc,
  1411. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1412. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1413. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1414. [SLAVE_AOP] = &qhs_aop,
  1415. [SLAVE_AOSS] = &qhs_aoss,
  1416. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1417. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1418. [SLAVE_CDSP_CFG] = &qhs_compute_dsp_cfg,
  1419. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1420. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1421. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1422. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1423. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1424. [SLAVE_GLM] = &qhs_glm,
  1425. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1426. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1427. [SLAVE_IPA_CFG] = &qhs_ipa,
  1428. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1429. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1430. [SLAVE_PCIE_1_CFG] = &qhs_pcie_gen3_cfg,
  1431. [SLAVE_PDM] = &qhs_pdm,
  1432. [SLAVE_SOUTH_PHY_CFG] = &qhs_phy_refgen_south,
  1433. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1434. [SLAVE_PRNG] = &qhs_prng,
  1435. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1436. [SLAVE_BLSP_2] = &qhs_qupv3_north,
  1437. [SLAVE_BLSP_1] = &qhs_qupv3_south,
  1438. [SLAVE_SDCC_2] = &qhs_sdc2,
  1439. [SLAVE_SDCC_4] = &qhs_sdc4,
  1440. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1441. [SLAVE_SPDM_WRAPPER] = &qhs_spdm,
  1442. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1443. [SLAVE_TCSR] = &qhs_tcsr,
  1444. [SLAVE_TLMM_NORTH] = &qhs_tlmm_north,
  1445. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  1446. [SLAVE_TSIF] = &qhs_tsif,
  1447. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  1448. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1449. [SLAVE_USB3_0] = &qhs_usb3_0,
  1450. [SLAVE_USB3_1] = &qhs_usb3_1,
  1451. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1452. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1453. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1454. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1455. };
  1456. static const struct qcom_icc_desc sdm845_config_noc = {
  1457. .nodes = config_noc_nodes,
  1458. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1459. .bcms = config_noc_bcms,
  1460. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1461. };
  1462. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1463. };
  1464. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1465. [MASTER_CNOC_DC_NOC] = &qhm_cnoc,
  1466. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1467. [SLAVE_MEM_NOC_CFG] = &qhs_memnoc,
  1468. };
  1469. static const struct qcom_icc_desc sdm845_dc_noc = {
  1470. .nodes = dc_noc_nodes,
  1471. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1472. .bcms = dc_noc_bcms,
  1473. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1474. };
  1475. static struct qcom_icc_bcm * const gladiator_noc_bcms[] = {
  1476. };
  1477. static struct qcom_icc_node * const gladiator_noc_nodes[] = {
  1478. [MASTER_APPSS_PROC] = &acm_l3,
  1479. [MASTER_GNOC_CFG] = &pm_gnoc_cfg,
  1480. [SLAVE_GNOC_SNOC] = &qns_gladiator_sodv,
  1481. [SLAVE_GNOC_MEM_NOC] = &qns_gnoc_memnoc,
  1482. [SLAVE_SERVICE_GNOC] = &srvc_gnoc,
  1483. };
  1484. static const struct qcom_icc_desc sdm845_gladiator_noc = {
  1485. .nodes = gladiator_noc_nodes,
  1486. .num_nodes = ARRAY_SIZE(gladiator_noc_nodes),
  1487. .bcms = gladiator_noc_bcms,
  1488. .num_bcms = ARRAY_SIZE(gladiator_noc_bcms),
  1489. };
  1490. static struct qcom_icc_bcm * const mem_noc_bcms[] = {
  1491. &bcm_mc0,
  1492. &bcm_acv,
  1493. &bcm_sh0,
  1494. &bcm_sh1,
  1495. &bcm_sh2,
  1496. &bcm_sh3,
  1497. &bcm_sh5,
  1498. };
  1499. static struct qcom_icc_node * const mem_noc_nodes[] = {
  1500. [MASTER_TCU_0] = &acm_tcu,
  1501. [MASTER_MEM_NOC_CFG] = &qhm_memnoc_cfg,
  1502. [MASTER_GNOC_MEM_NOC] = &qnm_apps,
  1503. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1504. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1505. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1506. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1507. [MASTER_GFX3D] = &qxm_gpu,
  1508. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1509. [SLAVE_MEM_NOC_GNOC] = &qns_apps_io,
  1510. [SLAVE_LLCC] = &qns_llcc,
  1511. [SLAVE_MEM_NOC_SNOC] = &qns_memnoc_snoc,
  1512. [SLAVE_SERVICE_MEM_NOC] = &srvc_memnoc,
  1513. [MASTER_LLCC] = &llcc_mc,
  1514. [SLAVE_EBI1] = &ebi,
  1515. };
  1516. static const struct qcom_icc_desc sdm845_mem_noc = {
  1517. .nodes = mem_noc_nodes,
  1518. .num_nodes = ARRAY_SIZE(mem_noc_nodes),
  1519. .bcms = mem_noc_bcms,
  1520. .num_bcms = ARRAY_SIZE(mem_noc_bcms),
  1521. };
  1522. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1523. &bcm_mm0,
  1524. &bcm_mm1,
  1525. &bcm_mm2,
  1526. &bcm_mm3,
  1527. };
  1528. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1529. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1530. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0,
  1531. [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1,
  1532. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1533. [MASTER_MDP0] = &qxm_mdp0,
  1534. [MASTER_MDP1] = &qxm_mdp1,
  1535. [MASTER_ROTATOR] = &qxm_rot,
  1536. [MASTER_VIDEO_P0] = &qxm_venus0,
  1537. [MASTER_VIDEO_P1] = &qxm_venus1,
  1538. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1539. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  1540. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1541. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1542. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1543. [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp,
  1544. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1545. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1546. };
  1547. static const struct qcom_icc_desc sdm845_mmss_noc = {
  1548. .nodes = mmss_noc_nodes,
  1549. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1550. .bcms = mmss_noc_bcms,
  1551. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1552. };
  1553. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1554. &bcm_sn0,
  1555. &bcm_sn1,
  1556. &bcm_sn2,
  1557. &bcm_sn3,
  1558. &bcm_sn4,
  1559. &bcm_sn5,
  1560. &bcm_sn6,
  1561. &bcm_sn7,
  1562. &bcm_sn8,
  1563. &bcm_sn9,
  1564. &bcm_sn11,
  1565. &bcm_sn12,
  1566. &bcm_sn14,
  1567. &bcm_sn15,
  1568. };
  1569. static struct qcom_icc_node * const system_noc_nodes[] = {
  1570. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1571. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1572. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1573. [MASTER_GNOC_SNOC] = &qnm_gladiator_sodv,
  1574. [MASTER_MEM_NOC_SNOC] = &qnm_memnoc,
  1575. [MASTER_ANOC_PCIE_SNOC] = &qnm_pcie_anoc,
  1576. [MASTER_PIMEM] = &qxm_pimem,
  1577. [MASTER_GIC] = &xm_gic,
  1578. [SLAVE_APPSS] = &qhs_apss,
  1579. [SLAVE_SNOC_CNOC] = &qns_cnoc,
  1580. [SLAVE_SNOC_MEM_NOC_GC] = &qns_memnoc_gc,
  1581. [SLAVE_SNOC_MEM_NOC_SF] = &qns_memnoc_sf,
  1582. [SLAVE_IMEM] = &qxs_imem,
  1583. [SLAVE_PCIE_0] = &qxs_pcie,
  1584. [SLAVE_PCIE_1] = &qxs_pcie_gen3,
  1585. [SLAVE_PIMEM] = &qxs_pimem,
  1586. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1587. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1588. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1589. };
  1590. static const struct qcom_icc_desc sdm845_system_noc = {
  1591. .nodes = system_noc_nodes,
  1592. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1593. .bcms = system_noc_bcms,
  1594. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1595. };
  1596. static const struct of_device_id qnoc_of_match[] = {
  1597. { .compatible = "qcom,sdm845-aggre1-noc",
  1598. .data = &sdm845_aggre1_noc},
  1599. { .compatible = "qcom,sdm845-aggre2-noc",
  1600. .data = &sdm845_aggre2_noc},
  1601. { .compatible = "qcom,sdm845-config-noc",
  1602. .data = &sdm845_config_noc},
  1603. { .compatible = "qcom,sdm845-dc-noc",
  1604. .data = &sdm845_dc_noc},
  1605. { .compatible = "qcom,sdm845-gladiator-noc",
  1606. .data = &sdm845_gladiator_noc},
  1607. { .compatible = "qcom,sdm845-mem-noc",
  1608. .data = &sdm845_mem_noc},
  1609. { .compatible = "qcom,sdm845-mmss-noc",
  1610. .data = &sdm845_mmss_noc},
  1611. { .compatible = "qcom,sdm845-system-noc",
  1612. .data = &sdm845_system_noc},
  1613. { }
  1614. };
  1615. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1616. static struct platform_driver qnoc_driver = {
  1617. .probe = qcom_icc_rpmh_probe,
  1618. .remove_new = qcom_icc_rpmh_remove,
  1619. .driver = {
  1620. .name = "qnoc-sdm845",
  1621. .of_match_table = qnoc_of_match,
  1622. .sync_state = icc_sync_state,
  1623. },
  1624. };
  1625. module_platform_driver(qnoc_driver);
  1626. MODULE_AUTHOR("David Dai <daidavid1@codeaurora.org>");
  1627. MODULE_DESCRIPTION("Qualcomm sdm845 NoC driver");
  1628. MODULE_LICENSE("GPL v2");