sar2130p.c 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved.
  5. * Copyright (c) 2024, Linaro Ltd.
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/io.h>
  11. #include <linux/module.h>
  12. #include <linux/of_device.h>
  13. #include <linux/of_platform.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/sort.h>
  16. #include <dt-bindings/interconnect/qcom,sar2130p-rpmh.h>
  17. #include "bcm-voter.h"
  18. #include "icc-common.h"
  19. #include "icc-rpmh.h"
  20. static struct qcom_icc_node qup0_core_master;
  21. static struct qcom_icc_node qup1_core_master;
  22. static struct qcom_icc_node qnm_gemnoc_cnoc;
  23. static struct qcom_icc_node qnm_gemnoc_pcie;
  24. static struct qcom_icc_node xm_qdss_dap;
  25. static struct qcom_icc_node alm_gpu_tcu;
  26. static struct qcom_icc_node alm_sys_tcu;
  27. static struct qcom_icc_node chm_apps;
  28. static struct qcom_icc_node qnm_gpu;
  29. static struct qcom_icc_node qnm_mnoc_hf;
  30. static struct qcom_icc_node qnm_mnoc_sf;
  31. static struct qcom_icc_node qnm_nsp_gemnoc;
  32. static struct qcom_icc_node qnm_pcie;
  33. static struct qcom_icc_node qnm_snoc_gc;
  34. static struct qcom_icc_node qnm_snoc_sf;
  35. static struct qcom_icc_node qxm_wlan_q6;
  36. static struct qcom_icc_node qhm_config_noc;
  37. static struct qcom_icc_node qxm_lpass_dsp;
  38. static struct qcom_icc_node llcc_mc;
  39. static struct qcom_icc_node qnm_camnoc_hf;
  40. static struct qcom_icc_node qnm_camnoc_icp;
  41. static struct qcom_icc_node qnm_camnoc_sf;
  42. static struct qcom_icc_node qnm_lsr;
  43. static struct qcom_icc_node qnm_mdp;
  44. static struct qcom_icc_node qnm_mnoc_cfg;
  45. static struct qcom_icc_node qnm_video;
  46. static struct qcom_icc_node qnm_video_cv_cpu;
  47. static struct qcom_icc_node qnm_video_cvp;
  48. static struct qcom_icc_node qnm_video_v_cpu;
  49. static struct qcom_icc_node qhm_nsp_noc_config;
  50. static struct qcom_icc_node qxm_nsp;
  51. static struct qcom_icc_node xm_pcie3_0;
  52. static struct qcom_icc_node xm_pcie3_1;
  53. static struct qcom_icc_node qhm_gic;
  54. static struct qcom_icc_node qhm_qdss_bam;
  55. static struct qcom_icc_node qhm_qspi;
  56. static struct qcom_icc_node qhm_qup0;
  57. static struct qcom_icc_node qhm_qup1;
  58. static struct qcom_icc_node qnm_aggre2_noc;
  59. static struct qcom_icc_node qnm_cnoc_datapath;
  60. static struct qcom_icc_node qnm_lpass_noc;
  61. static struct qcom_icc_node qnm_snoc_cfg;
  62. static struct qcom_icc_node qxm_crypto;
  63. static struct qcom_icc_node qxm_pimem;
  64. static struct qcom_icc_node xm_gic;
  65. static struct qcom_icc_node xm_qdss_etr_0;
  66. static struct qcom_icc_node xm_qdss_etr_1;
  67. static struct qcom_icc_node xm_sdc1;
  68. static struct qcom_icc_node xm_usb3_0;
  69. static struct qcom_icc_node qup0_core_slave;
  70. static struct qcom_icc_node qup1_core_slave;
  71. static struct qcom_icc_node qhs_ahb2phy0;
  72. static struct qcom_icc_node qhs_aoss;
  73. static struct qcom_icc_node qhs_camera_cfg;
  74. static struct qcom_icc_node qhs_clk_ctl;
  75. static struct qcom_icc_node qhs_compute_cfg;
  76. static struct qcom_icc_node qhs_cpr_cx;
  77. static struct qcom_icc_node qhs_cpr_mmcx;
  78. static struct qcom_icc_node qhs_cpr_mxa;
  79. static struct qcom_icc_node qhs_cpr_mxc;
  80. static struct qcom_icc_node qhs_cpr_nspcx;
  81. static struct qcom_icc_node qhs_crypto0_cfg;
  82. static struct qcom_icc_node qhs_cx_rdpm;
  83. static struct qcom_icc_node qhs_display_cfg;
  84. static struct qcom_icc_node qhs_gpuss_cfg;
  85. static struct qcom_icc_node qhs_imem_cfg;
  86. static struct qcom_icc_node qhs_ipc_router;
  87. static struct qcom_icc_node qhs_lpass_cfg;
  88. static struct qcom_icc_node qhs_mx_rdpm;
  89. static struct qcom_icc_node qhs_pcie0_cfg;
  90. static struct qcom_icc_node qhs_pcie1_cfg;
  91. static struct qcom_icc_node qhs_pdm;
  92. static struct qcom_icc_node qhs_pimem_cfg;
  93. static struct qcom_icc_node qhs_prng;
  94. static struct qcom_icc_node qhs_qdss_cfg;
  95. static struct qcom_icc_node qhs_qspi;
  96. static struct qcom_icc_node qhs_qup0;
  97. static struct qcom_icc_node qhs_qup1;
  98. static struct qcom_icc_node qhs_sdc1;
  99. static struct qcom_icc_node qhs_tcsr;
  100. static struct qcom_icc_node qhs_tlmm;
  101. static struct qcom_icc_node qhs_tme_cfg;
  102. static struct qcom_icc_node qhs_usb3_0;
  103. static struct qcom_icc_node qhs_venus_cfg;
  104. static struct qcom_icc_node qhs_vsense_ctrl_cfg;
  105. static struct qcom_icc_node qhs_wlan_q6;
  106. static struct qcom_icc_node qns_ddrss_cfg;
  107. static struct qcom_icc_node qns_mnoc_cfg;
  108. static struct qcom_icc_node qns_snoc_cfg;
  109. static struct qcom_icc_node qxs_imem;
  110. static struct qcom_icc_node qxs_pimem;
  111. static struct qcom_icc_node srvc_cnoc;
  112. static struct qcom_icc_node xs_pcie_0;
  113. static struct qcom_icc_node xs_pcie_1;
  114. static struct qcom_icc_node xs_qdss_stm;
  115. static struct qcom_icc_node xs_sys_tcu_cfg;
  116. static struct qcom_icc_node qns_gem_noc_cnoc;
  117. static struct qcom_icc_node qns_llcc;
  118. static struct qcom_icc_node qns_pcie;
  119. static struct qcom_icc_node qhs_lpass_core;
  120. static struct qcom_icc_node qhs_lpass_lpi;
  121. static struct qcom_icc_node qhs_lpass_mpu;
  122. static struct qcom_icc_node qhs_lpass_top;
  123. static struct qcom_icc_node qns_sysnoc;
  124. static struct qcom_icc_node srvc_niu_aml_noc;
  125. static struct qcom_icc_node srvc_niu_lpass_agnoc;
  126. static struct qcom_icc_node ebi;
  127. static struct qcom_icc_node qns_mem_noc_hf;
  128. static struct qcom_icc_node qns_mem_noc_sf;
  129. static struct qcom_icc_node srvc_mnoc;
  130. static struct qcom_icc_node qns_nsp_gemnoc;
  131. static struct qcom_icc_node service_nsp_noc;
  132. static struct qcom_icc_node qns_pcie_mem_noc;
  133. static struct qcom_icc_node qns_a2noc_snoc;
  134. static struct qcom_icc_node qns_gemnoc_gc;
  135. static struct qcom_icc_node qns_gemnoc_sf;
  136. static struct qcom_icc_node srvc_snoc;
  137. static const struct regmap_config icc_regmap_config = {
  138. .reg_bits = 32,
  139. .reg_stride = 4,
  140. .val_bits = 32,
  141. .fast_io = true,
  142. };
  143. static struct qcom_icc_node qup0_core_master = {
  144. .name = "qup0_core_master",
  145. .channels = 1,
  146. .buswidth = 4,
  147. .num_links = 1,
  148. .link_nodes = { &qup0_core_slave },
  149. };
  150. static struct qcom_icc_node qup1_core_master = {
  151. .name = "qup1_core_master",
  152. .channels = 1,
  153. .buswidth = 4,
  154. .num_links = 1,
  155. .link_nodes = { &qup1_core_slave },
  156. };
  157. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  158. .name = "qnm_gemnoc_cnoc",
  159. .channels = 1,
  160. .buswidth = 16,
  161. .num_links = 43,
  162. .link_nodes = { &qhs_ahb2phy0, &qhs_aoss,
  163. &qhs_camera_cfg, &qhs_clk_ctl,
  164. &qhs_compute_cfg, &qhs_cpr_cx,
  165. &qhs_cpr_mmcx, &qhs_cpr_mxa,
  166. &qhs_cpr_mxc, &qhs_cpr_nspcx,
  167. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  168. &qhs_display_cfg, &qhs_gpuss_cfg,
  169. &qhs_imem_cfg, &qhs_ipc_router,
  170. &qhs_lpass_cfg, &qhs_mx_rdpm,
  171. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  172. &qhs_pdm, &qhs_pimem_cfg,
  173. &qhs_prng, &qhs_qdss_cfg,
  174. &qhs_qspi, &qhs_qup0,
  175. &qhs_qup1, &qhs_sdc1,
  176. &qhs_tcsr, &qhs_tlmm,
  177. &qhs_tme_cfg, &qhs_usb3_0,
  178. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  179. &qhs_wlan_q6, &qns_ddrss_cfg,
  180. &qns_mnoc_cfg, &qns_snoc_cfg,
  181. &qxs_imem, &qxs_pimem,
  182. &srvc_cnoc, &xs_qdss_stm,
  183. &xs_sys_tcu_cfg },
  184. };
  185. static struct qcom_icc_node qnm_gemnoc_pcie = {
  186. .name = "qnm_gemnoc_pcie",
  187. .channels = 1,
  188. .buswidth = 8,
  189. .num_links = 2,
  190. .link_nodes = { &xs_pcie_0, &xs_pcie_1 },
  191. };
  192. static struct qcom_icc_node xm_qdss_dap = {
  193. .name = "xm_qdss_dap",
  194. .channels = 1,
  195. .buswidth = 8,
  196. .num_links = 43,
  197. .link_nodes = { &qhs_ahb2phy0, &qhs_aoss,
  198. &qhs_camera_cfg, &qhs_clk_ctl,
  199. &qhs_compute_cfg, &qhs_cpr_cx,
  200. &qhs_cpr_mmcx, &qhs_cpr_mxa,
  201. &qhs_cpr_mxc, &qhs_cpr_nspcx,
  202. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  203. &qhs_display_cfg, &qhs_gpuss_cfg,
  204. &qhs_imem_cfg, &qhs_ipc_router,
  205. &qhs_lpass_cfg, &qhs_mx_rdpm,
  206. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  207. &qhs_pdm, &qhs_pimem_cfg,
  208. &qhs_prng, &qhs_qdss_cfg,
  209. &qhs_qspi, &qhs_qup0,
  210. &qhs_qup1, &qhs_sdc1,
  211. &qhs_tcsr, &qhs_tlmm,
  212. &qhs_tme_cfg, &qhs_usb3_0,
  213. &qhs_venus_cfg, &qhs_vsense_ctrl_cfg,
  214. &qhs_wlan_q6, &qns_ddrss_cfg,
  215. &qns_mnoc_cfg, &qns_snoc_cfg,
  216. &qxs_imem, &qxs_pimem,
  217. &srvc_cnoc, &xs_qdss_stm,
  218. &xs_sys_tcu_cfg },
  219. };
  220. static const struct qcom_icc_qosbox alm_gpu_tcu_qos = {
  221. .num_ports = 1,
  222. .port_offsets = { 0x9e000 },
  223. .prio = 1,
  224. .urg_fwd = 0,
  225. .prio_fwd_disable = 1,
  226. };
  227. static struct qcom_icc_node alm_gpu_tcu = {
  228. .name = "alm_gpu_tcu",
  229. .channels = 1,
  230. .buswidth = 8,
  231. .qosbox = &alm_gpu_tcu_qos,
  232. .num_links = 2,
  233. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  234. };
  235. static const struct qcom_icc_qosbox alm_sys_tcu_qos = {
  236. .num_ports = 1,
  237. .port_offsets = { 0x9f000 },
  238. .prio = 6,
  239. .urg_fwd = 0,
  240. .prio_fwd_disable = 1,
  241. };
  242. static struct qcom_icc_node alm_sys_tcu = {
  243. .name = "alm_sys_tcu",
  244. .channels = 1,
  245. .buswidth = 8,
  246. .qosbox = &alm_sys_tcu_qos,
  247. .num_links = 2,
  248. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  249. };
  250. static struct qcom_icc_node chm_apps = {
  251. .name = "chm_apps",
  252. .channels = 1,
  253. .buswidth = 32,
  254. .num_links = 3,
  255. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  256. &qns_pcie },
  257. };
  258. static const struct qcom_icc_qosbox qnm_gpu_qos = {
  259. .num_ports = 2,
  260. .port_offsets = { 0xe000, 0x4e000 },
  261. .prio = 0,
  262. .urg_fwd = 0,
  263. .prio_fwd_disable = 1,
  264. };
  265. static struct qcom_icc_node qnm_gpu = {
  266. .name = "qnm_gpu",
  267. .channels = 2,
  268. .buswidth = 32,
  269. .qosbox = &qnm_gpu_qos,
  270. .num_links = 2,
  271. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  272. };
  273. static const struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  274. .num_ports = 2,
  275. .port_offsets = { 0xf000, 0x4f000 },
  276. .prio = 0,
  277. .urg_fwd = 1,
  278. };
  279. static struct qcom_icc_node qnm_mnoc_hf = {
  280. .name = "qnm_mnoc_hf",
  281. .channels = 2,
  282. .buswidth = 32,
  283. .qosbox = &qnm_mnoc_hf_qos,
  284. .num_links = 2,
  285. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  286. };
  287. static const struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  288. .num_ports = 1,
  289. .port_offsets = { 0x9d000 },
  290. .prio = 0,
  291. .urg_fwd = 1,
  292. };
  293. static struct qcom_icc_node qnm_mnoc_sf = {
  294. .name = "qnm_mnoc_sf",
  295. .channels = 1,
  296. .buswidth = 32,
  297. .qosbox = &qnm_mnoc_sf_qos,
  298. .num_links = 2,
  299. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  300. };
  301. static const struct qcom_icc_qosbox qnm_nsp_gemnoc_qos = {
  302. .num_ports = 2,
  303. .port_offsets = { 0x10000, 0x50000 },
  304. .prio = 0,
  305. .urg_fwd = 0,
  306. .prio_fwd_disable = 1,
  307. };
  308. static struct qcom_icc_node qnm_nsp_gemnoc = {
  309. .name = "qnm_nsp_gemnoc",
  310. .channels = 2,
  311. .buswidth = 32,
  312. .qosbox = &qnm_nsp_gemnoc_qos,
  313. .num_links = 2,
  314. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  315. };
  316. static const struct qcom_icc_qosbox qnm_pcie_qos = {
  317. .num_ports = 1,
  318. .port_offsets = { 0xa2000 },
  319. .prio = 2,
  320. .urg_fwd = 1,
  321. };
  322. static struct qcom_icc_node qnm_pcie = {
  323. .name = "qnm_pcie",
  324. .channels = 1,
  325. .buswidth = 16,
  326. .qosbox = &qnm_pcie_qos,
  327. .num_links = 2,
  328. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc },
  329. };
  330. static const struct qcom_icc_qosbox qnm_snoc_gc_qos = {
  331. .num_ports = 1,
  332. .port_offsets = { 0xa0000 },
  333. .prio = 0,
  334. .urg_fwd = 1,
  335. };
  336. static struct qcom_icc_node qnm_snoc_gc = {
  337. .name = "qnm_snoc_gc",
  338. .channels = 1,
  339. .buswidth = 8,
  340. .qosbox = &qnm_snoc_gc_qos,
  341. .num_links = 1,
  342. .link_nodes = { &qns_llcc },
  343. };
  344. static const struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  345. .num_ports = 1,
  346. .port_offsets = { 0xa1000 },
  347. .prio = 0,
  348. .urg_fwd = 1,
  349. };
  350. static struct qcom_icc_node qnm_snoc_sf = {
  351. .name = "qnm_snoc_sf",
  352. .channels = 1,
  353. .buswidth = 16,
  354. .qosbox = &qnm_snoc_sf_qos,
  355. .num_links = 3,
  356. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  357. &qns_pcie },
  358. };
  359. static struct qcom_icc_node qxm_wlan_q6 = {
  360. .name = "qxm_wlan_q6",
  361. .channels = 1,
  362. .buswidth = 8,
  363. .num_links = 3,
  364. .link_nodes = { &qns_gem_noc_cnoc, &qns_llcc,
  365. &qns_pcie },
  366. };
  367. static struct qcom_icc_node qhm_config_noc = {
  368. .name = "qhm_config_noc",
  369. .channels = 1,
  370. .buswidth = 4,
  371. .num_links = 6,
  372. .link_nodes = { &qhs_lpass_core, &qhs_lpass_lpi,
  373. &qhs_lpass_mpu, &qhs_lpass_top,
  374. &srvc_niu_aml_noc, &srvc_niu_lpass_agnoc },
  375. };
  376. static struct qcom_icc_node qxm_lpass_dsp = {
  377. .name = "qxm_lpass_dsp",
  378. .channels = 1,
  379. .buswidth = 8,
  380. .num_links = 4,
  381. .link_nodes = { &qhs_lpass_top, &qns_sysnoc,
  382. &srvc_niu_aml_noc, &srvc_niu_lpass_agnoc },
  383. };
  384. static struct qcom_icc_node llcc_mc = {
  385. .name = "llcc_mc",
  386. .channels = 1,
  387. .buswidth = 4,
  388. .num_links = 1,
  389. .link_nodes = { &ebi },
  390. };
  391. static const struct qcom_icc_qosbox qnm_camnoc_hf_qos = {
  392. .num_ports = 1,
  393. .port_offsets = { 0x1c000 },
  394. .prio = 0,
  395. .urg_fwd = 1,
  396. };
  397. static struct qcom_icc_node qnm_camnoc_hf = {
  398. .name = "qnm_camnoc_hf",
  399. .channels = 1,
  400. .buswidth = 32,
  401. .qosbox = &qnm_camnoc_hf_qos,
  402. .num_links = 1,
  403. .link_nodes = { &qns_mem_noc_hf },
  404. };
  405. static const struct qcom_icc_qosbox qnm_camnoc_icp_qos = {
  406. .num_ports = 1,
  407. .port_offsets = { 0x1c080 },
  408. .prio = 4,
  409. .urg_fwd = 1,
  410. };
  411. static struct qcom_icc_node qnm_camnoc_icp = {
  412. .name = "qnm_camnoc_icp",
  413. .channels = 1,
  414. .buswidth = 8,
  415. .qosbox = &qnm_camnoc_icp_qos,
  416. .num_links = 1,
  417. .link_nodes = { &qns_mem_noc_sf },
  418. };
  419. static const struct qcom_icc_qosbox qnm_camnoc_sf_qos = {
  420. .num_ports = 1,
  421. .port_offsets = { 0x1c100 },
  422. .prio = 0,
  423. .urg_fwd = 1,
  424. };
  425. static struct qcom_icc_node qnm_camnoc_sf = {
  426. .name = "qnm_camnoc_sf",
  427. .channels = 1,
  428. .buswidth = 32,
  429. .qosbox = &qnm_camnoc_sf_qos,
  430. .num_links = 1,
  431. .link_nodes = { &qns_mem_noc_sf },
  432. };
  433. static const struct qcom_icc_qosbox qnm_lsr_qos = {
  434. .num_ports = 2,
  435. .port_offsets = { 0x1f000, 0x1f080 },
  436. .prio = 3,
  437. .urg_fwd = 1,
  438. };
  439. static struct qcom_icc_node qnm_lsr = {
  440. .name = "qnm_lsr",
  441. .channels = 2,
  442. .buswidth = 32,
  443. .qosbox = &qnm_lsr_qos,
  444. .num_links = 1,
  445. .link_nodes = { &qns_mem_noc_hf },
  446. };
  447. static const struct qcom_icc_qosbox qnm_mdp_qos = {
  448. .num_ports = 2,
  449. .port_offsets = { 0x1d000, 0x1d080 },
  450. .prio = 0,
  451. .urg_fwd = 1,
  452. };
  453. static struct qcom_icc_node qnm_mdp = {
  454. .name = "qnm_mdp",
  455. .channels = 2,
  456. .buswidth = 32,
  457. .qosbox = &qnm_mdp_qos,
  458. .num_links = 1,
  459. .link_nodes = { &qns_mem_noc_hf },
  460. };
  461. static struct qcom_icc_node qnm_mnoc_cfg = {
  462. .name = "qnm_mnoc_cfg",
  463. .channels = 1,
  464. .buswidth = 4,
  465. .num_links = 1,
  466. .link_nodes = { &srvc_mnoc },
  467. };
  468. static const struct qcom_icc_qosbox qnm_video_qos = {
  469. .num_ports = 2,
  470. .port_offsets = { 0x1e000, 0x1e080 },
  471. .prio = 0,
  472. .urg_fwd = 1,
  473. };
  474. static struct qcom_icc_node qnm_video = {
  475. .name = "qnm_video",
  476. .channels = 2,
  477. .buswidth = 32,
  478. .qosbox = &qnm_video_qos,
  479. .num_links = 1,
  480. .link_nodes = { &qns_mem_noc_sf },
  481. };
  482. static const struct qcom_icc_qosbox qnm_video_cv_cpu_qos = {
  483. .num_ports = 1,
  484. .port_offsets = { 0x1e100 },
  485. .prio = 4,
  486. .urg_fwd = 1,
  487. };
  488. static struct qcom_icc_node qnm_video_cv_cpu = {
  489. .name = "qnm_video_cv_cpu",
  490. .channels = 1,
  491. .buswidth = 8,
  492. .qosbox = &qnm_video_cv_cpu_qos,
  493. .num_links = 1,
  494. .link_nodes = { &qns_mem_noc_sf },
  495. };
  496. static const struct qcom_icc_qosbox qnm_video_cvp_qos = {
  497. .num_ports = 1,
  498. .port_offsets = { 0x1e180 },
  499. .prio = 0,
  500. .urg_fwd = 1,
  501. };
  502. static struct qcom_icc_node qnm_video_cvp = {
  503. .name = "qnm_video_cvp",
  504. .channels = 1,
  505. .buswidth = 32,
  506. .qosbox = &qnm_video_cvp_qos,
  507. .num_links = 1,
  508. .link_nodes = { &qns_mem_noc_sf },
  509. };
  510. static const struct qcom_icc_qosbox qnm_video_v_cpu_qos = {
  511. .num_ports = 1,
  512. .port_offsets = { 0x1e200 },
  513. .prio = 4,
  514. .urg_fwd = 1,
  515. };
  516. static struct qcom_icc_node qnm_video_v_cpu = {
  517. .name = "qnm_video_v_cpu",
  518. .channels = 1,
  519. .buswidth = 8,
  520. .qosbox = &qnm_video_v_cpu_qos,
  521. .num_links = 1,
  522. .link_nodes = { &qns_mem_noc_sf },
  523. };
  524. static struct qcom_icc_node qhm_nsp_noc_config = {
  525. .name = "qhm_nsp_noc_config",
  526. .channels = 1,
  527. .buswidth = 4,
  528. .num_links = 1,
  529. .link_nodes = { &service_nsp_noc },
  530. };
  531. static struct qcom_icc_node qxm_nsp = {
  532. .name = "qxm_nsp",
  533. .channels = 2,
  534. .buswidth = 32,
  535. .num_links = 1,
  536. .link_nodes = { &qns_nsp_gemnoc },
  537. };
  538. static const struct qcom_icc_qosbox xm_pcie3_0_qos = {
  539. .num_ports = 1,
  540. .port_offsets = { 0x9000 },
  541. .prio = 3,
  542. .urg_fwd = 0,
  543. .prio_fwd_disable = 1,
  544. };
  545. static struct qcom_icc_node xm_pcie3_0 = {
  546. .name = "xm_pcie3_0",
  547. .channels = 1,
  548. .buswidth = 8,
  549. .qosbox = &xm_pcie3_0_qos,
  550. .num_links = 1,
  551. .link_nodes = { &qns_pcie_mem_noc },
  552. };
  553. static const struct qcom_icc_qosbox xm_pcie3_1_qos = {
  554. .num_ports = 1,
  555. .port_offsets = { 0xa000 },
  556. .prio = 2,
  557. .urg_fwd = 0,
  558. .prio_fwd_disable = 1,
  559. };
  560. static struct qcom_icc_node xm_pcie3_1 = {
  561. .name = "xm_pcie3_1",
  562. .channels = 1,
  563. .buswidth = 8,
  564. .qosbox = &xm_pcie3_1_qos,
  565. .num_links = 1,
  566. .link_nodes = { &qns_pcie_mem_noc },
  567. };
  568. static const struct qcom_icc_qosbox qhm_gic_qos = {
  569. .num_ports = 1,
  570. .port_offsets = { 0x1d000 },
  571. .prio = 2,
  572. .urg_fwd = 0,
  573. .prio_fwd_disable = 1,
  574. };
  575. static struct qcom_icc_node qhm_gic = {
  576. .name = "qhm_gic",
  577. .channels = 1,
  578. .buswidth = 4,
  579. .qosbox = &qhm_gic_qos,
  580. .num_links = 1,
  581. .link_nodes = { &qns_gemnoc_sf },
  582. };
  583. static const struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  584. .num_ports = 1,
  585. .port_offsets = { 0x22000 },
  586. .prio = 2,
  587. .urg_fwd = 0,
  588. .prio_fwd_disable = 1,
  589. };
  590. static struct qcom_icc_node qhm_qdss_bam = {
  591. .name = "qhm_qdss_bam",
  592. .channels = 1,
  593. .buswidth = 4,
  594. .qosbox = &qhm_qdss_bam_qos,
  595. .num_links = 1,
  596. .link_nodes = { &qns_a2noc_snoc },
  597. };
  598. static const struct qcom_icc_qosbox qhm_qspi_qos = {
  599. .num_ports = 1,
  600. .port_offsets = { 0x23000 },
  601. .prio = 2,
  602. .urg_fwd = 0,
  603. .prio_fwd_disable = 1,
  604. };
  605. static struct qcom_icc_node qhm_qspi = {
  606. .name = "qhm_qspi",
  607. .channels = 1,
  608. .buswidth = 4,
  609. .qosbox = &qhm_qspi_qos,
  610. .num_links = 1,
  611. .link_nodes = { &qns_a2noc_snoc },
  612. };
  613. static const struct qcom_icc_qosbox qhm_qup0_qos = {
  614. .num_ports = 1,
  615. .port_offsets = { 0x24000 },
  616. .prio = 2,
  617. .urg_fwd = 0,
  618. .prio_fwd_disable = 1,
  619. };
  620. static struct qcom_icc_node qhm_qup0 = {
  621. .name = "qhm_qup0",
  622. .channels = 1,
  623. .buswidth = 4,
  624. .qosbox = &qhm_qup0_qos,
  625. .num_links = 1,
  626. .link_nodes = { &qns_a2noc_snoc },
  627. };
  628. static const struct qcom_icc_qosbox qhm_qup1_qos = {
  629. .num_ports = 1,
  630. .port_offsets = { 0x25000 },
  631. .prio = 2,
  632. .urg_fwd = 0,
  633. .prio_fwd_disable = 1,
  634. };
  635. static struct qcom_icc_node qhm_qup1 = {
  636. .name = "qhm_qup1",
  637. .channels = 1,
  638. .buswidth = 4,
  639. .qosbox = &qhm_qup1_qos,
  640. .num_links = 1,
  641. .link_nodes = { &qns_a2noc_snoc },
  642. };
  643. static struct qcom_icc_node qnm_aggre2_noc = {
  644. .name = "qnm_aggre2_noc",
  645. .channels = 1,
  646. .buswidth = 16,
  647. .num_links = 1,
  648. .link_nodes = { &qns_gemnoc_sf },
  649. };
  650. static const struct qcom_icc_qosbox qnm_cnoc_datapath_qos = {
  651. .num_ports = 1,
  652. .port_offsets = { 0x26000 },
  653. .prio = 2,
  654. .urg_fwd = 0,
  655. .prio_fwd_disable = 1,
  656. };
  657. static struct qcom_icc_node qnm_cnoc_datapath = {
  658. .name = "qnm_cnoc_datapath",
  659. .channels = 1,
  660. .buswidth = 8,
  661. .qosbox = &qnm_cnoc_datapath_qos,
  662. .num_links = 1,
  663. .link_nodes = { &qns_a2noc_snoc },
  664. };
  665. static const struct qcom_icc_qosbox qnm_lpass_noc_qos = {
  666. .num_ports = 1,
  667. .port_offsets = { 0x1e000 },
  668. .prio = 0,
  669. .urg_fwd = 0,
  670. .prio_fwd_disable = 1,
  671. };
  672. static struct qcom_icc_node qnm_lpass_noc = {
  673. .name = "qnm_lpass_noc",
  674. .channels = 1,
  675. .buswidth = 16,
  676. .qosbox = &qnm_lpass_noc_qos,
  677. .num_links = 1,
  678. .link_nodes = { &qns_gemnoc_sf },
  679. };
  680. static struct qcom_icc_node qnm_snoc_cfg = {
  681. .name = "qnm_snoc_cfg",
  682. .channels = 1,
  683. .buswidth = 4,
  684. .num_links = 1,
  685. .link_nodes = { &srvc_snoc },
  686. };
  687. static const struct qcom_icc_qosbox qxm_crypto_qos = {
  688. .num_ports = 1,
  689. .port_offsets = { 0x27000 },
  690. .prio = 2,
  691. .urg_fwd = 0,
  692. .prio_fwd_disable = 1,
  693. };
  694. static struct qcom_icc_node qxm_crypto = {
  695. .name = "qxm_crypto",
  696. .channels = 1,
  697. .buswidth = 8,
  698. .qosbox = &qxm_crypto_qos,
  699. .num_links = 1,
  700. .link_nodes = { &qns_a2noc_snoc },
  701. };
  702. static const struct qcom_icc_qosbox qxm_pimem_qos = {
  703. .num_ports = 1,
  704. .port_offsets = { 0x1f000 },
  705. .prio = 2,
  706. .urg_fwd = 0,
  707. .prio_fwd_disable = 1,
  708. };
  709. static struct qcom_icc_node qxm_pimem = {
  710. .name = "qxm_pimem",
  711. .channels = 1,
  712. .buswidth = 8,
  713. .qosbox = &qxm_pimem_qos,
  714. .num_links = 1,
  715. .link_nodes = { &qns_gemnoc_gc },
  716. };
  717. static const struct qcom_icc_qosbox xm_gic_qos = {
  718. .num_ports = 1,
  719. .port_offsets = { 0x21000 },
  720. .prio = 2,
  721. .urg_fwd = 0,
  722. .prio_fwd_disable = 1,
  723. };
  724. static struct qcom_icc_node xm_gic = {
  725. .name = "xm_gic",
  726. .channels = 1,
  727. .buswidth = 8,
  728. .qosbox = &xm_gic_qos,
  729. .num_links = 1,
  730. .link_nodes = { &qns_gemnoc_gc },
  731. };
  732. static const struct qcom_icc_qosbox xm_qdss_etr_0_qos = {
  733. .num_ports = 1,
  734. .port_offsets = { 0x1b000 },
  735. .prio = 2,
  736. .urg_fwd = 0,
  737. .prio_fwd_disable = 1,
  738. };
  739. static struct qcom_icc_node xm_qdss_etr_0 = {
  740. .name = "xm_qdss_etr_0",
  741. .channels = 1,
  742. .buswidth = 8,
  743. .qosbox = &xm_qdss_etr_0_qos,
  744. .num_links = 1,
  745. .link_nodes = { &qns_a2noc_snoc },
  746. };
  747. static const struct qcom_icc_qosbox xm_qdss_etr_1_qos = {
  748. .num_ports = 1,
  749. .port_offsets = { 0x1c000 },
  750. .prio = 2,
  751. .urg_fwd = 0,
  752. .prio_fwd_disable = 1,
  753. };
  754. static struct qcom_icc_node xm_qdss_etr_1 = {
  755. .name = "xm_qdss_etr_1",
  756. .channels = 1,
  757. .buswidth = 8,
  758. .qosbox = &xm_qdss_etr_1_qos,
  759. .num_links = 1,
  760. .link_nodes = { &qns_a2noc_snoc },
  761. };
  762. static const struct qcom_icc_qosbox xm_sdc1_qos = {
  763. .num_ports = 1,
  764. .port_offsets = { 0x29000 },
  765. .prio = 2,
  766. .urg_fwd = 0,
  767. .prio_fwd_disable = 1,
  768. };
  769. static struct qcom_icc_node xm_sdc1 = {
  770. .name = "xm_sdc1",
  771. .channels = 1,
  772. .buswidth = 8,
  773. .qosbox = &xm_sdc1_qos,
  774. .num_links = 1,
  775. .link_nodes = { &qns_a2noc_snoc },
  776. };
  777. static const struct qcom_icc_qosbox xm_usb3_0_qos = {
  778. .num_ports = 1,
  779. .port_offsets = { 0x28000 },
  780. .prio = 2,
  781. .urg_fwd = 0,
  782. .prio_fwd_disable = 1,
  783. };
  784. static struct qcom_icc_node xm_usb3_0 = {
  785. .name = "xm_usb3_0",
  786. .channels = 1,
  787. .buswidth = 8,
  788. .qosbox = &xm_usb3_0_qos,
  789. .num_links = 1,
  790. .link_nodes = { &qns_a2noc_snoc },
  791. };
  792. static struct qcom_icc_node qup0_core_slave = {
  793. .name = "qup0_core_slave",
  794. .channels = 1,
  795. .buswidth = 4,
  796. };
  797. static struct qcom_icc_node qup1_core_slave = {
  798. .name = "qup1_core_slave",
  799. .channels = 1,
  800. .buswidth = 4,
  801. };
  802. static struct qcom_icc_node qhs_ahb2phy0 = {
  803. .name = "qhs_ahb2phy0",
  804. .channels = 1,
  805. .buswidth = 4,
  806. };
  807. static struct qcom_icc_node qhs_aoss = {
  808. .name = "qhs_aoss",
  809. .channels = 1,
  810. .buswidth = 4,
  811. };
  812. static struct qcom_icc_node qhs_camera_cfg = {
  813. .name = "qhs_camera_cfg",
  814. .channels = 1,
  815. .buswidth = 4,
  816. };
  817. static struct qcom_icc_node qhs_clk_ctl = {
  818. .name = "qhs_clk_ctl",
  819. .channels = 1,
  820. .buswidth = 4,
  821. };
  822. static struct qcom_icc_node qhs_compute_cfg = {
  823. .name = "qhs_compute_cfg",
  824. .channels = 1,
  825. .buswidth = 4,
  826. .num_links = 1,
  827. .link_nodes = { &qhm_nsp_noc_config },
  828. };
  829. static struct qcom_icc_node qhs_cpr_cx = {
  830. .name = "qhs_cpr_cx",
  831. .channels = 1,
  832. .buswidth = 4,
  833. };
  834. static struct qcom_icc_node qhs_cpr_mmcx = {
  835. .name = "qhs_cpr_mmcx",
  836. .channels = 1,
  837. .buswidth = 4,
  838. };
  839. static struct qcom_icc_node qhs_cpr_mxa = {
  840. .name = "qhs_cpr_mxa",
  841. .channels = 1,
  842. .buswidth = 4,
  843. };
  844. static struct qcom_icc_node qhs_cpr_mxc = {
  845. .name = "qhs_cpr_mxc",
  846. .channels = 1,
  847. .buswidth = 4,
  848. };
  849. static struct qcom_icc_node qhs_cpr_nspcx = {
  850. .name = "qhs_cpr_nspcx",
  851. .channels = 1,
  852. .buswidth = 4,
  853. };
  854. static struct qcom_icc_node qhs_crypto0_cfg = {
  855. .name = "qhs_crypto0_cfg",
  856. .channels = 1,
  857. .buswidth = 4,
  858. };
  859. static struct qcom_icc_node qhs_cx_rdpm = {
  860. .name = "qhs_cx_rdpm",
  861. .channels = 1,
  862. .buswidth = 4,
  863. };
  864. static struct qcom_icc_node qhs_display_cfg = {
  865. .name = "qhs_display_cfg",
  866. .channels = 1,
  867. .buswidth = 4,
  868. };
  869. static struct qcom_icc_node qhs_gpuss_cfg = {
  870. .name = "qhs_gpuss_cfg",
  871. .channels = 1,
  872. .buswidth = 8,
  873. };
  874. static struct qcom_icc_node qhs_imem_cfg = {
  875. .name = "qhs_imem_cfg",
  876. .channels = 1,
  877. .buswidth = 4,
  878. };
  879. static struct qcom_icc_node qhs_ipc_router = {
  880. .name = "qhs_ipc_router",
  881. .channels = 1,
  882. .buswidth = 4,
  883. };
  884. static struct qcom_icc_node qhs_lpass_cfg = {
  885. .name = "qhs_lpass_cfg",
  886. .channels = 1,
  887. .buswidth = 4,
  888. .num_links = 1,
  889. .link_nodes = { &qhm_config_noc },
  890. };
  891. static struct qcom_icc_node qhs_mx_rdpm = {
  892. .name = "qhs_mx_rdpm",
  893. .channels = 1,
  894. .buswidth = 4,
  895. };
  896. static struct qcom_icc_node qhs_pcie0_cfg = {
  897. .name = "qhs_pcie0_cfg",
  898. .channels = 1,
  899. .buswidth = 4,
  900. };
  901. static struct qcom_icc_node qhs_pcie1_cfg = {
  902. .name = "qhs_pcie1_cfg",
  903. .channels = 1,
  904. .buswidth = 4,
  905. };
  906. static struct qcom_icc_node qhs_pdm = {
  907. .name = "qhs_pdm",
  908. .channels = 1,
  909. .buswidth = 4,
  910. };
  911. static struct qcom_icc_node qhs_pimem_cfg = {
  912. .name = "qhs_pimem_cfg",
  913. .channels = 1,
  914. .buswidth = 4,
  915. };
  916. static struct qcom_icc_node qhs_prng = {
  917. .name = "qhs_prng",
  918. .channels = 1,
  919. .buswidth = 4,
  920. };
  921. static struct qcom_icc_node qhs_qdss_cfg = {
  922. .name = "qhs_qdss_cfg",
  923. .channels = 1,
  924. .buswidth = 4,
  925. };
  926. static struct qcom_icc_node qhs_qspi = {
  927. .name = "qhs_qspi",
  928. .channels = 1,
  929. .buswidth = 4,
  930. };
  931. static struct qcom_icc_node qhs_qup0 = {
  932. .name = "qhs_qup0",
  933. .channels = 1,
  934. .buswidth = 4,
  935. };
  936. static struct qcom_icc_node qhs_qup1 = {
  937. .name = "qhs_qup1",
  938. .channels = 1,
  939. .buswidth = 4,
  940. };
  941. static struct qcom_icc_node qhs_sdc1 = {
  942. .name = "qhs_sdc1",
  943. .channels = 1,
  944. .buswidth = 4,
  945. };
  946. static struct qcom_icc_node qhs_tcsr = {
  947. .name = "qhs_tcsr",
  948. .channels = 1,
  949. .buswidth = 4,
  950. };
  951. static struct qcom_icc_node qhs_tlmm = {
  952. .name = "qhs_tlmm",
  953. .channels = 1,
  954. .buswidth = 4,
  955. };
  956. static struct qcom_icc_node qhs_tme_cfg = {
  957. .name = "qhs_tme_cfg",
  958. .channels = 1,
  959. .buswidth = 4,
  960. };
  961. static struct qcom_icc_node qhs_usb3_0 = {
  962. .name = "qhs_usb3_0",
  963. .channels = 1,
  964. .buswidth = 4,
  965. };
  966. static struct qcom_icc_node qhs_venus_cfg = {
  967. .name = "qhs_venus_cfg",
  968. .channels = 1,
  969. .buswidth = 4,
  970. };
  971. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  972. .name = "qhs_vsense_ctrl_cfg",
  973. .channels = 1,
  974. .buswidth = 4,
  975. };
  976. static struct qcom_icc_node qhs_wlan_q6 = {
  977. .name = "qhs_wlan_q6",
  978. .channels = 1,
  979. .buswidth = 4,
  980. };
  981. static struct qcom_icc_node qns_ddrss_cfg = {
  982. .name = "qns_ddrss_cfg",
  983. .channels = 1,
  984. .buswidth = 4,
  985. };
  986. static struct qcom_icc_node qns_mnoc_cfg = {
  987. .name = "qns_mnoc_cfg",
  988. .channels = 1,
  989. .buswidth = 4,
  990. .num_links = 1,
  991. .link_nodes = { &qnm_mnoc_cfg },
  992. };
  993. static struct qcom_icc_node qns_snoc_cfg = {
  994. .name = "qns_snoc_cfg",
  995. .channels = 1,
  996. .buswidth = 4,
  997. .num_links = 1,
  998. .link_nodes = { &qnm_snoc_cfg },
  999. };
  1000. static struct qcom_icc_node qxs_imem = {
  1001. .name = "qxs_imem",
  1002. .channels = 1,
  1003. .buswidth = 8,
  1004. };
  1005. static struct qcom_icc_node qxs_pimem = {
  1006. .name = "qxs_pimem",
  1007. .channels = 1,
  1008. .buswidth = 8,
  1009. };
  1010. static struct qcom_icc_node srvc_cnoc = {
  1011. .name = "srvc_cnoc",
  1012. .channels = 1,
  1013. .buswidth = 4,
  1014. };
  1015. static struct qcom_icc_node xs_pcie_0 = {
  1016. .name = "xs_pcie_0",
  1017. .channels = 1,
  1018. .buswidth = 8,
  1019. };
  1020. static struct qcom_icc_node xs_pcie_1 = {
  1021. .name = "xs_pcie_1",
  1022. .channels = 1,
  1023. .buswidth = 8,
  1024. };
  1025. static struct qcom_icc_node xs_qdss_stm = {
  1026. .name = "xs_qdss_stm",
  1027. .channels = 1,
  1028. .buswidth = 4,
  1029. };
  1030. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1031. .name = "xs_sys_tcu_cfg",
  1032. .channels = 1,
  1033. .buswidth = 8,
  1034. };
  1035. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1036. .name = "qns_gem_noc_cnoc",
  1037. .channels = 1,
  1038. .buswidth = 16,
  1039. .num_links = 1,
  1040. .link_nodes = { &qnm_gemnoc_cnoc },
  1041. };
  1042. static struct qcom_icc_node qns_llcc = {
  1043. .name = "qns_llcc",
  1044. .channels = 2,
  1045. .buswidth = 16,
  1046. .num_links = 1,
  1047. .link_nodes = { &llcc_mc },
  1048. };
  1049. static struct qcom_icc_node qns_pcie = {
  1050. .name = "qns_pcie",
  1051. .channels = 1,
  1052. .buswidth = 8,
  1053. .num_links = 1,
  1054. .link_nodes = { &qnm_gemnoc_pcie },
  1055. };
  1056. static struct qcom_icc_node qhs_lpass_core = {
  1057. .name = "qhs_lpass_core",
  1058. .channels = 1,
  1059. .buswidth = 4,
  1060. };
  1061. static struct qcom_icc_node qhs_lpass_lpi = {
  1062. .name = "qhs_lpass_lpi",
  1063. .channels = 1,
  1064. .buswidth = 4,
  1065. };
  1066. static struct qcom_icc_node qhs_lpass_mpu = {
  1067. .name = "qhs_lpass_mpu",
  1068. .channels = 1,
  1069. .buswidth = 4,
  1070. };
  1071. static struct qcom_icc_node qhs_lpass_top = {
  1072. .name = "qhs_lpass_top",
  1073. .channels = 1,
  1074. .buswidth = 4,
  1075. };
  1076. static struct qcom_icc_node qns_sysnoc = {
  1077. .name = "qns_sysnoc",
  1078. .channels = 1,
  1079. .buswidth = 16,
  1080. .num_links = 1,
  1081. .link_nodes = { &qnm_lpass_noc },
  1082. };
  1083. static struct qcom_icc_node srvc_niu_aml_noc = {
  1084. .name = "srvc_niu_aml_noc",
  1085. .channels = 1,
  1086. .buswidth = 4,
  1087. };
  1088. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1089. .name = "srvc_niu_lpass_agnoc",
  1090. .channels = 1,
  1091. .buswidth = 4,
  1092. };
  1093. static struct qcom_icc_node ebi = {
  1094. .name = "ebi",
  1095. .channels = 1,
  1096. .buswidth = 4,
  1097. };
  1098. static struct qcom_icc_node qns_mem_noc_hf = {
  1099. .name = "qns_mem_noc_hf",
  1100. .channels = 2,
  1101. .buswidth = 32,
  1102. .num_links = 1,
  1103. .link_nodes = { &qnm_mnoc_hf },
  1104. };
  1105. static struct qcom_icc_node qns_mem_noc_sf = {
  1106. .name = "qns_mem_noc_sf",
  1107. .channels = 1,
  1108. .buswidth = 32,
  1109. .num_links = 1,
  1110. .link_nodes = { &qnm_mnoc_sf },
  1111. };
  1112. static struct qcom_icc_node srvc_mnoc = {
  1113. .name = "srvc_mnoc",
  1114. .channels = 1,
  1115. .buswidth = 4,
  1116. };
  1117. static struct qcom_icc_node qns_nsp_gemnoc = {
  1118. .name = "qns_nsp_gemnoc",
  1119. .channels = 2,
  1120. .buswidth = 32,
  1121. .num_links = 1,
  1122. .link_nodes = { &qnm_nsp_gemnoc },
  1123. };
  1124. static struct qcom_icc_node service_nsp_noc = {
  1125. .name = "service_nsp_noc",
  1126. .channels = 1,
  1127. .buswidth = 4,
  1128. };
  1129. static struct qcom_icc_node qns_pcie_mem_noc = {
  1130. .name = "qns_pcie_mem_noc",
  1131. .channels = 1,
  1132. .buswidth = 16,
  1133. .num_links = 1,
  1134. .link_nodes = { &qnm_pcie },
  1135. };
  1136. static struct qcom_icc_node qns_a2noc_snoc = {
  1137. .name = "qns_a2noc_snoc",
  1138. .channels = 1,
  1139. .buswidth = 16,
  1140. .num_links = 1,
  1141. .link_nodes = { &qnm_aggre2_noc },
  1142. };
  1143. static struct qcom_icc_node qns_gemnoc_gc = {
  1144. .name = "qns_gemnoc_gc",
  1145. .channels = 1,
  1146. .buswidth = 8,
  1147. .num_links = 1,
  1148. .link_nodes = { &qnm_snoc_gc },
  1149. };
  1150. static struct qcom_icc_node qns_gemnoc_sf = {
  1151. .name = "qns_gemnoc_sf",
  1152. .channels = 1,
  1153. .buswidth = 16,
  1154. .num_links = 1,
  1155. .link_nodes = { &qnm_snoc_sf },
  1156. };
  1157. static struct qcom_icc_node srvc_snoc = {
  1158. .name = "srvc_snoc",
  1159. .channels = 1,
  1160. .buswidth = 4,
  1161. };
  1162. static struct qcom_icc_bcm bcm_acv = {
  1163. .name = "ACV",
  1164. .enable_mask = BIT(3),
  1165. .num_nodes = 1,
  1166. .nodes = { &ebi },
  1167. };
  1168. static struct qcom_icc_bcm bcm_ce0 = {
  1169. .name = "CE0",
  1170. .num_nodes = 1,
  1171. .nodes = { &qxm_crypto },
  1172. };
  1173. static struct qcom_icc_bcm bcm_cn0 = {
  1174. .name = "CN0",
  1175. .enable_mask = BIT(0),
  1176. .keepalive = true,
  1177. .num_nodes = 48,
  1178. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
  1179. &xm_qdss_dap, &qhs_ahb2phy0,
  1180. &qhs_aoss, &qhs_camera_cfg,
  1181. &qhs_clk_ctl, &qhs_compute_cfg,
  1182. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1183. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1184. &qhs_cpr_nspcx, &qhs_crypto0_cfg,
  1185. &qhs_cx_rdpm, &qhs_display_cfg,
  1186. &qhs_gpuss_cfg, &qhs_imem_cfg,
  1187. &qhs_ipc_router, &qhs_lpass_cfg,
  1188. &qhs_mx_rdpm, &qhs_pcie0_cfg,
  1189. &qhs_pcie1_cfg, &qhs_pdm,
  1190. &qhs_pimem_cfg, &qhs_prng,
  1191. &qhs_qdss_cfg, &qhs_qspi,
  1192. &qhs_qup0, &qhs_qup1,
  1193. &qhs_sdc1, &qhs_tcsr,
  1194. &qhs_tlmm, &qhs_tme_cfg,
  1195. &qhs_usb3_0, &qhs_venus_cfg,
  1196. &qhs_vsense_ctrl_cfg, &qhs_wlan_q6,
  1197. &qns_ddrss_cfg, &qns_mnoc_cfg,
  1198. &qns_snoc_cfg, &qxs_imem,
  1199. &qxs_pimem, &srvc_cnoc,
  1200. &xs_pcie_0, &xs_pcie_1,
  1201. &xs_qdss_stm, &xs_sys_tcu_cfg },
  1202. };
  1203. static struct qcom_icc_bcm bcm_co0 = {
  1204. .name = "CO0",
  1205. .enable_mask = BIT(0),
  1206. .num_nodes = 2,
  1207. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1208. };
  1209. static struct qcom_icc_bcm bcm_mc0 = {
  1210. .name = "MC0",
  1211. .keepalive = true,
  1212. .num_nodes = 1,
  1213. .nodes = { &ebi },
  1214. };
  1215. static struct qcom_icc_bcm bcm_mm0 = {
  1216. .name = "MM0",
  1217. .keepalive = true,
  1218. .num_nodes = 1,
  1219. .nodes = { &qns_mem_noc_hf },
  1220. };
  1221. static struct qcom_icc_bcm bcm_mm1 = {
  1222. .name = "MM1",
  1223. .enable_mask = BIT(0),
  1224. .num_nodes = 11,
  1225. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1226. &qnm_camnoc_sf, &qnm_lsr,
  1227. &qnm_mdp, &qnm_mnoc_cfg,
  1228. &qnm_video, &qnm_video_cv_cpu,
  1229. &qnm_video_cvp, &qnm_video_v_cpu,
  1230. &qns_mem_noc_sf },
  1231. };
  1232. static struct qcom_icc_bcm bcm_qup0 = {
  1233. .name = "QUP0",
  1234. .keepalive = true,
  1235. .vote_scale = 1,
  1236. .num_nodes = 1,
  1237. .nodes = { &qup0_core_slave },
  1238. };
  1239. static struct qcom_icc_bcm bcm_qup1 = {
  1240. .name = "QUP1",
  1241. .keepalive = true,
  1242. .vote_scale = 1,
  1243. .num_nodes = 1,
  1244. .nodes = { &qup1_core_slave },
  1245. };
  1246. static struct qcom_icc_bcm bcm_sh0 = {
  1247. .name = "SH0",
  1248. .keepalive = true,
  1249. .num_nodes = 1,
  1250. .nodes = { &qns_llcc },
  1251. };
  1252. static struct qcom_icc_bcm bcm_sh1 = {
  1253. .name = "SH1",
  1254. .enable_mask = BIT(0),
  1255. .num_nodes = 13,
  1256. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1257. &chm_apps, &qnm_gpu,
  1258. &qnm_mnoc_hf, &qnm_mnoc_sf,
  1259. &qnm_nsp_gemnoc, &qnm_pcie,
  1260. &qnm_snoc_gc, &qnm_snoc_sf,
  1261. &qxm_wlan_q6, &qns_gem_noc_cnoc,
  1262. &qns_pcie },
  1263. };
  1264. static struct qcom_icc_bcm bcm_sn0 = {
  1265. .name = "SN0",
  1266. .keepalive = true,
  1267. .num_nodes = 1,
  1268. .nodes = { &qns_gemnoc_sf },
  1269. };
  1270. static struct qcom_icc_bcm bcm_sn1 = {
  1271. .name = "SN1",
  1272. .enable_mask = BIT(0),
  1273. .num_nodes = 4,
  1274. .nodes = { &qhm_gic, &qxm_pimem,
  1275. &xm_gic, &qns_gemnoc_gc },
  1276. };
  1277. static struct qcom_icc_bcm bcm_sn3 = {
  1278. .name = "SN3",
  1279. .num_nodes = 1,
  1280. .nodes = { &qnm_aggre2_noc },
  1281. };
  1282. static struct qcom_icc_bcm bcm_sn4 = {
  1283. .name = "SN4",
  1284. .num_nodes = 1,
  1285. .nodes = { &qnm_lpass_noc },
  1286. };
  1287. static struct qcom_icc_bcm bcm_sn7 = {
  1288. .name = "SN7",
  1289. .num_nodes = 1,
  1290. .nodes = { &qns_pcie_mem_noc },
  1291. };
  1292. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1293. &bcm_qup0,
  1294. &bcm_qup1,
  1295. };
  1296. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1297. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1298. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1299. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1300. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1301. };
  1302. static const struct qcom_icc_desc sar2130p_clk_virt = {
  1303. .nodes = clk_virt_nodes,
  1304. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1305. .bcms = clk_virt_bcms,
  1306. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1307. };
  1308. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1309. &bcm_cn0,
  1310. };
  1311. static struct qcom_icc_node * const config_noc_nodes[] = {
  1312. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1313. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1314. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1315. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1316. [SLAVE_AOSS] = &qhs_aoss,
  1317. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1318. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1319. [SLAVE_CDSP_CFG] = &qhs_compute_cfg,
  1320. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1321. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1322. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  1323. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  1324. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  1325. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1326. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1327. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1328. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1329. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1330. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1331. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1332. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1333. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1334. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1335. [SLAVE_PDM] = &qhs_pdm,
  1336. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1337. [SLAVE_PRNG] = &qhs_prng,
  1338. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1339. [SLAVE_QSPI_0] = &qhs_qspi,
  1340. [SLAVE_QUP_0] = &qhs_qup0,
  1341. [SLAVE_QUP_1] = &qhs_qup1,
  1342. [SLAVE_SDCC_1] = &qhs_sdc1,
  1343. [SLAVE_TCSR] = &qhs_tcsr,
  1344. [SLAVE_TLMM] = &qhs_tlmm,
  1345. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1346. [SLAVE_USB3_0] = &qhs_usb3_0,
  1347. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1348. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1349. [SLAVE_WLAN_Q6_CFG] = &qhs_wlan_q6,
  1350. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  1351. [SLAVE_CNOC_MNOC_CFG] = &qns_mnoc_cfg,
  1352. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  1353. [SLAVE_IMEM] = &qxs_imem,
  1354. [SLAVE_PIMEM] = &qxs_pimem,
  1355. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1356. [SLAVE_PCIE_0] = &xs_pcie_0,
  1357. [SLAVE_PCIE_1] = &xs_pcie_1,
  1358. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1359. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1360. };
  1361. static const struct qcom_icc_desc sar2130p_config_noc = {
  1362. .config = &icc_regmap_config,
  1363. .nodes = config_noc_nodes,
  1364. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1365. .bcms = config_noc_bcms,
  1366. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1367. };
  1368. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1369. &bcm_sh0,
  1370. &bcm_sh1,
  1371. };
  1372. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1373. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1374. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1375. [MASTER_APPSS_PROC] = &chm_apps,
  1376. [MASTER_GFX3D] = &qnm_gpu,
  1377. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1378. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1379. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  1380. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1381. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1382. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1383. [MASTER_WLAN_Q6] = &qxm_wlan_q6,
  1384. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1385. [SLAVE_LLCC] = &qns_llcc,
  1386. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1387. };
  1388. static const struct qcom_icc_desc sar2130p_gem_noc = {
  1389. .config = &icc_regmap_config,
  1390. .nodes = gem_noc_nodes,
  1391. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1392. .bcms = gem_noc_bcms,
  1393. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1394. };
  1395. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  1396. };
  1397. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1398. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  1399. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  1400. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  1401. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  1402. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  1403. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  1404. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  1405. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  1406. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  1407. };
  1408. static const struct qcom_icc_desc sar2130p_lpass_ag_noc = {
  1409. .config = &icc_regmap_config,
  1410. .nodes = lpass_ag_noc_nodes,
  1411. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1412. .bcms = lpass_ag_noc_bcms,
  1413. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  1414. };
  1415. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1416. &bcm_acv,
  1417. &bcm_mc0,
  1418. };
  1419. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1420. [MASTER_LLCC] = &llcc_mc,
  1421. [SLAVE_EBI1] = &ebi,
  1422. };
  1423. static const struct qcom_icc_desc sar2130p_mc_virt = {
  1424. .nodes = mc_virt_nodes,
  1425. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1426. .bcms = mc_virt_bcms,
  1427. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1428. };
  1429. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1430. &bcm_mm0,
  1431. &bcm_mm1,
  1432. };
  1433. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1434. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1435. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1436. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1437. [MASTER_LSR] = &qnm_lsr,
  1438. [MASTER_MDP] = &qnm_mdp,
  1439. [MASTER_CNOC_MNOC_CFG] = &qnm_mnoc_cfg,
  1440. [MASTER_VIDEO] = &qnm_video,
  1441. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1442. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1443. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1444. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1445. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1446. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1447. };
  1448. static const struct qcom_icc_desc sar2130p_mmss_noc = {
  1449. .config = &icc_regmap_config,
  1450. .nodes = mmss_noc_nodes,
  1451. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1452. .bcms = mmss_noc_bcms,
  1453. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1454. };
  1455. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1456. &bcm_co0,
  1457. };
  1458. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1459. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  1460. [MASTER_CDSP_PROC] = &qxm_nsp,
  1461. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1462. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  1463. };
  1464. static const struct qcom_icc_desc sar2130p_nsp_noc = {
  1465. .config = &icc_regmap_config,
  1466. .nodes = nsp_noc_nodes,
  1467. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1468. .bcms = nsp_noc_bcms,
  1469. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1470. };
  1471. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  1472. &bcm_sn7,
  1473. };
  1474. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  1475. [MASTER_PCIE_0] = &xm_pcie3_0,
  1476. [MASTER_PCIE_1] = &xm_pcie3_1,
  1477. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1478. };
  1479. static const struct qcom_icc_desc sar2130p_pcie_anoc = {
  1480. .config = &icc_regmap_config,
  1481. .nodes = pcie_anoc_nodes,
  1482. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  1483. .bcms = pcie_anoc_bcms,
  1484. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  1485. };
  1486. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1487. &bcm_ce0,
  1488. &bcm_sn0,
  1489. &bcm_sn1,
  1490. &bcm_sn3,
  1491. &bcm_sn4,
  1492. };
  1493. static struct qcom_icc_node * const system_noc_nodes[] = {
  1494. [MASTER_GIC_AHB] = &qhm_gic,
  1495. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1496. [MASTER_QSPI_0] = &qhm_qspi,
  1497. [MASTER_QUP_0] = &qhm_qup0,
  1498. [MASTER_QUP_1] = &qhm_qup1,
  1499. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1500. [MASTER_CNOC_DATAPATH] = &qnm_cnoc_datapath,
  1501. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  1502. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  1503. [MASTER_CRYPTO] = &qxm_crypto,
  1504. [MASTER_PIMEM] = &qxm_pimem,
  1505. [MASTER_GIC] = &xm_gic,
  1506. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1507. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1508. [MASTER_SDCC_1] = &xm_sdc1,
  1509. [MASTER_USB3_0] = &xm_usb3_0,
  1510. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1511. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  1512. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1513. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1514. };
  1515. static const struct qcom_icc_desc sar2130p_system_noc = {
  1516. .config = &icc_regmap_config,
  1517. .nodes = system_noc_nodes,
  1518. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1519. .bcms = system_noc_bcms,
  1520. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1521. };
  1522. static const struct of_device_id qnoc_of_match[] = {
  1523. { .compatible = "qcom,sar2130p-clk-virt", .data = &sar2130p_clk_virt},
  1524. { .compatible = "qcom,sar2130p-config-noc", .data = &sar2130p_config_noc},
  1525. { .compatible = "qcom,sar2130p-gem-noc", .data = &sar2130p_gem_noc},
  1526. { .compatible = "qcom,sar2130p-lpass-ag-noc", .data = &sar2130p_lpass_ag_noc},
  1527. { .compatible = "qcom,sar2130p-mc-virt", .data = &sar2130p_mc_virt},
  1528. { .compatible = "qcom,sar2130p-mmss-noc", .data = &sar2130p_mmss_noc},
  1529. { .compatible = "qcom,sar2130p-nsp-noc", .data = &sar2130p_nsp_noc},
  1530. { .compatible = "qcom,sar2130p-pcie-anoc", .data = &sar2130p_pcie_anoc},
  1531. { .compatible = "qcom,sar2130p-system-noc", .data = &sar2130p_system_noc},
  1532. { }
  1533. };
  1534. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1535. static struct platform_driver qnoc_driver = {
  1536. .probe = qcom_icc_rpmh_probe,
  1537. .remove = qcom_icc_rpmh_remove,
  1538. .driver = {
  1539. .name = "qnoc-sar2130p",
  1540. .of_match_table = qnoc_of_match,
  1541. .sync_state = icc_sync_state,
  1542. },
  1543. };
  1544. static int __init qnoc_driver_init(void)
  1545. {
  1546. return platform_driver_register(&qnoc_driver);
  1547. }
  1548. core_initcall(qnoc_driver_init);
  1549. static void __exit qnoc_driver_exit(void)
  1550. {
  1551. platform_driver_unregister(&qnoc_driver);
  1552. }
  1553. module_exit(qnoc_driver_exit);
  1554. MODULE_DESCRIPTION("Qualcomm SAR2130P NoC driver");
  1555. MODULE_LICENSE("GPL");