sc8280xp.c 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Linaro Ltd
  5. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/module.h>
  11. #include <linux/of_platform.h>
  12. #include <dt-bindings/interconnect/qcom,sc8280xp.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #include "sc8280xp.h"
  16. static struct qcom_icc_node qhm_qspi = {
  17. .name = "qhm_qspi",
  18. .id = SC8280XP_MASTER_QSPI_0,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  23. };
  24. static struct qcom_icc_node qhm_qup1 = {
  25. .name = "qhm_qup1",
  26. .id = SC8280XP_MASTER_QUP_1,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  31. };
  32. static struct qcom_icc_node qhm_qup2 = {
  33. .name = "qhm_qup2",
  34. .id = SC8280XP_MASTER_QUP_2,
  35. .channels = 1,
  36. .buswidth = 4,
  37. .num_links = 1,
  38. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  39. };
  40. static struct qcom_icc_node qnm_a1noc_cfg = {
  41. .name = "qnm_a1noc_cfg",
  42. .id = SC8280XP_MASTER_A1NOC_CFG,
  43. .channels = 1,
  44. .buswidth = 4,
  45. .links = { SC8280XP_SLAVE_SERVICE_A1NOC },
  46. };
  47. static struct qcom_icc_node qxm_ipa = {
  48. .name = "qxm_ipa",
  49. .id = SC8280XP_MASTER_IPA,
  50. .channels = 1,
  51. .buswidth = 8,
  52. .num_links = 1,
  53. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  54. };
  55. static struct qcom_icc_node xm_emac_1 = {
  56. .name = "xm_emac_1",
  57. .id = SC8280XP_MASTER_EMAC_1,
  58. .channels = 1,
  59. .buswidth = 8,
  60. .num_links = 1,
  61. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  62. };
  63. static struct qcom_icc_node xm_sdc4 = {
  64. .name = "xm_sdc4",
  65. .id = SC8280XP_MASTER_SDCC_4,
  66. .channels = 1,
  67. .buswidth = 8,
  68. .num_links = 1,
  69. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  70. };
  71. static struct qcom_icc_node xm_ufs_mem = {
  72. .name = "xm_ufs_mem",
  73. .id = SC8280XP_MASTER_UFS_MEM,
  74. .channels = 1,
  75. .buswidth = 8,
  76. .num_links = 1,
  77. .links = { SC8280XP_SLAVE_A1NOC_SNOC },
  78. };
  79. static struct qcom_icc_node xm_usb3_0 = {
  80. .name = "xm_usb3_0",
  81. .id = SC8280XP_MASTER_USB3_0,
  82. .channels = 1,
  83. .buswidth = 8,
  84. .num_links = 1,
  85. .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
  86. };
  87. static struct qcom_icc_node xm_usb3_1 = {
  88. .name = "xm_usb3_1",
  89. .id = SC8280XP_MASTER_USB3_1,
  90. .channels = 1,
  91. .buswidth = 8,
  92. .num_links = 1,
  93. .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
  94. };
  95. static struct qcom_icc_node xm_usb3_mp = {
  96. .name = "xm_usb3_mp",
  97. .id = SC8280XP_MASTER_USB3_MP,
  98. .channels = 1,
  99. .buswidth = 16,
  100. .num_links = 1,
  101. .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
  102. };
  103. static struct qcom_icc_node xm_usb4_host0 = {
  104. .name = "xm_usb4_host0",
  105. .id = SC8280XP_MASTER_USB4_0,
  106. .channels = 1,
  107. .buswidth = 16,
  108. .num_links = 1,
  109. .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
  110. };
  111. static struct qcom_icc_node xm_usb4_host1 = {
  112. .name = "xm_usb4_host1",
  113. .id = SC8280XP_MASTER_USB4_1,
  114. .channels = 1,
  115. .buswidth = 16,
  116. .num_links = 1,
  117. .links = { SC8280XP_SLAVE_USB_NOC_SNOC },
  118. };
  119. static struct qcom_icc_node qhm_qdss_bam = {
  120. .name = "qhm_qdss_bam",
  121. .id = SC8280XP_MASTER_QDSS_BAM,
  122. .channels = 1,
  123. .buswidth = 4,
  124. .num_links = 1,
  125. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  126. };
  127. static struct qcom_icc_node qhm_qup0 = {
  128. .name = "qhm_qup0",
  129. .id = SC8280XP_MASTER_QUP_0,
  130. .channels = 1,
  131. .buswidth = 4,
  132. .num_links = 1,
  133. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  134. };
  135. static struct qcom_icc_node qnm_a2noc_cfg = {
  136. .name = "qnm_a2noc_cfg",
  137. .id = SC8280XP_MASTER_A2NOC_CFG,
  138. .channels = 1,
  139. .buswidth = 4,
  140. .num_links = 1,
  141. .links = { SC8280XP_SLAVE_SERVICE_A2NOC },
  142. };
  143. static struct qcom_icc_node qxm_crypto = {
  144. .name = "qxm_crypto",
  145. .id = SC8280XP_MASTER_CRYPTO,
  146. .channels = 1,
  147. .buswidth = 8,
  148. .num_links = 1,
  149. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  150. };
  151. static struct qcom_icc_node qxm_sensorss_q6 = {
  152. .name = "qxm_sensorss_q6",
  153. .id = SC8280XP_MASTER_SENSORS_PROC,
  154. .channels = 1,
  155. .buswidth = 8,
  156. .num_links = 1,
  157. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  158. };
  159. static struct qcom_icc_node qxm_sp = {
  160. .name = "qxm_sp",
  161. .id = SC8280XP_MASTER_SP,
  162. .channels = 1,
  163. .buswidth = 8,
  164. .num_links = 1,
  165. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  166. };
  167. static struct qcom_icc_node xm_emac_0 = {
  168. .name = "xm_emac_0",
  169. .id = SC8280XP_MASTER_EMAC,
  170. .channels = 1,
  171. .buswidth = 8,
  172. .num_links = 1,
  173. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  174. };
  175. static struct qcom_icc_node xm_pcie3_0 = {
  176. .name = "xm_pcie3_0",
  177. .id = SC8280XP_MASTER_PCIE_0,
  178. .channels = 1,
  179. .buswidth = 16,
  180. .num_links = 1,
  181. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  182. };
  183. static struct qcom_icc_node xm_pcie3_1 = {
  184. .name = "xm_pcie3_1",
  185. .id = SC8280XP_MASTER_PCIE_1,
  186. .channels = 1,
  187. .buswidth = 16,
  188. .num_links = 1,
  189. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  190. };
  191. static struct qcom_icc_node xm_pcie3_2a = {
  192. .name = "xm_pcie3_2a",
  193. .id = SC8280XP_MASTER_PCIE_2A,
  194. .channels = 1,
  195. .buswidth = 16,
  196. .num_links = 1,
  197. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  198. };
  199. static struct qcom_icc_node xm_pcie3_2b = {
  200. .name = "xm_pcie3_2b",
  201. .id = SC8280XP_MASTER_PCIE_2B,
  202. .channels = 1,
  203. .buswidth = 8,
  204. .num_links = 1,
  205. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  206. };
  207. static struct qcom_icc_node xm_pcie3_3a = {
  208. .name = "xm_pcie3_3a",
  209. .id = SC8280XP_MASTER_PCIE_3A,
  210. .channels = 1,
  211. .buswidth = 16,
  212. .num_links = 1,
  213. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  214. };
  215. static struct qcom_icc_node xm_pcie3_3b = {
  216. .name = "xm_pcie3_3b",
  217. .id = SC8280XP_MASTER_PCIE_3B,
  218. .channels = 1,
  219. .buswidth = 8,
  220. .num_links = 1,
  221. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  222. };
  223. static struct qcom_icc_node xm_pcie3_4 = {
  224. .name = "xm_pcie3_4",
  225. .id = SC8280XP_MASTER_PCIE_4,
  226. .channels = 1,
  227. .buswidth = 8,
  228. .num_links = 1,
  229. .links = { SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC },
  230. };
  231. static struct qcom_icc_node xm_qdss_etr = {
  232. .name = "xm_qdss_etr",
  233. .id = SC8280XP_MASTER_QDSS_ETR,
  234. .channels = 1,
  235. .buswidth = 8,
  236. .num_links = 1,
  237. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  238. };
  239. static struct qcom_icc_node xm_sdc2 = {
  240. .name = "xm_sdc2",
  241. .id = SC8280XP_MASTER_SDCC_2,
  242. .channels = 1,
  243. .buswidth = 8,
  244. .num_links = 1,
  245. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  246. };
  247. static struct qcom_icc_node xm_ufs_card = {
  248. .name = "xm_ufs_card",
  249. .id = SC8280XP_MASTER_UFS_CARD,
  250. .channels = 1,
  251. .buswidth = 8,
  252. .num_links = 1,
  253. .links = { SC8280XP_SLAVE_A2NOC_SNOC },
  254. };
  255. static struct qcom_icc_node ipa_core_master = {
  256. .name = "ipa_core_master",
  257. .id = SC8280XP_MASTER_IPA_CORE,
  258. .channels = 1,
  259. .buswidth = 8,
  260. .num_links = 1,
  261. .links = { SC8280XP_SLAVE_IPA_CORE },
  262. };
  263. static struct qcom_icc_node qup0_core_master = {
  264. .name = "qup0_core_master",
  265. .id = SC8280XP_MASTER_QUP_CORE_0,
  266. .channels = 1,
  267. .buswidth = 4,
  268. .num_links = 1,
  269. .links = { SC8280XP_SLAVE_QUP_CORE_0 },
  270. };
  271. static struct qcom_icc_node qup1_core_master = {
  272. .name = "qup1_core_master",
  273. .id = SC8280XP_MASTER_QUP_CORE_1,
  274. .channels = 1,
  275. .buswidth = 4,
  276. .num_links = 1,
  277. .links = { SC8280XP_SLAVE_QUP_CORE_1 },
  278. };
  279. static struct qcom_icc_node qup2_core_master = {
  280. .name = "qup2_core_master",
  281. .id = SC8280XP_MASTER_QUP_CORE_2,
  282. .channels = 1,
  283. .buswidth = 4,
  284. .num_links = 1,
  285. .links = { SC8280XP_SLAVE_QUP_CORE_2 },
  286. };
  287. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  288. .name = "qnm_gemnoc_cnoc",
  289. .id = SC8280XP_MASTER_GEM_NOC_CNOC,
  290. .channels = 1,
  291. .buswidth = 16,
  292. .num_links = 76,
  293. .links = { SC8280XP_SLAVE_AHB2PHY_0,
  294. SC8280XP_SLAVE_AHB2PHY_1,
  295. SC8280XP_SLAVE_AHB2PHY_2,
  296. SC8280XP_SLAVE_AOSS,
  297. SC8280XP_SLAVE_APPSS,
  298. SC8280XP_SLAVE_CAMERA_CFG,
  299. SC8280XP_SLAVE_CLK_CTL,
  300. SC8280XP_SLAVE_CDSP_CFG,
  301. SC8280XP_SLAVE_CDSP1_CFG,
  302. SC8280XP_SLAVE_RBCPR_CX_CFG,
  303. SC8280XP_SLAVE_RBCPR_MMCX_CFG,
  304. SC8280XP_SLAVE_RBCPR_MX_CFG,
  305. SC8280XP_SLAVE_CPR_NSPCX,
  306. SC8280XP_SLAVE_CRYPTO_0_CFG,
  307. SC8280XP_SLAVE_CX_RDPM,
  308. SC8280XP_SLAVE_DCC_CFG,
  309. SC8280XP_SLAVE_DISPLAY_CFG,
  310. SC8280XP_SLAVE_DISPLAY1_CFG,
  311. SC8280XP_SLAVE_EMAC_CFG,
  312. SC8280XP_SLAVE_EMAC1_CFG,
  313. SC8280XP_SLAVE_GFX3D_CFG,
  314. SC8280XP_SLAVE_HWKM,
  315. SC8280XP_SLAVE_IMEM_CFG,
  316. SC8280XP_SLAVE_IPA_CFG,
  317. SC8280XP_SLAVE_IPC_ROUTER_CFG,
  318. SC8280XP_SLAVE_LPASS,
  319. SC8280XP_SLAVE_MX_RDPM,
  320. SC8280XP_SLAVE_MXC_RDPM,
  321. SC8280XP_SLAVE_PCIE_0_CFG,
  322. SC8280XP_SLAVE_PCIE_1_CFG,
  323. SC8280XP_SLAVE_PCIE_2A_CFG,
  324. SC8280XP_SLAVE_PCIE_2B_CFG,
  325. SC8280XP_SLAVE_PCIE_3A_CFG,
  326. SC8280XP_SLAVE_PCIE_3B_CFG,
  327. SC8280XP_SLAVE_PCIE_4_CFG,
  328. SC8280XP_SLAVE_PCIE_RSC_CFG,
  329. SC8280XP_SLAVE_PDM,
  330. SC8280XP_SLAVE_PIMEM_CFG,
  331. SC8280XP_SLAVE_PKA_WRAPPER_CFG,
  332. SC8280XP_SLAVE_PMU_WRAPPER_CFG,
  333. SC8280XP_SLAVE_QDSS_CFG,
  334. SC8280XP_SLAVE_QSPI_0,
  335. SC8280XP_SLAVE_QUP_0,
  336. SC8280XP_SLAVE_QUP_1,
  337. SC8280XP_SLAVE_QUP_2,
  338. SC8280XP_SLAVE_SDCC_2,
  339. SC8280XP_SLAVE_SDCC_4,
  340. SC8280XP_SLAVE_SECURITY,
  341. SC8280XP_SLAVE_SMMUV3_CFG,
  342. SC8280XP_SLAVE_SMSS_CFG,
  343. SC8280XP_SLAVE_SPSS_CFG,
  344. SC8280XP_SLAVE_TCSR,
  345. SC8280XP_SLAVE_TLMM,
  346. SC8280XP_SLAVE_UFS_CARD_CFG,
  347. SC8280XP_SLAVE_UFS_MEM_CFG,
  348. SC8280XP_SLAVE_USB3_0,
  349. SC8280XP_SLAVE_USB3_1,
  350. SC8280XP_SLAVE_USB3_MP,
  351. SC8280XP_SLAVE_USB4_0,
  352. SC8280XP_SLAVE_USB4_1,
  353. SC8280XP_SLAVE_VENUS_CFG,
  354. SC8280XP_SLAVE_VSENSE_CTRL_CFG,
  355. SC8280XP_SLAVE_VSENSE_CTRL_R_CFG,
  356. SC8280XP_SLAVE_A1NOC_CFG,
  357. SC8280XP_SLAVE_A2NOC_CFG,
  358. SC8280XP_SLAVE_ANOC_PCIE_BRIDGE_CFG,
  359. SC8280XP_SLAVE_DDRSS_CFG,
  360. SC8280XP_SLAVE_CNOC_MNOC_CFG,
  361. SC8280XP_SLAVE_SNOC_CFG,
  362. SC8280XP_SLAVE_SNOC_SF_BRIDGE_CFG,
  363. SC8280XP_SLAVE_IMEM,
  364. SC8280XP_SLAVE_PIMEM,
  365. SC8280XP_SLAVE_SERVICE_CNOC,
  366. SC8280XP_SLAVE_QDSS_STM,
  367. SC8280XP_SLAVE_SMSS,
  368. SC8280XP_SLAVE_TCU
  369. },
  370. };
  371. static struct qcom_icc_node qnm_gemnoc_pcie = {
  372. .name = "qnm_gemnoc_pcie",
  373. .id = SC8280XP_MASTER_GEM_NOC_PCIE_SNOC,
  374. .channels = 1,
  375. .buswidth = 16,
  376. .num_links = 7,
  377. .links = { SC8280XP_SLAVE_PCIE_0,
  378. SC8280XP_SLAVE_PCIE_1,
  379. SC8280XP_SLAVE_PCIE_2A,
  380. SC8280XP_SLAVE_PCIE_2B,
  381. SC8280XP_SLAVE_PCIE_3A,
  382. SC8280XP_SLAVE_PCIE_3B,
  383. SC8280XP_SLAVE_PCIE_4
  384. },
  385. };
  386. static struct qcom_icc_node qnm_cnoc_dc_noc = {
  387. .name = "qnm_cnoc_dc_noc",
  388. .id = SC8280XP_MASTER_CNOC_DC_NOC,
  389. .channels = 1,
  390. .buswidth = 4,
  391. .num_links = 2,
  392. .links = { SC8280XP_SLAVE_LLCC_CFG,
  393. SC8280XP_SLAVE_GEM_NOC_CFG
  394. },
  395. };
  396. static struct qcom_icc_node alm_gpu_tcu = {
  397. .name = "alm_gpu_tcu",
  398. .id = SC8280XP_MASTER_GPU_TCU,
  399. .channels = 1,
  400. .buswidth = 8,
  401. .num_links = 2,
  402. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  403. SC8280XP_SLAVE_LLCC
  404. },
  405. };
  406. static struct qcom_icc_node alm_pcie_tcu = {
  407. .name = "alm_pcie_tcu",
  408. .id = SC8280XP_MASTER_PCIE_TCU,
  409. .channels = 1,
  410. .buswidth = 8,
  411. .num_links = 2,
  412. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  413. SC8280XP_SLAVE_LLCC
  414. },
  415. };
  416. static struct qcom_icc_node alm_sys_tcu = {
  417. .name = "alm_sys_tcu",
  418. .id = SC8280XP_MASTER_SYS_TCU,
  419. .channels = 1,
  420. .buswidth = 8,
  421. .num_links = 2,
  422. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  423. SC8280XP_SLAVE_LLCC
  424. },
  425. };
  426. static struct qcom_icc_node chm_apps = {
  427. .name = "chm_apps",
  428. .id = SC8280XP_MASTER_APPSS_PROC,
  429. .channels = 2,
  430. .buswidth = 32,
  431. .num_links = 3,
  432. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  433. SC8280XP_SLAVE_LLCC,
  434. SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC
  435. },
  436. };
  437. static struct qcom_icc_node qnm_cmpnoc0 = {
  438. .name = "qnm_cmpnoc0",
  439. .id = SC8280XP_MASTER_COMPUTE_NOC,
  440. .channels = 2,
  441. .buswidth = 32,
  442. .num_links = 2,
  443. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  444. SC8280XP_SLAVE_LLCC
  445. },
  446. };
  447. static struct qcom_icc_node qnm_cmpnoc1 = {
  448. .name = "qnm_cmpnoc1",
  449. .id = SC8280XP_MASTER_COMPUTE_NOC_1,
  450. .channels = 2,
  451. .buswidth = 32,
  452. .num_links = 2,
  453. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  454. SC8280XP_SLAVE_LLCC
  455. },
  456. };
  457. static struct qcom_icc_node qnm_gemnoc_cfg = {
  458. .name = "qnm_gemnoc_cfg",
  459. .id = SC8280XP_MASTER_GEM_NOC_CFG,
  460. .channels = 1,
  461. .buswidth = 4,
  462. .num_links = 3,
  463. .links = { SC8280XP_SLAVE_SERVICE_GEM_NOC_1,
  464. SC8280XP_SLAVE_SERVICE_GEM_NOC_2,
  465. SC8280XP_SLAVE_SERVICE_GEM_NOC
  466. },
  467. };
  468. static struct qcom_icc_node qnm_gpu = {
  469. .name = "qnm_gpu",
  470. .id = SC8280XP_MASTER_GFX3D,
  471. .channels = 4,
  472. .buswidth = 32,
  473. .num_links = 2,
  474. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  475. SC8280XP_SLAVE_LLCC
  476. },
  477. };
  478. static struct qcom_icc_node qnm_mnoc_hf = {
  479. .name = "qnm_mnoc_hf",
  480. .id = SC8280XP_MASTER_MNOC_HF_MEM_NOC,
  481. .channels = 2,
  482. .buswidth = 32,
  483. .num_links = 2,
  484. .links = { SC8280XP_SLAVE_LLCC,
  485. SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC
  486. },
  487. };
  488. static struct qcom_icc_node qnm_mnoc_sf = {
  489. .name = "qnm_mnoc_sf",
  490. .id = SC8280XP_MASTER_MNOC_SF_MEM_NOC,
  491. .channels = 2,
  492. .buswidth = 32,
  493. .num_links = 2,
  494. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  495. SC8280XP_SLAVE_LLCC
  496. },
  497. };
  498. static struct qcom_icc_node qnm_pcie = {
  499. .name = "qnm_pcie",
  500. .id = SC8280XP_MASTER_ANOC_PCIE_GEM_NOC,
  501. .channels = 1,
  502. .buswidth = 32,
  503. .num_links = 2,
  504. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  505. SC8280XP_SLAVE_LLCC
  506. },
  507. };
  508. static struct qcom_icc_node qnm_snoc_gc = {
  509. .name = "qnm_snoc_gc",
  510. .id = SC8280XP_MASTER_SNOC_GC_MEM_NOC,
  511. .channels = 1,
  512. .buswidth = 8,
  513. .num_links = 1,
  514. .links = { SC8280XP_SLAVE_LLCC },
  515. };
  516. static struct qcom_icc_node qnm_snoc_sf = {
  517. .name = "qnm_snoc_sf",
  518. .id = SC8280XP_MASTER_SNOC_SF_MEM_NOC,
  519. .channels = 1,
  520. .buswidth = 16,
  521. .num_links = 3,
  522. .links = { SC8280XP_SLAVE_GEM_NOC_CNOC,
  523. SC8280XP_SLAVE_LLCC,
  524. SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC },
  525. };
  526. static struct qcom_icc_node qhm_config_noc = {
  527. .name = "qhm_config_noc",
  528. .id = SC8280XP_MASTER_CNOC_LPASS_AG_NOC,
  529. .channels = 1,
  530. .buswidth = 4,
  531. .num_links = 6,
  532. .links = { SC8280XP_SLAVE_LPASS_CORE_CFG,
  533. SC8280XP_SLAVE_LPASS_LPI_CFG,
  534. SC8280XP_SLAVE_LPASS_MPU_CFG,
  535. SC8280XP_SLAVE_LPASS_TOP_CFG,
  536. SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
  537. SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC
  538. },
  539. };
  540. static struct qcom_icc_node qxm_lpass_dsp = {
  541. .name = "qxm_lpass_dsp",
  542. .id = SC8280XP_MASTER_LPASS_PROC,
  543. .channels = 1,
  544. .buswidth = 8,
  545. .num_links = 4,
  546. .links = { SC8280XP_SLAVE_LPASS_TOP_CFG,
  547. SC8280XP_SLAVE_LPASS_SNOC,
  548. SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
  549. SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC
  550. },
  551. };
  552. static struct qcom_icc_node llcc_mc = {
  553. .name = "llcc_mc",
  554. .id = SC8280XP_MASTER_LLCC,
  555. .channels = 8,
  556. .buswidth = 4,
  557. .num_links = 1,
  558. .links = { SC8280XP_SLAVE_EBI1 },
  559. };
  560. static struct qcom_icc_node qnm_camnoc_hf = {
  561. .name = "qnm_camnoc_hf",
  562. .id = SC8280XP_MASTER_CAMNOC_HF,
  563. .channels = 2,
  564. .buswidth = 32,
  565. .num_links = 1,
  566. .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
  567. };
  568. static struct qcom_icc_node qnm_mdp0_0 = {
  569. .name = "qnm_mdp0_0",
  570. .id = SC8280XP_MASTER_MDP0,
  571. .channels = 1,
  572. .buswidth = 32,
  573. .num_links = 1,
  574. .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
  575. };
  576. static struct qcom_icc_node qnm_mdp0_1 = {
  577. .name = "qnm_mdp0_1",
  578. .id = SC8280XP_MASTER_MDP1,
  579. .channels = 1,
  580. .buswidth = 32,
  581. .num_links = 1,
  582. .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
  583. };
  584. static struct qcom_icc_node qnm_mdp1_0 = {
  585. .name = "qnm_mdp1_0",
  586. .id = SC8280XP_MASTER_MDP_CORE1_0,
  587. .channels = 1,
  588. .buswidth = 32,
  589. .num_links = 1,
  590. .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
  591. };
  592. static struct qcom_icc_node qnm_mdp1_1 = {
  593. .name = "qnm_mdp1_1",
  594. .id = SC8280XP_MASTER_MDP_CORE1_1,
  595. .channels = 1,
  596. .buswidth = 32,
  597. .num_links = 1,
  598. .links = { SC8280XP_SLAVE_MNOC_HF_MEM_NOC },
  599. };
  600. static struct qcom_icc_node qnm_mnoc_cfg = {
  601. .name = "qnm_mnoc_cfg",
  602. .id = SC8280XP_MASTER_CNOC_MNOC_CFG,
  603. .channels = 1,
  604. .buswidth = 4,
  605. .num_links = 1,
  606. .links = { SC8280XP_SLAVE_SERVICE_MNOC },
  607. };
  608. static struct qcom_icc_node qnm_rot_0 = {
  609. .name = "qnm_rot_0",
  610. .id = SC8280XP_MASTER_ROTATOR,
  611. .channels = 1,
  612. .buswidth = 32,
  613. .num_links = 1,
  614. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  615. };
  616. static struct qcom_icc_node qnm_rot_1 = {
  617. .name = "qnm_rot_1",
  618. .id = SC8280XP_MASTER_ROTATOR_1,
  619. .channels = 1,
  620. .buswidth = 32,
  621. .num_links = 1,
  622. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  623. };
  624. static struct qcom_icc_node qnm_video0 = {
  625. .name = "qnm_video0",
  626. .id = SC8280XP_MASTER_VIDEO_P0,
  627. .channels = 1,
  628. .buswidth = 32,
  629. .num_links = 1,
  630. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  631. };
  632. static struct qcom_icc_node qnm_video1 = {
  633. .name = "qnm_video1",
  634. .id = SC8280XP_MASTER_VIDEO_P1,
  635. .channels = 1,
  636. .buswidth = 32,
  637. .num_links = 1,
  638. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  639. };
  640. static struct qcom_icc_node qnm_video_cvp = {
  641. .name = "qnm_video_cvp",
  642. .id = SC8280XP_MASTER_VIDEO_PROC,
  643. .channels = 1,
  644. .buswidth = 32,
  645. .num_links = 1,
  646. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  647. };
  648. static struct qcom_icc_node qxm_camnoc_icp = {
  649. .name = "qxm_camnoc_icp",
  650. .id = SC8280XP_MASTER_CAMNOC_ICP,
  651. .channels = 1,
  652. .buswidth = 8,
  653. .num_links = 1,
  654. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  655. };
  656. static struct qcom_icc_node qxm_camnoc_sf = {
  657. .name = "qxm_camnoc_sf",
  658. .id = SC8280XP_MASTER_CAMNOC_SF,
  659. .channels = 1,
  660. .buswidth = 32,
  661. .num_links = 1,
  662. .links = { SC8280XP_SLAVE_MNOC_SF_MEM_NOC },
  663. };
  664. static struct qcom_icc_node qhm_nsp_noc_config = {
  665. .name = "qhm_nsp_noc_config",
  666. .id = SC8280XP_MASTER_CDSP_NOC_CFG,
  667. .channels = 1,
  668. .buswidth = 4,
  669. .num_links = 1,
  670. .links = { SC8280XP_SLAVE_SERVICE_NSP_NOC },
  671. };
  672. static struct qcom_icc_node qxm_nsp = {
  673. .name = "qxm_nsp",
  674. .id = SC8280XP_MASTER_CDSP_PROC,
  675. .channels = 2,
  676. .buswidth = 32,
  677. .num_links = 2,
  678. .links = { SC8280XP_SLAVE_CDSP_MEM_NOC,
  679. SC8280XP_SLAVE_NSP_XFR
  680. },
  681. };
  682. static struct qcom_icc_node qhm_nspb_noc_config = {
  683. .name = "qhm_nspb_noc_config",
  684. .id = SC8280XP_MASTER_CDSPB_NOC_CFG,
  685. .channels = 1,
  686. .buswidth = 4,
  687. .num_links = 1,
  688. .links = { SC8280XP_SLAVE_SERVICE_NSPB_NOC },
  689. };
  690. static struct qcom_icc_node qxm_nspb = {
  691. .name = "qxm_nspb",
  692. .id = SC8280XP_MASTER_CDSP_PROC_B,
  693. .channels = 2,
  694. .buswidth = 32,
  695. .num_links = 2,
  696. .links = { SC8280XP_SLAVE_CDSPB_MEM_NOC,
  697. SC8280XP_SLAVE_NSPB_XFR
  698. },
  699. };
  700. static struct qcom_icc_node qnm_aggre1_noc = {
  701. .name = "qnm_aggre1_noc",
  702. .id = SC8280XP_MASTER_A1NOC_SNOC,
  703. .channels = 1,
  704. .buswidth = 16,
  705. .num_links = 1,
  706. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
  707. };
  708. static struct qcom_icc_node qnm_aggre2_noc = {
  709. .name = "qnm_aggre2_noc",
  710. .id = SC8280XP_MASTER_A2NOC_SNOC,
  711. .channels = 1,
  712. .buswidth = 16,
  713. .num_links = 1,
  714. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
  715. };
  716. static struct qcom_icc_node qnm_aggre_usb_noc = {
  717. .name = "qnm_aggre_usb_noc",
  718. .id = SC8280XP_MASTER_USB_NOC_SNOC,
  719. .channels = 1,
  720. .buswidth = 16,
  721. .num_links = 1,
  722. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
  723. };
  724. static struct qcom_icc_node qnm_lpass_noc = {
  725. .name = "qnm_lpass_noc",
  726. .id = SC8280XP_MASTER_LPASS_ANOC,
  727. .channels = 1,
  728. .buswidth = 16,
  729. .num_links = 1,
  730. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_SF },
  731. };
  732. static struct qcom_icc_node qnm_snoc_cfg = {
  733. .name = "qnm_snoc_cfg",
  734. .id = SC8280XP_MASTER_SNOC_CFG,
  735. .channels = 1,
  736. .buswidth = 4,
  737. .num_links = 1,
  738. .links = { SC8280XP_SLAVE_SERVICE_SNOC },
  739. };
  740. static struct qcom_icc_node qxm_pimem = {
  741. .name = "qxm_pimem",
  742. .id = SC8280XP_MASTER_PIMEM,
  743. .channels = 1,
  744. .buswidth = 8,
  745. .num_links = 1,
  746. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_GC },
  747. };
  748. static struct qcom_icc_node xm_gic = {
  749. .name = "xm_gic",
  750. .id = SC8280XP_MASTER_GIC,
  751. .channels = 1,
  752. .buswidth = 8,
  753. .num_links = 1,
  754. .links = { SC8280XP_SLAVE_SNOC_GEM_NOC_GC },
  755. };
  756. static struct qcom_icc_node qns_a1noc_snoc = {
  757. .name = "qns_a1noc_snoc",
  758. .id = SC8280XP_SLAVE_A1NOC_SNOC,
  759. .channels = 1,
  760. .buswidth = 16,
  761. .num_links = 1,
  762. .links = { SC8280XP_MASTER_A1NOC_SNOC },
  763. };
  764. static struct qcom_icc_node qns_aggre_usb_snoc = {
  765. .name = "qns_aggre_usb_snoc",
  766. .id = SC8280XP_SLAVE_USB_NOC_SNOC,
  767. .channels = 1,
  768. .buswidth = 16,
  769. .num_links = 1,
  770. .links = { SC8280XP_MASTER_USB_NOC_SNOC },
  771. };
  772. static struct qcom_icc_node srvc_aggre1_noc = {
  773. .name = "srvc_aggre1_noc",
  774. .id = SC8280XP_SLAVE_SERVICE_A1NOC,
  775. .channels = 1,
  776. .buswidth = 4,
  777. };
  778. static struct qcom_icc_node qns_a2noc_snoc = {
  779. .name = "qns_a2noc_snoc",
  780. .id = SC8280XP_SLAVE_A2NOC_SNOC,
  781. .channels = 1,
  782. .buswidth = 16,
  783. .num_links = 1,
  784. .links = { SC8280XP_MASTER_A2NOC_SNOC },
  785. };
  786. static struct qcom_icc_node qns_pcie_gem_noc = {
  787. .name = "qns_pcie_gem_noc",
  788. .id = SC8280XP_SLAVE_ANOC_PCIE_GEM_NOC,
  789. .channels = 1,
  790. .buswidth = 32,
  791. .num_links = 1,
  792. .links = { SC8280XP_MASTER_ANOC_PCIE_GEM_NOC },
  793. };
  794. static struct qcom_icc_node srvc_aggre2_noc = {
  795. .name = "srvc_aggre2_noc",
  796. .id = SC8280XP_SLAVE_SERVICE_A2NOC,
  797. .channels = 1,
  798. .buswidth = 4,
  799. };
  800. static struct qcom_icc_node ipa_core_slave = {
  801. .name = "ipa_core_slave",
  802. .id = SC8280XP_SLAVE_IPA_CORE,
  803. .channels = 1,
  804. .buswidth = 8,
  805. };
  806. static struct qcom_icc_node qup0_core_slave = {
  807. .name = "qup0_core_slave",
  808. .id = SC8280XP_SLAVE_QUP_CORE_0,
  809. .channels = 1,
  810. .buswidth = 4,
  811. };
  812. static struct qcom_icc_node qup1_core_slave = {
  813. .name = "qup1_core_slave",
  814. .id = SC8280XP_SLAVE_QUP_CORE_1,
  815. .channels = 1,
  816. .buswidth = 4,
  817. };
  818. static struct qcom_icc_node qup2_core_slave = {
  819. .name = "qup2_core_slave",
  820. .id = SC8280XP_SLAVE_QUP_CORE_2,
  821. .channels = 1,
  822. .buswidth = 4,
  823. };
  824. static struct qcom_icc_node qhs_ahb2phy0 = {
  825. .name = "qhs_ahb2phy0",
  826. .id = SC8280XP_SLAVE_AHB2PHY_0,
  827. .channels = 1,
  828. .buswidth = 4,
  829. };
  830. static struct qcom_icc_node qhs_ahb2phy1 = {
  831. .name = "qhs_ahb2phy1",
  832. .id = SC8280XP_SLAVE_AHB2PHY_1,
  833. .channels = 1,
  834. .buswidth = 4,
  835. };
  836. static struct qcom_icc_node qhs_ahb2phy2 = {
  837. .name = "qhs_ahb2phy2",
  838. .id = SC8280XP_SLAVE_AHB2PHY_2,
  839. .channels = 1,
  840. .buswidth = 4,
  841. };
  842. static struct qcom_icc_node qhs_aoss = {
  843. .name = "qhs_aoss",
  844. .id = SC8280XP_SLAVE_AOSS,
  845. .channels = 1,
  846. .buswidth = 4,
  847. };
  848. static struct qcom_icc_node qhs_apss = {
  849. .name = "qhs_apss",
  850. .id = SC8280XP_SLAVE_APPSS,
  851. .channels = 1,
  852. .buswidth = 8,
  853. };
  854. static struct qcom_icc_node qhs_camera_cfg = {
  855. .name = "qhs_camera_cfg",
  856. .id = SC8280XP_SLAVE_CAMERA_CFG,
  857. .channels = 1,
  858. .buswidth = 4,
  859. };
  860. static struct qcom_icc_node qhs_clk_ctl = {
  861. .name = "qhs_clk_ctl",
  862. .id = SC8280XP_SLAVE_CLK_CTL,
  863. .channels = 1,
  864. .buswidth = 4,
  865. };
  866. static struct qcom_icc_node qhs_compute0_cfg = {
  867. .name = "qhs_compute0_cfg",
  868. .id = SC8280XP_SLAVE_CDSP_CFG,
  869. .channels = 1,
  870. .buswidth = 4,
  871. .num_links = 1,
  872. .links = { SC8280XP_MASTER_CDSP_NOC_CFG },
  873. };
  874. static struct qcom_icc_node qhs_compute1_cfg = {
  875. .name = "qhs_compute1_cfg",
  876. .id = SC8280XP_SLAVE_CDSP1_CFG,
  877. .channels = 1,
  878. .buswidth = 4,
  879. .num_links = 1,
  880. .links = { SC8280XP_MASTER_CDSPB_NOC_CFG },
  881. };
  882. static struct qcom_icc_node qhs_cpr_cx = {
  883. .name = "qhs_cpr_cx",
  884. .id = SC8280XP_SLAVE_RBCPR_CX_CFG,
  885. .channels = 1,
  886. .buswidth = 4,
  887. };
  888. static struct qcom_icc_node qhs_cpr_mmcx = {
  889. .name = "qhs_cpr_mmcx",
  890. .id = SC8280XP_SLAVE_RBCPR_MMCX_CFG,
  891. .channels = 1,
  892. .buswidth = 4,
  893. };
  894. static struct qcom_icc_node qhs_cpr_mx = {
  895. .name = "qhs_cpr_mx",
  896. .id = SC8280XP_SLAVE_RBCPR_MX_CFG,
  897. .channels = 1,
  898. .buswidth = 4,
  899. };
  900. static struct qcom_icc_node qhs_cpr_nspcx = {
  901. .name = "qhs_cpr_nspcx",
  902. .id = SC8280XP_SLAVE_CPR_NSPCX,
  903. .channels = 1,
  904. .buswidth = 4,
  905. };
  906. static struct qcom_icc_node qhs_crypto0_cfg = {
  907. .name = "qhs_crypto0_cfg",
  908. .id = SC8280XP_SLAVE_CRYPTO_0_CFG,
  909. .channels = 1,
  910. .buswidth = 4,
  911. };
  912. static struct qcom_icc_node qhs_cx_rdpm = {
  913. .name = "qhs_cx_rdpm",
  914. .id = SC8280XP_SLAVE_CX_RDPM,
  915. .channels = 1,
  916. .buswidth = 4,
  917. };
  918. static struct qcom_icc_node qhs_dcc_cfg = {
  919. .name = "qhs_dcc_cfg",
  920. .id = SC8280XP_SLAVE_DCC_CFG,
  921. .channels = 1,
  922. .buswidth = 4,
  923. };
  924. static struct qcom_icc_node qhs_display0_cfg = {
  925. .name = "qhs_display0_cfg",
  926. .id = SC8280XP_SLAVE_DISPLAY_CFG,
  927. .channels = 1,
  928. .buswidth = 4,
  929. };
  930. static struct qcom_icc_node qhs_display1_cfg = {
  931. .name = "qhs_display1_cfg",
  932. .id = SC8280XP_SLAVE_DISPLAY1_CFG,
  933. .channels = 1,
  934. .buswidth = 4,
  935. };
  936. static struct qcom_icc_node qhs_emac0_cfg = {
  937. .name = "qhs_emac0_cfg",
  938. .id = SC8280XP_SLAVE_EMAC_CFG,
  939. .channels = 1,
  940. .buswidth = 4,
  941. };
  942. static struct qcom_icc_node qhs_emac1_cfg = {
  943. .name = "qhs_emac1_cfg",
  944. .id = SC8280XP_SLAVE_EMAC1_CFG,
  945. .channels = 1,
  946. .buswidth = 4,
  947. };
  948. static struct qcom_icc_node qhs_gpuss_cfg = {
  949. .name = "qhs_gpuss_cfg",
  950. .id = SC8280XP_SLAVE_GFX3D_CFG,
  951. .channels = 1,
  952. .buswidth = 8,
  953. };
  954. static struct qcom_icc_node qhs_hwkm = {
  955. .name = "qhs_hwkm",
  956. .id = SC8280XP_SLAVE_HWKM,
  957. .channels = 1,
  958. .buswidth = 4,
  959. };
  960. static struct qcom_icc_node qhs_imem_cfg = {
  961. .name = "qhs_imem_cfg",
  962. .id = SC8280XP_SLAVE_IMEM_CFG,
  963. .channels = 1,
  964. .buswidth = 4,
  965. };
  966. static struct qcom_icc_node qhs_ipa = {
  967. .name = "qhs_ipa",
  968. .id = SC8280XP_SLAVE_IPA_CFG,
  969. .channels = 1,
  970. .buswidth = 4,
  971. };
  972. static struct qcom_icc_node qhs_ipc_router = {
  973. .name = "qhs_ipc_router",
  974. .id = SC8280XP_SLAVE_IPC_ROUTER_CFG,
  975. .channels = 1,
  976. .buswidth = 4,
  977. };
  978. static struct qcom_icc_node qhs_lpass_cfg = {
  979. .name = "qhs_lpass_cfg",
  980. .id = SC8280XP_SLAVE_LPASS,
  981. .channels = 1,
  982. .buswidth = 4,
  983. .num_links = 1,
  984. .links = { SC8280XP_MASTER_CNOC_LPASS_AG_NOC },
  985. };
  986. static struct qcom_icc_node qhs_mx_rdpm = {
  987. .name = "qhs_mx_rdpm",
  988. .id = SC8280XP_SLAVE_MX_RDPM,
  989. .channels = 1,
  990. .buswidth = 4,
  991. };
  992. static struct qcom_icc_node qhs_mxc_rdpm = {
  993. .name = "qhs_mxc_rdpm",
  994. .id = SC8280XP_SLAVE_MXC_RDPM,
  995. .channels = 1,
  996. .buswidth = 4,
  997. };
  998. static struct qcom_icc_node qhs_pcie0_cfg = {
  999. .name = "qhs_pcie0_cfg",
  1000. .id = SC8280XP_SLAVE_PCIE_0_CFG,
  1001. .channels = 1,
  1002. .buswidth = 4,
  1003. };
  1004. static struct qcom_icc_node qhs_pcie1_cfg = {
  1005. .name = "qhs_pcie1_cfg",
  1006. .id = SC8280XP_SLAVE_PCIE_1_CFG,
  1007. .channels = 1,
  1008. .buswidth = 4,
  1009. };
  1010. static struct qcom_icc_node qhs_pcie2a_cfg = {
  1011. .name = "qhs_pcie2a_cfg",
  1012. .id = SC8280XP_SLAVE_PCIE_2A_CFG,
  1013. .channels = 1,
  1014. .buswidth = 4,
  1015. };
  1016. static struct qcom_icc_node qhs_pcie2b_cfg = {
  1017. .name = "qhs_pcie2b_cfg",
  1018. .id = SC8280XP_SLAVE_PCIE_2B_CFG,
  1019. .channels = 1,
  1020. .buswidth = 4,
  1021. };
  1022. static struct qcom_icc_node qhs_pcie3a_cfg = {
  1023. .name = "qhs_pcie3a_cfg",
  1024. .id = SC8280XP_SLAVE_PCIE_3A_CFG,
  1025. .channels = 1,
  1026. .buswidth = 4,
  1027. };
  1028. static struct qcom_icc_node qhs_pcie3b_cfg = {
  1029. .name = "qhs_pcie3b_cfg",
  1030. .id = SC8280XP_SLAVE_PCIE_3B_CFG,
  1031. .channels = 1,
  1032. .buswidth = 4,
  1033. };
  1034. static struct qcom_icc_node qhs_pcie4_cfg = {
  1035. .name = "qhs_pcie4_cfg",
  1036. .id = SC8280XP_SLAVE_PCIE_4_CFG,
  1037. .channels = 1,
  1038. .buswidth = 4,
  1039. };
  1040. static struct qcom_icc_node qhs_pcie_rsc_cfg = {
  1041. .name = "qhs_pcie_rsc_cfg",
  1042. .id = SC8280XP_SLAVE_PCIE_RSC_CFG,
  1043. .channels = 1,
  1044. .buswidth = 4,
  1045. };
  1046. static struct qcom_icc_node qhs_pdm = {
  1047. .name = "qhs_pdm",
  1048. .id = SC8280XP_SLAVE_PDM,
  1049. .channels = 1,
  1050. .buswidth = 4,
  1051. };
  1052. static struct qcom_icc_node qhs_pimem_cfg = {
  1053. .name = "qhs_pimem_cfg",
  1054. .id = SC8280XP_SLAVE_PIMEM_CFG,
  1055. .channels = 1,
  1056. .buswidth = 4,
  1057. };
  1058. static struct qcom_icc_node qhs_pka_wrapper_cfg = {
  1059. .name = "qhs_pka_wrapper_cfg",
  1060. .id = SC8280XP_SLAVE_PKA_WRAPPER_CFG,
  1061. .channels = 1,
  1062. .buswidth = 4,
  1063. };
  1064. static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
  1065. .name = "qhs_pmu_wrapper_cfg",
  1066. .id = SC8280XP_SLAVE_PMU_WRAPPER_CFG,
  1067. .channels = 1,
  1068. .buswidth = 4,
  1069. };
  1070. static struct qcom_icc_node qhs_qdss_cfg = {
  1071. .name = "qhs_qdss_cfg",
  1072. .id = SC8280XP_SLAVE_QDSS_CFG,
  1073. .channels = 1,
  1074. .buswidth = 4,
  1075. };
  1076. static struct qcom_icc_node qhs_qspi = {
  1077. .name = "qhs_qspi",
  1078. .id = SC8280XP_SLAVE_QSPI_0,
  1079. .channels = 1,
  1080. .buswidth = 4,
  1081. };
  1082. static struct qcom_icc_node qhs_qup0 = {
  1083. .name = "qhs_qup0",
  1084. .id = SC8280XP_SLAVE_QUP_0,
  1085. .channels = 1,
  1086. .buswidth = 4,
  1087. };
  1088. static struct qcom_icc_node qhs_qup1 = {
  1089. .name = "qhs_qup1",
  1090. .id = SC8280XP_SLAVE_QUP_1,
  1091. .channels = 1,
  1092. .buswidth = 4,
  1093. };
  1094. static struct qcom_icc_node qhs_qup2 = {
  1095. .name = "qhs_qup2",
  1096. .id = SC8280XP_SLAVE_QUP_2,
  1097. .channels = 1,
  1098. .buswidth = 4,
  1099. };
  1100. static struct qcom_icc_node qhs_sdc2 = {
  1101. .name = "qhs_sdc2",
  1102. .id = SC8280XP_SLAVE_SDCC_2,
  1103. .channels = 1,
  1104. .buswidth = 4,
  1105. };
  1106. static struct qcom_icc_node qhs_sdc4 = {
  1107. .name = "qhs_sdc4",
  1108. .id = SC8280XP_SLAVE_SDCC_4,
  1109. .channels = 1,
  1110. .buswidth = 4,
  1111. };
  1112. static struct qcom_icc_node qhs_security = {
  1113. .name = "qhs_security",
  1114. .id = SC8280XP_SLAVE_SECURITY,
  1115. .channels = 1,
  1116. .buswidth = 4,
  1117. };
  1118. static struct qcom_icc_node qhs_smmuv3_cfg = {
  1119. .name = "qhs_smmuv3_cfg",
  1120. .id = SC8280XP_SLAVE_SMMUV3_CFG,
  1121. .channels = 1,
  1122. .buswidth = 8,
  1123. };
  1124. static struct qcom_icc_node qhs_smss_cfg = {
  1125. .name = "qhs_smss_cfg",
  1126. .id = SC8280XP_SLAVE_SMSS_CFG,
  1127. .channels = 1,
  1128. .buswidth = 4,
  1129. };
  1130. static struct qcom_icc_node qhs_spss_cfg = {
  1131. .name = "qhs_spss_cfg",
  1132. .id = SC8280XP_SLAVE_SPSS_CFG,
  1133. .channels = 1,
  1134. .buswidth = 4,
  1135. };
  1136. static struct qcom_icc_node qhs_tcsr = {
  1137. .name = "qhs_tcsr",
  1138. .id = SC8280XP_SLAVE_TCSR,
  1139. .channels = 1,
  1140. .buswidth = 4,
  1141. };
  1142. static struct qcom_icc_node qhs_tlmm = {
  1143. .name = "qhs_tlmm",
  1144. .id = SC8280XP_SLAVE_TLMM,
  1145. .channels = 1,
  1146. .buswidth = 4,
  1147. };
  1148. static struct qcom_icc_node qhs_ufs_card_cfg = {
  1149. .name = "qhs_ufs_card_cfg",
  1150. .id = SC8280XP_SLAVE_UFS_CARD_CFG,
  1151. .channels = 1,
  1152. .buswidth = 4,
  1153. };
  1154. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1155. .name = "qhs_ufs_mem_cfg",
  1156. .id = SC8280XP_SLAVE_UFS_MEM_CFG,
  1157. .channels = 1,
  1158. .buswidth = 4,
  1159. };
  1160. static struct qcom_icc_node qhs_usb3_0 = {
  1161. .name = "qhs_usb3_0",
  1162. .id = SC8280XP_SLAVE_USB3_0,
  1163. .channels = 1,
  1164. .buswidth = 4,
  1165. };
  1166. static struct qcom_icc_node qhs_usb3_1 = {
  1167. .name = "qhs_usb3_1",
  1168. .id = SC8280XP_SLAVE_USB3_1,
  1169. .channels = 1,
  1170. .buswidth = 4,
  1171. };
  1172. static struct qcom_icc_node qhs_usb3_mp = {
  1173. .name = "qhs_usb3_mp",
  1174. .id = SC8280XP_SLAVE_USB3_MP,
  1175. .channels = 1,
  1176. .buswidth = 4,
  1177. };
  1178. static struct qcom_icc_node qhs_usb4_host_0 = {
  1179. .name = "qhs_usb4_host_0",
  1180. .id = SC8280XP_SLAVE_USB4_0,
  1181. .channels = 1,
  1182. .buswidth = 4,
  1183. };
  1184. static struct qcom_icc_node qhs_usb4_host_1 = {
  1185. .name = "qhs_usb4_host_1",
  1186. .id = SC8280XP_SLAVE_USB4_1,
  1187. .channels = 1,
  1188. .buswidth = 4,
  1189. };
  1190. static struct qcom_icc_node qhs_venus_cfg = {
  1191. .name = "qhs_venus_cfg",
  1192. .id = SC8280XP_SLAVE_VENUS_CFG,
  1193. .channels = 1,
  1194. .buswidth = 4,
  1195. };
  1196. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1197. .name = "qhs_vsense_ctrl_cfg",
  1198. .id = SC8280XP_SLAVE_VSENSE_CTRL_CFG,
  1199. .channels = 1,
  1200. .buswidth = 4,
  1201. };
  1202. static struct qcom_icc_node qhs_vsense_ctrl_r_cfg = {
  1203. .name = "qhs_vsense_ctrl_r_cfg",
  1204. .id = SC8280XP_SLAVE_VSENSE_CTRL_R_CFG,
  1205. .channels = 1,
  1206. .buswidth = 4,
  1207. };
  1208. static struct qcom_icc_node qns_a1_noc_cfg = {
  1209. .name = "qns_a1_noc_cfg",
  1210. .id = SC8280XP_SLAVE_A1NOC_CFG,
  1211. .channels = 1,
  1212. .buswidth = 4,
  1213. .num_links = 1,
  1214. .links = { SC8280XP_MASTER_A1NOC_CFG },
  1215. };
  1216. static struct qcom_icc_node qns_a2_noc_cfg = {
  1217. .name = "qns_a2_noc_cfg",
  1218. .id = SC8280XP_SLAVE_A2NOC_CFG,
  1219. .channels = 1,
  1220. .buswidth = 4,
  1221. .num_links = 1,
  1222. .links = { SC8280XP_MASTER_A2NOC_CFG },
  1223. };
  1224. static struct qcom_icc_node qns_anoc_pcie_bridge_cfg = {
  1225. .name = "qns_anoc_pcie_bridge_cfg",
  1226. .id = SC8280XP_SLAVE_ANOC_PCIE_BRIDGE_CFG,
  1227. .channels = 1,
  1228. .buswidth = 4,
  1229. };
  1230. static struct qcom_icc_node qns_ddrss_cfg = {
  1231. .name = "qns_ddrss_cfg",
  1232. .id = SC8280XP_SLAVE_DDRSS_CFG,
  1233. .channels = 1,
  1234. .buswidth = 4,
  1235. .num_links = 1,
  1236. .links = { SC8280XP_MASTER_CNOC_DC_NOC },
  1237. };
  1238. static struct qcom_icc_node qns_mnoc_cfg = {
  1239. .name = "qns_mnoc_cfg",
  1240. .id = SC8280XP_SLAVE_CNOC_MNOC_CFG,
  1241. .channels = 1,
  1242. .buswidth = 4,
  1243. .num_links = 1,
  1244. .links = { SC8280XP_MASTER_CNOC_MNOC_CFG },
  1245. };
  1246. static struct qcom_icc_node qns_snoc_cfg = {
  1247. .name = "qns_snoc_cfg",
  1248. .id = SC8280XP_SLAVE_SNOC_CFG,
  1249. .channels = 1,
  1250. .buswidth = 4,
  1251. .num_links = 1,
  1252. .links = { SC8280XP_MASTER_SNOC_CFG },
  1253. };
  1254. static struct qcom_icc_node qns_snoc_sf_bridge_cfg = {
  1255. .name = "qns_snoc_sf_bridge_cfg",
  1256. .id = SC8280XP_SLAVE_SNOC_SF_BRIDGE_CFG,
  1257. .channels = 1,
  1258. .buswidth = 4,
  1259. };
  1260. static struct qcom_icc_node qxs_imem = {
  1261. .name = "qxs_imem",
  1262. .id = SC8280XP_SLAVE_IMEM,
  1263. .channels = 1,
  1264. .buswidth = 8,
  1265. };
  1266. static struct qcom_icc_node qxs_pimem = {
  1267. .name = "qxs_pimem",
  1268. .id = SC8280XP_SLAVE_PIMEM,
  1269. .channels = 1,
  1270. .buswidth = 8,
  1271. };
  1272. static struct qcom_icc_node srvc_cnoc = {
  1273. .name = "srvc_cnoc",
  1274. .id = SC8280XP_SLAVE_SERVICE_CNOC,
  1275. .channels = 1,
  1276. .buswidth = 4,
  1277. };
  1278. static struct qcom_icc_node xs_pcie_0 = {
  1279. .name = "xs_pcie_0",
  1280. .id = SC8280XP_SLAVE_PCIE_0,
  1281. .channels = 1,
  1282. .buswidth = 16,
  1283. };
  1284. static struct qcom_icc_node xs_pcie_1 = {
  1285. .name = "xs_pcie_1",
  1286. .id = SC8280XP_SLAVE_PCIE_1,
  1287. .channels = 1,
  1288. .buswidth = 16,
  1289. };
  1290. static struct qcom_icc_node xs_pcie_2a = {
  1291. .name = "xs_pcie_2a",
  1292. .id = SC8280XP_SLAVE_PCIE_2A,
  1293. .channels = 1,
  1294. .buswidth = 16,
  1295. };
  1296. static struct qcom_icc_node xs_pcie_2b = {
  1297. .name = "xs_pcie_2b",
  1298. .id = SC8280XP_SLAVE_PCIE_2B,
  1299. .channels = 1,
  1300. .buswidth = 8,
  1301. };
  1302. static struct qcom_icc_node xs_pcie_3a = {
  1303. .name = "xs_pcie_3a",
  1304. .id = SC8280XP_SLAVE_PCIE_3A,
  1305. .channels = 1,
  1306. .buswidth = 16,
  1307. };
  1308. static struct qcom_icc_node xs_pcie_3b = {
  1309. .name = "xs_pcie_3b",
  1310. .id = SC8280XP_SLAVE_PCIE_3B,
  1311. .channels = 1,
  1312. .buswidth = 8,
  1313. };
  1314. static struct qcom_icc_node xs_pcie_4 = {
  1315. .name = "xs_pcie_4",
  1316. .id = SC8280XP_SLAVE_PCIE_4,
  1317. .channels = 1,
  1318. .buswidth = 8,
  1319. };
  1320. static struct qcom_icc_node xs_qdss_stm = {
  1321. .name = "xs_qdss_stm",
  1322. .id = SC8280XP_SLAVE_QDSS_STM,
  1323. .channels = 1,
  1324. .buswidth = 4,
  1325. };
  1326. static struct qcom_icc_node xs_smss = {
  1327. .name = "xs_smss",
  1328. .id = SC8280XP_SLAVE_SMSS,
  1329. .channels = 1,
  1330. .buswidth = 8,
  1331. };
  1332. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1333. .name = "xs_sys_tcu_cfg",
  1334. .id = SC8280XP_SLAVE_TCU,
  1335. .channels = 1,
  1336. .buswidth = 8,
  1337. };
  1338. static struct qcom_icc_node qhs_llcc = {
  1339. .name = "qhs_llcc",
  1340. .id = SC8280XP_SLAVE_LLCC_CFG,
  1341. .channels = 1,
  1342. .buswidth = 4,
  1343. };
  1344. static struct qcom_icc_node qns_gemnoc = {
  1345. .name = "qns_gemnoc",
  1346. .id = SC8280XP_SLAVE_GEM_NOC_CFG,
  1347. .channels = 1,
  1348. .buswidth = 4,
  1349. .num_links = 1,
  1350. .links = { SC8280XP_MASTER_GEM_NOC_CFG },
  1351. };
  1352. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1353. .name = "qns_gem_noc_cnoc",
  1354. .id = SC8280XP_SLAVE_GEM_NOC_CNOC,
  1355. .channels = 1,
  1356. .buswidth = 16,
  1357. .num_links = 1,
  1358. .links = { SC8280XP_MASTER_GEM_NOC_CNOC },
  1359. };
  1360. static struct qcom_icc_node qns_llcc = {
  1361. .name = "qns_llcc",
  1362. .id = SC8280XP_SLAVE_LLCC,
  1363. .channels = 8,
  1364. .buswidth = 16,
  1365. .num_links = 1,
  1366. .links = { SC8280XP_MASTER_LLCC },
  1367. };
  1368. static struct qcom_icc_node qns_pcie = {
  1369. .name = "qns_pcie",
  1370. .id = SC8280XP_SLAVE_GEM_NOC_PCIE_CNOC,
  1371. .channels = 1,
  1372. .buswidth = 16,
  1373. .num_links = 1,
  1374. .links = { SC8280XP_MASTER_GEM_NOC_PCIE_SNOC },
  1375. };
  1376. static struct qcom_icc_node srvc_even_gemnoc = {
  1377. .name = "srvc_even_gemnoc",
  1378. .id = SC8280XP_SLAVE_SERVICE_GEM_NOC_1,
  1379. .channels = 1,
  1380. .buswidth = 4,
  1381. };
  1382. static struct qcom_icc_node srvc_odd_gemnoc = {
  1383. .name = "srvc_odd_gemnoc",
  1384. .id = SC8280XP_SLAVE_SERVICE_GEM_NOC_2,
  1385. .channels = 1,
  1386. .buswidth = 4,
  1387. };
  1388. static struct qcom_icc_node srvc_sys_gemnoc = {
  1389. .name = "srvc_sys_gemnoc",
  1390. .id = SC8280XP_SLAVE_SERVICE_GEM_NOC,
  1391. .channels = 1,
  1392. .buswidth = 4,
  1393. };
  1394. static struct qcom_icc_node qhs_lpass_core = {
  1395. .name = "qhs_lpass_core",
  1396. .id = SC8280XP_SLAVE_LPASS_CORE_CFG,
  1397. .channels = 1,
  1398. .buswidth = 4,
  1399. };
  1400. static struct qcom_icc_node qhs_lpass_lpi = {
  1401. .name = "qhs_lpass_lpi",
  1402. .id = SC8280XP_SLAVE_LPASS_LPI_CFG,
  1403. .channels = 1,
  1404. .buswidth = 4,
  1405. };
  1406. static struct qcom_icc_node qhs_lpass_mpu = {
  1407. .name = "qhs_lpass_mpu",
  1408. .id = SC8280XP_SLAVE_LPASS_MPU_CFG,
  1409. .channels = 1,
  1410. .buswidth = 4,
  1411. };
  1412. static struct qcom_icc_node qhs_lpass_top = {
  1413. .name = "qhs_lpass_top",
  1414. .id = SC8280XP_SLAVE_LPASS_TOP_CFG,
  1415. .channels = 1,
  1416. .buswidth = 4,
  1417. };
  1418. static struct qcom_icc_node qns_sysnoc = {
  1419. .name = "qns_sysnoc",
  1420. .id = SC8280XP_SLAVE_LPASS_SNOC,
  1421. .channels = 1,
  1422. .buswidth = 16,
  1423. .num_links = 1,
  1424. .links = { SC8280XP_MASTER_LPASS_ANOC },
  1425. };
  1426. static struct qcom_icc_node srvc_niu_aml_noc = {
  1427. .name = "srvc_niu_aml_noc",
  1428. .id = SC8280XP_SLAVE_SERVICES_LPASS_AML_NOC,
  1429. .channels = 1,
  1430. .buswidth = 4,
  1431. };
  1432. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1433. .name = "srvc_niu_lpass_agnoc",
  1434. .id = SC8280XP_SLAVE_SERVICE_LPASS_AG_NOC,
  1435. .channels = 1,
  1436. .buswidth = 4,
  1437. };
  1438. static struct qcom_icc_node ebi = {
  1439. .name = "ebi",
  1440. .id = SC8280XP_SLAVE_EBI1,
  1441. .channels = 8,
  1442. .buswidth = 4,
  1443. };
  1444. static struct qcom_icc_node qns_mem_noc_hf = {
  1445. .name = "qns_mem_noc_hf",
  1446. .id = SC8280XP_SLAVE_MNOC_HF_MEM_NOC,
  1447. .channels = 2,
  1448. .buswidth = 32,
  1449. .num_links = 1,
  1450. .links = { SC8280XP_MASTER_MNOC_HF_MEM_NOC },
  1451. };
  1452. static struct qcom_icc_node qns_mem_noc_sf = {
  1453. .name = "qns_mem_noc_sf",
  1454. .id = SC8280XP_SLAVE_MNOC_SF_MEM_NOC,
  1455. .channels = 2,
  1456. .buswidth = 32,
  1457. .num_links = 1,
  1458. .links = { SC8280XP_MASTER_MNOC_SF_MEM_NOC },
  1459. };
  1460. static struct qcom_icc_node srvc_mnoc = {
  1461. .name = "srvc_mnoc",
  1462. .id = SC8280XP_SLAVE_SERVICE_MNOC,
  1463. .channels = 1,
  1464. .buswidth = 4,
  1465. };
  1466. static struct qcom_icc_node qns_nsp_gemnoc = {
  1467. .name = "qns_nsp_gemnoc",
  1468. .id = SC8280XP_SLAVE_CDSP_MEM_NOC,
  1469. .channels = 2,
  1470. .buswidth = 32,
  1471. .num_links = 1,
  1472. .links = { SC8280XP_MASTER_COMPUTE_NOC },
  1473. };
  1474. static struct qcom_icc_node qxs_nsp_xfr = {
  1475. .name = "qxs_nsp_xfr",
  1476. .id = SC8280XP_SLAVE_NSP_XFR,
  1477. .channels = 1,
  1478. .buswidth = 32,
  1479. };
  1480. static struct qcom_icc_node service_nsp_noc = {
  1481. .name = "service_nsp_noc",
  1482. .id = SC8280XP_SLAVE_SERVICE_NSP_NOC,
  1483. .channels = 1,
  1484. .buswidth = 4,
  1485. };
  1486. static struct qcom_icc_node qns_nspb_gemnoc = {
  1487. .name = "qns_nspb_gemnoc",
  1488. .id = SC8280XP_SLAVE_CDSPB_MEM_NOC,
  1489. .channels = 2,
  1490. .buswidth = 32,
  1491. .num_links = 1,
  1492. .links = { SC8280XP_MASTER_COMPUTE_NOC_1 },
  1493. };
  1494. static struct qcom_icc_node qxs_nspb_xfr = {
  1495. .name = "qxs_nspb_xfr",
  1496. .id = SC8280XP_SLAVE_NSPB_XFR,
  1497. .channels = 1,
  1498. .buswidth = 32,
  1499. };
  1500. static struct qcom_icc_node service_nspb_noc = {
  1501. .name = "service_nspb_noc",
  1502. .id = SC8280XP_SLAVE_SERVICE_NSPB_NOC,
  1503. .channels = 1,
  1504. .buswidth = 4,
  1505. };
  1506. static struct qcom_icc_node qns_gemnoc_gc = {
  1507. .name = "qns_gemnoc_gc",
  1508. .id = SC8280XP_SLAVE_SNOC_GEM_NOC_GC,
  1509. .channels = 1,
  1510. .buswidth = 8,
  1511. .num_links = 1,
  1512. .links = { SC8280XP_MASTER_SNOC_GC_MEM_NOC },
  1513. };
  1514. static struct qcom_icc_node qns_gemnoc_sf = {
  1515. .name = "qns_gemnoc_sf",
  1516. .id = SC8280XP_SLAVE_SNOC_GEM_NOC_SF,
  1517. .channels = 1,
  1518. .buswidth = 16,
  1519. .num_links = 1,
  1520. .links = { SC8280XP_MASTER_SNOC_SF_MEM_NOC },
  1521. };
  1522. static struct qcom_icc_node srvc_snoc = {
  1523. .name = "srvc_snoc",
  1524. .id = SC8280XP_SLAVE_SERVICE_SNOC,
  1525. .channels = 1,
  1526. .buswidth = 4,
  1527. };
  1528. static struct qcom_icc_bcm bcm_acv = {
  1529. .name = "ACV",
  1530. .enable_mask = BIT(3),
  1531. .num_nodes = 1,
  1532. .nodes = { &ebi },
  1533. };
  1534. static struct qcom_icc_bcm bcm_ce0 = {
  1535. .name = "CE0",
  1536. .num_nodes = 1,
  1537. .nodes = { &qxm_crypto },
  1538. };
  1539. static struct qcom_icc_bcm bcm_cn0 = {
  1540. .name = "CN0",
  1541. .keepalive = true,
  1542. .num_nodes = 9,
  1543. .nodes = { &qnm_gemnoc_cnoc,
  1544. &qnm_gemnoc_pcie,
  1545. &xs_pcie_0,
  1546. &xs_pcie_1,
  1547. &xs_pcie_2a,
  1548. &xs_pcie_2b,
  1549. &xs_pcie_3a,
  1550. &xs_pcie_3b,
  1551. &xs_pcie_4
  1552. },
  1553. };
  1554. static struct qcom_icc_bcm bcm_cn1 = {
  1555. .name = "CN1",
  1556. .num_nodes = 67,
  1557. .nodes = { &qhs_ahb2phy0,
  1558. &qhs_ahb2phy1,
  1559. &qhs_ahb2phy2,
  1560. &qhs_aoss,
  1561. &qhs_apss,
  1562. &qhs_camera_cfg,
  1563. &qhs_clk_ctl,
  1564. &qhs_compute0_cfg,
  1565. &qhs_compute1_cfg,
  1566. &qhs_cpr_cx,
  1567. &qhs_cpr_mmcx,
  1568. &qhs_cpr_mx,
  1569. &qhs_cpr_nspcx,
  1570. &qhs_crypto0_cfg,
  1571. &qhs_cx_rdpm,
  1572. &qhs_dcc_cfg,
  1573. &qhs_display0_cfg,
  1574. &qhs_display1_cfg,
  1575. &qhs_emac0_cfg,
  1576. &qhs_emac1_cfg,
  1577. &qhs_gpuss_cfg,
  1578. &qhs_hwkm,
  1579. &qhs_imem_cfg,
  1580. &qhs_ipa,
  1581. &qhs_ipc_router,
  1582. &qhs_lpass_cfg,
  1583. &qhs_mx_rdpm,
  1584. &qhs_mxc_rdpm,
  1585. &qhs_pcie0_cfg,
  1586. &qhs_pcie1_cfg,
  1587. &qhs_pcie2a_cfg,
  1588. &qhs_pcie2b_cfg,
  1589. &qhs_pcie3a_cfg,
  1590. &qhs_pcie3b_cfg,
  1591. &qhs_pcie4_cfg,
  1592. &qhs_pcie_rsc_cfg,
  1593. &qhs_pdm,
  1594. &qhs_pimem_cfg,
  1595. &qhs_pka_wrapper_cfg,
  1596. &qhs_pmu_wrapper_cfg,
  1597. &qhs_qdss_cfg,
  1598. &qhs_sdc2,
  1599. &qhs_sdc4,
  1600. &qhs_security,
  1601. &qhs_smmuv3_cfg,
  1602. &qhs_smss_cfg,
  1603. &qhs_spss_cfg,
  1604. &qhs_tcsr,
  1605. &qhs_tlmm,
  1606. &qhs_ufs_card_cfg,
  1607. &qhs_ufs_mem_cfg,
  1608. &qhs_usb3_0,
  1609. &qhs_usb3_1,
  1610. &qhs_usb3_mp,
  1611. &qhs_usb4_host_0,
  1612. &qhs_usb4_host_1,
  1613. &qhs_venus_cfg,
  1614. &qhs_vsense_ctrl_cfg,
  1615. &qhs_vsense_ctrl_r_cfg,
  1616. &qns_a1_noc_cfg,
  1617. &qns_a2_noc_cfg,
  1618. &qns_anoc_pcie_bridge_cfg,
  1619. &qns_ddrss_cfg,
  1620. &qns_mnoc_cfg,
  1621. &qns_snoc_cfg,
  1622. &qns_snoc_sf_bridge_cfg,
  1623. &srvc_cnoc
  1624. },
  1625. };
  1626. static struct qcom_icc_bcm bcm_cn2 = {
  1627. .name = "CN2",
  1628. .num_nodes = 4,
  1629. .nodes = { &qhs_qspi,
  1630. &qhs_qup0,
  1631. &qhs_qup1,
  1632. &qhs_qup2
  1633. },
  1634. };
  1635. static struct qcom_icc_bcm bcm_cn3 = {
  1636. .name = "CN3",
  1637. .num_nodes = 3,
  1638. .nodes = { &qxs_imem,
  1639. &xs_smss,
  1640. &xs_sys_tcu_cfg
  1641. },
  1642. };
  1643. static struct qcom_icc_bcm bcm_ip0 = {
  1644. .name = "IP0",
  1645. .num_nodes = 1,
  1646. .nodes = { &ipa_core_slave },
  1647. };
  1648. static struct qcom_icc_bcm bcm_mc0 = {
  1649. .name = "MC0",
  1650. .keepalive = true,
  1651. .num_nodes = 1,
  1652. .nodes = { &ebi },
  1653. };
  1654. static struct qcom_icc_bcm bcm_mm0 = {
  1655. .name = "MM0",
  1656. .keepalive = true,
  1657. .num_nodes = 5,
  1658. .nodes = { &qnm_camnoc_hf,
  1659. &qnm_mdp0_0,
  1660. &qnm_mdp0_1,
  1661. &qnm_mdp1_0,
  1662. &qns_mem_noc_hf
  1663. },
  1664. };
  1665. static struct qcom_icc_bcm bcm_mm1 = {
  1666. .name = "MM1",
  1667. .num_nodes = 8,
  1668. .nodes = { &qnm_rot_0,
  1669. &qnm_rot_1,
  1670. &qnm_video0,
  1671. &qnm_video1,
  1672. &qnm_video_cvp,
  1673. &qxm_camnoc_icp,
  1674. &qxm_camnoc_sf,
  1675. &qns_mem_noc_sf
  1676. },
  1677. };
  1678. static struct qcom_icc_bcm bcm_nsa0 = {
  1679. .name = "NSA0",
  1680. .num_nodes = 2,
  1681. .nodes = { &qns_nsp_gemnoc,
  1682. &qxs_nsp_xfr
  1683. },
  1684. };
  1685. static struct qcom_icc_bcm bcm_nsa1 = {
  1686. .name = "NSA1",
  1687. .num_nodes = 1,
  1688. .nodes = { &qxm_nsp },
  1689. };
  1690. static struct qcom_icc_bcm bcm_nsb0 = {
  1691. .name = "NSB0",
  1692. .num_nodes = 2,
  1693. .nodes = { &qns_nspb_gemnoc,
  1694. &qxs_nspb_xfr
  1695. },
  1696. };
  1697. static struct qcom_icc_bcm bcm_nsb1 = {
  1698. .name = "NSB1",
  1699. .num_nodes = 1,
  1700. .nodes = { &qxm_nspb },
  1701. };
  1702. static struct qcom_icc_bcm bcm_pci0 = {
  1703. .name = "PCI0",
  1704. .num_nodes = 1,
  1705. .nodes = { &qns_pcie_gem_noc },
  1706. };
  1707. static struct qcom_icc_bcm bcm_qup0 = {
  1708. .name = "QUP0",
  1709. .vote_scale = 1,
  1710. .num_nodes = 1,
  1711. .nodes = { &qup0_core_slave },
  1712. };
  1713. static struct qcom_icc_bcm bcm_qup1 = {
  1714. .name = "QUP1",
  1715. .vote_scale = 1,
  1716. .num_nodes = 1,
  1717. .nodes = { &qup1_core_slave },
  1718. };
  1719. static struct qcom_icc_bcm bcm_qup2 = {
  1720. .name = "QUP2",
  1721. .vote_scale = 1,
  1722. .num_nodes = 1,
  1723. .nodes = { &qup2_core_slave },
  1724. };
  1725. static struct qcom_icc_bcm bcm_sh0 = {
  1726. .name = "SH0",
  1727. .keepalive = true,
  1728. .num_nodes = 1,
  1729. .nodes = { &qns_llcc },
  1730. };
  1731. static struct qcom_icc_bcm bcm_sh2 = {
  1732. .name = "SH2",
  1733. .num_nodes = 1,
  1734. .nodes = { &chm_apps },
  1735. };
  1736. static struct qcom_icc_bcm bcm_sn0 = {
  1737. .name = "SN0",
  1738. .keepalive = true,
  1739. .num_nodes = 1,
  1740. .nodes = { &qns_gemnoc_sf },
  1741. };
  1742. static struct qcom_icc_bcm bcm_sn1 = {
  1743. .name = "SN1",
  1744. .num_nodes = 1,
  1745. .nodes = { &qns_gemnoc_gc },
  1746. };
  1747. static struct qcom_icc_bcm bcm_sn2 = {
  1748. .name = "SN2",
  1749. .num_nodes = 1,
  1750. .nodes = { &qxs_pimem },
  1751. };
  1752. static struct qcom_icc_bcm bcm_sn3 = {
  1753. .name = "SN3",
  1754. .num_nodes = 2,
  1755. .nodes = { &qns_a1noc_snoc,
  1756. &qnm_aggre1_noc
  1757. },
  1758. };
  1759. static struct qcom_icc_bcm bcm_sn4 = {
  1760. .name = "SN4",
  1761. .num_nodes = 2,
  1762. .nodes = { &qns_a2noc_snoc,
  1763. &qnm_aggre2_noc
  1764. },
  1765. };
  1766. static struct qcom_icc_bcm bcm_sn5 = {
  1767. .name = "SN5",
  1768. .num_nodes = 2,
  1769. .nodes = { &qns_aggre_usb_snoc,
  1770. &qnm_aggre_usb_noc
  1771. },
  1772. };
  1773. static struct qcom_icc_bcm bcm_sn9 = {
  1774. .name = "SN9",
  1775. .num_nodes = 2,
  1776. .nodes = { &qns_sysnoc,
  1777. &qnm_lpass_noc
  1778. },
  1779. };
  1780. static struct qcom_icc_bcm bcm_sn10 = {
  1781. .name = "SN10",
  1782. .num_nodes = 1,
  1783. .nodes = { &xs_qdss_stm },
  1784. };
  1785. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1786. &bcm_sn3,
  1787. &bcm_sn5,
  1788. };
  1789. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1790. [MASTER_QSPI_0] = &qhm_qspi,
  1791. [MASTER_QUP_1] = &qhm_qup1,
  1792. [MASTER_QUP_2] = &qhm_qup2,
  1793. [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
  1794. [MASTER_IPA] = &qxm_ipa,
  1795. [MASTER_EMAC_1] = &xm_emac_1,
  1796. [MASTER_SDCC_4] = &xm_sdc4,
  1797. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1798. [MASTER_USB3_0] = &xm_usb3_0,
  1799. [MASTER_USB3_1] = &xm_usb3_1,
  1800. [MASTER_USB3_MP] = &xm_usb3_mp,
  1801. [MASTER_USB4_0] = &xm_usb4_host0,
  1802. [MASTER_USB4_1] = &xm_usb4_host1,
  1803. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1804. [SLAVE_USB_NOC_SNOC] = &qns_aggre_usb_snoc,
  1805. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1806. };
  1807. static const struct qcom_icc_desc sc8280xp_aggre1_noc = {
  1808. .nodes = aggre1_noc_nodes,
  1809. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1810. .bcms = aggre1_noc_bcms,
  1811. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1812. };
  1813. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1814. &bcm_ce0,
  1815. &bcm_pci0,
  1816. &bcm_sn4,
  1817. };
  1818. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1819. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1820. [MASTER_QUP_0] = &qhm_qup0,
  1821. [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
  1822. [MASTER_CRYPTO] = &qxm_crypto,
  1823. [MASTER_SENSORS_PROC] = &qxm_sensorss_q6,
  1824. [MASTER_SP] = &qxm_sp,
  1825. [MASTER_EMAC] = &xm_emac_0,
  1826. [MASTER_PCIE_0] = &xm_pcie3_0,
  1827. [MASTER_PCIE_1] = &xm_pcie3_1,
  1828. [MASTER_PCIE_2A] = &xm_pcie3_2a,
  1829. [MASTER_PCIE_2B] = &xm_pcie3_2b,
  1830. [MASTER_PCIE_3A] = &xm_pcie3_3a,
  1831. [MASTER_PCIE_3B] = &xm_pcie3_3b,
  1832. [MASTER_PCIE_4] = &xm_pcie3_4,
  1833. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1834. [MASTER_SDCC_2] = &xm_sdc2,
  1835. [MASTER_UFS_CARD] = &xm_ufs_card,
  1836. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1837. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_gem_noc,
  1838. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1839. };
  1840. static const struct qcom_icc_desc sc8280xp_aggre2_noc = {
  1841. .nodes = aggre2_noc_nodes,
  1842. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1843. .bcms = aggre2_noc_bcms,
  1844. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1845. };
  1846. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1847. &bcm_ip0,
  1848. &bcm_qup0,
  1849. &bcm_qup1,
  1850. &bcm_qup2,
  1851. };
  1852. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1853. [MASTER_IPA_CORE] = &ipa_core_master,
  1854. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1855. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1856. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1857. [SLAVE_IPA_CORE] = &ipa_core_slave,
  1858. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1859. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1860. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1861. };
  1862. static const struct qcom_icc_desc sc8280xp_clk_virt = {
  1863. .nodes = clk_virt_nodes,
  1864. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1865. .bcms = clk_virt_bcms,
  1866. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1867. };
  1868. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1869. &bcm_cn0,
  1870. &bcm_cn1,
  1871. &bcm_cn2,
  1872. &bcm_cn3,
  1873. &bcm_sn2,
  1874. &bcm_sn10,
  1875. };
  1876. static struct qcom_icc_node * const config_noc_nodes[] = {
  1877. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1878. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1879. [SLAVE_AHB2PHY_0] = &qhs_ahb2phy0,
  1880. [SLAVE_AHB2PHY_1] = &qhs_ahb2phy1,
  1881. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  1882. [SLAVE_AOSS] = &qhs_aoss,
  1883. [SLAVE_APPSS] = &qhs_apss,
  1884. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1885. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1886. [SLAVE_CDSP_CFG] = &qhs_compute0_cfg,
  1887. [SLAVE_CDSP1_CFG] = &qhs_compute1_cfg,
  1888. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1889. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1890. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1891. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  1892. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1893. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1894. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1895. [SLAVE_DISPLAY_CFG] = &qhs_display0_cfg,
  1896. [SLAVE_DISPLAY1_CFG] = &qhs_display1_cfg,
  1897. [SLAVE_EMAC_CFG] = &qhs_emac0_cfg,
  1898. [SLAVE_EMAC1_CFG] = &qhs_emac1_cfg,
  1899. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1900. [SLAVE_HWKM] = &qhs_hwkm,
  1901. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1902. [SLAVE_IPA_CFG] = &qhs_ipa,
  1903. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1904. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1905. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1906. [SLAVE_MXC_RDPM] = &qhs_mxc_rdpm,
  1907. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1908. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1909. [SLAVE_PCIE_2A_CFG] = &qhs_pcie2a_cfg,
  1910. [SLAVE_PCIE_2B_CFG] = &qhs_pcie2b_cfg,
  1911. [SLAVE_PCIE_3A_CFG] = &qhs_pcie3a_cfg,
  1912. [SLAVE_PCIE_3B_CFG] = &qhs_pcie3b_cfg,
  1913. [SLAVE_PCIE_4_CFG] = &qhs_pcie4_cfg,
  1914. [SLAVE_PCIE_RSC_CFG] = &qhs_pcie_rsc_cfg,
  1915. [SLAVE_PDM] = &qhs_pdm,
  1916. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1917. [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
  1918. [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
  1919. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1920. [SLAVE_QSPI_0] = &qhs_qspi,
  1921. [SLAVE_QUP_0] = &qhs_qup0,
  1922. [SLAVE_QUP_1] = &qhs_qup1,
  1923. [SLAVE_QUP_2] = &qhs_qup2,
  1924. [SLAVE_SDCC_2] = &qhs_sdc2,
  1925. [SLAVE_SDCC_4] = &qhs_sdc4,
  1926. [SLAVE_SECURITY] = &qhs_security,
  1927. [SLAVE_SMMUV3_CFG] = &qhs_smmuv3_cfg,
  1928. [SLAVE_SMSS_CFG] = &qhs_smss_cfg,
  1929. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1930. [SLAVE_TCSR] = &qhs_tcsr,
  1931. [SLAVE_TLMM] = &qhs_tlmm,
  1932. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  1933. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1934. [SLAVE_USB3_0] = &qhs_usb3_0,
  1935. [SLAVE_USB3_1] = &qhs_usb3_1,
  1936. [SLAVE_USB3_MP] = &qhs_usb3_mp,
  1937. [SLAVE_USB4_0] = &qhs_usb4_host_0,
  1938. [SLAVE_USB4_1] = &qhs_usb4_host_1,
  1939. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1940. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1941. [SLAVE_VSENSE_CTRL_R_CFG] = &qhs_vsense_ctrl_r_cfg,
  1942. [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
  1943. [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
  1944. [SLAVE_ANOC_PCIE_BRIDGE_CFG] = &qns_anoc_pcie_bridge_cfg,
  1945. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1946. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1947. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1948. [SLAVE_SNOC_SF_BRIDGE_CFG] = &qns_snoc_sf_bridge_cfg,
  1949. [SLAVE_IMEM] = &qxs_imem,
  1950. [SLAVE_PIMEM] = &qxs_pimem,
  1951. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1952. [SLAVE_PCIE_0] = &xs_pcie_0,
  1953. [SLAVE_PCIE_1] = &xs_pcie_1,
  1954. [SLAVE_PCIE_2A] = &xs_pcie_2a,
  1955. [SLAVE_PCIE_2B] = &xs_pcie_2b,
  1956. [SLAVE_PCIE_3A] = &xs_pcie_3a,
  1957. [SLAVE_PCIE_3B] = &xs_pcie_3b,
  1958. [SLAVE_PCIE_4] = &xs_pcie_4,
  1959. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1960. [SLAVE_SMSS] = &xs_smss,
  1961. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1962. };
  1963. static const struct qcom_icc_desc sc8280xp_config_noc = {
  1964. .nodes = config_noc_nodes,
  1965. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1966. .bcms = config_noc_bcms,
  1967. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1968. };
  1969. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1970. };
  1971. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1972. [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
  1973. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1974. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  1975. };
  1976. static const struct qcom_icc_desc sc8280xp_dc_noc = {
  1977. .nodes = dc_noc_nodes,
  1978. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1979. .bcms = dc_noc_bcms,
  1980. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1981. };
  1982. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1983. &bcm_sh0,
  1984. &bcm_sh2,
  1985. };
  1986. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1987. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1988. [MASTER_PCIE_TCU] = &alm_pcie_tcu,
  1989. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1990. [MASTER_APPSS_PROC] = &chm_apps,
  1991. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc0,
  1992. [MASTER_COMPUTE_NOC_1] = &qnm_cmpnoc1,
  1993. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  1994. [MASTER_GFX3D] = &qnm_gpu,
  1995. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1996. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1997. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1998. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1999. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2000. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  2001. [SLAVE_LLCC] = &qns_llcc,
  2002. [SLAVE_GEM_NOC_PCIE_CNOC] = &qns_pcie,
  2003. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  2004. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  2005. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  2006. };
  2007. static const struct qcom_icc_desc sc8280xp_gem_noc = {
  2008. .nodes = gem_noc_nodes,
  2009. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2010. .bcms = gem_noc_bcms,
  2011. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2012. };
  2013. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  2014. &bcm_sn9,
  2015. };
  2016. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  2017. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  2018. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  2019. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  2020. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  2021. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  2022. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  2023. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  2024. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  2025. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  2026. };
  2027. static const struct qcom_icc_desc sc8280xp_lpass_ag_noc = {
  2028. .nodes = lpass_ag_noc_nodes,
  2029. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  2030. .bcms = lpass_ag_noc_bcms,
  2031. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  2032. };
  2033. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  2034. &bcm_acv,
  2035. &bcm_mc0,
  2036. };
  2037. static struct qcom_icc_node * const mc_virt_nodes[] = {
  2038. [MASTER_LLCC] = &llcc_mc,
  2039. [SLAVE_EBI1] = &ebi,
  2040. };
  2041. static const struct qcom_icc_desc sc8280xp_mc_virt = {
  2042. .nodes = mc_virt_nodes,
  2043. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2044. .bcms = mc_virt_bcms,
  2045. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2046. };
  2047. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  2048. &bcm_mm0,
  2049. &bcm_mm1,
  2050. };
  2051. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  2052. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  2053. [MASTER_MDP0] = &qnm_mdp0_0,
  2054. [MASTER_MDP1] = &qnm_mdp0_1,
  2055. [MASTER_MDP_CORE1_0] = &qnm_mdp1_0,
  2056. [MASTER_MDP_CORE1_1] = &qnm_mdp1_1,
  2057. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  2058. [MASTER_ROTATOR] = &qnm_rot_0,
  2059. [MASTER_ROTATOR_1] = &qnm_rot_1,
  2060. [MASTER_VIDEO_P0] = &qnm_video0,
  2061. [MASTER_VIDEO_P1] = &qnm_video1,
  2062. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  2063. [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
  2064. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  2065. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2066. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  2067. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  2068. };
  2069. static const struct qcom_icc_desc sc8280xp_mmss_noc = {
  2070. .nodes = mmss_noc_nodes,
  2071. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2072. .bcms = mmss_noc_bcms,
  2073. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2074. };
  2075. static struct qcom_icc_bcm * const nspa_noc_bcms[] = {
  2076. &bcm_nsa0,
  2077. &bcm_nsa1,
  2078. };
  2079. static struct qcom_icc_node * const nspa_noc_nodes[] = {
  2080. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  2081. [MASTER_CDSP_PROC] = &qxm_nsp,
  2082. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  2083. [SLAVE_NSP_XFR] = &qxs_nsp_xfr,
  2084. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  2085. };
  2086. static const struct qcom_icc_desc sc8280xp_nspa_noc = {
  2087. .nodes = nspa_noc_nodes,
  2088. .num_nodes = ARRAY_SIZE(nspa_noc_nodes),
  2089. .bcms = nspa_noc_bcms,
  2090. .num_bcms = ARRAY_SIZE(nspa_noc_bcms),
  2091. };
  2092. static struct qcom_icc_bcm * const nspb_noc_bcms[] = {
  2093. &bcm_nsb0,
  2094. &bcm_nsb1,
  2095. };
  2096. static struct qcom_icc_node * const nspb_noc_nodes[] = {
  2097. [MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config,
  2098. [MASTER_CDSP_PROC_B] = &qxm_nspb,
  2099. [SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc,
  2100. [SLAVE_NSPB_XFR] = &qxs_nspb_xfr,
  2101. [SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc,
  2102. };
  2103. static const struct qcom_icc_desc sc8280xp_nspb_noc = {
  2104. .nodes = nspb_noc_nodes,
  2105. .num_nodes = ARRAY_SIZE(nspb_noc_nodes),
  2106. .bcms = nspb_noc_bcms,
  2107. .num_bcms = ARRAY_SIZE(nspb_noc_bcms),
  2108. };
  2109. static struct qcom_icc_bcm * const system_noc_main_bcms[] = {
  2110. &bcm_sn0,
  2111. &bcm_sn1,
  2112. &bcm_sn3,
  2113. &bcm_sn4,
  2114. &bcm_sn5,
  2115. &bcm_sn9,
  2116. };
  2117. static struct qcom_icc_node * const system_noc_main_nodes[] = {
  2118. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2119. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2120. [MASTER_USB_NOC_SNOC] = &qnm_aggre_usb_noc,
  2121. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  2122. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  2123. [MASTER_PIMEM] = &qxm_pimem,
  2124. [MASTER_GIC] = &xm_gic,
  2125. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  2126. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2127. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  2128. };
  2129. static const struct qcom_icc_desc sc8280xp_system_noc_main = {
  2130. .nodes = system_noc_main_nodes,
  2131. .num_nodes = ARRAY_SIZE(system_noc_main_nodes),
  2132. .bcms = system_noc_main_bcms,
  2133. .num_bcms = ARRAY_SIZE(system_noc_main_bcms),
  2134. };
  2135. static const struct of_device_id qnoc_of_match[] = {
  2136. { .compatible = "qcom,sc8280xp-aggre1-noc", .data = &sc8280xp_aggre1_noc, },
  2137. { .compatible = "qcom,sc8280xp-aggre2-noc", .data = &sc8280xp_aggre2_noc, },
  2138. { .compatible = "qcom,sc8280xp-clk-virt", .data = &sc8280xp_clk_virt, },
  2139. { .compatible = "qcom,sc8280xp-config-noc", .data = &sc8280xp_config_noc, },
  2140. { .compatible = "qcom,sc8280xp-dc-noc", .data = &sc8280xp_dc_noc, },
  2141. { .compatible = "qcom,sc8280xp-gem-noc", .data = &sc8280xp_gem_noc, },
  2142. { .compatible = "qcom,sc8280xp-lpass-ag-noc", .data = &sc8280xp_lpass_ag_noc, },
  2143. { .compatible = "qcom,sc8280xp-mc-virt", .data = &sc8280xp_mc_virt, },
  2144. { .compatible = "qcom,sc8280xp-mmss-noc", .data = &sc8280xp_mmss_noc, },
  2145. { .compatible = "qcom,sc8280xp-nspa-noc", .data = &sc8280xp_nspa_noc, },
  2146. { .compatible = "qcom,sc8280xp-nspb-noc", .data = &sc8280xp_nspb_noc, },
  2147. { .compatible = "qcom,sc8280xp-system-noc", .data = &sc8280xp_system_noc_main, },
  2148. { }
  2149. };
  2150. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2151. static struct platform_driver qnoc_driver = {
  2152. .probe = qcom_icc_rpmh_probe,
  2153. .remove = qcom_icc_rpmh_remove,
  2154. .driver = {
  2155. .name = "qnoc-sc8280xp",
  2156. .of_match_table = qnoc_of_match,
  2157. .sync_state = icc_sync_state,
  2158. },
  2159. };
  2160. static int __init qnoc_driver_init(void)
  2161. {
  2162. return platform_driver_register(&qnoc_driver);
  2163. }
  2164. core_initcall(qnoc_driver_init);
  2165. MODULE_DESCRIPTION("Qualcomm SC8280XP NoC driver");
  2166. MODULE_LICENSE("GPL");