sm8150.c 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sm8150.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #include "sm8150.h"
  16. static struct qcom_icc_node qhm_a1noc_cfg = {
  17. .name = "qhm_a1noc_cfg",
  18. .id = SM8150_MASTER_A1NOC_CFG,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SM8150_SLAVE_SERVICE_A1NOC },
  23. };
  24. static struct qcom_icc_node qhm_qup0 = {
  25. .name = "qhm_qup0",
  26. .id = SM8150_MASTER_QUP_0,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SM8150_A1NOC_SNOC_SLV },
  31. };
  32. static struct qcom_icc_node xm_emac = {
  33. .name = "xm_emac",
  34. .id = SM8150_MASTER_EMAC,
  35. .channels = 1,
  36. .buswidth = 8,
  37. .num_links = 1,
  38. .links = { SM8150_A1NOC_SNOC_SLV },
  39. };
  40. static struct qcom_icc_node xm_ufs_mem = {
  41. .name = "xm_ufs_mem",
  42. .id = SM8150_MASTER_UFS_MEM,
  43. .channels = 1,
  44. .buswidth = 8,
  45. .num_links = 1,
  46. .links = { SM8150_A1NOC_SNOC_SLV },
  47. };
  48. static struct qcom_icc_node xm_usb3_0 = {
  49. .name = "xm_usb3_0",
  50. .id = SM8150_MASTER_USB3,
  51. .channels = 1,
  52. .buswidth = 8,
  53. .num_links = 1,
  54. .links = { SM8150_A1NOC_SNOC_SLV },
  55. };
  56. static struct qcom_icc_node xm_usb3_1 = {
  57. .name = "xm_usb3_1",
  58. .id = SM8150_MASTER_USB3_1,
  59. .channels = 1,
  60. .buswidth = 8,
  61. .num_links = 1,
  62. .links = { SM8150_A1NOC_SNOC_SLV },
  63. };
  64. static struct qcom_icc_node qhm_a2noc_cfg = {
  65. .name = "qhm_a2noc_cfg",
  66. .id = SM8150_MASTER_A2NOC_CFG,
  67. .channels = 1,
  68. .buswidth = 4,
  69. .num_links = 1,
  70. .links = { SM8150_SLAVE_SERVICE_A2NOC },
  71. };
  72. static struct qcom_icc_node qhm_qdss_bam = {
  73. .name = "qhm_qdss_bam",
  74. .id = SM8150_MASTER_QDSS_BAM,
  75. .channels = 1,
  76. .buswidth = 4,
  77. .num_links = 1,
  78. .links = { SM8150_A2NOC_SNOC_SLV },
  79. };
  80. static struct qcom_icc_node qhm_qspi = {
  81. .name = "qhm_qspi",
  82. .id = SM8150_MASTER_QSPI,
  83. .channels = 1,
  84. .buswidth = 4,
  85. .num_links = 1,
  86. .links = { SM8150_A2NOC_SNOC_SLV },
  87. };
  88. static struct qcom_icc_node qhm_qup1 = {
  89. .name = "qhm_qup1",
  90. .id = SM8150_MASTER_QUP_1,
  91. .channels = 1,
  92. .buswidth = 4,
  93. .num_links = 1,
  94. .links = { SM8150_A2NOC_SNOC_SLV },
  95. };
  96. static struct qcom_icc_node qhm_qup2 = {
  97. .name = "qhm_qup2",
  98. .id = SM8150_MASTER_QUP_2,
  99. .channels = 1,
  100. .buswidth = 4,
  101. .num_links = 1,
  102. .links = { SM8150_A2NOC_SNOC_SLV },
  103. };
  104. static struct qcom_icc_node qhm_sensorss_ahb = {
  105. .name = "qhm_sensorss_ahb",
  106. .id = SM8150_MASTER_SENSORS_AHB,
  107. .channels = 1,
  108. .buswidth = 4,
  109. .num_links = 1,
  110. .links = { SM8150_A2NOC_SNOC_SLV },
  111. };
  112. static struct qcom_icc_node qhm_tsif = {
  113. .name = "qhm_tsif",
  114. .id = SM8150_MASTER_TSIF,
  115. .channels = 1,
  116. .buswidth = 4,
  117. .num_links = 1,
  118. .links = { SM8150_A2NOC_SNOC_SLV },
  119. };
  120. static struct qcom_icc_node qnm_cnoc = {
  121. .name = "qnm_cnoc",
  122. .id = SM8150_MASTER_CNOC_A2NOC,
  123. .channels = 1,
  124. .buswidth = 8,
  125. .num_links = 1,
  126. .links = { SM8150_A2NOC_SNOC_SLV },
  127. };
  128. static struct qcom_icc_node qxm_crypto = {
  129. .name = "qxm_crypto",
  130. .id = SM8150_MASTER_CRYPTO_CORE_0,
  131. .channels = 1,
  132. .buswidth = 8,
  133. .num_links = 1,
  134. .links = { SM8150_A2NOC_SNOC_SLV },
  135. };
  136. static struct qcom_icc_node qxm_ipa = {
  137. .name = "qxm_ipa",
  138. .id = SM8150_MASTER_IPA,
  139. .channels = 1,
  140. .buswidth = 8,
  141. .num_links = 1,
  142. .links = { SM8150_A2NOC_SNOC_SLV },
  143. };
  144. static struct qcom_icc_node xm_pcie3_0 = {
  145. .name = "xm_pcie3_0",
  146. .id = SM8150_MASTER_PCIE,
  147. .channels = 1,
  148. .buswidth = 8,
  149. .num_links = 1,
  150. .links = { SM8150_SLAVE_ANOC_PCIE_GEM_NOC },
  151. };
  152. static struct qcom_icc_node xm_pcie3_1 = {
  153. .name = "xm_pcie3_1",
  154. .id = SM8150_MASTER_PCIE_1,
  155. .channels = 1,
  156. .buswidth = 8,
  157. .num_links = 1,
  158. .links = { SM8150_SLAVE_ANOC_PCIE_GEM_NOC },
  159. };
  160. static struct qcom_icc_node xm_qdss_etr = {
  161. .name = "xm_qdss_etr",
  162. .id = SM8150_MASTER_QDSS_ETR,
  163. .channels = 1,
  164. .buswidth = 8,
  165. .num_links = 1,
  166. .links = { SM8150_A2NOC_SNOC_SLV },
  167. };
  168. static struct qcom_icc_node xm_sdc2 = {
  169. .name = "xm_sdc2",
  170. .id = SM8150_MASTER_SDCC_2,
  171. .channels = 1,
  172. .buswidth = 8,
  173. .num_links = 1,
  174. .links = { SM8150_A2NOC_SNOC_SLV },
  175. };
  176. static struct qcom_icc_node xm_sdc4 = {
  177. .name = "xm_sdc4",
  178. .id = SM8150_MASTER_SDCC_4,
  179. .channels = 1,
  180. .buswidth = 8,
  181. .num_links = 1,
  182. .links = { SM8150_A2NOC_SNOC_SLV },
  183. };
  184. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  185. .name = "qxm_camnoc_hf0_uncomp",
  186. .id = SM8150_MASTER_CAMNOC_HF0_UNCOMP,
  187. .channels = 1,
  188. .buswidth = 32,
  189. .num_links = 1,
  190. .links = { SM8150_SLAVE_CAMNOC_UNCOMP },
  191. };
  192. static struct qcom_icc_node qxm_camnoc_hf1_uncomp = {
  193. .name = "qxm_camnoc_hf1_uncomp",
  194. .id = SM8150_MASTER_CAMNOC_HF1_UNCOMP,
  195. .channels = 1,
  196. .buswidth = 32,
  197. .num_links = 1,
  198. .links = { SM8150_SLAVE_CAMNOC_UNCOMP },
  199. };
  200. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  201. .name = "qxm_camnoc_sf_uncomp",
  202. .id = SM8150_MASTER_CAMNOC_SF_UNCOMP,
  203. .channels = 1,
  204. .buswidth = 32,
  205. .num_links = 1,
  206. .links = { SM8150_SLAVE_CAMNOC_UNCOMP },
  207. };
  208. static struct qcom_icc_node qnm_npu = {
  209. .name = "qnm_npu",
  210. .id = SM8150_MASTER_NPU,
  211. .channels = 1,
  212. .buswidth = 32,
  213. .num_links = 1,
  214. .links = { SM8150_SLAVE_CDSP_MEM_NOC },
  215. };
  216. static struct qcom_icc_node qhm_spdm = {
  217. .name = "qhm_spdm",
  218. .id = SM8150_MASTER_SPDM,
  219. .channels = 1,
  220. .buswidth = 4,
  221. .num_links = 1,
  222. .links = { SM8150_SLAVE_CNOC_A2NOC },
  223. };
  224. static struct qcom_icc_node qnm_snoc = {
  225. .name = "qnm_snoc",
  226. .id = SM8150_SNOC_CNOC_MAS,
  227. .channels = 1,
  228. .buswidth = 8,
  229. .num_links = 50,
  230. .links = { SM8150_SLAVE_TLMM_SOUTH,
  231. SM8150_SLAVE_CDSP_CFG,
  232. SM8150_SLAVE_SPSS_CFG,
  233. SM8150_SLAVE_CAMERA_CFG,
  234. SM8150_SLAVE_SDCC_4,
  235. SM8150_SLAVE_SDCC_2,
  236. SM8150_SLAVE_CNOC_MNOC_CFG,
  237. SM8150_SLAVE_EMAC_CFG,
  238. SM8150_SLAVE_UFS_MEM_CFG,
  239. SM8150_SLAVE_TLMM_EAST,
  240. SM8150_SLAVE_SSC_CFG,
  241. SM8150_SLAVE_SNOC_CFG,
  242. SM8150_SLAVE_NORTH_PHY_CFG,
  243. SM8150_SLAVE_QUP_0,
  244. SM8150_SLAVE_GLM,
  245. SM8150_SLAVE_PCIE_1_CFG,
  246. SM8150_SLAVE_A2NOC_CFG,
  247. SM8150_SLAVE_QDSS_CFG,
  248. SM8150_SLAVE_DISPLAY_CFG,
  249. SM8150_SLAVE_TCSR,
  250. SM8150_SLAVE_CNOC_DDRSS,
  251. SM8150_SLAVE_RBCPR_MMCX_CFG,
  252. SM8150_SLAVE_NPU_CFG,
  253. SM8150_SLAVE_PCIE_0_CFG,
  254. SM8150_SLAVE_GRAPHICS_3D_CFG,
  255. SM8150_SLAVE_VENUS_CFG,
  256. SM8150_SLAVE_TSIF,
  257. SM8150_SLAVE_IPA_CFG,
  258. SM8150_SLAVE_CLK_CTL,
  259. SM8150_SLAVE_AOP,
  260. SM8150_SLAVE_QUP_1,
  261. SM8150_SLAVE_AHB2PHY_SOUTH,
  262. SM8150_SLAVE_USB3_1,
  263. SM8150_SLAVE_SERVICE_CNOC,
  264. SM8150_SLAVE_UFS_CARD_CFG,
  265. SM8150_SLAVE_QUP_2,
  266. SM8150_SLAVE_RBCPR_CX_CFG,
  267. SM8150_SLAVE_TLMM_WEST,
  268. SM8150_SLAVE_A1NOC_CFG,
  269. SM8150_SLAVE_AOSS,
  270. SM8150_SLAVE_PRNG,
  271. SM8150_SLAVE_VSENSE_CTRL_CFG,
  272. SM8150_SLAVE_QSPI,
  273. SM8150_SLAVE_USB3,
  274. SM8150_SLAVE_SPDM_WRAPPER,
  275. SM8150_SLAVE_CRYPTO_0_CFG,
  276. SM8150_SLAVE_PIMEM_CFG,
  277. SM8150_SLAVE_TLMM_NORTH,
  278. SM8150_SLAVE_RBCPR_MX_CFG,
  279. SM8150_SLAVE_IMEM_CFG
  280. },
  281. };
  282. static struct qcom_icc_node xm_qdss_dap = {
  283. .name = "xm_qdss_dap",
  284. .id = SM8150_MASTER_QDSS_DAP,
  285. .channels = 1,
  286. .buswidth = 8,
  287. .num_links = 51,
  288. .links = { SM8150_SLAVE_TLMM_SOUTH,
  289. SM8150_SLAVE_CDSP_CFG,
  290. SM8150_SLAVE_SPSS_CFG,
  291. SM8150_SLAVE_CAMERA_CFG,
  292. SM8150_SLAVE_SDCC_4,
  293. SM8150_SLAVE_SDCC_2,
  294. SM8150_SLAVE_CNOC_MNOC_CFG,
  295. SM8150_SLAVE_EMAC_CFG,
  296. SM8150_SLAVE_UFS_MEM_CFG,
  297. SM8150_SLAVE_TLMM_EAST,
  298. SM8150_SLAVE_SSC_CFG,
  299. SM8150_SLAVE_SNOC_CFG,
  300. SM8150_SLAVE_NORTH_PHY_CFG,
  301. SM8150_SLAVE_QUP_0,
  302. SM8150_SLAVE_GLM,
  303. SM8150_SLAVE_PCIE_1_CFG,
  304. SM8150_SLAVE_A2NOC_CFG,
  305. SM8150_SLAVE_QDSS_CFG,
  306. SM8150_SLAVE_DISPLAY_CFG,
  307. SM8150_SLAVE_TCSR,
  308. SM8150_SLAVE_CNOC_DDRSS,
  309. SM8150_SLAVE_CNOC_A2NOC,
  310. SM8150_SLAVE_RBCPR_MMCX_CFG,
  311. SM8150_SLAVE_NPU_CFG,
  312. SM8150_SLAVE_PCIE_0_CFG,
  313. SM8150_SLAVE_GRAPHICS_3D_CFG,
  314. SM8150_SLAVE_VENUS_CFG,
  315. SM8150_SLAVE_TSIF,
  316. SM8150_SLAVE_IPA_CFG,
  317. SM8150_SLAVE_CLK_CTL,
  318. SM8150_SLAVE_AOP,
  319. SM8150_SLAVE_QUP_1,
  320. SM8150_SLAVE_AHB2PHY_SOUTH,
  321. SM8150_SLAVE_USB3_1,
  322. SM8150_SLAVE_SERVICE_CNOC,
  323. SM8150_SLAVE_UFS_CARD_CFG,
  324. SM8150_SLAVE_QUP_2,
  325. SM8150_SLAVE_RBCPR_CX_CFG,
  326. SM8150_SLAVE_TLMM_WEST,
  327. SM8150_SLAVE_A1NOC_CFG,
  328. SM8150_SLAVE_AOSS,
  329. SM8150_SLAVE_PRNG,
  330. SM8150_SLAVE_VSENSE_CTRL_CFG,
  331. SM8150_SLAVE_QSPI,
  332. SM8150_SLAVE_USB3,
  333. SM8150_SLAVE_SPDM_WRAPPER,
  334. SM8150_SLAVE_CRYPTO_0_CFG,
  335. SM8150_SLAVE_PIMEM_CFG,
  336. SM8150_SLAVE_TLMM_NORTH,
  337. SM8150_SLAVE_RBCPR_MX_CFG,
  338. SM8150_SLAVE_IMEM_CFG
  339. },
  340. };
  341. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  342. .name = "qhm_cnoc_dc_noc",
  343. .id = SM8150_MASTER_CNOC_DC_NOC,
  344. .channels = 1,
  345. .buswidth = 4,
  346. .num_links = 2,
  347. .links = { SM8150_SLAVE_GEM_NOC_CFG,
  348. SM8150_SLAVE_LLCC_CFG
  349. },
  350. };
  351. static struct qcom_icc_node acm_apps = {
  352. .name = "acm_apps",
  353. .id = SM8150_MASTER_AMPSS_M0,
  354. .channels = 2,
  355. .buswidth = 32,
  356. .num_links = 3,
  357. .links = { SM8150_SLAVE_ECC,
  358. SM8150_SLAVE_LLCC,
  359. SM8150_SLAVE_GEM_NOC_SNOC
  360. },
  361. };
  362. static struct qcom_icc_node acm_gpu_tcu = {
  363. .name = "acm_gpu_tcu",
  364. .id = SM8150_MASTER_GPU_TCU,
  365. .channels = 1,
  366. .buswidth = 8,
  367. .num_links = 2,
  368. .links = { SM8150_SLAVE_LLCC,
  369. SM8150_SLAVE_GEM_NOC_SNOC
  370. },
  371. };
  372. static struct qcom_icc_node acm_sys_tcu = {
  373. .name = "acm_sys_tcu",
  374. .id = SM8150_MASTER_SYS_TCU,
  375. .channels = 1,
  376. .buswidth = 8,
  377. .num_links = 2,
  378. .links = { SM8150_SLAVE_LLCC,
  379. SM8150_SLAVE_GEM_NOC_SNOC
  380. },
  381. };
  382. static struct qcom_icc_node qhm_gemnoc_cfg = {
  383. .name = "qhm_gemnoc_cfg",
  384. .id = SM8150_MASTER_GEM_NOC_CFG,
  385. .channels = 1,
  386. .buswidth = 4,
  387. .num_links = 2,
  388. .links = { SM8150_SLAVE_SERVICE_GEM_NOC,
  389. SM8150_SLAVE_MSS_PROC_MS_MPU_CFG
  390. },
  391. };
  392. static struct qcom_icc_node qnm_cmpnoc = {
  393. .name = "qnm_cmpnoc",
  394. .id = SM8150_MASTER_COMPUTE_NOC,
  395. .channels = 2,
  396. .buswidth = 32,
  397. .num_links = 3,
  398. .links = { SM8150_SLAVE_ECC,
  399. SM8150_SLAVE_LLCC,
  400. SM8150_SLAVE_GEM_NOC_SNOC
  401. },
  402. };
  403. static struct qcom_icc_node qnm_gpu = {
  404. .name = "qnm_gpu",
  405. .id = SM8150_MASTER_GRAPHICS_3D,
  406. .channels = 2,
  407. .buswidth = 32,
  408. .num_links = 2,
  409. .links = { SM8150_SLAVE_LLCC,
  410. SM8150_SLAVE_GEM_NOC_SNOC
  411. },
  412. };
  413. static struct qcom_icc_node qnm_mnoc_hf = {
  414. .name = "qnm_mnoc_hf",
  415. .id = SM8150_MASTER_MNOC_HF_MEM_NOC,
  416. .channels = 2,
  417. .buswidth = 32,
  418. .num_links = 1,
  419. .links = { SM8150_SLAVE_LLCC },
  420. };
  421. static struct qcom_icc_node qnm_mnoc_sf = {
  422. .name = "qnm_mnoc_sf",
  423. .id = SM8150_MASTER_MNOC_SF_MEM_NOC,
  424. .channels = 1,
  425. .buswidth = 32,
  426. .num_links = 2,
  427. .links = { SM8150_SLAVE_LLCC,
  428. SM8150_SLAVE_GEM_NOC_SNOC
  429. },
  430. };
  431. static struct qcom_icc_node qnm_pcie = {
  432. .name = "qnm_pcie",
  433. .id = SM8150_MASTER_GEM_NOC_PCIE_SNOC,
  434. .channels = 1,
  435. .buswidth = 16,
  436. .num_links = 2,
  437. .links = { SM8150_SLAVE_LLCC,
  438. SM8150_SLAVE_GEM_NOC_SNOC
  439. },
  440. };
  441. static struct qcom_icc_node qnm_snoc_gc = {
  442. .name = "qnm_snoc_gc",
  443. .id = SM8150_MASTER_SNOC_GC_MEM_NOC,
  444. .channels = 1,
  445. .buswidth = 8,
  446. .num_links = 1,
  447. .links = { SM8150_SLAVE_LLCC },
  448. };
  449. static struct qcom_icc_node qnm_snoc_sf = {
  450. .name = "qnm_snoc_sf",
  451. .id = SM8150_MASTER_SNOC_SF_MEM_NOC,
  452. .channels = 1,
  453. .buswidth = 16,
  454. .num_links = 1,
  455. .links = { SM8150_SLAVE_LLCC },
  456. };
  457. static struct qcom_icc_node qxm_ecc = {
  458. .name = "qxm_ecc",
  459. .id = SM8150_MASTER_ECC,
  460. .channels = 2,
  461. .buswidth = 32,
  462. .num_links = 1,
  463. .links = { SM8150_SLAVE_LLCC },
  464. };
  465. static struct qcom_icc_node llcc_mc = {
  466. .name = "llcc_mc",
  467. .id = SM8150_MASTER_LLCC,
  468. .channels = 4,
  469. .buswidth = 4,
  470. .num_links = 1,
  471. .links = { SM8150_SLAVE_EBI_CH0 },
  472. };
  473. static struct qcom_icc_node qhm_mnoc_cfg = {
  474. .name = "qhm_mnoc_cfg",
  475. .id = SM8150_MASTER_CNOC_MNOC_CFG,
  476. .channels = 1,
  477. .buswidth = 4,
  478. .num_links = 1,
  479. .links = { SM8150_SLAVE_SERVICE_MNOC },
  480. };
  481. static struct qcom_icc_node qxm_camnoc_hf0 = {
  482. .name = "qxm_camnoc_hf0",
  483. .id = SM8150_MASTER_CAMNOC_HF0,
  484. .channels = 1,
  485. .buswidth = 32,
  486. .num_links = 1,
  487. .links = { SM8150_SLAVE_MNOC_HF_MEM_NOC },
  488. };
  489. static struct qcom_icc_node qxm_camnoc_hf1 = {
  490. .name = "qxm_camnoc_hf1",
  491. .id = SM8150_MASTER_CAMNOC_HF1,
  492. .channels = 1,
  493. .buswidth = 32,
  494. .num_links = 1,
  495. .links = { SM8150_SLAVE_MNOC_HF_MEM_NOC },
  496. };
  497. static struct qcom_icc_node qxm_camnoc_sf = {
  498. .name = "qxm_camnoc_sf",
  499. .id = SM8150_MASTER_CAMNOC_SF,
  500. .channels = 1,
  501. .buswidth = 32,
  502. .num_links = 1,
  503. .links = { SM8150_SLAVE_MNOC_SF_MEM_NOC },
  504. };
  505. static struct qcom_icc_node qxm_mdp0 = {
  506. .name = "qxm_mdp0",
  507. .id = SM8150_MASTER_MDP_PORT0,
  508. .channels = 1,
  509. .buswidth = 32,
  510. .num_links = 1,
  511. .links = { SM8150_SLAVE_MNOC_HF_MEM_NOC },
  512. };
  513. static struct qcom_icc_node qxm_mdp1 = {
  514. .name = "qxm_mdp1",
  515. .id = SM8150_MASTER_MDP_PORT1,
  516. .channels = 1,
  517. .buswidth = 32,
  518. .num_links = 1,
  519. .links = { SM8150_SLAVE_MNOC_HF_MEM_NOC },
  520. };
  521. static struct qcom_icc_node qxm_rot = {
  522. .name = "qxm_rot",
  523. .id = SM8150_MASTER_ROTATOR,
  524. .channels = 1,
  525. .buswidth = 32,
  526. .num_links = 1,
  527. .links = { SM8150_SLAVE_MNOC_SF_MEM_NOC },
  528. };
  529. static struct qcom_icc_node qxm_venus0 = {
  530. .name = "qxm_venus0",
  531. .id = SM8150_MASTER_VIDEO_P0,
  532. .channels = 1,
  533. .buswidth = 32,
  534. .num_links = 1,
  535. .links = { SM8150_SLAVE_MNOC_SF_MEM_NOC },
  536. };
  537. static struct qcom_icc_node qxm_venus1 = {
  538. .name = "qxm_venus1",
  539. .id = SM8150_MASTER_VIDEO_P1,
  540. .channels = 1,
  541. .buswidth = 32,
  542. .num_links = 1,
  543. .links = { SM8150_SLAVE_MNOC_SF_MEM_NOC },
  544. };
  545. static struct qcom_icc_node qxm_venus_arm9 = {
  546. .name = "qxm_venus_arm9",
  547. .id = SM8150_MASTER_VIDEO_PROC,
  548. .channels = 1,
  549. .buswidth = 8,
  550. .num_links = 1,
  551. .links = { SM8150_SLAVE_MNOC_SF_MEM_NOC },
  552. };
  553. static struct qcom_icc_node qhm_snoc_cfg = {
  554. .name = "qhm_snoc_cfg",
  555. .id = SM8150_MASTER_SNOC_CFG,
  556. .channels = 1,
  557. .buswidth = 4,
  558. .num_links = 1,
  559. .links = { SM8150_SLAVE_SERVICE_SNOC },
  560. };
  561. static struct qcom_icc_node qnm_aggre1_noc = {
  562. .name = "qnm_aggre1_noc",
  563. .id = SM8150_A1NOC_SNOC_MAS,
  564. .channels = 1,
  565. .buswidth = 16,
  566. .num_links = 6,
  567. .links = { SM8150_SLAVE_SNOC_GEM_NOC_SF,
  568. SM8150_SLAVE_PIMEM,
  569. SM8150_SLAVE_OCIMEM,
  570. SM8150_SLAVE_APPSS,
  571. SM8150_SNOC_CNOC_SLV,
  572. SM8150_SLAVE_QDSS_STM
  573. },
  574. };
  575. static struct qcom_icc_node qnm_aggre2_noc = {
  576. .name = "qnm_aggre2_noc",
  577. .id = SM8150_A2NOC_SNOC_MAS,
  578. .channels = 1,
  579. .buswidth = 16,
  580. .num_links = 9,
  581. .links = { SM8150_SLAVE_SNOC_GEM_NOC_SF,
  582. SM8150_SLAVE_PIMEM,
  583. SM8150_SLAVE_OCIMEM,
  584. SM8150_SLAVE_APPSS,
  585. SM8150_SNOC_CNOC_SLV,
  586. SM8150_SLAVE_PCIE_0,
  587. SM8150_SLAVE_PCIE_1,
  588. SM8150_SLAVE_TCU,
  589. SM8150_SLAVE_QDSS_STM
  590. },
  591. };
  592. static struct qcom_icc_node qnm_gemnoc = {
  593. .name = "qnm_gemnoc",
  594. .id = SM8150_MASTER_GEM_NOC_SNOC,
  595. .channels = 1,
  596. .buswidth = 8,
  597. .num_links = 6,
  598. .links = { SM8150_SLAVE_PIMEM,
  599. SM8150_SLAVE_OCIMEM,
  600. SM8150_SLAVE_APPSS,
  601. SM8150_SNOC_CNOC_SLV,
  602. SM8150_SLAVE_TCU,
  603. SM8150_SLAVE_QDSS_STM
  604. },
  605. };
  606. static struct qcom_icc_node qxm_pimem = {
  607. .name = "qxm_pimem",
  608. .id = SM8150_MASTER_PIMEM,
  609. .channels = 1,
  610. .buswidth = 8,
  611. .num_links = 2,
  612. .links = { SM8150_SLAVE_SNOC_GEM_NOC_GC,
  613. SM8150_SLAVE_OCIMEM
  614. },
  615. };
  616. static struct qcom_icc_node xm_gic = {
  617. .name = "xm_gic",
  618. .id = SM8150_MASTER_GIC,
  619. .channels = 1,
  620. .buswidth = 8,
  621. .num_links = 2,
  622. .links = { SM8150_SLAVE_SNOC_GEM_NOC_GC,
  623. SM8150_SLAVE_OCIMEM
  624. },
  625. };
  626. static struct qcom_icc_node qns_a1noc_snoc = {
  627. .name = "qns_a1noc_snoc",
  628. .id = SM8150_A1NOC_SNOC_SLV,
  629. .channels = 1,
  630. .buswidth = 16,
  631. .num_links = 1,
  632. .links = { SM8150_A1NOC_SNOC_MAS },
  633. };
  634. static struct qcom_icc_node srvc_aggre1_noc = {
  635. .name = "srvc_aggre1_noc",
  636. .id = SM8150_SLAVE_SERVICE_A1NOC,
  637. .channels = 1,
  638. .buswidth = 4,
  639. };
  640. static struct qcom_icc_node qns_a2noc_snoc = {
  641. .name = "qns_a2noc_snoc",
  642. .id = SM8150_A2NOC_SNOC_SLV,
  643. .channels = 1,
  644. .buswidth = 16,
  645. .num_links = 1,
  646. .links = { SM8150_A2NOC_SNOC_MAS },
  647. };
  648. static struct qcom_icc_node qns_pcie_mem_noc = {
  649. .name = "qns_pcie_mem_noc",
  650. .id = SM8150_SLAVE_ANOC_PCIE_GEM_NOC,
  651. .channels = 1,
  652. .buswidth = 16,
  653. .num_links = 1,
  654. .links = { SM8150_MASTER_GEM_NOC_PCIE_SNOC },
  655. };
  656. static struct qcom_icc_node srvc_aggre2_noc = {
  657. .name = "srvc_aggre2_noc",
  658. .id = SM8150_SLAVE_SERVICE_A2NOC,
  659. .channels = 1,
  660. .buswidth = 4,
  661. };
  662. static struct qcom_icc_node qns_camnoc_uncomp = {
  663. .name = "qns_camnoc_uncomp",
  664. .id = SM8150_SLAVE_CAMNOC_UNCOMP,
  665. .channels = 1,
  666. .buswidth = 32,
  667. };
  668. static struct qcom_icc_node qns_cdsp_mem_noc = {
  669. .name = "qns_cdsp_mem_noc",
  670. .id = SM8150_SLAVE_CDSP_MEM_NOC,
  671. .channels = 2,
  672. .buswidth = 32,
  673. .num_links = 1,
  674. .links = { SM8150_MASTER_COMPUTE_NOC },
  675. };
  676. static struct qcom_icc_node qhs_a1_noc_cfg = {
  677. .name = "qhs_a1_noc_cfg",
  678. .id = SM8150_SLAVE_A1NOC_CFG,
  679. .channels = 1,
  680. .buswidth = 4,
  681. .num_links = 1,
  682. .links = { SM8150_MASTER_A1NOC_CFG },
  683. };
  684. static struct qcom_icc_node qhs_a2_noc_cfg = {
  685. .name = "qhs_a2_noc_cfg",
  686. .id = SM8150_SLAVE_A2NOC_CFG,
  687. .channels = 1,
  688. .buswidth = 4,
  689. .num_links = 1,
  690. .links = { SM8150_MASTER_A2NOC_CFG },
  691. };
  692. static struct qcom_icc_node qhs_ahb2phy_south = {
  693. .name = "qhs_ahb2phy_south",
  694. .id = SM8150_SLAVE_AHB2PHY_SOUTH,
  695. .channels = 1,
  696. .buswidth = 4,
  697. };
  698. static struct qcom_icc_node qhs_aop = {
  699. .name = "qhs_aop",
  700. .id = SM8150_SLAVE_AOP,
  701. .channels = 1,
  702. .buswidth = 4,
  703. };
  704. static struct qcom_icc_node qhs_aoss = {
  705. .name = "qhs_aoss",
  706. .id = SM8150_SLAVE_AOSS,
  707. .channels = 1,
  708. .buswidth = 4,
  709. };
  710. static struct qcom_icc_node qhs_camera_cfg = {
  711. .name = "qhs_camera_cfg",
  712. .id = SM8150_SLAVE_CAMERA_CFG,
  713. .channels = 1,
  714. .buswidth = 4,
  715. };
  716. static struct qcom_icc_node qhs_clk_ctl = {
  717. .name = "qhs_clk_ctl",
  718. .id = SM8150_SLAVE_CLK_CTL,
  719. .channels = 1,
  720. .buswidth = 4,
  721. };
  722. static struct qcom_icc_node qhs_compute_dsp = {
  723. .name = "qhs_compute_dsp",
  724. .id = SM8150_SLAVE_CDSP_CFG,
  725. .channels = 1,
  726. .buswidth = 4,
  727. };
  728. static struct qcom_icc_node qhs_cpr_cx = {
  729. .name = "qhs_cpr_cx",
  730. .id = SM8150_SLAVE_RBCPR_CX_CFG,
  731. .channels = 1,
  732. .buswidth = 4,
  733. };
  734. static struct qcom_icc_node qhs_cpr_mmcx = {
  735. .name = "qhs_cpr_mmcx",
  736. .id = SM8150_SLAVE_RBCPR_MMCX_CFG,
  737. .channels = 1,
  738. .buswidth = 4,
  739. };
  740. static struct qcom_icc_node qhs_cpr_mx = {
  741. .name = "qhs_cpr_mx",
  742. .id = SM8150_SLAVE_RBCPR_MX_CFG,
  743. .channels = 1,
  744. .buswidth = 4,
  745. };
  746. static struct qcom_icc_node qhs_crypto0_cfg = {
  747. .name = "qhs_crypto0_cfg",
  748. .id = SM8150_SLAVE_CRYPTO_0_CFG,
  749. .channels = 1,
  750. .buswidth = 4,
  751. };
  752. static struct qcom_icc_node qhs_ddrss_cfg = {
  753. .name = "qhs_ddrss_cfg",
  754. .id = SM8150_SLAVE_CNOC_DDRSS,
  755. .channels = 1,
  756. .buswidth = 4,
  757. .num_links = 1,
  758. .links = { SM8150_MASTER_CNOC_DC_NOC },
  759. };
  760. static struct qcom_icc_node qhs_display_cfg = {
  761. .name = "qhs_display_cfg",
  762. .id = SM8150_SLAVE_DISPLAY_CFG,
  763. .channels = 1,
  764. .buswidth = 4,
  765. };
  766. static struct qcom_icc_node qhs_emac_cfg = {
  767. .name = "qhs_emac_cfg",
  768. .id = SM8150_SLAVE_EMAC_CFG,
  769. .channels = 1,
  770. .buswidth = 4,
  771. };
  772. static struct qcom_icc_node qhs_glm = {
  773. .name = "qhs_glm",
  774. .id = SM8150_SLAVE_GLM,
  775. .channels = 1,
  776. .buswidth = 4,
  777. };
  778. static struct qcom_icc_node qhs_gpuss_cfg = {
  779. .name = "qhs_gpuss_cfg",
  780. .id = SM8150_SLAVE_GRAPHICS_3D_CFG,
  781. .channels = 1,
  782. .buswidth = 8,
  783. };
  784. static struct qcom_icc_node qhs_imem_cfg = {
  785. .name = "qhs_imem_cfg",
  786. .id = SM8150_SLAVE_IMEM_CFG,
  787. .channels = 1,
  788. .buswidth = 4,
  789. };
  790. static struct qcom_icc_node qhs_ipa = {
  791. .name = "qhs_ipa",
  792. .id = SM8150_SLAVE_IPA_CFG,
  793. .channels = 1,
  794. .buswidth = 4,
  795. };
  796. static struct qcom_icc_node qhs_mnoc_cfg = {
  797. .name = "qhs_mnoc_cfg",
  798. .id = SM8150_SLAVE_CNOC_MNOC_CFG,
  799. .channels = 1,
  800. .buswidth = 4,
  801. .num_links = 1,
  802. .links = { SM8150_MASTER_CNOC_MNOC_CFG },
  803. };
  804. static struct qcom_icc_node qhs_npu_cfg = {
  805. .name = "qhs_npu_cfg",
  806. .id = SM8150_SLAVE_NPU_CFG,
  807. .channels = 1,
  808. .buswidth = 4,
  809. };
  810. static struct qcom_icc_node qhs_pcie0_cfg = {
  811. .name = "qhs_pcie0_cfg",
  812. .id = SM8150_SLAVE_PCIE_0_CFG,
  813. .channels = 1,
  814. .buswidth = 4,
  815. };
  816. static struct qcom_icc_node qhs_pcie1_cfg = {
  817. .name = "qhs_pcie1_cfg",
  818. .id = SM8150_SLAVE_PCIE_1_CFG,
  819. .channels = 1,
  820. .buswidth = 4,
  821. };
  822. static struct qcom_icc_node qhs_phy_refgen_north = {
  823. .name = "qhs_phy_refgen_north",
  824. .id = SM8150_SLAVE_NORTH_PHY_CFG,
  825. .channels = 1,
  826. .buswidth = 4,
  827. };
  828. static struct qcom_icc_node qhs_pimem_cfg = {
  829. .name = "qhs_pimem_cfg",
  830. .id = SM8150_SLAVE_PIMEM_CFG,
  831. .channels = 1,
  832. .buswidth = 4,
  833. };
  834. static struct qcom_icc_node qhs_prng = {
  835. .name = "qhs_prng",
  836. .id = SM8150_SLAVE_PRNG,
  837. .channels = 1,
  838. .buswidth = 4,
  839. };
  840. static struct qcom_icc_node qhs_qdss_cfg = {
  841. .name = "qhs_qdss_cfg",
  842. .id = SM8150_SLAVE_QDSS_CFG,
  843. .channels = 1,
  844. .buswidth = 4,
  845. };
  846. static struct qcom_icc_node qhs_qspi = {
  847. .name = "qhs_qspi",
  848. .id = SM8150_SLAVE_QSPI,
  849. .channels = 1,
  850. .buswidth = 4,
  851. };
  852. static struct qcom_icc_node qhs_qupv3_east = {
  853. .name = "qhs_qupv3_east",
  854. .id = SM8150_SLAVE_QUP_2,
  855. .channels = 1,
  856. .buswidth = 4,
  857. };
  858. static struct qcom_icc_node qhs_qupv3_north = {
  859. .name = "qhs_qupv3_north",
  860. .id = SM8150_SLAVE_QUP_1,
  861. .channels = 1,
  862. .buswidth = 4,
  863. };
  864. static struct qcom_icc_node qhs_qupv3_south = {
  865. .name = "qhs_qupv3_south",
  866. .id = SM8150_SLAVE_QUP_0,
  867. .channels = 1,
  868. .buswidth = 4,
  869. };
  870. static struct qcom_icc_node qhs_sdc2 = {
  871. .name = "qhs_sdc2",
  872. .id = SM8150_SLAVE_SDCC_2,
  873. .channels = 1,
  874. .buswidth = 4,
  875. };
  876. static struct qcom_icc_node qhs_sdc4 = {
  877. .name = "qhs_sdc4",
  878. .id = SM8150_SLAVE_SDCC_4,
  879. .channels = 1,
  880. .buswidth = 4,
  881. };
  882. static struct qcom_icc_node qhs_snoc_cfg = {
  883. .name = "qhs_snoc_cfg",
  884. .id = SM8150_SLAVE_SNOC_CFG,
  885. .channels = 1,
  886. .buswidth = 4,
  887. .num_links = 1,
  888. .links = { SM8150_MASTER_SNOC_CFG },
  889. };
  890. static struct qcom_icc_node qhs_spdm = {
  891. .name = "qhs_spdm",
  892. .id = SM8150_SLAVE_SPDM_WRAPPER,
  893. .channels = 1,
  894. .buswidth = 4,
  895. };
  896. static struct qcom_icc_node qhs_spss_cfg = {
  897. .name = "qhs_spss_cfg",
  898. .id = SM8150_SLAVE_SPSS_CFG,
  899. .channels = 1,
  900. .buswidth = 4,
  901. };
  902. static struct qcom_icc_node qhs_ssc_cfg = {
  903. .name = "qhs_ssc_cfg",
  904. .id = SM8150_SLAVE_SSC_CFG,
  905. .channels = 1,
  906. .buswidth = 4,
  907. };
  908. static struct qcom_icc_node qhs_tcsr = {
  909. .name = "qhs_tcsr",
  910. .id = SM8150_SLAVE_TCSR,
  911. .channels = 1,
  912. .buswidth = 4,
  913. };
  914. static struct qcom_icc_node qhs_tlmm_east = {
  915. .name = "qhs_tlmm_east",
  916. .id = SM8150_SLAVE_TLMM_EAST,
  917. .channels = 1,
  918. .buswidth = 4,
  919. };
  920. static struct qcom_icc_node qhs_tlmm_north = {
  921. .name = "qhs_tlmm_north",
  922. .id = SM8150_SLAVE_TLMM_NORTH,
  923. .channels = 1,
  924. .buswidth = 4,
  925. };
  926. static struct qcom_icc_node qhs_tlmm_south = {
  927. .name = "qhs_tlmm_south",
  928. .id = SM8150_SLAVE_TLMM_SOUTH,
  929. .channels = 1,
  930. .buswidth = 4,
  931. };
  932. static struct qcom_icc_node qhs_tlmm_west = {
  933. .name = "qhs_tlmm_west",
  934. .id = SM8150_SLAVE_TLMM_WEST,
  935. .channels = 1,
  936. .buswidth = 4,
  937. };
  938. static struct qcom_icc_node qhs_tsif = {
  939. .name = "qhs_tsif",
  940. .id = SM8150_SLAVE_TSIF,
  941. .channels = 1,
  942. .buswidth = 4,
  943. };
  944. static struct qcom_icc_node qhs_ufs_card_cfg = {
  945. .name = "qhs_ufs_card_cfg",
  946. .id = SM8150_SLAVE_UFS_CARD_CFG,
  947. .channels = 1,
  948. .buswidth = 4,
  949. };
  950. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  951. .name = "qhs_ufs_mem_cfg",
  952. .id = SM8150_SLAVE_UFS_MEM_CFG,
  953. .channels = 1,
  954. .buswidth = 4,
  955. };
  956. static struct qcom_icc_node qhs_usb3_0 = {
  957. .name = "qhs_usb3_0",
  958. .id = SM8150_SLAVE_USB3,
  959. .channels = 1,
  960. .buswidth = 4,
  961. };
  962. static struct qcom_icc_node qhs_usb3_1 = {
  963. .name = "qhs_usb3_1",
  964. .id = SM8150_SLAVE_USB3_1,
  965. .channels = 1,
  966. .buswidth = 4,
  967. };
  968. static struct qcom_icc_node qhs_venus_cfg = {
  969. .name = "qhs_venus_cfg",
  970. .id = SM8150_SLAVE_VENUS_CFG,
  971. .channels = 1,
  972. .buswidth = 4,
  973. };
  974. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  975. .name = "qhs_vsense_ctrl_cfg",
  976. .id = SM8150_SLAVE_VSENSE_CTRL_CFG,
  977. .channels = 1,
  978. .buswidth = 4,
  979. };
  980. static struct qcom_icc_node qns_cnoc_a2noc = {
  981. .name = "qns_cnoc_a2noc",
  982. .id = SM8150_SLAVE_CNOC_A2NOC,
  983. .channels = 1,
  984. .buswidth = 8,
  985. .num_links = 1,
  986. .links = { SM8150_MASTER_CNOC_A2NOC },
  987. };
  988. static struct qcom_icc_node srvc_cnoc = {
  989. .name = "srvc_cnoc",
  990. .id = SM8150_SLAVE_SERVICE_CNOC,
  991. .channels = 1,
  992. .buswidth = 4,
  993. };
  994. static struct qcom_icc_node qhs_llcc = {
  995. .name = "qhs_llcc",
  996. .id = SM8150_SLAVE_LLCC_CFG,
  997. .channels = 1,
  998. .buswidth = 4,
  999. };
  1000. static struct qcom_icc_node qhs_memnoc = {
  1001. .name = "qhs_memnoc",
  1002. .id = SM8150_SLAVE_GEM_NOC_CFG,
  1003. .channels = 1,
  1004. .buswidth = 4,
  1005. .num_links = 1,
  1006. .links = { SM8150_MASTER_GEM_NOC_CFG },
  1007. };
  1008. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  1009. .name = "qhs_mdsp_ms_mpu_cfg",
  1010. .id = SM8150_SLAVE_MSS_PROC_MS_MPU_CFG,
  1011. .channels = 1,
  1012. .buswidth = 4,
  1013. };
  1014. static struct qcom_icc_node qns_ecc = {
  1015. .name = "qns_ecc",
  1016. .id = SM8150_SLAVE_ECC,
  1017. .channels = 1,
  1018. .buswidth = 32,
  1019. };
  1020. static struct qcom_icc_node qns_gem_noc_snoc = {
  1021. .name = "qns_gem_noc_snoc",
  1022. .id = SM8150_SLAVE_GEM_NOC_SNOC,
  1023. .channels = 1,
  1024. .buswidth = 8,
  1025. .num_links = 1,
  1026. .links = { SM8150_MASTER_GEM_NOC_SNOC },
  1027. };
  1028. static struct qcom_icc_node qns_llcc = {
  1029. .name = "qns_llcc",
  1030. .id = SM8150_SLAVE_LLCC,
  1031. .channels = 4,
  1032. .buswidth = 16,
  1033. .num_links = 1,
  1034. .links = { SM8150_MASTER_LLCC },
  1035. };
  1036. static struct qcom_icc_node srvc_gemnoc = {
  1037. .name = "srvc_gemnoc",
  1038. .id = SM8150_SLAVE_SERVICE_GEM_NOC,
  1039. .channels = 1,
  1040. .buswidth = 4,
  1041. };
  1042. static struct qcom_icc_node ebi = {
  1043. .name = "ebi",
  1044. .id = SM8150_SLAVE_EBI_CH0,
  1045. .channels = 4,
  1046. .buswidth = 4,
  1047. };
  1048. static struct qcom_icc_node qns2_mem_noc = {
  1049. .name = "qns2_mem_noc",
  1050. .id = SM8150_SLAVE_MNOC_SF_MEM_NOC,
  1051. .channels = 1,
  1052. .buswidth = 32,
  1053. .num_links = 1,
  1054. .links = { SM8150_MASTER_MNOC_SF_MEM_NOC },
  1055. };
  1056. static struct qcom_icc_node qns_mem_noc_hf = {
  1057. .name = "qns_mem_noc_hf",
  1058. .id = SM8150_SLAVE_MNOC_HF_MEM_NOC,
  1059. .channels = 2,
  1060. .buswidth = 32,
  1061. .num_links = 1,
  1062. .links = { SM8150_MASTER_MNOC_HF_MEM_NOC },
  1063. };
  1064. static struct qcom_icc_node srvc_mnoc = {
  1065. .name = "srvc_mnoc",
  1066. .id = SM8150_SLAVE_SERVICE_MNOC,
  1067. .channels = 1,
  1068. .buswidth = 4,
  1069. };
  1070. static struct qcom_icc_node qhs_apss = {
  1071. .name = "qhs_apss",
  1072. .id = SM8150_SLAVE_APPSS,
  1073. .channels = 1,
  1074. .buswidth = 8,
  1075. };
  1076. static struct qcom_icc_node qns_cnoc = {
  1077. .name = "qns_cnoc",
  1078. .id = SM8150_SNOC_CNOC_SLV,
  1079. .channels = 1,
  1080. .buswidth = 8,
  1081. .num_links = 1,
  1082. .links = { SM8150_SNOC_CNOC_MAS },
  1083. };
  1084. static struct qcom_icc_node qns_gemnoc_gc = {
  1085. .name = "qns_gemnoc_gc",
  1086. .id = SM8150_SLAVE_SNOC_GEM_NOC_GC,
  1087. .channels = 1,
  1088. .buswidth = 8,
  1089. .num_links = 1,
  1090. .links = { SM8150_MASTER_SNOC_GC_MEM_NOC },
  1091. };
  1092. static struct qcom_icc_node qns_gemnoc_sf = {
  1093. .name = "qns_gemnoc_sf",
  1094. .id = SM8150_SLAVE_SNOC_GEM_NOC_SF,
  1095. .channels = 1,
  1096. .buswidth = 16,
  1097. .num_links = 1,
  1098. .links = { SM8150_MASTER_SNOC_SF_MEM_NOC },
  1099. };
  1100. static struct qcom_icc_node qxs_imem = {
  1101. .name = "qxs_imem",
  1102. .id = SM8150_SLAVE_OCIMEM,
  1103. .channels = 1,
  1104. .buswidth = 8,
  1105. };
  1106. static struct qcom_icc_node qxs_pimem = {
  1107. .name = "qxs_pimem",
  1108. .id = SM8150_SLAVE_PIMEM,
  1109. .channels = 1,
  1110. .buswidth = 8,
  1111. };
  1112. static struct qcom_icc_node srvc_snoc = {
  1113. .name = "srvc_snoc",
  1114. .id = SM8150_SLAVE_SERVICE_SNOC,
  1115. .channels = 1,
  1116. .buswidth = 4,
  1117. };
  1118. static struct qcom_icc_node xs_pcie_0 = {
  1119. .name = "xs_pcie_0",
  1120. .id = SM8150_SLAVE_PCIE_0,
  1121. .channels = 1,
  1122. .buswidth = 8,
  1123. };
  1124. static struct qcom_icc_node xs_pcie_1 = {
  1125. .name = "xs_pcie_1",
  1126. .id = SM8150_SLAVE_PCIE_1,
  1127. .channels = 1,
  1128. .buswidth = 8,
  1129. };
  1130. static struct qcom_icc_node xs_qdss_stm = {
  1131. .name = "xs_qdss_stm",
  1132. .id = SM8150_SLAVE_QDSS_STM,
  1133. .channels = 1,
  1134. .buswidth = 4,
  1135. };
  1136. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1137. .name = "xs_sys_tcu_cfg",
  1138. .id = SM8150_SLAVE_TCU,
  1139. .channels = 1,
  1140. .buswidth = 8,
  1141. };
  1142. static struct qcom_icc_bcm bcm_acv = {
  1143. .name = "ACV",
  1144. .enable_mask = BIT(3),
  1145. .keepalive = false,
  1146. .num_nodes = 1,
  1147. .nodes = { &ebi },
  1148. };
  1149. static struct qcom_icc_bcm bcm_mc0 = {
  1150. .name = "MC0",
  1151. .keepalive = true,
  1152. .num_nodes = 1,
  1153. .nodes = { &ebi },
  1154. };
  1155. static struct qcom_icc_bcm bcm_sh0 = {
  1156. .name = "SH0",
  1157. .keepalive = true,
  1158. .num_nodes = 1,
  1159. .nodes = { &qns_llcc },
  1160. };
  1161. static struct qcom_icc_bcm bcm_mm0 = {
  1162. .name = "MM0",
  1163. .keepalive = true,
  1164. .num_nodes = 1,
  1165. .nodes = { &qns_mem_noc_hf },
  1166. };
  1167. static struct qcom_icc_bcm bcm_mm1 = {
  1168. .name = "MM1",
  1169. .keepalive = false,
  1170. .num_nodes = 7,
  1171. .nodes = { &qxm_camnoc_hf0_uncomp,
  1172. &qxm_camnoc_hf1_uncomp,
  1173. &qxm_camnoc_sf_uncomp,
  1174. &qxm_camnoc_hf0,
  1175. &qxm_camnoc_hf1,
  1176. &qxm_mdp0,
  1177. &qxm_mdp1
  1178. },
  1179. };
  1180. static struct qcom_icc_bcm bcm_sh2 = {
  1181. .name = "SH2",
  1182. .keepalive = false,
  1183. .num_nodes = 1,
  1184. .nodes = { &qns_gem_noc_snoc },
  1185. };
  1186. static struct qcom_icc_bcm bcm_mm2 = {
  1187. .name = "MM2",
  1188. .keepalive = false,
  1189. .num_nodes = 2,
  1190. .nodes = { &qxm_camnoc_sf, &qns2_mem_noc },
  1191. };
  1192. static struct qcom_icc_bcm bcm_sh3 = {
  1193. .name = "SH3",
  1194. .keepalive = false,
  1195. .num_nodes = 2,
  1196. .nodes = { &acm_gpu_tcu, &acm_sys_tcu },
  1197. };
  1198. static struct qcom_icc_bcm bcm_mm3 = {
  1199. .name = "MM3",
  1200. .keepalive = false,
  1201. .num_nodes = 4,
  1202. .nodes = { &qxm_rot, &qxm_venus0, &qxm_venus1, &qxm_venus_arm9 },
  1203. };
  1204. static struct qcom_icc_bcm bcm_sh4 = {
  1205. .name = "SH4",
  1206. .keepalive = false,
  1207. .num_nodes = 1,
  1208. .nodes = { &qnm_cmpnoc },
  1209. };
  1210. static struct qcom_icc_bcm bcm_sh5 = {
  1211. .name = "SH5",
  1212. .keepalive = false,
  1213. .num_nodes = 1,
  1214. .nodes = { &acm_apps },
  1215. };
  1216. static struct qcom_icc_bcm bcm_sn0 = {
  1217. .name = "SN0",
  1218. .keepalive = true,
  1219. .num_nodes = 1,
  1220. .nodes = { &qns_gemnoc_sf },
  1221. };
  1222. static struct qcom_icc_bcm bcm_co0 = {
  1223. .name = "CO0",
  1224. .keepalive = false,
  1225. .num_nodes = 1,
  1226. .nodes = { &qns_cdsp_mem_noc },
  1227. };
  1228. static struct qcom_icc_bcm bcm_ce0 = {
  1229. .name = "CE0",
  1230. .keepalive = false,
  1231. .num_nodes = 1,
  1232. .nodes = { &qxm_crypto },
  1233. };
  1234. static struct qcom_icc_bcm bcm_sn1 = {
  1235. .name = "SN1",
  1236. .keepalive = false,
  1237. .num_nodes = 1,
  1238. .nodes = { &qxs_imem },
  1239. };
  1240. static struct qcom_icc_bcm bcm_co1 = {
  1241. .name = "CO1",
  1242. .keepalive = false,
  1243. .num_nodes = 1,
  1244. .nodes = { &qnm_npu },
  1245. };
  1246. static struct qcom_icc_bcm bcm_cn0 = {
  1247. .name = "CN0",
  1248. .keepalive = true,
  1249. .num_nodes = 53,
  1250. .nodes = { &qhm_spdm,
  1251. &qnm_snoc,
  1252. &qhs_a1_noc_cfg,
  1253. &qhs_a2_noc_cfg,
  1254. &qhs_ahb2phy_south,
  1255. &qhs_aop,
  1256. &qhs_aoss,
  1257. &qhs_camera_cfg,
  1258. &qhs_clk_ctl,
  1259. &qhs_compute_dsp,
  1260. &qhs_cpr_cx,
  1261. &qhs_cpr_mmcx,
  1262. &qhs_cpr_mx,
  1263. &qhs_crypto0_cfg,
  1264. &qhs_ddrss_cfg,
  1265. &qhs_display_cfg,
  1266. &qhs_emac_cfg,
  1267. &qhs_glm,
  1268. &qhs_gpuss_cfg,
  1269. &qhs_imem_cfg,
  1270. &qhs_ipa,
  1271. &qhs_mnoc_cfg,
  1272. &qhs_npu_cfg,
  1273. &qhs_pcie0_cfg,
  1274. &qhs_pcie1_cfg,
  1275. &qhs_phy_refgen_north,
  1276. &qhs_pimem_cfg,
  1277. &qhs_prng,
  1278. &qhs_qdss_cfg,
  1279. &qhs_qspi,
  1280. &qhs_qupv3_east,
  1281. &qhs_qupv3_north,
  1282. &qhs_qupv3_south,
  1283. &qhs_sdc2,
  1284. &qhs_sdc4,
  1285. &qhs_snoc_cfg,
  1286. &qhs_spdm,
  1287. &qhs_spss_cfg,
  1288. &qhs_ssc_cfg,
  1289. &qhs_tcsr,
  1290. &qhs_tlmm_east,
  1291. &qhs_tlmm_north,
  1292. &qhs_tlmm_south,
  1293. &qhs_tlmm_west,
  1294. &qhs_tsif,
  1295. &qhs_ufs_card_cfg,
  1296. &qhs_ufs_mem_cfg,
  1297. &qhs_usb3_0,
  1298. &qhs_usb3_1,
  1299. &qhs_venus_cfg,
  1300. &qhs_vsense_ctrl_cfg,
  1301. &qns_cnoc_a2noc,
  1302. &srvc_cnoc
  1303. },
  1304. };
  1305. static struct qcom_icc_bcm bcm_qup0 = {
  1306. .name = "QUP0",
  1307. .keepalive = false,
  1308. .num_nodes = 3,
  1309. .nodes = { &qhm_qup0, &qhm_qup1, &qhm_qup2 },
  1310. };
  1311. static struct qcom_icc_bcm bcm_sn2 = {
  1312. .name = "SN2",
  1313. .keepalive = false,
  1314. .num_nodes = 1,
  1315. .nodes = { &qns_gemnoc_gc },
  1316. };
  1317. static struct qcom_icc_bcm bcm_sn3 = {
  1318. .name = "SN3",
  1319. .keepalive = false,
  1320. .num_nodes = 3,
  1321. .nodes = { &srvc_aggre1_noc, &srvc_aggre2_noc, &qns_cnoc },
  1322. };
  1323. static struct qcom_icc_bcm bcm_sn4 = {
  1324. .name = "SN4",
  1325. .keepalive = false,
  1326. .num_nodes = 1,
  1327. .nodes = { &qxs_pimem },
  1328. };
  1329. static struct qcom_icc_bcm bcm_sn5 = {
  1330. .name = "SN5",
  1331. .keepalive = false,
  1332. .num_nodes = 1,
  1333. .nodes = { &xs_qdss_stm },
  1334. };
  1335. static struct qcom_icc_bcm bcm_sn8 = {
  1336. .name = "SN8",
  1337. .keepalive = false,
  1338. .num_nodes = 2,
  1339. .nodes = { &xs_pcie_0, &xs_pcie_1 },
  1340. };
  1341. static struct qcom_icc_bcm bcm_sn9 = {
  1342. .name = "SN9",
  1343. .keepalive = false,
  1344. .num_nodes = 1,
  1345. .nodes = { &qnm_aggre1_noc },
  1346. };
  1347. static struct qcom_icc_bcm bcm_sn11 = {
  1348. .name = "SN11",
  1349. .keepalive = false,
  1350. .num_nodes = 1,
  1351. .nodes = { &qnm_aggre2_noc },
  1352. };
  1353. static struct qcom_icc_bcm bcm_sn12 = {
  1354. .name = "SN12",
  1355. .keepalive = false,
  1356. .num_nodes = 2,
  1357. .nodes = { &qxm_pimem, &xm_gic },
  1358. };
  1359. static struct qcom_icc_bcm bcm_sn14 = {
  1360. .name = "SN14",
  1361. .keepalive = false,
  1362. .num_nodes = 1,
  1363. .nodes = { &qns_pcie_mem_noc },
  1364. };
  1365. static struct qcom_icc_bcm bcm_sn15 = {
  1366. .name = "SN15",
  1367. .keepalive = false,
  1368. .num_nodes = 1,
  1369. .nodes = { &qnm_gemnoc },
  1370. };
  1371. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1372. &bcm_qup0,
  1373. &bcm_sn3,
  1374. };
  1375. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1376. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1377. [MASTER_QUP_0] = &qhm_qup0,
  1378. [MASTER_EMAC] = &xm_emac,
  1379. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1380. [MASTER_USB3] = &xm_usb3_0,
  1381. [MASTER_USB3_1] = &xm_usb3_1,
  1382. [A1NOC_SNOC_SLV] = &qns_a1noc_snoc,
  1383. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1384. };
  1385. static const struct qcom_icc_desc sm8150_aggre1_noc = {
  1386. .nodes = aggre1_noc_nodes,
  1387. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1388. .bcms = aggre1_noc_bcms,
  1389. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1390. };
  1391. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1392. &bcm_ce0,
  1393. &bcm_qup0,
  1394. &bcm_sn14,
  1395. &bcm_sn3,
  1396. };
  1397. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1398. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1399. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1400. [MASTER_QSPI] = &qhm_qspi,
  1401. [MASTER_QUP_1] = &qhm_qup1,
  1402. [MASTER_QUP_2] = &qhm_qup2,
  1403. [MASTER_SENSORS_AHB] = &qhm_sensorss_ahb,
  1404. [MASTER_TSIF] = &qhm_tsif,
  1405. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1406. [MASTER_CRYPTO_CORE_0] = &qxm_crypto,
  1407. [MASTER_IPA] = &qxm_ipa,
  1408. [MASTER_PCIE] = &xm_pcie3_0,
  1409. [MASTER_PCIE_1] = &xm_pcie3_1,
  1410. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1411. [MASTER_SDCC_2] = &xm_sdc2,
  1412. [MASTER_SDCC_4] = &xm_sdc4,
  1413. [A2NOC_SNOC_SLV] = &qns_a2noc_snoc,
  1414. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1415. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1416. };
  1417. static const struct qcom_icc_desc sm8150_aggre2_noc = {
  1418. .nodes = aggre2_noc_nodes,
  1419. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1420. .bcms = aggre2_noc_bcms,
  1421. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1422. };
  1423. static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
  1424. &bcm_mm1,
  1425. };
  1426. static struct qcom_icc_node * const camnoc_virt_nodes[] = {
  1427. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1428. [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp,
  1429. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1430. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1431. };
  1432. static const struct qcom_icc_desc sm8150_camnoc_virt = {
  1433. .nodes = camnoc_virt_nodes,
  1434. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1435. .bcms = camnoc_virt_bcms,
  1436. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1437. };
  1438. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1439. &bcm_co0,
  1440. &bcm_co1,
  1441. };
  1442. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1443. [MASTER_NPU] = &qnm_npu,
  1444. [SLAVE_CDSP_MEM_NOC] = &qns_cdsp_mem_noc,
  1445. };
  1446. static const struct qcom_icc_desc sm8150_compute_noc = {
  1447. .nodes = compute_noc_nodes,
  1448. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1449. .bcms = compute_noc_bcms,
  1450. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1451. };
  1452. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1453. &bcm_cn0,
  1454. };
  1455. static struct qcom_icc_node * const config_noc_nodes[] = {
  1456. [MASTER_SPDM] = &qhm_spdm,
  1457. [SNOC_CNOC_MAS] = &qnm_snoc,
  1458. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1459. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1460. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1461. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy_south,
  1462. [SLAVE_AOP] = &qhs_aop,
  1463. [SLAVE_AOSS] = &qhs_aoss,
  1464. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1465. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1466. [SLAVE_CDSP_CFG] = &qhs_compute_dsp,
  1467. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1468. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1469. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1470. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1471. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1472. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1473. [SLAVE_EMAC_CFG] = &qhs_emac_cfg,
  1474. [SLAVE_GLM] = &qhs_glm,
  1475. [SLAVE_GRAPHICS_3D_CFG] = &qhs_gpuss_cfg,
  1476. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1477. [SLAVE_IPA_CFG] = &qhs_ipa,
  1478. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1479. [SLAVE_NPU_CFG] = &qhs_npu_cfg,
  1480. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1481. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1482. [SLAVE_NORTH_PHY_CFG] = &qhs_phy_refgen_north,
  1483. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1484. [SLAVE_PRNG] = &qhs_prng,
  1485. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1486. [SLAVE_QSPI] = &qhs_qspi,
  1487. [SLAVE_QUP_2] = &qhs_qupv3_east,
  1488. [SLAVE_QUP_1] = &qhs_qupv3_north,
  1489. [SLAVE_QUP_0] = &qhs_qupv3_south,
  1490. [SLAVE_SDCC_2] = &qhs_sdc2,
  1491. [SLAVE_SDCC_4] = &qhs_sdc4,
  1492. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1493. [SLAVE_SPDM_WRAPPER] = &qhs_spdm,
  1494. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1495. [SLAVE_SSC_CFG] = &qhs_ssc_cfg,
  1496. [SLAVE_TCSR] = &qhs_tcsr,
  1497. [SLAVE_TLMM_EAST] = &qhs_tlmm_east,
  1498. [SLAVE_TLMM_NORTH] = &qhs_tlmm_north,
  1499. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  1500. [SLAVE_TLMM_WEST] = &qhs_tlmm_west,
  1501. [SLAVE_TSIF] = &qhs_tsif,
  1502. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  1503. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1504. [SLAVE_USB3] = &qhs_usb3_0,
  1505. [SLAVE_USB3_1] = &qhs_usb3_1,
  1506. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1507. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1508. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1509. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1510. };
  1511. static const struct qcom_icc_desc sm8150_config_noc = {
  1512. .nodes = config_noc_nodes,
  1513. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1514. .bcms = config_noc_bcms,
  1515. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1516. };
  1517. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1518. };
  1519. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1520. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1521. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1522. [SLAVE_GEM_NOC_CFG] = &qhs_memnoc,
  1523. };
  1524. static const struct qcom_icc_desc sm8150_dc_noc = {
  1525. .nodes = dc_noc_nodes,
  1526. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1527. .bcms = dc_noc_bcms,
  1528. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1529. };
  1530. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1531. &bcm_sh0,
  1532. &bcm_sh2,
  1533. &bcm_sh3,
  1534. &bcm_sh4,
  1535. &bcm_sh5,
  1536. };
  1537. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1538. [MASTER_AMPSS_M0] = &acm_apps,
  1539. [MASTER_GPU_TCU] = &acm_gpu_tcu,
  1540. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1541. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1542. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1543. [MASTER_GRAPHICS_3D] = &qnm_gpu,
  1544. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1545. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1546. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_pcie,
  1547. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1548. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1549. [MASTER_ECC] = &qxm_ecc,
  1550. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1551. [SLAVE_ECC] = &qns_ecc,
  1552. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1553. [SLAVE_LLCC] = &qns_llcc,
  1554. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1555. };
  1556. static const struct qcom_icc_desc sm8150_gem_noc = {
  1557. .nodes = gem_noc_nodes,
  1558. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1559. .bcms = gem_noc_bcms,
  1560. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1561. };
  1562. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1563. &bcm_acv,
  1564. &bcm_mc0,
  1565. };
  1566. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1567. [MASTER_LLCC] = &llcc_mc,
  1568. [SLAVE_EBI_CH0] = &ebi,
  1569. };
  1570. static const struct qcom_icc_desc sm8150_mc_virt = {
  1571. .nodes = mc_virt_nodes,
  1572. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1573. .bcms = mc_virt_bcms,
  1574. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1575. };
  1576. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1577. &bcm_mm0,
  1578. &bcm_mm1,
  1579. &bcm_mm2,
  1580. &bcm_mm3,
  1581. };
  1582. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1583. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1584. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0,
  1585. [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1,
  1586. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1587. [MASTER_MDP_PORT0] = &qxm_mdp0,
  1588. [MASTER_MDP_PORT1] = &qxm_mdp1,
  1589. [MASTER_ROTATOR] = &qxm_rot,
  1590. [MASTER_VIDEO_P0] = &qxm_venus0,
  1591. [MASTER_VIDEO_P1] = &qxm_venus1,
  1592. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1593. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  1594. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1595. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1596. };
  1597. static const struct qcom_icc_desc sm8150_mmss_noc = {
  1598. .nodes = mmss_noc_nodes,
  1599. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1600. .bcms = mmss_noc_bcms,
  1601. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1602. };
  1603. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1604. &bcm_sn0,
  1605. &bcm_sn1,
  1606. &bcm_sn11,
  1607. &bcm_sn12,
  1608. &bcm_sn15,
  1609. &bcm_sn2,
  1610. &bcm_sn3,
  1611. &bcm_sn4,
  1612. &bcm_sn5,
  1613. &bcm_sn8,
  1614. &bcm_sn9,
  1615. };
  1616. static struct qcom_icc_node * const system_noc_nodes[] = {
  1617. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1618. [A1NOC_SNOC_MAS] = &qnm_aggre1_noc,
  1619. [A2NOC_SNOC_MAS] = &qnm_aggre2_noc,
  1620. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1621. [MASTER_PIMEM] = &qxm_pimem,
  1622. [MASTER_GIC] = &xm_gic,
  1623. [SLAVE_APPSS] = &qhs_apss,
  1624. [SNOC_CNOC_SLV] = &qns_cnoc,
  1625. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1626. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1627. [SLAVE_OCIMEM] = &qxs_imem,
  1628. [SLAVE_PIMEM] = &qxs_pimem,
  1629. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1630. [SLAVE_PCIE_0] = &xs_pcie_0,
  1631. [SLAVE_PCIE_1] = &xs_pcie_1,
  1632. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1633. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1634. };
  1635. static const struct qcom_icc_desc sm8150_system_noc = {
  1636. .nodes = system_noc_nodes,
  1637. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1638. .bcms = system_noc_bcms,
  1639. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1640. };
  1641. static const struct of_device_id qnoc_of_match[] = {
  1642. { .compatible = "qcom,sm8150-aggre1-noc",
  1643. .data = &sm8150_aggre1_noc},
  1644. { .compatible = "qcom,sm8150-aggre2-noc",
  1645. .data = &sm8150_aggre2_noc},
  1646. { .compatible = "qcom,sm8150-camnoc-virt",
  1647. .data = &sm8150_camnoc_virt},
  1648. { .compatible = "qcom,sm8150-compute-noc",
  1649. .data = &sm8150_compute_noc},
  1650. { .compatible = "qcom,sm8150-config-noc",
  1651. .data = &sm8150_config_noc},
  1652. { .compatible = "qcom,sm8150-dc-noc",
  1653. .data = &sm8150_dc_noc},
  1654. { .compatible = "qcom,sm8150-gem-noc",
  1655. .data = &sm8150_gem_noc},
  1656. { .compatible = "qcom,sm8150-mc-virt",
  1657. .data = &sm8150_mc_virt},
  1658. { .compatible = "qcom,sm8150-mmss-noc",
  1659. .data = &sm8150_mmss_noc},
  1660. { .compatible = "qcom,sm8150-system-noc",
  1661. .data = &sm8150_system_noc},
  1662. { }
  1663. };
  1664. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1665. static struct platform_driver qnoc_driver = {
  1666. .probe = qcom_icc_rpmh_probe,
  1667. .remove_new = qcom_icc_rpmh_remove,
  1668. .driver = {
  1669. .name = "qnoc-sm8150",
  1670. .of_match_table = qnoc_of_match,
  1671. },
  1672. };
  1673. module_platform_driver(qnoc_driver);
  1674. MODULE_DESCRIPTION("Qualcomm SM8150 NoC driver");
  1675. MODULE_LICENSE("GPL v2");