sm8250.c 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. *
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sm8250.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #include "sm8250.h"
  16. static struct qcom_icc_node qhm_a1noc_cfg = {
  17. .name = "qhm_a1noc_cfg",
  18. .id = SM8250_MASTER_A1NOC_CFG,
  19. .channels = 1,
  20. .buswidth = 4,
  21. .num_links = 1,
  22. .links = { SM8250_SLAVE_SERVICE_A1NOC },
  23. };
  24. static struct qcom_icc_node qhm_qspi = {
  25. .name = "qhm_qspi",
  26. .id = SM8250_MASTER_QSPI_0,
  27. .channels = 1,
  28. .buswidth = 4,
  29. .num_links = 1,
  30. .links = { SM8250_A1NOC_SNOC_SLV },
  31. };
  32. static struct qcom_icc_node qhm_qup1 = {
  33. .name = "qhm_qup1",
  34. .id = SM8250_MASTER_QUP_1,
  35. .channels = 1,
  36. .buswidth = 4,
  37. .num_links = 1,
  38. .links = { SM8250_A1NOC_SNOC_SLV },
  39. };
  40. static struct qcom_icc_node qhm_qup2 = {
  41. .name = "qhm_qup2",
  42. .id = SM8250_MASTER_QUP_2,
  43. .channels = 1,
  44. .buswidth = 4,
  45. .num_links = 1,
  46. .links = { SM8250_A1NOC_SNOC_SLV },
  47. };
  48. static struct qcom_icc_node qhm_tsif = {
  49. .name = "qhm_tsif",
  50. .id = SM8250_MASTER_TSIF,
  51. .channels = 1,
  52. .buswidth = 4,
  53. .num_links = 1,
  54. .links = { SM8250_A1NOC_SNOC_SLV },
  55. };
  56. static struct qcom_icc_node xm_pcie3_modem = {
  57. .name = "xm_pcie3_modem",
  58. .id = SM8250_MASTER_PCIE_2,
  59. .channels = 1,
  60. .buswidth = 8,
  61. .num_links = 1,
  62. .links = { SM8250_SLAVE_ANOC_PCIE_GEM_NOC_1 },
  63. };
  64. static struct qcom_icc_node xm_sdc4 = {
  65. .name = "xm_sdc4",
  66. .id = SM8250_MASTER_SDCC_4,
  67. .channels = 1,
  68. .buswidth = 8,
  69. .num_links = 1,
  70. .links = { SM8250_A1NOC_SNOC_SLV },
  71. };
  72. static struct qcom_icc_node xm_ufs_mem = {
  73. .name = "xm_ufs_mem",
  74. .id = SM8250_MASTER_UFS_MEM,
  75. .channels = 1,
  76. .buswidth = 8,
  77. .num_links = 1,
  78. .links = { SM8250_A1NOC_SNOC_SLV },
  79. };
  80. static struct qcom_icc_node xm_usb3_0 = {
  81. .name = "xm_usb3_0",
  82. .id = SM8250_MASTER_USB3,
  83. .channels = 1,
  84. .buswidth = 8,
  85. .num_links = 1,
  86. .links = { SM8250_A1NOC_SNOC_SLV },
  87. };
  88. static struct qcom_icc_node xm_usb3_1 = {
  89. .name = "xm_usb3_1",
  90. .id = SM8250_MASTER_USB3_1,
  91. .channels = 1,
  92. .buswidth = 8,
  93. .num_links = 1,
  94. .links = { SM8250_A1NOC_SNOC_SLV },
  95. };
  96. static struct qcom_icc_node qhm_a2noc_cfg = {
  97. .name = "qhm_a2noc_cfg",
  98. .id = SM8250_MASTER_A2NOC_CFG,
  99. .channels = 1,
  100. .buswidth = 4,
  101. .num_links = 1,
  102. .links = { SM8250_SLAVE_SERVICE_A2NOC },
  103. };
  104. static struct qcom_icc_node qhm_qdss_bam = {
  105. .name = "qhm_qdss_bam",
  106. .id = SM8250_MASTER_QDSS_BAM,
  107. .channels = 1,
  108. .buswidth = 4,
  109. .num_links = 1,
  110. .links = { SM8250_A2NOC_SNOC_SLV },
  111. };
  112. static struct qcom_icc_node qhm_qup0 = {
  113. .name = "qhm_qup0",
  114. .id = SM8250_MASTER_QUP_0,
  115. .channels = 1,
  116. .buswidth = 4,
  117. .num_links = 1,
  118. .links = { SM8250_A2NOC_SNOC_SLV },
  119. };
  120. static struct qcom_icc_node qnm_cnoc = {
  121. .name = "qnm_cnoc",
  122. .id = SM8250_MASTER_CNOC_A2NOC,
  123. .channels = 1,
  124. .buswidth = 8,
  125. .num_links = 1,
  126. .links = { SM8250_A2NOC_SNOC_SLV },
  127. };
  128. static struct qcom_icc_node qxm_crypto = {
  129. .name = "qxm_crypto",
  130. .id = SM8250_MASTER_CRYPTO_CORE_0,
  131. .channels = 1,
  132. .buswidth = 8,
  133. .num_links = 1,
  134. .links = { SM8250_A2NOC_SNOC_SLV },
  135. };
  136. static struct qcom_icc_node qxm_ipa = {
  137. .name = "qxm_ipa",
  138. .id = SM8250_MASTER_IPA,
  139. .channels = 1,
  140. .buswidth = 8,
  141. .num_links = 1,
  142. .links = { SM8250_A2NOC_SNOC_SLV },
  143. };
  144. static struct qcom_icc_node xm_pcie3_0 = {
  145. .name = "xm_pcie3_0",
  146. .id = SM8250_MASTER_PCIE,
  147. .channels = 1,
  148. .buswidth = 8,
  149. .num_links = 1,
  150. .links = { SM8250_SLAVE_ANOC_PCIE_GEM_NOC },
  151. };
  152. static struct qcom_icc_node xm_pcie3_1 = {
  153. .name = "xm_pcie3_1",
  154. .id = SM8250_MASTER_PCIE_1,
  155. .channels = 1,
  156. .buswidth = 8,
  157. .num_links = 1,
  158. .links = { SM8250_SLAVE_ANOC_PCIE_GEM_NOC },
  159. };
  160. static struct qcom_icc_node xm_qdss_etr = {
  161. .name = "xm_qdss_etr",
  162. .id = SM8250_MASTER_QDSS_ETR,
  163. .channels = 1,
  164. .buswidth = 8,
  165. .num_links = 1,
  166. .links = { SM8250_A2NOC_SNOC_SLV },
  167. };
  168. static struct qcom_icc_node xm_sdc2 = {
  169. .name = "xm_sdc2",
  170. .id = SM8250_MASTER_SDCC_2,
  171. .channels = 1,
  172. .buswidth = 8,
  173. .num_links = 1,
  174. .links = { SM8250_A2NOC_SNOC_SLV },
  175. };
  176. static struct qcom_icc_node xm_ufs_card = {
  177. .name = "xm_ufs_card",
  178. .id = SM8250_MASTER_UFS_CARD,
  179. .channels = 1,
  180. .buswidth = 8,
  181. .num_links = 1,
  182. .links = { SM8250_A2NOC_SNOC_SLV },
  183. };
  184. static struct qcom_icc_node qnm_npu = {
  185. .name = "qnm_npu",
  186. .id = SM8250_MASTER_NPU,
  187. .channels = 2,
  188. .buswidth = 32,
  189. .num_links = 1,
  190. .links = { SM8250_SLAVE_CDSP_MEM_NOC },
  191. };
  192. static struct qcom_icc_node qnm_snoc = {
  193. .name = "qnm_snoc",
  194. .id = SM8250_SNOC_CNOC_MAS,
  195. .channels = 1,
  196. .buswidth = 8,
  197. .num_links = 49,
  198. .links = { SM8250_SLAVE_CDSP_CFG,
  199. SM8250_SLAVE_CAMERA_CFG,
  200. SM8250_SLAVE_TLMM_SOUTH,
  201. SM8250_SLAVE_TLMM_NORTH,
  202. SM8250_SLAVE_SDCC_4,
  203. SM8250_SLAVE_TLMM_WEST,
  204. SM8250_SLAVE_SDCC_2,
  205. SM8250_SLAVE_CNOC_MNOC_CFG,
  206. SM8250_SLAVE_UFS_MEM_CFG,
  207. SM8250_SLAVE_SNOC_CFG,
  208. SM8250_SLAVE_PDM,
  209. SM8250_SLAVE_CX_RDPM,
  210. SM8250_SLAVE_PCIE_1_CFG,
  211. SM8250_SLAVE_A2NOC_CFG,
  212. SM8250_SLAVE_QDSS_CFG,
  213. SM8250_SLAVE_DISPLAY_CFG,
  214. SM8250_SLAVE_PCIE_2_CFG,
  215. SM8250_SLAVE_TCSR,
  216. SM8250_SLAVE_DCC_CFG,
  217. SM8250_SLAVE_CNOC_DDRSS,
  218. SM8250_SLAVE_IPC_ROUTER_CFG,
  219. SM8250_SLAVE_PCIE_0_CFG,
  220. SM8250_SLAVE_RBCPR_MMCX_CFG,
  221. SM8250_SLAVE_NPU_CFG,
  222. SM8250_SLAVE_AHB2PHY_SOUTH,
  223. SM8250_SLAVE_AHB2PHY_NORTH,
  224. SM8250_SLAVE_GRAPHICS_3D_CFG,
  225. SM8250_SLAVE_VENUS_CFG,
  226. SM8250_SLAVE_TSIF,
  227. SM8250_SLAVE_IPA_CFG,
  228. SM8250_SLAVE_IMEM_CFG,
  229. SM8250_SLAVE_USB3,
  230. SM8250_SLAVE_SERVICE_CNOC,
  231. SM8250_SLAVE_UFS_CARD_CFG,
  232. SM8250_SLAVE_USB3_1,
  233. SM8250_SLAVE_LPASS,
  234. SM8250_SLAVE_RBCPR_CX_CFG,
  235. SM8250_SLAVE_A1NOC_CFG,
  236. SM8250_SLAVE_AOSS,
  237. SM8250_SLAVE_PRNG,
  238. SM8250_SLAVE_VSENSE_CTRL_CFG,
  239. SM8250_SLAVE_QSPI_0,
  240. SM8250_SLAVE_CRYPTO_0_CFG,
  241. SM8250_SLAVE_PIMEM_CFG,
  242. SM8250_SLAVE_RBCPR_MX_CFG,
  243. SM8250_SLAVE_QUP_0,
  244. SM8250_SLAVE_QUP_1,
  245. SM8250_SLAVE_QUP_2,
  246. SM8250_SLAVE_CLK_CTL
  247. },
  248. };
  249. static struct qcom_icc_node xm_qdss_dap = {
  250. .name = "xm_qdss_dap",
  251. .id = SM8250_MASTER_QDSS_DAP,
  252. .channels = 1,
  253. .buswidth = 8,
  254. .num_links = 50,
  255. .links = { SM8250_SLAVE_CDSP_CFG,
  256. SM8250_SLAVE_CAMERA_CFG,
  257. SM8250_SLAVE_TLMM_SOUTH,
  258. SM8250_SLAVE_TLMM_NORTH,
  259. SM8250_SLAVE_SDCC_4,
  260. SM8250_SLAVE_TLMM_WEST,
  261. SM8250_SLAVE_SDCC_2,
  262. SM8250_SLAVE_CNOC_MNOC_CFG,
  263. SM8250_SLAVE_UFS_MEM_CFG,
  264. SM8250_SLAVE_SNOC_CFG,
  265. SM8250_SLAVE_PDM,
  266. SM8250_SLAVE_CX_RDPM,
  267. SM8250_SLAVE_PCIE_1_CFG,
  268. SM8250_SLAVE_A2NOC_CFG,
  269. SM8250_SLAVE_QDSS_CFG,
  270. SM8250_SLAVE_DISPLAY_CFG,
  271. SM8250_SLAVE_PCIE_2_CFG,
  272. SM8250_SLAVE_TCSR,
  273. SM8250_SLAVE_DCC_CFG,
  274. SM8250_SLAVE_CNOC_DDRSS,
  275. SM8250_SLAVE_IPC_ROUTER_CFG,
  276. SM8250_SLAVE_CNOC_A2NOC,
  277. SM8250_SLAVE_PCIE_0_CFG,
  278. SM8250_SLAVE_RBCPR_MMCX_CFG,
  279. SM8250_SLAVE_NPU_CFG,
  280. SM8250_SLAVE_AHB2PHY_SOUTH,
  281. SM8250_SLAVE_AHB2PHY_NORTH,
  282. SM8250_SLAVE_GRAPHICS_3D_CFG,
  283. SM8250_SLAVE_VENUS_CFG,
  284. SM8250_SLAVE_TSIF,
  285. SM8250_SLAVE_IPA_CFG,
  286. SM8250_SLAVE_IMEM_CFG,
  287. SM8250_SLAVE_USB3,
  288. SM8250_SLAVE_SERVICE_CNOC,
  289. SM8250_SLAVE_UFS_CARD_CFG,
  290. SM8250_SLAVE_USB3_1,
  291. SM8250_SLAVE_LPASS,
  292. SM8250_SLAVE_RBCPR_CX_CFG,
  293. SM8250_SLAVE_A1NOC_CFG,
  294. SM8250_SLAVE_AOSS,
  295. SM8250_SLAVE_PRNG,
  296. SM8250_SLAVE_VSENSE_CTRL_CFG,
  297. SM8250_SLAVE_QSPI_0,
  298. SM8250_SLAVE_CRYPTO_0_CFG,
  299. SM8250_SLAVE_PIMEM_CFG,
  300. SM8250_SLAVE_RBCPR_MX_CFG,
  301. SM8250_SLAVE_QUP_0,
  302. SM8250_SLAVE_QUP_1,
  303. SM8250_SLAVE_QUP_2,
  304. SM8250_SLAVE_CLK_CTL
  305. },
  306. };
  307. static struct qcom_icc_node qhm_cnoc_dc_noc = {
  308. .name = "qhm_cnoc_dc_noc",
  309. .id = SM8250_MASTER_CNOC_DC_NOC,
  310. .channels = 1,
  311. .buswidth = 4,
  312. .num_links = 2,
  313. .links = { SM8250_SLAVE_GEM_NOC_CFG,
  314. SM8250_SLAVE_LLCC_CFG
  315. },
  316. };
  317. static struct qcom_icc_node alm_gpu_tcu = {
  318. .name = "alm_gpu_tcu",
  319. .id = SM8250_MASTER_GPU_TCU,
  320. .channels = 1,
  321. .buswidth = 8,
  322. .num_links = 2,
  323. .links = { SM8250_SLAVE_LLCC,
  324. SM8250_SLAVE_GEM_NOC_SNOC
  325. },
  326. };
  327. static struct qcom_icc_node alm_sys_tcu = {
  328. .name = "alm_sys_tcu",
  329. .id = SM8250_MASTER_SYS_TCU,
  330. .channels = 1,
  331. .buswidth = 8,
  332. .num_links = 2,
  333. .links = { SM8250_SLAVE_LLCC,
  334. SM8250_SLAVE_GEM_NOC_SNOC
  335. },
  336. };
  337. static struct qcom_icc_node chm_apps = {
  338. .name = "chm_apps",
  339. .id = SM8250_MASTER_AMPSS_M0,
  340. .channels = 2,
  341. .buswidth = 32,
  342. .num_links = 3,
  343. .links = { SM8250_SLAVE_LLCC,
  344. SM8250_SLAVE_GEM_NOC_SNOC,
  345. SM8250_SLAVE_MEM_NOC_PCIE_SNOC
  346. },
  347. };
  348. static struct qcom_icc_node qhm_gemnoc_cfg = {
  349. .name = "qhm_gemnoc_cfg",
  350. .id = SM8250_MASTER_GEM_NOC_CFG,
  351. .channels = 1,
  352. .buswidth = 4,
  353. .num_links = 3,
  354. .links = { SM8250_SLAVE_SERVICE_GEM_NOC_2,
  355. SM8250_SLAVE_SERVICE_GEM_NOC_1,
  356. SM8250_SLAVE_SERVICE_GEM_NOC
  357. },
  358. };
  359. static struct qcom_icc_node qnm_cmpnoc = {
  360. .name = "qnm_cmpnoc",
  361. .id = SM8250_MASTER_COMPUTE_NOC,
  362. .channels = 2,
  363. .buswidth = 32,
  364. .num_links = 2,
  365. .links = { SM8250_SLAVE_LLCC,
  366. SM8250_SLAVE_GEM_NOC_SNOC
  367. },
  368. };
  369. static struct qcom_icc_node qnm_gpu = {
  370. .name = "qnm_gpu",
  371. .id = SM8250_MASTER_GRAPHICS_3D,
  372. .channels = 2,
  373. .buswidth = 32,
  374. .num_links = 2,
  375. .links = { SM8250_SLAVE_LLCC,
  376. SM8250_SLAVE_GEM_NOC_SNOC },
  377. };
  378. static struct qcom_icc_node qnm_mnoc_hf = {
  379. .name = "qnm_mnoc_hf",
  380. .id = SM8250_MASTER_MNOC_HF_MEM_NOC,
  381. .channels = 2,
  382. .buswidth = 32,
  383. .num_links = 1,
  384. .links = { SM8250_SLAVE_LLCC },
  385. };
  386. static struct qcom_icc_node qnm_mnoc_sf = {
  387. .name = "qnm_mnoc_sf",
  388. .id = SM8250_MASTER_MNOC_SF_MEM_NOC,
  389. .channels = 2,
  390. .buswidth = 32,
  391. .num_links = 2,
  392. .links = { SM8250_SLAVE_LLCC,
  393. SM8250_SLAVE_GEM_NOC_SNOC
  394. },
  395. };
  396. static struct qcom_icc_node qnm_pcie = {
  397. .name = "qnm_pcie",
  398. .id = SM8250_MASTER_ANOC_PCIE_GEM_NOC,
  399. .channels = 1,
  400. .buswidth = 16,
  401. .num_links = 2,
  402. .links = { SM8250_SLAVE_LLCC,
  403. SM8250_SLAVE_GEM_NOC_SNOC
  404. },
  405. };
  406. static struct qcom_icc_node qnm_snoc_gc = {
  407. .name = "qnm_snoc_gc",
  408. .id = SM8250_MASTER_SNOC_GC_MEM_NOC,
  409. .channels = 1,
  410. .buswidth = 8,
  411. .num_links = 1,
  412. .links = { SM8250_SLAVE_LLCC },
  413. };
  414. static struct qcom_icc_node qnm_snoc_sf = {
  415. .name = "qnm_snoc_sf",
  416. .id = SM8250_MASTER_SNOC_SF_MEM_NOC,
  417. .channels = 1,
  418. .buswidth = 16,
  419. .num_links = 3,
  420. .links = { SM8250_SLAVE_LLCC,
  421. SM8250_SLAVE_GEM_NOC_SNOC,
  422. SM8250_SLAVE_MEM_NOC_PCIE_SNOC
  423. },
  424. };
  425. static struct qcom_icc_node llcc_mc = {
  426. .name = "llcc_mc",
  427. .id = SM8250_MASTER_LLCC,
  428. .channels = 4,
  429. .buswidth = 4,
  430. .num_links = 1,
  431. .links = { SM8250_SLAVE_EBI_CH0 },
  432. };
  433. static struct qcom_icc_node qhm_mnoc_cfg = {
  434. .name = "qhm_mnoc_cfg",
  435. .id = SM8250_MASTER_CNOC_MNOC_CFG,
  436. .channels = 1,
  437. .buswidth = 4,
  438. .num_links = 1,
  439. .links = { SM8250_SLAVE_SERVICE_MNOC },
  440. };
  441. static struct qcom_icc_node qnm_camnoc_hf = {
  442. .name = "qnm_camnoc_hf",
  443. .id = SM8250_MASTER_CAMNOC_HF,
  444. .channels = 2,
  445. .buswidth = 32,
  446. .num_links = 1,
  447. .links = { SM8250_SLAVE_MNOC_HF_MEM_NOC },
  448. };
  449. static struct qcom_icc_node qnm_camnoc_icp = {
  450. .name = "qnm_camnoc_icp",
  451. .id = SM8250_MASTER_CAMNOC_ICP,
  452. .channels = 1,
  453. .buswidth = 8,
  454. .num_links = 1,
  455. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  456. };
  457. static struct qcom_icc_node qnm_camnoc_sf = {
  458. .name = "qnm_camnoc_sf",
  459. .id = SM8250_MASTER_CAMNOC_SF,
  460. .channels = 2,
  461. .buswidth = 32,
  462. .num_links = 1,
  463. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  464. };
  465. static struct qcom_icc_node qnm_video0 = {
  466. .name = "qnm_video0",
  467. .id = SM8250_MASTER_VIDEO_P0,
  468. .channels = 1,
  469. .buswidth = 32,
  470. .num_links = 1,
  471. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  472. };
  473. static struct qcom_icc_node qnm_video1 = {
  474. .name = "qnm_video1",
  475. .id = SM8250_MASTER_VIDEO_P1,
  476. .channels = 1,
  477. .buswidth = 32,
  478. .num_links = 1,
  479. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  480. };
  481. static struct qcom_icc_node qnm_video_cvp = {
  482. .name = "qnm_video_cvp",
  483. .id = SM8250_MASTER_VIDEO_PROC,
  484. .channels = 1,
  485. .buswidth = 32,
  486. .num_links = 1,
  487. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  488. };
  489. static struct qcom_icc_node qxm_mdp0 = {
  490. .name = "qxm_mdp0",
  491. .id = SM8250_MASTER_MDP_PORT0,
  492. .channels = 1,
  493. .buswidth = 32,
  494. .num_links = 1,
  495. .links = { SM8250_SLAVE_MNOC_HF_MEM_NOC },
  496. };
  497. static struct qcom_icc_node qxm_mdp1 = {
  498. .name = "qxm_mdp1",
  499. .id = SM8250_MASTER_MDP_PORT1,
  500. .channels = 1,
  501. .buswidth = 32,
  502. .num_links = 1,
  503. .links = { SM8250_SLAVE_MNOC_HF_MEM_NOC },
  504. };
  505. static struct qcom_icc_node qxm_rot = {
  506. .name = "qxm_rot",
  507. .id = SM8250_MASTER_ROTATOR,
  508. .channels = 1,
  509. .buswidth = 32,
  510. .num_links = 1,
  511. .links = { SM8250_SLAVE_MNOC_SF_MEM_NOC },
  512. };
  513. static struct qcom_icc_node amm_npu_sys = {
  514. .name = "amm_npu_sys",
  515. .id = SM8250_MASTER_NPU_SYS,
  516. .channels = 4,
  517. .buswidth = 32,
  518. .num_links = 1,
  519. .links = { SM8250_SLAVE_NPU_COMPUTE_NOC },
  520. };
  521. static struct qcom_icc_node amm_npu_sys_cdp_w = {
  522. .name = "amm_npu_sys_cdp_w",
  523. .id = SM8250_MASTER_NPU_CDP,
  524. .channels = 2,
  525. .buswidth = 16,
  526. .num_links = 1,
  527. .links = { SM8250_SLAVE_NPU_COMPUTE_NOC },
  528. };
  529. static struct qcom_icc_node qhm_cfg = {
  530. .name = "qhm_cfg",
  531. .id = SM8250_MASTER_NPU_NOC_CFG,
  532. .channels = 1,
  533. .buswidth = 4,
  534. .num_links = 9,
  535. .links = { SM8250_SLAVE_SERVICE_NPU_NOC,
  536. SM8250_SLAVE_ISENSE_CFG,
  537. SM8250_SLAVE_NPU_LLM_CFG,
  538. SM8250_SLAVE_NPU_INT_DMA_BWMON_CFG,
  539. SM8250_SLAVE_NPU_CP,
  540. SM8250_SLAVE_NPU_TCM,
  541. SM8250_SLAVE_NPU_CAL_DP0,
  542. SM8250_SLAVE_NPU_CAL_DP1,
  543. SM8250_SLAVE_NPU_DPM
  544. },
  545. };
  546. static struct qcom_icc_node qhm_snoc_cfg = {
  547. .name = "qhm_snoc_cfg",
  548. .id = SM8250_MASTER_SNOC_CFG,
  549. .channels = 1,
  550. .buswidth = 4,
  551. .num_links = 1,
  552. .links = { SM8250_SLAVE_SERVICE_SNOC },
  553. };
  554. static struct qcom_icc_node qnm_aggre1_noc = {
  555. .name = "qnm_aggre1_noc",
  556. .id = SM8250_A1NOC_SNOC_MAS,
  557. .channels = 1,
  558. .buswidth = 16,
  559. .num_links = 1,
  560. .links = { SM8250_SLAVE_SNOC_GEM_NOC_SF },
  561. };
  562. static struct qcom_icc_node qnm_aggre2_noc = {
  563. .name = "qnm_aggre2_noc",
  564. .id = SM8250_A2NOC_SNOC_MAS,
  565. .channels = 1,
  566. .buswidth = 16,
  567. .num_links = 1,
  568. .links = { SM8250_SLAVE_SNOC_GEM_NOC_SF },
  569. };
  570. static struct qcom_icc_node qnm_gemnoc = {
  571. .name = "qnm_gemnoc",
  572. .id = SM8250_MASTER_GEM_NOC_SNOC,
  573. .channels = 1,
  574. .buswidth = 16,
  575. .num_links = 6,
  576. .links = { SM8250_SLAVE_PIMEM,
  577. SM8250_SLAVE_OCIMEM,
  578. SM8250_SLAVE_APPSS,
  579. SM8250_SNOC_CNOC_SLV,
  580. SM8250_SLAVE_TCU,
  581. SM8250_SLAVE_QDSS_STM
  582. },
  583. };
  584. static struct qcom_icc_node qnm_gemnoc_pcie = {
  585. .name = "qnm_gemnoc_pcie",
  586. .id = SM8250_MASTER_GEM_NOC_PCIE_SNOC,
  587. .channels = 1,
  588. .buswidth = 8,
  589. .num_links = 3,
  590. .links = { SM8250_SLAVE_PCIE_2,
  591. SM8250_SLAVE_PCIE_0,
  592. SM8250_SLAVE_PCIE_1
  593. },
  594. };
  595. static struct qcom_icc_node qxm_pimem = {
  596. .name = "qxm_pimem",
  597. .id = SM8250_MASTER_PIMEM,
  598. .channels = 1,
  599. .buswidth = 8,
  600. .num_links = 1,
  601. .links = { SM8250_SLAVE_SNOC_GEM_NOC_GC },
  602. };
  603. static struct qcom_icc_node xm_gic = {
  604. .name = "xm_gic",
  605. .id = SM8250_MASTER_GIC,
  606. .channels = 1,
  607. .buswidth = 8,
  608. .num_links = 1,
  609. .links = { SM8250_SLAVE_SNOC_GEM_NOC_GC },
  610. };
  611. static struct qcom_icc_node qns_a1noc_snoc = {
  612. .name = "qns_a1noc_snoc",
  613. .id = SM8250_A1NOC_SNOC_SLV,
  614. .channels = 1,
  615. .buswidth = 16,
  616. .num_links = 1,
  617. .links = { SM8250_A1NOC_SNOC_MAS },
  618. };
  619. static struct qcom_icc_node qns_pcie_modem_mem_noc = {
  620. .name = "qns_pcie_modem_mem_noc",
  621. .id = SM8250_SLAVE_ANOC_PCIE_GEM_NOC_1,
  622. .channels = 1,
  623. .buswidth = 16,
  624. .num_links = 1,
  625. .links = { SM8250_MASTER_ANOC_PCIE_GEM_NOC },
  626. };
  627. static struct qcom_icc_node srvc_aggre1_noc = {
  628. .name = "srvc_aggre1_noc",
  629. .id = SM8250_SLAVE_SERVICE_A1NOC,
  630. .channels = 1,
  631. .buswidth = 4,
  632. };
  633. static struct qcom_icc_node qns_a2noc_snoc = {
  634. .name = "qns_a2noc_snoc",
  635. .id = SM8250_A2NOC_SNOC_SLV,
  636. .channels = 1,
  637. .buswidth = 16,
  638. .num_links = 1,
  639. .links = { SM8250_A2NOC_SNOC_MAS },
  640. };
  641. static struct qcom_icc_node qns_pcie_mem_noc = {
  642. .name = "qns_pcie_mem_noc",
  643. .id = SM8250_SLAVE_ANOC_PCIE_GEM_NOC,
  644. .channels = 1,
  645. .buswidth = 16,
  646. .num_links = 1,
  647. .links = { SM8250_MASTER_ANOC_PCIE_GEM_NOC },
  648. };
  649. static struct qcom_icc_node srvc_aggre2_noc = {
  650. .name = "srvc_aggre2_noc",
  651. .id = SM8250_SLAVE_SERVICE_A2NOC,
  652. .channels = 1,
  653. .buswidth = 4,
  654. };
  655. static struct qcom_icc_node qns_cdsp_mem_noc = {
  656. .name = "qns_cdsp_mem_noc",
  657. .id = SM8250_SLAVE_CDSP_MEM_NOC,
  658. .channels = 2,
  659. .buswidth = 32,
  660. .num_links = 1,
  661. .links = { SM8250_MASTER_COMPUTE_NOC },
  662. };
  663. static struct qcom_icc_node qhs_a1_noc_cfg = {
  664. .name = "qhs_a1_noc_cfg",
  665. .id = SM8250_SLAVE_A1NOC_CFG,
  666. .channels = 1,
  667. .buswidth = 4,
  668. .num_links = 1,
  669. .links = { SM8250_MASTER_A1NOC_CFG },
  670. };
  671. static struct qcom_icc_node qhs_a2_noc_cfg = {
  672. .name = "qhs_a2_noc_cfg",
  673. .id = SM8250_SLAVE_A2NOC_CFG,
  674. .channels = 1,
  675. .buswidth = 4,
  676. .num_links = 1,
  677. .links = { SM8250_MASTER_A2NOC_CFG },
  678. };
  679. static struct qcom_icc_node qhs_ahb2phy0 = {
  680. .name = "qhs_ahb2phy0",
  681. .id = SM8250_SLAVE_AHB2PHY_SOUTH,
  682. .channels = 1,
  683. .buswidth = 4,
  684. };
  685. static struct qcom_icc_node qhs_ahb2phy1 = {
  686. .name = "qhs_ahb2phy1",
  687. .id = SM8250_SLAVE_AHB2PHY_NORTH,
  688. .channels = 1,
  689. .buswidth = 4,
  690. };
  691. static struct qcom_icc_node qhs_aoss = {
  692. .name = "qhs_aoss",
  693. .id = SM8250_SLAVE_AOSS,
  694. .channels = 1,
  695. .buswidth = 4,
  696. };
  697. static struct qcom_icc_node qhs_camera_cfg = {
  698. .name = "qhs_camera_cfg",
  699. .id = SM8250_SLAVE_CAMERA_CFG,
  700. .channels = 1,
  701. .buswidth = 4,
  702. };
  703. static struct qcom_icc_node qhs_clk_ctl = {
  704. .name = "qhs_clk_ctl",
  705. .id = SM8250_SLAVE_CLK_CTL,
  706. .channels = 1,
  707. .buswidth = 4,
  708. };
  709. static struct qcom_icc_node qhs_compute_dsp = {
  710. .name = "qhs_compute_dsp",
  711. .id = SM8250_SLAVE_CDSP_CFG,
  712. .channels = 1,
  713. .buswidth = 4,
  714. };
  715. static struct qcom_icc_node qhs_cpr_cx = {
  716. .name = "qhs_cpr_cx",
  717. .id = SM8250_SLAVE_RBCPR_CX_CFG,
  718. .channels = 1,
  719. .buswidth = 4,
  720. };
  721. static struct qcom_icc_node qhs_cpr_mmcx = {
  722. .name = "qhs_cpr_mmcx",
  723. .id = SM8250_SLAVE_RBCPR_MMCX_CFG,
  724. .channels = 1,
  725. .buswidth = 4,
  726. };
  727. static struct qcom_icc_node qhs_cpr_mx = {
  728. .name = "qhs_cpr_mx",
  729. .id = SM8250_SLAVE_RBCPR_MX_CFG,
  730. .channels = 1,
  731. .buswidth = 4,
  732. };
  733. static struct qcom_icc_node qhs_crypto0_cfg = {
  734. .name = "qhs_crypto0_cfg",
  735. .id = SM8250_SLAVE_CRYPTO_0_CFG,
  736. .channels = 1,
  737. .buswidth = 4,
  738. };
  739. static struct qcom_icc_node qhs_cx_rdpm = {
  740. .name = "qhs_cx_rdpm",
  741. .id = SM8250_SLAVE_CX_RDPM,
  742. .channels = 1,
  743. .buswidth = 4,
  744. };
  745. static struct qcom_icc_node qhs_dcc_cfg = {
  746. .name = "qhs_dcc_cfg",
  747. .id = SM8250_SLAVE_DCC_CFG,
  748. .channels = 1,
  749. .buswidth = 4,
  750. };
  751. static struct qcom_icc_node qhs_ddrss_cfg = {
  752. .name = "qhs_ddrss_cfg",
  753. .id = SM8250_SLAVE_CNOC_DDRSS,
  754. .channels = 1,
  755. .buswidth = 4,
  756. .num_links = 1,
  757. .links = { SM8250_MASTER_CNOC_DC_NOC },
  758. };
  759. static struct qcom_icc_node qhs_display_cfg = {
  760. .name = "qhs_display_cfg",
  761. .id = SM8250_SLAVE_DISPLAY_CFG,
  762. .channels = 1,
  763. .buswidth = 4,
  764. };
  765. static struct qcom_icc_node qhs_gpuss_cfg = {
  766. .name = "qhs_gpuss_cfg",
  767. .id = SM8250_SLAVE_GRAPHICS_3D_CFG,
  768. .channels = 1,
  769. .buswidth = 8,
  770. };
  771. static struct qcom_icc_node qhs_imem_cfg = {
  772. .name = "qhs_imem_cfg",
  773. .id = SM8250_SLAVE_IMEM_CFG,
  774. .channels = 1,
  775. .buswidth = 4,
  776. };
  777. static struct qcom_icc_node qhs_ipa = {
  778. .name = "qhs_ipa",
  779. .id = SM8250_SLAVE_IPA_CFG,
  780. .channels = 1,
  781. .buswidth = 4,
  782. };
  783. static struct qcom_icc_node qhs_ipc_router = {
  784. .name = "qhs_ipc_router",
  785. .id = SM8250_SLAVE_IPC_ROUTER_CFG,
  786. .channels = 1,
  787. .buswidth = 4,
  788. };
  789. static struct qcom_icc_node qhs_lpass_cfg = {
  790. .name = "qhs_lpass_cfg",
  791. .id = SM8250_SLAVE_LPASS,
  792. .channels = 1,
  793. .buswidth = 4,
  794. };
  795. static struct qcom_icc_node qhs_mnoc_cfg = {
  796. .name = "qhs_mnoc_cfg",
  797. .id = SM8250_SLAVE_CNOC_MNOC_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. .num_links = 1,
  801. .links = { SM8250_MASTER_CNOC_MNOC_CFG },
  802. };
  803. static struct qcom_icc_node qhs_npu_cfg = {
  804. .name = "qhs_npu_cfg",
  805. .id = SM8250_SLAVE_NPU_CFG,
  806. .channels = 1,
  807. .buswidth = 4,
  808. .num_links = 1,
  809. .links = { SM8250_MASTER_NPU_NOC_CFG },
  810. };
  811. static struct qcom_icc_node qhs_pcie0_cfg = {
  812. .name = "qhs_pcie0_cfg",
  813. .id = SM8250_SLAVE_PCIE_0_CFG,
  814. .channels = 1,
  815. .buswidth = 4,
  816. };
  817. static struct qcom_icc_node qhs_pcie1_cfg = {
  818. .name = "qhs_pcie1_cfg",
  819. .id = SM8250_SLAVE_PCIE_1_CFG,
  820. .channels = 1,
  821. .buswidth = 4,
  822. };
  823. static struct qcom_icc_node qhs_pcie_modem_cfg = {
  824. .name = "qhs_pcie_modem_cfg",
  825. .id = SM8250_SLAVE_PCIE_2_CFG,
  826. .channels = 1,
  827. .buswidth = 4,
  828. };
  829. static struct qcom_icc_node qhs_pdm = {
  830. .name = "qhs_pdm",
  831. .id = SM8250_SLAVE_PDM,
  832. .channels = 1,
  833. .buswidth = 4,
  834. };
  835. static struct qcom_icc_node qhs_pimem_cfg = {
  836. .name = "qhs_pimem_cfg",
  837. .id = SM8250_SLAVE_PIMEM_CFG,
  838. .channels = 1,
  839. .buswidth = 4,
  840. };
  841. static struct qcom_icc_node qhs_prng = {
  842. .name = "qhs_prng",
  843. .id = SM8250_SLAVE_PRNG,
  844. .channels = 1,
  845. .buswidth = 4,
  846. };
  847. static struct qcom_icc_node qhs_qdss_cfg = {
  848. .name = "qhs_qdss_cfg",
  849. .id = SM8250_SLAVE_QDSS_CFG,
  850. .channels = 1,
  851. .buswidth = 4,
  852. };
  853. static struct qcom_icc_node qhs_qspi = {
  854. .name = "qhs_qspi",
  855. .id = SM8250_SLAVE_QSPI_0,
  856. .channels = 1,
  857. .buswidth = 4,
  858. };
  859. static struct qcom_icc_node qhs_qup0 = {
  860. .name = "qhs_qup0",
  861. .id = SM8250_SLAVE_QUP_0,
  862. .channels = 1,
  863. .buswidth = 4,
  864. };
  865. static struct qcom_icc_node qhs_qup1 = {
  866. .name = "qhs_qup1",
  867. .id = SM8250_SLAVE_QUP_1,
  868. .channels = 1,
  869. .buswidth = 4,
  870. };
  871. static struct qcom_icc_node qhs_qup2 = {
  872. .name = "qhs_qup2",
  873. .id = SM8250_SLAVE_QUP_2,
  874. .channels = 1,
  875. .buswidth = 4,
  876. };
  877. static struct qcom_icc_node qhs_sdc2 = {
  878. .name = "qhs_sdc2",
  879. .id = SM8250_SLAVE_SDCC_2,
  880. .channels = 1,
  881. .buswidth = 4,
  882. };
  883. static struct qcom_icc_node qhs_sdc4 = {
  884. .name = "qhs_sdc4",
  885. .id = SM8250_SLAVE_SDCC_4,
  886. .channels = 1,
  887. .buswidth = 4,
  888. };
  889. static struct qcom_icc_node qhs_snoc_cfg = {
  890. .name = "qhs_snoc_cfg",
  891. .id = SM8250_SLAVE_SNOC_CFG,
  892. .channels = 1,
  893. .buswidth = 4,
  894. .num_links = 1,
  895. .links = { SM8250_MASTER_SNOC_CFG },
  896. };
  897. static struct qcom_icc_node qhs_tcsr = {
  898. .name = "qhs_tcsr",
  899. .id = SM8250_SLAVE_TCSR,
  900. .channels = 1,
  901. .buswidth = 4,
  902. };
  903. static struct qcom_icc_node qhs_tlmm0 = {
  904. .name = "qhs_tlmm0",
  905. .id = SM8250_SLAVE_TLMM_NORTH,
  906. .channels = 1,
  907. .buswidth = 4,
  908. };
  909. static struct qcom_icc_node qhs_tlmm1 = {
  910. .name = "qhs_tlmm1",
  911. .id = SM8250_SLAVE_TLMM_SOUTH,
  912. .channels = 1,
  913. .buswidth = 4,
  914. };
  915. static struct qcom_icc_node qhs_tlmm2 = {
  916. .name = "qhs_tlmm2",
  917. .id = SM8250_SLAVE_TLMM_WEST,
  918. .channels = 1,
  919. .buswidth = 4,
  920. };
  921. static struct qcom_icc_node qhs_tsif = {
  922. .name = "qhs_tsif",
  923. .id = SM8250_SLAVE_TSIF,
  924. .channels = 1,
  925. .buswidth = 4,
  926. };
  927. static struct qcom_icc_node qhs_ufs_card_cfg = {
  928. .name = "qhs_ufs_card_cfg",
  929. .id = SM8250_SLAVE_UFS_CARD_CFG,
  930. .channels = 1,
  931. .buswidth = 4,
  932. };
  933. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  934. .name = "qhs_ufs_mem_cfg",
  935. .id = SM8250_SLAVE_UFS_MEM_CFG,
  936. .channels = 1,
  937. .buswidth = 4,
  938. };
  939. static struct qcom_icc_node qhs_usb3_0 = {
  940. .name = "qhs_usb3_0",
  941. .id = SM8250_SLAVE_USB3,
  942. .channels = 1,
  943. .buswidth = 4,
  944. };
  945. static struct qcom_icc_node qhs_usb3_1 = {
  946. .name = "qhs_usb3_1",
  947. .id = SM8250_SLAVE_USB3_1,
  948. .channels = 1,
  949. .buswidth = 4,
  950. };
  951. static struct qcom_icc_node qhs_venus_cfg = {
  952. .name = "qhs_venus_cfg",
  953. .id = SM8250_SLAVE_VENUS_CFG,
  954. .channels = 1,
  955. .buswidth = 4,
  956. };
  957. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  958. .name = "qhs_vsense_ctrl_cfg",
  959. .id = SM8250_SLAVE_VSENSE_CTRL_CFG,
  960. .channels = 1,
  961. .buswidth = 4,
  962. };
  963. static struct qcom_icc_node qns_cnoc_a2noc = {
  964. .name = "qns_cnoc_a2noc",
  965. .id = SM8250_SLAVE_CNOC_A2NOC,
  966. .channels = 1,
  967. .buswidth = 8,
  968. .num_links = 1,
  969. .links = { SM8250_MASTER_CNOC_A2NOC },
  970. };
  971. static struct qcom_icc_node srvc_cnoc = {
  972. .name = "srvc_cnoc",
  973. .id = SM8250_SLAVE_SERVICE_CNOC,
  974. .channels = 1,
  975. .buswidth = 4,
  976. };
  977. static struct qcom_icc_node qhs_llcc = {
  978. .name = "qhs_llcc",
  979. .id = SM8250_SLAVE_LLCC_CFG,
  980. .channels = 1,
  981. .buswidth = 4,
  982. };
  983. static struct qcom_icc_node qhs_memnoc = {
  984. .name = "qhs_memnoc",
  985. .id = SM8250_SLAVE_GEM_NOC_CFG,
  986. .channels = 1,
  987. .buswidth = 4,
  988. .num_links = 1,
  989. .links = { SM8250_MASTER_GEM_NOC_CFG },
  990. };
  991. static struct qcom_icc_node qns_gem_noc_snoc = {
  992. .name = "qns_gem_noc_snoc",
  993. .id = SM8250_SLAVE_GEM_NOC_SNOC,
  994. .channels = 1,
  995. .buswidth = 16,
  996. .num_links = 1,
  997. .links = { SM8250_MASTER_GEM_NOC_SNOC },
  998. };
  999. static struct qcom_icc_node qns_llcc = {
  1000. .name = "qns_llcc",
  1001. .id = SM8250_SLAVE_LLCC,
  1002. .channels = 4,
  1003. .buswidth = 16,
  1004. .num_links = 1,
  1005. .links = { SM8250_MASTER_LLCC },
  1006. };
  1007. static struct qcom_icc_node qns_sys_pcie = {
  1008. .name = "qns_sys_pcie",
  1009. .id = SM8250_SLAVE_MEM_NOC_PCIE_SNOC,
  1010. .channels = 1,
  1011. .buswidth = 8,
  1012. .num_links = 1,
  1013. .links = { SM8250_MASTER_GEM_NOC_PCIE_SNOC },
  1014. };
  1015. static struct qcom_icc_node srvc_even_gemnoc = {
  1016. .name = "srvc_even_gemnoc",
  1017. .id = SM8250_SLAVE_SERVICE_GEM_NOC_1,
  1018. .channels = 1,
  1019. .buswidth = 4,
  1020. };
  1021. static struct qcom_icc_node srvc_odd_gemnoc = {
  1022. .name = "srvc_odd_gemnoc",
  1023. .id = SM8250_SLAVE_SERVICE_GEM_NOC_2,
  1024. .channels = 1,
  1025. .buswidth = 4,
  1026. };
  1027. static struct qcom_icc_node srvc_sys_gemnoc = {
  1028. .name = "srvc_sys_gemnoc",
  1029. .id = SM8250_SLAVE_SERVICE_GEM_NOC,
  1030. .channels = 1,
  1031. .buswidth = 4,
  1032. };
  1033. static struct qcom_icc_node ebi = {
  1034. .name = "ebi",
  1035. .id = SM8250_SLAVE_EBI_CH0,
  1036. .channels = 4,
  1037. .buswidth = 4,
  1038. };
  1039. static struct qcom_icc_node qns_mem_noc_hf = {
  1040. .name = "qns_mem_noc_hf",
  1041. .id = SM8250_SLAVE_MNOC_HF_MEM_NOC,
  1042. .channels = 2,
  1043. .buswidth = 32,
  1044. .num_links = 1,
  1045. .links = { SM8250_MASTER_MNOC_HF_MEM_NOC },
  1046. };
  1047. static struct qcom_icc_node qns_mem_noc_sf = {
  1048. .name = "qns_mem_noc_sf",
  1049. .id = SM8250_SLAVE_MNOC_SF_MEM_NOC,
  1050. .channels = 2,
  1051. .buswidth = 32,
  1052. .num_links = 1,
  1053. .links = { SM8250_MASTER_MNOC_SF_MEM_NOC },
  1054. };
  1055. static struct qcom_icc_node srvc_mnoc = {
  1056. .name = "srvc_mnoc",
  1057. .id = SM8250_SLAVE_SERVICE_MNOC,
  1058. .channels = 1,
  1059. .buswidth = 4,
  1060. };
  1061. static struct qcom_icc_node qhs_cal_dp0 = {
  1062. .name = "qhs_cal_dp0",
  1063. .id = SM8250_SLAVE_NPU_CAL_DP0,
  1064. .channels = 1,
  1065. .buswidth = 4,
  1066. };
  1067. static struct qcom_icc_node qhs_cal_dp1 = {
  1068. .name = "qhs_cal_dp1",
  1069. .id = SM8250_SLAVE_NPU_CAL_DP1,
  1070. .channels = 1,
  1071. .buswidth = 4,
  1072. };
  1073. static struct qcom_icc_node qhs_cp = {
  1074. .name = "qhs_cp",
  1075. .id = SM8250_SLAVE_NPU_CP,
  1076. .channels = 1,
  1077. .buswidth = 4,
  1078. };
  1079. static struct qcom_icc_node qhs_dma_bwmon = {
  1080. .name = "qhs_dma_bwmon",
  1081. .id = SM8250_SLAVE_NPU_INT_DMA_BWMON_CFG,
  1082. .channels = 1,
  1083. .buswidth = 4,
  1084. };
  1085. static struct qcom_icc_node qhs_dpm = {
  1086. .name = "qhs_dpm",
  1087. .id = SM8250_SLAVE_NPU_DPM,
  1088. .channels = 1,
  1089. .buswidth = 4,
  1090. };
  1091. static struct qcom_icc_node qhs_isense = {
  1092. .name = "qhs_isense",
  1093. .id = SM8250_SLAVE_ISENSE_CFG,
  1094. .channels = 1,
  1095. .buswidth = 4,
  1096. };
  1097. static struct qcom_icc_node qhs_llm = {
  1098. .name = "qhs_llm",
  1099. .id = SM8250_SLAVE_NPU_LLM_CFG,
  1100. .channels = 1,
  1101. .buswidth = 4,
  1102. };
  1103. static struct qcom_icc_node qhs_tcm = {
  1104. .name = "qhs_tcm",
  1105. .id = SM8250_SLAVE_NPU_TCM,
  1106. .channels = 1,
  1107. .buswidth = 4,
  1108. };
  1109. static struct qcom_icc_node qns_npu_sys = {
  1110. .name = "qns_npu_sys",
  1111. .id = SM8250_SLAVE_NPU_COMPUTE_NOC,
  1112. .channels = 2,
  1113. .buswidth = 32,
  1114. };
  1115. static struct qcom_icc_node srvc_noc = {
  1116. .name = "srvc_noc",
  1117. .id = SM8250_SLAVE_SERVICE_NPU_NOC,
  1118. .channels = 1,
  1119. .buswidth = 4,
  1120. };
  1121. static struct qcom_icc_node qhs_apss = {
  1122. .name = "qhs_apss",
  1123. .id = SM8250_SLAVE_APPSS,
  1124. .channels = 1,
  1125. .buswidth = 8,
  1126. };
  1127. static struct qcom_icc_node qns_cnoc = {
  1128. .name = "qns_cnoc",
  1129. .id = SM8250_SNOC_CNOC_SLV,
  1130. .channels = 1,
  1131. .buswidth = 8,
  1132. .num_links = 1,
  1133. .links = { SM8250_SNOC_CNOC_MAS },
  1134. };
  1135. static struct qcom_icc_node qns_gemnoc_gc = {
  1136. .name = "qns_gemnoc_gc",
  1137. .id = SM8250_SLAVE_SNOC_GEM_NOC_GC,
  1138. .channels = 1,
  1139. .buswidth = 8,
  1140. .num_links = 1,
  1141. .links = { SM8250_MASTER_SNOC_GC_MEM_NOC },
  1142. };
  1143. static struct qcom_icc_node qns_gemnoc_sf = {
  1144. .name = "qns_gemnoc_sf",
  1145. .id = SM8250_SLAVE_SNOC_GEM_NOC_SF,
  1146. .channels = 1,
  1147. .buswidth = 16,
  1148. .num_links = 1,
  1149. .links = { SM8250_MASTER_SNOC_SF_MEM_NOC },
  1150. };
  1151. static struct qcom_icc_node qxs_imem = {
  1152. .name = "qxs_imem",
  1153. .id = SM8250_SLAVE_OCIMEM,
  1154. .channels = 1,
  1155. .buswidth = 8,
  1156. };
  1157. static struct qcom_icc_node qxs_pimem = {
  1158. .name = "qxs_pimem",
  1159. .id = SM8250_SLAVE_PIMEM,
  1160. .channels = 1,
  1161. .buswidth = 8,
  1162. };
  1163. static struct qcom_icc_node srvc_snoc = {
  1164. .name = "srvc_snoc",
  1165. .id = SM8250_SLAVE_SERVICE_SNOC,
  1166. .channels = 1,
  1167. .buswidth = 4,
  1168. };
  1169. static struct qcom_icc_node xs_pcie_0 = {
  1170. .name = "xs_pcie_0",
  1171. .id = SM8250_SLAVE_PCIE_0,
  1172. .channels = 1,
  1173. .buswidth = 8,
  1174. };
  1175. static struct qcom_icc_node xs_pcie_1 = {
  1176. .name = "xs_pcie_1",
  1177. .id = SM8250_SLAVE_PCIE_1,
  1178. .channels = 1,
  1179. .buswidth = 8,
  1180. };
  1181. static struct qcom_icc_node xs_pcie_modem = {
  1182. .name = "xs_pcie_modem",
  1183. .id = SM8250_SLAVE_PCIE_2,
  1184. .channels = 1,
  1185. .buswidth = 8,
  1186. };
  1187. static struct qcom_icc_node xs_qdss_stm = {
  1188. .name = "xs_qdss_stm",
  1189. .id = SM8250_SLAVE_QDSS_STM,
  1190. .channels = 1,
  1191. .buswidth = 4,
  1192. };
  1193. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1194. .name = "xs_sys_tcu_cfg",
  1195. .id = SM8250_SLAVE_TCU,
  1196. .channels = 1,
  1197. .buswidth = 8,
  1198. };
  1199. static struct qcom_icc_node qup0_core_master = {
  1200. .name = "qup0_core_master",
  1201. .id = SM8250_MASTER_QUP_CORE_0,
  1202. .channels = 1,
  1203. .buswidth = 4,
  1204. .num_links = 1,
  1205. .links = { SM8250_SLAVE_QUP_CORE_0 },
  1206. };
  1207. static struct qcom_icc_node qup1_core_master = {
  1208. .name = "qup1_core_master",
  1209. .id = SM8250_MASTER_QUP_CORE_1,
  1210. .channels = 1,
  1211. .buswidth = 4,
  1212. .num_links = 1,
  1213. .links = { SM8250_SLAVE_QUP_CORE_1 },
  1214. };
  1215. static struct qcom_icc_node qup2_core_master = {
  1216. .name = "qup2_core_master",
  1217. .id = SM8250_MASTER_QUP_CORE_2,
  1218. .channels = 1,
  1219. .buswidth = 4,
  1220. .num_links = 1,
  1221. .links = { SM8250_SLAVE_QUP_CORE_2 },
  1222. };
  1223. static struct qcom_icc_node qup0_core_slave = {
  1224. .name = "qup0_core_slave",
  1225. .id = SM8250_SLAVE_QUP_CORE_0,
  1226. .channels = 1,
  1227. .buswidth = 4,
  1228. };
  1229. static struct qcom_icc_node qup1_core_slave = {
  1230. .name = "qup1_core_slave",
  1231. .id = SM8250_SLAVE_QUP_CORE_1,
  1232. .channels = 1,
  1233. .buswidth = 4,
  1234. };
  1235. static struct qcom_icc_node qup2_core_slave = {
  1236. .name = "qup2_core_slave",
  1237. .id = SM8250_SLAVE_QUP_CORE_2,
  1238. .channels = 1,
  1239. .buswidth = 4,
  1240. };
  1241. static struct qcom_icc_bcm bcm_acv = {
  1242. .name = "ACV",
  1243. .enable_mask = BIT(3),
  1244. .keepalive = false,
  1245. .num_nodes = 1,
  1246. .nodes = { &ebi },
  1247. };
  1248. static struct qcom_icc_bcm bcm_mc0 = {
  1249. .name = "MC0",
  1250. .keepalive = true,
  1251. .num_nodes = 1,
  1252. .nodes = { &ebi },
  1253. };
  1254. static struct qcom_icc_bcm bcm_sh0 = {
  1255. .name = "SH0",
  1256. .keepalive = true,
  1257. .num_nodes = 1,
  1258. .nodes = { &qns_llcc },
  1259. };
  1260. static struct qcom_icc_bcm bcm_mm0 = {
  1261. .name = "MM0",
  1262. .keepalive = true,
  1263. .num_nodes = 1,
  1264. .nodes = { &qns_mem_noc_hf },
  1265. };
  1266. static struct qcom_icc_bcm bcm_ce0 = {
  1267. .name = "CE0",
  1268. .keepalive = false,
  1269. .num_nodes = 1,
  1270. .nodes = { &qxm_crypto },
  1271. };
  1272. static struct qcom_icc_bcm bcm_mm1 = {
  1273. .name = "MM1",
  1274. .keepalive = false,
  1275. .num_nodes = 3,
  1276. .nodes = { &qnm_camnoc_hf, &qxm_mdp0, &qxm_mdp1 },
  1277. };
  1278. static struct qcom_icc_bcm bcm_sh2 = {
  1279. .name = "SH2",
  1280. .keepalive = false,
  1281. .num_nodes = 2,
  1282. .nodes = { &alm_gpu_tcu, &alm_sys_tcu },
  1283. };
  1284. static struct qcom_icc_bcm bcm_mm2 = {
  1285. .name = "MM2",
  1286. .keepalive = false,
  1287. .num_nodes = 1,
  1288. .nodes = { &qns_mem_noc_sf },
  1289. };
  1290. static struct qcom_icc_bcm bcm_qup0 = {
  1291. .name = "QUP0",
  1292. .keepalive = false,
  1293. .num_nodes = 3,
  1294. .nodes = { &qup0_core_master, &qup1_core_master, &qup2_core_master },
  1295. };
  1296. static struct qcom_icc_bcm bcm_sh3 = {
  1297. .name = "SH3",
  1298. .keepalive = false,
  1299. .num_nodes = 1,
  1300. .nodes = { &qnm_cmpnoc },
  1301. };
  1302. static struct qcom_icc_bcm bcm_mm3 = {
  1303. .name = "MM3",
  1304. .keepalive = false,
  1305. .num_nodes = 5,
  1306. .nodes = { &qnm_camnoc_icp, &qnm_camnoc_sf, &qnm_video0, &qnm_video1, &qnm_video_cvp },
  1307. };
  1308. static struct qcom_icc_bcm bcm_sh4 = {
  1309. .name = "SH4",
  1310. .keepalive = false,
  1311. .num_nodes = 1,
  1312. .nodes = { &chm_apps },
  1313. };
  1314. static struct qcom_icc_bcm bcm_sn0 = {
  1315. .name = "SN0",
  1316. .keepalive = true,
  1317. .num_nodes = 1,
  1318. .nodes = { &qns_gemnoc_sf },
  1319. };
  1320. static struct qcom_icc_bcm bcm_co0 = {
  1321. .name = "CO0",
  1322. .keepalive = false,
  1323. .num_nodes = 1,
  1324. .nodes = { &qns_cdsp_mem_noc },
  1325. };
  1326. static struct qcom_icc_bcm bcm_cn0 = {
  1327. .name = "CN0",
  1328. .keepalive = true,
  1329. .num_nodes = 52,
  1330. .nodes = { &qnm_snoc,
  1331. &xm_qdss_dap,
  1332. &qhs_a1_noc_cfg,
  1333. &qhs_a2_noc_cfg,
  1334. &qhs_ahb2phy0,
  1335. &qhs_ahb2phy1,
  1336. &qhs_aoss,
  1337. &qhs_camera_cfg,
  1338. &qhs_clk_ctl,
  1339. &qhs_compute_dsp,
  1340. &qhs_cpr_cx,
  1341. &qhs_cpr_mmcx,
  1342. &qhs_cpr_mx,
  1343. &qhs_crypto0_cfg,
  1344. &qhs_cx_rdpm,
  1345. &qhs_dcc_cfg,
  1346. &qhs_ddrss_cfg,
  1347. &qhs_display_cfg,
  1348. &qhs_gpuss_cfg,
  1349. &qhs_imem_cfg,
  1350. &qhs_ipa,
  1351. &qhs_ipc_router,
  1352. &qhs_lpass_cfg,
  1353. &qhs_mnoc_cfg,
  1354. &qhs_npu_cfg,
  1355. &qhs_pcie0_cfg,
  1356. &qhs_pcie1_cfg,
  1357. &qhs_pcie_modem_cfg,
  1358. &qhs_pdm,
  1359. &qhs_pimem_cfg,
  1360. &qhs_prng,
  1361. &qhs_qdss_cfg,
  1362. &qhs_qspi,
  1363. &qhs_qup0,
  1364. &qhs_qup1,
  1365. &qhs_qup2,
  1366. &qhs_sdc2,
  1367. &qhs_sdc4,
  1368. &qhs_snoc_cfg,
  1369. &qhs_tcsr,
  1370. &qhs_tlmm0,
  1371. &qhs_tlmm1,
  1372. &qhs_tlmm2,
  1373. &qhs_tsif,
  1374. &qhs_ufs_card_cfg,
  1375. &qhs_ufs_mem_cfg,
  1376. &qhs_usb3_0,
  1377. &qhs_usb3_1,
  1378. &qhs_venus_cfg,
  1379. &qhs_vsense_ctrl_cfg,
  1380. &qns_cnoc_a2noc,
  1381. &srvc_cnoc
  1382. },
  1383. };
  1384. static struct qcom_icc_bcm bcm_sn1 = {
  1385. .name = "SN1",
  1386. .keepalive = false,
  1387. .num_nodes = 1,
  1388. .nodes = { &qxs_imem },
  1389. };
  1390. static struct qcom_icc_bcm bcm_sn2 = {
  1391. .name = "SN2",
  1392. .keepalive = false,
  1393. .num_nodes = 1,
  1394. .nodes = { &qns_gemnoc_gc },
  1395. };
  1396. static struct qcom_icc_bcm bcm_co2 = {
  1397. .name = "CO2",
  1398. .keepalive = false,
  1399. .num_nodes = 1,
  1400. .nodes = { &qnm_npu },
  1401. };
  1402. static struct qcom_icc_bcm bcm_sn3 = {
  1403. .name = "SN3",
  1404. .keepalive = false,
  1405. .num_nodes = 1,
  1406. .nodes = { &qxs_pimem },
  1407. };
  1408. static struct qcom_icc_bcm bcm_sn4 = {
  1409. .name = "SN4",
  1410. .keepalive = false,
  1411. .num_nodes = 1,
  1412. .nodes = { &xs_qdss_stm },
  1413. };
  1414. static struct qcom_icc_bcm bcm_sn5 = {
  1415. .name = "SN5",
  1416. .keepalive = false,
  1417. .num_nodes = 1,
  1418. .nodes = { &xs_pcie_modem },
  1419. };
  1420. static struct qcom_icc_bcm bcm_sn6 = {
  1421. .name = "SN6",
  1422. .keepalive = false,
  1423. .num_nodes = 2,
  1424. .nodes = { &xs_pcie_0, &xs_pcie_1 },
  1425. };
  1426. static struct qcom_icc_bcm bcm_sn7 = {
  1427. .name = "SN7",
  1428. .keepalive = false,
  1429. .num_nodes = 1,
  1430. .nodes = { &qnm_aggre1_noc },
  1431. };
  1432. static struct qcom_icc_bcm bcm_sn8 = {
  1433. .name = "SN8",
  1434. .keepalive = false,
  1435. .num_nodes = 1,
  1436. .nodes = { &qnm_aggre2_noc },
  1437. };
  1438. static struct qcom_icc_bcm bcm_sn9 = {
  1439. .name = "SN9",
  1440. .keepalive = false,
  1441. .num_nodes = 1,
  1442. .nodes = { &qnm_gemnoc_pcie },
  1443. };
  1444. static struct qcom_icc_bcm bcm_sn11 = {
  1445. .name = "SN11",
  1446. .keepalive = false,
  1447. .num_nodes = 1,
  1448. .nodes = { &qnm_gemnoc },
  1449. };
  1450. static struct qcom_icc_bcm bcm_sn12 = {
  1451. .name = "SN12",
  1452. .keepalive = false,
  1453. .num_nodes = 2,
  1454. .nodes = { &qns_pcie_modem_mem_noc, &qns_pcie_mem_noc },
  1455. };
  1456. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1457. &bcm_sn12,
  1458. };
  1459. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1460. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1461. [MASTER_QSPI_0] = &qhm_qspi,
  1462. [MASTER_QUP_1] = &qhm_qup1,
  1463. [MASTER_QUP_2] = &qhm_qup2,
  1464. [MASTER_TSIF] = &qhm_tsif,
  1465. [MASTER_PCIE_2] = &xm_pcie3_modem,
  1466. [MASTER_SDCC_4] = &xm_sdc4,
  1467. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1468. [MASTER_USB3] = &xm_usb3_0,
  1469. [MASTER_USB3_1] = &xm_usb3_1,
  1470. [A1NOC_SNOC_SLV] = &qns_a1noc_snoc,
  1471. [SLAVE_ANOC_PCIE_GEM_NOC_1] = &qns_pcie_modem_mem_noc,
  1472. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1473. };
  1474. static const struct qcom_icc_desc sm8250_aggre1_noc = {
  1475. .nodes = aggre1_noc_nodes,
  1476. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1477. .bcms = aggre1_noc_bcms,
  1478. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1479. };
  1480. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1481. &bcm_ce0,
  1482. &bcm_sn12,
  1483. };
  1484. static struct qcom_icc_bcm * const qup_virt_bcms[] = {
  1485. &bcm_qup0,
  1486. };
  1487. static struct qcom_icc_node * const qup_virt_nodes[] = {
  1488. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1489. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1490. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1491. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1492. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1493. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1494. };
  1495. static const struct qcom_icc_desc sm8250_qup_virt = {
  1496. .nodes = qup_virt_nodes,
  1497. .num_nodes = ARRAY_SIZE(qup_virt_nodes),
  1498. .bcms = qup_virt_bcms,
  1499. .num_bcms = ARRAY_SIZE(qup_virt_bcms),
  1500. };
  1501. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1502. [MASTER_A2NOC_CFG] = &qhm_a2noc_cfg,
  1503. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1504. [MASTER_QUP_0] = &qhm_qup0,
  1505. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1506. [MASTER_CRYPTO_CORE_0] = &qxm_crypto,
  1507. [MASTER_IPA] = &qxm_ipa,
  1508. [MASTER_PCIE] = &xm_pcie3_0,
  1509. [MASTER_PCIE_1] = &xm_pcie3_1,
  1510. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1511. [MASTER_SDCC_2] = &xm_sdc2,
  1512. [MASTER_UFS_CARD] = &xm_ufs_card,
  1513. [A2NOC_SNOC_SLV] = &qns_a2noc_snoc,
  1514. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1515. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1516. };
  1517. static const struct qcom_icc_desc sm8250_aggre2_noc = {
  1518. .nodes = aggre2_noc_nodes,
  1519. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1520. .bcms = aggre2_noc_bcms,
  1521. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1522. };
  1523. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1524. &bcm_co0,
  1525. &bcm_co2,
  1526. };
  1527. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1528. [MASTER_NPU] = &qnm_npu,
  1529. [SLAVE_CDSP_MEM_NOC] = &qns_cdsp_mem_noc,
  1530. };
  1531. static const struct qcom_icc_desc sm8250_compute_noc = {
  1532. .nodes = compute_noc_nodes,
  1533. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1534. .bcms = compute_noc_bcms,
  1535. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1536. };
  1537. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1538. &bcm_cn0,
  1539. };
  1540. static struct qcom_icc_node * const config_noc_nodes[] = {
  1541. [SNOC_CNOC_MAS] = &qnm_snoc,
  1542. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1543. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1544. [SLAVE_A2NOC_CFG] = &qhs_a2_noc_cfg,
  1545. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1546. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1547. [SLAVE_AOSS] = &qhs_aoss,
  1548. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1549. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1550. [SLAVE_CDSP_CFG] = &qhs_compute_dsp,
  1551. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1552. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1553. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1554. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1555. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1556. [SLAVE_DCC_CFG] = &qhs_dcc_cfg,
  1557. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1558. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1559. [SLAVE_GRAPHICS_3D_CFG] = &qhs_gpuss_cfg,
  1560. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1561. [SLAVE_IPA_CFG] = &qhs_ipa,
  1562. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1563. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1564. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1565. [SLAVE_NPU_CFG] = &qhs_npu_cfg,
  1566. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1567. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1568. [SLAVE_PCIE_2_CFG] = &qhs_pcie_modem_cfg,
  1569. [SLAVE_PDM] = &qhs_pdm,
  1570. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1571. [SLAVE_PRNG] = &qhs_prng,
  1572. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1573. [SLAVE_QSPI_0] = &qhs_qspi,
  1574. [SLAVE_QUP_0] = &qhs_qup0,
  1575. [SLAVE_QUP_1] = &qhs_qup1,
  1576. [SLAVE_QUP_2] = &qhs_qup2,
  1577. [SLAVE_SDCC_2] = &qhs_sdc2,
  1578. [SLAVE_SDCC_4] = &qhs_sdc4,
  1579. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1580. [SLAVE_TCSR] = &qhs_tcsr,
  1581. [SLAVE_TLMM_NORTH] = &qhs_tlmm0,
  1582. [SLAVE_TLMM_SOUTH] = &qhs_tlmm1,
  1583. [SLAVE_TLMM_WEST] = &qhs_tlmm2,
  1584. [SLAVE_TSIF] = &qhs_tsif,
  1585. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  1586. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1587. [SLAVE_USB3] = &qhs_usb3_0,
  1588. [SLAVE_USB3_1] = &qhs_usb3_1,
  1589. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1590. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1591. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1592. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1593. };
  1594. static const struct qcom_icc_desc sm8250_config_noc = {
  1595. .nodes = config_noc_nodes,
  1596. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1597. .bcms = config_noc_bcms,
  1598. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1599. };
  1600. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  1601. };
  1602. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1603. [MASTER_CNOC_DC_NOC] = &qhm_cnoc_dc_noc,
  1604. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1605. [SLAVE_GEM_NOC_CFG] = &qhs_memnoc,
  1606. };
  1607. static const struct qcom_icc_desc sm8250_dc_noc = {
  1608. .nodes = dc_noc_nodes,
  1609. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1610. .bcms = dc_noc_bcms,
  1611. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1612. };
  1613. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1614. &bcm_sh0,
  1615. &bcm_sh2,
  1616. &bcm_sh3,
  1617. &bcm_sh4,
  1618. };
  1619. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1620. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1621. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1622. [MASTER_AMPSS_M0] = &chm_apps,
  1623. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1624. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc,
  1625. [MASTER_GRAPHICS_3D] = &qnm_gpu,
  1626. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1627. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1628. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1629. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1630. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1631. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1632. [SLAVE_LLCC] = &qns_llcc,
  1633. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_sys_pcie,
  1634. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  1635. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  1636. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  1637. };
  1638. static const struct qcom_icc_desc sm8250_gem_noc = {
  1639. .nodes = gem_noc_nodes,
  1640. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1641. .bcms = gem_noc_bcms,
  1642. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1643. };
  1644. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1645. &bcm_acv,
  1646. &bcm_mc0,
  1647. };
  1648. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1649. [MASTER_LLCC] = &llcc_mc,
  1650. [SLAVE_EBI_CH0] = &ebi,
  1651. };
  1652. static const struct qcom_icc_desc sm8250_mc_virt = {
  1653. .nodes = mc_virt_nodes,
  1654. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1655. .bcms = mc_virt_bcms,
  1656. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1657. };
  1658. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1659. &bcm_mm0,
  1660. &bcm_mm1,
  1661. &bcm_mm2,
  1662. &bcm_mm3,
  1663. };
  1664. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1665. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1666. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1667. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1668. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1669. [MASTER_VIDEO_P0] = &qnm_video0,
  1670. [MASTER_VIDEO_P1] = &qnm_video1,
  1671. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1672. [MASTER_MDP_PORT0] = &qxm_mdp0,
  1673. [MASTER_MDP_PORT1] = &qxm_mdp1,
  1674. [MASTER_ROTATOR] = &qxm_rot,
  1675. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1676. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1677. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1678. };
  1679. static const struct qcom_icc_desc sm8250_mmss_noc = {
  1680. .nodes = mmss_noc_nodes,
  1681. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1682. .bcms = mmss_noc_bcms,
  1683. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1684. };
  1685. static struct qcom_icc_bcm * const npu_noc_bcms[] = {
  1686. };
  1687. static struct qcom_icc_node * const npu_noc_nodes[] = {
  1688. [MASTER_NPU_SYS] = &amm_npu_sys,
  1689. [MASTER_NPU_CDP] = &amm_npu_sys_cdp_w,
  1690. [MASTER_NPU_NOC_CFG] = &qhm_cfg,
  1691. [SLAVE_NPU_CAL_DP0] = &qhs_cal_dp0,
  1692. [SLAVE_NPU_CAL_DP1] = &qhs_cal_dp1,
  1693. [SLAVE_NPU_CP] = &qhs_cp,
  1694. [SLAVE_NPU_INT_DMA_BWMON_CFG] = &qhs_dma_bwmon,
  1695. [SLAVE_NPU_DPM] = &qhs_dpm,
  1696. [SLAVE_ISENSE_CFG] = &qhs_isense,
  1697. [SLAVE_NPU_LLM_CFG] = &qhs_llm,
  1698. [SLAVE_NPU_TCM] = &qhs_tcm,
  1699. [SLAVE_NPU_COMPUTE_NOC] = &qns_npu_sys,
  1700. [SLAVE_SERVICE_NPU_NOC] = &srvc_noc,
  1701. };
  1702. static const struct qcom_icc_desc sm8250_npu_noc = {
  1703. .nodes = npu_noc_nodes,
  1704. .num_nodes = ARRAY_SIZE(npu_noc_nodes),
  1705. .bcms = npu_noc_bcms,
  1706. .num_bcms = ARRAY_SIZE(npu_noc_bcms),
  1707. };
  1708. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1709. &bcm_sn0,
  1710. &bcm_sn1,
  1711. &bcm_sn11,
  1712. &bcm_sn2,
  1713. &bcm_sn3,
  1714. &bcm_sn4,
  1715. &bcm_sn5,
  1716. &bcm_sn6,
  1717. &bcm_sn7,
  1718. &bcm_sn8,
  1719. &bcm_sn9,
  1720. };
  1721. static struct qcom_icc_node * const system_noc_nodes[] = {
  1722. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1723. [A1NOC_SNOC_MAS] = &qnm_aggre1_noc,
  1724. [A2NOC_SNOC_MAS] = &qnm_aggre2_noc,
  1725. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1726. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1727. [MASTER_PIMEM] = &qxm_pimem,
  1728. [MASTER_GIC] = &xm_gic,
  1729. [SLAVE_APPSS] = &qhs_apss,
  1730. [SNOC_CNOC_SLV] = &qns_cnoc,
  1731. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1732. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1733. [SLAVE_OCIMEM] = &qxs_imem,
  1734. [SLAVE_PIMEM] = &qxs_pimem,
  1735. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1736. [SLAVE_PCIE_0] = &xs_pcie_0,
  1737. [SLAVE_PCIE_1] = &xs_pcie_1,
  1738. [SLAVE_PCIE_2] = &xs_pcie_modem,
  1739. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1740. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1741. };
  1742. static const struct qcom_icc_desc sm8250_system_noc = {
  1743. .nodes = system_noc_nodes,
  1744. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1745. .bcms = system_noc_bcms,
  1746. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1747. };
  1748. static const struct of_device_id qnoc_of_match[] = {
  1749. { .compatible = "qcom,sm8250-aggre1-noc",
  1750. .data = &sm8250_aggre1_noc},
  1751. { .compatible = "qcom,sm8250-aggre2-noc",
  1752. .data = &sm8250_aggre2_noc},
  1753. { .compatible = "qcom,sm8250-compute-noc",
  1754. .data = &sm8250_compute_noc},
  1755. { .compatible = "qcom,sm8250-config-noc",
  1756. .data = &sm8250_config_noc},
  1757. { .compatible = "qcom,sm8250-dc-noc",
  1758. .data = &sm8250_dc_noc},
  1759. { .compatible = "qcom,sm8250-gem-noc",
  1760. .data = &sm8250_gem_noc},
  1761. { .compatible = "qcom,sm8250-mc-virt",
  1762. .data = &sm8250_mc_virt},
  1763. { .compatible = "qcom,sm8250-mmss-noc",
  1764. .data = &sm8250_mmss_noc},
  1765. { .compatible = "qcom,sm8250-npu-noc",
  1766. .data = &sm8250_npu_noc},
  1767. { .compatible = "qcom,sm8250-qup-virt",
  1768. .data = &sm8250_qup_virt },
  1769. { .compatible = "qcom,sm8250-system-noc",
  1770. .data = &sm8250_system_noc},
  1771. { }
  1772. };
  1773. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1774. static struct platform_driver qnoc_driver = {
  1775. .probe = qcom_icc_rpmh_probe,
  1776. .remove_new = qcom_icc_rpmh_remove,
  1777. .driver = {
  1778. .name = "qnoc-sm8250",
  1779. .of_match_table = qnoc_of_match,
  1780. .sync_state = icc_sync_state,
  1781. },
  1782. };
  1783. module_platform_driver(qnoc_driver);
  1784. MODULE_DESCRIPTION("Qualcomm SM8250 NoC driver");
  1785. MODULE_LICENSE("GPL v2");