sc8280xp.c 54 KB

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