sc8180x.c 45 KB

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