sm8550.c 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  5. * Copyright (c) 2022, Linaro Limited
  6. *
  7. */
  8. #include <linux/device.h>
  9. #include <linux/interconnect.h>
  10. #include <linux/interconnect-provider.h>
  11. #include <linux/module.h>
  12. #include <linux/mod_devicetable.h>
  13. #include <linux/platform_device.h>
  14. #include <linux/property.h>
  15. #include <dt-bindings/interconnect/qcom,sm8550-rpmh.h>
  16. #include "bcm-voter.h"
  17. #include "icc-common.h"
  18. #include "icc-rpmh.h"
  19. #include "sm8550.h"
  20. static struct qcom_icc_node qhm_qspi = {
  21. .name = "qhm_qspi",
  22. .id = SM8550_MASTER_QSPI_0,
  23. .channels = 1,
  24. .buswidth = 4,
  25. .num_links = 1,
  26. .links = { SM8550_SLAVE_A1NOC_SNOC },
  27. };
  28. static struct qcom_icc_node qhm_qup1 = {
  29. .name = "qhm_qup1",
  30. .id = SM8550_MASTER_QUP_1,
  31. .channels = 1,
  32. .buswidth = 4,
  33. .num_links = 1,
  34. .links = { SM8550_SLAVE_A1NOC_SNOC },
  35. };
  36. static struct qcom_icc_node xm_sdc4 = {
  37. .name = "xm_sdc4",
  38. .id = SM8550_MASTER_SDCC_4,
  39. .channels = 1,
  40. .buswidth = 8,
  41. .num_links = 1,
  42. .links = { SM8550_SLAVE_A1NOC_SNOC },
  43. };
  44. static struct qcom_icc_node xm_ufs_mem = {
  45. .name = "xm_ufs_mem",
  46. .id = SM8550_MASTER_UFS_MEM,
  47. .channels = 1,
  48. .buswidth = 16,
  49. .num_links = 1,
  50. .links = { SM8550_SLAVE_A1NOC_SNOC },
  51. };
  52. static struct qcom_icc_node xm_usb3_0 = {
  53. .name = "xm_usb3_0",
  54. .id = SM8550_MASTER_USB3_0,
  55. .channels = 1,
  56. .buswidth = 8,
  57. .num_links = 1,
  58. .links = { SM8550_SLAVE_A1NOC_SNOC },
  59. };
  60. static struct qcom_icc_node qhm_qdss_bam = {
  61. .name = "qhm_qdss_bam",
  62. .id = SM8550_MASTER_QDSS_BAM,
  63. .channels = 1,
  64. .buswidth = 4,
  65. .num_links = 1,
  66. .links = { SM8550_SLAVE_A2NOC_SNOC },
  67. };
  68. static struct qcom_icc_node qhm_qup2 = {
  69. .name = "qhm_qup2",
  70. .id = SM8550_MASTER_QUP_2,
  71. .channels = 1,
  72. .buswidth = 4,
  73. .num_links = 1,
  74. .links = { SM8550_SLAVE_A2NOC_SNOC },
  75. };
  76. static struct qcom_icc_node qxm_crypto = {
  77. .name = "qxm_crypto",
  78. .id = SM8550_MASTER_CRYPTO,
  79. .channels = 1,
  80. .buswidth = 8,
  81. .num_links = 1,
  82. .links = { SM8550_SLAVE_A2NOC_SNOC },
  83. };
  84. static struct qcom_icc_node qxm_ipa = {
  85. .name = "qxm_ipa",
  86. .id = SM8550_MASTER_IPA,
  87. .channels = 1,
  88. .buswidth = 8,
  89. .num_links = 1,
  90. .links = { SM8550_SLAVE_A2NOC_SNOC },
  91. };
  92. static struct qcom_icc_node qxm_sp = {
  93. .name = "qxm_sp",
  94. .id = SM8550_MASTER_SP,
  95. .channels = 1,
  96. .buswidth = 8,
  97. .num_links = 1,
  98. .links = { SM8550_SLAVE_A2NOC_SNOC },
  99. };
  100. static struct qcom_icc_node xm_qdss_etr_0 = {
  101. .name = "xm_qdss_etr_0",
  102. .id = SM8550_MASTER_QDSS_ETR,
  103. .channels = 1,
  104. .buswidth = 8,
  105. .num_links = 1,
  106. .links = { SM8550_SLAVE_A2NOC_SNOC },
  107. };
  108. static struct qcom_icc_node xm_qdss_etr_1 = {
  109. .name = "xm_qdss_etr_1",
  110. .id = SM8550_MASTER_QDSS_ETR_1,
  111. .channels = 1,
  112. .buswidth = 8,
  113. .num_links = 1,
  114. .links = { SM8550_SLAVE_A2NOC_SNOC },
  115. };
  116. static struct qcom_icc_node xm_sdc2 = {
  117. .name = "xm_sdc2",
  118. .id = SM8550_MASTER_SDCC_2,
  119. .channels = 1,
  120. .buswidth = 8,
  121. .num_links = 1,
  122. .links = { SM8550_SLAVE_A2NOC_SNOC },
  123. };
  124. static struct qcom_icc_node qup0_core_master = {
  125. .name = "qup0_core_master",
  126. .id = SM8550_MASTER_QUP_CORE_0,
  127. .channels = 1,
  128. .buswidth = 4,
  129. .num_links = 1,
  130. .links = { SM8550_SLAVE_QUP_CORE_0 },
  131. };
  132. static struct qcom_icc_node qup1_core_master = {
  133. .name = "qup1_core_master",
  134. .id = SM8550_MASTER_QUP_CORE_1,
  135. .channels = 1,
  136. .buswidth = 4,
  137. .num_links = 1,
  138. .links = { SM8550_SLAVE_QUP_CORE_1 },
  139. };
  140. static struct qcom_icc_node qup2_core_master = {
  141. .name = "qup2_core_master",
  142. .id = SM8550_MASTER_QUP_CORE_2,
  143. .channels = 1,
  144. .buswidth = 4,
  145. .num_links = 1,
  146. .links = { SM8550_SLAVE_QUP_CORE_2 },
  147. };
  148. static struct qcom_icc_node qsm_cfg = {
  149. .name = "qsm_cfg",
  150. .id = SM8550_MASTER_CNOC_CFG,
  151. .channels = 1,
  152. .buswidth = 4,
  153. .num_links = 44,
  154. .links = { SM8550_SLAVE_AHB2PHY_SOUTH, SM8550_SLAVE_AHB2PHY_NORTH,
  155. SM8550_SLAVE_APPSS, SM8550_SLAVE_CAMERA_CFG,
  156. SM8550_SLAVE_CLK_CTL, SM8550_SLAVE_RBCPR_CX_CFG,
  157. SM8550_SLAVE_RBCPR_MMCX_CFG, SM8550_SLAVE_RBCPR_MXA_CFG,
  158. SM8550_SLAVE_RBCPR_MXC_CFG, SM8550_SLAVE_CPR_NSPCX,
  159. SM8550_SLAVE_CRYPTO_0_CFG, SM8550_SLAVE_CX_RDPM,
  160. SM8550_SLAVE_DISPLAY_CFG, SM8550_SLAVE_GFX3D_CFG,
  161. SM8550_SLAVE_I2C, SM8550_SLAVE_IMEM_CFG,
  162. SM8550_SLAVE_IPA_CFG, SM8550_SLAVE_IPC_ROUTER_CFG,
  163. SM8550_SLAVE_CNOC_MSS, SM8550_SLAVE_MX_RDPM,
  164. SM8550_SLAVE_PCIE_0_CFG, SM8550_SLAVE_PCIE_1_CFG,
  165. SM8550_SLAVE_PDM, SM8550_SLAVE_PIMEM_CFG,
  166. SM8550_SLAVE_PRNG, SM8550_SLAVE_QDSS_CFG,
  167. SM8550_SLAVE_QSPI_0, SM8550_SLAVE_QUP_1,
  168. SM8550_SLAVE_QUP_2, SM8550_SLAVE_SDCC_2,
  169. SM8550_SLAVE_SDCC_4, SM8550_SLAVE_SPSS_CFG,
  170. SM8550_SLAVE_TCSR, SM8550_SLAVE_TLMM,
  171. SM8550_SLAVE_UFS_MEM_CFG, SM8550_SLAVE_USB3_0,
  172. SM8550_SLAVE_VENUS_CFG, SM8550_SLAVE_VSENSE_CTRL_CFG,
  173. SM8550_SLAVE_LPASS_QTB_CFG, SM8550_SLAVE_CNOC_MNOC_CFG,
  174. SM8550_SLAVE_NSP_QTB_CFG, SM8550_SLAVE_PCIE_ANOC_CFG,
  175. SM8550_SLAVE_QDSS_STM, SM8550_SLAVE_TCU },
  176. };
  177. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  178. .name = "qnm_gemnoc_cnoc",
  179. .id = SM8550_MASTER_GEM_NOC_CNOC,
  180. .channels = 1,
  181. .buswidth = 16,
  182. .num_links = 6,
  183. .links = { SM8550_SLAVE_AOSS, SM8550_SLAVE_TME_CFG,
  184. SM8550_SLAVE_CNOC_CFG, SM8550_SLAVE_DDRSS_CFG,
  185. SM8550_SLAVE_BOOT_IMEM, SM8550_SLAVE_IMEM },
  186. };
  187. static struct qcom_icc_node qnm_gemnoc_pcie = {
  188. .name = "qnm_gemnoc_pcie",
  189. .id = SM8550_MASTER_GEM_NOC_PCIE_SNOC,
  190. .channels = 1,
  191. .buswidth = 8,
  192. .num_links = 2,
  193. .links = { SM8550_SLAVE_PCIE_0, SM8550_SLAVE_PCIE_1 },
  194. };
  195. static struct qcom_icc_node alm_gpu_tcu = {
  196. .name = "alm_gpu_tcu",
  197. .id = SM8550_MASTER_GPU_TCU,
  198. .channels = 1,
  199. .buswidth = 8,
  200. .num_links = 2,
  201. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  202. };
  203. static struct qcom_icc_node alm_sys_tcu = {
  204. .name = "alm_sys_tcu",
  205. .id = SM8550_MASTER_SYS_TCU,
  206. .channels = 1,
  207. .buswidth = 8,
  208. .num_links = 2,
  209. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  210. };
  211. static struct qcom_icc_node chm_apps = {
  212. .name = "chm_apps",
  213. .id = SM8550_MASTER_APPSS_PROC,
  214. .channels = 3,
  215. .buswidth = 32,
  216. .num_links = 3,
  217. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC,
  218. SM8550_SLAVE_MEM_NOC_PCIE_SNOC },
  219. };
  220. static struct qcom_icc_node qnm_gpu = {
  221. .name = "qnm_gpu",
  222. .id = SM8550_MASTER_GFX3D,
  223. .channels = 2,
  224. .buswidth = 32,
  225. .num_links = 2,
  226. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  227. };
  228. static struct qcom_icc_node qnm_lpass_gemnoc = {
  229. .name = "qnm_lpass_gemnoc",
  230. .id = SM8550_MASTER_LPASS_GEM_NOC,
  231. .channels = 1,
  232. .buswidth = 16,
  233. .num_links = 3,
  234. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC,
  235. SM8550_SLAVE_MEM_NOC_PCIE_SNOC },
  236. };
  237. static struct qcom_icc_node qnm_mdsp = {
  238. .name = "qnm_mdsp",
  239. .id = SM8550_MASTER_MSS_PROC,
  240. .channels = 1,
  241. .buswidth = 16,
  242. .num_links = 3,
  243. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC,
  244. SM8550_SLAVE_MEM_NOC_PCIE_SNOC },
  245. };
  246. static struct qcom_icc_node qnm_mnoc_hf = {
  247. .name = "qnm_mnoc_hf",
  248. .id = SM8550_MASTER_MNOC_HF_MEM_NOC,
  249. .channels = 2,
  250. .buswidth = 32,
  251. .num_links = 2,
  252. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  253. };
  254. static struct qcom_icc_node qnm_mnoc_sf = {
  255. .name = "qnm_mnoc_sf",
  256. .id = SM8550_MASTER_MNOC_SF_MEM_NOC,
  257. .channels = 2,
  258. .buswidth = 32,
  259. .num_links = 2,
  260. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  261. };
  262. static struct qcom_icc_node qnm_nsp_gemnoc = {
  263. .name = "qnm_nsp_gemnoc",
  264. .id = SM8550_MASTER_COMPUTE_NOC,
  265. .channels = 2,
  266. .buswidth = 32,
  267. .num_links = 2,
  268. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  269. };
  270. static struct qcom_icc_node qnm_pcie = {
  271. .name = "qnm_pcie",
  272. .id = SM8550_MASTER_ANOC_PCIE_GEM_NOC,
  273. .channels = 1,
  274. .buswidth = 16,
  275. .num_links = 2,
  276. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC },
  277. };
  278. static struct qcom_icc_node qnm_snoc_gc = {
  279. .name = "qnm_snoc_gc",
  280. .id = SM8550_MASTER_SNOC_GC_MEM_NOC,
  281. .channels = 1,
  282. .buswidth = 8,
  283. .num_links = 1,
  284. .links = { SM8550_SLAVE_LLCC },
  285. };
  286. static struct qcom_icc_node qnm_snoc_sf = {
  287. .name = "qnm_snoc_sf",
  288. .id = SM8550_MASTER_SNOC_SF_MEM_NOC,
  289. .channels = 1,
  290. .buswidth = 16,
  291. .num_links = 3,
  292. .links = { SM8550_SLAVE_GEM_NOC_CNOC, SM8550_SLAVE_LLCC,
  293. SM8550_SLAVE_MEM_NOC_PCIE_SNOC },
  294. };
  295. static struct qcom_icc_node qnm_lpiaon_noc = {
  296. .name = "qnm_lpiaon_noc",
  297. .id = SM8550_MASTER_LPIAON_NOC,
  298. .channels = 1,
  299. .buswidth = 16,
  300. .num_links = 1,
  301. .links = { SM8550_SLAVE_LPASS_GEM_NOC },
  302. };
  303. static struct qcom_icc_node qnm_lpass_lpinoc = {
  304. .name = "qnm_lpass_lpinoc",
  305. .id = SM8550_MASTER_LPASS_LPINOC,
  306. .channels = 1,
  307. .buswidth = 16,
  308. .num_links = 1,
  309. .links = { SM8550_SLAVE_LPIAON_NOC_LPASS_AG_NOC },
  310. };
  311. static struct qcom_icc_node qxm_lpinoc_dsp_axim = {
  312. .name = "qxm_lpinoc_dsp_axim",
  313. .id = SM8550_MASTER_LPASS_PROC,
  314. .channels = 1,
  315. .buswidth = 16,
  316. .num_links = 1,
  317. .links = { SM8550_SLAVE_LPICX_NOC_LPIAON_NOC },
  318. };
  319. static struct qcom_icc_node llcc_mc = {
  320. .name = "llcc_mc",
  321. .id = SM8550_MASTER_LLCC,
  322. .channels = 4,
  323. .buswidth = 4,
  324. .num_links = 1,
  325. .links = { SM8550_SLAVE_EBI1 },
  326. };
  327. static struct qcom_icc_node qnm_camnoc_hf = {
  328. .name = "qnm_camnoc_hf",
  329. .id = SM8550_MASTER_CAMNOC_HF,
  330. .channels = 2,
  331. .buswidth = 32,
  332. .num_links = 1,
  333. .links = { SM8550_SLAVE_MNOC_HF_MEM_NOC },
  334. };
  335. static struct qcom_icc_node qnm_camnoc_icp = {
  336. .name = "qnm_camnoc_icp",
  337. .id = SM8550_MASTER_CAMNOC_ICP,
  338. .channels = 1,
  339. .buswidth = 8,
  340. .num_links = 1,
  341. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  342. };
  343. static struct qcom_icc_node qnm_camnoc_sf = {
  344. .name = "qnm_camnoc_sf",
  345. .id = SM8550_MASTER_CAMNOC_SF,
  346. .channels = 2,
  347. .buswidth = 32,
  348. .num_links = 1,
  349. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  350. };
  351. static struct qcom_icc_node qnm_mdp = {
  352. .name = "qnm_mdp",
  353. .id = SM8550_MASTER_MDP,
  354. .channels = 2,
  355. .buswidth = 32,
  356. .num_links = 1,
  357. .links = { SM8550_SLAVE_MNOC_HF_MEM_NOC },
  358. };
  359. static struct qcom_icc_node qnm_vapss_hcp = {
  360. .name = "qnm_vapss_hcp",
  361. .id = SM8550_MASTER_CDSP_HCP,
  362. .channels = 1,
  363. .buswidth = 32,
  364. .num_links = 1,
  365. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  366. };
  367. static struct qcom_icc_node qnm_video = {
  368. .name = "qnm_video",
  369. .id = SM8550_MASTER_VIDEO,
  370. .channels = 2,
  371. .buswidth = 32,
  372. .num_links = 1,
  373. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  374. };
  375. static struct qcom_icc_node qnm_video_cv_cpu = {
  376. .name = "qnm_video_cv_cpu",
  377. .id = SM8550_MASTER_VIDEO_CV_PROC,
  378. .channels = 1,
  379. .buswidth = 8,
  380. .num_links = 1,
  381. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  382. };
  383. static struct qcom_icc_node qnm_video_cvp = {
  384. .name = "qnm_video_cvp",
  385. .id = SM8550_MASTER_VIDEO_PROC,
  386. .channels = 1,
  387. .buswidth = 32,
  388. .num_links = 1,
  389. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  390. };
  391. static struct qcom_icc_node qnm_video_v_cpu = {
  392. .name = "qnm_video_v_cpu",
  393. .id = SM8550_MASTER_VIDEO_V_PROC,
  394. .channels = 1,
  395. .buswidth = 8,
  396. .num_links = 1,
  397. .links = { SM8550_SLAVE_MNOC_SF_MEM_NOC },
  398. };
  399. static struct qcom_icc_node qsm_mnoc_cfg = {
  400. .name = "qsm_mnoc_cfg",
  401. .id = SM8550_MASTER_CNOC_MNOC_CFG,
  402. .channels = 1,
  403. .buswidth = 4,
  404. .num_links = 1,
  405. .links = { SM8550_SLAVE_SERVICE_MNOC },
  406. };
  407. static struct qcom_icc_node qxm_nsp = {
  408. .name = "qxm_nsp",
  409. .id = SM8550_MASTER_CDSP_PROC,
  410. .channels = 2,
  411. .buswidth = 32,
  412. .num_links = 1,
  413. .links = { SM8550_SLAVE_CDSP_MEM_NOC },
  414. };
  415. static struct qcom_icc_node qsm_pcie_anoc_cfg = {
  416. .name = "qsm_pcie_anoc_cfg",
  417. .id = SM8550_MASTER_PCIE_ANOC_CFG,
  418. .channels = 1,
  419. .buswidth = 4,
  420. .num_links = 1,
  421. .links = { SM8550_SLAVE_SERVICE_PCIE_ANOC },
  422. };
  423. static struct qcom_icc_node xm_pcie3_0 = {
  424. .name = "xm_pcie3_0",
  425. .id = SM8550_MASTER_PCIE_0,
  426. .channels = 1,
  427. .buswidth = 8,
  428. .num_links = 1,
  429. .links = { SM8550_SLAVE_ANOC_PCIE_GEM_NOC },
  430. };
  431. static struct qcom_icc_node xm_pcie3_1 = {
  432. .name = "xm_pcie3_1",
  433. .id = SM8550_MASTER_PCIE_1,
  434. .channels = 1,
  435. .buswidth = 16,
  436. .num_links = 1,
  437. .links = { SM8550_SLAVE_ANOC_PCIE_GEM_NOC },
  438. };
  439. static struct qcom_icc_node qhm_gic = {
  440. .name = "qhm_gic",
  441. .id = SM8550_MASTER_GIC_AHB,
  442. .channels = 1,
  443. .buswidth = 4,
  444. .num_links = 1,
  445. .links = { SM8550_SLAVE_SNOC_GEM_NOC_SF },
  446. };
  447. static struct qcom_icc_node qnm_aggre1_noc = {
  448. .name = "qnm_aggre1_noc",
  449. .id = SM8550_MASTER_A1NOC_SNOC,
  450. .channels = 1,
  451. .buswidth = 16,
  452. .num_links = 1,
  453. .links = { SM8550_SLAVE_SNOC_GEM_NOC_SF },
  454. };
  455. static struct qcom_icc_node qnm_aggre2_noc = {
  456. .name = "qnm_aggre2_noc",
  457. .id = SM8550_MASTER_A2NOC_SNOC,
  458. .channels = 1,
  459. .buswidth = 16,
  460. .num_links = 1,
  461. .links = { SM8550_SLAVE_SNOC_GEM_NOC_SF },
  462. };
  463. static struct qcom_icc_node xm_gic = {
  464. .name = "xm_gic",
  465. .id = SM8550_MASTER_GIC,
  466. .channels = 1,
  467. .buswidth = 8,
  468. .num_links = 1,
  469. .links = { SM8550_SLAVE_SNOC_GEM_NOC_GC },
  470. };
  471. static struct qcom_icc_node qns_a1noc_snoc = {
  472. .name = "qns_a1noc_snoc",
  473. .id = SM8550_SLAVE_A1NOC_SNOC,
  474. .channels = 1,
  475. .buswidth = 16,
  476. .num_links = 1,
  477. .links = { SM8550_MASTER_A1NOC_SNOC },
  478. };
  479. static struct qcom_icc_node qns_a2noc_snoc = {
  480. .name = "qns_a2noc_snoc",
  481. .id = SM8550_SLAVE_A2NOC_SNOC,
  482. .channels = 1,
  483. .buswidth = 16,
  484. .num_links = 1,
  485. .links = { SM8550_MASTER_A2NOC_SNOC },
  486. };
  487. static struct qcom_icc_node qup0_core_slave = {
  488. .name = "qup0_core_slave",
  489. .id = SM8550_SLAVE_QUP_CORE_0,
  490. .channels = 1,
  491. .buswidth = 4,
  492. .num_links = 0,
  493. };
  494. static struct qcom_icc_node qup1_core_slave = {
  495. .name = "qup1_core_slave",
  496. .id = SM8550_SLAVE_QUP_CORE_1,
  497. .channels = 1,
  498. .buswidth = 4,
  499. .num_links = 0,
  500. };
  501. static struct qcom_icc_node qup2_core_slave = {
  502. .name = "qup2_core_slave",
  503. .id = SM8550_SLAVE_QUP_CORE_2,
  504. .channels = 1,
  505. .buswidth = 4,
  506. .num_links = 0,
  507. };
  508. static struct qcom_icc_node qhs_ahb2phy0 = {
  509. .name = "qhs_ahb2phy0",
  510. .id = SM8550_SLAVE_AHB2PHY_SOUTH,
  511. .channels = 1,
  512. .buswidth = 4,
  513. .num_links = 0,
  514. };
  515. static struct qcom_icc_node qhs_ahb2phy1 = {
  516. .name = "qhs_ahb2phy1",
  517. .id = SM8550_SLAVE_AHB2PHY_NORTH,
  518. .channels = 1,
  519. .buswidth = 4,
  520. .num_links = 0,
  521. };
  522. static struct qcom_icc_node qhs_apss = {
  523. .name = "qhs_apss",
  524. .id = SM8550_SLAVE_APPSS,
  525. .channels = 1,
  526. .buswidth = 8,
  527. .num_links = 0,
  528. };
  529. static struct qcom_icc_node qhs_camera_cfg = {
  530. .name = "qhs_camera_cfg",
  531. .id = SM8550_SLAVE_CAMERA_CFG,
  532. .channels = 1,
  533. .buswidth = 4,
  534. .num_links = 0,
  535. };
  536. static struct qcom_icc_node qhs_clk_ctl = {
  537. .name = "qhs_clk_ctl",
  538. .id = SM8550_SLAVE_CLK_CTL,
  539. .channels = 1,
  540. .buswidth = 4,
  541. .num_links = 0,
  542. };
  543. static struct qcom_icc_node qhs_cpr_cx = {
  544. .name = "qhs_cpr_cx",
  545. .id = SM8550_SLAVE_RBCPR_CX_CFG,
  546. .channels = 1,
  547. .buswidth = 4,
  548. .num_links = 0,
  549. };
  550. static struct qcom_icc_node qhs_cpr_mmcx = {
  551. .name = "qhs_cpr_mmcx",
  552. .id = SM8550_SLAVE_RBCPR_MMCX_CFG,
  553. .channels = 1,
  554. .buswidth = 4,
  555. .num_links = 0,
  556. };
  557. static struct qcom_icc_node qhs_cpr_mxa = {
  558. .name = "qhs_cpr_mxa",
  559. .id = SM8550_SLAVE_RBCPR_MXA_CFG,
  560. .channels = 1,
  561. .buswidth = 4,
  562. .num_links = 0,
  563. };
  564. static struct qcom_icc_node qhs_cpr_mxc = {
  565. .name = "qhs_cpr_mxc",
  566. .id = SM8550_SLAVE_RBCPR_MXC_CFG,
  567. .channels = 1,
  568. .buswidth = 4,
  569. .num_links = 0,
  570. };
  571. static struct qcom_icc_node qhs_cpr_nspcx = {
  572. .name = "qhs_cpr_nspcx",
  573. .id = SM8550_SLAVE_CPR_NSPCX,
  574. .channels = 1,
  575. .buswidth = 4,
  576. .num_links = 0,
  577. };
  578. static struct qcom_icc_node qhs_crypto0_cfg = {
  579. .name = "qhs_crypto0_cfg",
  580. .id = SM8550_SLAVE_CRYPTO_0_CFG,
  581. .channels = 1,
  582. .buswidth = 4,
  583. .num_links = 0,
  584. };
  585. static struct qcom_icc_node qhs_cx_rdpm = {
  586. .name = "qhs_cx_rdpm",
  587. .id = SM8550_SLAVE_CX_RDPM,
  588. .channels = 1,
  589. .buswidth = 4,
  590. .num_links = 0,
  591. };
  592. static struct qcom_icc_node qhs_display_cfg = {
  593. .name = "qhs_display_cfg",
  594. .id = SM8550_SLAVE_DISPLAY_CFG,
  595. .channels = 1,
  596. .buswidth = 4,
  597. .num_links = 0,
  598. };
  599. static struct qcom_icc_node qhs_gpuss_cfg = {
  600. .name = "qhs_gpuss_cfg",
  601. .id = SM8550_SLAVE_GFX3D_CFG,
  602. .channels = 1,
  603. .buswidth = 8,
  604. .num_links = 0,
  605. };
  606. static struct qcom_icc_node qhs_i2c = {
  607. .name = "qhs_i2c",
  608. .id = SM8550_SLAVE_I2C,
  609. .channels = 1,
  610. .buswidth = 4,
  611. .num_links = 0,
  612. };
  613. static struct qcom_icc_node qhs_imem_cfg = {
  614. .name = "qhs_imem_cfg",
  615. .id = SM8550_SLAVE_IMEM_CFG,
  616. .channels = 1,
  617. .buswidth = 4,
  618. .num_links = 0,
  619. };
  620. static struct qcom_icc_node qhs_ipa = {
  621. .name = "qhs_ipa",
  622. .id = SM8550_SLAVE_IPA_CFG,
  623. .channels = 1,
  624. .buswidth = 4,
  625. .num_links = 0,
  626. };
  627. static struct qcom_icc_node qhs_ipc_router = {
  628. .name = "qhs_ipc_router",
  629. .id = SM8550_SLAVE_IPC_ROUTER_CFG,
  630. .channels = 1,
  631. .buswidth = 4,
  632. .num_links = 0,
  633. };
  634. static struct qcom_icc_node qhs_mss_cfg = {
  635. .name = "qhs_mss_cfg",
  636. .id = SM8550_SLAVE_CNOC_MSS,
  637. .channels = 1,
  638. .buswidth = 4,
  639. .num_links = 0,
  640. };
  641. static struct qcom_icc_node qhs_mx_rdpm = {
  642. .name = "qhs_mx_rdpm",
  643. .id = SM8550_SLAVE_MX_RDPM,
  644. .channels = 1,
  645. .buswidth = 4,
  646. .num_links = 0,
  647. };
  648. static struct qcom_icc_node qhs_pcie0_cfg = {
  649. .name = "qhs_pcie0_cfg",
  650. .id = SM8550_SLAVE_PCIE_0_CFG,
  651. .channels = 1,
  652. .buswidth = 4,
  653. .num_links = 0,
  654. };
  655. static struct qcom_icc_node qhs_pcie1_cfg = {
  656. .name = "qhs_pcie1_cfg",
  657. .id = SM8550_SLAVE_PCIE_1_CFG,
  658. .channels = 1,
  659. .buswidth = 4,
  660. .num_links = 0,
  661. };
  662. static struct qcom_icc_node qhs_pdm = {
  663. .name = "qhs_pdm",
  664. .id = SM8550_SLAVE_PDM,
  665. .channels = 1,
  666. .buswidth = 4,
  667. .num_links = 0,
  668. };
  669. static struct qcom_icc_node qhs_pimem_cfg = {
  670. .name = "qhs_pimem_cfg",
  671. .id = SM8550_SLAVE_PIMEM_CFG,
  672. .channels = 1,
  673. .buswidth = 4,
  674. .num_links = 0,
  675. };
  676. static struct qcom_icc_node qhs_prng = {
  677. .name = "qhs_prng",
  678. .id = SM8550_SLAVE_PRNG,
  679. .channels = 1,
  680. .buswidth = 4,
  681. .num_links = 0,
  682. };
  683. static struct qcom_icc_node qhs_qdss_cfg = {
  684. .name = "qhs_qdss_cfg",
  685. .id = SM8550_SLAVE_QDSS_CFG,
  686. .channels = 1,
  687. .buswidth = 4,
  688. .num_links = 0,
  689. };
  690. static struct qcom_icc_node qhs_qspi = {
  691. .name = "qhs_qspi",
  692. .id = SM8550_SLAVE_QSPI_0,
  693. .channels = 1,
  694. .buswidth = 4,
  695. .num_links = 0,
  696. };
  697. static struct qcom_icc_node qhs_qup1 = {
  698. .name = "qhs_qup1",
  699. .id = SM8550_SLAVE_QUP_1,
  700. .channels = 1,
  701. .buswidth = 4,
  702. .num_links = 0,
  703. };
  704. static struct qcom_icc_node qhs_qup2 = {
  705. .name = "qhs_qup2",
  706. .id = SM8550_SLAVE_QUP_2,
  707. .channels = 1,
  708. .buswidth = 4,
  709. .num_links = 0,
  710. };
  711. static struct qcom_icc_node qhs_sdc2 = {
  712. .name = "qhs_sdc2",
  713. .id = SM8550_SLAVE_SDCC_2,
  714. .channels = 1,
  715. .buswidth = 4,
  716. .num_links = 0,
  717. };
  718. static struct qcom_icc_node qhs_sdc4 = {
  719. .name = "qhs_sdc4",
  720. .id = SM8550_SLAVE_SDCC_4,
  721. .channels = 1,
  722. .buswidth = 4,
  723. .num_links = 0,
  724. };
  725. static struct qcom_icc_node qhs_spss_cfg = {
  726. .name = "qhs_spss_cfg",
  727. .id = SM8550_SLAVE_SPSS_CFG,
  728. .channels = 1,
  729. .buswidth = 4,
  730. .num_links = 0,
  731. };
  732. static struct qcom_icc_node qhs_tcsr = {
  733. .name = "qhs_tcsr",
  734. .id = SM8550_SLAVE_TCSR,
  735. .channels = 1,
  736. .buswidth = 4,
  737. .num_links = 0,
  738. };
  739. static struct qcom_icc_node qhs_tlmm = {
  740. .name = "qhs_tlmm",
  741. .id = SM8550_SLAVE_TLMM,
  742. .channels = 1,
  743. .buswidth = 4,
  744. .num_links = 0,
  745. };
  746. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  747. .name = "qhs_ufs_mem_cfg",
  748. .id = SM8550_SLAVE_UFS_MEM_CFG,
  749. .channels = 1,
  750. .buswidth = 4,
  751. .num_links = 0,
  752. };
  753. static struct qcom_icc_node qhs_usb3_0 = {
  754. .name = "qhs_usb3_0",
  755. .id = SM8550_SLAVE_USB3_0,
  756. .channels = 1,
  757. .buswidth = 4,
  758. .num_links = 0,
  759. };
  760. static struct qcom_icc_node qhs_venus_cfg = {
  761. .name = "qhs_venus_cfg",
  762. .id = SM8550_SLAVE_VENUS_CFG,
  763. .channels = 1,
  764. .buswidth = 4,
  765. .num_links = 0,
  766. };
  767. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  768. .name = "qhs_vsense_ctrl_cfg",
  769. .id = SM8550_SLAVE_VSENSE_CTRL_CFG,
  770. .channels = 1,
  771. .buswidth = 4,
  772. .num_links = 0,
  773. };
  774. static struct qcom_icc_node qss_lpass_qtb_cfg = {
  775. .name = "qss_lpass_qtb_cfg",
  776. .id = SM8550_SLAVE_LPASS_QTB_CFG,
  777. .channels = 1,
  778. .buswidth = 4,
  779. .num_links = 0,
  780. };
  781. static struct qcom_icc_node qss_mnoc_cfg = {
  782. .name = "qss_mnoc_cfg",
  783. .id = SM8550_SLAVE_CNOC_MNOC_CFG,
  784. .channels = 1,
  785. .buswidth = 4,
  786. .num_links = 1,
  787. .links = { SM8550_MASTER_CNOC_MNOC_CFG },
  788. };
  789. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  790. .name = "qss_nsp_qtb_cfg",
  791. .id = SM8550_SLAVE_NSP_QTB_CFG,
  792. .channels = 1,
  793. .buswidth = 4,
  794. .num_links = 0,
  795. };
  796. static struct qcom_icc_node qss_pcie_anoc_cfg = {
  797. .name = "qss_pcie_anoc_cfg",
  798. .id = SM8550_SLAVE_PCIE_ANOC_CFG,
  799. .channels = 1,
  800. .buswidth = 4,
  801. .num_links = 1,
  802. .links = { SM8550_MASTER_PCIE_ANOC_CFG },
  803. };
  804. static struct qcom_icc_node xs_qdss_stm = {
  805. .name = "xs_qdss_stm",
  806. .id = SM8550_SLAVE_QDSS_STM,
  807. .channels = 1,
  808. .buswidth = 4,
  809. .num_links = 0,
  810. };
  811. static struct qcom_icc_node xs_sys_tcu_cfg = {
  812. .name = "xs_sys_tcu_cfg",
  813. .id = SM8550_SLAVE_TCU,
  814. .channels = 1,
  815. .buswidth = 8,
  816. .num_links = 0,
  817. };
  818. static struct qcom_icc_node qhs_aoss = {
  819. .name = "qhs_aoss",
  820. .id = SM8550_SLAVE_AOSS,
  821. .channels = 1,
  822. .buswidth = 4,
  823. .num_links = 0,
  824. };
  825. static struct qcom_icc_node qhs_tme_cfg = {
  826. .name = "qhs_tme_cfg",
  827. .id = SM8550_SLAVE_TME_CFG,
  828. .channels = 1,
  829. .buswidth = 4,
  830. .num_links = 0,
  831. };
  832. static struct qcom_icc_node qss_cfg = {
  833. .name = "qss_cfg",
  834. .id = SM8550_SLAVE_CNOC_CFG,
  835. .channels = 1,
  836. .buswidth = 4,
  837. .num_links = 1,
  838. .links = { SM8550_MASTER_CNOC_CFG },
  839. };
  840. static struct qcom_icc_node qss_ddrss_cfg = {
  841. .name = "qss_ddrss_cfg",
  842. .id = SM8550_SLAVE_DDRSS_CFG,
  843. .channels = 1,
  844. .buswidth = 4,
  845. .num_links = 0,
  846. };
  847. static struct qcom_icc_node qxs_boot_imem = {
  848. .name = "qxs_boot_imem",
  849. .id = SM8550_SLAVE_BOOT_IMEM,
  850. .channels = 1,
  851. .buswidth = 8,
  852. .num_links = 0,
  853. };
  854. static struct qcom_icc_node qxs_imem = {
  855. .name = "qxs_imem",
  856. .id = SM8550_SLAVE_IMEM,
  857. .channels = 1,
  858. .buswidth = 8,
  859. .num_links = 0,
  860. };
  861. static struct qcom_icc_node xs_pcie_0 = {
  862. .name = "xs_pcie_0",
  863. .id = SM8550_SLAVE_PCIE_0,
  864. .channels = 1,
  865. .buswidth = 8,
  866. .num_links = 0,
  867. };
  868. static struct qcom_icc_node xs_pcie_1 = {
  869. .name = "xs_pcie_1",
  870. .id = SM8550_SLAVE_PCIE_1,
  871. .channels = 1,
  872. .buswidth = 16,
  873. .num_links = 0,
  874. };
  875. static struct qcom_icc_node qns_gem_noc_cnoc = {
  876. .name = "qns_gem_noc_cnoc",
  877. .id = SM8550_SLAVE_GEM_NOC_CNOC,
  878. .channels = 1,
  879. .buswidth = 16,
  880. .num_links = 1,
  881. .links = { SM8550_MASTER_GEM_NOC_CNOC },
  882. };
  883. static struct qcom_icc_node qns_llcc = {
  884. .name = "qns_llcc",
  885. .id = SM8550_SLAVE_LLCC,
  886. .channels = 4,
  887. .buswidth = 16,
  888. .num_links = 1,
  889. .links = { SM8550_MASTER_LLCC },
  890. };
  891. static struct qcom_icc_node qns_pcie = {
  892. .name = "qns_pcie",
  893. .id = SM8550_SLAVE_MEM_NOC_PCIE_SNOC,
  894. .channels = 1,
  895. .buswidth = 8,
  896. .num_links = 1,
  897. .links = { SM8550_MASTER_GEM_NOC_PCIE_SNOC },
  898. };
  899. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  900. .name = "qns_lpass_ag_noc_gemnoc",
  901. .id = SM8550_SLAVE_LPASS_GEM_NOC,
  902. .channels = 1,
  903. .buswidth = 16,
  904. .num_links = 1,
  905. .links = { SM8550_MASTER_LPASS_GEM_NOC },
  906. };
  907. static struct qcom_icc_node qns_lpass_aggnoc = {
  908. .name = "qns_lpass_aggnoc",
  909. .id = SM8550_SLAVE_LPIAON_NOC_LPASS_AG_NOC,
  910. .channels = 1,
  911. .buswidth = 16,
  912. .num_links = 1,
  913. .links = { SM8550_MASTER_LPIAON_NOC },
  914. };
  915. static struct qcom_icc_node qns_lpi_aon_noc = {
  916. .name = "qns_lpi_aon_noc",
  917. .id = SM8550_SLAVE_LPICX_NOC_LPIAON_NOC,
  918. .channels = 1,
  919. .buswidth = 16,
  920. .num_links = 1,
  921. .links = { SM8550_MASTER_LPASS_LPINOC },
  922. };
  923. static struct qcom_icc_node ebi = {
  924. .name = "ebi",
  925. .id = SM8550_SLAVE_EBI1,
  926. .channels = 4,
  927. .buswidth = 4,
  928. .num_links = 0,
  929. };
  930. static struct qcom_icc_node qns_mem_noc_hf = {
  931. .name = "qns_mem_noc_hf",
  932. .id = SM8550_SLAVE_MNOC_HF_MEM_NOC,
  933. .channels = 2,
  934. .buswidth = 32,
  935. .num_links = 1,
  936. .links = { SM8550_MASTER_MNOC_HF_MEM_NOC },
  937. };
  938. static struct qcom_icc_node qns_mem_noc_sf = {
  939. .name = "qns_mem_noc_sf",
  940. .id = SM8550_SLAVE_MNOC_SF_MEM_NOC,
  941. .channels = 2,
  942. .buswidth = 32,
  943. .num_links = 1,
  944. .links = { SM8550_MASTER_MNOC_SF_MEM_NOC },
  945. };
  946. static struct qcom_icc_node srvc_mnoc = {
  947. .name = "srvc_mnoc",
  948. .id = SM8550_SLAVE_SERVICE_MNOC,
  949. .channels = 1,
  950. .buswidth = 4,
  951. .num_links = 0,
  952. };
  953. static struct qcom_icc_node qns_nsp_gemnoc = {
  954. .name = "qns_nsp_gemnoc",
  955. .id = SM8550_SLAVE_CDSP_MEM_NOC,
  956. .channels = 2,
  957. .buswidth = 32,
  958. .num_links = 1,
  959. .links = { SM8550_MASTER_COMPUTE_NOC },
  960. };
  961. static struct qcom_icc_node qns_pcie_mem_noc = {
  962. .name = "qns_pcie_mem_noc",
  963. .id = SM8550_SLAVE_ANOC_PCIE_GEM_NOC,
  964. .channels = 1,
  965. .buswidth = 16,
  966. .num_links = 1,
  967. .links = { SM8550_MASTER_ANOC_PCIE_GEM_NOC },
  968. };
  969. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  970. .name = "srvc_pcie_aggre_noc",
  971. .id = SM8550_SLAVE_SERVICE_PCIE_ANOC,
  972. .channels = 1,
  973. .buswidth = 4,
  974. .num_links = 0,
  975. };
  976. static struct qcom_icc_node qns_gemnoc_gc = {
  977. .name = "qns_gemnoc_gc",
  978. .id = SM8550_SLAVE_SNOC_GEM_NOC_GC,
  979. .channels = 1,
  980. .buswidth = 8,
  981. .num_links = 1,
  982. .links = { SM8550_MASTER_SNOC_GC_MEM_NOC },
  983. };
  984. static struct qcom_icc_node qns_gemnoc_sf = {
  985. .name = "qns_gemnoc_sf",
  986. .id = SM8550_SLAVE_SNOC_GEM_NOC_SF,
  987. .channels = 1,
  988. .buswidth = 16,
  989. .num_links = 1,
  990. .links = { SM8550_MASTER_SNOC_SF_MEM_NOC },
  991. };
  992. static struct qcom_icc_bcm bcm_acv = {
  993. .name = "ACV",
  994. .enable_mask = 0x8,
  995. .num_nodes = 1,
  996. .nodes = { &ebi },
  997. };
  998. static struct qcom_icc_bcm bcm_ce0 = {
  999. .name = "CE0",
  1000. .num_nodes = 1,
  1001. .nodes = { &qxm_crypto },
  1002. };
  1003. static struct qcom_icc_bcm bcm_cn0 = {
  1004. .name = "CN0",
  1005. .enable_mask = 0x1,
  1006. .keepalive = true,
  1007. .num_nodes = 54,
  1008. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1009. &qhs_ahb2phy1, &qhs_apss,
  1010. &qhs_camera_cfg, &qhs_clk_ctl,
  1011. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1012. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1013. &qhs_cpr_nspcx, &qhs_crypto0_cfg,
  1014. &qhs_cx_rdpm, &qhs_gpuss_cfg,
  1015. &qhs_i2c, &qhs_imem_cfg,
  1016. &qhs_ipa, &qhs_ipc_router,
  1017. &qhs_mss_cfg, &qhs_mx_rdpm,
  1018. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1019. &qhs_pdm, &qhs_pimem_cfg,
  1020. &qhs_prng, &qhs_qdss_cfg,
  1021. &qhs_qspi, &qhs_qup1,
  1022. &qhs_qup2, &qhs_sdc2,
  1023. &qhs_sdc4, &qhs_spss_cfg,
  1024. &qhs_tcsr, &qhs_tlmm,
  1025. &qhs_ufs_mem_cfg, &qhs_usb3_0,
  1026. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  1027. &qss_lpass_qtb_cfg, &qss_mnoc_cfg,
  1028. &qss_nsp_qtb_cfg, &qss_pcie_anoc_cfg,
  1029. &xs_qdss_stm, &xs_sys_tcu_cfg,
  1030. &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
  1031. &qhs_aoss, &qhs_tme_cfg,
  1032. &qss_cfg, &qss_ddrss_cfg,
  1033. &qxs_boot_imem, &qxs_imem,
  1034. &xs_pcie_0, &xs_pcie_1 },
  1035. };
  1036. static struct qcom_icc_bcm bcm_cn1 = {
  1037. .name = "CN1",
  1038. .num_nodes = 1,
  1039. .nodes = { &qhs_display_cfg },
  1040. };
  1041. static struct qcom_icc_bcm bcm_co0 = {
  1042. .name = "CO0",
  1043. .enable_mask = 0x1,
  1044. .num_nodes = 2,
  1045. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1046. };
  1047. static struct qcom_icc_bcm bcm_lp0 = {
  1048. .name = "LP0",
  1049. .num_nodes = 2,
  1050. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1051. };
  1052. static struct qcom_icc_bcm bcm_mc0 = {
  1053. .name = "MC0",
  1054. .keepalive = true,
  1055. .num_nodes = 1,
  1056. .nodes = { &ebi },
  1057. };
  1058. static struct qcom_icc_bcm bcm_mm0 = {
  1059. .name = "MM0",
  1060. .num_nodes = 1,
  1061. .nodes = { &qns_mem_noc_hf },
  1062. };
  1063. static struct qcom_icc_bcm bcm_mm1 = {
  1064. .name = "MM1",
  1065. .enable_mask = 0x1,
  1066. .num_nodes = 8,
  1067. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1068. &qnm_camnoc_sf, &qnm_vapss_hcp,
  1069. &qnm_video_cv_cpu, &qnm_video_cvp,
  1070. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1071. };
  1072. static struct qcom_icc_bcm bcm_qup0 = {
  1073. .name = "QUP0",
  1074. .keepalive = true,
  1075. .vote_scale = 1,
  1076. .num_nodes = 1,
  1077. .nodes = { &qup0_core_slave },
  1078. };
  1079. static struct qcom_icc_bcm bcm_qup1 = {
  1080. .name = "QUP1",
  1081. .keepalive = true,
  1082. .vote_scale = 1,
  1083. .num_nodes = 1,
  1084. .nodes = { &qup1_core_slave },
  1085. };
  1086. static struct qcom_icc_bcm bcm_qup2 = {
  1087. .name = "QUP2",
  1088. .keepalive = true,
  1089. .vote_scale = 1,
  1090. .num_nodes = 1,
  1091. .nodes = { &qup2_core_slave },
  1092. };
  1093. static struct qcom_icc_bcm bcm_sh0 = {
  1094. .name = "SH0",
  1095. .keepalive = true,
  1096. .num_nodes = 1,
  1097. .nodes = { &qns_llcc },
  1098. };
  1099. static struct qcom_icc_bcm bcm_sh1 = {
  1100. .name = "SH1",
  1101. .enable_mask = 0x1,
  1102. .num_nodes = 13,
  1103. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1104. &chm_apps, &qnm_gpu,
  1105. &qnm_mdsp, &qnm_mnoc_hf,
  1106. &qnm_mnoc_sf, &qnm_nsp_gemnoc,
  1107. &qnm_pcie, &qnm_snoc_gc,
  1108. &qnm_snoc_sf, &qns_gem_noc_cnoc,
  1109. &qns_pcie },
  1110. };
  1111. static struct qcom_icc_bcm bcm_sn0 = {
  1112. .name = "SN0",
  1113. .keepalive = true,
  1114. .num_nodes = 1,
  1115. .nodes = { &qns_gemnoc_sf },
  1116. };
  1117. static struct qcom_icc_bcm bcm_sn1 = {
  1118. .name = "SN1",
  1119. .enable_mask = 0x1,
  1120. .num_nodes = 3,
  1121. .nodes = { &qhm_gic, &xm_gic,
  1122. &qns_gemnoc_gc },
  1123. };
  1124. static struct qcom_icc_bcm bcm_sn2 = {
  1125. .name = "SN2",
  1126. .num_nodes = 1,
  1127. .nodes = { &qnm_aggre1_noc },
  1128. };
  1129. static struct qcom_icc_bcm bcm_sn3 = {
  1130. .name = "SN3",
  1131. .num_nodes = 1,
  1132. .nodes = { &qnm_aggre2_noc },
  1133. };
  1134. static struct qcom_icc_bcm bcm_sn7 = {
  1135. .name = "SN7",
  1136. .num_nodes = 1,
  1137. .nodes = { &qns_pcie_mem_noc },
  1138. };
  1139. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1140. };
  1141. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1142. [MASTER_QSPI_0] = &qhm_qspi,
  1143. [MASTER_QUP_1] = &qhm_qup1,
  1144. [MASTER_SDCC_4] = &xm_sdc4,
  1145. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1146. [MASTER_USB3_0] = &xm_usb3_0,
  1147. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1148. };
  1149. static const struct qcom_icc_desc sm8550_aggre1_noc = {
  1150. .nodes = aggre1_noc_nodes,
  1151. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1152. .bcms = aggre1_noc_bcms,
  1153. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1154. };
  1155. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1156. &bcm_ce0,
  1157. };
  1158. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1159. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1160. [MASTER_QUP_2] = &qhm_qup2,
  1161. [MASTER_CRYPTO] = &qxm_crypto,
  1162. [MASTER_IPA] = &qxm_ipa,
  1163. [MASTER_SP] = &qxm_sp,
  1164. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1165. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1166. [MASTER_SDCC_2] = &xm_sdc2,
  1167. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1168. };
  1169. static const struct qcom_icc_desc sm8550_aggre2_noc = {
  1170. .nodes = aggre2_noc_nodes,
  1171. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1172. .bcms = aggre2_noc_bcms,
  1173. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1174. };
  1175. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1176. &bcm_qup0,
  1177. &bcm_qup1,
  1178. &bcm_qup2,
  1179. };
  1180. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1181. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1182. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1183. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1184. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1185. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1186. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1187. };
  1188. static const struct qcom_icc_desc sm8550_clk_virt = {
  1189. .nodes = clk_virt_nodes,
  1190. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1191. .bcms = clk_virt_bcms,
  1192. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1193. };
  1194. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1195. &bcm_cn0,
  1196. &bcm_cn1,
  1197. };
  1198. static struct qcom_icc_node * const config_noc_nodes[] = {
  1199. [MASTER_CNOC_CFG] = &qsm_cfg,
  1200. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1201. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1202. [SLAVE_APPSS] = &qhs_apss,
  1203. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1204. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1205. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1206. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1207. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  1208. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  1209. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  1210. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1211. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1212. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1213. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1214. [SLAVE_I2C] = &qhs_i2c,
  1215. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1216. [SLAVE_IPA_CFG] = &qhs_ipa,
  1217. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1218. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1219. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1220. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1221. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1222. [SLAVE_PDM] = &qhs_pdm,
  1223. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1224. [SLAVE_PRNG] = &qhs_prng,
  1225. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1226. [SLAVE_QSPI_0] = &qhs_qspi,
  1227. [SLAVE_QUP_1] = &qhs_qup1,
  1228. [SLAVE_QUP_2] = &qhs_qup2,
  1229. [SLAVE_SDCC_2] = &qhs_sdc2,
  1230. [SLAVE_SDCC_4] = &qhs_sdc4,
  1231. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1232. [SLAVE_TCSR] = &qhs_tcsr,
  1233. [SLAVE_TLMM] = &qhs_tlmm,
  1234. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1235. [SLAVE_USB3_0] = &qhs_usb3_0,
  1236. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1237. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1238. [SLAVE_LPASS_QTB_CFG] = &qss_lpass_qtb_cfg,
  1239. [SLAVE_CNOC_MNOC_CFG] = &qss_mnoc_cfg,
  1240. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  1241. [SLAVE_PCIE_ANOC_CFG] = &qss_pcie_anoc_cfg,
  1242. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1243. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1244. };
  1245. static const struct qcom_icc_desc sm8550_config_noc = {
  1246. .nodes = config_noc_nodes,
  1247. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1248. .bcms = config_noc_bcms,
  1249. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1250. };
  1251. static struct qcom_icc_bcm * const cnoc_main_bcms[] = {
  1252. &bcm_cn0,
  1253. };
  1254. static struct qcom_icc_node * const cnoc_main_nodes[] = {
  1255. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1256. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1257. [SLAVE_AOSS] = &qhs_aoss,
  1258. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1259. [SLAVE_CNOC_CFG] = &qss_cfg,
  1260. [SLAVE_DDRSS_CFG] = &qss_ddrss_cfg,
  1261. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  1262. [SLAVE_IMEM] = &qxs_imem,
  1263. [SLAVE_PCIE_0] = &xs_pcie_0,
  1264. [SLAVE_PCIE_1] = &xs_pcie_1,
  1265. };
  1266. static const struct qcom_icc_desc sm8550_cnoc_main = {
  1267. .nodes = cnoc_main_nodes,
  1268. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  1269. .bcms = cnoc_main_bcms,
  1270. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  1271. };
  1272. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1273. &bcm_sh0,
  1274. &bcm_sh1,
  1275. };
  1276. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1277. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1278. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1279. [MASTER_APPSS_PROC] = &chm_apps,
  1280. [MASTER_GFX3D] = &qnm_gpu,
  1281. [MASTER_LPASS_GEM_NOC] = &qnm_lpass_gemnoc,
  1282. [MASTER_MSS_PROC] = &qnm_mdsp,
  1283. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1284. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1285. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  1286. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1287. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1288. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1289. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1290. [SLAVE_LLCC] = &qns_llcc,
  1291. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1292. };
  1293. static const struct qcom_icc_desc sm8550_gem_noc = {
  1294. .nodes = gem_noc_nodes,
  1295. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1296. .bcms = gem_noc_bcms,
  1297. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1298. };
  1299. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1300. };
  1301. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1302. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  1303. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  1304. };
  1305. static const struct qcom_icc_desc sm8550_lpass_ag_noc = {
  1306. .nodes = lpass_ag_noc_nodes,
  1307. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1308. .bcms = lpass_ag_noc_bcms,
  1309. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1310. };
  1311. static struct qcom_icc_bcm * const lpass_lpiaon_noc_bcms[] = {
  1312. &bcm_lp0,
  1313. };
  1314. static struct qcom_icc_node * const lpass_lpiaon_noc_nodes[] = {
  1315. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  1316. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  1317. };
  1318. static const struct qcom_icc_desc sm8550_lpass_lpiaon_noc = {
  1319. .nodes = lpass_lpiaon_noc_nodes,
  1320. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  1321. .bcms = lpass_lpiaon_noc_bcms,
  1322. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  1323. };
  1324. static struct qcom_icc_bcm * const lpass_lpicx_noc_bcms[] = {
  1325. };
  1326. static struct qcom_icc_node * const lpass_lpicx_noc_nodes[] = {
  1327. [MASTER_LPASS_PROC] = &qxm_lpinoc_dsp_axim,
  1328. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  1329. };
  1330. static const struct qcom_icc_desc sm8550_lpass_lpicx_noc = {
  1331. .nodes = lpass_lpicx_noc_nodes,
  1332. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  1333. .bcms = lpass_lpicx_noc_bcms,
  1334. .num_bcms = ARRAY_SIZE(lpass_lpicx_noc_bcms),
  1335. };
  1336. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1337. &bcm_acv,
  1338. &bcm_mc0,
  1339. };
  1340. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1341. [MASTER_LLCC] = &llcc_mc,
  1342. [SLAVE_EBI1] = &ebi,
  1343. };
  1344. static const struct qcom_icc_desc sm8550_mc_virt = {
  1345. .nodes = mc_virt_nodes,
  1346. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1347. .bcms = mc_virt_bcms,
  1348. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1349. };
  1350. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1351. &bcm_mm0,
  1352. &bcm_mm1,
  1353. };
  1354. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1355. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1356. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1357. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1358. [MASTER_MDP] = &qnm_mdp,
  1359. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  1360. [MASTER_VIDEO] = &qnm_video,
  1361. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1362. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1363. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1364. [MASTER_CNOC_MNOC_CFG] = &qsm_mnoc_cfg,
  1365. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1366. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1367. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1368. };
  1369. static const struct qcom_icc_desc sm8550_mmss_noc = {
  1370. .nodes = mmss_noc_nodes,
  1371. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1372. .bcms = mmss_noc_bcms,
  1373. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1374. };
  1375. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1376. &bcm_co0,
  1377. };
  1378. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1379. [MASTER_CDSP_PROC] = &qxm_nsp,
  1380. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1381. };
  1382. static const struct qcom_icc_desc sm8550_nsp_noc = {
  1383. .nodes = nsp_noc_nodes,
  1384. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1385. .bcms = nsp_noc_bcms,
  1386. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1387. };
  1388. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  1389. &bcm_sn7,
  1390. };
  1391. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  1392. [MASTER_PCIE_ANOC_CFG] = &qsm_pcie_anoc_cfg,
  1393. [MASTER_PCIE_0] = &xm_pcie3_0,
  1394. [MASTER_PCIE_1] = &xm_pcie3_1,
  1395. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1396. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  1397. };
  1398. static const struct qcom_icc_desc sm8550_pcie_anoc = {
  1399. .nodes = pcie_anoc_nodes,
  1400. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  1401. .bcms = pcie_anoc_bcms,
  1402. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  1403. };
  1404. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1405. &bcm_sn0,
  1406. &bcm_sn1,
  1407. &bcm_sn2,
  1408. &bcm_sn3,
  1409. };
  1410. static struct qcom_icc_node * const system_noc_nodes[] = {
  1411. [MASTER_GIC_AHB] = &qhm_gic,
  1412. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1413. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1414. [MASTER_GIC] = &xm_gic,
  1415. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1416. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1417. };
  1418. static const struct qcom_icc_desc sm8550_system_noc = {
  1419. .nodes = system_noc_nodes,
  1420. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1421. .bcms = system_noc_bcms,
  1422. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1423. };
  1424. static const struct of_device_id qnoc_of_match[] = {
  1425. { .compatible = "qcom,sm8550-aggre1-noc",
  1426. .data = &sm8550_aggre1_noc},
  1427. { .compatible = "qcom,sm8550-aggre2-noc",
  1428. .data = &sm8550_aggre2_noc},
  1429. { .compatible = "qcom,sm8550-clk-virt",
  1430. .data = &sm8550_clk_virt},
  1431. { .compatible = "qcom,sm8550-config-noc",
  1432. .data = &sm8550_config_noc},
  1433. { .compatible = "qcom,sm8550-cnoc-main",
  1434. .data = &sm8550_cnoc_main},
  1435. { .compatible = "qcom,sm8550-gem-noc",
  1436. .data = &sm8550_gem_noc},
  1437. { .compatible = "qcom,sm8550-lpass-ag-noc",
  1438. .data = &sm8550_lpass_ag_noc},
  1439. { .compatible = "qcom,sm8550-lpass-lpiaon-noc",
  1440. .data = &sm8550_lpass_lpiaon_noc},
  1441. { .compatible = "qcom,sm8550-lpass-lpicx-noc",
  1442. .data = &sm8550_lpass_lpicx_noc},
  1443. { .compatible = "qcom,sm8550-mc-virt",
  1444. .data = &sm8550_mc_virt},
  1445. { .compatible = "qcom,sm8550-mmss-noc",
  1446. .data = &sm8550_mmss_noc},
  1447. { .compatible = "qcom,sm8550-nsp-noc",
  1448. .data = &sm8550_nsp_noc},
  1449. { .compatible = "qcom,sm8550-pcie-anoc",
  1450. .data = &sm8550_pcie_anoc},
  1451. { .compatible = "qcom,sm8550-system-noc",
  1452. .data = &sm8550_system_noc},
  1453. { }
  1454. };
  1455. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1456. static struct platform_driver qnoc_driver = {
  1457. .probe = qcom_icc_rpmh_probe,
  1458. .remove_new = qcom_icc_rpmh_remove,
  1459. .driver = {
  1460. .name = "qnoc-sm8550",
  1461. .of_match_table = qnoc_of_match,
  1462. .sync_state = icc_sync_state,
  1463. },
  1464. };
  1465. static int __init qnoc_driver_init(void)
  1466. {
  1467. return platform_driver_register(&qnoc_driver);
  1468. }
  1469. core_initcall(qnoc_driver_init);
  1470. static void __exit qnoc_driver_exit(void)
  1471. {
  1472. platform_driver_unregister(&qnoc_driver);
  1473. }
  1474. module_exit(qnoc_driver_exit);
  1475. MODULE_DESCRIPTION("sm8550 NoC driver");
  1476. MODULE_LICENSE("GPL");