sc8180x.c 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2021, Linaro Ltd.
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect-provider.h>
  8. #include <linux/module.h>
  9. #include <linux/of_device.h>
  10. #include <dt-bindings/interconnect/qcom,sc8180x.h>
  11. #include "bcm-voter.h"
  12. #include "icc-rpmh.h"
  13. #include "sc8180x.h"
  14. static struct qcom_icc_node mas_qhm_a1noc_cfg = {
  15. .name = "mas_qhm_a1noc_cfg",
  16. .id = SC8180X_MASTER_A1NOC_CFG,
  17. .channels = 1,
  18. .buswidth = 4,
  19. .num_links = 1,
  20. .links = { SC8180X_SLAVE_SERVICE_A1NOC }
  21. };
  22. static struct qcom_icc_node mas_xm_ufs_card = {
  23. .name = "mas_xm_ufs_card",
  24. .id = SC8180X_MASTER_UFS_CARD,
  25. .channels = 1,
  26. .buswidth = 8,
  27. .num_links = 1,
  28. .links = { SC8180X_A1NOC_SNOC_SLV }
  29. };
  30. static struct qcom_icc_node mas_xm_ufs_g4 = {
  31. .name = "mas_xm_ufs_g4",
  32. .id = SC8180X_MASTER_UFS_GEN4,
  33. .channels = 1,
  34. .buswidth = 8,
  35. .num_links = 1,
  36. .links = { SC8180X_A1NOC_SNOC_SLV }
  37. };
  38. static struct qcom_icc_node mas_xm_ufs_mem = {
  39. .name = "mas_xm_ufs_mem",
  40. .id = SC8180X_MASTER_UFS_MEM,
  41. .channels = 1,
  42. .buswidth = 8,
  43. .num_links = 1,
  44. .links = { SC8180X_A1NOC_SNOC_SLV }
  45. };
  46. static struct qcom_icc_node mas_xm_usb3_0 = {
  47. .name = "mas_xm_usb3_0",
  48. .id = SC8180X_MASTER_USB3,
  49. .channels = 1,
  50. .buswidth = 8,
  51. .num_links = 1,
  52. .links = { SC8180X_A1NOC_SNOC_SLV }
  53. };
  54. static struct qcom_icc_node mas_xm_usb3_1 = {
  55. .name = "mas_xm_usb3_1",
  56. .id = SC8180X_MASTER_USB3_1,
  57. .channels = 1,
  58. .buswidth = 8,
  59. .num_links = 1,
  60. .links = { SC8180X_A1NOC_SNOC_SLV }
  61. };
  62. static struct qcom_icc_node mas_xm_usb3_2 = {
  63. .name = "mas_xm_usb3_2",
  64. .id = SC8180X_MASTER_USB3_2,
  65. .channels = 1,
  66. .buswidth = 16,
  67. .num_links = 1,
  68. .links = { SC8180X_A1NOC_SNOC_SLV }
  69. };
  70. static struct qcom_icc_node mas_qhm_a2noc_cfg = {
  71. .name = "mas_qhm_a2noc_cfg",
  72. .id = SC8180X_MASTER_A2NOC_CFG,
  73. .channels = 1,
  74. .buswidth = 4,
  75. .num_links = 1,
  76. .links = { SC8180X_SLAVE_SERVICE_A2NOC }
  77. };
  78. static struct qcom_icc_node mas_qhm_qdss_bam = {
  79. .name = "mas_qhm_qdss_bam",
  80. .id = SC8180X_MASTER_QDSS_BAM,
  81. .channels = 1,
  82. .buswidth = 4,
  83. .num_links = 1,
  84. .links = { SC8180X_A2NOC_SNOC_SLV }
  85. };
  86. static struct qcom_icc_node mas_qhm_qspi = {
  87. .name = "mas_qhm_qspi",
  88. .id = SC8180X_MASTER_QSPI_0,
  89. .channels = 1,
  90. .buswidth = 4,
  91. .num_links = 1,
  92. .links = { SC8180X_A2NOC_SNOC_SLV }
  93. };
  94. static struct qcom_icc_node mas_qhm_qspi1 = {
  95. .name = "mas_qhm_qspi1",
  96. .id = SC8180X_MASTER_QSPI_1,
  97. .channels = 1,
  98. .buswidth = 4,
  99. .num_links = 1,
  100. .links = { SC8180X_A2NOC_SNOC_SLV }
  101. };
  102. static struct qcom_icc_node mas_qhm_qup0 = {
  103. .name = "mas_qhm_qup0",
  104. .id = SC8180X_MASTER_QUP_0,
  105. .channels = 1,
  106. .buswidth = 4,
  107. .num_links = 1,
  108. .links = { SC8180X_A2NOC_SNOC_SLV }
  109. };
  110. static struct qcom_icc_node mas_qhm_qup1 = {
  111. .name = "mas_qhm_qup1",
  112. .id = SC8180X_MASTER_QUP_1,
  113. .channels = 1,
  114. .buswidth = 4,
  115. .num_links = 1,
  116. .links = { SC8180X_A2NOC_SNOC_SLV }
  117. };
  118. static struct qcom_icc_node mas_qhm_qup2 = {
  119. .name = "mas_qhm_qup2",
  120. .id = SC8180X_MASTER_QUP_2,
  121. .channels = 1,
  122. .buswidth = 4,
  123. .num_links = 1,
  124. .links = { SC8180X_A2NOC_SNOC_SLV }
  125. };
  126. static struct qcom_icc_node mas_qhm_sensorss_ahb = {
  127. .name = "mas_qhm_sensorss_ahb",
  128. .id = SC8180X_MASTER_SENSORS_AHB,
  129. .channels = 1,
  130. .buswidth = 4,
  131. .num_links = 1,
  132. .links = { SC8180X_A2NOC_SNOC_SLV }
  133. };
  134. static struct qcom_icc_node mas_qxm_crypto = {
  135. .name = "mas_qxm_crypto",
  136. .id = SC8180X_MASTER_CRYPTO_CORE_0,
  137. .channels = 1,
  138. .buswidth = 8,
  139. .num_links = 1,
  140. .links = { SC8180X_A2NOC_SNOC_SLV }
  141. };
  142. static struct qcom_icc_node mas_qxm_ipa = {
  143. .name = "mas_qxm_ipa",
  144. .id = SC8180X_MASTER_IPA,
  145. .channels = 1,
  146. .buswidth = 8,
  147. .num_links = 1,
  148. .links = { SC8180X_A2NOC_SNOC_SLV }
  149. };
  150. static struct qcom_icc_node mas_xm_emac = {
  151. .name = "mas_xm_emac",
  152. .id = SC8180X_MASTER_EMAC,
  153. .channels = 1,
  154. .buswidth = 8,
  155. .num_links = 1,
  156. .links = { SC8180X_A2NOC_SNOC_SLV }
  157. };
  158. static struct qcom_icc_node mas_xm_pcie3_0 = {
  159. .name = "mas_xm_pcie3_0",
  160. .id = SC8180X_MASTER_PCIE,
  161. .channels = 1,
  162. .buswidth = 8,
  163. .num_links = 1,
  164. .links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
  165. };
  166. static struct qcom_icc_node mas_xm_pcie3_1 = {
  167. .name = "mas_xm_pcie3_1",
  168. .id = SC8180X_MASTER_PCIE_1,
  169. .channels = 1,
  170. .buswidth = 16,
  171. .num_links = 1,
  172. .links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
  173. };
  174. static struct qcom_icc_node mas_xm_pcie3_2 = {
  175. .name = "mas_xm_pcie3_2",
  176. .id = SC8180X_MASTER_PCIE_2,
  177. .channels = 1,
  178. .buswidth = 8,
  179. .num_links = 1,
  180. .links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
  181. };
  182. static struct qcom_icc_node mas_xm_pcie3_3 = {
  183. .name = "mas_xm_pcie3_3",
  184. .id = SC8180X_MASTER_PCIE_3,
  185. .channels = 1,
  186. .buswidth = 16,
  187. .num_links = 1,
  188. .links = { SC8180X_SLAVE_ANOC_PCIE_GEM_NOC }
  189. };
  190. static struct qcom_icc_node mas_xm_qdss_etr = {
  191. .name = "mas_xm_qdss_etr",
  192. .id = SC8180X_MASTER_QDSS_ETR,
  193. .channels = 1,
  194. .buswidth = 8,
  195. .num_links = 1,
  196. .links = { SC8180X_A2NOC_SNOC_SLV }
  197. };
  198. static struct qcom_icc_node mas_xm_sdc2 = {
  199. .name = "mas_xm_sdc2",
  200. .id = SC8180X_MASTER_SDCC_2,
  201. .channels = 1,
  202. .buswidth = 8,
  203. .num_links = 1,
  204. .links = { SC8180X_A2NOC_SNOC_SLV }
  205. };
  206. static struct qcom_icc_node mas_xm_sdc4 = {
  207. .name = "mas_xm_sdc4",
  208. .id = SC8180X_MASTER_SDCC_4,
  209. .channels = 1,
  210. .buswidth = 8,
  211. .num_links = 1,
  212. .links = { SC8180X_A2NOC_SNOC_SLV }
  213. };
  214. static struct qcom_icc_node mas_qxm_camnoc_hf0_uncomp = {
  215. .name = "mas_qxm_camnoc_hf0_uncomp",
  216. .id = SC8180X_MASTER_CAMNOC_HF0_UNCOMP,
  217. .channels = 1,
  218. .buswidth = 32,
  219. .num_links = 1,
  220. .links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
  221. };
  222. static struct qcom_icc_node mas_qxm_camnoc_hf1_uncomp = {
  223. .name = "mas_qxm_camnoc_hf1_uncomp",
  224. .id = SC8180X_MASTER_CAMNOC_HF1_UNCOMP,
  225. .channels = 1,
  226. .buswidth = 32,
  227. .num_links = 1,
  228. .links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
  229. };
  230. static struct qcom_icc_node mas_qxm_camnoc_sf_uncomp = {
  231. .name = "mas_qxm_camnoc_sf_uncomp",
  232. .id = SC8180X_MASTER_CAMNOC_SF_UNCOMP,
  233. .channels = 1,
  234. .buswidth = 32,
  235. .num_links = 1,
  236. .links = { SC8180X_SLAVE_CAMNOC_UNCOMP }
  237. };
  238. static struct qcom_icc_node mas_qnm_npu = {
  239. .name = "mas_qnm_npu",
  240. .id = SC8180X_MASTER_NPU,
  241. .channels = 1,
  242. .buswidth = 32,
  243. .num_links = 1,
  244. .links = { SC8180X_SLAVE_CDSP_MEM_NOC }
  245. };
  246. static struct qcom_icc_node mas_qnm_snoc = {
  247. .name = "mas_qnm_snoc",
  248. .id = SC8180X_SNOC_CNOC_MAS,
  249. .channels = 1,
  250. .buswidth = 8,
  251. .num_links = 56,
  252. .links = { SC8180X_SLAVE_TLMM_SOUTH,
  253. SC8180X_SLAVE_CDSP_CFG,
  254. SC8180X_SLAVE_SPSS_CFG,
  255. SC8180X_SLAVE_CAMERA_CFG,
  256. SC8180X_SLAVE_SDCC_4,
  257. SC8180X_SLAVE_AHB2PHY_CENTER,
  258. SC8180X_SLAVE_SDCC_2,
  259. SC8180X_SLAVE_PCIE_2_CFG,
  260. SC8180X_SLAVE_CNOC_MNOC_CFG,
  261. SC8180X_SLAVE_EMAC_CFG,
  262. SC8180X_SLAVE_QSPI_0,
  263. SC8180X_SLAVE_QSPI_1,
  264. SC8180X_SLAVE_TLMM_EAST,
  265. SC8180X_SLAVE_SNOC_CFG,
  266. SC8180X_SLAVE_AHB2PHY_EAST,
  267. SC8180X_SLAVE_GLM,
  268. SC8180X_SLAVE_PDM,
  269. SC8180X_SLAVE_PCIE_1_CFG,
  270. SC8180X_SLAVE_A2NOC_CFG,
  271. SC8180X_SLAVE_QDSS_CFG,
  272. SC8180X_SLAVE_DISPLAY_CFG,
  273. SC8180X_SLAVE_TCSR,
  274. SC8180X_SLAVE_UFS_MEM_0_CFG,
  275. SC8180X_SLAVE_CNOC_DDRSS,
  276. SC8180X_SLAVE_PCIE_0_CFG,
  277. SC8180X_SLAVE_QUP_1,
  278. SC8180X_SLAVE_QUP_2,
  279. SC8180X_SLAVE_NPU_CFG,
  280. SC8180X_SLAVE_CRYPTO_0_CFG,
  281. SC8180X_SLAVE_GRAPHICS_3D_CFG,
  282. SC8180X_SLAVE_VENUS_CFG,
  283. SC8180X_SLAVE_TSIF,
  284. SC8180X_SLAVE_IPA_CFG,
  285. SC8180X_SLAVE_CLK_CTL,
  286. SC8180X_SLAVE_SECURITY,
  287. SC8180X_SLAVE_AOP,
  288. SC8180X_SLAVE_AHB2PHY_WEST,
  289. SC8180X_SLAVE_AHB2PHY_SOUTH,
  290. SC8180X_SLAVE_SERVICE_CNOC,
  291. SC8180X_SLAVE_UFS_CARD_CFG,
  292. SC8180X_SLAVE_USB3_1,
  293. SC8180X_SLAVE_USB3_2,
  294. SC8180X_SLAVE_PCIE_3_CFG,
  295. SC8180X_SLAVE_RBCPR_CX_CFG,
  296. SC8180X_SLAVE_TLMM_WEST,
  297. SC8180X_SLAVE_A1NOC_CFG,
  298. SC8180X_SLAVE_AOSS,
  299. SC8180X_SLAVE_PRNG,
  300. SC8180X_SLAVE_VSENSE_CTRL_CFG,
  301. SC8180X_SLAVE_QUP_0,
  302. SC8180X_SLAVE_USB3,
  303. SC8180X_SLAVE_RBCPR_MMCX_CFG,
  304. SC8180X_SLAVE_PIMEM_CFG,
  305. SC8180X_SLAVE_UFS_MEM_1_CFG,
  306. SC8180X_SLAVE_RBCPR_MX_CFG,
  307. SC8180X_SLAVE_IMEM_CFG }
  308. };
  309. static struct qcom_icc_node mas_qhm_cnoc_dc_noc = {
  310. .name = "mas_qhm_cnoc_dc_noc",
  311. .id = SC8180X_MASTER_CNOC_DC_NOC,
  312. .channels = 1,
  313. .buswidth = 4,
  314. .num_links = 2,
  315. .links = { SC8180X_SLAVE_LLCC_CFG,
  316. SC8180X_SLAVE_GEM_NOC_CFG }
  317. };
  318. static struct qcom_icc_node mas_acm_apps = {
  319. .name = "mas_acm_apps",
  320. .id = SC8180X_MASTER_AMPSS_M0,
  321. .channels = 4,
  322. .buswidth = 64,
  323. .num_links = 3,
  324. .links = { SC8180X_SLAVE_ECC,
  325. SC8180X_SLAVE_LLCC,
  326. SC8180X_SLAVE_GEM_NOC_SNOC }
  327. };
  328. static struct qcom_icc_node mas_acm_gpu_tcu = {
  329. .name = "mas_acm_gpu_tcu",
  330. .id = SC8180X_MASTER_GPU_TCU,
  331. .channels = 1,
  332. .buswidth = 8,
  333. .num_links = 2,
  334. .links = { SC8180X_SLAVE_LLCC,
  335. SC8180X_SLAVE_GEM_NOC_SNOC }
  336. };
  337. static struct qcom_icc_node mas_acm_sys_tcu = {
  338. .name = "mas_acm_sys_tcu",
  339. .id = SC8180X_MASTER_SYS_TCU,
  340. .channels = 1,
  341. .buswidth = 8,
  342. .num_links = 2,
  343. .links = { SC8180X_SLAVE_LLCC,
  344. SC8180X_SLAVE_GEM_NOC_SNOC }
  345. };
  346. static struct qcom_icc_node mas_qhm_gemnoc_cfg = {
  347. .name = "mas_qhm_gemnoc_cfg",
  348. .id = SC8180X_MASTER_GEM_NOC_CFG,
  349. .channels = 1,
  350. .buswidth = 4,
  351. .num_links = 3,
  352. .links = { SC8180X_SLAVE_SERVICE_GEM_NOC_1,
  353. SC8180X_SLAVE_SERVICE_GEM_NOC,
  354. SC8180X_SLAVE_MSS_PROC_MS_MPU_CFG }
  355. };
  356. static struct qcom_icc_node mas_qnm_cmpnoc = {
  357. .name = "mas_qnm_cmpnoc",
  358. .id = SC8180X_MASTER_COMPUTE_NOC,
  359. .channels = 2,
  360. .buswidth = 32,
  361. .num_links = 3,
  362. .links = { SC8180X_SLAVE_ECC,
  363. SC8180X_SLAVE_LLCC,
  364. SC8180X_SLAVE_GEM_NOC_SNOC }
  365. };
  366. static struct qcom_icc_node mas_qnm_gpu = {
  367. .name = "mas_qnm_gpu",
  368. .id = SC8180X_MASTER_GRAPHICS_3D,
  369. .channels = 4,
  370. .buswidth = 32,
  371. .num_links = 2,
  372. .links = { SC8180X_SLAVE_LLCC,
  373. SC8180X_SLAVE_GEM_NOC_SNOC }
  374. };
  375. static struct qcom_icc_node mas_qnm_mnoc_hf = {
  376. .name = "mas_qnm_mnoc_hf",
  377. .id = SC8180X_MASTER_MNOC_HF_MEM_NOC,
  378. .channels = 2,
  379. .buswidth = 32,
  380. .num_links = 1,
  381. .links = { SC8180X_SLAVE_LLCC }
  382. };
  383. static struct qcom_icc_node mas_qnm_mnoc_sf = {
  384. .name = "mas_qnm_mnoc_sf",
  385. .id = SC8180X_MASTER_MNOC_SF_MEM_NOC,
  386. .channels = 1,
  387. .buswidth = 32,
  388. .num_links = 2,
  389. .links = { SC8180X_SLAVE_LLCC,
  390. SC8180X_SLAVE_GEM_NOC_SNOC }
  391. };
  392. static struct qcom_icc_node mas_qnm_pcie = {
  393. .name = "mas_qnm_pcie",
  394. .id = SC8180X_MASTER_GEM_NOC_PCIE_SNOC,
  395. .channels = 1,
  396. .buswidth = 32,
  397. .num_links = 2,
  398. .links = { SC8180X_SLAVE_LLCC,
  399. SC8180X_SLAVE_GEM_NOC_SNOC }
  400. };
  401. static struct qcom_icc_node mas_qnm_snoc_gc = {
  402. .name = "mas_qnm_snoc_gc",
  403. .id = SC8180X_MASTER_SNOC_GC_MEM_NOC,
  404. .channels = 1,
  405. .buswidth = 8,
  406. .num_links = 1,
  407. .links = { SC8180X_SLAVE_LLCC }
  408. };
  409. static struct qcom_icc_node mas_qnm_snoc_sf = {
  410. .name = "mas_qnm_snoc_sf",
  411. .id = SC8180X_MASTER_SNOC_SF_MEM_NOC,
  412. .channels = 1,
  413. .buswidth = 32,
  414. .num_links = 1,
  415. .links = { SC8180X_SLAVE_LLCC }
  416. };
  417. static struct qcom_icc_node mas_qxm_ecc = {
  418. .name = "mas_qxm_ecc",
  419. .id = SC8180X_MASTER_ECC,
  420. .channels = 2,
  421. .buswidth = 32,
  422. .num_links = 1,
  423. .links = { SC8180X_SLAVE_LLCC }
  424. };
  425. static struct qcom_icc_node mas_ipa_core_master = {
  426. .name = "mas_ipa_core_master",
  427. .id = SC8180X_MASTER_IPA_CORE,
  428. .channels = 1,
  429. .buswidth = 8,
  430. .num_links = 1,
  431. .links = { SC8180X_SLAVE_IPA_CORE }
  432. };
  433. static struct qcom_icc_node mas_llcc_mc = {
  434. .name = "mas_llcc_mc",
  435. .id = SC8180X_MASTER_LLCC,
  436. .channels = 8,
  437. .buswidth = 4,
  438. .num_links = 1,
  439. .links = { SC8180X_SLAVE_EBI_CH0 }
  440. };
  441. static struct qcom_icc_node mas_qhm_mnoc_cfg = {
  442. .name = "mas_qhm_mnoc_cfg",
  443. .id = SC8180X_MASTER_CNOC_MNOC_CFG,
  444. .channels = 1,
  445. .buswidth = 4,
  446. .num_links = 1,
  447. .links = { SC8180X_SLAVE_SERVICE_MNOC }
  448. };
  449. static struct qcom_icc_node mas_qxm_camnoc_hf0 = {
  450. .name = "mas_qxm_camnoc_hf0",
  451. .id = SC8180X_MASTER_CAMNOC_HF0,
  452. .channels = 1,
  453. .buswidth = 32,
  454. .num_links = 1,
  455. .links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
  456. };
  457. static struct qcom_icc_node mas_qxm_camnoc_hf1 = {
  458. .name = "mas_qxm_camnoc_hf1",
  459. .id = SC8180X_MASTER_CAMNOC_HF1,
  460. .channels = 1,
  461. .buswidth = 32,
  462. .num_links = 1,
  463. .links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
  464. };
  465. static struct qcom_icc_node mas_qxm_camnoc_sf = {
  466. .name = "mas_qxm_camnoc_sf",
  467. .id = SC8180X_MASTER_CAMNOC_SF,
  468. .channels = 1,
  469. .buswidth = 32,
  470. .num_links = 1,
  471. .links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
  472. };
  473. static struct qcom_icc_node mas_qxm_mdp0 = {
  474. .name = "mas_qxm_mdp0",
  475. .id = SC8180X_MASTER_MDP_PORT0,
  476. .channels = 1,
  477. .buswidth = 32,
  478. .num_links = 1,
  479. .links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
  480. };
  481. static struct qcom_icc_node mas_qxm_mdp1 = {
  482. .name = "mas_qxm_mdp1",
  483. .id = SC8180X_MASTER_MDP_PORT1,
  484. .channels = 1,
  485. .buswidth = 32,
  486. .num_links = 1,
  487. .links = { SC8180X_SLAVE_MNOC_HF_MEM_NOC }
  488. };
  489. static struct qcom_icc_node mas_qxm_rot = {
  490. .name = "mas_qxm_rot",
  491. .id = SC8180X_MASTER_ROTATOR,
  492. .channels = 1,
  493. .buswidth = 32,
  494. .num_links = 1,
  495. .links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
  496. };
  497. static struct qcom_icc_node mas_qxm_venus0 = {
  498. .name = "mas_qxm_venus0",
  499. .id = SC8180X_MASTER_VIDEO_P0,
  500. .channels = 1,
  501. .buswidth = 32,
  502. .num_links = 1,
  503. .links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
  504. };
  505. static struct qcom_icc_node mas_qxm_venus1 = {
  506. .name = "mas_qxm_venus1",
  507. .id = SC8180X_MASTER_VIDEO_P1,
  508. .channels = 1,
  509. .buswidth = 32,
  510. .num_links = 1,
  511. .links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
  512. };
  513. static struct qcom_icc_node mas_qxm_venus_arm9 = {
  514. .name = "mas_qxm_venus_arm9",
  515. .id = SC8180X_MASTER_VIDEO_PROC,
  516. .channels = 1,
  517. .buswidth = 8,
  518. .num_links = 1,
  519. .links = { SC8180X_SLAVE_MNOC_SF_MEM_NOC }
  520. };
  521. static struct qcom_icc_node mas_qhm_snoc_cfg = {
  522. .name = "mas_qhm_snoc_cfg",
  523. .id = SC8180X_MASTER_SNOC_CFG,
  524. .channels = 1,
  525. .buswidth = 4,
  526. .num_links = 1,
  527. .links = { SC8180X_SLAVE_SERVICE_SNOC }
  528. };
  529. static struct qcom_icc_node mas_qnm_aggre1_noc = {
  530. .name = "mas_qnm_aggre1_noc",
  531. .id = SC8180X_A1NOC_SNOC_MAS,
  532. .channels = 1,
  533. .buswidth = 32,
  534. .num_links = 6,
  535. .links = { SC8180X_SLAVE_SNOC_GEM_NOC_SF,
  536. SC8180X_SLAVE_PIMEM,
  537. SC8180X_SLAVE_OCIMEM,
  538. SC8180X_SLAVE_APPSS,
  539. SC8180X_SNOC_CNOC_SLV,
  540. SC8180X_SLAVE_QDSS_STM }
  541. };
  542. static struct qcom_icc_node mas_qnm_aggre2_noc = {
  543. .name = "mas_qnm_aggre2_noc",
  544. .id = SC8180X_A2NOC_SNOC_MAS,
  545. .channels = 1,
  546. .buswidth = 16,
  547. .num_links = 11,
  548. .links = { SC8180X_SLAVE_SNOC_GEM_NOC_SF,
  549. SC8180X_SLAVE_PIMEM,
  550. SC8180X_SLAVE_PCIE_3,
  551. SC8180X_SLAVE_OCIMEM,
  552. SC8180X_SLAVE_APPSS,
  553. SC8180X_SLAVE_PCIE_2,
  554. SC8180X_SNOC_CNOC_SLV,
  555. SC8180X_SLAVE_PCIE_0,
  556. SC8180X_SLAVE_PCIE_1,
  557. SC8180X_SLAVE_TCU,
  558. SC8180X_SLAVE_QDSS_STM }
  559. };
  560. static struct qcom_icc_node mas_qnm_gemnoc = {
  561. .name = "mas_qnm_gemnoc",
  562. .id = SC8180X_MASTER_GEM_NOC_SNOC,
  563. .channels = 1,
  564. .buswidth = 8,
  565. .num_links = 6,
  566. .links = { SC8180X_SLAVE_PIMEM,
  567. SC8180X_SLAVE_OCIMEM,
  568. SC8180X_SLAVE_APPSS,
  569. SC8180X_SNOC_CNOC_SLV,
  570. SC8180X_SLAVE_TCU,
  571. SC8180X_SLAVE_QDSS_STM }
  572. };
  573. static struct qcom_icc_node mas_qxm_pimem = {
  574. .name = "mas_qxm_pimem",
  575. .id = SC8180X_MASTER_PIMEM,
  576. .channels = 1,
  577. .buswidth = 8,
  578. .num_links = 2,
  579. .links = { SC8180X_SLAVE_SNOC_GEM_NOC_GC,
  580. SC8180X_SLAVE_OCIMEM }
  581. };
  582. static struct qcom_icc_node mas_xm_gic = {
  583. .name = "mas_xm_gic",
  584. .id = SC8180X_MASTER_GIC,
  585. .channels = 1,
  586. .buswidth = 8,
  587. .num_links = 2,
  588. .links = { SC8180X_SLAVE_SNOC_GEM_NOC_GC,
  589. SC8180X_SLAVE_OCIMEM }
  590. };
  591. static struct qcom_icc_node mas_qup_core_0 = {
  592. .name = "mas_qup_core_0",
  593. .id = SC8180X_MASTER_QUP_CORE_0,
  594. .channels = 1,
  595. .buswidth = 4,
  596. .num_links = 1,
  597. .links = { SC8180X_SLAVE_QUP_CORE_0 }
  598. };
  599. static struct qcom_icc_node mas_qup_core_1 = {
  600. .name = "mas_qup_core_1",
  601. .id = SC8180X_MASTER_QUP_CORE_1,
  602. .channels = 1,
  603. .buswidth = 4,
  604. .num_links = 1,
  605. .links = { SC8180X_SLAVE_QUP_CORE_1 }
  606. };
  607. static struct qcom_icc_node mas_qup_core_2 = {
  608. .name = "mas_qup_core_2",
  609. .id = SC8180X_MASTER_QUP_CORE_2,
  610. .channels = 1,
  611. .buswidth = 4,
  612. .num_links = 1,
  613. .links = { SC8180X_SLAVE_QUP_CORE_2 }
  614. };
  615. static struct qcom_icc_node slv_qns_a1noc_snoc = {
  616. .name = "slv_qns_a1noc_snoc",
  617. .id = SC8180X_A1NOC_SNOC_SLV,
  618. .channels = 1,
  619. .buswidth = 32,
  620. .num_links = 1,
  621. .links = { SC8180X_A1NOC_SNOC_MAS }
  622. };
  623. static struct qcom_icc_node slv_srvc_aggre1_noc = {
  624. .name = "slv_srvc_aggre1_noc",
  625. .id = SC8180X_SLAVE_SERVICE_A1NOC,
  626. .channels = 1,
  627. .buswidth = 4
  628. };
  629. static struct qcom_icc_node slv_qns_a2noc_snoc = {
  630. .name = "slv_qns_a2noc_snoc",
  631. .id = SC8180X_A2NOC_SNOC_SLV,
  632. .channels = 1,
  633. .buswidth = 16,
  634. .num_links = 1,
  635. .links = { SC8180X_A2NOC_SNOC_MAS }
  636. };
  637. static struct qcom_icc_node slv_qns_pcie_mem_noc = {
  638. .name = "slv_qns_pcie_mem_noc",
  639. .id = SC8180X_SLAVE_ANOC_PCIE_GEM_NOC,
  640. .channels = 1,
  641. .buswidth = 32,
  642. .num_links = 1,
  643. .links = { SC8180X_MASTER_GEM_NOC_PCIE_SNOC }
  644. };
  645. static struct qcom_icc_node slv_srvc_aggre2_noc = {
  646. .name = "slv_srvc_aggre2_noc",
  647. .id = SC8180X_SLAVE_SERVICE_A2NOC,
  648. .channels = 1,
  649. .buswidth = 4
  650. };
  651. static struct qcom_icc_node slv_qns_camnoc_uncomp = {
  652. .name = "slv_qns_camnoc_uncomp",
  653. .id = SC8180X_SLAVE_CAMNOC_UNCOMP,
  654. .channels = 1,
  655. .buswidth = 32
  656. };
  657. static struct qcom_icc_node slv_qns_cdsp_mem_noc = {
  658. .name = "slv_qns_cdsp_mem_noc",
  659. .id = SC8180X_SLAVE_CDSP_MEM_NOC,
  660. .channels = 2,
  661. .buswidth = 32,
  662. .num_links = 1,
  663. .links = { SC8180X_MASTER_COMPUTE_NOC }
  664. };
  665. static struct qcom_icc_node slv_qhs_a1_noc_cfg = {
  666. .name = "slv_qhs_a1_noc_cfg",
  667. .id = SC8180X_SLAVE_A1NOC_CFG,
  668. .channels = 1,
  669. .buswidth = 4,
  670. .num_links = 1,
  671. .links = { SC8180X_MASTER_A1NOC_CFG }
  672. };
  673. static struct qcom_icc_node slv_qhs_a2_noc_cfg = {
  674. .name = "slv_qhs_a2_noc_cfg",
  675. .id = SC8180X_SLAVE_A2NOC_CFG,
  676. .channels = 1,
  677. .buswidth = 4,
  678. .num_links = 1,
  679. .links = { SC8180X_MASTER_A2NOC_CFG }
  680. };
  681. static struct qcom_icc_node slv_qhs_ahb2phy_refgen_center = {
  682. .name = "slv_qhs_ahb2phy_refgen_center",
  683. .id = SC8180X_SLAVE_AHB2PHY_CENTER,
  684. .channels = 1,
  685. .buswidth = 4
  686. };
  687. static struct qcom_icc_node slv_qhs_ahb2phy_refgen_east = {
  688. .name = "slv_qhs_ahb2phy_refgen_east",
  689. .id = SC8180X_SLAVE_AHB2PHY_EAST,
  690. .channels = 1,
  691. .buswidth = 4
  692. };
  693. static struct qcom_icc_node slv_qhs_ahb2phy_refgen_west = {
  694. .name = "slv_qhs_ahb2phy_refgen_west",
  695. .id = SC8180X_SLAVE_AHB2PHY_WEST,
  696. .channels = 1,
  697. .buswidth = 4
  698. };
  699. static struct qcom_icc_node slv_qhs_ahb2phy_south = {
  700. .name = "slv_qhs_ahb2phy_south",
  701. .id = SC8180X_SLAVE_AHB2PHY_SOUTH,
  702. .channels = 1,
  703. .buswidth = 4
  704. };
  705. static struct qcom_icc_node slv_qhs_aop = {
  706. .name = "slv_qhs_aop",
  707. .id = SC8180X_SLAVE_AOP,
  708. .channels = 1,
  709. .buswidth = 4
  710. };
  711. static struct qcom_icc_node slv_qhs_aoss = {
  712. .name = "slv_qhs_aoss",
  713. .id = SC8180X_SLAVE_AOSS,
  714. .channels = 1,
  715. .buswidth = 4
  716. };
  717. static struct qcom_icc_node slv_qhs_camera_cfg = {
  718. .name = "slv_qhs_camera_cfg",
  719. .id = SC8180X_SLAVE_CAMERA_CFG,
  720. .channels = 1,
  721. .buswidth = 4
  722. };
  723. static struct qcom_icc_node slv_qhs_clk_ctl = {
  724. .name = "slv_qhs_clk_ctl",
  725. .id = SC8180X_SLAVE_CLK_CTL,
  726. .channels = 1,
  727. .buswidth = 4
  728. };
  729. static struct qcom_icc_node slv_qhs_compute_dsp = {
  730. .name = "slv_qhs_compute_dsp",
  731. .id = SC8180X_SLAVE_CDSP_CFG,
  732. .channels = 1,
  733. .buswidth = 4
  734. };
  735. static struct qcom_icc_node slv_qhs_cpr_cx = {
  736. .name = "slv_qhs_cpr_cx",
  737. .id = SC8180X_SLAVE_RBCPR_CX_CFG,
  738. .channels = 1,
  739. .buswidth = 4
  740. };
  741. static struct qcom_icc_node slv_qhs_cpr_mmcx = {
  742. .name = "slv_qhs_cpr_mmcx",
  743. .id = SC8180X_SLAVE_RBCPR_MMCX_CFG,
  744. .channels = 1,
  745. .buswidth = 4
  746. };
  747. static struct qcom_icc_node slv_qhs_cpr_mx = {
  748. .name = "slv_qhs_cpr_mx",
  749. .id = SC8180X_SLAVE_RBCPR_MX_CFG,
  750. .channels = 1,
  751. .buswidth = 4
  752. };
  753. static struct qcom_icc_node slv_qhs_crypto0_cfg = {
  754. .name = "slv_qhs_crypto0_cfg",
  755. .id = SC8180X_SLAVE_CRYPTO_0_CFG,
  756. .channels = 1,
  757. .buswidth = 4
  758. };
  759. static struct qcom_icc_node slv_qhs_ddrss_cfg = {
  760. .name = "slv_qhs_ddrss_cfg",
  761. .id = SC8180X_SLAVE_CNOC_DDRSS,
  762. .channels = 1,
  763. .buswidth = 4,
  764. .num_links = 1,
  765. .links = { SC8180X_MASTER_CNOC_DC_NOC }
  766. };
  767. static struct qcom_icc_node slv_qhs_display_cfg = {
  768. .name = "slv_qhs_display_cfg",
  769. .id = SC8180X_SLAVE_DISPLAY_CFG,
  770. .channels = 1,
  771. .buswidth = 4
  772. };
  773. static struct qcom_icc_node slv_qhs_emac_cfg = {
  774. .name = "slv_qhs_emac_cfg",
  775. .id = SC8180X_SLAVE_EMAC_CFG,
  776. .channels = 1,
  777. .buswidth = 4
  778. };
  779. static struct qcom_icc_node slv_qhs_glm = {
  780. .name = "slv_qhs_glm",
  781. .id = SC8180X_SLAVE_GLM,
  782. .channels = 1,
  783. .buswidth = 4
  784. };
  785. static struct qcom_icc_node slv_qhs_gpuss_cfg = {
  786. .name = "slv_qhs_gpuss_cfg",
  787. .id = SC8180X_SLAVE_GRAPHICS_3D_CFG,
  788. .channels = 1,
  789. .buswidth = 8
  790. };
  791. static struct qcom_icc_node slv_qhs_imem_cfg = {
  792. .name = "slv_qhs_imem_cfg",
  793. .id = SC8180X_SLAVE_IMEM_CFG,
  794. .channels = 1,
  795. .buswidth = 4
  796. };
  797. static struct qcom_icc_node slv_qhs_ipa = {
  798. .name = "slv_qhs_ipa",
  799. .id = SC8180X_SLAVE_IPA_CFG,
  800. .channels = 1,
  801. .buswidth = 4
  802. };
  803. static struct qcom_icc_node slv_qhs_mnoc_cfg = {
  804. .name = "slv_qhs_mnoc_cfg",
  805. .id = SC8180X_SLAVE_CNOC_MNOC_CFG,
  806. .channels = 1,
  807. .buswidth = 4,
  808. .num_links = 1,
  809. .links = { SC8180X_MASTER_CNOC_MNOC_CFG }
  810. };
  811. static struct qcom_icc_node slv_qhs_npu_cfg = {
  812. .name = "slv_qhs_npu_cfg",
  813. .id = SC8180X_SLAVE_NPU_CFG,
  814. .channels = 1,
  815. .buswidth = 4
  816. };
  817. static struct qcom_icc_node slv_qhs_pcie0_cfg = {
  818. .name = "slv_qhs_pcie0_cfg",
  819. .id = SC8180X_SLAVE_PCIE_0_CFG,
  820. .channels = 1,
  821. .buswidth = 4
  822. };
  823. static struct qcom_icc_node slv_qhs_pcie1_cfg = {
  824. .name = "slv_qhs_pcie1_cfg",
  825. .id = SC8180X_SLAVE_PCIE_1_CFG,
  826. .channels = 1,
  827. .buswidth = 4
  828. };
  829. static struct qcom_icc_node slv_qhs_pcie2_cfg = {
  830. .name = "slv_qhs_pcie2_cfg",
  831. .id = SC8180X_SLAVE_PCIE_2_CFG,
  832. .channels = 1,
  833. .buswidth = 4
  834. };
  835. static struct qcom_icc_node slv_qhs_pcie3_cfg = {
  836. .name = "slv_qhs_pcie3_cfg",
  837. .id = SC8180X_SLAVE_PCIE_3_CFG,
  838. .channels = 1,
  839. .buswidth = 4
  840. };
  841. static struct qcom_icc_node slv_qhs_pdm = {
  842. .name = "slv_qhs_pdm",
  843. .id = SC8180X_SLAVE_PDM,
  844. .channels = 1,
  845. .buswidth = 4
  846. };
  847. static struct qcom_icc_node slv_qhs_pimem_cfg = {
  848. .name = "slv_qhs_pimem_cfg",
  849. .id = SC8180X_SLAVE_PIMEM_CFG,
  850. .channels = 1,
  851. .buswidth = 4
  852. };
  853. static struct qcom_icc_node slv_qhs_prng = {
  854. .name = "slv_qhs_prng",
  855. .id = SC8180X_SLAVE_PRNG,
  856. .channels = 1,
  857. .buswidth = 4
  858. };
  859. static struct qcom_icc_node slv_qhs_qdss_cfg = {
  860. .name = "slv_qhs_qdss_cfg",
  861. .id = SC8180X_SLAVE_QDSS_CFG,
  862. .channels = 1,
  863. .buswidth = 4
  864. };
  865. static struct qcom_icc_node slv_qhs_qspi_0 = {
  866. .name = "slv_qhs_qspi_0",
  867. .id = SC8180X_SLAVE_QSPI_0,
  868. .channels = 1,
  869. .buswidth = 4
  870. };
  871. static struct qcom_icc_node slv_qhs_qspi_1 = {
  872. .name = "slv_qhs_qspi_1",
  873. .id = SC8180X_SLAVE_QSPI_1,
  874. .channels = 1,
  875. .buswidth = 4
  876. };
  877. static struct qcom_icc_node slv_qhs_qupv3_east0 = {
  878. .name = "slv_qhs_qupv3_east0",
  879. .id = SC8180X_SLAVE_QUP_1,
  880. .channels = 1,
  881. .buswidth = 4
  882. };
  883. static struct qcom_icc_node slv_qhs_qupv3_east1 = {
  884. .name = "slv_qhs_qupv3_east1",
  885. .id = SC8180X_SLAVE_QUP_2,
  886. .channels = 1,
  887. .buswidth = 4
  888. };
  889. static struct qcom_icc_node slv_qhs_qupv3_west = {
  890. .name = "slv_qhs_qupv3_west",
  891. .id = SC8180X_SLAVE_QUP_0,
  892. .channels = 1,
  893. .buswidth = 4
  894. };
  895. static struct qcom_icc_node slv_qhs_sdc2 = {
  896. .name = "slv_qhs_sdc2",
  897. .id = SC8180X_SLAVE_SDCC_2,
  898. .channels = 1,
  899. .buswidth = 4
  900. };
  901. static struct qcom_icc_node slv_qhs_sdc4 = {
  902. .name = "slv_qhs_sdc4",
  903. .id = SC8180X_SLAVE_SDCC_4,
  904. .channels = 1,
  905. .buswidth = 4
  906. };
  907. static struct qcom_icc_node slv_qhs_security = {
  908. .name = "slv_qhs_security",
  909. .id = SC8180X_SLAVE_SECURITY,
  910. .channels = 1,
  911. .buswidth = 4
  912. };
  913. static struct qcom_icc_node slv_qhs_snoc_cfg = {
  914. .name = "slv_qhs_snoc_cfg",
  915. .id = SC8180X_SLAVE_SNOC_CFG,
  916. .channels = 1,
  917. .buswidth = 4,
  918. .num_links = 1,
  919. .links = { SC8180X_MASTER_SNOC_CFG }
  920. };
  921. static struct qcom_icc_node slv_qhs_spss_cfg = {
  922. .name = "slv_qhs_spss_cfg",
  923. .id = SC8180X_SLAVE_SPSS_CFG,
  924. .channels = 1,
  925. .buswidth = 4
  926. };
  927. static struct qcom_icc_node slv_qhs_tcsr = {
  928. .name = "slv_qhs_tcsr",
  929. .id = SC8180X_SLAVE_TCSR,
  930. .channels = 1,
  931. .buswidth = 4
  932. };
  933. static struct qcom_icc_node slv_qhs_tlmm_east = {
  934. .name = "slv_qhs_tlmm_east",
  935. .id = SC8180X_SLAVE_TLMM_EAST,
  936. .channels = 1,
  937. .buswidth = 4
  938. };
  939. static struct qcom_icc_node slv_qhs_tlmm_south = {
  940. .name = "slv_qhs_tlmm_south",
  941. .id = SC8180X_SLAVE_TLMM_SOUTH,
  942. .channels = 1,
  943. .buswidth = 4
  944. };
  945. static struct qcom_icc_node slv_qhs_tlmm_west = {
  946. .name = "slv_qhs_tlmm_west",
  947. .id = SC8180X_SLAVE_TLMM_WEST,
  948. .channels = 1,
  949. .buswidth = 4
  950. };
  951. static struct qcom_icc_node slv_qhs_tsif = {
  952. .name = "slv_qhs_tsif",
  953. .id = SC8180X_SLAVE_TSIF,
  954. .channels = 1,
  955. .buswidth = 4
  956. };
  957. static struct qcom_icc_node slv_qhs_ufs_card_cfg = {
  958. .name = "slv_qhs_ufs_card_cfg",
  959. .id = SC8180X_SLAVE_UFS_CARD_CFG,
  960. .channels = 1,
  961. .buswidth = 4
  962. };
  963. static struct qcom_icc_node slv_qhs_ufs_mem0_cfg = {
  964. .name = "slv_qhs_ufs_mem0_cfg",
  965. .id = SC8180X_SLAVE_UFS_MEM_0_CFG,
  966. .channels = 1,
  967. .buswidth = 4
  968. };
  969. static struct qcom_icc_node slv_qhs_ufs_mem1_cfg = {
  970. .name = "slv_qhs_ufs_mem1_cfg",
  971. .id = SC8180X_SLAVE_UFS_MEM_1_CFG,
  972. .channels = 1,
  973. .buswidth = 4
  974. };
  975. static struct qcom_icc_node slv_qhs_usb3_0 = {
  976. .name = "slv_qhs_usb3_0",
  977. .id = SC8180X_SLAVE_USB3,
  978. .channels = 1,
  979. .buswidth = 4
  980. };
  981. static struct qcom_icc_node slv_qhs_usb3_1 = {
  982. .name = "slv_qhs_usb3_1",
  983. .id = SC8180X_SLAVE_USB3_1,
  984. .channels = 1,
  985. .buswidth = 4
  986. };
  987. static struct qcom_icc_node slv_qhs_usb3_2 = {
  988. .name = "slv_qhs_usb3_2",
  989. .id = SC8180X_SLAVE_USB3_2,
  990. .channels = 1,
  991. .buswidth = 4
  992. };
  993. static struct qcom_icc_node slv_qhs_venus_cfg = {
  994. .name = "slv_qhs_venus_cfg",
  995. .id = SC8180X_SLAVE_VENUS_CFG,
  996. .channels = 1,
  997. .buswidth = 4
  998. };
  999. static struct qcom_icc_node slv_qhs_vsense_ctrl_cfg = {
  1000. .name = "slv_qhs_vsense_ctrl_cfg",
  1001. .id = SC8180X_SLAVE_VSENSE_CTRL_CFG,
  1002. .channels = 1,
  1003. .buswidth = 4
  1004. };
  1005. static struct qcom_icc_node slv_srvc_cnoc = {
  1006. .name = "slv_srvc_cnoc",
  1007. .id = SC8180X_SLAVE_SERVICE_CNOC,
  1008. .channels = 1,
  1009. .buswidth = 4
  1010. };
  1011. static struct qcom_icc_node slv_qhs_gemnoc = {
  1012. .name = "slv_qhs_gemnoc",
  1013. .id = SC8180X_SLAVE_GEM_NOC_CFG,
  1014. .channels = 1,
  1015. .buswidth = 4,
  1016. .num_links = 1,
  1017. .links = { SC8180X_MASTER_GEM_NOC_CFG }
  1018. };
  1019. static struct qcom_icc_node slv_qhs_llcc = {
  1020. .name = "slv_qhs_llcc",
  1021. .id = SC8180X_SLAVE_LLCC_CFG,
  1022. .channels = 1,
  1023. .buswidth = 4
  1024. };
  1025. static struct qcom_icc_node slv_qhs_mdsp_ms_mpu_cfg = {
  1026. .name = "slv_qhs_mdsp_ms_mpu_cfg",
  1027. .id = SC8180X_SLAVE_MSS_PROC_MS_MPU_CFG,
  1028. .channels = 1,
  1029. .buswidth = 4
  1030. };
  1031. static struct qcom_icc_node slv_qns_ecc = {
  1032. .name = "slv_qns_ecc",
  1033. .id = SC8180X_SLAVE_ECC,
  1034. .channels = 1,
  1035. .buswidth = 32
  1036. };
  1037. static struct qcom_icc_node slv_qns_gem_noc_snoc = {
  1038. .name = "slv_qns_gem_noc_snoc",
  1039. .id = SC8180X_SLAVE_GEM_NOC_SNOC,
  1040. .channels = 1,
  1041. .buswidth = 8,
  1042. .num_links = 1,
  1043. .links = { SC8180X_MASTER_GEM_NOC_SNOC }
  1044. };
  1045. static struct qcom_icc_node slv_qns_llcc = {
  1046. .name = "slv_qns_llcc",
  1047. .id = SC8180X_SLAVE_LLCC,
  1048. .channels = 8,
  1049. .buswidth = 16,
  1050. .num_links = 1,
  1051. .links = { SC8180X_MASTER_LLCC }
  1052. };
  1053. static struct qcom_icc_node slv_srvc_gemnoc = {
  1054. .name = "slv_srvc_gemnoc",
  1055. .id = SC8180X_SLAVE_SERVICE_GEM_NOC,
  1056. .channels = 1,
  1057. .buswidth = 4
  1058. };
  1059. static struct qcom_icc_node slv_srvc_gemnoc1 = {
  1060. .name = "slv_srvc_gemnoc1",
  1061. .id = SC8180X_SLAVE_SERVICE_GEM_NOC_1,
  1062. .channels = 1,
  1063. .buswidth = 4
  1064. };
  1065. static struct qcom_icc_node slv_ipa_core_slave = {
  1066. .name = "slv_ipa_core_slave",
  1067. .id = SC8180X_SLAVE_IPA_CORE,
  1068. .channels = 1,
  1069. .buswidth = 8
  1070. };
  1071. static struct qcom_icc_node slv_ebi = {
  1072. .name = "slv_ebi",
  1073. .id = SC8180X_SLAVE_EBI_CH0,
  1074. .channels = 8,
  1075. .buswidth = 4
  1076. };
  1077. static struct qcom_icc_node slv_qns2_mem_noc = {
  1078. .name = "slv_qns2_mem_noc",
  1079. .id = SC8180X_SLAVE_MNOC_SF_MEM_NOC,
  1080. .channels = 1,
  1081. .buswidth = 32,
  1082. .num_links = 1,
  1083. .links = { SC8180X_MASTER_MNOC_SF_MEM_NOC }
  1084. };
  1085. static struct qcom_icc_node slv_qns_mem_noc_hf = {
  1086. .name = "slv_qns_mem_noc_hf",
  1087. .id = SC8180X_SLAVE_MNOC_HF_MEM_NOC,
  1088. .channels = 2,
  1089. .buswidth = 32,
  1090. .num_links = 1,
  1091. .links = { SC8180X_MASTER_MNOC_HF_MEM_NOC }
  1092. };
  1093. static struct qcom_icc_node slv_srvc_mnoc = {
  1094. .name = "slv_srvc_mnoc",
  1095. .id = SC8180X_SLAVE_SERVICE_MNOC,
  1096. .channels = 1,
  1097. .buswidth = 4
  1098. };
  1099. static struct qcom_icc_node slv_qhs_apss = {
  1100. .name = "slv_qhs_apss",
  1101. .id = SC8180X_SLAVE_APPSS,
  1102. .channels = 1,
  1103. .buswidth = 8
  1104. };
  1105. static struct qcom_icc_node slv_qns_cnoc = {
  1106. .name = "slv_qns_cnoc",
  1107. .id = SC8180X_SNOC_CNOC_SLV,
  1108. .channels = 1,
  1109. .buswidth = 8,
  1110. .num_links = 1,
  1111. .links = { SC8180X_SNOC_CNOC_MAS }
  1112. };
  1113. static struct qcom_icc_node slv_qns_gemnoc_gc = {
  1114. .name = "slv_qns_gemnoc_gc",
  1115. .id = SC8180X_SLAVE_SNOC_GEM_NOC_GC,
  1116. .channels = 1,
  1117. .buswidth = 8,
  1118. .num_links = 1,
  1119. .links = { SC8180X_MASTER_SNOC_GC_MEM_NOC }
  1120. };
  1121. static struct qcom_icc_node slv_qns_gemnoc_sf = {
  1122. .name = "slv_qns_gemnoc_sf",
  1123. .id = SC8180X_SLAVE_SNOC_GEM_NOC_SF,
  1124. .channels = 1,
  1125. .buswidth = 32,
  1126. .num_links = 1,
  1127. .links = { SC8180X_MASTER_SNOC_SF_MEM_NOC }
  1128. };
  1129. static struct qcom_icc_node slv_qxs_imem = {
  1130. .name = "slv_qxs_imem",
  1131. .id = SC8180X_SLAVE_OCIMEM,
  1132. .channels = 1,
  1133. .buswidth = 8
  1134. };
  1135. static struct qcom_icc_node slv_qxs_pimem = {
  1136. .name = "slv_qxs_pimem",
  1137. .id = SC8180X_SLAVE_PIMEM,
  1138. .channels = 1,
  1139. .buswidth = 8
  1140. };
  1141. static struct qcom_icc_node slv_srvc_snoc = {
  1142. .name = "slv_srvc_snoc",
  1143. .id = SC8180X_SLAVE_SERVICE_SNOC,
  1144. .channels = 1,
  1145. .buswidth = 4
  1146. };
  1147. static struct qcom_icc_node slv_xs_pcie_0 = {
  1148. .name = "slv_xs_pcie_0",
  1149. .id = SC8180X_SLAVE_PCIE_0,
  1150. .channels = 1,
  1151. .buswidth = 8
  1152. };
  1153. static struct qcom_icc_node slv_xs_pcie_1 = {
  1154. .name = "slv_xs_pcie_1",
  1155. .id = SC8180X_SLAVE_PCIE_1,
  1156. .channels = 1,
  1157. .buswidth = 8
  1158. };
  1159. static struct qcom_icc_node slv_xs_pcie_2 = {
  1160. .name = "slv_xs_pcie_2",
  1161. .id = SC8180X_SLAVE_PCIE_2,
  1162. .channels = 1,
  1163. .buswidth = 8
  1164. };
  1165. static struct qcom_icc_node slv_xs_pcie_3 = {
  1166. .name = "slv_xs_pcie_3",
  1167. .id = SC8180X_SLAVE_PCIE_3,
  1168. .channels = 1,
  1169. .buswidth = 8
  1170. };
  1171. static struct qcom_icc_node slv_xs_qdss_stm = {
  1172. .name = "slv_xs_qdss_stm",
  1173. .id = SC8180X_SLAVE_QDSS_STM,
  1174. .channels = 1,
  1175. .buswidth = 4
  1176. };
  1177. static struct qcom_icc_node slv_xs_sys_tcu_cfg = {
  1178. .name = "slv_xs_sys_tcu_cfg",
  1179. .id = SC8180X_SLAVE_TCU,
  1180. .channels = 1,
  1181. .buswidth = 8
  1182. };
  1183. static struct qcom_icc_node slv_qup_core_0 = {
  1184. .name = "slv_qup_core_0",
  1185. .id = SC8180X_SLAVE_QUP_CORE_0,
  1186. .channels = 1,
  1187. .buswidth = 4
  1188. };
  1189. static struct qcom_icc_node slv_qup_core_1 = {
  1190. .name = "slv_qup_core_1",
  1191. .id = SC8180X_SLAVE_QUP_CORE_1,
  1192. .channels = 1,
  1193. .buswidth = 4
  1194. };
  1195. static struct qcom_icc_node slv_qup_core_2 = {
  1196. .name = "slv_qup_core_2",
  1197. .id = SC8180X_SLAVE_QUP_CORE_2,
  1198. .channels = 1,
  1199. .buswidth = 4
  1200. };
  1201. static struct qcom_icc_bcm bcm_acv = {
  1202. .name = "ACV",
  1203. .enable_mask = BIT(3),
  1204. .num_nodes = 1,
  1205. .nodes = { &slv_ebi }
  1206. };
  1207. static struct qcom_icc_bcm bcm_mc0 = {
  1208. .name = "MC0",
  1209. .keepalive = true,
  1210. .num_nodes = 1,
  1211. .nodes = { &slv_ebi }
  1212. };
  1213. static struct qcom_icc_bcm bcm_sh0 = {
  1214. .name = "SH0",
  1215. .keepalive = true,
  1216. .num_nodes = 1,
  1217. .nodes = { &slv_qns_llcc }
  1218. };
  1219. static struct qcom_icc_bcm bcm_mm0 = {
  1220. .name = "MM0",
  1221. .num_nodes = 1,
  1222. .nodes = { &slv_qns_mem_noc_hf }
  1223. };
  1224. static struct qcom_icc_bcm bcm_co0 = {
  1225. .name = "CO0",
  1226. .num_nodes = 1,
  1227. .nodes = { &slv_qns_cdsp_mem_noc }
  1228. };
  1229. static struct qcom_icc_bcm bcm_ce0 = {
  1230. .name = "CE0",
  1231. .num_nodes = 1,
  1232. .nodes = { &mas_qxm_crypto }
  1233. };
  1234. static struct qcom_icc_bcm bcm_cn0 = {
  1235. .name = "CN0",
  1236. .keepalive = true,
  1237. .num_nodes = 57,
  1238. .nodes = { &mas_qnm_snoc,
  1239. &slv_qhs_a1_noc_cfg,
  1240. &slv_qhs_a2_noc_cfg,
  1241. &slv_qhs_ahb2phy_refgen_center,
  1242. &slv_qhs_ahb2phy_refgen_east,
  1243. &slv_qhs_ahb2phy_refgen_west,
  1244. &slv_qhs_ahb2phy_south,
  1245. &slv_qhs_aop,
  1246. &slv_qhs_aoss,
  1247. &slv_qhs_camera_cfg,
  1248. &slv_qhs_clk_ctl,
  1249. &slv_qhs_compute_dsp,
  1250. &slv_qhs_cpr_cx,
  1251. &slv_qhs_cpr_mmcx,
  1252. &slv_qhs_cpr_mx,
  1253. &slv_qhs_crypto0_cfg,
  1254. &slv_qhs_ddrss_cfg,
  1255. &slv_qhs_display_cfg,
  1256. &slv_qhs_emac_cfg,
  1257. &slv_qhs_glm,
  1258. &slv_qhs_gpuss_cfg,
  1259. &slv_qhs_imem_cfg,
  1260. &slv_qhs_ipa,
  1261. &slv_qhs_mnoc_cfg,
  1262. &slv_qhs_npu_cfg,
  1263. &slv_qhs_pcie0_cfg,
  1264. &slv_qhs_pcie1_cfg,
  1265. &slv_qhs_pcie2_cfg,
  1266. &slv_qhs_pcie3_cfg,
  1267. &slv_qhs_pdm,
  1268. &slv_qhs_pimem_cfg,
  1269. &slv_qhs_prng,
  1270. &slv_qhs_qdss_cfg,
  1271. &slv_qhs_qspi_0,
  1272. &slv_qhs_qspi_1,
  1273. &slv_qhs_qupv3_east0,
  1274. &slv_qhs_qupv3_east1,
  1275. &slv_qhs_qupv3_west,
  1276. &slv_qhs_sdc2,
  1277. &slv_qhs_sdc4,
  1278. &slv_qhs_security,
  1279. &slv_qhs_snoc_cfg,
  1280. &slv_qhs_spss_cfg,
  1281. &slv_qhs_tcsr,
  1282. &slv_qhs_tlmm_east,
  1283. &slv_qhs_tlmm_south,
  1284. &slv_qhs_tlmm_west,
  1285. &slv_qhs_tsif,
  1286. &slv_qhs_ufs_card_cfg,
  1287. &slv_qhs_ufs_mem0_cfg,
  1288. &slv_qhs_ufs_mem1_cfg,
  1289. &slv_qhs_usb3_0,
  1290. &slv_qhs_usb3_1,
  1291. &slv_qhs_usb3_2,
  1292. &slv_qhs_venus_cfg,
  1293. &slv_qhs_vsense_ctrl_cfg,
  1294. &slv_srvc_cnoc }
  1295. };
  1296. static struct qcom_icc_bcm bcm_mm1 = {
  1297. .name = "MM1",
  1298. .num_nodes = 7,
  1299. .nodes = { &mas_qxm_camnoc_hf0_uncomp,
  1300. &mas_qxm_camnoc_hf1_uncomp,
  1301. &mas_qxm_camnoc_sf_uncomp,
  1302. &mas_qxm_camnoc_hf0,
  1303. &mas_qxm_camnoc_hf1,
  1304. &mas_qxm_mdp0,
  1305. &mas_qxm_mdp1 }
  1306. };
  1307. static struct qcom_icc_bcm bcm_qup0 = {
  1308. .name = "QUP0",
  1309. .num_nodes = 3,
  1310. .nodes = { &mas_qup_core_0,
  1311. &mas_qup_core_1,
  1312. &mas_qup_core_2 }
  1313. };
  1314. static struct qcom_icc_bcm bcm_sh2 = {
  1315. .name = "SH2",
  1316. .num_nodes = 1,
  1317. .nodes = { &slv_qns_gem_noc_snoc }
  1318. };
  1319. static struct qcom_icc_bcm bcm_mm2 = {
  1320. .name = "MM2",
  1321. .num_nodes = 6,
  1322. .nodes = { &mas_qxm_camnoc_sf,
  1323. &mas_qxm_rot,
  1324. &mas_qxm_venus0,
  1325. &mas_qxm_venus1,
  1326. &mas_qxm_venus_arm9,
  1327. &slv_qns2_mem_noc }
  1328. };
  1329. static struct qcom_icc_bcm bcm_sh3 = {
  1330. .name = "SH3",
  1331. .keepalive = true,
  1332. .num_nodes = 1,
  1333. .nodes = { &mas_acm_apps }
  1334. };
  1335. static struct qcom_icc_bcm bcm_sn0 = {
  1336. .name = "SN0",
  1337. .nodes = { &slv_qns_gemnoc_sf }
  1338. };
  1339. static struct qcom_icc_bcm bcm_sn1 = {
  1340. .name = "SN1",
  1341. .nodes = { &slv_qxs_imem }
  1342. };
  1343. static struct qcom_icc_bcm bcm_sn2 = {
  1344. .name = "SN2",
  1345. .keepalive = true,
  1346. .nodes = { &slv_qns_gemnoc_gc }
  1347. };
  1348. static struct qcom_icc_bcm bcm_co2 = {
  1349. .name = "CO2",
  1350. .nodes = { &mas_qnm_npu }
  1351. };
  1352. static struct qcom_icc_bcm bcm_ip0 = {
  1353. .name = "IP0",
  1354. .nodes = { &slv_ipa_core_slave }
  1355. };
  1356. static struct qcom_icc_bcm bcm_sn3 = {
  1357. .name = "SN3",
  1358. .keepalive = true,
  1359. .nodes = { &slv_srvc_aggre1_noc,
  1360. &slv_qns_cnoc }
  1361. };
  1362. static struct qcom_icc_bcm bcm_sn4 = {
  1363. .name = "SN4",
  1364. .nodes = { &slv_qxs_pimem }
  1365. };
  1366. static struct qcom_icc_bcm bcm_sn8 = {
  1367. .name = "SN8",
  1368. .num_nodes = 4,
  1369. .nodes = { &slv_xs_pcie_0,
  1370. &slv_xs_pcie_1,
  1371. &slv_xs_pcie_2,
  1372. &slv_xs_pcie_3 }
  1373. };
  1374. static struct qcom_icc_bcm bcm_sn9 = {
  1375. .name = "SN9",
  1376. .num_nodes = 1,
  1377. .nodes = { &mas_qnm_aggre1_noc }
  1378. };
  1379. static struct qcom_icc_bcm bcm_sn11 = {
  1380. .name = "SN11",
  1381. .num_nodes = 1,
  1382. .nodes = { &mas_qnm_aggre2_noc }
  1383. };
  1384. static struct qcom_icc_bcm bcm_sn14 = {
  1385. .name = "SN14",
  1386. .num_nodes = 1,
  1387. .nodes = { &slv_qns_pcie_mem_noc }
  1388. };
  1389. static struct qcom_icc_bcm bcm_sn15 = {
  1390. .name = "SN15",
  1391. .keepalive = true,
  1392. .num_nodes = 1,
  1393. .nodes = { &mas_qnm_gemnoc }
  1394. };
  1395. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1396. &bcm_sn3,
  1397. &bcm_ce0,
  1398. };
  1399. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1400. &bcm_sn14,
  1401. &bcm_ce0,
  1402. };
  1403. static struct qcom_icc_bcm * const camnoc_virt_bcms[] = {
  1404. &bcm_mm1,
  1405. };
  1406. static struct qcom_icc_bcm * const compute_noc_bcms[] = {
  1407. &bcm_co0,
  1408. &bcm_co2,
  1409. };
  1410. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1411. &bcm_cn0,
  1412. };
  1413. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1414. &bcm_sh0,
  1415. &bcm_sh2,
  1416. &bcm_sh3,
  1417. };
  1418. static struct qcom_icc_bcm * const ipa_virt_bcms[] = {
  1419. &bcm_ip0,
  1420. };
  1421. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1422. &bcm_mc0,
  1423. &bcm_acv,
  1424. };
  1425. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1426. &bcm_mm0,
  1427. &bcm_mm1,
  1428. &bcm_mm2,
  1429. };
  1430. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1431. &bcm_sn0,
  1432. &bcm_sn1,
  1433. &bcm_sn2,
  1434. &bcm_sn3,
  1435. &bcm_sn4,
  1436. &bcm_sn8,
  1437. &bcm_sn9,
  1438. &bcm_sn11,
  1439. &bcm_sn15,
  1440. };
  1441. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1442. [MASTER_A1NOC_CFG] = &mas_qhm_a1noc_cfg,
  1443. [MASTER_UFS_CARD] = &mas_xm_ufs_card,
  1444. [MASTER_UFS_GEN4] = &mas_xm_ufs_g4,
  1445. [MASTER_UFS_MEM] = &mas_xm_ufs_mem,
  1446. [MASTER_USB3] = &mas_xm_usb3_0,
  1447. [MASTER_USB3_1] = &mas_xm_usb3_1,
  1448. [MASTER_USB3_2] = &mas_xm_usb3_2,
  1449. [A1NOC_SNOC_SLV] = &slv_qns_a1noc_snoc,
  1450. [SLAVE_SERVICE_A1NOC] = &slv_srvc_aggre1_noc,
  1451. };
  1452. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1453. [MASTER_A2NOC_CFG] = &mas_qhm_a2noc_cfg,
  1454. [MASTER_QDSS_BAM] = &mas_qhm_qdss_bam,
  1455. [MASTER_QSPI_0] = &mas_qhm_qspi,
  1456. [MASTER_QSPI_1] = &mas_qhm_qspi1,
  1457. [MASTER_QUP_0] = &mas_qhm_qup0,
  1458. [MASTER_QUP_1] = &mas_qhm_qup1,
  1459. [MASTER_QUP_2] = &mas_qhm_qup2,
  1460. [MASTER_SENSORS_AHB] = &mas_qhm_sensorss_ahb,
  1461. [MASTER_CRYPTO_CORE_0] = &mas_qxm_crypto,
  1462. [MASTER_IPA] = &mas_qxm_ipa,
  1463. [MASTER_EMAC] = &mas_xm_emac,
  1464. [MASTER_PCIE] = &mas_xm_pcie3_0,
  1465. [MASTER_PCIE_1] = &mas_xm_pcie3_1,
  1466. [MASTER_PCIE_2] = &mas_xm_pcie3_2,
  1467. [MASTER_PCIE_3] = &mas_xm_pcie3_3,
  1468. [MASTER_QDSS_ETR] = &mas_xm_qdss_etr,
  1469. [MASTER_SDCC_2] = &mas_xm_sdc2,
  1470. [MASTER_SDCC_4] = &mas_xm_sdc4,
  1471. [A2NOC_SNOC_SLV] = &slv_qns_a2noc_snoc,
  1472. [SLAVE_ANOC_PCIE_GEM_NOC] = &slv_qns_pcie_mem_noc,
  1473. [SLAVE_SERVICE_A2NOC] = &slv_srvc_aggre2_noc,
  1474. };
  1475. static struct qcom_icc_node * const camnoc_virt_nodes[] = {
  1476. [MASTER_CAMNOC_HF0_UNCOMP] = &mas_qxm_camnoc_hf0_uncomp,
  1477. [MASTER_CAMNOC_HF1_UNCOMP] = &mas_qxm_camnoc_hf1_uncomp,
  1478. [MASTER_CAMNOC_SF_UNCOMP] = &mas_qxm_camnoc_sf_uncomp,
  1479. [SLAVE_CAMNOC_UNCOMP] = &slv_qns_camnoc_uncomp,
  1480. };
  1481. static struct qcom_icc_node * const compute_noc_nodes[] = {
  1482. [MASTER_NPU] = &mas_qnm_npu,
  1483. [SLAVE_CDSP_MEM_NOC] = &slv_qns_cdsp_mem_noc,
  1484. };
  1485. static struct qcom_icc_node * const config_noc_nodes[] = {
  1486. [SNOC_CNOC_MAS] = &mas_qnm_snoc,
  1487. [SLAVE_A1NOC_CFG] = &slv_qhs_a1_noc_cfg,
  1488. [SLAVE_A2NOC_CFG] = &slv_qhs_a2_noc_cfg,
  1489. [SLAVE_AHB2PHY_CENTER] = &slv_qhs_ahb2phy_refgen_center,
  1490. [SLAVE_AHB2PHY_EAST] = &slv_qhs_ahb2phy_refgen_east,
  1491. [SLAVE_AHB2PHY_WEST] = &slv_qhs_ahb2phy_refgen_west,
  1492. [SLAVE_AHB2PHY_SOUTH] = &slv_qhs_ahb2phy_south,
  1493. [SLAVE_AOP] = &slv_qhs_aop,
  1494. [SLAVE_AOSS] = &slv_qhs_aoss,
  1495. [SLAVE_CAMERA_CFG] = &slv_qhs_camera_cfg,
  1496. [SLAVE_CLK_CTL] = &slv_qhs_clk_ctl,
  1497. [SLAVE_CDSP_CFG] = &slv_qhs_compute_dsp,
  1498. [SLAVE_RBCPR_CX_CFG] = &slv_qhs_cpr_cx,
  1499. [SLAVE_RBCPR_MMCX_CFG] = &slv_qhs_cpr_mmcx,
  1500. [SLAVE_RBCPR_MX_CFG] = &slv_qhs_cpr_mx,
  1501. [SLAVE_CRYPTO_0_CFG] = &slv_qhs_crypto0_cfg,
  1502. [SLAVE_CNOC_DDRSS] = &slv_qhs_ddrss_cfg,
  1503. [SLAVE_DISPLAY_CFG] = &slv_qhs_display_cfg,
  1504. [SLAVE_EMAC_CFG] = &slv_qhs_emac_cfg,
  1505. [SLAVE_GLM] = &slv_qhs_glm,
  1506. [SLAVE_GRAPHICS_3D_CFG] = &slv_qhs_gpuss_cfg,
  1507. [SLAVE_IMEM_CFG] = &slv_qhs_imem_cfg,
  1508. [SLAVE_IPA_CFG] = &slv_qhs_ipa,
  1509. [SLAVE_CNOC_MNOC_CFG] = &slv_qhs_mnoc_cfg,
  1510. [SLAVE_NPU_CFG] = &slv_qhs_npu_cfg,
  1511. [SLAVE_PCIE_0_CFG] = &slv_qhs_pcie0_cfg,
  1512. [SLAVE_PCIE_1_CFG] = &slv_qhs_pcie1_cfg,
  1513. [SLAVE_PCIE_2_CFG] = &slv_qhs_pcie2_cfg,
  1514. [SLAVE_PCIE_3_CFG] = &slv_qhs_pcie3_cfg,
  1515. [SLAVE_PDM] = &slv_qhs_pdm,
  1516. [SLAVE_PIMEM_CFG] = &slv_qhs_pimem_cfg,
  1517. [SLAVE_PRNG] = &slv_qhs_prng,
  1518. [SLAVE_QDSS_CFG] = &slv_qhs_qdss_cfg,
  1519. [SLAVE_QSPI_0] = &slv_qhs_qspi_0,
  1520. [SLAVE_QSPI_1] = &slv_qhs_qspi_1,
  1521. [SLAVE_QUP_1] = &slv_qhs_qupv3_east0,
  1522. [SLAVE_QUP_2] = &slv_qhs_qupv3_east1,
  1523. [SLAVE_QUP_0] = &slv_qhs_qupv3_west,
  1524. [SLAVE_SDCC_2] = &slv_qhs_sdc2,
  1525. [SLAVE_SDCC_4] = &slv_qhs_sdc4,
  1526. [SLAVE_SECURITY] = &slv_qhs_security,
  1527. [SLAVE_SNOC_CFG] = &slv_qhs_snoc_cfg,
  1528. [SLAVE_SPSS_CFG] = &slv_qhs_spss_cfg,
  1529. [SLAVE_TCSR] = &slv_qhs_tcsr,
  1530. [SLAVE_TLMM_EAST] = &slv_qhs_tlmm_east,
  1531. [SLAVE_TLMM_SOUTH] = &slv_qhs_tlmm_south,
  1532. [SLAVE_TLMM_WEST] = &slv_qhs_tlmm_west,
  1533. [SLAVE_TSIF] = &slv_qhs_tsif,
  1534. [SLAVE_UFS_CARD_CFG] = &slv_qhs_ufs_card_cfg,
  1535. [SLAVE_UFS_MEM_0_CFG] = &slv_qhs_ufs_mem0_cfg,
  1536. [SLAVE_UFS_MEM_1_CFG] = &slv_qhs_ufs_mem1_cfg,
  1537. [SLAVE_USB3] = &slv_qhs_usb3_0,
  1538. [SLAVE_USB3_1] = &slv_qhs_usb3_1,
  1539. [SLAVE_USB3_2] = &slv_qhs_usb3_2,
  1540. [SLAVE_VENUS_CFG] = &slv_qhs_venus_cfg,
  1541. [SLAVE_VSENSE_CTRL_CFG] = &slv_qhs_vsense_ctrl_cfg,
  1542. [SLAVE_SERVICE_CNOC] = &slv_srvc_cnoc,
  1543. };
  1544. static struct qcom_icc_node * const dc_noc_nodes[] = {
  1545. [MASTER_CNOC_DC_NOC] = &mas_qhm_cnoc_dc_noc,
  1546. [SLAVE_GEM_NOC_CFG] = &slv_qhs_gemnoc,
  1547. [SLAVE_LLCC_CFG] = &slv_qhs_llcc,
  1548. };
  1549. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1550. [MASTER_AMPSS_M0] = &mas_acm_apps,
  1551. [MASTER_GPU_TCU] = &mas_acm_gpu_tcu,
  1552. [MASTER_SYS_TCU] = &mas_acm_sys_tcu,
  1553. [MASTER_GEM_NOC_CFG] = &mas_qhm_gemnoc_cfg,
  1554. [MASTER_COMPUTE_NOC] = &mas_qnm_cmpnoc,
  1555. [MASTER_GRAPHICS_3D] = &mas_qnm_gpu,
  1556. [MASTER_MNOC_HF_MEM_NOC] = &mas_qnm_mnoc_hf,
  1557. [MASTER_MNOC_SF_MEM_NOC] = &mas_qnm_mnoc_sf,
  1558. [MASTER_GEM_NOC_PCIE_SNOC] = &mas_qnm_pcie,
  1559. [MASTER_SNOC_GC_MEM_NOC] = &mas_qnm_snoc_gc,
  1560. [MASTER_SNOC_SF_MEM_NOC] = &mas_qnm_snoc_sf,
  1561. [MASTER_ECC] = &mas_qxm_ecc,
  1562. [SLAVE_MSS_PROC_MS_MPU_CFG] = &slv_qhs_mdsp_ms_mpu_cfg,
  1563. [SLAVE_ECC] = &slv_qns_ecc,
  1564. [SLAVE_GEM_NOC_SNOC] = &slv_qns_gem_noc_snoc,
  1565. [SLAVE_LLCC] = &slv_qns_llcc,
  1566. [SLAVE_SERVICE_GEM_NOC] = &slv_srvc_gemnoc,
  1567. [SLAVE_SERVICE_GEM_NOC_1] = &slv_srvc_gemnoc1,
  1568. };
  1569. static struct qcom_icc_node * const ipa_virt_nodes[] = {
  1570. [MASTER_IPA_CORE] = &mas_ipa_core_master,
  1571. [SLAVE_IPA_CORE] = &slv_ipa_core_slave,
  1572. };
  1573. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1574. [MASTER_LLCC] = &mas_llcc_mc,
  1575. [SLAVE_EBI_CH0] = &slv_ebi,
  1576. };
  1577. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1578. [MASTER_CNOC_MNOC_CFG] = &mas_qhm_mnoc_cfg,
  1579. [MASTER_CAMNOC_HF0] = &mas_qxm_camnoc_hf0,
  1580. [MASTER_CAMNOC_HF1] = &mas_qxm_camnoc_hf1,
  1581. [MASTER_CAMNOC_SF] = &mas_qxm_camnoc_sf,
  1582. [MASTER_MDP_PORT0] = &mas_qxm_mdp0,
  1583. [MASTER_MDP_PORT1] = &mas_qxm_mdp1,
  1584. [MASTER_ROTATOR] = &mas_qxm_rot,
  1585. [MASTER_VIDEO_P0] = &mas_qxm_venus0,
  1586. [MASTER_VIDEO_P1] = &mas_qxm_venus1,
  1587. [MASTER_VIDEO_PROC] = &mas_qxm_venus_arm9,
  1588. [SLAVE_MNOC_SF_MEM_NOC] = &slv_qns2_mem_noc,
  1589. [SLAVE_MNOC_HF_MEM_NOC] = &slv_qns_mem_noc_hf,
  1590. [SLAVE_SERVICE_MNOC] = &slv_srvc_mnoc,
  1591. };
  1592. static struct qcom_icc_node * const system_noc_nodes[] = {
  1593. [MASTER_SNOC_CFG] = &mas_qhm_snoc_cfg,
  1594. [A1NOC_SNOC_MAS] = &mas_qnm_aggre1_noc,
  1595. [A2NOC_SNOC_MAS] = &mas_qnm_aggre2_noc,
  1596. [MASTER_GEM_NOC_SNOC] = &mas_qnm_gemnoc,
  1597. [MASTER_PIMEM] = &mas_qxm_pimem,
  1598. [MASTER_GIC] = &mas_xm_gic,
  1599. [SLAVE_APPSS] = &slv_qhs_apss,
  1600. [SNOC_CNOC_SLV] = &slv_qns_cnoc,
  1601. [SLAVE_SNOC_GEM_NOC_GC] = &slv_qns_gemnoc_gc,
  1602. [SLAVE_SNOC_GEM_NOC_SF] = &slv_qns_gemnoc_sf,
  1603. [SLAVE_OCIMEM] = &slv_qxs_imem,
  1604. [SLAVE_PIMEM] = &slv_qxs_pimem,
  1605. [SLAVE_SERVICE_SNOC] = &slv_srvc_snoc,
  1606. [SLAVE_QDSS_STM] = &slv_xs_qdss_stm,
  1607. [SLAVE_TCU] = &slv_xs_sys_tcu_cfg,
  1608. };
  1609. static const struct qcom_icc_desc sc8180x_aggre1_noc = {
  1610. .nodes = aggre1_noc_nodes,
  1611. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1612. .bcms = aggre1_noc_bcms,
  1613. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1614. };
  1615. static const struct qcom_icc_desc sc8180x_aggre2_noc = {
  1616. .nodes = aggre2_noc_nodes,
  1617. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1618. .bcms = aggre2_noc_bcms,
  1619. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1620. };
  1621. static const struct qcom_icc_desc sc8180x_camnoc_virt = {
  1622. .nodes = camnoc_virt_nodes,
  1623. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1624. .bcms = camnoc_virt_bcms,
  1625. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1626. };
  1627. static const struct qcom_icc_desc sc8180x_compute_noc = {
  1628. .nodes = compute_noc_nodes,
  1629. .num_nodes = ARRAY_SIZE(compute_noc_nodes),
  1630. .bcms = compute_noc_bcms,
  1631. .num_bcms = ARRAY_SIZE(compute_noc_bcms),
  1632. };
  1633. static const struct qcom_icc_desc sc8180x_config_noc = {
  1634. .nodes = config_noc_nodes,
  1635. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1636. .bcms = config_noc_bcms,
  1637. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1638. };
  1639. static const struct qcom_icc_desc sc8180x_dc_noc = {
  1640. .nodes = dc_noc_nodes,
  1641. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1642. };
  1643. static const struct qcom_icc_desc sc8180x_gem_noc = {
  1644. .nodes = gem_noc_nodes,
  1645. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1646. .bcms = gem_noc_bcms,
  1647. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1648. };
  1649. static const struct qcom_icc_desc sc8180x_ipa_virt = {
  1650. .nodes = ipa_virt_nodes,
  1651. .num_nodes = ARRAY_SIZE(ipa_virt_nodes),
  1652. .bcms = ipa_virt_bcms,
  1653. .num_bcms = ARRAY_SIZE(ipa_virt_bcms),
  1654. };
  1655. static const struct qcom_icc_desc sc8180x_mc_virt = {
  1656. .nodes = mc_virt_nodes,
  1657. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1658. .bcms = mc_virt_bcms,
  1659. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1660. };
  1661. static const struct qcom_icc_desc sc8180x_mmss_noc = {
  1662. .nodes = mmss_noc_nodes,
  1663. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1664. .bcms = mmss_noc_bcms,
  1665. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1666. };
  1667. static const struct qcom_icc_desc sc8180x_system_noc = {
  1668. .nodes = system_noc_nodes,
  1669. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1670. .bcms = system_noc_bcms,
  1671. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1672. };
  1673. static struct qcom_icc_bcm * const qup_virt_bcms[] = {
  1674. &bcm_qup0,
  1675. };
  1676. static struct qcom_icc_node *qup_virt_nodes[] = {
  1677. [MASTER_QUP_CORE_0] = &mas_qup_core_0,
  1678. [MASTER_QUP_CORE_1] = &mas_qup_core_1,
  1679. [MASTER_QUP_CORE_2] = &mas_qup_core_2,
  1680. [SLAVE_QUP_CORE_0] = &slv_qup_core_0,
  1681. [SLAVE_QUP_CORE_1] = &slv_qup_core_1,
  1682. [SLAVE_QUP_CORE_2] = &slv_qup_core_2,
  1683. };
  1684. static const struct qcom_icc_desc sc8180x_qup_virt = {
  1685. .nodes = qup_virt_nodes,
  1686. .num_nodes = ARRAY_SIZE(qup_virt_nodes),
  1687. .bcms = qup_virt_bcms,
  1688. .num_bcms = ARRAY_SIZE(qup_virt_bcms),
  1689. };
  1690. static const struct of_device_id qnoc_of_match[] = {
  1691. { .compatible = "qcom,sc8180x-aggre1-noc", .data = &sc8180x_aggre1_noc },
  1692. { .compatible = "qcom,sc8180x-aggre2-noc", .data = &sc8180x_aggre2_noc },
  1693. { .compatible = "qcom,sc8180x-camnoc-virt", .data = &sc8180x_camnoc_virt },
  1694. { .compatible = "qcom,sc8180x-compute-noc", .data = &sc8180x_compute_noc, },
  1695. { .compatible = "qcom,sc8180x-config-noc", .data = &sc8180x_config_noc },
  1696. { .compatible = "qcom,sc8180x-dc-noc", .data = &sc8180x_dc_noc },
  1697. { .compatible = "qcom,sc8180x-gem-noc", .data = &sc8180x_gem_noc },
  1698. { .compatible = "qcom,sc8180x-ipa-virt", .data = &sc8180x_ipa_virt },
  1699. { .compatible = "qcom,sc8180x-mc-virt", .data = &sc8180x_mc_virt },
  1700. { .compatible = "qcom,sc8180x-mmss-noc", .data = &sc8180x_mmss_noc },
  1701. { .compatible = "qcom,sc8180x-qup-virt", .data = &sc8180x_qup_virt },
  1702. { .compatible = "qcom,sc8180x-system-noc", .data = &sc8180x_system_noc },
  1703. { }
  1704. };
  1705. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1706. static struct platform_driver qnoc_driver = {
  1707. .probe = qcom_icc_rpmh_probe,
  1708. .remove = qcom_icc_rpmh_remove,
  1709. .driver = {
  1710. .name = "qnoc-sc8180x",
  1711. .of_match_table = qnoc_of_match,
  1712. .sync_state = icc_sync_state,
  1713. },
  1714. };
  1715. module_platform_driver(qnoc_driver);
  1716. MODULE_DESCRIPTION("Qualcomm sc8180x NoC driver");
  1717. MODULE_LICENSE("GPL v2");