sc7280.c 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
  5. *
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/mod_devicetable.h>
  11. #include <linux/module.h>
  12. #include <linux/platform_device.h>
  13. #include <dt-bindings/interconnect/qcom,sc7280.h>
  14. #include "bcm-voter.h"
  15. #include "icc-rpmh.h"
  16. #include "sc7280.h"
  17. static struct qcom_icc_node qhm_qspi = {
  18. .name = "qhm_qspi",
  19. .id = SC7280_MASTER_QSPI_0,
  20. .channels = 1,
  21. .buswidth = 4,
  22. .qosbox = &(const struct qcom_icc_qosbox) {
  23. .num_ports = 1,
  24. .port_offsets = { 0x7000 },
  25. .prio = 2,
  26. .urg_fwd = 0,
  27. },
  28. .num_links = 1,
  29. .links = { SC7280_SLAVE_A1NOC_SNOC },
  30. };
  31. static struct qcom_icc_node qhm_qup0 = {
  32. .name = "qhm_qup0",
  33. .id = SC7280_MASTER_QUP_0,
  34. .channels = 1,
  35. .buswidth = 4,
  36. .qosbox = &(const struct qcom_icc_qosbox) {
  37. .num_ports = 1,
  38. .port_offsets = { 0x11000 },
  39. .prio = 2,
  40. .urg_fwd = 0,
  41. },
  42. .num_links = 1,
  43. .links = { SC7280_SLAVE_A1NOC_SNOC },
  44. };
  45. static struct qcom_icc_node qhm_qup1 = {
  46. .name = "qhm_qup1",
  47. .id = SC7280_MASTER_QUP_1,
  48. .channels = 1,
  49. .buswidth = 4,
  50. .qosbox = &(const struct qcom_icc_qosbox) {
  51. .num_ports = 1,
  52. .port_offsets = { 0x8000 },
  53. .prio = 2,
  54. .urg_fwd = 0,
  55. },
  56. .num_links = 1,
  57. .links = { SC7280_SLAVE_A1NOC_SNOC },
  58. };
  59. static struct qcom_icc_node qnm_a1noc_cfg = {
  60. .name = "qnm_a1noc_cfg",
  61. .id = SC7280_MASTER_A1NOC_CFG,
  62. .channels = 1,
  63. .buswidth = 4,
  64. .num_links = 1,
  65. .links = { SC7280_SLAVE_SERVICE_A1NOC },
  66. };
  67. static struct qcom_icc_node xm_sdc1 = {
  68. .name = "xm_sdc1",
  69. .id = SC7280_MASTER_SDCC_1,
  70. .channels = 1,
  71. .buswidth = 8,
  72. .qosbox = &(const struct qcom_icc_qosbox) {
  73. .num_ports = 1,
  74. .port_offsets = { 0xc000 },
  75. .prio = 2,
  76. .urg_fwd = 0,
  77. },
  78. .num_links = 1,
  79. .links = { SC7280_SLAVE_A1NOC_SNOC },
  80. };
  81. static struct qcom_icc_node xm_sdc2 = {
  82. .name = "xm_sdc2",
  83. .id = SC7280_MASTER_SDCC_2,
  84. .channels = 1,
  85. .buswidth = 8,
  86. .qosbox = &(const struct qcom_icc_qosbox) {
  87. .num_ports = 1,
  88. .port_offsets = { 0xe000 },
  89. .prio = 2,
  90. .urg_fwd = 0,
  91. },
  92. .num_links = 1,
  93. .links = { SC7280_SLAVE_A1NOC_SNOC },
  94. };
  95. static struct qcom_icc_node xm_sdc4 = {
  96. .name = "xm_sdc4",
  97. .id = SC7280_MASTER_SDCC_4,
  98. .channels = 1,
  99. .buswidth = 8,
  100. .qosbox = &(const struct qcom_icc_qosbox) {
  101. .num_ports = 1,
  102. .port_offsets = { 0x9000 },
  103. .prio = 2,
  104. .urg_fwd = 0,
  105. },
  106. .num_links = 1,
  107. .links = { SC7280_SLAVE_A1NOC_SNOC },
  108. };
  109. static struct qcom_icc_node xm_ufs_mem = {
  110. .name = "xm_ufs_mem",
  111. .id = SC7280_MASTER_UFS_MEM,
  112. .channels = 1,
  113. .buswidth = 8,
  114. .qosbox = &(const struct qcom_icc_qosbox) {
  115. .num_ports = 1,
  116. .port_offsets = { 0xa000 },
  117. .prio = 2,
  118. .urg_fwd = 0,
  119. },
  120. .num_links = 1,
  121. .links = { SC7280_SLAVE_A1NOC_SNOC },
  122. };
  123. static struct qcom_icc_node xm_usb2 = {
  124. .name = "xm_usb2",
  125. .id = SC7280_MASTER_USB2,
  126. .channels = 1,
  127. .buswidth = 8,
  128. .num_links = 1,
  129. .links = { SC7280_SLAVE_A1NOC_SNOC },
  130. };
  131. static struct qcom_icc_node xm_usb3_0 = {
  132. .name = "xm_usb3_0",
  133. .id = SC7280_MASTER_USB3_0,
  134. .channels = 1,
  135. .buswidth = 8,
  136. .qosbox = &(const struct qcom_icc_qosbox) {
  137. .num_ports = 1,
  138. .port_offsets = { 0xb000 },
  139. .prio = 2,
  140. .urg_fwd = 0,
  141. },
  142. .num_links = 1,
  143. .links = { SC7280_SLAVE_A1NOC_SNOC },
  144. };
  145. static struct qcom_icc_node qhm_qdss_bam = {
  146. .name = "qhm_qdss_bam",
  147. .id = SC7280_MASTER_QDSS_BAM,
  148. .channels = 1,
  149. .buswidth = 4,
  150. .qosbox = &(const struct qcom_icc_qosbox) {
  151. .num_ports = 1,
  152. .port_offsets = { 0x18000 },
  153. .prio = 2,
  154. .urg_fwd = 0,
  155. },
  156. .num_links = 1,
  157. .links = { SC7280_SLAVE_A2NOC_SNOC },
  158. };
  159. static struct qcom_icc_node qnm_a2noc_cfg = {
  160. .name = "qnm_a2noc_cfg",
  161. .id = SC7280_MASTER_A2NOC_CFG,
  162. .channels = 1,
  163. .buswidth = 4,
  164. .num_links = 1,
  165. .links = { SC7280_SLAVE_SERVICE_A2NOC },
  166. };
  167. static struct qcom_icc_node qnm_cnoc_datapath = {
  168. .name = "qnm_cnoc_datapath",
  169. .id = SC7280_MASTER_CNOC_A2NOC,
  170. .channels = 1,
  171. .buswidth = 8,
  172. .qosbox = &(const struct qcom_icc_qosbox) {
  173. .num_ports = 1,
  174. .port_offsets = { 0x1c000 },
  175. .prio = 2,
  176. .urg_fwd = 0,
  177. },
  178. .num_links = 1,
  179. .links = { SC7280_SLAVE_A2NOC_SNOC },
  180. };
  181. static struct qcom_icc_node qxm_crypto = {
  182. .name = "qxm_crypto",
  183. .id = SC7280_MASTER_CRYPTO,
  184. .channels = 1,
  185. .buswidth = 8,
  186. .qosbox = &(const struct qcom_icc_qosbox) {
  187. .num_ports = 1,
  188. .port_offsets = { 0x1d000 },
  189. .prio = 2,
  190. .urg_fwd = 0,
  191. },
  192. .num_links = 1,
  193. .links = { SC7280_SLAVE_A2NOC_SNOC },
  194. };
  195. static struct qcom_icc_node qxm_ipa = {
  196. .name = "qxm_ipa",
  197. .id = SC7280_MASTER_IPA,
  198. .channels = 1,
  199. .buswidth = 8,
  200. .qosbox = &(const struct qcom_icc_qosbox) {
  201. .num_ports = 1,
  202. .port_offsets = { 0x10000 },
  203. .prio = 2,
  204. .urg_fwd = 0,
  205. },
  206. .num_links = 1,
  207. .links = { SC7280_SLAVE_A2NOC_SNOC },
  208. };
  209. static struct qcom_icc_node xm_pcie3_0 = {
  210. .name = "xm_pcie3_0",
  211. .id = SC7280_MASTER_PCIE_0,
  212. .channels = 1,
  213. .buswidth = 8,
  214. .num_links = 1,
  215. .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
  216. };
  217. static struct qcom_icc_node xm_pcie3_1 = {
  218. .name = "xm_pcie3_1",
  219. .id = SC7280_MASTER_PCIE_1,
  220. .channels = 1,
  221. .buswidth = 8,
  222. .num_links = 1,
  223. .links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
  224. };
  225. static struct qcom_icc_node xm_qdss_etr = {
  226. .name = "xm_qdss_etr",
  227. .id = SC7280_MASTER_QDSS_ETR,
  228. .channels = 1,
  229. .buswidth = 8,
  230. .qosbox = &(const struct qcom_icc_qosbox) {
  231. .num_ports = 1,
  232. .port_offsets = { 0x15000 },
  233. .prio = 2,
  234. .urg_fwd = 0,
  235. },
  236. .num_links = 1,
  237. .links = { SC7280_SLAVE_A2NOC_SNOC },
  238. };
  239. static struct qcom_icc_node qup0_core_master = {
  240. .name = "qup0_core_master",
  241. .id = SC7280_MASTER_QUP_CORE_0,
  242. .channels = 1,
  243. .buswidth = 4,
  244. .num_links = 1,
  245. .links = { SC7280_SLAVE_QUP_CORE_0 },
  246. };
  247. static struct qcom_icc_node qup1_core_master = {
  248. .name = "qup1_core_master",
  249. .id = SC7280_MASTER_QUP_CORE_1,
  250. .channels = 1,
  251. .buswidth = 4,
  252. .num_links = 1,
  253. .links = { SC7280_SLAVE_QUP_CORE_1 },
  254. };
  255. static struct qcom_icc_node qnm_cnoc3_cnoc2 = {
  256. .name = "qnm_cnoc3_cnoc2",
  257. .id = SC7280_MASTER_CNOC3_CNOC2,
  258. .channels = 1,
  259. .buswidth = 8,
  260. .num_links = 44,
  261. .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
  262. SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
  263. SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
  264. SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
  265. SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
  266. SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
  267. SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
  268. SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
  269. SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
  270. SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
  271. SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
  272. SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
  273. SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
  274. SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
  275. SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
  276. SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
  277. SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
  278. SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
  279. SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
  280. SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
  281. SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
  282. SC7280_SLAVE_CNOC_MNOC_CFG, SC7280_SLAVE_SNOC_CFG },
  283. };
  284. static struct qcom_icc_node xm_qdss_dap = {
  285. .name = "xm_qdss_dap",
  286. .id = SC7280_MASTER_QDSS_DAP,
  287. .channels = 1,
  288. .buswidth = 8,
  289. .num_links = 45,
  290. .links = { SC7280_SLAVE_AHB2PHY_SOUTH, SC7280_SLAVE_AHB2PHY_NORTH,
  291. SC7280_SLAVE_CAMERA_CFG, SC7280_SLAVE_CLK_CTL,
  292. SC7280_SLAVE_CDSP_CFG, SC7280_SLAVE_RBCPR_CX_CFG,
  293. SC7280_SLAVE_RBCPR_MX_CFG, SC7280_SLAVE_CRYPTO_0_CFG,
  294. SC7280_SLAVE_CX_RDPM, SC7280_SLAVE_DCC_CFG,
  295. SC7280_SLAVE_DISPLAY_CFG, SC7280_SLAVE_GFX3D_CFG,
  296. SC7280_SLAVE_HWKM, SC7280_SLAVE_IMEM_CFG,
  297. SC7280_SLAVE_IPA_CFG, SC7280_SLAVE_IPC_ROUTER_CFG,
  298. SC7280_SLAVE_LPASS, SC7280_SLAVE_CNOC_MSS,
  299. SC7280_SLAVE_MX_RDPM, SC7280_SLAVE_PCIE_0_CFG,
  300. SC7280_SLAVE_PCIE_1_CFG, SC7280_SLAVE_PDM,
  301. SC7280_SLAVE_PIMEM_CFG, SC7280_SLAVE_PKA_WRAPPER_CFG,
  302. SC7280_SLAVE_PMU_WRAPPER_CFG, SC7280_SLAVE_QDSS_CFG,
  303. SC7280_SLAVE_QSPI_0, SC7280_SLAVE_QUP_0,
  304. SC7280_SLAVE_QUP_1, SC7280_SLAVE_SDCC_1,
  305. SC7280_SLAVE_SDCC_2, SC7280_SLAVE_SDCC_4,
  306. SC7280_SLAVE_SECURITY, SC7280_SLAVE_TCSR,
  307. SC7280_SLAVE_TLMM, SC7280_SLAVE_UFS_MEM_CFG,
  308. SC7280_SLAVE_USB2, SC7280_SLAVE_USB3_0,
  309. SC7280_SLAVE_VENUS_CFG, SC7280_SLAVE_VSENSE_CTRL_CFG,
  310. SC7280_SLAVE_A1NOC_CFG, SC7280_SLAVE_A2NOC_CFG,
  311. SC7280_SLAVE_CNOC2_CNOC3, SC7280_SLAVE_CNOC_MNOC_CFG,
  312. SC7280_SLAVE_SNOC_CFG },
  313. };
  314. static struct qcom_icc_node qnm_cnoc2_cnoc3 = {
  315. .name = "qnm_cnoc2_cnoc3",
  316. .id = SC7280_MASTER_CNOC2_CNOC3,
  317. .channels = 1,
  318. .buswidth = 8,
  319. .num_links = 9,
  320. .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
  321. SC7280_SLAVE_CNOC_A2NOC, SC7280_SLAVE_DDRSS_CFG,
  322. SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
  323. SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
  324. SC7280_SLAVE_TCU },
  325. };
  326. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  327. .name = "qnm_gemnoc_cnoc",
  328. .id = SC7280_MASTER_GEM_NOC_CNOC,
  329. .channels = 1,
  330. .buswidth = 16,
  331. .num_links = 9,
  332. .links = { SC7280_SLAVE_AOSS, SC7280_SLAVE_APPSS,
  333. SC7280_SLAVE_CNOC3_CNOC2, SC7280_SLAVE_DDRSS_CFG,
  334. SC7280_SLAVE_BOOT_IMEM, SC7280_SLAVE_IMEM,
  335. SC7280_SLAVE_PIMEM, SC7280_SLAVE_QDSS_STM,
  336. SC7280_SLAVE_TCU },
  337. };
  338. static struct qcom_icc_node qnm_gemnoc_pcie = {
  339. .name = "qnm_gemnoc_pcie",
  340. .id = SC7280_MASTER_GEM_NOC_PCIE_SNOC,
  341. .channels = 1,
  342. .buswidth = 8,
  343. .num_links = 2,
  344. .links = { SC7280_SLAVE_PCIE_0, SC7280_SLAVE_PCIE_1 },
  345. };
  346. static struct qcom_icc_node qnm_cnoc_dc_noc = {
  347. .name = "qnm_cnoc_dc_noc",
  348. .id = SC7280_MASTER_CNOC_DC_NOC,
  349. .channels = 1,
  350. .buswidth = 4,
  351. .num_links = 2,
  352. .links = { SC7280_SLAVE_LLCC_CFG, SC7280_SLAVE_GEM_NOC_CFG },
  353. };
  354. static struct qcom_icc_node alm_gpu_tcu = {
  355. .name = "alm_gpu_tcu",
  356. .id = SC7280_MASTER_GPU_TCU,
  357. .channels = 1,
  358. .buswidth = 8,
  359. .qosbox = &(const struct qcom_icc_qosbox) {
  360. .num_ports = 1,
  361. .port_offsets = { 0xd7000 },
  362. .prio = 2,
  363. .urg_fwd = 0,
  364. },
  365. .num_links = 2,
  366. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  367. };
  368. static struct qcom_icc_node alm_sys_tcu = {
  369. .name = "alm_sys_tcu",
  370. .id = SC7280_MASTER_SYS_TCU,
  371. .channels = 1,
  372. .buswidth = 8,
  373. .qosbox = &(const struct qcom_icc_qosbox) {
  374. .num_ports = 1,
  375. .port_offsets = { 0xd6000 },
  376. .prio = 6,
  377. .urg_fwd = 0,
  378. },
  379. .num_links = 2,
  380. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  381. };
  382. static struct qcom_icc_node chm_apps = {
  383. .name = "chm_apps",
  384. .id = SC7280_MASTER_APPSS_PROC,
  385. .channels = 1,
  386. .buswidth = 32,
  387. .num_links = 3,
  388. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
  389. SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
  390. };
  391. static struct qcom_icc_node qnm_cmpnoc = {
  392. .name = "qnm_cmpnoc",
  393. .id = SC7280_MASTER_COMPUTE_NOC,
  394. .channels = 2,
  395. .buswidth = 32,
  396. .qosbox = &(const struct qcom_icc_qosbox) {
  397. .num_ports = 2,
  398. .port_offsets = { 0x21000, 0x61000 },
  399. .prio = 0,
  400. .urg_fwd = 1,
  401. },
  402. .num_links = 2,
  403. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  404. };
  405. static struct qcom_icc_node qnm_gemnoc_cfg = {
  406. .name = "qnm_gemnoc_cfg",
  407. .id = SC7280_MASTER_GEM_NOC_CFG,
  408. .channels = 1,
  409. .buswidth = 4,
  410. .num_links = 5,
  411. .links = { SC7280_SLAVE_MSS_PROC_MS_MPU_CFG, SC7280_SLAVE_MCDMA_MS_MPU_CFG,
  412. SC7280_SLAVE_SERVICE_GEM_NOC_1, SC7280_SLAVE_SERVICE_GEM_NOC_2,
  413. SC7280_SLAVE_SERVICE_GEM_NOC },
  414. };
  415. static struct qcom_icc_node qnm_gpu = {
  416. .name = "qnm_gpu",
  417. .id = SC7280_MASTER_GFX3D,
  418. .channels = 2,
  419. .buswidth = 32,
  420. .qosbox = &(const struct qcom_icc_qosbox) {
  421. .num_ports = 2,
  422. .port_offsets = { 0x22000, 0x62000 },
  423. .prio = 0,
  424. .urg_fwd = 0,
  425. },
  426. .num_links = 2,
  427. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  428. };
  429. static struct qcom_icc_node qnm_mnoc_hf = {
  430. .name = "qnm_mnoc_hf",
  431. .id = SC7280_MASTER_MNOC_HF_MEM_NOC,
  432. .channels = 2,
  433. .buswidth = 32,
  434. .qosbox = &(const struct qcom_icc_qosbox) {
  435. .num_ports = 2,
  436. .port_offsets = { 0x23000, 0x63000 },
  437. .prio = 0,
  438. .urg_fwd = 1,
  439. },
  440. .num_links = 1,
  441. .links = { SC7280_SLAVE_LLCC },
  442. };
  443. static struct qcom_icc_node qnm_mnoc_sf = {
  444. .name = "qnm_mnoc_sf",
  445. .id = SC7280_MASTER_MNOC_SF_MEM_NOC,
  446. .channels = 1,
  447. .buswidth = 32,
  448. .qosbox = &(const struct qcom_icc_qosbox) {
  449. .num_ports = 1,
  450. .port_offsets = { 0xcf000 },
  451. .prio = 0,
  452. .urg_fwd = 1,
  453. },
  454. .num_links = 2,
  455. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  456. };
  457. static struct qcom_icc_node qnm_pcie = {
  458. .name = "qnm_pcie",
  459. .id = SC7280_MASTER_ANOC_PCIE_GEM_NOC,
  460. .channels = 1,
  461. .buswidth = 16,
  462. .num_links = 2,
  463. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC },
  464. };
  465. static struct qcom_icc_node qnm_snoc_gc = {
  466. .name = "qnm_snoc_gc",
  467. .id = SC7280_MASTER_SNOC_GC_MEM_NOC,
  468. .channels = 1,
  469. .buswidth = 8,
  470. .qosbox = &(const struct qcom_icc_qosbox) {
  471. .num_ports = 1,
  472. .port_offsets = { 0xd3000 },
  473. .prio = 0,
  474. .urg_fwd = 1,
  475. },
  476. .num_links = 1,
  477. .links = { SC7280_SLAVE_LLCC },
  478. };
  479. static struct qcom_icc_node qnm_snoc_sf = {
  480. .name = "qnm_snoc_sf",
  481. .id = SC7280_MASTER_SNOC_SF_MEM_NOC,
  482. .channels = 1,
  483. .buswidth = 16,
  484. .qosbox = &(const struct qcom_icc_qosbox) {
  485. .num_ports = 1,
  486. .port_offsets = { 0xd4000 },
  487. .prio = 0,
  488. .urg_fwd = 1,
  489. },
  490. .num_links = 3,
  491. .links = { SC7280_SLAVE_GEM_NOC_CNOC, SC7280_SLAVE_LLCC,
  492. SC7280_SLAVE_MEM_NOC_PCIE_SNOC },
  493. };
  494. static struct qcom_icc_node qhm_config_noc = {
  495. .name = "qhm_config_noc",
  496. .id = SC7280_MASTER_CNOC_LPASS_AG_NOC,
  497. .channels = 1,
  498. .buswidth = 4,
  499. .num_links = 6,
  500. .links = { SC7280_SLAVE_LPASS_CORE_CFG, SC7280_SLAVE_LPASS_LPI_CFG,
  501. SC7280_SLAVE_LPASS_MPU_CFG, SC7280_SLAVE_LPASS_TOP_CFG,
  502. SC7280_SLAVE_SERVICES_LPASS_AML_NOC, SC7280_SLAVE_SERVICE_LPASS_AG_NOC },
  503. };
  504. static struct qcom_icc_node llcc_mc = {
  505. .name = "llcc_mc",
  506. .id = SC7280_MASTER_LLCC,
  507. .channels = 2,
  508. .buswidth = 4,
  509. .num_links = 1,
  510. .links = { SC7280_SLAVE_EBI1 },
  511. };
  512. static struct qcom_icc_node qnm_mnoc_cfg = {
  513. .name = "qnm_mnoc_cfg",
  514. .id = SC7280_MASTER_CNOC_MNOC_CFG,
  515. .channels = 1,
  516. .buswidth = 4,
  517. .num_links = 1,
  518. .links = { SC7280_SLAVE_SERVICE_MNOC },
  519. };
  520. static struct qcom_icc_node qnm_video0 = {
  521. .name = "qnm_video0",
  522. .id = SC7280_MASTER_VIDEO_P0,
  523. .channels = 1,
  524. .buswidth = 32,
  525. .qosbox = &(const struct qcom_icc_qosbox) {
  526. .num_ports = 1,
  527. .port_offsets = { 0x14000 },
  528. .prio = 0,
  529. .urg_fwd = 1,
  530. },
  531. .num_links = 1,
  532. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  533. };
  534. static struct qcom_icc_node qnm_video_cpu = {
  535. .name = "qnm_video_cpu",
  536. .id = SC7280_MASTER_VIDEO_PROC,
  537. .channels = 1,
  538. .buswidth = 8,
  539. .qosbox = &(const struct qcom_icc_qosbox) {
  540. .num_ports = 1,
  541. .port_offsets = { 0x15000 },
  542. .prio = 0,
  543. .urg_fwd = 1,
  544. },
  545. .num_links = 1,
  546. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  547. };
  548. static struct qcom_icc_node qxm_camnoc_hf = {
  549. .name = "qxm_camnoc_hf",
  550. .id = SC7280_MASTER_CAMNOC_HF,
  551. .channels = 2,
  552. .buswidth = 32,
  553. .qosbox = &(const struct qcom_icc_qosbox) {
  554. .num_ports = 2,
  555. .port_offsets = { 0x10000, 0x10180 },
  556. .prio = 0,
  557. .urg_fwd = 1,
  558. },
  559. .num_links = 1,
  560. .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
  561. };
  562. static struct qcom_icc_node qxm_camnoc_icp = {
  563. .name = "qxm_camnoc_icp",
  564. .id = SC7280_MASTER_CAMNOC_ICP,
  565. .channels = 1,
  566. .buswidth = 8,
  567. .qosbox = &(const struct qcom_icc_qosbox) {
  568. .num_ports = 1,
  569. .port_offsets = { 0x11000 },
  570. .prio = 0,
  571. .urg_fwd = 1,
  572. },
  573. .num_links = 1,
  574. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  575. };
  576. static struct qcom_icc_node qxm_camnoc_sf = {
  577. .name = "qxm_camnoc_sf",
  578. .id = SC7280_MASTER_CAMNOC_SF,
  579. .channels = 1,
  580. .buswidth = 32,
  581. .qosbox = &(const struct qcom_icc_qosbox) {
  582. .num_ports = 1,
  583. .port_offsets = { 0x12000 },
  584. .prio = 0,
  585. .urg_fwd = 1,
  586. },
  587. .num_links = 1,
  588. .links = { SC7280_SLAVE_MNOC_SF_MEM_NOC },
  589. };
  590. static struct qcom_icc_node qxm_mdp0 = {
  591. .name = "qxm_mdp0",
  592. .id = SC7280_MASTER_MDP0,
  593. .channels = 1,
  594. .buswidth = 32,
  595. .qosbox = &(const struct qcom_icc_qosbox) {
  596. .num_ports = 1,
  597. .port_offsets = { 0x16000 },
  598. .prio = 0,
  599. .urg_fwd = 1,
  600. },
  601. .num_links = 1,
  602. .links = { SC7280_SLAVE_MNOC_HF_MEM_NOC },
  603. };
  604. static struct qcom_icc_node qhm_nsp_noc_config = {
  605. .name = "qhm_nsp_noc_config",
  606. .id = SC7280_MASTER_CDSP_NOC_CFG,
  607. .channels = 1,
  608. .buswidth = 4,
  609. .num_links = 1,
  610. .links = { SC7280_SLAVE_SERVICE_NSP_NOC },
  611. };
  612. static struct qcom_icc_node qxm_nsp = {
  613. .name = "qxm_nsp",
  614. .id = SC7280_MASTER_CDSP_PROC,
  615. .channels = 2,
  616. .buswidth = 32,
  617. .num_links = 1,
  618. .links = { SC7280_SLAVE_CDSP_MEM_NOC },
  619. };
  620. static struct qcom_icc_node qnm_aggre1_noc = {
  621. .name = "qnm_aggre1_noc",
  622. .id = SC7280_MASTER_A1NOC_SNOC,
  623. .channels = 1,
  624. .buswidth = 16,
  625. .num_links = 1,
  626. .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
  627. };
  628. static struct qcom_icc_node qnm_aggre2_noc = {
  629. .name = "qnm_aggre2_noc",
  630. .id = SC7280_MASTER_A2NOC_SNOC,
  631. .channels = 1,
  632. .buswidth = 16,
  633. .num_links = 1,
  634. .links = { SC7280_SLAVE_SNOC_GEM_NOC_SF },
  635. };
  636. static struct qcom_icc_node qnm_snoc_cfg = {
  637. .name = "qnm_snoc_cfg",
  638. .id = SC7280_MASTER_SNOC_CFG,
  639. .channels = 1,
  640. .buswidth = 4,
  641. .num_links = 1,
  642. .links = { SC7280_SLAVE_SERVICE_SNOC },
  643. };
  644. static struct qcom_icc_node qxm_pimem = {
  645. .name = "qxm_pimem",
  646. .id = SC7280_MASTER_PIMEM,
  647. .channels = 1,
  648. .buswidth = 8,
  649. .qosbox = &(const struct qcom_icc_qosbox) {
  650. .num_ports = 1,
  651. .port_offsets = { 0x8000 },
  652. .prio = 2,
  653. .urg_fwd = 0,
  654. },
  655. .num_links = 1,
  656. .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
  657. };
  658. static struct qcom_icc_node xm_gic = {
  659. .name = "xm_gic",
  660. .id = SC7280_MASTER_GIC,
  661. .channels = 1,
  662. .buswidth = 8,
  663. .qosbox = &(const struct qcom_icc_qosbox) {
  664. .num_ports = 1,
  665. .port_offsets = { 0xa000 },
  666. .prio = 2,
  667. .urg_fwd = 0,
  668. },
  669. .num_links = 1,
  670. .links = { SC7280_SLAVE_SNOC_GEM_NOC_GC },
  671. };
  672. static struct qcom_icc_node qns_a1noc_snoc = {
  673. .name = "qns_a1noc_snoc",
  674. .id = SC7280_SLAVE_A1NOC_SNOC,
  675. .channels = 1,
  676. .buswidth = 16,
  677. .num_links = 1,
  678. .links = { SC7280_MASTER_A1NOC_SNOC },
  679. };
  680. static struct qcom_icc_node srvc_aggre1_noc = {
  681. .name = "srvc_aggre1_noc",
  682. .id = SC7280_SLAVE_SERVICE_A1NOC,
  683. .channels = 1,
  684. .buswidth = 4,
  685. .num_links = 0,
  686. };
  687. static struct qcom_icc_node qns_a2noc_snoc = {
  688. .name = "qns_a2noc_snoc",
  689. .id = SC7280_SLAVE_A2NOC_SNOC,
  690. .channels = 1,
  691. .buswidth = 16,
  692. .num_links = 1,
  693. .links = { SC7280_MASTER_A2NOC_SNOC },
  694. };
  695. static struct qcom_icc_node qns_pcie_mem_noc = {
  696. .name = "qns_pcie_mem_noc",
  697. .id = SC7280_SLAVE_ANOC_PCIE_GEM_NOC,
  698. .channels = 1,
  699. .buswidth = 16,
  700. .num_links = 1,
  701. .links = { SC7280_MASTER_ANOC_PCIE_GEM_NOC },
  702. };
  703. static struct qcom_icc_node srvc_aggre2_noc = {
  704. .name = "srvc_aggre2_noc",
  705. .id = SC7280_SLAVE_SERVICE_A2NOC,
  706. .channels = 1,
  707. .buswidth = 4,
  708. .num_links = 0,
  709. };
  710. static struct qcom_icc_node qup0_core_slave = {
  711. .name = "qup0_core_slave",
  712. .id = SC7280_SLAVE_QUP_CORE_0,
  713. .channels = 1,
  714. .buswidth = 4,
  715. .num_links = 0,
  716. };
  717. static struct qcom_icc_node qup1_core_slave = {
  718. .name = "qup1_core_slave",
  719. .id = SC7280_SLAVE_QUP_CORE_1,
  720. .channels = 1,
  721. .buswidth = 4,
  722. .num_links = 0,
  723. };
  724. static struct qcom_icc_node qhs_ahb2phy0 = {
  725. .name = "qhs_ahb2phy0",
  726. .id = SC7280_SLAVE_AHB2PHY_SOUTH,
  727. .channels = 1,
  728. .buswidth = 4,
  729. .num_links = 0,
  730. };
  731. static struct qcom_icc_node qhs_ahb2phy1 = {
  732. .name = "qhs_ahb2phy1",
  733. .id = SC7280_SLAVE_AHB2PHY_NORTH,
  734. .channels = 1,
  735. .buswidth = 4,
  736. .num_links = 0,
  737. };
  738. static struct qcom_icc_node qhs_camera_cfg = {
  739. .name = "qhs_camera_cfg",
  740. .id = SC7280_SLAVE_CAMERA_CFG,
  741. .channels = 1,
  742. .buswidth = 4,
  743. .num_links = 0,
  744. };
  745. static struct qcom_icc_node qhs_clk_ctl = {
  746. .name = "qhs_clk_ctl",
  747. .id = SC7280_SLAVE_CLK_CTL,
  748. .channels = 1,
  749. .buswidth = 4,
  750. .num_links = 0,
  751. };
  752. static struct qcom_icc_node qhs_compute_cfg = {
  753. .name = "qhs_compute_cfg",
  754. .id = SC7280_SLAVE_CDSP_CFG,
  755. .channels = 1,
  756. .buswidth = 4,
  757. .num_links = 1,
  758. .links = { SC7280_MASTER_CDSP_NOC_CFG },
  759. };
  760. static struct qcom_icc_node qhs_cpr_cx = {
  761. .name = "qhs_cpr_cx",
  762. .id = SC7280_SLAVE_RBCPR_CX_CFG,
  763. .channels = 1,
  764. .buswidth = 4,
  765. .num_links = 0,
  766. };
  767. static struct qcom_icc_node qhs_cpr_mx = {
  768. .name = "qhs_cpr_mx",
  769. .id = SC7280_SLAVE_RBCPR_MX_CFG,
  770. .channels = 1,
  771. .buswidth = 4,
  772. .num_links = 0,
  773. };
  774. static struct qcom_icc_node qhs_crypto0_cfg = {
  775. .name = "qhs_crypto0_cfg",
  776. .id = SC7280_SLAVE_CRYPTO_0_CFG,
  777. .channels = 1,
  778. .buswidth = 4,
  779. .num_links = 0,
  780. };
  781. static struct qcom_icc_node qhs_cx_rdpm = {
  782. .name = "qhs_cx_rdpm",
  783. .id = SC7280_SLAVE_CX_RDPM,
  784. .channels = 1,
  785. .buswidth = 4,
  786. .num_links = 0,
  787. };
  788. static struct qcom_icc_node qhs_dcc_cfg = {
  789. .name = "qhs_dcc_cfg",
  790. .id = SC7280_SLAVE_DCC_CFG,
  791. .channels = 1,
  792. .buswidth = 4,
  793. .num_links = 0,
  794. };
  795. static struct qcom_icc_node qhs_display_cfg = {
  796. .name = "qhs_display_cfg",
  797. .id = SC7280_SLAVE_DISPLAY_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. .num_links = 0,
  801. };
  802. static struct qcom_icc_node qhs_gpuss_cfg = {
  803. .name = "qhs_gpuss_cfg",
  804. .id = SC7280_SLAVE_GFX3D_CFG,
  805. .channels = 1,
  806. .buswidth = 8,
  807. .num_links = 0,
  808. };
  809. static struct qcom_icc_node qhs_hwkm = {
  810. .name = "qhs_hwkm",
  811. .id = SC7280_SLAVE_HWKM,
  812. .channels = 1,
  813. .buswidth = 4,
  814. .num_links = 0,
  815. };
  816. static struct qcom_icc_node qhs_imem_cfg = {
  817. .name = "qhs_imem_cfg",
  818. .id = SC7280_SLAVE_IMEM_CFG,
  819. .channels = 1,
  820. .buswidth = 4,
  821. .num_links = 0,
  822. };
  823. static struct qcom_icc_node qhs_ipa = {
  824. .name = "qhs_ipa",
  825. .id = SC7280_SLAVE_IPA_CFG,
  826. .channels = 1,
  827. .buswidth = 4,
  828. .num_links = 0,
  829. };
  830. static struct qcom_icc_node qhs_ipc_router = {
  831. .name = "qhs_ipc_router",
  832. .id = SC7280_SLAVE_IPC_ROUTER_CFG,
  833. .channels = 1,
  834. .buswidth = 4,
  835. .num_links = 0,
  836. };
  837. static struct qcom_icc_node qhs_lpass_cfg = {
  838. .name = "qhs_lpass_cfg",
  839. .id = SC7280_SLAVE_LPASS,
  840. .channels = 1,
  841. .buswidth = 4,
  842. .num_links = 1,
  843. .links = { SC7280_MASTER_CNOC_LPASS_AG_NOC },
  844. };
  845. static struct qcom_icc_node qhs_mss_cfg = {
  846. .name = "qhs_mss_cfg",
  847. .id = SC7280_SLAVE_CNOC_MSS,
  848. .channels = 1,
  849. .buswidth = 4,
  850. .num_links = 0,
  851. };
  852. static struct qcom_icc_node qhs_mx_rdpm = {
  853. .name = "qhs_mx_rdpm",
  854. .id = SC7280_SLAVE_MX_RDPM,
  855. .channels = 1,
  856. .buswidth = 4,
  857. .num_links = 0,
  858. };
  859. static struct qcom_icc_node qhs_pcie0_cfg = {
  860. .name = "qhs_pcie0_cfg",
  861. .id = SC7280_SLAVE_PCIE_0_CFG,
  862. .channels = 1,
  863. .buswidth = 4,
  864. .num_links = 0,
  865. };
  866. static struct qcom_icc_node qhs_pcie1_cfg = {
  867. .name = "qhs_pcie1_cfg",
  868. .id = SC7280_SLAVE_PCIE_1_CFG,
  869. .channels = 1,
  870. .buswidth = 4,
  871. .num_links = 0,
  872. };
  873. static struct qcom_icc_node qhs_pdm = {
  874. .name = "qhs_pdm",
  875. .id = SC7280_SLAVE_PDM,
  876. .channels = 1,
  877. .buswidth = 4,
  878. .num_links = 0,
  879. };
  880. static struct qcom_icc_node qhs_pimem_cfg = {
  881. .name = "qhs_pimem_cfg",
  882. .id = SC7280_SLAVE_PIMEM_CFG,
  883. .channels = 1,
  884. .buswidth = 4,
  885. .num_links = 0,
  886. };
  887. static struct qcom_icc_node qhs_pka_wrapper_cfg = {
  888. .name = "qhs_pka_wrapper_cfg",
  889. .id = SC7280_SLAVE_PKA_WRAPPER_CFG,
  890. .channels = 1,
  891. .buswidth = 4,
  892. .num_links = 0,
  893. };
  894. static struct qcom_icc_node qhs_pmu_wrapper_cfg = {
  895. .name = "qhs_pmu_wrapper_cfg",
  896. .id = SC7280_SLAVE_PMU_WRAPPER_CFG,
  897. .channels = 1,
  898. .buswidth = 4,
  899. .num_links = 0,
  900. };
  901. static struct qcom_icc_node qhs_qdss_cfg = {
  902. .name = "qhs_qdss_cfg",
  903. .id = SC7280_SLAVE_QDSS_CFG,
  904. .channels = 1,
  905. .buswidth = 4,
  906. .num_links = 0,
  907. };
  908. static struct qcom_icc_node qhs_qspi = {
  909. .name = "qhs_qspi",
  910. .id = SC7280_SLAVE_QSPI_0,
  911. .channels = 1,
  912. .buswidth = 4,
  913. .num_links = 0,
  914. };
  915. static struct qcom_icc_node qhs_qup0 = {
  916. .name = "qhs_qup0",
  917. .id = SC7280_SLAVE_QUP_0,
  918. .channels = 1,
  919. .buswidth = 4,
  920. .num_links = 0,
  921. };
  922. static struct qcom_icc_node qhs_qup1 = {
  923. .name = "qhs_qup1",
  924. .id = SC7280_SLAVE_QUP_1,
  925. .channels = 1,
  926. .buswidth = 4,
  927. .num_links = 0,
  928. };
  929. static struct qcom_icc_node qhs_sdc1 = {
  930. .name = "qhs_sdc1",
  931. .id = SC7280_SLAVE_SDCC_1,
  932. .channels = 1,
  933. .buswidth = 4,
  934. .num_links = 0,
  935. };
  936. static struct qcom_icc_node qhs_sdc2 = {
  937. .name = "qhs_sdc2",
  938. .id = SC7280_SLAVE_SDCC_2,
  939. .channels = 1,
  940. .buswidth = 4,
  941. .num_links = 0,
  942. };
  943. static struct qcom_icc_node qhs_sdc4 = {
  944. .name = "qhs_sdc4",
  945. .id = SC7280_SLAVE_SDCC_4,
  946. .channels = 1,
  947. .buswidth = 4,
  948. .num_links = 0,
  949. };
  950. static struct qcom_icc_node qhs_security = {
  951. .name = "qhs_security",
  952. .id = SC7280_SLAVE_SECURITY,
  953. .channels = 1,
  954. .buswidth = 4,
  955. .num_links = 0,
  956. };
  957. static struct qcom_icc_node qhs_tcsr = {
  958. .name = "qhs_tcsr",
  959. .id = SC7280_SLAVE_TCSR,
  960. .channels = 1,
  961. .buswidth = 4,
  962. .num_links = 0,
  963. };
  964. static struct qcom_icc_node qhs_tlmm = {
  965. .name = "qhs_tlmm",
  966. .id = SC7280_SLAVE_TLMM,
  967. .channels = 1,
  968. .buswidth = 4,
  969. .num_links = 0,
  970. };
  971. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  972. .name = "qhs_ufs_mem_cfg",
  973. .id = SC7280_SLAVE_UFS_MEM_CFG,
  974. .channels = 1,
  975. .buswidth = 4,
  976. .num_links = 0,
  977. };
  978. static struct qcom_icc_node qhs_usb2 = {
  979. .name = "qhs_usb2",
  980. .id = SC7280_SLAVE_USB2,
  981. .channels = 1,
  982. .buswidth = 4,
  983. .num_links = 0,
  984. };
  985. static struct qcom_icc_node qhs_usb3_0 = {
  986. .name = "qhs_usb3_0",
  987. .id = SC7280_SLAVE_USB3_0,
  988. .channels = 1,
  989. .buswidth = 4,
  990. .num_links = 0,
  991. };
  992. static struct qcom_icc_node qhs_venus_cfg = {
  993. .name = "qhs_venus_cfg",
  994. .id = SC7280_SLAVE_VENUS_CFG,
  995. .channels = 1,
  996. .buswidth = 4,
  997. .num_links = 0,
  998. };
  999. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1000. .name = "qhs_vsense_ctrl_cfg",
  1001. .id = SC7280_SLAVE_VSENSE_CTRL_CFG,
  1002. .channels = 1,
  1003. .buswidth = 4,
  1004. .num_links = 0,
  1005. };
  1006. static struct qcom_icc_node qns_a1_noc_cfg = {
  1007. .name = "qns_a1_noc_cfg",
  1008. .id = SC7280_SLAVE_A1NOC_CFG,
  1009. .channels = 1,
  1010. .buswidth = 4,
  1011. .num_links = 1,
  1012. .links = { SC7280_MASTER_A1NOC_CFG },
  1013. };
  1014. static struct qcom_icc_node qns_a2_noc_cfg = {
  1015. .name = "qns_a2_noc_cfg",
  1016. .id = SC7280_SLAVE_A2NOC_CFG,
  1017. .channels = 1,
  1018. .buswidth = 4,
  1019. .num_links = 1,
  1020. .links = { SC7280_MASTER_A2NOC_CFG },
  1021. };
  1022. static struct qcom_icc_node qns_cnoc2_cnoc3 = {
  1023. .name = "qns_cnoc2_cnoc3",
  1024. .id = SC7280_SLAVE_CNOC2_CNOC3,
  1025. .channels = 1,
  1026. .buswidth = 8,
  1027. .num_links = 1,
  1028. .links = { SC7280_MASTER_CNOC2_CNOC3 },
  1029. };
  1030. static struct qcom_icc_node qns_mnoc_cfg = {
  1031. .name = "qns_mnoc_cfg",
  1032. .id = SC7280_SLAVE_CNOC_MNOC_CFG,
  1033. .channels = 1,
  1034. .buswidth = 4,
  1035. .num_links = 1,
  1036. .links = { SC7280_MASTER_CNOC_MNOC_CFG },
  1037. };
  1038. static struct qcom_icc_node qns_snoc_cfg = {
  1039. .name = "qns_snoc_cfg",
  1040. .id = SC7280_SLAVE_SNOC_CFG,
  1041. .channels = 1,
  1042. .buswidth = 4,
  1043. .num_links = 1,
  1044. .links = { SC7280_MASTER_SNOC_CFG },
  1045. };
  1046. static struct qcom_icc_node qhs_aoss = {
  1047. .name = "qhs_aoss",
  1048. .id = SC7280_SLAVE_AOSS,
  1049. .channels = 1,
  1050. .buswidth = 4,
  1051. .num_links = 0,
  1052. };
  1053. static struct qcom_icc_node qhs_apss = {
  1054. .name = "qhs_apss",
  1055. .id = SC7280_SLAVE_APPSS,
  1056. .channels = 1,
  1057. .buswidth = 8,
  1058. .num_links = 0,
  1059. };
  1060. static struct qcom_icc_node qns_cnoc3_cnoc2 = {
  1061. .name = "qns_cnoc3_cnoc2",
  1062. .id = SC7280_SLAVE_CNOC3_CNOC2,
  1063. .channels = 1,
  1064. .buswidth = 8,
  1065. .num_links = 1,
  1066. .links = { SC7280_MASTER_CNOC3_CNOC2 },
  1067. };
  1068. static struct qcom_icc_node qns_cnoc_a2noc = {
  1069. .name = "qns_cnoc_a2noc",
  1070. .id = SC7280_SLAVE_CNOC_A2NOC,
  1071. .channels = 1,
  1072. .buswidth = 8,
  1073. .num_links = 1,
  1074. .links = { SC7280_MASTER_CNOC_A2NOC },
  1075. };
  1076. static struct qcom_icc_node qns_ddrss_cfg = {
  1077. .name = "qns_ddrss_cfg",
  1078. .id = SC7280_SLAVE_DDRSS_CFG,
  1079. .channels = 1,
  1080. .buswidth = 4,
  1081. .num_links = 1,
  1082. .links = { SC7280_MASTER_CNOC_DC_NOC },
  1083. };
  1084. static struct qcom_icc_node qxs_boot_imem = {
  1085. .name = "qxs_boot_imem",
  1086. .id = SC7280_SLAVE_BOOT_IMEM,
  1087. .channels = 1,
  1088. .buswidth = 8,
  1089. .num_links = 0,
  1090. };
  1091. static struct qcom_icc_node qxs_imem = {
  1092. .name = "qxs_imem",
  1093. .id = SC7280_SLAVE_IMEM,
  1094. .channels = 1,
  1095. .buswidth = 8,
  1096. .num_links = 0,
  1097. };
  1098. static struct qcom_icc_node qxs_pimem = {
  1099. .name = "qxs_pimem",
  1100. .id = SC7280_SLAVE_PIMEM,
  1101. .channels = 1,
  1102. .buswidth = 8,
  1103. .num_links = 0,
  1104. };
  1105. static struct qcom_icc_node xs_pcie_0 = {
  1106. .name = "xs_pcie_0",
  1107. .id = SC7280_SLAVE_PCIE_0,
  1108. .channels = 1,
  1109. .buswidth = 8,
  1110. .num_links = 0,
  1111. };
  1112. static struct qcom_icc_node xs_pcie_1 = {
  1113. .name = "xs_pcie_1",
  1114. .id = SC7280_SLAVE_PCIE_1,
  1115. .channels = 1,
  1116. .buswidth = 8,
  1117. .num_links = 0,
  1118. };
  1119. static struct qcom_icc_node xs_qdss_stm = {
  1120. .name = "xs_qdss_stm",
  1121. .id = SC7280_SLAVE_QDSS_STM,
  1122. .channels = 1,
  1123. .buswidth = 4,
  1124. .num_links = 0,
  1125. };
  1126. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1127. .name = "xs_sys_tcu_cfg",
  1128. .id = SC7280_SLAVE_TCU,
  1129. .channels = 1,
  1130. .buswidth = 8,
  1131. .num_links = 0,
  1132. };
  1133. static struct qcom_icc_node qhs_llcc = {
  1134. .name = "qhs_llcc",
  1135. .id = SC7280_SLAVE_LLCC_CFG,
  1136. .channels = 1,
  1137. .buswidth = 4,
  1138. .num_links = 0,
  1139. };
  1140. static struct qcom_icc_node qns_gemnoc = {
  1141. .name = "qns_gemnoc",
  1142. .id = SC7280_SLAVE_GEM_NOC_CFG,
  1143. .channels = 1,
  1144. .buswidth = 4,
  1145. .num_links = 1,
  1146. .links = { SC7280_MASTER_GEM_NOC_CFG },
  1147. };
  1148. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  1149. .name = "qhs_mdsp_ms_mpu_cfg",
  1150. .id = SC7280_SLAVE_MSS_PROC_MS_MPU_CFG,
  1151. .channels = 1,
  1152. .buswidth = 4,
  1153. .num_links = 0,
  1154. };
  1155. static struct qcom_icc_node qhs_modem_ms_mpu_cfg = {
  1156. .name = "qhs_modem_ms_mpu_cfg",
  1157. .id = SC7280_SLAVE_MCDMA_MS_MPU_CFG,
  1158. .channels = 1,
  1159. .buswidth = 4,
  1160. .num_links = 0,
  1161. };
  1162. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1163. .name = "qns_gem_noc_cnoc",
  1164. .id = SC7280_SLAVE_GEM_NOC_CNOC,
  1165. .channels = 1,
  1166. .buswidth = 16,
  1167. .num_links = 1,
  1168. .links = { SC7280_MASTER_GEM_NOC_CNOC },
  1169. };
  1170. static struct qcom_icc_node qns_llcc = {
  1171. .name = "qns_llcc",
  1172. .id = SC7280_SLAVE_LLCC,
  1173. .channels = 2,
  1174. .buswidth = 16,
  1175. .num_links = 1,
  1176. .links = { SC7280_MASTER_LLCC },
  1177. };
  1178. static struct qcom_icc_node qns_pcie = {
  1179. .name = "qns_pcie",
  1180. .id = SC7280_SLAVE_MEM_NOC_PCIE_SNOC,
  1181. .channels = 1,
  1182. .buswidth = 8,
  1183. .num_links = 1,
  1184. .links = { SC7280_MASTER_GEM_NOC_PCIE_SNOC },
  1185. };
  1186. static struct qcom_icc_node srvc_even_gemnoc = {
  1187. .name = "srvc_even_gemnoc",
  1188. .id = SC7280_SLAVE_SERVICE_GEM_NOC_1,
  1189. .channels = 1,
  1190. .buswidth = 4,
  1191. .num_links = 0,
  1192. };
  1193. static struct qcom_icc_node srvc_odd_gemnoc = {
  1194. .name = "srvc_odd_gemnoc",
  1195. .id = SC7280_SLAVE_SERVICE_GEM_NOC_2,
  1196. .channels = 1,
  1197. .buswidth = 4,
  1198. .num_links = 0,
  1199. };
  1200. static struct qcom_icc_node srvc_sys_gemnoc = {
  1201. .name = "srvc_sys_gemnoc",
  1202. .id = SC7280_SLAVE_SERVICE_GEM_NOC,
  1203. .channels = 1,
  1204. .buswidth = 4,
  1205. .num_links = 0,
  1206. };
  1207. static struct qcom_icc_node qhs_lpass_core = {
  1208. .name = "qhs_lpass_core",
  1209. .id = SC7280_SLAVE_LPASS_CORE_CFG,
  1210. .channels = 1,
  1211. .buswidth = 4,
  1212. .num_links = 0,
  1213. };
  1214. static struct qcom_icc_node qhs_lpass_lpi = {
  1215. .name = "qhs_lpass_lpi",
  1216. .id = SC7280_SLAVE_LPASS_LPI_CFG,
  1217. .channels = 1,
  1218. .buswidth = 4,
  1219. .num_links = 0,
  1220. };
  1221. static struct qcom_icc_node qhs_lpass_mpu = {
  1222. .name = "qhs_lpass_mpu",
  1223. .id = SC7280_SLAVE_LPASS_MPU_CFG,
  1224. .channels = 1,
  1225. .buswidth = 4,
  1226. .num_links = 0,
  1227. };
  1228. static struct qcom_icc_node qhs_lpass_top = {
  1229. .name = "qhs_lpass_top",
  1230. .id = SC7280_SLAVE_LPASS_TOP_CFG,
  1231. .channels = 1,
  1232. .buswidth = 4,
  1233. .num_links = 0,
  1234. };
  1235. static struct qcom_icc_node srvc_niu_aml_noc = {
  1236. .name = "srvc_niu_aml_noc",
  1237. .id = SC7280_SLAVE_SERVICES_LPASS_AML_NOC,
  1238. .channels = 1,
  1239. .buswidth = 4,
  1240. .num_links = 0,
  1241. };
  1242. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1243. .name = "srvc_niu_lpass_agnoc",
  1244. .id = SC7280_SLAVE_SERVICE_LPASS_AG_NOC,
  1245. .channels = 1,
  1246. .buswidth = 4,
  1247. .num_links = 0,
  1248. };
  1249. static struct qcom_icc_node ebi = {
  1250. .name = "ebi",
  1251. .id = SC7280_SLAVE_EBI1,
  1252. .channels = 2,
  1253. .buswidth = 4,
  1254. .num_links = 0,
  1255. };
  1256. static struct qcom_icc_node qns_mem_noc_hf = {
  1257. .name = "qns_mem_noc_hf",
  1258. .id = SC7280_SLAVE_MNOC_HF_MEM_NOC,
  1259. .channels = 2,
  1260. .buswidth = 32,
  1261. .num_links = 1,
  1262. .links = { SC7280_MASTER_MNOC_HF_MEM_NOC },
  1263. };
  1264. static struct qcom_icc_node qns_mem_noc_sf = {
  1265. .name = "qns_mem_noc_sf",
  1266. .id = SC7280_SLAVE_MNOC_SF_MEM_NOC,
  1267. .channels = 1,
  1268. .buswidth = 32,
  1269. .num_links = 1,
  1270. .links = { SC7280_MASTER_MNOC_SF_MEM_NOC },
  1271. };
  1272. static struct qcom_icc_node srvc_mnoc = {
  1273. .name = "srvc_mnoc",
  1274. .id = SC7280_SLAVE_SERVICE_MNOC,
  1275. .channels = 1,
  1276. .buswidth = 4,
  1277. .num_links = 0,
  1278. };
  1279. static struct qcom_icc_node qns_nsp_gemnoc = {
  1280. .name = "qns_nsp_gemnoc",
  1281. .id = SC7280_SLAVE_CDSP_MEM_NOC,
  1282. .channels = 2,
  1283. .buswidth = 32,
  1284. .num_links = 1,
  1285. .links = { SC7280_MASTER_COMPUTE_NOC },
  1286. };
  1287. static struct qcom_icc_node service_nsp_noc = {
  1288. .name = "service_nsp_noc",
  1289. .id = SC7280_SLAVE_SERVICE_NSP_NOC,
  1290. .channels = 1,
  1291. .buswidth = 4,
  1292. .num_links = 0,
  1293. };
  1294. static struct qcom_icc_node qns_gemnoc_gc = {
  1295. .name = "qns_gemnoc_gc",
  1296. .id = SC7280_SLAVE_SNOC_GEM_NOC_GC,
  1297. .channels = 1,
  1298. .buswidth = 8,
  1299. .num_links = 1,
  1300. .links = { SC7280_MASTER_SNOC_GC_MEM_NOC },
  1301. };
  1302. static struct qcom_icc_node qns_gemnoc_sf = {
  1303. .name = "qns_gemnoc_sf",
  1304. .id = SC7280_SLAVE_SNOC_GEM_NOC_SF,
  1305. .channels = 1,
  1306. .buswidth = 16,
  1307. .num_links = 1,
  1308. .links = { SC7280_MASTER_SNOC_SF_MEM_NOC },
  1309. };
  1310. static struct qcom_icc_node srvc_snoc = {
  1311. .name = "srvc_snoc",
  1312. .id = SC7280_SLAVE_SERVICE_SNOC,
  1313. .channels = 1,
  1314. .buswidth = 4,
  1315. .num_links = 0,
  1316. };
  1317. static struct qcom_icc_bcm bcm_acv = {
  1318. .name = "ACV",
  1319. .enable_mask = BIT(3),
  1320. .num_nodes = 1,
  1321. .nodes = { &ebi },
  1322. };
  1323. static struct qcom_icc_bcm bcm_ce0 = {
  1324. .name = "CE0",
  1325. .num_nodes = 1,
  1326. .nodes = { &qxm_crypto },
  1327. };
  1328. static struct qcom_icc_bcm bcm_cn0 = {
  1329. .name = "CN0",
  1330. .keepalive = true,
  1331. .num_nodes = 2,
  1332. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
  1333. };
  1334. static struct qcom_icc_bcm bcm_cn1 = {
  1335. .name = "CN1",
  1336. .num_nodes = 47,
  1337. .nodes = { &qnm_cnoc3_cnoc2, &xm_qdss_dap,
  1338. &qhs_ahb2phy0, &qhs_ahb2phy1,
  1339. &qhs_camera_cfg, &qhs_clk_ctl,
  1340. &qhs_compute_cfg, &qhs_cpr_cx,
  1341. &qhs_cpr_mx, &qhs_crypto0_cfg,
  1342. &qhs_cx_rdpm, &qhs_dcc_cfg,
  1343. &qhs_display_cfg, &qhs_gpuss_cfg,
  1344. &qhs_hwkm, &qhs_imem_cfg,
  1345. &qhs_ipa, &qhs_ipc_router,
  1346. &qhs_mss_cfg, &qhs_mx_rdpm,
  1347. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1348. &qhs_pimem_cfg, &qhs_pka_wrapper_cfg,
  1349. &qhs_pmu_wrapper_cfg, &qhs_qdss_cfg,
  1350. &qhs_qup0, &qhs_qup1,
  1351. &qhs_security, &qhs_tcsr,
  1352. &qhs_tlmm, &qhs_ufs_mem_cfg, &qhs_usb2,
  1353. &qhs_usb3_0, &qhs_venus_cfg,
  1354. &qhs_vsense_ctrl_cfg, &qns_a1_noc_cfg,
  1355. &qns_a2_noc_cfg, &qns_cnoc2_cnoc3,
  1356. &qns_mnoc_cfg, &qns_snoc_cfg,
  1357. &qnm_cnoc2_cnoc3, &qhs_aoss,
  1358. &qhs_apss, &qns_cnoc3_cnoc2,
  1359. &qns_cnoc_a2noc, &qns_ddrss_cfg },
  1360. };
  1361. static struct qcom_icc_bcm bcm_cn2 = {
  1362. .name = "CN2",
  1363. .num_nodes = 6,
  1364. .nodes = { &qhs_lpass_cfg, &qhs_pdm,
  1365. &qhs_qspi, &qhs_sdc1,
  1366. &qhs_sdc2, &qhs_sdc4 },
  1367. };
  1368. static struct qcom_icc_bcm bcm_co0 = {
  1369. .name = "CO0",
  1370. .num_nodes = 1,
  1371. .nodes = { &qns_nsp_gemnoc },
  1372. };
  1373. static struct qcom_icc_bcm bcm_co3 = {
  1374. .name = "CO3",
  1375. .num_nodes = 1,
  1376. .nodes = { &qxm_nsp },
  1377. };
  1378. static struct qcom_icc_bcm bcm_mc0 = {
  1379. .name = "MC0",
  1380. .keepalive = true,
  1381. .num_nodes = 1,
  1382. .nodes = { &ebi },
  1383. };
  1384. static struct qcom_icc_bcm bcm_mm0 = {
  1385. .name = "MM0",
  1386. .keepalive = true,
  1387. .num_nodes = 1,
  1388. .nodes = { &qns_mem_noc_hf },
  1389. };
  1390. static struct qcom_icc_bcm bcm_mm1 = {
  1391. .name = "MM1",
  1392. .num_nodes = 2,
  1393. .nodes = { &qxm_camnoc_hf, &qxm_mdp0 },
  1394. };
  1395. static struct qcom_icc_bcm bcm_mm4 = {
  1396. .name = "MM4",
  1397. .num_nodes = 1,
  1398. .nodes = { &qns_mem_noc_sf },
  1399. };
  1400. static struct qcom_icc_bcm bcm_mm5 = {
  1401. .name = "MM5",
  1402. .num_nodes = 3,
  1403. .nodes = { &qnm_video0, &qxm_camnoc_icp,
  1404. &qxm_camnoc_sf },
  1405. };
  1406. static struct qcom_icc_bcm bcm_qup0 = {
  1407. .name = "QUP0",
  1408. .vote_scale = 1,
  1409. .num_nodes = 1,
  1410. .nodes = { &qup0_core_slave },
  1411. };
  1412. static struct qcom_icc_bcm bcm_qup1 = {
  1413. .name = "QUP1",
  1414. .vote_scale = 1,
  1415. .num_nodes = 1,
  1416. .nodes = { &qup1_core_slave },
  1417. };
  1418. static struct qcom_icc_bcm bcm_sh0 = {
  1419. .name = "SH0",
  1420. .keepalive = true,
  1421. .num_nodes = 1,
  1422. .nodes = { &qns_llcc },
  1423. };
  1424. static struct qcom_icc_bcm bcm_sh2 = {
  1425. .name = "SH2",
  1426. .num_nodes = 2,
  1427. .nodes = { &alm_gpu_tcu, &alm_sys_tcu },
  1428. };
  1429. static struct qcom_icc_bcm bcm_sh3 = {
  1430. .name = "SH3",
  1431. .num_nodes = 1,
  1432. .nodes = { &qnm_cmpnoc },
  1433. };
  1434. static struct qcom_icc_bcm bcm_sh4 = {
  1435. .name = "SH4",
  1436. .num_nodes = 1,
  1437. .nodes = { &chm_apps },
  1438. };
  1439. static struct qcom_icc_bcm bcm_sn0 = {
  1440. .name = "SN0",
  1441. .keepalive = true,
  1442. .num_nodes = 1,
  1443. .nodes = { &qns_gemnoc_sf },
  1444. };
  1445. static struct qcom_icc_bcm bcm_sn2 = {
  1446. .name = "SN2",
  1447. .num_nodes = 1,
  1448. .nodes = { &qns_gemnoc_gc },
  1449. };
  1450. static struct qcom_icc_bcm bcm_sn3 = {
  1451. .name = "SN3",
  1452. .num_nodes = 1,
  1453. .nodes = { &qxs_pimem },
  1454. };
  1455. static struct qcom_icc_bcm bcm_sn4 = {
  1456. .name = "SN4",
  1457. .num_nodes = 1,
  1458. .nodes = { &xs_qdss_stm },
  1459. };
  1460. static struct qcom_icc_bcm bcm_sn5 = {
  1461. .name = "SN5",
  1462. .num_nodes = 1,
  1463. .nodes = { &xm_pcie3_0 },
  1464. };
  1465. static struct qcom_icc_bcm bcm_sn6 = {
  1466. .name = "SN6",
  1467. .num_nodes = 1,
  1468. .nodes = { &xm_pcie3_1 },
  1469. };
  1470. static struct qcom_icc_bcm bcm_sn7 = {
  1471. .name = "SN7",
  1472. .num_nodes = 1,
  1473. .nodes = { &qnm_aggre1_noc },
  1474. };
  1475. static struct qcom_icc_bcm bcm_sn8 = {
  1476. .name = "SN8",
  1477. .num_nodes = 1,
  1478. .nodes = { &qnm_aggre2_noc },
  1479. };
  1480. static struct qcom_icc_bcm bcm_sn14 = {
  1481. .name = "SN14",
  1482. .num_nodes = 1,
  1483. .nodes = { &qns_pcie_mem_noc },
  1484. };
  1485. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1486. &bcm_sn5,
  1487. &bcm_sn6,
  1488. &bcm_sn14,
  1489. };
  1490. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1491. [MASTER_QSPI_0] = &qhm_qspi,
  1492. [MASTER_QUP_0] = &qhm_qup0,
  1493. [MASTER_QUP_1] = &qhm_qup1,
  1494. [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
  1495. [MASTER_PCIE_0] = &xm_pcie3_0,
  1496. [MASTER_PCIE_1] = &xm_pcie3_1,
  1497. [MASTER_SDCC_1] = &xm_sdc1,
  1498. [MASTER_SDCC_2] = &xm_sdc2,
  1499. [MASTER_SDCC_4] = &xm_sdc4,
  1500. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1501. [MASTER_USB2] = &xm_usb2,
  1502. [MASTER_USB3_0] = &xm_usb3_0,
  1503. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1504. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1505. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1506. };
  1507. static const struct regmap_config sc7280_aggre1_noc_regmap_config = {
  1508. .reg_bits = 32,
  1509. .reg_stride = 4,
  1510. .val_bits = 32,
  1511. .max_register = 0x1c080,
  1512. .fast_io = true,
  1513. };
  1514. static const struct qcom_icc_desc sc7280_aggre1_noc = {
  1515. .config = &sc7280_aggre1_noc_regmap_config,
  1516. .nodes = aggre1_noc_nodes,
  1517. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1518. .bcms = aggre1_noc_bcms,
  1519. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1520. .qos_clks_required = true,
  1521. };
  1522. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1523. &bcm_ce0,
  1524. };
  1525. static const struct regmap_config sc7280_aggre2_noc_regmap_config = {
  1526. .reg_bits = 32,
  1527. .reg_stride = 4,
  1528. .val_bits = 32,
  1529. .max_register = 0x2b080,
  1530. .fast_io = true,
  1531. };
  1532. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1533. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1534. [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
  1535. [MASTER_CNOC_A2NOC] = &qnm_cnoc_datapath,
  1536. [MASTER_CRYPTO] = &qxm_crypto,
  1537. [MASTER_IPA] = &qxm_ipa,
  1538. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1539. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1540. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1541. };
  1542. static const struct qcom_icc_desc sc7280_aggre2_noc = {
  1543. .config = &sc7280_aggre2_noc_regmap_config,
  1544. .nodes = aggre2_noc_nodes,
  1545. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1546. .bcms = aggre2_noc_bcms,
  1547. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1548. .qos_clks_required = true,
  1549. };
  1550. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1551. &bcm_qup0,
  1552. &bcm_qup1,
  1553. };
  1554. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1555. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1556. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1557. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1558. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1559. };
  1560. static const struct qcom_icc_desc sc7280_clk_virt = {
  1561. .nodes = clk_virt_nodes,
  1562. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1563. .bcms = clk_virt_bcms,
  1564. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1565. };
  1566. static struct qcom_icc_bcm * const cnoc2_bcms[] = {
  1567. &bcm_cn1,
  1568. &bcm_cn2,
  1569. };
  1570. static struct qcom_icc_node * const cnoc2_nodes[] = {
  1571. [MASTER_CNOC3_CNOC2] = &qnm_cnoc3_cnoc2,
  1572. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1573. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1574. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1575. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1576. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1577. [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
  1578. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1579. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1580. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1581. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1582. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1583. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1584. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1585. [SLAVE_HWKM] = &qhs_hwkm,
  1586. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1587. [SLAVE_IPA_CFG] = &qhs_ipa,
  1588. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1589. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1590. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1591. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1592. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1593. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1594. [SLAVE_PDM] = &qhs_pdm,
  1595. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1596. [SLAVE_PKA_WRAPPER_CFG] = &qhs_pka_wrapper_cfg,
  1597. [SLAVE_PMU_WRAPPER_CFG] = &qhs_pmu_wrapper_cfg,
  1598. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1599. [SLAVE_QSPI_0] = &qhs_qspi,
  1600. [SLAVE_QUP_0] = &qhs_qup0,
  1601. [SLAVE_QUP_1] = &qhs_qup1,
  1602. [SLAVE_SDCC_1] = &qhs_sdc1,
  1603. [SLAVE_SDCC_2] = &qhs_sdc2,
  1604. [SLAVE_SDCC_4] = &qhs_sdc4,
  1605. [SLAVE_SECURITY] = &qhs_security,
  1606. [SLAVE_TCSR] = &qhs_tcsr,
  1607. [SLAVE_TLMM] = &qhs_tlmm,
  1608. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1609. [SLAVE_USB2] = &qhs_usb2,
  1610. [SLAVE_USB3_0] = &qhs_usb3_0,
  1611. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1612. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1613. [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
  1614. [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
  1615. [SLAVE_CNOC2_CNOC3] = &qns_cnoc2_cnoc3,
  1616. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1617. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1618. };
  1619. static const struct regmap_config sc7280_cnoc2_regmap_config = {
  1620. .reg_bits = 32,
  1621. .reg_stride = 4,
  1622. .val_bits = 32,
  1623. .max_register = 0x1000,
  1624. .fast_io = true,
  1625. };
  1626. static const struct qcom_icc_desc sc7280_cnoc2 = {
  1627. .config = &sc7280_cnoc2_regmap_config,
  1628. .nodes = cnoc2_nodes,
  1629. .num_nodes = ARRAY_SIZE(cnoc2_nodes),
  1630. .bcms = cnoc2_bcms,
  1631. .num_bcms = ARRAY_SIZE(cnoc2_bcms),
  1632. };
  1633. static struct qcom_icc_bcm * const cnoc3_bcms[] = {
  1634. &bcm_cn0,
  1635. &bcm_cn1,
  1636. &bcm_sn3,
  1637. &bcm_sn4,
  1638. };
  1639. static struct qcom_icc_node * const cnoc3_nodes[] = {
  1640. [MASTER_CNOC2_CNOC3] = &qnm_cnoc2_cnoc3,
  1641. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1642. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1643. [SLAVE_AOSS] = &qhs_aoss,
  1644. [SLAVE_APPSS] = &qhs_apss,
  1645. [SLAVE_CNOC3_CNOC2] = &qns_cnoc3_cnoc2,
  1646. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1647. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1648. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  1649. [SLAVE_IMEM] = &qxs_imem,
  1650. [SLAVE_PIMEM] = &qxs_pimem,
  1651. [SLAVE_PCIE_0] = &xs_pcie_0,
  1652. [SLAVE_PCIE_1] = &xs_pcie_1,
  1653. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1654. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1655. };
  1656. static const struct regmap_config sc7280_cnoc3_regmap_config = {
  1657. .reg_bits = 32,
  1658. .reg_stride = 4,
  1659. .val_bits = 32,
  1660. .max_register = 0x1000,
  1661. .fast_io = true,
  1662. };
  1663. static const struct qcom_icc_desc sc7280_cnoc3 = {
  1664. .config = &sc7280_cnoc3_regmap_config,
  1665. .nodes = cnoc3_nodes,
  1666. .num_nodes = ARRAY_SIZE(cnoc3_nodes),
  1667. .bcms = cnoc3_bcms,
  1668. .num_bcms = ARRAY_SIZE(cnoc3_bcms),
  1669. };
  1670. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1671. };
  1672. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1673. [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
  1674. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1675. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  1676. };
  1677. static const struct regmap_config sc7280_dc_noc_regmap_config = {
  1678. .reg_bits = 32,
  1679. .reg_stride = 4,
  1680. .val_bits = 32,
  1681. .max_register = 0x5080,
  1682. .fast_io = true,
  1683. };
  1684. static const struct qcom_icc_desc sc7280_dc_noc = {
  1685. .config = &sc7280_dc_noc_regmap_config,
  1686. .nodes = dc_noc_nodes,
  1687. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1688. .bcms = dc_noc_bcms,
  1689. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1690. };
  1691. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1692. &bcm_sh0,
  1693. &bcm_sh2,
  1694. &bcm_sh3,
  1695. &bcm_sh4,
  1696. };
  1697. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1698. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1699. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1700. [MASTER_APPSS_PROC] = &chm_apps,
  1701. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1702. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  1703. [MASTER_GFX3D] = &qnm_gpu,
  1704. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1705. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1706. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1707. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1708. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1709. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1710. [SLAVE_MCDMA_MS_MPU_CFG] = &qhs_modem_ms_mpu_cfg,
  1711. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1712. [SLAVE_LLCC] = &qns_llcc,
  1713. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1714. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  1715. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  1716. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  1717. };
  1718. static const struct regmap_config sc7280_gem_noc_regmap_config = {
  1719. .reg_bits = 32,
  1720. .reg_stride = 4,
  1721. .val_bits = 32,
  1722. .max_register = 0xe2200,
  1723. .fast_io = true,
  1724. };
  1725. static const struct qcom_icc_desc sc7280_gem_noc = {
  1726. .config = &sc7280_gem_noc_regmap_config,
  1727. .nodes = gem_noc_nodes,
  1728. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1729. .bcms = gem_noc_bcms,
  1730. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1731. };
  1732. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1733. };
  1734. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1735. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  1736. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  1737. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  1738. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  1739. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  1740. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  1741. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  1742. };
  1743. static const struct regmap_config sc7280_lpass_ag_noc_regmap_config = {
  1744. .reg_bits = 32,
  1745. .reg_stride = 4,
  1746. .val_bits = 32,
  1747. .max_register = 0xf080,
  1748. .fast_io = true,
  1749. };
  1750. static const struct qcom_icc_desc sc7280_lpass_ag_noc = {
  1751. .config = &sc7280_lpass_ag_noc_regmap_config,
  1752. .nodes = lpass_ag_noc_nodes,
  1753. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1754. .bcms = lpass_ag_noc_bcms,
  1755. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1756. };
  1757. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1758. &bcm_acv,
  1759. &bcm_mc0,
  1760. };
  1761. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1762. [MASTER_LLCC] = &llcc_mc,
  1763. [SLAVE_EBI1] = &ebi,
  1764. };
  1765. static const struct regmap_config sc7280_mc_virt_regmap_config = {
  1766. .reg_bits = 32,
  1767. .reg_stride = 4,
  1768. .val_bits = 32,
  1769. .max_register = 0x4,
  1770. .fast_io = true,
  1771. };
  1772. static const struct qcom_icc_desc sc7280_mc_virt = {
  1773. .config = &sc7280_mc_virt_regmap_config,
  1774. .nodes = mc_virt_nodes,
  1775. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1776. .bcms = mc_virt_bcms,
  1777. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1778. };
  1779. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1780. &bcm_mm0,
  1781. &bcm_mm1,
  1782. &bcm_mm4,
  1783. &bcm_mm5,
  1784. };
  1785. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1786. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  1787. [MASTER_VIDEO_P0] = &qnm_video0,
  1788. [MASTER_VIDEO_PROC] = &qnm_video_cpu,
  1789. [MASTER_CAMNOC_HF] = &qxm_camnoc_hf,
  1790. [MASTER_CAMNOC_ICP] = &qxm_camnoc_icp,
  1791. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1792. [MASTER_MDP0] = &qxm_mdp0,
  1793. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1794. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1795. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1796. };
  1797. static const struct regmap_config sc7280_mmss_noc_regmap_config = {
  1798. .reg_bits = 32,
  1799. .reg_stride = 4,
  1800. .val_bits = 32,
  1801. .max_register = 0x1e080,
  1802. .fast_io = true,
  1803. };
  1804. static const struct qcom_icc_desc sc7280_mmss_noc = {
  1805. .config = &sc7280_mmss_noc_regmap_config,
  1806. .nodes = mmss_noc_nodes,
  1807. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1808. .bcms = mmss_noc_bcms,
  1809. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1810. };
  1811. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1812. &bcm_co0,
  1813. &bcm_co3,
  1814. };
  1815. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1816. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  1817. [MASTER_CDSP_PROC] = &qxm_nsp,
  1818. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1819. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  1820. };
  1821. static const struct regmap_config sc7280_nsp_noc_regmap_config = {
  1822. .reg_bits = 32,
  1823. .reg_stride = 4,
  1824. .val_bits = 32,
  1825. .max_register = 0x10000,
  1826. .fast_io = true,
  1827. };
  1828. static const struct qcom_icc_desc sc7280_nsp_noc = {
  1829. .config = &sc7280_nsp_noc_regmap_config,
  1830. .nodes = nsp_noc_nodes,
  1831. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1832. .bcms = nsp_noc_bcms,
  1833. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1834. };
  1835. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1836. &bcm_sn0,
  1837. &bcm_sn2,
  1838. &bcm_sn7,
  1839. &bcm_sn8,
  1840. };
  1841. static struct qcom_icc_node * const system_noc_nodes[] = {
  1842. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1843. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1844. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  1845. [MASTER_PIMEM] = &qxm_pimem,
  1846. [MASTER_GIC] = &xm_gic,
  1847. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1848. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1849. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1850. };
  1851. static const struct regmap_config sc7280_system_noc_regmap_config = {
  1852. .reg_bits = 32,
  1853. .reg_stride = 4,
  1854. .val_bits = 32,
  1855. .max_register = 0x15480,
  1856. .fast_io = true,
  1857. };
  1858. static const struct qcom_icc_desc sc7280_system_noc = {
  1859. .config = &sc7280_system_noc_regmap_config,
  1860. .nodes = system_noc_nodes,
  1861. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1862. .bcms = system_noc_bcms,
  1863. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1864. };
  1865. static const struct of_device_id qnoc_of_match[] = {
  1866. { .compatible = "qcom,sc7280-aggre1-noc",
  1867. .data = &sc7280_aggre1_noc},
  1868. { .compatible = "qcom,sc7280-aggre2-noc",
  1869. .data = &sc7280_aggre2_noc},
  1870. { .compatible = "qcom,sc7280-clk-virt",
  1871. .data = &sc7280_clk_virt},
  1872. { .compatible = "qcom,sc7280-cnoc2",
  1873. .data = &sc7280_cnoc2},
  1874. { .compatible = "qcom,sc7280-cnoc3",
  1875. .data = &sc7280_cnoc3},
  1876. { .compatible = "qcom,sc7280-dc-noc",
  1877. .data = &sc7280_dc_noc},
  1878. { .compatible = "qcom,sc7280-gem-noc",
  1879. .data = &sc7280_gem_noc},
  1880. { .compatible = "qcom,sc7280-lpass-ag-noc",
  1881. .data = &sc7280_lpass_ag_noc},
  1882. { .compatible = "qcom,sc7280-mc-virt",
  1883. .data = &sc7280_mc_virt},
  1884. { .compatible = "qcom,sc7280-mmss-noc",
  1885. .data = &sc7280_mmss_noc},
  1886. { .compatible = "qcom,sc7280-nsp-noc",
  1887. .data = &sc7280_nsp_noc},
  1888. { .compatible = "qcom,sc7280-system-noc",
  1889. .data = &sc7280_system_noc},
  1890. { }
  1891. };
  1892. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1893. static struct platform_driver qnoc_driver = {
  1894. .probe = qcom_icc_rpmh_probe,
  1895. .remove_new = qcom_icc_rpmh_remove,
  1896. .driver = {
  1897. .name = "qnoc-sc7280",
  1898. .of_match_table = qnoc_of_match,
  1899. .sync_state = icc_sync_state,
  1900. },
  1901. };
  1902. module_platform_driver(qnoc_driver);
  1903. MODULE_DESCRIPTION("SC7280 NoC driver");
  1904. MODULE_LICENSE("GPL v2");