sm8650.c 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  5. * Copyright (c) 2023, Linaro Limited
  6. */
  7. #include <linux/device.h>
  8. #include <linux/interconnect.h>
  9. #include <linux/interconnect-provider.h>
  10. #include <linux/module.h>
  11. #include <linux/of_platform.h>
  12. #include <dt-bindings/interconnect/qcom,sm8650-rpmh.h>
  13. #include "bcm-voter.h"
  14. #include "icc-common.h"
  15. #include "icc-rpmh.h"
  16. #include "sm8650.h"
  17. static struct qcom_icc_node qhm_qspi = {
  18. .name = "qhm_qspi",
  19. .id = SM8650_MASTER_QSPI_0,
  20. .channels = 1,
  21. .buswidth = 4,
  22. .num_links = 1,
  23. .links = { SM8650_SLAVE_A1NOC_SNOC },
  24. };
  25. static struct qcom_icc_node qhm_qup1 = {
  26. .name = "qhm_qup1",
  27. .id = SM8650_MASTER_QUP_1,
  28. .channels = 1,
  29. .buswidth = 4,
  30. .num_links = 1,
  31. .links = { SM8650_SLAVE_A1NOC_SNOC },
  32. };
  33. static struct qcom_icc_node qxm_qup02 = {
  34. .name = "qxm_qup02",
  35. .id = SM8650_MASTER_QUP_3,
  36. .channels = 1,
  37. .buswidth = 8,
  38. .num_links = 1,
  39. .links = { SM8650_SLAVE_A1NOC_SNOC },
  40. };
  41. static struct qcom_icc_node xm_sdc4 = {
  42. .name = "xm_sdc4",
  43. .id = SM8650_MASTER_SDCC_4,
  44. .channels = 1,
  45. .buswidth = 8,
  46. .num_links = 1,
  47. .links = { SM8650_SLAVE_A1NOC_SNOC },
  48. };
  49. static struct qcom_icc_node xm_ufs_mem = {
  50. .name = "xm_ufs_mem",
  51. .id = SM8650_MASTER_UFS_MEM,
  52. .channels = 1,
  53. .buswidth = 16,
  54. .num_links = 1,
  55. .links = { SM8650_SLAVE_A1NOC_SNOC },
  56. };
  57. static struct qcom_icc_node xm_usb3_0 = {
  58. .name = "xm_usb3_0",
  59. .id = SM8650_MASTER_USB3_0,
  60. .channels = 1,
  61. .buswidth = 8,
  62. .num_links = 1,
  63. .links = { SM8650_SLAVE_A1NOC_SNOC },
  64. };
  65. static struct qcom_icc_node qhm_qdss_bam = {
  66. .name = "qhm_qdss_bam",
  67. .id = SM8650_MASTER_QDSS_BAM,
  68. .channels = 1,
  69. .buswidth = 4,
  70. .num_links = 1,
  71. .links = { SM8650_SLAVE_A2NOC_SNOC },
  72. };
  73. static struct qcom_icc_node qhm_qup2 = {
  74. .name = "qhm_qup2",
  75. .id = SM8650_MASTER_QUP_2,
  76. .channels = 1,
  77. .buswidth = 4,
  78. .num_links = 1,
  79. .links = { SM8650_SLAVE_A2NOC_SNOC },
  80. };
  81. static struct qcom_icc_node qxm_crypto = {
  82. .name = "qxm_crypto",
  83. .id = SM8650_MASTER_CRYPTO,
  84. .channels = 1,
  85. .buswidth = 8,
  86. .num_links = 1,
  87. .links = { SM8650_SLAVE_A2NOC_SNOC },
  88. };
  89. static struct qcom_icc_node qxm_ipa = {
  90. .name = "qxm_ipa",
  91. .id = SM8650_MASTER_IPA,
  92. .channels = 1,
  93. .buswidth = 8,
  94. .num_links = 1,
  95. .links = { SM8650_SLAVE_A2NOC_SNOC },
  96. };
  97. static struct qcom_icc_node qxm_sp = {
  98. .name = "qxm_sp",
  99. .id = SM8650_MASTER_SP,
  100. .channels = 1,
  101. .buswidth = 8,
  102. .num_links = 1,
  103. .links = { SM8650_SLAVE_A2NOC_SNOC },
  104. };
  105. static struct qcom_icc_node xm_qdss_etr_0 = {
  106. .name = "xm_qdss_etr_0",
  107. .id = SM8650_MASTER_QDSS_ETR,
  108. .channels = 1,
  109. .buswidth = 8,
  110. .num_links = 1,
  111. .links = { SM8650_SLAVE_A2NOC_SNOC },
  112. };
  113. static struct qcom_icc_node xm_qdss_etr_1 = {
  114. .name = "xm_qdss_etr_1",
  115. .id = SM8650_MASTER_QDSS_ETR_1,
  116. .channels = 1,
  117. .buswidth = 8,
  118. .num_links = 1,
  119. .links = { SM8650_SLAVE_A2NOC_SNOC },
  120. };
  121. static struct qcom_icc_node xm_sdc2 = {
  122. .name = "xm_sdc2",
  123. .id = SM8650_MASTER_SDCC_2,
  124. .channels = 1,
  125. .buswidth = 8,
  126. .num_links = 1,
  127. .links = { SM8650_SLAVE_A2NOC_SNOC },
  128. };
  129. static struct qcom_icc_node qup0_core_master = {
  130. .name = "qup0_core_master",
  131. .id = SM8650_MASTER_QUP_CORE_0,
  132. .channels = 1,
  133. .buswidth = 4,
  134. .num_links = 1,
  135. .links = { SM8650_SLAVE_QUP_CORE_0 },
  136. };
  137. static struct qcom_icc_node qup1_core_master = {
  138. .name = "qup1_core_master",
  139. .id = SM8650_MASTER_QUP_CORE_1,
  140. .channels = 1,
  141. .buswidth = 4,
  142. .num_links = 1,
  143. .links = { SM8650_SLAVE_QUP_CORE_1 },
  144. };
  145. static struct qcom_icc_node qup2_core_master = {
  146. .name = "qup2_core_master",
  147. .id = SM8650_MASTER_QUP_CORE_2,
  148. .channels = 1,
  149. .buswidth = 4,
  150. .num_links = 1,
  151. .links = { SM8650_SLAVE_QUP_CORE_2 },
  152. };
  153. static struct qcom_icc_node qsm_cfg = {
  154. .name = "qsm_cfg",
  155. .id = SM8650_MASTER_CNOC_CFG,
  156. .channels = 1,
  157. .buswidth = 4,
  158. .num_links = 46,
  159. .links = { SM8650_SLAVE_AHB2PHY_SOUTH, SM8650_SLAVE_AHB2PHY_NORTH,
  160. SM8650_SLAVE_CAMERA_CFG, SM8650_SLAVE_CLK_CTL,
  161. SM8650_SLAVE_RBCPR_CX_CFG, SM8650_SLAVE_CPR_HMX,
  162. SM8650_SLAVE_RBCPR_MMCX_CFG, SM8650_SLAVE_RBCPR_MXA_CFG,
  163. SM8650_SLAVE_RBCPR_MXC_CFG, SM8650_SLAVE_CPR_NSPCX,
  164. SM8650_SLAVE_CRYPTO_0_CFG, SM8650_SLAVE_CX_RDPM,
  165. SM8650_SLAVE_DISPLAY_CFG, SM8650_SLAVE_GFX3D_CFG,
  166. SM8650_SLAVE_I2C, SM8650_SLAVE_I3C_IBI0_CFG,
  167. SM8650_SLAVE_I3C_IBI1_CFG, SM8650_SLAVE_IMEM_CFG,
  168. SM8650_SLAVE_CNOC_MSS, SM8650_SLAVE_MX_2_RDPM,
  169. SM8650_SLAVE_MX_RDPM, SM8650_SLAVE_PCIE_0_CFG,
  170. SM8650_SLAVE_PCIE_1_CFG, SM8650_SLAVE_PCIE_RSCC,
  171. SM8650_SLAVE_PDM, SM8650_SLAVE_PRNG,
  172. SM8650_SLAVE_QDSS_CFG, SM8650_SLAVE_QSPI_0,
  173. SM8650_SLAVE_QUP_3, SM8650_SLAVE_QUP_1,
  174. SM8650_SLAVE_QUP_2, SM8650_SLAVE_SDCC_2,
  175. SM8650_SLAVE_SDCC_4, SM8650_SLAVE_SPSS_CFG,
  176. SM8650_SLAVE_TCSR, SM8650_SLAVE_TLMM,
  177. SM8650_SLAVE_UFS_MEM_CFG, SM8650_SLAVE_USB3_0,
  178. SM8650_SLAVE_VENUS_CFG, SM8650_SLAVE_VSENSE_CTRL_CFG,
  179. SM8650_SLAVE_CNOC_MNOC_CFG, SM8650_SLAVE_NSP_QTB_CFG,
  180. SM8650_SLAVE_PCIE_ANOC_CFG, SM8650_SLAVE_SERVICE_CNOC_CFG,
  181. SM8650_SLAVE_QDSS_STM, SM8650_SLAVE_TCU },
  182. };
  183. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  184. .name = "qnm_gemnoc_cnoc",
  185. .id = SM8650_MASTER_GEM_NOC_CNOC,
  186. .channels = 1,
  187. .buswidth = 16,
  188. .num_links = 9,
  189. .links = { SM8650_SLAVE_AOSS, SM8650_SLAVE_IPA_CFG,
  190. SM8650_SLAVE_IPC_ROUTER_CFG, SM8650_SLAVE_TME_CFG,
  191. SM8650_SLAVE_APPSS, SM8650_SLAVE_CNOC_CFG,
  192. SM8650_SLAVE_DDRSS_CFG, SM8650_SLAVE_IMEM,
  193. SM8650_SLAVE_SERVICE_CNOC },
  194. };
  195. static struct qcom_icc_node qnm_gemnoc_pcie = {
  196. .name = "qnm_gemnoc_pcie",
  197. .id = SM8650_MASTER_GEM_NOC_PCIE_SNOC,
  198. .channels = 1,
  199. .buswidth = 16,
  200. .num_links = 2,
  201. .links = { SM8650_SLAVE_PCIE_0, SM8650_SLAVE_PCIE_1 },
  202. };
  203. static struct qcom_icc_node alm_gpu_tcu = {
  204. .name = "alm_gpu_tcu",
  205. .id = SM8650_MASTER_GPU_TCU,
  206. .channels = 1,
  207. .buswidth = 8,
  208. .num_links = 2,
  209. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  210. };
  211. static struct qcom_icc_node alm_sys_tcu = {
  212. .name = "alm_sys_tcu",
  213. .id = SM8650_MASTER_SYS_TCU,
  214. .channels = 1,
  215. .buswidth = 8,
  216. .num_links = 2,
  217. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  218. };
  219. static struct qcom_icc_node alm_ubwc_p_tcu = {
  220. .name = "alm_ubwc_p_tcu",
  221. .id = SM8650_MASTER_UBWC_P_TCU,
  222. .channels = 1,
  223. .buswidth = 8,
  224. .num_links = 2,
  225. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  226. };
  227. static struct qcom_icc_node chm_apps = {
  228. .name = "chm_apps",
  229. .id = SM8650_MASTER_APPSS_PROC,
  230. .channels = 3,
  231. .buswidth = 32,
  232. .num_links = 3,
  233. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC,
  234. SM8650_SLAVE_MEM_NOC_PCIE_SNOC },
  235. };
  236. static struct qcom_icc_node qnm_gpu = {
  237. .name = "qnm_gpu",
  238. .id = SM8650_MASTER_GFX3D,
  239. .channels = 2,
  240. .buswidth = 32,
  241. .num_links = 2,
  242. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  243. };
  244. static struct qcom_icc_node qnm_lpass_gemnoc = {
  245. .name = "qnm_lpass_gemnoc",
  246. .id = SM8650_MASTER_LPASS_GEM_NOC,
  247. .channels = 1,
  248. .buswidth = 16,
  249. .num_links = 3,
  250. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC,
  251. SM8650_SLAVE_MEM_NOC_PCIE_SNOC },
  252. };
  253. static struct qcom_icc_node qnm_mdsp = {
  254. .name = "qnm_mdsp",
  255. .id = SM8650_MASTER_MSS_PROC,
  256. .channels = 1,
  257. .buswidth = 16,
  258. .num_links = 3,
  259. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC,
  260. SM8650_SLAVE_MEM_NOC_PCIE_SNOC },
  261. };
  262. static struct qcom_icc_node qnm_mnoc_hf = {
  263. .name = "qnm_mnoc_hf",
  264. .id = SM8650_MASTER_MNOC_HF_MEM_NOC,
  265. .channels = 2,
  266. .buswidth = 32,
  267. .num_links = 2,
  268. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  269. };
  270. static struct qcom_icc_node qnm_mnoc_sf = {
  271. .name = "qnm_mnoc_sf",
  272. .id = SM8650_MASTER_MNOC_SF_MEM_NOC,
  273. .channels = 2,
  274. .buswidth = 32,
  275. .num_links = 2,
  276. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  277. };
  278. static struct qcom_icc_node qnm_nsp_gemnoc = {
  279. .name = "qnm_nsp_gemnoc",
  280. .id = SM8650_MASTER_COMPUTE_NOC,
  281. .channels = 2,
  282. .buswidth = 32,
  283. .num_links = 3,
  284. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC,
  285. SM8650_SLAVE_MEM_NOC_PCIE_SNOC },
  286. };
  287. static struct qcom_icc_node qnm_pcie = {
  288. .name = "qnm_pcie",
  289. .id = SM8650_MASTER_ANOC_PCIE_GEM_NOC,
  290. .channels = 1,
  291. .buswidth = 16,
  292. .num_links = 2,
  293. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC },
  294. };
  295. static struct qcom_icc_node qnm_snoc_sf = {
  296. .name = "qnm_snoc_sf",
  297. .id = SM8650_MASTER_SNOC_SF_MEM_NOC,
  298. .channels = 1,
  299. .buswidth = 16,
  300. .num_links = 3,
  301. .links = { SM8650_SLAVE_GEM_NOC_CNOC, SM8650_SLAVE_LLCC,
  302. SM8650_SLAVE_MEM_NOC_PCIE_SNOC },
  303. };
  304. static struct qcom_icc_node qnm_ubwc_p = {
  305. .name = "qnm_ubwc_p",
  306. .id = SM8650_MASTER_UBWC_P,
  307. .channels = 1,
  308. .buswidth = 32,
  309. .num_links = 1,
  310. .links = { SM8650_SLAVE_LLCC },
  311. };
  312. static struct qcom_icc_node xm_gic = {
  313. .name = "xm_gic",
  314. .id = SM8650_MASTER_GIC,
  315. .channels = 1,
  316. .buswidth = 8,
  317. .num_links = 1,
  318. .links = { SM8650_SLAVE_LLCC },
  319. };
  320. static struct qcom_icc_node qnm_lpiaon_noc = {
  321. .name = "qnm_lpiaon_noc",
  322. .id = SM8650_MASTER_LPIAON_NOC,
  323. .channels = 1,
  324. .buswidth = 16,
  325. .num_links = 1,
  326. .links = { SM8650_SLAVE_LPASS_GEM_NOC },
  327. };
  328. static struct qcom_icc_node qnm_lpass_lpinoc = {
  329. .name = "qnm_lpass_lpinoc",
  330. .id = SM8650_MASTER_LPASS_LPINOC,
  331. .channels = 1,
  332. .buswidth = 16,
  333. .num_links = 1,
  334. .links = { SM8650_SLAVE_LPIAON_NOC_LPASS_AG_NOC },
  335. };
  336. static struct qcom_icc_node qxm_lpinoc_dsp_axim = {
  337. .name = "qxm_lpinoc_dsp_axim",
  338. .id = SM8650_MASTER_LPASS_PROC,
  339. .channels = 1,
  340. .buswidth = 16,
  341. .num_links = 1,
  342. .links = { SM8650_SLAVE_LPICX_NOC_LPIAON_NOC },
  343. };
  344. static struct qcom_icc_node llcc_mc = {
  345. .name = "llcc_mc",
  346. .id = SM8650_MASTER_LLCC,
  347. .channels = 4,
  348. .buswidth = 4,
  349. .num_links = 1,
  350. .links = { SM8650_SLAVE_EBI1 },
  351. };
  352. static struct qcom_icc_node qnm_camnoc_hf = {
  353. .name = "qnm_camnoc_hf",
  354. .id = SM8650_MASTER_CAMNOC_HF,
  355. .channels = 2,
  356. .buswidth = 32,
  357. .num_links = 1,
  358. .links = { SM8650_SLAVE_MNOC_HF_MEM_NOC },
  359. };
  360. static struct qcom_icc_node qnm_camnoc_icp = {
  361. .name = "qnm_camnoc_icp",
  362. .id = SM8650_MASTER_CAMNOC_ICP,
  363. .channels = 1,
  364. .buswidth = 8,
  365. .num_links = 1,
  366. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  367. };
  368. static struct qcom_icc_node qnm_camnoc_sf = {
  369. .name = "qnm_camnoc_sf",
  370. .id = SM8650_MASTER_CAMNOC_SF,
  371. .channels = 2,
  372. .buswidth = 32,
  373. .num_links = 1,
  374. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  375. };
  376. static struct qcom_icc_node qnm_mdp = {
  377. .name = "qnm_mdp",
  378. .id = SM8650_MASTER_MDP,
  379. .channels = 2,
  380. .buswidth = 32,
  381. .num_links = 1,
  382. .links = { SM8650_SLAVE_MNOC_HF_MEM_NOC },
  383. };
  384. static struct qcom_icc_node qnm_vapss_hcp = {
  385. .name = "qnm_vapss_hcp",
  386. .id = SM8650_MASTER_CDSP_HCP,
  387. .channels = 1,
  388. .buswidth = 32,
  389. .num_links = 1,
  390. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  391. };
  392. static struct qcom_icc_node qnm_video = {
  393. .name = "qnm_video",
  394. .id = SM8650_MASTER_VIDEO,
  395. .channels = 2,
  396. .buswidth = 32,
  397. .num_links = 1,
  398. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  399. };
  400. static struct qcom_icc_node qnm_video_cv_cpu = {
  401. .name = "qnm_video_cv_cpu",
  402. .id = SM8650_MASTER_VIDEO_CV_PROC,
  403. .channels = 1,
  404. .buswidth = 8,
  405. .num_links = 1,
  406. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  407. };
  408. static struct qcom_icc_node qnm_video_cvp = {
  409. .name = "qnm_video_cvp",
  410. .id = SM8650_MASTER_VIDEO_PROC,
  411. .channels = 2,
  412. .buswidth = 32,
  413. .num_links = 1,
  414. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  415. };
  416. static struct qcom_icc_node qnm_video_v_cpu = {
  417. .name = "qnm_video_v_cpu",
  418. .id = SM8650_MASTER_VIDEO_V_PROC,
  419. .channels = 1,
  420. .buswidth = 8,
  421. .num_links = 1,
  422. .links = { SM8650_SLAVE_MNOC_SF_MEM_NOC },
  423. };
  424. static struct qcom_icc_node qsm_mnoc_cfg = {
  425. .name = "qsm_mnoc_cfg",
  426. .id = SM8650_MASTER_CNOC_MNOC_CFG,
  427. .channels = 1,
  428. .buswidth = 4,
  429. .num_links = 1,
  430. .links = { SM8650_SLAVE_SERVICE_MNOC },
  431. };
  432. static struct qcom_icc_node qnm_nsp = {
  433. .name = "qnm_nsp",
  434. .id = SM8650_MASTER_CDSP_PROC,
  435. .channels = 2,
  436. .buswidth = 32,
  437. .num_links = 1,
  438. .links = { SM8650_SLAVE_CDSP_MEM_NOC },
  439. };
  440. static struct qcom_icc_node qsm_pcie_anoc_cfg = {
  441. .name = "qsm_pcie_anoc_cfg",
  442. .id = SM8650_MASTER_PCIE_ANOC_CFG,
  443. .channels = 1,
  444. .buswidth = 4,
  445. .num_links = 1,
  446. .links = { SM8650_SLAVE_SERVICE_PCIE_ANOC },
  447. };
  448. static struct qcom_icc_node xm_pcie3_0 = {
  449. .name = "xm_pcie3_0",
  450. .id = SM8650_MASTER_PCIE_0,
  451. .channels = 1,
  452. .buswidth = 8,
  453. .num_links = 1,
  454. .links = { SM8650_SLAVE_ANOC_PCIE_GEM_NOC },
  455. };
  456. static struct qcom_icc_node xm_pcie3_1 = {
  457. .name = "xm_pcie3_1",
  458. .id = SM8650_MASTER_PCIE_1,
  459. .channels = 1,
  460. .buswidth = 16,
  461. .num_links = 1,
  462. .links = { SM8650_SLAVE_ANOC_PCIE_GEM_NOC },
  463. };
  464. static struct qcom_icc_node qnm_aggre1_noc = {
  465. .name = "qnm_aggre1_noc",
  466. .id = SM8650_MASTER_A1NOC_SNOC,
  467. .channels = 1,
  468. .buswidth = 16,
  469. .num_links = 1,
  470. .links = { SM8650_SLAVE_SNOC_GEM_NOC_SF },
  471. };
  472. static struct qcom_icc_node qnm_aggre2_noc = {
  473. .name = "qnm_aggre2_noc",
  474. .id = SM8650_MASTER_A2NOC_SNOC,
  475. .channels = 1,
  476. .buswidth = 16,
  477. .num_links = 1,
  478. .links = { SM8650_SLAVE_SNOC_GEM_NOC_SF },
  479. };
  480. static struct qcom_icc_node qns_a1noc_snoc = {
  481. .name = "qns_a1noc_snoc",
  482. .id = SM8650_SLAVE_A1NOC_SNOC,
  483. .channels = 1,
  484. .buswidth = 16,
  485. .num_links = 1,
  486. .links = { SM8650_MASTER_A1NOC_SNOC },
  487. };
  488. static struct qcom_icc_node qns_a2noc_snoc = {
  489. .name = "qns_a2noc_snoc",
  490. .id = SM8650_SLAVE_A2NOC_SNOC,
  491. .channels = 1,
  492. .buswidth = 16,
  493. .num_links = 1,
  494. .links = { SM8650_MASTER_A2NOC_SNOC },
  495. };
  496. static struct qcom_icc_node qup0_core_slave = {
  497. .name = "qup0_core_slave",
  498. .id = SM8650_SLAVE_QUP_CORE_0,
  499. .channels = 1,
  500. .buswidth = 4,
  501. .num_links = 0,
  502. };
  503. static struct qcom_icc_node qup1_core_slave = {
  504. .name = "qup1_core_slave",
  505. .id = SM8650_SLAVE_QUP_CORE_1,
  506. .channels = 1,
  507. .buswidth = 4,
  508. .num_links = 0,
  509. };
  510. static struct qcom_icc_node qup2_core_slave = {
  511. .name = "qup2_core_slave",
  512. .id = SM8650_SLAVE_QUP_CORE_2,
  513. .channels = 1,
  514. .buswidth = 4,
  515. .num_links = 0,
  516. };
  517. static struct qcom_icc_node qhs_ahb2phy0 = {
  518. .name = "qhs_ahb2phy0",
  519. .id = SM8650_SLAVE_AHB2PHY_SOUTH,
  520. .channels = 1,
  521. .buswidth = 4,
  522. .num_links = 0,
  523. };
  524. static struct qcom_icc_node qhs_ahb2phy1 = {
  525. .name = "qhs_ahb2phy1",
  526. .id = SM8650_SLAVE_AHB2PHY_NORTH,
  527. .channels = 1,
  528. .buswidth = 4,
  529. .num_links = 0,
  530. };
  531. static struct qcom_icc_node qhs_camera_cfg = {
  532. .name = "qhs_camera_cfg",
  533. .id = SM8650_SLAVE_CAMERA_CFG,
  534. .channels = 1,
  535. .buswidth = 4,
  536. .num_links = 0,
  537. };
  538. static struct qcom_icc_node qhs_clk_ctl = {
  539. .name = "qhs_clk_ctl",
  540. .id = SM8650_SLAVE_CLK_CTL,
  541. .channels = 1,
  542. .buswidth = 4,
  543. .num_links = 0,
  544. };
  545. static struct qcom_icc_node qhs_cpr_cx = {
  546. .name = "qhs_cpr_cx",
  547. .id = SM8650_SLAVE_RBCPR_CX_CFG,
  548. .channels = 1,
  549. .buswidth = 4,
  550. .num_links = 0,
  551. };
  552. static struct qcom_icc_node qhs_cpr_hmx = {
  553. .name = "qhs_cpr_hmx",
  554. .id = SM8650_SLAVE_CPR_HMX,
  555. .channels = 1,
  556. .buswidth = 4,
  557. .num_links = 0,
  558. };
  559. static struct qcom_icc_node qhs_cpr_mmcx = {
  560. .name = "qhs_cpr_mmcx",
  561. .id = SM8650_SLAVE_RBCPR_MMCX_CFG,
  562. .channels = 1,
  563. .buswidth = 4,
  564. .num_links = 0,
  565. };
  566. static struct qcom_icc_node qhs_cpr_mxa = {
  567. .name = "qhs_cpr_mxa",
  568. .id = SM8650_SLAVE_RBCPR_MXA_CFG,
  569. .channels = 1,
  570. .buswidth = 4,
  571. .num_links = 0,
  572. };
  573. static struct qcom_icc_node qhs_cpr_mxc = {
  574. .name = "qhs_cpr_mxc",
  575. .id = SM8650_SLAVE_RBCPR_MXC_CFG,
  576. .channels = 1,
  577. .buswidth = 4,
  578. .num_links = 0,
  579. };
  580. static struct qcom_icc_node qhs_cpr_nspcx = {
  581. .name = "qhs_cpr_nspcx",
  582. .id = SM8650_SLAVE_CPR_NSPCX,
  583. .channels = 1,
  584. .buswidth = 4,
  585. .num_links = 0,
  586. };
  587. static struct qcom_icc_node qhs_crypto0_cfg = {
  588. .name = "qhs_crypto0_cfg",
  589. .id = SM8650_SLAVE_CRYPTO_0_CFG,
  590. .channels = 1,
  591. .buswidth = 4,
  592. .num_links = 0,
  593. };
  594. static struct qcom_icc_node qhs_cx_rdpm = {
  595. .name = "qhs_cx_rdpm",
  596. .id = SM8650_SLAVE_CX_RDPM,
  597. .channels = 1,
  598. .buswidth = 4,
  599. .num_links = 0,
  600. };
  601. static struct qcom_icc_node qhs_display_cfg = {
  602. .name = "qhs_display_cfg",
  603. .id = SM8650_SLAVE_DISPLAY_CFG,
  604. .channels = 1,
  605. .buswidth = 4,
  606. .num_links = 0,
  607. };
  608. static struct qcom_icc_node qhs_gpuss_cfg = {
  609. .name = "qhs_gpuss_cfg",
  610. .id = SM8650_SLAVE_GFX3D_CFG,
  611. .channels = 1,
  612. .buswidth = 8,
  613. .num_links = 0,
  614. };
  615. static struct qcom_icc_node qhs_i2c = {
  616. .name = "qhs_i2c",
  617. .id = SM8650_SLAVE_I2C,
  618. .channels = 1,
  619. .buswidth = 4,
  620. .num_links = 0,
  621. };
  622. static struct qcom_icc_node qhs_i3c_ibi0_cfg = {
  623. .name = "qhs_i3c_ibi0_cfg",
  624. .id = SM8650_SLAVE_I3C_IBI0_CFG,
  625. .channels = 1,
  626. .buswidth = 4,
  627. .num_links = 0,
  628. };
  629. static struct qcom_icc_node qhs_i3c_ibi1_cfg = {
  630. .name = "qhs_i3c_ibi1_cfg",
  631. .id = SM8650_SLAVE_I3C_IBI1_CFG,
  632. .channels = 1,
  633. .buswidth = 4,
  634. .num_links = 0,
  635. };
  636. static struct qcom_icc_node qhs_imem_cfg = {
  637. .name = "qhs_imem_cfg",
  638. .id = SM8650_SLAVE_IMEM_CFG,
  639. .channels = 1,
  640. .buswidth = 4,
  641. .num_links = 0,
  642. };
  643. static struct qcom_icc_node qhs_mss_cfg = {
  644. .name = "qhs_mss_cfg",
  645. .id = SM8650_SLAVE_CNOC_MSS,
  646. .channels = 1,
  647. .buswidth = 4,
  648. .num_links = 0,
  649. };
  650. static struct qcom_icc_node qhs_mx_2_rdpm = {
  651. .name = "qhs_mx_2_rdpm",
  652. .id = SM8650_SLAVE_MX_2_RDPM,
  653. .channels = 1,
  654. .buswidth = 4,
  655. .num_links = 0,
  656. };
  657. static struct qcom_icc_node qhs_mx_rdpm = {
  658. .name = "qhs_mx_rdpm",
  659. .id = SM8650_SLAVE_MX_RDPM,
  660. .channels = 1,
  661. .buswidth = 4,
  662. .num_links = 0,
  663. };
  664. static struct qcom_icc_node qhs_pcie0_cfg = {
  665. .name = "qhs_pcie0_cfg",
  666. .id = SM8650_SLAVE_PCIE_0_CFG,
  667. .channels = 1,
  668. .buswidth = 4,
  669. .num_links = 0,
  670. };
  671. static struct qcom_icc_node qhs_pcie1_cfg = {
  672. .name = "qhs_pcie1_cfg",
  673. .id = SM8650_SLAVE_PCIE_1_CFG,
  674. .channels = 1,
  675. .buswidth = 4,
  676. .num_links = 0,
  677. };
  678. static struct qcom_icc_node qhs_pcie_rscc = {
  679. .name = "qhs_pcie_rscc",
  680. .id = SM8650_SLAVE_PCIE_RSCC,
  681. .channels = 1,
  682. .buswidth = 4,
  683. .num_links = 0,
  684. };
  685. static struct qcom_icc_node qhs_pdm = {
  686. .name = "qhs_pdm",
  687. .id = SM8650_SLAVE_PDM,
  688. .channels = 1,
  689. .buswidth = 4,
  690. .num_links = 0,
  691. };
  692. static struct qcom_icc_node qhs_prng = {
  693. .name = "qhs_prng",
  694. .id = SM8650_SLAVE_PRNG,
  695. .channels = 1,
  696. .buswidth = 4,
  697. .num_links = 0,
  698. };
  699. static struct qcom_icc_node qhs_qdss_cfg = {
  700. .name = "qhs_qdss_cfg",
  701. .id = SM8650_SLAVE_QDSS_CFG,
  702. .channels = 1,
  703. .buswidth = 4,
  704. .num_links = 0,
  705. };
  706. static struct qcom_icc_node qhs_qspi = {
  707. .name = "qhs_qspi",
  708. .id = SM8650_SLAVE_QSPI_0,
  709. .channels = 1,
  710. .buswidth = 4,
  711. .num_links = 0,
  712. };
  713. static struct qcom_icc_node qhs_qup02 = {
  714. .name = "qhs_qup02",
  715. .id = SM8650_SLAVE_QUP_3,
  716. .channels = 1,
  717. .buswidth = 4,
  718. .num_links = 0,
  719. };
  720. static struct qcom_icc_node qhs_qup1 = {
  721. .name = "qhs_qup1",
  722. .id = SM8650_SLAVE_QUP_1,
  723. .channels = 1,
  724. .buswidth = 4,
  725. .num_links = 0,
  726. };
  727. static struct qcom_icc_node qhs_qup2 = {
  728. .name = "qhs_qup2",
  729. .id = SM8650_SLAVE_QUP_2,
  730. .channels = 1,
  731. .buswidth = 4,
  732. .num_links = 0,
  733. };
  734. static struct qcom_icc_node qhs_sdc2 = {
  735. .name = "qhs_sdc2",
  736. .id = SM8650_SLAVE_SDCC_2,
  737. .channels = 1,
  738. .buswidth = 4,
  739. .num_links = 0,
  740. };
  741. static struct qcom_icc_node qhs_sdc4 = {
  742. .name = "qhs_sdc4",
  743. .id = SM8650_SLAVE_SDCC_4,
  744. .channels = 1,
  745. .buswidth = 4,
  746. .num_links = 0,
  747. };
  748. static struct qcom_icc_node qhs_spss_cfg = {
  749. .name = "qhs_spss_cfg",
  750. .id = SM8650_SLAVE_SPSS_CFG,
  751. .channels = 1,
  752. .buswidth = 4,
  753. .num_links = 0,
  754. };
  755. static struct qcom_icc_node qhs_tcsr = {
  756. .name = "qhs_tcsr",
  757. .id = SM8650_SLAVE_TCSR,
  758. .channels = 1,
  759. .buswidth = 4,
  760. .num_links = 0,
  761. };
  762. static struct qcom_icc_node qhs_tlmm = {
  763. .name = "qhs_tlmm",
  764. .id = SM8650_SLAVE_TLMM,
  765. .channels = 1,
  766. .buswidth = 4,
  767. .num_links = 0,
  768. };
  769. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  770. .name = "qhs_ufs_mem_cfg",
  771. .id = SM8650_SLAVE_UFS_MEM_CFG,
  772. .channels = 1,
  773. .buswidth = 4,
  774. .num_links = 0,
  775. };
  776. static struct qcom_icc_node qhs_usb3_0 = {
  777. .name = "qhs_usb3_0",
  778. .id = SM8650_SLAVE_USB3_0,
  779. .channels = 1,
  780. .buswidth = 4,
  781. .num_links = 0,
  782. };
  783. static struct qcom_icc_node qhs_venus_cfg = {
  784. .name = "qhs_venus_cfg",
  785. .id = SM8650_SLAVE_VENUS_CFG,
  786. .channels = 1,
  787. .buswidth = 4,
  788. .num_links = 0,
  789. };
  790. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  791. .name = "qhs_vsense_ctrl_cfg",
  792. .id = SM8650_SLAVE_VSENSE_CTRL_CFG,
  793. .channels = 1,
  794. .buswidth = 4,
  795. .num_links = 0,
  796. };
  797. static struct qcom_icc_node qss_mnoc_cfg = {
  798. .name = "qss_mnoc_cfg",
  799. .id = SM8650_SLAVE_CNOC_MNOC_CFG,
  800. .channels = 1,
  801. .buswidth = 4,
  802. .num_links = 1,
  803. .links = { SM8650_MASTER_CNOC_MNOC_CFG },
  804. };
  805. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  806. .name = "qss_nsp_qtb_cfg",
  807. .id = SM8650_SLAVE_NSP_QTB_CFG,
  808. .channels = 1,
  809. .buswidth = 4,
  810. .num_links = 0,
  811. };
  812. static struct qcom_icc_node qss_pcie_anoc_cfg = {
  813. .name = "qss_pcie_anoc_cfg",
  814. .id = SM8650_SLAVE_PCIE_ANOC_CFG,
  815. .channels = 1,
  816. .buswidth = 4,
  817. .num_links = 1,
  818. .links = { SM8650_MASTER_PCIE_ANOC_CFG },
  819. };
  820. static struct qcom_icc_node srvc_cnoc_cfg = {
  821. .name = "srvc_cnoc_cfg",
  822. .id = SM8650_SLAVE_SERVICE_CNOC_CFG,
  823. .channels = 1,
  824. .buswidth = 4,
  825. .num_links = 0,
  826. };
  827. static struct qcom_icc_node xs_qdss_stm = {
  828. .name = "xs_qdss_stm",
  829. .id = SM8650_SLAVE_QDSS_STM,
  830. .channels = 1,
  831. .buswidth = 4,
  832. .num_links = 0,
  833. };
  834. static struct qcom_icc_node xs_sys_tcu_cfg = {
  835. .name = "xs_sys_tcu_cfg",
  836. .id = SM8650_SLAVE_TCU,
  837. .channels = 1,
  838. .buswidth = 8,
  839. .num_links = 0,
  840. };
  841. static struct qcom_icc_node qhs_aoss = {
  842. .name = "qhs_aoss",
  843. .id = SM8650_SLAVE_AOSS,
  844. .channels = 1,
  845. .buswidth = 4,
  846. .num_links = 0,
  847. };
  848. static struct qcom_icc_node qhs_ipa = {
  849. .name = "qhs_ipa",
  850. .id = SM8650_SLAVE_IPA_CFG,
  851. .channels = 1,
  852. .buswidth = 4,
  853. .num_links = 0,
  854. };
  855. static struct qcom_icc_node qhs_ipc_router = {
  856. .name = "qhs_ipc_router",
  857. .id = SM8650_SLAVE_IPC_ROUTER_CFG,
  858. .channels = 1,
  859. .buswidth = 4,
  860. .num_links = 0,
  861. };
  862. static struct qcom_icc_node qhs_tme_cfg = {
  863. .name = "qhs_tme_cfg",
  864. .id = SM8650_SLAVE_TME_CFG,
  865. .channels = 1,
  866. .buswidth = 4,
  867. .num_links = 0,
  868. };
  869. static struct qcom_icc_node qss_apss = {
  870. .name = "qss_apss",
  871. .id = SM8650_SLAVE_APPSS,
  872. .channels = 1,
  873. .buswidth = 4,
  874. .num_links = 0,
  875. };
  876. static struct qcom_icc_node qss_cfg = {
  877. .name = "qss_cfg",
  878. .id = SM8650_SLAVE_CNOC_CFG,
  879. .channels = 1,
  880. .buswidth = 4,
  881. .num_links = 1,
  882. .links = { SM8650_MASTER_CNOC_CFG },
  883. };
  884. static struct qcom_icc_node qss_ddrss_cfg = {
  885. .name = "qss_ddrss_cfg",
  886. .id = SM8650_SLAVE_DDRSS_CFG,
  887. .channels = 1,
  888. .buswidth = 4,
  889. .num_links = 0,
  890. };
  891. static struct qcom_icc_node qxs_imem = {
  892. .name = "qxs_imem",
  893. .id = SM8650_SLAVE_IMEM,
  894. .channels = 1,
  895. .buswidth = 8,
  896. .num_links = 0,
  897. };
  898. static struct qcom_icc_node srvc_cnoc_main = {
  899. .name = "srvc_cnoc_main",
  900. .id = SM8650_SLAVE_SERVICE_CNOC,
  901. .channels = 1,
  902. .buswidth = 4,
  903. .num_links = 0,
  904. };
  905. static struct qcom_icc_node xs_pcie_0 = {
  906. .name = "xs_pcie_0",
  907. .id = SM8650_SLAVE_PCIE_0,
  908. .channels = 1,
  909. .buswidth = 8,
  910. .num_links = 0,
  911. };
  912. static struct qcom_icc_node xs_pcie_1 = {
  913. .name = "xs_pcie_1",
  914. .id = SM8650_SLAVE_PCIE_1,
  915. .channels = 1,
  916. .buswidth = 16,
  917. .num_links = 0,
  918. };
  919. static struct qcom_icc_node qns_gem_noc_cnoc = {
  920. .name = "qns_gem_noc_cnoc",
  921. .id = SM8650_SLAVE_GEM_NOC_CNOC,
  922. .channels = 1,
  923. .buswidth = 16,
  924. .num_links = 1,
  925. .links = { SM8650_MASTER_GEM_NOC_CNOC },
  926. };
  927. static struct qcom_icc_node qns_llcc = {
  928. .name = "qns_llcc",
  929. .id = SM8650_SLAVE_LLCC,
  930. .channels = 4,
  931. .buswidth = 16,
  932. .num_links = 1,
  933. .links = { SM8650_MASTER_LLCC },
  934. };
  935. static struct qcom_icc_node qns_pcie = {
  936. .name = "qns_pcie",
  937. .id = SM8650_SLAVE_MEM_NOC_PCIE_SNOC,
  938. .channels = 1,
  939. .buswidth = 8,
  940. .num_links = 1,
  941. .links = { SM8650_MASTER_GEM_NOC_PCIE_SNOC },
  942. };
  943. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  944. .name = "qns_lpass_ag_noc_gemnoc",
  945. .id = SM8650_SLAVE_LPASS_GEM_NOC,
  946. .channels = 1,
  947. .buswidth = 16,
  948. .num_links = 1,
  949. .links = { SM8650_MASTER_LPASS_GEM_NOC },
  950. };
  951. static struct qcom_icc_node qns_lpass_aggnoc = {
  952. .name = "qns_lpass_aggnoc",
  953. .id = SM8650_SLAVE_LPIAON_NOC_LPASS_AG_NOC,
  954. .channels = 1,
  955. .buswidth = 16,
  956. .num_links = 1,
  957. .links = { SM8650_MASTER_LPIAON_NOC },
  958. };
  959. static struct qcom_icc_node qns_lpi_aon_noc = {
  960. .name = "qns_lpi_aon_noc",
  961. .id = SM8650_SLAVE_LPICX_NOC_LPIAON_NOC,
  962. .channels = 1,
  963. .buswidth = 16,
  964. .num_links = 1,
  965. .links = { SM8650_MASTER_LPASS_LPINOC },
  966. };
  967. static struct qcom_icc_node ebi = {
  968. .name = "ebi",
  969. .id = SM8650_SLAVE_EBI1,
  970. .channels = 4,
  971. .buswidth = 4,
  972. .num_links = 0,
  973. };
  974. static struct qcom_icc_node qns_mem_noc_hf = {
  975. .name = "qns_mem_noc_hf",
  976. .id = SM8650_SLAVE_MNOC_HF_MEM_NOC,
  977. .channels = 2,
  978. .buswidth = 32,
  979. .num_links = 1,
  980. .links = { SM8650_MASTER_MNOC_HF_MEM_NOC },
  981. };
  982. static struct qcom_icc_node qns_mem_noc_sf = {
  983. .name = "qns_mem_noc_sf",
  984. .id = SM8650_SLAVE_MNOC_SF_MEM_NOC,
  985. .channels = 2,
  986. .buswidth = 32,
  987. .num_links = 1,
  988. .links = { SM8650_MASTER_MNOC_SF_MEM_NOC },
  989. };
  990. static struct qcom_icc_node srvc_mnoc = {
  991. .name = "srvc_mnoc",
  992. .id = SM8650_SLAVE_SERVICE_MNOC,
  993. .channels = 1,
  994. .buswidth = 4,
  995. .num_links = 0,
  996. };
  997. static struct qcom_icc_node qns_nsp_gemnoc = {
  998. .name = "qns_nsp_gemnoc",
  999. .id = SM8650_SLAVE_CDSP_MEM_NOC,
  1000. .channels = 2,
  1001. .buswidth = 32,
  1002. .num_links = 1,
  1003. .links = { SM8650_MASTER_COMPUTE_NOC },
  1004. };
  1005. static struct qcom_icc_node qns_pcie_mem_noc = {
  1006. .name = "qns_pcie_mem_noc",
  1007. .id = SM8650_SLAVE_ANOC_PCIE_GEM_NOC,
  1008. .channels = 1,
  1009. .buswidth = 16,
  1010. .num_links = 1,
  1011. .links = { SM8650_MASTER_ANOC_PCIE_GEM_NOC },
  1012. };
  1013. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  1014. .name = "srvc_pcie_aggre_noc",
  1015. .id = SM8650_SLAVE_SERVICE_PCIE_ANOC,
  1016. .channels = 1,
  1017. .buswidth = 4,
  1018. .num_links = 0,
  1019. };
  1020. static struct qcom_icc_node qns_gemnoc_sf = {
  1021. .name = "qns_gemnoc_sf",
  1022. .id = SM8650_SLAVE_SNOC_GEM_NOC_SF,
  1023. .channels = 1,
  1024. .buswidth = 16,
  1025. .num_links = 1,
  1026. .links = { SM8650_MASTER_SNOC_SF_MEM_NOC },
  1027. };
  1028. static struct qcom_icc_bcm bcm_acv = {
  1029. .name = "ACV",
  1030. .enable_mask = BIT(0),
  1031. .num_nodes = 1,
  1032. .nodes = { &ebi },
  1033. };
  1034. static struct qcom_icc_bcm bcm_ce0 = {
  1035. .name = "CE0",
  1036. .num_nodes = 1,
  1037. .nodes = { &qxm_crypto },
  1038. };
  1039. static struct qcom_icc_bcm bcm_cn0 = {
  1040. .name = "CN0",
  1041. .enable_mask = BIT(0),
  1042. .keepalive = true,
  1043. .num_nodes = 59,
  1044. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1045. &qhs_ahb2phy1, &qhs_camera_cfg,
  1046. &qhs_clk_ctl, &qhs_cpr_cx,
  1047. &qhs_cpr_hmx, &qhs_cpr_mmcx,
  1048. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1049. &qhs_cpr_nspcx, &qhs_crypto0_cfg,
  1050. &qhs_cx_rdpm, &qhs_display_cfg,
  1051. &qhs_gpuss_cfg, &qhs_i2c,
  1052. &qhs_i3c_ibi0_cfg, &qhs_i3c_ibi1_cfg,
  1053. &qhs_imem_cfg, &qhs_mss_cfg,
  1054. &qhs_mx_2_rdpm, &qhs_mx_rdpm,
  1055. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1056. &qhs_pcie_rscc, &qhs_pdm,
  1057. &qhs_prng, &qhs_qdss_cfg,
  1058. &qhs_qspi, &qhs_qup02,
  1059. &qhs_qup1, &qhs_qup2,
  1060. &qhs_sdc2, &qhs_sdc4,
  1061. &qhs_spss_cfg, &qhs_tcsr,
  1062. &qhs_tlmm, &qhs_ufs_mem_cfg,
  1063. &qhs_usb3_0, &qhs_venus_cfg,
  1064. &qhs_vsense_ctrl_cfg, &qss_mnoc_cfg,
  1065. &qss_nsp_qtb_cfg, &qss_pcie_anoc_cfg,
  1066. &srvc_cnoc_cfg, &xs_qdss_stm,
  1067. &xs_sys_tcu_cfg, &qnm_gemnoc_cnoc,
  1068. &qnm_gemnoc_pcie, &qhs_aoss,
  1069. &qhs_ipa, &qhs_ipc_router,
  1070. &qhs_tme_cfg, &qss_apss,
  1071. &qss_cfg, &qss_ddrss_cfg,
  1072. &qxs_imem, &srvc_cnoc_main,
  1073. &xs_pcie_0, &xs_pcie_1 },
  1074. };
  1075. static struct qcom_icc_bcm bcm_co0 = {
  1076. .name = "CO0",
  1077. .enable_mask = BIT(0),
  1078. .num_nodes = 2,
  1079. .nodes = { &qnm_nsp, &qns_nsp_gemnoc },
  1080. };
  1081. static struct qcom_icc_bcm bcm_lp0 = {
  1082. .name = "LP0",
  1083. .num_nodes = 2,
  1084. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1085. };
  1086. static struct qcom_icc_bcm bcm_mc0 = {
  1087. .name = "MC0",
  1088. .keepalive = true,
  1089. .num_nodes = 1,
  1090. .nodes = { &ebi },
  1091. };
  1092. static struct qcom_icc_bcm bcm_mm0 = {
  1093. .name = "MM0",
  1094. .num_nodes = 1,
  1095. .nodes = { &qns_mem_noc_hf },
  1096. };
  1097. static struct qcom_icc_bcm bcm_mm1 = {
  1098. .name = "MM1",
  1099. .enable_mask = BIT(0),
  1100. .num_nodes = 8,
  1101. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1102. &qnm_camnoc_sf, &qnm_vapss_hcp,
  1103. &qnm_video_cv_cpu, &qnm_video_cvp,
  1104. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1105. };
  1106. static struct qcom_icc_bcm bcm_qup0 = {
  1107. .name = "QUP0",
  1108. .keepalive = true,
  1109. .vote_scale = 1,
  1110. .num_nodes = 1,
  1111. .nodes = { &qup0_core_slave },
  1112. };
  1113. static struct qcom_icc_bcm bcm_qup1 = {
  1114. .name = "QUP1",
  1115. .keepalive = true,
  1116. .vote_scale = 1,
  1117. .num_nodes = 1,
  1118. .nodes = { &qup1_core_slave },
  1119. };
  1120. static struct qcom_icc_bcm bcm_qup2 = {
  1121. .name = "QUP2",
  1122. .keepalive = true,
  1123. .vote_scale = 1,
  1124. .num_nodes = 1,
  1125. .nodes = { &qup2_core_slave },
  1126. };
  1127. static struct qcom_icc_bcm bcm_sh0 = {
  1128. .name = "SH0",
  1129. .keepalive = true,
  1130. .num_nodes = 1,
  1131. .nodes = { &qns_llcc },
  1132. };
  1133. static struct qcom_icc_bcm bcm_sh1 = {
  1134. .name = "SH1",
  1135. .enable_mask = BIT(0),
  1136. .num_nodes = 15,
  1137. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1138. &alm_ubwc_p_tcu, &chm_apps,
  1139. &qnm_gpu, &qnm_mdsp,
  1140. &qnm_mnoc_hf, &qnm_mnoc_sf,
  1141. &qnm_nsp_gemnoc, &qnm_pcie,
  1142. &qnm_snoc_sf, &qnm_ubwc_p,
  1143. &xm_gic, &qns_gem_noc_cnoc,
  1144. &qns_pcie },
  1145. };
  1146. static struct qcom_icc_bcm bcm_sn0 = {
  1147. .name = "SN0",
  1148. .keepalive = true,
  1149. .num_nodes = 1,
  1150. .nodes = { &qns_gemnoc_sf },
  1151. };
  1152. static struct qcom_icc_bcm bcm_sn2 = {
  1153. .name = "SN2",
  1154. .num_nodes = 1,
  1155. .nodes = { &qnm_aggre1_noc },
  1156. };
  1157. static struct qcom_icc_bcm bcm_sn3 = {
  1158. .name = "SN3",
  1159. .num_nodes = 1,
  1160. .nodes = { &qnm_aggre2_noc },
  1161. };
  1162. static struct qcom_icc_bcm bcm_sn4 = {
  1163. .name = "SN4",
  1164. .num_nodes = 1,
  1165. .nodes = { &qns_pcie_mem_noc },
  1166. };
  1167. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1168. [MASTER_QSPI_0] = &qhm_qspi,
  1169. [MASTER_QUP_1] = &qhm_qup1,
  1170. [MASTER_QUP_3] = &qxm_qup02,
  1171. [MASTER_SDCC_4] = &xm_sdc4,
  1172. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1173. [MASTER_USB3_0] = &xm_usb3_0,
  1174. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1175. };
  1176. static const struct qcom_icc_desc sm8650_aggre1_noc = {
  1177. .nodes = aggre1_noc_nodes,
  1178. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1179. };
  1180. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1181. &bcm_ce0,
  1182. };
  1183. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1184. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1185. [MASTER_QUP_2] = &qhm_qup2,
  1186. [MASTER_CRYPTO] = &qxm_crypto,
  1187. [MASTER_IPA] = &qxm_ipa,
  1188. [MASTER_SP] = &qxm_sp,
  1189. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  1190. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1191. [MASTER_SDCC_2] = &xm_sdc2,
  1192. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1193. };
  1194. static const struct qcom_icc_desc sm8650_aggre2_noc = {
  1195. .nodes = aggre2_noc_nodes,
  1196. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1197. .bcms = aggre2_noc_bcms,
  1198. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1199. };
  1200. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1201. &bcm_qup0,
  1202. &bcm_qup1,
  1203. &bcm_qup2,
  1204. };
  1205. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1206. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1207. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1208. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1209. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1210. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1211. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1212. };
  1213. static const struct qcom_icc_desc sm8650_clk_virt = {
  1214. .nodes = clk_virt_nodes,
  1215. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1216. .bcms = clk_virt_bcms,
  1217. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1218. };
  1219. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1220. &bcm_cn0,
  1221. };
  1222. static struct qcom_icc_node * const config_noc_nodes[] = {
  1223. [MASTER_CNOC_CFG] = &qsm_cfg,
  1224. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  1225. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  1226. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1227. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1228. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1229. [SLAVE_CPR_HMX] = &qhs_cpr_hmx,
  1230. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1231. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  1232. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  1233. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  1234. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1235. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1236. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1237. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1238. [SLAVE_I2C] = &qhs_i2c,
  1239. [SLAVE_I3C_IBI0_CFG] = &qhs_i3c_ibi0_cfg,
  1240. [SLAVE_I3C_IBI1_CFG] = &qhs_i3c_ibi1_cfg,
  1241. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1242. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  1243. [SLAVE_MX_2_RDPM] = &qhs_mx_2_rdpm,
  1244. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1245. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1246. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1247. [SLAVE_PCIE_RSCC] = &qhs_pcie_rscc,
  1248. [SLAVE_PDM] = &qhs_pdm,
  1249. [SLAVE_PRNG] = &qhs_prng,
  1250. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1251. [SLAVE_QSPI_0] = &qhs_qspi,
  1252. [SLAVE_QUP_3] = &qhs_qup02,
  1253. [SLAVE_QUP_1] = &qhs_qup1,
  1254. [SLAVE_QUP_2] = &qhs_qup2,
  1255. [SLAVE_SDCC_2] = &qhs_sdc2,
  1256. [SLAVE_SDCC_4] = &qhs_sdc4,
  1257. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  1258. [SLAVE_TCSR] = &qhs_tcsr,
  1259. [SLAVE_TLMM] = &qhs_tlmm,
  1260. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1261. [SLAVE_USB3_0] = &qhs_usb3_0,
  1262. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1263. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1264. [SLAVE_CNOC_MNOC_CFG] = &qss_mnoc_cfg,
  1265. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  1266. [SLAVE_PCIE_ANOC_CFG] = &qss_pcie_anoc_cfg,
  1267. [SLAVE_SERVICE_CNOC_CFG] = &srvc_cnoc_cfg,
  1268. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1269. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  1270. };
  1271. static const struct qcom_icc_desc sm8650_config_noc = {
  1272. .nodes = config_noc_nodes,
  1273. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1274. .bcms = config_noc_bcms,
  1275. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1276. };
  1277. static struct qcom_icc_bcm * const cnoc_main_bcms[] = {
  1278. &bcm_cn0,
  1279. };
  1280. static struct qcom_icc_node * const cnoc_main_nodes[] = {
  1281. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1282. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1283. [SLAVE_AOSS] = &qhs_aoss,
  1284. [SLAVE_IPA_CFG] = &qhs_ipa,
  1285. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1286. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  1287. [SLAVE_APPSS] = &qss_apss,
  1288. [SLAVE_CNOC_CFG] = &qss_cfg,
  1289. [SLAVE_DDRSS_CFG] = &qss_ddrss_cfg,
  1290. [SLAVE_IMEM] = &qxs_imem,
  1291. [SLAVE_SERVICE_CNOC] = &srvc_cnoc_main,
  1292. [SLAVE_PCIE_0] = &xs_pcie_0,
  1293. [SLAVE_PCIE_1] = &xs_pcie_1,
  1294. };
  1295. static const struct qcom_icc_desc sm8650_cnoc_main = {
  1296. .nodes = cnoc_main_nodes,
  1297. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  1298. .bcms = cnoc_main_bcms,
  1299. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  1300. };
  1301. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  1302. &bcm_sh0,
  1303. &bcm_sh1,
  1304. };
  1305. static struct qcom_icc_node * const gem_noc_nodes[] = {
  1306. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  1307. [MASTER_SYS_TCU] = &alm_sys_tcu,
  1308. [MASTER_UBWC_P_TCU] = &alm_ubwc_p_tcu,
  1309. [MASTER_APPSS_PROC] = &chm_apps,
  1310. [MASTER_GFX3D] = &qnm_gpu,
  1311. [MASTER_LPASS_GEM_NOC] = &qnm_lpass_gemnoc,
  1312. [MASTER_MSS_PROC] = &qnm_mdsp,
  1313. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1314. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1315. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  1316. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  1317. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1318. [MASTER_UBWC_P] = &qnm_ubwc_p,
  1319. [MASTER_GIC] = &xm_gic,
  1320. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  1321. [SLAVE_LLCC] = &qns_llcc,
  1322. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  1323. };
  1324. static const struct qcom_icc_desc sm8650_gem_noc = {
  1325. .nodes = gem_noc_nodes,
  1326. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1327. .bcms = gem_noc_bcms,
  1328. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1329. };
  1330. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  1331. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  1332. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  1333. };
  1334. static const struct qcom_icc_desc sm8650_lpass_ag_noc = {
  1335. .nodes = lpass_ag_noc_nodes,
  1336. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  1337. };
  1338. static struct qcom_icc_bcm * const lpass_lpiaon_noc_bcms[] = {
  1339. &bcm_lp0,
  1340. };
  1341. static struct qcom_icc_node * const lpass_lpiaon_noc_nodes[] = {
  1342. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  1343. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  1344. };
  1345. static const struct qcom_icc_desc sm8650_lpass_lpiaon_noc = {
  1346. .nodes = lpass_lpiaon_noc_nodes,
  1347. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  1348. .bcms = lpass_lpiaon_noc_bcms,
  1349. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  1350. };
  1351. static struct qcom_icc_node * const lpass_lpicx_noc_nodes[] = {
  1352. [MASTER_LPASS_PROC] = &qxm_lpinoc_dsp_axim,
  1353. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  1354. };
  1355. static const struct qcom_icc_desc sm8650_lpass_lpicx_noc = {
  1356. .nodes = lpass_lpicx_noc_nodes,
  1357. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  1358. };
  1359. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  1360. &bcm_acv,
  1361. &bcm_mc0,
  1362. };
  1363. static struct qcom_icc_node * const mc_virt_nodes[] = {
  1364. [MASTER_LLCC] = &llcc_mc,
  1365. [SLAVE_EBI1] = &ebi,
  1366. };
  1367. static const struct qcom_icc_desc sm8650_mc_virt = {
  1368. .nodes = mc_virt_nodes,
  1369. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1370. .bcms = mc_virt_bcms,
  1371. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1372. };
  1373. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  1374. &bcm_mm0,
  1375. &bcm_mm1,
  1376. };
  1377. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  1378. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  1379. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  1380. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  1381. [MASTER_MDP] = &qnm_mdp,
  1382. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  1383. [MASTER_VIDEO] = &qnm_video,
  1384. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  1385. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  1386. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  1387. [MASTER_CNOC_MNOC_CFG] = &qsm_mnoc_cfg,
  1388. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1389. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  1390. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1391. };
  1392. static const struct qcom_icc_desc sm8650_mmss_noc = {
  1393. .nodes = mmss_noc_nodes,
  1394. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1395. .bcms = mmss_noc_bcms,
  1396. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1397. };
  1398. static struct qcom_icc_bcm * const nsp_noc_bcms[] = {
  1399. &bcm_co0,
  1400. };
  1401. static struct qcom_icc_node * const nsp_noc_nodes[] = {
  1402. [MASTER_CDSP_PROC] = &qnm_nsp,
  1403. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  1404. };
  1405. static const struct qcom_icc_desc sm8650_nsp_noc = {
  1406. .nodes = nsp_noc_nodes,
  1407. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  1408. .bcms = nsp_noc_bcms,
  1409. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  1410. };
  1411. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  1412. &bcm_sn4,
  1413. };
  1414. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  1415. [MASTER_PCIE_ANOC_CFG] = &qsm_pcie_anoc_cfg,
  1416. [MASTER_PCIE_0] = &xm_pcie3_0,
  1417. [MASTER_PCIE_1] = &xm_pcie3_1,
  1418. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  1419. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  1420. };
  1421. static const struct qcom_icc_desc sm8650_pcie_anoc = {
  1422. .nodes = pcie_anoc_nodes,
  1423. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  1424. .bcms = pcie_anoc_bcms,
  1425. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  1426. };
  1427. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  1428. &bcm_sn0,
  1429. &bcm_sn2,
  1430. &bcm_sn3,
  1431. };
  1432. static struct qcom_icc_node * const system_noc_nodes[] = {
  1433. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1434. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  1435. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1436. };
  1437. static const struct qcom_icc_desc sm8650_system_noc = {
  1438. .nodes = system_noc_nodes,
  1439. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  1440. .bcms = system_noc_bcms,
  1441. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  1442. };
  1443. static const struct of_device_id qnoc_of_match[] = {
  1444. { .compatible = "qcom,sm8650-aggre1-noc", .data = &sm8650_aggre1_noc },
  1445. { .compatible = "qcom,sm8650-aggre2-noc", .data = &sm8650_aggre2_noc },
  1446. { .compatible = "qcom,sm8650-clk-virt", .data = &sm8650_clk_virt },
  1447. { .compatible = "qcom,sm8650-config-noc", .data = &sm8650_config_noc },
  1448. { .compatible = "qcom,sm8650-cnoc-main", .data = &sm8650_cnoc_main },
  1449. { .compatible = "qcom,sm8650-gem-noc", .data = &sm8650_gem_noc },
  1450. { .compatible = "qcom,sm8650-lpass-ag-noc", .data = &sm8650_lpass_ag_noc },
  1451. { .compatible = "qcom,sm8650-lpass-lpiaon-noc", .data = &sm8650_lpass_lpiaon_noc },
  1452. { .compatible = "qcom,sm8650-lpass-lpicx-noc", .data = &sm8650_lpass_lpicx_noc },
  1453. { .compatible = "qcom,sm8650-mc-virt", .data = &sm8650_mc_virt },
  1454. { .compatible = "qcom,sm8650-mmss-noc", .data = &sm8650_mmss_noc },
  1455. { .compatible = "qcom,sm8650-nsp-noc", .data = &sm8650_nsp_noc },
  1456. { .compatible = "qcom,sm8650-pcie-anoc", .data = &sm8650_pcie_anoc },
  1457. { .compatible = "qcom,sm8650-system-noc", .data = &sm8650_system_noc },
  1458. { }
  1459. };
  1460. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  1461. static struct platform_driver qnoc_driver = {
  1462. .probe = qcom_icc_rpmh_probe,
  1463. .remove_new = qcom_icc_rpmh_remove,
  1464. .driver = {
  1465. .name = "qnoc-sm8650",
  1466. .of_match_table = qnoc_of_match,
  1467. .sync_state = icc_sync_state,
  1468. },
  1469. };
  1470. static int __init qnoc_driver_init(void)
  1471. {
  1472. return platform_driver_register(&qnoc_driver);
  1473. }
  1474. core_initcall(qnoc_driver_init);
  1475. static void __exit qnoc_driver_exit(void)
  1476. {
  1477. platform_driver_unregister(&qnoc_driver);
  1478. }
  1479. module_exit(qnoc_driver_exit);
  1480. MODULE_DESCRIPTION("sm8650 NoC driver");
  1481. MODULE_LICENSE("GPL");