sm8450.c 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2021, Linaro Limited
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/module.h>
  10. #include <linux/mod_devicetable.h>
  11. #include <linux/platform_device.h>
  12. #include <linux/property.h>
  13. #include <dt-bindings/interconnect/qcom,sm8450.h>
  14. #include "bcm-voter.h"
  15. #include "icc-common.h"
  16. #include "icc-rpmh.h"
  17. #include "sm8450.h"
  18. static struct qcom_icc_node qhm_qspi = {
  19. .name = "qhm_qspi",
  20. .id = SM8450_MASTER_QSPI_0,
  21. .channels = 1,
  22. .buswidth = 4,
  23. .num_links = 1,
  24. .links = { SM8450_SLAVE_A1NOC_SNOC },
  25. };
  26. static struct qcom_icc_node qhm_qup1 = {
  27. .name = "qhm_qup1",
  28. .id = SM8450_MASTER_QUP_1,
  29. .channels = 1,
  30. .buswidth = 4,
  31. .num_links = 1,
  32. .links = { SM8450_SLAVE_A1NOC_SNOC },
  33. };
  34. static struct qcom_icc_node qnm_a1noc_cfg = {
  35. .name = "qnm_a1noc_cfg",
  36. .id = SM8450_MASTER_A1NOC_CFG,
  37. .channels = 1,
  38. .buswidth = 4,
  39. .num_links = 1,
  40. .links = { SM8450_SLAVE_SERVICE_A1NOC },
  41. };
  42. static struct qcom_icc_node xm_sdc4 = {
  43. .name = "xm_sdc4",
  44. .id = SM8450_MASTER_SDCC_4,
  45. .channels = 1,
  46. .buswidth = 8,
  47. .num_links = 1,
  48. .links = { SM8450_SLAVE_A1NOC_SNOC },
  49. };
  50. static struct qcom_icc_node xm_ufs_mem = {
  51. .name = "xm_ufs_mem",
  52. .id = SM8450_MASTER_UFS_MEM,
  53. .channels = 1,
  54. .buswidth = 8,
  55. .num_links = 1,
  56. .links = { SM8450_SLAVE_A1NOC_SNOC },
  57. };
  58. static struct qcom_icc_node xm_usb3_0 = {
  59. .name = "xm_usb3_0",
  60. .id = SM8450_MASTER_USB3_0,
  61. .channels = 1,
  62. .buswidth = 8,
  63. .num_links = 1,
  64. .links = { SM8450_SLAVE_A1NOC_SNOC },
  65. };
  66. static struct qcom_icc_node qhm_qdss_bam = {
  67. .name = "qhm_qdss_bam",
  68. .id = SM8450_MASTER_QDSS_BAM,
  69. .channels = 1,
  70. .buswidth = 4,
  71. .num_links = 1,
  72. .links = { SM8450_SLAVE_A2NOC_SNOC },
  73. };
  74. static struct qcom_icc_node qhm_qup0 = {
  75. .name = "qhm_qup0",
  76. .id = SM8450_MASTER_QUP_0,
  77. .channels = 1,
  78. .buswidth = 4,
  79. .num_links = 1,
  80. .links = { SM8450_SLAVE_A2NOC_SNOC },
  81. };
  82. static struct qcom_icc_node qhm_qup2 = {
  83. .name = "qhm_qup2",
  84. .id = SM8450_MASTER_QUP_2,
  85. .channels = 1,
  86. .buswidth = 4,
  87. .num_links = 1,
  88. .links = { SM8450_SLAVE_A2NOC_SNOC },
  89. };
  90. static struct qcom_icc_node qnm_a2noc_cfg = {
  91. .name = "qnm_a2noc_cfg",
  92. .id = SM8450_MASTER_A2NOC_CFG,
  93. .channels = 1,
  94. .buswidth = 4,
  95. .num_links = 1,
  96. .links = { SM8450_SLAVE_SERVICE_A2NOC },
  97. };
  98. static struct qcom_icc_node qxm_crypto = {
  99. .name = "qxm_crypto",
  100. .id = SM8450_MASTER_CRYPTO,
  101. .channels = 1,
  102. .buswidth = 8,
  103. .num_links = 1,
  104. .links = { SM8450_SLAVE_A2NOC_SNOC },
  105. };
  106. static struct qcom_icc_node qxm_ipa = {
  107. .name = "qxm_ipa",
  108. .id = SM8450_MASTER_IPA,
  109. .channels = 1,
  110. .buswidth = 8,
  111. .num_links = 1,
  112. .links = { SM8450_SLAVE_A2NOC_SNOC },
  113. };
  114. static struct qcom_icc_node qxm_sensorss_q6 = {
  115. .name = "qxm_sensorss_q6",
  116. .id = SM8450_MASTER_SENSORS_PROC,
  117. .channels = 1,
  118. .buswidth = 8,
  119. .num_links = 1,
  120. .links = { SM8450_SLAVE_A2NOC_SNOC },
  121. };
  122. static struct qcom_icc_node qxm_sp = {
  123. .name = "qxm_sp",
  124. .id = SM8450_MASTER_SP,
  125. .channels = 1,
  126. .buswidth = 8,
  127. .num_links = 1,
  128. .links = { SM8450_SLAVE_A2NOC_SNOC },
  129. };
  130. static struct qcom_icc_node xm_qdss_etr_0 = {
  131. .name = "xm_qdss_etr_0",
  132. .id = SM8450_MASTER_QDSS_ETR,
  133. .channels = 1,
  134. .buswidth = 8,
  135. .num_links = 1,
  136. .links = { SM8450_SLAVE_A2NOC_SNOC },
  137. };
  138. static struct qcom_icc_node xm_qdss_etr_1 = {
  139. .name = "xm_qdss_etr_1",
  140. .id = SM8450_MASTER_QDSS_ETR_1,
  141. .channels = 1,
  142. .buswidth = 8,
  143. .num_links = 1,
  144. .links = { SM8450_SLAVE_A2NOC_SNOC },
  145. };
  146. static struct qcom_icc_node xm_sdc2 = {
  147. .name = "xm_sdc2",
  148. .id = SM8450_MASTER_SDCC_2,
  149. .channels = 1,
  150. .buswidth = 8,
  151. .num_links = 1,
  152. .links = { SM8450_SLAVE_A2NOC_SNOC },
  153. };
  154. static struct qcom_icc_node qup0_core_master = {
  155. .name = "qup0_core_master",
  156. .id = SM8450_MASTER_QUP_CORE_0,
  157. .channels = 1,
  158. .buswidth = 4,
  159. .num_links = 1,
  160. .links = { SM8450_SLAVE_QUP_CORE_0 },
  161. };
  162. static struct qcom_icc_node qup1_core_master = {
  163. .name = "qup1_core_master",
  164. .id = SM8450_MASTER_QUP_CORE_1,
  165. .channels = 1,
  166. .buswidth = 4,
  167. .num_links = 1,
  168. .links = { SM8450_SLAVE_QUP_CORE_1 },
  169. };
  170. static struct qcom_icc_node qup2_core_master = {
  171. .name = "qup2_core_master",
  172. .id = SM8450_MASTER_QUP_CORE_2,
  173. .channels = 1,
  174. .buswidth = 4,
  175. .num_links = 1,
  176. .links = { SM8450_SLAVE_QUP_CORE_2 },
  177. };
  178. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  179. .name = "qnm_gemnoc_cnoc",
  180. .id = SM8450_MASTER_GEM_NOC_CNOC,
  181. .channels = 1,
  182. .buswidth = 16,
  183. .num_links = 51,
  184. .links = { SM8450_SLAVE_AHB2PHY_SOUTH, SM8450_SLAVE_AHB2PHY_NORTH,
  185. SM8450_SLAVE_AOSS, SM8450_SLAVE_CAMERA_CFG,
  186. SM8450_SLAVE_CLK_CTL, SM8450_SLAVE_CDSP_CFG,
  187. SM8450_SLAVE_RBCPR_CX_CFG, SM8450_SLAVE_RBCPR_MMCX_CFG,
  188. SM8450_SLAVE_RBCPR_MXA_CFG, SM8450_SLAVE_RBCPR_MXC_CFG,
  189. SM8450_SLAVE_CRYPTO_0_CFG, SM8450_SLAVE_CX_RDPM,
  190. SM8450_SLAVE_DISPLAY_CFG, SM8450_SLAVE_GFX3D_CFG,
  191. SM8450_SLAVE_IMEM_CFG, SM8450_SLAVE_IPA_CFG,
  192. SM8450_SLAVE_IPC_ROUTER_CFG, SM8450_SLAVE_LPASS,
  193. SM8450_SLAVE_CNOC_MSS, SM8450_SLAVE_MX_RDPM,
  194. SM8450_SLAVE_PCIE_0_CFG, SM8450_SLAVE_PCIE_1_CFG,
  195. SM8450_SLAVE_PDM, SM8450_SLAVE_PIMEM_CFG,
  196. SM8450_SLAVE_PRNG, SM8450_SLAVE_QDSS_CFG,
  197. SM8450_SLAVE_QSPI_0, SM8450_SLAVE_QUP_0,
  198. SM8450_SLAVE_QUP_1, SM8450_SLAVE_QUP_2,
  199. SM8450_SLAVE_SDCC_2, SM8450_SLAVE_SDCC_4,
  200. SM8450_SLAVE_SPSS_CFG, SM8450_SLAVE_TCSR,
  201. SM8450_SLAVE_TLMM, SM8450_SLAVE_TME_CFG,
  202. SM8450_SLAVE_UFS_MEM_CFG, SM8450_SLAVE_USB3_0,
  203. SM8450_SLAVE_VENUS_CFG, SM8450_SLAVE_VSENSE_CTRL_CFG,
  204. SM8450_SLAVE_A1NOC_CFG, SM8450_SLAVE_A2NOC_CFG,
  205. SM8450_SLAVE_DDRSS_CFG, SM8450_SLAVE_CNOC_MNOC_CFG,
  206. SM8450_SLAVE_PCIE_ANOC_CFG, SM8450_SLAVE_SNOC_CFG,
  207. SM8450_SLAVE_IMEM, SM8450_SLAVE_PIMEM,
  208. SM8450_SLAVE_SERVICE_CNOC, SM8450_SLAVE_QDSS_STM,
  209. SM8450_SLAVE_TCU },
  210. };
  211. static struct qcom_icc_node qnm_gemnoc_pcie = {
  212. .name = "qnm_gemnoc_pcie",
  213. .id = SM8450_MASTER_GEM_NOC_PCIE_SNOC,
  214. .channels = 1,
  215. .buswidth = 8,
  216. .num_links = 2,
  217. .links = { SM8450_SLAVE_PCIE_0, SM8450_SLAVE_PCIE_1 },
  218. };
  219. static struct qcom_icc_node alm_gpu_tcu = {
  220. .name = "alm_gpu_tcu",
  221. .id = SM8450_MASTER_GPU_TCU,
  222. .channels = 1,
  223. .buswidth = 8,
  224. .num_links = 2,
  225. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  226. };
  227. static struct qcom_icc_node alm_sys_tcu = {
  228. .name = "alm_sys_tcu",
  229. .id = SM8450_MASTER_SYS_TCU,
  230. .channels = 1,
  231. .buswidth = 8,
  232. .num_links = 2,
  233. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  234. };
  235. static struct qcom_icc_node chm_apps = {
  236. .name = "chm_apps",
  237. .id = SM8450_MASTER_APPSS_PROC,
  238. .channels = 3,
  239. .buswidth = 32,
  240. .num_links = 3,
  241. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  242. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  243. };
  244. static struct qcom_icc_node qnm_gpu = {
  245. .name = "qnm_gpu",
  246. .id = SM8450_MASTER_GFX3D,
  247. .channels = 2,
  248. .buswidth = 32,
  249. .num_links = 2,
  250. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  251. };
  252. static struct qcom_icc_node qnm_mdsp = {
  253. .name = "qnm_mdsp",
  254. .id = SM8450_MASTER_MSS_PROC,
  255. .channels = 1,
  256. .buswidth = 16,
  257. .num_links = 3,
  258. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  259. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  260. };
  261. static struct qcom_icc_node qnm_mnoc_hf = {
  262. .name = "qnm_mnoc_hf",
  263. .id = SM8450_MASTER_MNOC_HF_MEM_NOC,
  264. .channels = 2,
  265. .buswidth = 32,
  266. .num_links = 1,
  267. .links = { SM8450_SLAVE_LLCC },
  268. };
  269. static struct qcom_icc_node qnm_mnoc_sf = {
  270. .name = "qnm_mnoc_sf",
  271. .id = SM8450_MASTER_MNOC_SF_MEM_NOC,
  272. .channels = 2,
  273. .buswidth = 32,
  274. .num_links = 2,
  275. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  276. };
  277. static struct qcom_icc_node qnm_nsp_gemnoc = {
  278. .name = "qnm_nsp_gemnoc",
  279. .id = SM8450_MASTER_COMPUTE_NOC,
  280. .channels = 2,
  281. .buswidth = 32,
  282. .num_links = 2,
  283. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  284. };
  285. static struct qcom_icc_node qnm_pcie = {
  286. .name = "qnm_pcie",
  287. .id = SM8450_MASTER_ANOC_PCIE_GEM_NOC,
  288. .channels = 1,
  289. .buswidth = 16,
  290. .num_links = 2,
  291. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC },
  292. };
  293. static struct qcom_icc_node qnm_snoc_gc = {
  294. .name = "qnm_snoc_gc",
  295. .id = SM8450_MASTER_SNOC_GC_MEM_NOC,
  296. .channels = 1,
  297. .buswidth = 8,
  298. .num_links = 1,
  299. .links = { SM8450_SLAVE_LLCC },
  300. };
  301. static struct qcom_icc_node qnm_snoc_sf = {
  302. .name = "qnm_snoc_sf",
  303. .id = SM8450_MASTER_SNOC_SF_MEM_NOC,
  304. .channels = 1,
  305. .buswidth = 16,
  306. .num_links = 3,
  307. .links = { SM8450_SLAVE_GEM_NOC_CNOC, SM8450_SLAVE_LLCC,
  308. SM8450_SLAVE_MEM_NOC_PCIE_SNOC },
  309. };
  310. static struct qcom_icc_node qhm_config_noc = {
  311. .name = "qhm_config_noc",
  312. .id = SM8450_MASTER_CNOC_LPASS_AG_NOC,
  313. .channels = 1,
  314. .buswidth = 4,
  315. .num_links = 6,
  316. .links = { SM8450_SLAVE_LPASS_CORE_CFG, SM8450_SLAVE_LPASS_LPI_CFG,
  317. SM8450_SLAVE_LPASS_MPU_CFG, SM8450_SLAVE_LPASS_TOP_CFG,
  318. SM8450_SLAVE_SERVICES_LPASS_AML_NOC, SM8450_SLAVE_SERVICE_LPASS_AG_NOC },
  319. };
  320. static struct qcom_icc_node qxm_lpass_dsp = {
  321. .name = "qxm_lpass_dsp",
  322. .id = SM8450_MASTER_LPASS_PROC,
  323. .channels = 1,
  324. .buswidth = 8,
  325. .num_links = 4,
  326. .links = { SM8450_SLAVE_LPASS_TOP_CFG, SM8450_SLAVE_LPASS_SNOC,
  327. SM8450_SLAVE_SERVICES_LPASS_AML_NOC, SM8450_SLAVE_SERVICE_LPASS_AG_NOC },
  328. };
  329. static struct qcom_icc_node llcc_mc = {
  330. .name = "llcc_mc",
  331. .id = SM8450_MASTER_LLCC,
  332. .channels = 4,
  333. .buswidth = 4,
  334. .num_links = 1,
  335. .links = { SM8450_SLAVE_EBI1 },
  336. };
  337. static struct qcom_icc_node qnm_camnoc_hf = {
  338. .name = "qnm_camnoc_hf",
  339. .id = SM8450_MASTER_CAMNOC_HF,
  340. .channels = 2,
  341. .buswidth = 32,
  342. .num_links = 1,
  343. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC },
  344. };
  345. static struct qcom_icc_node qnm_camnoc_icp = {
  346. .name = "qnm_camnoc_icp",
  347. .id = SM8450_MASTER_CAMNOC_ICP,
  348. .channels = 1,
  349. .buswidth = 8,
  350. .num_links = 1,
  351. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  352. };
  353. static struct qcom_icc_node qnm_camnoc_sf = {
  354. .name = "qnm_camnoc_sf",
  355. .id = SM8450_MASTER_CAMNOC_SF,
  356. .channels = 2,
  357. .buswidth = 32,
  358. .num_links = 1,
  359. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  360. };
  361. static struct qcom_icc_node qnm_mdp = {
  362. .name = "qnm_mdp",
  363. .id = SM8450_MASTER_MDP,
  364. .channels = 2,
  365. .buswidth = 32,
  366. .num_links = 1,
  367. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC },
  368. };
  369. static struct qcom_icc_node qnm_mnoc_cfg = {
  370. .name = "qnm_mnoc_cfg",
  371. .id = SM8450_MASTER_CNOC_MNOC_CFG,
  372. .channels = 1,
  373. .buswidth = 4,
  374. .num_links = 1,
  375. .links = { SM8450_SLAVE_SERVICE_MNOC },
  376. };
  377. static struct qcom_icc_node qnm_rot = {
  378. .name = "qnm_rot",
  379. .id = SM8450_MASTER_ROTATOR,
  380. .channels = 1,
  381. .buswidth = 32,
  382. .num_links = 1,
  383. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  384. };
  385. static struct qcom_icc_node qnm_vapss_hcp = {
  386. .name = "qnm_vapss_hcp",
  387. .id = SM8450_MASTER_CDSP_HCP,
  388. .channels = 1,
  389. .buswidth = 32,
  390. .num_links = 1,
  391. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  392. };
  393. static struct qcom_icc_node qnm_video = {
  394. .name = "qnm_video",
  395. .id = SM8450_MASTER_VIDEO,
  396. .channels = 2,
  397. .buswidth = 32,
  398. .num_links = 1,
  399. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  400. };
  401. static struct qcom_icc_node qnm_video_cv_cpu = {
  402. .name = "qnm_video_cv_cpu",
  403. .id = SM8450_MASTER_VIDEO_CV_PROC,
  404. .channels = 1,
  405. .buswidth = 8,
  406. .num_links = 1,
  407. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  408. };
  409. static struct qcom_icc_node qnm_video_cvp = {
  410. .name = "qnm_video_cvp",
  411. .id = SM8450_MASTER_VIDEO_PROC,
  412. .channels = 1,
  413. .buswidth = 32,
  414. .num_links = 1,
  415. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  416. };
  417. static struct qcom_icc_node qnm_video_v_cpu = {
  418. .name = "qnm_video_v_cpu",
  419. .id = SM8450_MASTER_VIDEO_V_PROC,
  420. .channels = 1,
  421. .buswidth = 8,
  422. .num_links = 1,
  423. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC },
  424. };
  425. static struct qcom_icc_node qhm_nsp_noc_config = {
  426. .name = "qhm_nsp_noc_config",
  427. .id = SM8450_MASTER_CDSP_NOC_CFG,
  428. .channels = 1,
  429. .buswidth = 4,
  430. .num_links = 1,
  431. .links = { SM8450_SLAVE_SERVICE_NSP_NOC },
  432. };
  433. static struct qcom_icc_node qxm_nsp = {
  434. .name = "qxm_nsp",
  435. .id = SM8450_MASTER_CDSP_PROC,
  436. .channels = 2,
  437. .buswidth = 32,
  438. .num_links = 1,
  439. .links = { SM8450_SLAVE_CDSP_MEM_NOC },
  440. };
  441. static struct qcom_icc_node qnm_pcie_anoc_cfg = {
  442. .name = "qnm_pcie_anoc_cfg",
  443. .id = SM8450_MASTER_PCIE_ANOC_CFG,
  444. .channels = 1,
  445. .buswidth = 4,
  446. .num_links = 1,
  447. .links = { SM8450_SLAVE_SERVICE_PCIE_ANOC },
  448. };
  449. static struct qcom_icc_node xm_pcie3_0 = {
  450. .name = "xm_pcie3_0",
  451. .id = SM8450_MASTER_PCIE_0,
  452. .channels = 1,
  453. .buswidth = 8,
  454. .num_links = 1,
  455. .links = { SM8450_SLAVE_ANOC_PCIE_GEM_NOC },
  456. };
  457. static struct qcom_icc_node xm_pcie3_1 = {
  458. .name = "xm_pcie3_1",
  459. .id = SM8450_MASTER_PCIE_1,
  460. .channels = 1,
  461. .buswidth = 8,
  462. .num_links = 1,
  463. .links = { SM8450_SLAVE_ANOC_PCIE_GEM_NOC },
  464. };
  465. static struct qcom_icc_node qhm_gic = {
  466. .name = "qhm_gic",
  467. .id = SM8450_MASTER_GIC_AHB,
  468. .channels = 1,
  469. .buswidth = 4,
  470. .num_links = 1,
  471. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  472. };
  473. static struct qcom_icc_node qnm_aggre1_noc = {
  474. .name = "qnm_aggre1_noc",
  475. .id = SM8450_MASTER_A1NOC_SNOC,
  476. .channels = 1,
  477. .buswidth = 16,
  478. .num_links = 1,
  479. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  480. };
  481. static struct qcom_icc_node qnm_aggre2_noc = {
  482. .name = "qnm_aggre2_noc",
  483. .id = SM8450_MASTER_A2NOC_SNOC,
  484. .channels = 1,
  485. .buswidth = 16,
  486. .num_links = 1,
  487. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  488. };
  489. static struct qcom_icc_node qnm_lpass_noc = {
  490. .name = "qnm_lpass_noc",
  491. .id = SM8450_MASTER_LPASS_ANOC,
  492. .channels = 1,
  493. .buswidth = 16,
  494. .num_links = 1,
  495. .links = { SM8450_SLAVE_SNOC_GEM_NOC_SF },
  496. };
  497. static struct qcom_icc_node qnm_snoc_cfg = {
  498. .name = "qnm_snoc_cfg",
  499. .id = SM8450_MASTER_SNOC_CFG,
  500. .channels = 1,
  501. .buswidth = 4,
  502. .num_links = 1,
  503. .links = { SM8450_SLAVE_SERVICE_SNOC },
  504. };
  505. static struct qcom_icc_node qxm_pimem = {
  506. .name = "qxm_pimem",
  507. .id = SM8450_MASTER_PIMEM,
  508. .channels = 1,
  509. .buswidth = 8,
  510. .num_links = 1,
  511. .links = { SM8450_SLAVE_SNOC_GEM_NOC_GC },
  512. };
  513. static struct qcom_icc_node xm_gic = {
  514. .name = "xm_gic",
  515. .id = SM8450_MASTER_GIC,
  516. .channels = 1,
  517. .buswidth = 8,
  518. .num_links = 1,
  519. .links = { SM8450_SLAVE_SNOC_GEM_NOC_GC },
  520. };
  521. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  522. .name = "qnm_mnoc_hf_disp",
  523. .id = SM8450_MASTER_MNOC_HF_MEM_NOC_DISP,
  524. .channels = 2,
  525. .buswidth = 32,
  526. .num_links = 1,
  527. .links = { SM8450_SLAVE_LLCC_DISP },
  528. };
  529. static struct qcom_icc_node qnm_mnoc_sf_disp = {
  530. .name = "qnm_mnoc_sf_disp",
  531. .id = SM8450_MASTER_MNOC_SF_MEM_NOC_DISP,
  532. .channels = 2,
  533. .buswidth = 32,
  534. .num_links = 1,
  535. .links = { SM8450_SLAVE_LLCC_DISP },
  536. };
  537. static struct qcom_icc_node qnm_pcie_disp = {
  538. .name = "qnm_pcie_disp",
  539. .id = SM8450_MASTER_ANOC_PCIE_GEM_NOC_DISP,
  540. .channels = 1,
  541. .buswidth = 16,
  542. .num_links = 1,
  543. .links = { SM8450_SLAVE_LLCC_DISP },
  544. };
  545. static struct qcom_icc_node llcc_mc_disp = {
  546. .name = "llcc_mc_disp",
  547. .id = SM8450_MASTER_LLCC_DISP,
  548. .channels = 4,
  549. .buswidth = 4,
  550. .num_links = 1,
  551. .links = { SM8450_SLAVE_EBI1_DISP },
  552. };
  553. static struct qcom_icc_node qnm_mdp_disp = {
  554. .name = "qnm_mdp_disp",
  555. .id = SM8450_MASTER_MDP_DISP,
  556. .channels = 2,
  557. .buswidth = 32,
  558. .num_links = 1,
  559. .links = { SM8450_SLAVE_MNOC_HF_MEM_NOC_DISP },
  560. };
  561. static struct qcom_icc_node qnm_rot_disp = {
  562. .name = "qnm_rot_disp",
  563. .id = SM8450_MASTER_ROTATOR_DISP,
  564. .channels = 1,
  565. .buswidth = 32,
  566. .num_links = 1,
  567. .links = { SM8450_SLAVE_MNOC_SF_MEM_NOC_DISP },
  568. };
  569. static struct qcom_icc_node qns_a1noc_snoc = {
  570. .name = "qns_a1noc_snoc",
  571. .id = SM8450_SLAVE_A1NOC_SNOC,
  572. .channels = 1,
  573. .buswidth = 16,
  574. .num_links = 1,
  575. .links = { SM8450_MASTER_A1NOC_SNOC },
  576. };
  577. static struct qcom_icc_node srvc_aggre1_noc = {
  578. .name = "srvc_aggre1_noc",
  579. .id = SM8450_SLAVE_SERVICE_A1NOC,
  580. .channels = 1,
  581. .buswidth = 4,
  582. .num_links = 0,
  583. };
  584. static struct qcom_icc_node qns_a2noc_snoc = {
  585. .name = "qns_a2noc_snoc",
  586. .id = SM8450_SLAVE_A2NOC_SNOC,
  587. .channels = 1,
  588. .buswidth = 16,
  589. .num_links = 1,
  590. .links = { SM8450_MASTER_A2NOC_SNOC },
  591. };
  592. static struct qcom_icc_node srvc_aggre2_noc = {
  593. .name = "srvc_aggre2_noc",
  594. .id = SM8450_SLAVE_SERVICE_A2NOC,
  595. .channels = 1,
  596. .buswidth = 4,
  597. .num_links = 0,
  598. };
  599. static struct qcom_icc_node qup0_core_slave = {
  600. .name = "qup0_core_slave",
  601. .id = SM8450_SLAVE_QUP_CORE_0,
  602. .channels = 1,
  603. .buswidth = 4,
  604. .num_links = 0,
  605. };
  606. static struct qcom_icc_node qup1_core_slave = {
  607. .name = "qup1_core_slave",
  608. .id = SM8450_SLAVE_QUP_CORE_1,
  609. .channels = 1,
  610. .buswidth = 4,
  611. .num_links = 0,
  612. };
  613. static struct qcom_icc_node qup2_core_slave = {
  614. .name = "qup2_core_slave",
  615. .id = SM8450_SLAVE_QUP_CORE_2,
  616. .channels = 1,
  617. .buswidth = 4,
  618. .num_links = 0,
  619. };
  620. static struct qcom_icc_node qhs_ahb2phy0 = {
  621. .name = "qhs_ahb2phy0",
  622. .id = SM8450_SLAVE_AHB2PHY_SOUTH,
  623. .channels = 1,
  624. .buswidth = 4,
  625. .num_links = 0,
  626. };
  627. static struct qcom_icc_node qhs_ahb2phy1 = {
  628. .name = "qhs_ahb2phy1",
  629. .id = SM8450_SLAVE_AHB2PHY_NORTH,
  630. .channels = 1,
  631. .buswidth = 4,
  632. .num_links = 0,
  633. };
  634. static struct qcom_icc_node qhs_aoss = {
  635. .name = "qhs_aoss",
  636. .id = SM8450_SLAVE_AOSS,
  637. .channels = 1,
  638. .buswidth = 4,
  639. .num_links = 0,
  640. };
  641. static struct qcom_icc_node qhs_camera_cfg = {
  642. .name = "qhs_camera_cfg",
  643. .id = SM8450_SLAVE_CAMERA_CFG,
  644. .channels = 1,
  645. .buswidth = 4,
  646. .num_links = 0,
  647. };
  648. static struct qcom_icc_node qhs_clk_ctl = {
  649. .name = "qhs_clk_ctl",
  650. .id = SM8450_SLAVE_CLK_CTL,
  651. .channels = 1,
  652. .buswidth = 4,
  653. .num_links = 0,
  654. };
  655. static struct qcom_icc_node qhs_compute_cfg = {
  656. .name = "qhs_compute_cfg",
  657. .id = SM8450_SLAVE_CDSP_CFG,
  658. .channels = 1,
  659. .buswidth = 4,
  660. .num_links = 1,
  661. .links = { MASTER_CDSP_NOC_CFG },
  662. };
  663. static struct qcom_icc_node qhs_cpr_cx = {
  664. .name = "qhs_cpr_cx",
  665. .id = SM8450_SLAVE_RBCPR_CX_CFG,
  666. .channels = 1,
  667. .buswidth = 4,
  668. .num_links = 0,
  669. };
  670. static struct qcom_icc_node qhs_cpr_mmcx = {
  671. .name = "qhs_cpr_mmcx",
  672. .id = SM8450_SLAVE_RBCPR_MMCX_CFG,
  673. .channels = 1,
  674. .buswidth = 4,
  675. .num_links = 0,
  676. };
  677. static struct qcom_icc_node qhs_cpr_mxa = {
  678. .name = "qhs_cpr_mxa",
  679. .id = SM8450_SLAVE_RBCPR_MXA_CFG,
  680. .channels = 1,
  681. .buswidth = 4,
  682. .num_links = 0,
  683. };
  684. static struct qcom_icc_node qhs_cpr_mxc = {
  685. .name = "qhs_cpr_mxc",
  686. .id = SM8450_SLAVE_RBCPR_MXC_CFG,
  687. .channels = 1,
  688. .buswidth = 4,
  689. .num_links = 0,
  690. };
  691. static struct qcom_icc_node qhs_crypto0_cfg = {
  692. .name = "qhs_crypto0_cfg",
  693. .id = SM8450_SLAVE_CRYPTO_0_CFG,
  694. .channels = 1,
  695. .buswidth = 4,
  696. .num_links = 0,
  697. };
  698. static struct qcom_icc_node qhs_cx_rdpm = {
  699. .name = "qhs_cx_rdpm",
  700. .id = SM8450_SLAVE_CX_RDPM,
  701. .channels = 1,
  702. .buswidth = 4,
  703. .num_links = 0,
  704. };
  705. static struct qcom_icc_node qhs_display_cfg = {
  706. .name = "qhs_display_cfg",
  707. .id = SM8450_SLAVE_DISPLAY_CFG,
  708. .channels = 1,
  709. .buswidth = 4,
  710. .num_links = 0,
  711. };
  712. static struct qcom_icc_node qhs_gpuss_cfg = {
  713. .name = "qhs_gpuss_cfg",
  714. .id = SM8450_SLAVE_GFX3D_CFG,
  715. .channels = 1,
  716. .buswidth = 8,
  717. .num_links = 0,
  718. };
  719. static struct qcom_icc_node qhs_imem_cfg = {
  720. .name = "qhs_imem_cfg",
  721. .id = SM8450_SLAVE_IMEM_CFG,
  722. .channels = 1,
  723. .buswidth = 4,
  724. .num_links = 0,
  725. };
  726. static struct qcom_icc_node qhs_ipa = {
  727. .name = "qhs_ipa",
  728. .id = SM8450_SLAVE_IPA_CFG,
  729. .channels = 1,
  730. .buswidth = 4,
  731. .num_links = 0,
  732. };
  733. static struct qcom_icc_node qhs_ipc_router = {
  734. .name = "qhs_ipc_router",
  735. .id = SM8450_SLAVE_IPC_ROUTER_CFG,
  736. .channels = 1,
  737. .buswidth = 4,
  738. .num_links = 0,
  739. };
  740. static struct qcom_icc_node qhs_lpass_cfg = {
  741. .name = "qhs_lpass_cfg",
  742. .id = SM8450_SLAVE_LPASS,
  743. .channels = 1,
  744. .buswidth = 4,
  745. .num_links = 1,
  746. .links = { MASTER_CNOC_LPASS_AG_NOC },
  747. };
  748. static struct qcom_icc_node qhs_mss_cfg = {
  749. .name = "qhs_mss_cfg",
  750. .id = SM8450_SLAVE_CNOC_MSS,
  751. .channels = 1,
  752. .buswidth = 4,
  753. .num_links = 0,
  754. };
  755. static struct qcom_icc_node qhs_mx_rdpm = {
  756. .name = "qhs_mx_rdpm",
  757. .id = SM8450_SLAVE_MX_RDPM,
  758. .channels = 1,
  759. .buswidth = 4,
  760. .num_links = 0,
  761. };
  762. static struct qcom_icc_node qhs_pcie0_cfg = {
  763. .name = "qhs_pcie0_cfg",
  764. .id = SM8450_SLAVE_PCIE_0_CFG,
  765. .channels = 1,
  766. .buswidth = 4,
  767. .num_links = 0,
  768. };
  769. static struct qcom_icc_node qhs_pcie1_cfg = {
  770. .name = "qhs_pcie1_cfg",
  771. .id = SM8450_SLAVE_PCIE_1_CFG,
  772. .channels = 1,
  773. .buswidth = 4,
  774. .num_links = 0,
  775. };
  776. static struct qcom_icc_node qhs_pdm = {
  777. .name = "qhs_pdm",
  778. .id = SM8450_SLAVE_PDM,
  779. .channels = 1,
  780. .buswidth = 4,
  781. .num_links = 0,
  782. };
  783. static struct qcom_icc_node qhs_pimem_cfg = {
  784. .name = "qhs_pimem_cfg",
  785. .id = SM8450_SLAVE_PIMEM_CFG,
  786. .channels = 1,
  787. .buswidth = 4,
  788. .num_links = 0,
  789. };
  790. static struct qcom_icc_node qhs_prng = {
  791. .name = "qhs_prng",
  792. .id = SM8450_SLAVE_PRNG,
  793. .channels = 1,
  794. .buswidth = 4,
  795. .num_links = 0,
  796. };
  797. static struct qcom_icc_node qhs_qdss_cfg = {
  798. .name = "qhs_qdss_cfg",
  799. .id = SM8450_SLAVE_QDSS_CFG,
  800. .channels = 1,
  801. .buswidth = 4,
  802. .num_links = 0,
  803. };
  804. static struct qcom_icc_node qhs_qspi = {
  805. .name = "qhs_qspi",
  806. .id = SM8450_SLAVE_QSPI_0,
  807. .channels = 1,
  808. .buswidth = 4,
  809. .num_links = 0,
  810. };
  811. static struct qcom_icc_node qhs_qup0 = {
  812. .name = "qhs_qup0",
  813. .id = SM8450_SLAVE_QUP_0,
  814. .channels = 1,
  815. .buswidth = 4,
  816. .num_links = 0,
  817. };
  818. static struct qcom_icc_node qhs_qup1 = {
  819. .name = "qhs_qup1",
  820. .id = SM8450_SLAVE_QUP_1,
  821. .channels = 1,
  822. .buswidth = 4,
  823. .num_links = 0,
  824. };
  825. static struct qcom_icc_node qhs_qup2 = {
  826. .name = "qhs_qup2",
  827. .id = SM8450_SLAVE_QUP_2,
  828. .channels = 1,
  829. .buswidth = 4,
  830. .num_links = 0,
  831. };
  832. static struct qcom_icc_node qhs_sdc2 = {
  833. .name = "qhs_sdc2",
  834. .id = SM8450_SLAVE_SDCC_2,
  835. .channels = 1,
  836. .buswidth = 4,
  837. .num_links = 0,
  838. };
  839. static struct qcom_icc_node qhs_sdc4 = {
  840. .name = "qhs_sdc4",
  841. .id = SM8450_SLAVE_SDCC_4,
  842. .channels = 1,
  843. .buswidth = 4,
  844. .num_links = 0,
  845. };
  846. static struct qcom_icc_node qhs_spss_cfg = {
  847. .name = "qhs_spss_cfg",
  848. .id = SM8450_SLAVE_SPSS_CFG,
  849. .channels = 1,
  850. .buswidth = 4,
  851. .num_links = 0,
  852. };
  853. static struct qcom_icc_node qhs_tcsr = {
  854. .name = "qhs_tcsr",
  855. .id = SM8450_SLAVE_TCSR,
  856. .channels = 1,
  857. .buswidth = 4,
  858. .num_links = 0,
  859. };
  860. static struct qcom_icc_node qhs_tlmm = {
  861. .name = "qhs_tlmm",
  862. .id = SM8450_SLAVE_TLMM,
  863. .channels = 1,
  864. .buswidth = 4,
  865. .num_links = 0,
  866. };
  867. static struct qcom_icc_node qhs_tme_cfg = {
  868. .name = "qhs_tme_cfg",
  869. .id = SM8450_SLAVE_TME_CFG,
  870. .channels = 1,
  871. .buswidth = 4,
  872. .num_links = 0,
  873. };
  874. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  875. .name = "qhs_ufs_mem_cfg",
  876. .id = SM8450_SLAVE_UFS_MEM_CFG,
  877. .channels = 1,
  878. .buswidth = 4,
  879. .num_links = 0,
  880. };
  881. static struct qcom_icc_node qhs_usb3_0 = {
  882. .name = "qhs_usb3_0",
  883. .id = SM8450_SLAVE_USB3_0,
  884. .channels = 1,
  885. .buswidth = 4,
  886. .num_links = 0,
  887. };
  888. static struct qcom_icc_node qhs_venus_cfg = {
  889. .name = "qhs_venus_cfg",
  890. .id = SM8450_SLAVE_VENUS_CFG,
  891. .channels = 1,
  892. .buswidth = 4,
  893. .num_links = 0,
  894. };
  895. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  896. .name = "qhs_vsense_ctrl_cfg",
  897. .id = SM8450_SLAVE_VSENSE_CTRL_CFG,
  898. .channels = 1,
  899. .buswidth = 4,
  900. .num_links = 0,
  901. };
  902. static struct qcom_icc_node qns_a1_noc_cfg = {
  903. .name = "qns_a1_noc_cfg",
  904. .id = SM8450_SLAVE_A1NOC_CFG,
  905. .channels = 1,
  906. .buswidth = 4,
  907. .num_links = 1,
  908. .links = { SM8450_MASTER_A1NOC_CFG },
  909. };
  910. static struct qcom_icc_node qns_a2_noc_cfg = {
  911. .name = "qns_a2_noc_cfg",
  912. .id = SM8450_SLAVE_A2NOC_CFG,
  913. .channels = 1,
  914. .buswidth = 4,
  915. .num_links = 1,
  916. .links = { SM8450_MASTER_A2NOC_CFG },
  917. };
  918. static struct qcom_icc_node qns_ddrss_cfg = {
  919. .name = "qns_ddrss_cfg",
  920. .id = SM8450_SLAVE_DDRSS_CFG,
  921. .channels = 1,
  922. .buswidth = 4,
  923. .num_links = 1,
  924. //FIXME where is link
  925. };
  926. static struct qcom_icc_node qns_mnoc_cfg = {
  927. .name = "qns_mnoc_cfg",
  928. .id = SM8450_SLAVE_CNOC_MNOC_CFG,
  929. .channels = 1,
  930. .buswidth = 4,
  931. .num_links = 1,
  932. .links = { SM8450_MASTER_CNOC_MNOC_CFG },
  933. };
  934. static struct qcom_icc_node qns_pcie_anoc_cfg = {
  935. .name = "qns_pcie_anoc_cfg",
  936. .id = SM8450_SLAVE_PCIE_ANOC_CFG,
  937. .channels = 1,
  938. .buswidth = 4,
  939. .num_links = 1,
  940. .links = { SM8450_MASTER_PCIE_ANOC_CFG },
  941. };
  942. static struct qcom_icc_node qns_snoc_cfg = {
  943. .name = "qns_snoc_cfg",
  944. .id = SM8450_SLAVE_SNOC_CFG,
  945. .channels = 1,
  946. .buswidth = 4,
  947. .num_links = 1,
  948. .links = { SM8450_MASTER_SNOC_CFG },
  949. };
  950. static struct qcom_icc_node qxs_imem = {
  951. .name = "qxs_imem",
  952. .id = SM8450_SLAVE_IMEM,
  953. .channels = 1,
  954. .buswidth = 8,
  955. .num_links = 0,
  956. };
  957. static struct qcom_icc_node qxs_pimem = {
  958. .name = "qxs_pimem",
  959. .id = SM8450_SLAVE_PIMEM,
  960. .channels = 1,
  961. .buswidth = 8,
  962. .num_links = 0,
  963. };
  964. static struct qcom_icc_node srvc_cnoc = {
  965. .name = "srvc_cnoc",
  966. .id = SM8450_SLAVE_SERVICE_CNOC,
  967. .channels = 1,
  968. .buswidth = 4,
  969. .num_links = 0,
  970. };
  971. static struct qcom_icc_node xs_pcie_0 = {
  972. .name = "xs_pcie_0",
  973. .id = SM8450_SLAVE_PCIE_0,
  974. .channels = 1,
  975. .buswidth = 8,
  976. .num_links = 0,
  977. };
  978. static struct qcom_icc_node xs_pcie_1 = {
  979. .name = "xs_pcie_1",
  980. .id = SM8450_SLAVE_PCIE_1,
  981. .channels = 1,
  982. .buswidth = 8,
  983. .num_links = 0,
  984. };
  985. static struct qcom_icc_node xs_qdss_stm = {
  986. .name = "xs_qdss_stm",
  987. .id = SM8450_SLAVE_QDSS_STM,
  988. .channels = 1,
  989. .buswidth = 4,
  990. .num_links = 0,
  991. };
  992. static struct qcom_icc_node xs_sys_tcu_cfg = {
  993. .name = "xs_sys_tcu_cfg",
  994. .id = SM8450_SLAVE_TCU,
  995. .channels = 1,
  996. .buswidth = 8,
  997. .num_links = 0,
  998. };
  999. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1000. .name = "qns_gem_noc_cnoc",
  1001. .id = SM8450_SLAVE_GEM_NOC_CNOC,
  1002. .channels = 1,
  1003. .buswidth = 16,
  1004. .num_links = 1,
  1005. .links = { SM8450_MASTER_GEM_NOC_CNOC },
  1006. };
  1007. static struct qcom_icc_node qns_llcc = {
  1008. .name = "qns_llcc",
  1009. .id = SM8450_SLAVE_LLCC,
  1010. .channels = 4,
  1011. .buswidth = 16,
  1012. .num_links = 1,
  1013. .links = { SM8450_MASTER_LLCC },
  1014. };
  1015. static struct qcom_icc_node qns_pcie = {
  1016. .name = "qns_pcie",
  1017. .id = SM8450_SLAVE_MEM_NOC_PCIE_SNOC,
  1018. .channels = 1,
  1019. .buswidth = 8,
  1020. .num_links = 1,
  1021. .links = { SM8450_MASTER_GEM_NOC_PCIE_SNOC },
  1022. };
  1023. static struct qcom_icc_node qhs_lpass_core = {
  1024. .name = "qhs_lpass_core",
  1025. .id = SM8450_SLAVE_LPASS_CORE_CFG,
  1026. .channels = 1,
  1027. .buswidth = 4,
  1028. .num_links = 0,
  1029. };
  1030. static struct qcom_icc_node qhs_lpass_lpi = {
  1031. .name = "qhs_lpass_lpi",
  1032. .id = SM8450_SLAVE_LPASS_LPI_CFG,
  1033. .channels = 1,
  1034. .buswidth = 4,
  1035. .num_links = 0,
  1036. };
  1037. static struct qcom_icc_node qhs_lpass_mpu = {
  1038. .name = "qhs_lpass_mpu",
  1039. .id = SM8450_SLAVE_LPASS_MPU_CFG,
  1040. .channels = 1,
  1041. .buswidth = 4,
  1042. .num_links = 0,
  1043. };
  1044. static struct qcom_icc_node qhs_lpass_top = {
  1045. .name = "qhs_lpass_top",
  1046. .id = SM8450_SLAVE_LPASS_TOP_CFG,
  1047. .channels = 1,
  1048. .buswidth = 4,
  1049. .num_links = 0,
  1050. };
  1051. static struct qcom_icc_node qns_sysnoc = {
  1052. .name = "qns_sysnoc",
  1053. .id = SM8450_SLAVE_LPASS_SNOC,
  1054. .channels = 1,
  1055. .buswidth = 16,
  1056. .num_links = 1,
  1057. .links = { SM8450_MASTER_LPASS_ANOC },
  1058. };
  1059. static struct qcom_icc_node srvc_niu_aml_noc = {
  1060. .name = "srvc_niu_aml_noc",
  1061. .id = SM8450_SLAVE_SERVICES_LPASS_AML_NOC,
  1062. .channels = 1,
  1063. .buswidth = 4,
  1064. .num_links = 0,
  1065. };
  1066. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1067. .name = "srvc_niu_lpass_agnoc",
  1068. .id = SM8450_SLAVE_SERVICE_LPASS_AG_NOC,
  1069. .channels = 1,
  1070. .buswidth = 4,
  1071. .num_links = 0,
  1072. };
  1073. static struct qcom_icc_node ebi = {
  1074. .name = "ebi",
  1075. .id = SM8450_SLAVE_EBI1,
  1076. .channels = 4,
  1077. .buswidth = 4,
  1078. .num_links = 0,
  1079. };
  1080. static struct qcom_icc_node qns_mem_noc_hf = {
  1081. .name = "qns_mem_noc_hf",
  1082. .id = SM8450_SLAVE_MNOC_HF_MEM_NOC,
  1083. .channels = 2,
  1084. .buswidth = 32,
  1085. .num_links = 1,
  1086. .links = { SM8450_MASTER_MNOC_HF_MEM_NOC },
  1087. };
  1088. static struct qcom_icc_node qns_mem_noc_sf = {
  1089. .name = "qns_mem_noc_sf",
  1090. .id = SM8450_SLAVE_MNOC_SF_MEM_NOC,
  1091. .channels = 2,
  1092. .buswidth = 32,
  1093. .num_links = 1,
  1094. .links = { SM8450_MASTER_MNOC_SF_MEM_NOC },
  1095. };
  1096. static struct qcom_icc_node srvc_mnoc = {
  1097. .name = "srvc_mnoc",
  1098. .id = SM8450_SLAVE_SERVICE_MNOC,
  1099. .channels = 1,
  1100. .buswidth = 4,
  1101. .num_links = 0,
  1102. };
  1103. static struct qcom_icc_node qns_nsp_gemnoc = {
  1104. .name = "qns_nsp_gemnoc",
  1105. .id = SM8450_SLAVE_CDSP_MEM_NOC,
  1106. .channels = 2,
  1107. .buswidth = 32,
  1108. .num_links = 1,
  1109. .links = { SM8450_MASTER_COMPUTE_NOC },
  1110. };
  1111. static struct qcom_icc_node service_nsp_noc = {
  1112. .name = "service_nsp_noc",
  1113. .id = SM8450_SLAVE_SERVICE_NSP_NOC,
  1114. .channels = 1,
  1115. .buswidth = 4,
  1116. .num_links = 0,
  1117. };
  1118. static struct qcom_icc_node qns_pcie_mem_noc = {
  1119. .name = "qns_pcie_mem_noc",
  1120. .id = SM8450_SLAVE_ANOC_PCIE_GEM_NOC,
  1121. .channels = 1,
  1122. .buswidth = 16,
  1123. .num_links = 1,
  1124. .links = { SM8450_MASTER_ANOC_PCIE_GEM_NOC },
  1125. };
  1126. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  1127. .name = "srvc_pcie_aggre_noc",
  1128. .id = SM8450_SLAVE_SERVICE_PCIE_ANOC,
  1129. .channels = 1,
  1130. .buswidth = 4,
  1131. .num_links = 0,
  1132. };
  1133. static struct qcom_icc_node qns_gemnoc_gc = {
  1134. .name = "qns_gemnoc_gc",
  1135. .id = SM8450_SLAVE_SNOC_GEM_NOC_GC,
  1136. .channels = 1,
  1137. .buswidth = 8,
  1138. .num_links = 1,
  1139. .links = { SM8450_MASTER_SNOC_GC_MEM_NOC },
  1140. };
  1141. static struct qcom_icc_node qns_gemnoc_sf = {
  1142. .name = "qns_gemnoc_sf",
  1143. .id = SM8450_SLAVE_SNOC_GEM_NOC_SF,
  1144. .channels = 1,
  1145. .buswidth = 16,
  1146. .num_links = 1,
  1147. .links = { SM8450_MASTER_SNOC_SF_MEM_NOC },
  1148. };
  1149. static struct qcom_icc_node srvc_snoc = {
  1150. .name = "srvc_snoc",
  1151. .id = SM8450_SLAVE_SERVICE_SNOC,
  1152. .channels = 1,
  1153. .buswidth = 4,
  1154. .num_links = 0,
  1155. };
  1156. static struct qcom_icc_node qns_llcc_disp = {
  1157. .name = "qns_llcc_disp",
  1158. .id = SM8450_SLAVE_LLCC_DISP,
  1159. .channels = 4,
  1160. .buswidth = 16,
  1161. .num_links = 1,
  1162. .links = { SM8450_MASTER_LLCC_DISP },
  1163. };
  1164. static struct qcom_icc_node ebi_disp = {
  1165. .name = "ebi_disp",
  1166. .id = SM8450_SLAVE_EBI1_DISP,
  1167. .channels = 4,
  1168. .buswidth = 4,
  1169. .num_links = 0,
  1170. };
  1171. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1172. .name = "qns_mem_noc_hf_disp",
  1173. .id = SM8450_SLAVE_MNOC_HF_MEM_NOC_DISP,
  1174. .channels = 2,
  1175. .buswidth = 32,
  1176. .num_links = 1,
  1177. .links = { SM8450_MASTER_MNOC_HF_MEM_NOC_DISP },
  1178. };
  1179. static struct qcom_icc_node qns_mem_noc_sf_disp = {
  1180. .name = "qns_mem_noc_sf_disp",
  1181. .id = SM8450_SLAVE_MNOC_SF_MEM_NOC_DISP,
  1182. .channels = 2,
  1183. .buswidth = 32,
  1184. .num_links = 1,
  1185. .links = { SM8450_MASTER_MNOC_SF_MEM_NOC_DISP },
  1186. };
  1187. static struct qcom_icc_bcm bcm_acv = {
  1188. .name = "ACV",
  1189. .enable_mask = 0x8,
  1190. .num_nodes = 1,
  1191. .nodes = { &ebi },
  1192. };
  1193. static struct qcom_icc_bcm bcm_ce0 = {
  1194. .name = "CE0",
  1195. .num_nodes = 1,
  1196. .nodes = { &qxm_crypto },
  1197. };
  1198. static struct qcom_icc_bcm bcm_cn0 = {
  1199. .name = "CN0",
  1200. .enable_mask = 0x1,
  1201. .keepalive = true,
  1202. .num_nodes = 55,
  1203. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
  1204. &qhs_ahb2phy0, &qhs_ahb2phy1,
  1205. &qhs_aoss, &qhs_camera_cfg,
  1206. &qhs_clk_ctl, &qhs_compute_cfg,
  1207. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1208. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1209. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  1210. &qhs_display_cfg, &qhs_gpuss_cfg,
  1211. &qhs_imem_cfg, &qhs_ipa,
  1212. &qhs_ipc_router, &qhs_lpass_cfg,
  1213. &qhs_mss_cfg, &qhs_mx_rdpm,
  1214. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1215. &qhs_pdm, &qhs_pimem_cfg,
  1216. &qhs_prng, &qhs_qdss_cfg,
  1217. &qhs_qspi, &qhs_qup0,
  1218. &qhs_qup1, &qhs_qup2,
  1219. &qhs_sdc2, &qhs_sdc4,
  1220. &qhs_spss_cfg, &qhs_tcsr,
  1221. &qhs_tlmm, &qhs_tme_cfg,
  1222. &qhs_ufs_mem_cfg, &qhs_usb3_0,
  1223. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  1224. &qns_a1_noc_cfg, &qns_a2_noc_cfg,
  1225. &qns_ddrss_cfg, &qns_mnoc_cfg,
  1226. &qns_pcie_anoc_cfg, &qns_snoc_cfg,
  1227. &qxs_imem, &qxs_pimem,
  1228. &srvc_cnoc, &xs_pcie_0,
  1229. &xs_pcie_1, &xs_qdss_stm,
  1230. &xs_sys_tcu_cfg },
  1231. };
  1232. static struct qcom_icc_bcm bcm_co0 = {
  1233. .name = "CO0",
  1234. .enable_mask = 0x1,
  1235. .num_nodes = 2,
  1236. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1237. };
  1238. static struct qcom_icc_bcm bcm_mc0 = {
  1239. .name = "MC0",
  1240. .keepalive = true,
  1241. .num_nodes = 1,
  1242. .nodes = { &ebi },
  1243. };
  1244. static struct qcom_icc_bcm bcm_mm0 = {
  1245. .name = "MM0",
  1246. .keepalive = true,
  1247. .num_nodes = 1,
  1248. .nodes = { &qns_mem_noc_hf },
  1249. };
  1250. static struct qcom_icc_bcm bcm_mm1 = {
  1251. .name = "MM1",
  1252. .enable_mask = 0x1,
  1253. .num_nodes = 12,
  1254. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1255. &qnm_camnoc_sf, &qnm_mdp,
  1256. &qnm_mnoc_cfg, &qnm_rot,
  1257. &qnm_vapss_hcp, &qnm_video,
  1258. &qnm_video_cv_cpu, &qnm_video_cvp,
  1259. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1260. };
  1261. static struct qcom_icc_bcm bcm_qup0 = {
  1262. .name = "QUP0",
  1263. .keepalive = true,
  1264. .vote_scale = 1,
  1265. .num_nodes = 1,
  1266. .nodes = { &qup0_core_slave },
  1267. };
  1268. static struct qcom_icc_bcm bcm_qup1 = {
  1269. .name = "QUP1",
  1270. .keepalive = true,
  1271. .vote_scale = 1,
  1272. .num_nodes = 1,
  1273. .nodes = { &qup1_core_slave },
  1274. };
  1275. static struct qcom_icc_bcm bcm_qup2 = {
  1276. .name = "QUP2",
  1277. .keepalive = true,
  1278. .vote_scale = 1,
  1279. .num_nodes = 1,
  1280. .nodes = { &qup2_core_slave },
  1281. };
  1282. static struct qcom_icc_bcm bcm_sh0 = {
  1283. .name = "SH0",
  1284. .keepalive = true,
  1285. .num_nodes = 1,
  1286. .nodes = { &qns_llcc },
  1287. };
  1288. static struct qcom_icc_bcm bcm_sh1 = {
  1289. .name = "SH1",
  1290. .enable_mask = 0x1,
  1291. .num_nodes = 7,
  1292. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1293. &qnm_nsp_gemnoc, &qnm_pcie,
  1294. &qnm_snoc_gc, &qns_gem_noc_cnoc,
  1295. &qns_pcie },
  1296. };
  1297. static struct qcom_icc_bcm bcm_sn0 = {
  1298. .name = "SN0",
  1299. .keepalive = true,
  1300. .num_nodes = 1,
  1301. .nodes = { &qns_gemnoc_sf },
  1302. };
  1303. static struct qcom_icc_bcm bcm_sn1 = {
  1304. .name = "SN1",
  1305. .enable_mask = 0x1,
  1306. .num_nodes = 4,
  1307. .nodes = { &qhm_gic, &qxm_pimem,
  1308. &xm_gic, &qns_gemnoc_gc },
  1309. };
  1310. static struct qcom_icc_bcm bcm_sn2 = {
  1311. .name = "SN2",
  1312. .num_nodes = 1,
  1313. .nodes = { &qnm_aggre1_noc },
  1314. };
  1315. static struct qcom_icc_bcm bcm_sn3 = {
  1316. .name = "SN3",
  1317. .num_nodes = 1,
  1318. .nodes = { &qnm_aggre2_noc },
  1319. };
  1320. static struct qcom_icc_bcm bcm_sn4 = {
  1321. .name = "SN4",
  1322. .num_nodes = 1,
  1323. .nodes = { &qnm_lpass_noc },
  1324. };
  1325. static struct qcom_icc_bcm bcm_sn7 = {
  1326. .name = "SN7",
  1327. .num_nodes = 1,
  1328. .nodes = { &qns_pcie_mem_noc },
  1329. };
  1330. static struct qcom_icc_bcm bcm_acv_disp = {
  1331. .name = "ACV",
  1332. .enable_mask = 0x1,
  1333. .num_nodes = 1,
  1334. .nodes = { &ebi_disp },
  1335. };
  1336. static struct qcom_icc_bcm bcm_mc0_disp = {
  1337. .name = "MC0",
  1338. .num_nodes = 1,
  1339. .nodes = { &ebi_disp },
  1340. };
  1341. static struct qcom_icc_bcm bcm_mm0_disp = {
  1342. .name = "MM0",
  1343. .num_nodes = 1,
  1344. .nodes = { &qns_mem_noc_hf_disp },
  1345. };
  1346. static struct qcom_icc_bcm bcm_mm1_disp = {
  1347. .name = "MM1",
  1348. .enable_mask = 0x1,
  1349. .num_nodes = 3,
  1350. .nodes = { &qnm_mdp_disp, &qnm_rot_disp,
  1351. &qns_mem_noc_sf_disp },
  1352. };
  1353. static struct qcom_icc_bcm bcm_sh0_disp = {
  1354. .name = "SH0",
  1355. .num_nodes = 1,
  1356. .nodes = { &qns_llcc_disp },
  1357. };
  1358. static struct qcom_icc_bcm bcm_sh1_disp = {
  1359. .name = "SH1",
  1360. .enable_mask = 0x1,
  1361. .num_nodes = 1,
  1362. .nodes = { &qnm_pcie_disp },
  1363. };
  1364. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1365. };
  1366. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1367. [MASTER_QSPI_0] = &qhm_qspi,
  1368. [MASTER_QUP_1] = &qhm_qup1,
  1369. [MASTER_A1NOC_CFG] = &qnm_a1noc_cfg,
  1370. [MASTER_SDCC_4] = &xm_sdc4,
  1371. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1372. [MASTER_USB3_0] = &xm_usb3_0,
  1373. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1374. [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
  1375. };
  1376. static const struct qcom_icc_desc sm8450_aggre1_noc = {
  1377. .nodes = aggre1_noc_nodes,
  1378. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1379. .bcms = aggre1_noc_bcms,
  1380. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1381. };
  1382. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1383. &bcm_ce0,
  1384. };
  1385. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1386. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1387. [MASTER_QUP_0] = &qhm_qup0,
  1388. [MASTER_QUP_2] = &qhm_qup2,
  1389. [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg,
  1390. [MASTER_CRYPTO] = &qxm_crypto,
  1391. [MASTER_IPA] = &qxm_ipa,
  1392. [MASTER_SENSORS_PROC] = &qxm_sensorss_q6,
  1393. [MASTER_SP] = &qxm_sp,
  1394. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1395. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1396. [MASTER_SDCC_2] = &xm_sdc2,
  1397. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1398. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1399. };
  1400. static const struct qcom_icc_desc sm8450_aggre2_noc = {
  1401. .nodes = aggre2_noc_nodes,
  1402. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1403. .bcms = aggre2_noc_bcms,
  1404. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1405. };
  1406. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1407. &bcm_qup0,
  1408. &bcm_qup1,
  1409. &bcm_qup2,
  1410. };
  1411. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1412. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1413. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1414. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1415. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1416. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1417. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1418. };
  1419. static const struct qcom_icc_desc sm8450_clk_virt = {
  1420. .nodes = clk_virt_nodes,
  1421. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1422. .bcms = clk_virt_bcms,
  1423. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1424. };
  1425. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1426. &bcm_cn0,
  1427. };
  1428. static struct qcom_icc_node * const config_noc_nodes[] = {
  1429. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1430. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1431. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1432. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1433. [SLAVE_AOSS] = &qhs_aoss,
  1434. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1435. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1436. [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
  1437. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1438. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1439. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  1440. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  1441. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1442. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1443. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1444. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1445. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1446. [SLAVE_IPA_CFG] = &qhs_ipa,
  1447. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1448. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1449. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1450. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1451. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1452. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1453. [SLAVE_PDM] = &qhs_pdm,
  1454. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1455. [SLAVE_PRNG] = &qhs_prng,
  1456. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1457. [SLAVE_QSPI_0] = &qhs_qspi,
  1458. [SLAVE_QUP_0] = &qhs_qup0,
  1459. [SLAVE_QUP_1] = &qhs_qup1,
  1460. [SLAVE_QUP_2] = &qhs_qup2,
  1461. [SLAVE_SDCC_2] = &qhs_sdc2,
  1462. [SLAVE_SDCC_4] = &qhs_sdc4,
  1463. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1464. [SLAVE_TCSR] = &qhs_tcsr,
  1465. [SLAVE_TLMM] = &qhs_tlmm,
  1466. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1467. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1468. [SLAVE_USB3_0] = &qhs_usb3_0,
  1469. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1470. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1471. [SLAVE_A1NOC_CFG] = &qns_a1_noc_cfg,
  1472. [SLAVE_A2NOC_CFG] = &qns_a2_noc_cfg,
  1473. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1474. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1475. [SLAVE_PCIE_ANOC_CFG] = &qns_pcie_anoc_cfg,
  1476. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1477. [SLAVE_IMEM] = &qxs_imem,
  1478. [SLAVE_PIMEM] = &qxs_pimem,
  1479. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1480. [SLAVE_PCIE_0] = &xs_pcie_0,
  1481. [SLAVE_PCIE_1] = &xs_pcie_1,
  1482. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1483. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1484. };
  1485. static const struct qcom_icc_desc sm8450_config_noc = {
  1486. .nodes = config_noc_nodes,
  1487. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1488. .bcms = config_noc_bcms,
  1489. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1490. };
  1491. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1492. &bcm_sh0,
  1493. &bcm_sh1,
  1494. &bcm_sh0_disp,
  1495. &bcm_sh1_disp,
  1496. };
  1497. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1498. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1499. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1500. [MASTER_APPSS_PROC] = &chm_apps,
  1501. [MASTER_GFX3D] = &qnm_gpu,
  1502. [MASTER_MSS_PROC] = &qnm_mdsp,
  1503. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1504. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1505. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  1506. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1507. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1508. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1509. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1510. [SLAVE_LLCC] = &qns_llcc,
  1511. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1512. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  1513. [MASTER_MNOC_SF_MEM_NOC_DISP] = &qnm_mnoc_sf_disp,
  1514. [MASTER_ANOC_PCIE_GEM_NOC_DISP] = &qnm_pcie_disp,
  1515. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  1516. };
  1517. static const struct qcom_icc_desc sm8450_gem_noc = {
  1518. .nodes = gem_noc_nodes,
  1519. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1520. .bcms = gem_noc_bcms,
  1521. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1522. };
  1523. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1524. };
  1525. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1526. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  1527. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  1528. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  1529. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  1530. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  1531. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  1532. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  1533. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  1534. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  1535. };
  1536. static const struct qcom_icc_desc sm8450_lpass_ag_noc = {
  1537. .nodes = lpass_ag_noc_nodes,
  1538. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1539. .bcms = lpass_ag_noc_bcms,
  1540. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1541. };
  1542. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1543. &bcm_acv,
  1544. &bcm_mc0,
  1545. &bcm_acv_disp,
  1546. &bcm_mc0_disp,
  1547. };
  1548. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1549. [MASTER_LLCC] = &llcc_mc,
  1550. [SLAVE_EBI1] = &ebi,
  1551. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  1552. [SLAVE_EBI1_DISP] = &ebi_disp,
  1553. };
  1554. static const struct qcom_icc_desc sm8450_mc_virt = {
  1555. .nodes = mc_virt_nodes,
  1556. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1557. .bcms = mc_virt_bcms,
  1558. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1559. };
  1560. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1561. &bcm_mm0,
  1562. &bcm_mm1,
  1563. &bcm_mm0_disp,
  1564. &bcm_mm1_disp,
  1565. };
  1566. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1567. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1568. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1569. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1570. [MASTER_MDP] = &qnm_mdp,
  1571. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  1572. [MASTER_ROTATOR] = &qnm_rot,
  1573. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  1574. [MASTER_VIDEO] = &qnm_video,
  1575. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1576. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1577. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1578. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1579. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1580. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1581. [MASTER_MDP_DISP] = &qnm_mdp_disp,
  1582. [MASTER_ROTATOR_DISP] = &qnm_rot_disp,
  1583. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  1584. [SLAVE_MNOC_SF_MEM_NOC_DISP] = &qns_mem_noc_sf_disp,
  1585. };
  1586. static const struct qcom_icc_desc sm8450_mmss_noc = {
  1587. .nodes = mmss_noc_nodes,
  1588. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1589. .bcms = mmss_noc_bcms,
  1590. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1591. };
  1592. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1593. &bcm_co0,
  1594. };
  1595. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1596. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  1597. [MASTER_CDSP_PROC] = &qxm_nsp,
  1598. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1599. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  1600. };
  1601. static const struct qcom_icc_desc sm8450_nsp_noc = {
  1602. .nodes = nsp_noc_nodes,
  1603. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1604. .bcms = nsp_noc_bcms,
  1605. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1606. };
  1607. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  1608. &bcm_sn7,
  1609. };
  1610. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  1611. [MASTER_PCIE_ANOC_CFG] = &qnm_pcie_anoc_cfg,
  1612. [MASTER_PCIE_0] = &xm_pcie3_0,
  1613. [MASTER_PCIE_1] = &xm_pcie3_1,
  1614. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1615. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  1616. };
  1617. static const struct qcom_icc_desc sm8450_pcie_anoc = {
  1618. .nodes = pcie_anoc_nodes,
  1619. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  1620. .bcms = pcie_anoc_bcms,
  1621. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  1622. };
  1623. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1624. &bcm_sn0,
  1625. &bcm_sn1,
  1626. &bcm_sn2,
  1627. &bcm_sn3,
  1628. &bcm_sn4,
  1629. };
  1630. static struct qcom_icc_node * const system_noc_nodes[] = {
  1631. [MASTER_GIC_AHB] = &qhm_gic,
  1632. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1633. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1634. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  1635. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  1636. [MASTER_PIMEM] = &qxm_pimem,
  1637. [MASTER_GIC] = &xm_gic,
  1638. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1639. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1640. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1641. };
  1642. static const struct qcom_icc_desc sm8450_system_noc = {
  1643. .nodes = system_noc_nodes,
  1644. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1645. .bcms = system_noc_bcms,
  1646. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1647. };
  1648. static const struct of_device_id qnoc_of_match[] = {
  1649. { .compatible = "qcom,sm8450-aggre1-noc",
  1650. .data = &sm8450_aggre1_noc},
  1651. { .compatible = "qcom,sm8450-aggre2-noc",
  1652. .data = &sm8450_aggre2_noc},
  1653. { .compatible = "qcom,sm8450-clk-virt",
  1654. .data = &sm8450_clk_virt},
  1655. { .compatible = "qcom,sm8450-config-noc",
  1656. .data = &sm8450_config_noc},
  1657. { .compatible = "qcom,sm8450-gem-noc",
  1658. .data = &sm8450_gem_noc},
  1659. { .compatible = "qcom,sm8450-lpass-ag-noc",
  1660. .data = &sm8450_lpass_ag_noc},
  1661. { .compatible = "qcom,sm8450-mc-virt",
  1662. .data = &sm8450_mc_virt},
  1663. { .compatible = "qcom,sm8450-mmss-noc",
  1664. .data = &sm8450_mmss_noc},
  1665. { .compatible = "qcom,sm8450-nsp-noc",
  1666. .data = &sm8450_nsp_noc},
  1667. { .compatible = "qcom,sm8450-pcie-anoc",
  1668. .data = &sm8450_pcie_anoc},
  1669. { .compatible = "qcom,sm8450-system-noc",
  1670. .data = &sm8450_system_noc},
  1671. { }
  1672. };
  1673. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1674. static struct platform_driver qnoc_driver = {
  1675. .probe = qcom_icc_rpmh_probe,
  1676. .remove_new = qcom_icc_rpmh_remove,
  1677. .driver = {
  1678. .name = "qnoc-sm8450",
  1679. .of_match_table = qnoc_of_match,
  1680. .sync_state = icc_sync_state,
  1681. },
  1682. };
  1683. static int __init qnoc_driver_init(void)
  1684. {
  1685. return platform_driver_register(&qnoc_driver);
  1686. }
  1687. core_initcall(qnoc_driver_init);
  1688. static void __exit qnoc_driver_exit(void)
  1689. {
  1690. platform_driver_unregister(&qnoc_driver);
  1691. }
  1692. module_exit(qnoc_driver_exit);
  1693. MODULE_DESCRIPTION("sm8450 NoC driver");
  1694. MODULE_LICENSE("GPL v2");