sm6150.c 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
  5. *
  6. */
  7. #include <asm/div64.h>
  8. #include <dt-bindings/interconnect/qcom,sm6150.h>
  9. #include <linux/clk.h>
  10. #include <linux/device.h>
  11. #include <linux/interconnect.h>
  12. #include <linux/interconnect-provider.h>
  13. #include <linux/io.h>
  14. #include <linux/module.h>
  15. #include <linux/of_device.h>
  16. #include <linux/of_platform.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/sort.h>
  19. #include "icc-rpmh.h"
  20. #include "bcm-voter.h"
  21. #include "qnoc-qos.h"
  22. static struct qcom_icc_node qhm_a1noc_cfg = {
  23. .name = "qhm_a1noc_cfg",
  24. .id = MASTER_A1NOC_CFG,
  25. .channels = 1,
  26. .buswidth = 4,
  27. .noc_ops = &qcom_qnoc4_ops,
  28. .num_links = 1,
  29. .links = { SLAVE_SERVICE_A2NOC },
  30. };
  31. static struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  32. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  33. .num_ports = 1,
  34. .offsets = { 0xc000 },
  35. .config = &(struct qos_config) {
  36. .prio = 2,
  37. .urg_fwd = 0,
  38. },
  39. };
  40. static struct qcom_icc_node qhm_qdss_bam = {
  41. .name = "qhm_qdss_bam",
  42. .id = MASTER_QDSS_BAM,
  43. .channels = 1,
  44. .buswidth = 4,
  45. .noc_ops = &qcom_qnoc4_ops,
  46. .qosbox = &qhm_qdss_bam_qos,
  47. .num_links = 1,
  48. .links = { SLAVE_A1NOC_SNOC },
  49. };
  50. static struct qcom_icc_qosbox qhm_qspi_qos = {
  51. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  52. .num_ports = 1,
  53. .offsets = { 0x17000 },
  54. .config = &(struct qos_config) {
  55. .prio = 2,
  56. .urg_fwd = 0,
  57. },
  58. };
  59. static struct qcom_icc_node qhm_qspi = {
  60. .name = "qhm_qspi",
  61. .id = MASTER_QSPI,
  62. .channels = 1,
  63. .buswidth = 4,
  64. .noc_ops = &qcom_qnoc4_ops,
  65. .qosbox = &qhm_qspi_qos,
  66. .num_links = 1,
  67. .links = { SLAVE_A1NOC_SNOC },
  68. };
  69. static struct qcom_icc_qosbox qhm_qup0_qos = {
  70. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  71. .num_ports = 1,
  72. .offsets = { 0x10000 },
  73. .config = &(struct qos_config) {
  74. .prio = 2,
  75. .urg_fwd = 0,
  76. },
  77. };
  78. static struct qcom_icc_node qhm_qup0 = {
  79. .name = "qhm_qup0",
  80. .id = MASTER_QUP_0,
  81. .channels = 1,
  82. .buswidth = 4,
  83. .noc_ops = &qcom_qnoc4_ops,
  84. .qosbox = &qhm_qup0_qos,
  85. .num_links = 1,
  86. .links = { SLAVE_A1NOC_SNOC },
  87. };
  88. static struct qcom_icc_qosbox qhm_qup1_qos = {
  89. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  90. .num_ports = 1,
  91. .offsets = { 0x12000 },
  92. .config = &(struct qos_config) {
  93. .prio = 2,
  94. .urg_fwd = 0,
  95. },
  96. };
  97. static struct qcom_icc_node qhm_qup1 = {
  98. .name = "qhm_qup1",
  99. .id = MASTER_BLSP_1,
  100. .channels = 1,
  101. .buswidth = 4,
  102. .noc_ops = &qcom_qnoc4_ops,
  103. .qosbox = &qhm_qup1_qos,
  104. .num_links = 1,
  105. .links = { SLAVE_A1NOC_SNOC },
  106. };
  107. static struct qcom_icc_qosbox qnm_cnoc_qos = {
  108. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  109. .num_ports = 1,
  110. .offsets = { 0x4000 },
  111. .config = &(struct qos_config) {
  112. .prio = 2,
  113. .urg_fwd = 1,
  114. },
  115. };
  116. static struct qcom_icc_node qnm_cnoc = {
  117. .name = "qnm_cnoc",
  118. .id = MASTER_CNOC_A2NOC,
  119. .channels = 1,
  120. .buswidth = 8,
  121. .noc_ops = &qcom_qnoc4_ops,
  122. .qosbox = &qnm_cnoc_qos,
  123. .num_links = 1,
  124. .links = { SLAVE_A1NOC_SNOC },
  125. };
  126. static struct qcom_icc_qosbox qxm_crypto_qos = {
  127. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  128. .num_ports = 1,
  129. .offsets = { 0x5000 },
  130. .config = &(struct qos_config) {
  131. .prio = 2,
  132. .urg_fwd = 1,
  133. },
  134. };
  135. static struct qcom_icc_node qxm_crypto = {
  136. .name = "qxm_crypto",
  137. .id = MASTER_CRYPTO,
  138. .channels = 1,
  139. .buswidth = 8,
  140. .noc_ops = &qcom_qnoc4_ops,
  141. .qosbox = &qxm_crypto_qos,
  142. .num_links = 1,
  143. .links = { SLAVE_A1NOC_SNOC },
  144. };
  145. static struct qcom_icc_qosbox qxm_ipa_qos = {
  146. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  147. .num_ports = 1,
  148. .offsets = { 0x6000 },
  149. .config = &(struct qos_config) {
  150. .prio = 2,
  151. .urg_fwd = 1,
  152. },
  153. };
  154. static struct qcom_icc_node qxm_ipa = {
  155. .name = "qxm_ipa",
  156. .id = MASTER_IPA,
  157. .channels = 1,
  158. .buswidth = 8,
  159. .noc_ops = &qcom_qnoc4_ops,
  160. .qosbox = &qxm_ipa_qos,
  161. .num_links = 1,
  162. .links = { SLAVE_LPASS_SNOC },
  163. };
  164. static struct qcom_icc_qosbox xm_emac_avb_qos = {
  165. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  166. .num_ports = 1,
  167. .offsets = { 0xa000 },
  168. .config = &(struct qos_config) {
  169. .prio = 2,
  170. .urg_fwd = 0,
  171. },
  172. };
  173. static struct qcom_icc_node xm_emac_avb = {
  174. .name = "xm_emac_avb",
  175. .id = MASTER_EMAC_EVB,
  176. .channels = 1,
  177. .buswidth = 8,
  178. .noc_ops = &qcom_qnoc4_ops,
  179. .qosbox = &xm_emac_avb_qos,
  180. .num_links = 1,
  181. .links = { SLAVE_A1NOC_SNOC },
  182. };
  183. static struct qcom_icc_qosbox xm_pcie_qos = {
  184. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  185. .num_ports = 1,
  186. .offsets = { 0x13000 },
  187. .config = &(struct qos_config) {
  188. .prio = 0,
  189. .urg_fwd = 0,
  190. },
  191. };
  192. static struct qcom_icc_node xm_pcie = {
  193. .name = "xm_pcie",
  194. .id = MASTER_PCIE,
  195. .channels = 1,
  196. .buswidth = 8,
  197. .noc_ops = &qcom_qnoc4_ops,
  198. .qosbox = &xm_pcie_qos,
  199. .num_links = 1,
  200. .links = { SLAVE_ANOC_PCIE_SNOC },
  201. };
  202. static struct qcom_icc_qosbox xm_qdss_etr_qos = {
  203. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  204. .num_ports = 1,
  205. .offsets = { 0xb000 },
  206. .config = &(struct qos_config) {
  207. .prio = 2,
  208. .urg_fwd = 0,
  209. },
  210. };
  211. static struct qcom_icc_node xm_qdss_etr = {
  212. .name = "xm_qdss_etr",
  213. .id = MASTER_QDSS_ETR,
  214. .channels = 1,
  215. .buswidth = 8,
  216. .noc_ops = &qcom_qnoc4_ops,
  217. .qosbox = &xm_qdss_etr_qos,
  218. .num_links = 1,
  219. .links = { SLAVE_A1NOC_SNOC },
  220. };
  221. static struct qcom_icc_qosbox xm_sdc1_qos = {
  222. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  223. .num_ports = 1,
  224. .offsets = { 0xe000 },
  225. .config = &(struct qos_config) {
  226. .prio = 2,
  227. .urg_fwd = 0,
  228. },
  229. };
  230. static struct qcom_icc_node xm_sdc1 = {
  231. .name = "xm_sdc1",
  232. .id = MASTER_SDCC_1,
  233. .channels = 1,
  234. .buswidth = 8,
  235. .noc_ops = &qcom_qnoc4_ops,
  236. .qosbox = &xm_sdc1_qos,
  237. .num_links = 1,
  238. .links = { SLAVE_A1NOC_SNOC },
  239. };
  240. static struct qcom_icc_qosbox xm_sdc2_qos = {
  241. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  242. .num_ports = 1,
  243. .offsets = { 0x16000 },
  244. .config = &(struct qos_config) {
  245. .prio = 2,
  246. .urg_fwd = 0,
  247. },
  248. };
  249. static struct qcom_icc_node xm_sdc2 = {
  250. .name = "xm_sdc2",
  251. .id = MASTER_SDCC_2,
  252. .channels = 1,
  253. .buswidth = 8,
  254. .noc_ops = &qcom_qnoc4_ops,
  255. .qosbox = &xm_sdc2_qos,
  256. .num_links = 1,
  257. .links = { SLAVE_A1NOC_SNOC },
  258. };
  259. static struct qcom_icc_qosbox xm_ufs_mem_qos = {
  260. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  261. .num_ports = 1,
  262. .offsets = { 0x11000 },
  263. .config = &(struct qos_config) {
  264. .prio = 2,
  265. .urg_fwd = 0,
  266. },
  267. };
  268. static struct qcom_icc_node xm_ufs_mem = {
  269. .name = "xm_ufs_mem",
  270. .id = MASTER_UFS_MEM,
  271. .channels = 1,
  272. .buswidth = 8,
  273. .noc_ops = &qcom_qnoc4_ops,
  274. .qosbox = &xm_ufs_mem_qos,
  275. .num_links = 1,
  276. .links = { SLAVE_A1NOC_SNOC },
  277. };
  278. static struct qcom_icc_qosbox xm_usb2_qos = {
  279. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  280. .num_ports = 1,
  281. .offsets = { 0x15000 },
  282. .config = &(struct qos_config) {
  283. .prio = 2,
  284. .urg_fwd = 0,
  285. },
  286. };
  287. static struct qcom_icc_node xm_usb2 = {
  288. .name = "xm_usb2",
  289. .id = MASTER_USB2,
  290. .channels = 1,
  291. .buswidth = 8,
  292. .noc_ops = &qcom_qnoc4_ops,
  293. .qosbox = &xm_usb2_qos,
  294. .num_links = 1,
  295. .links = { SLAVE_A1NOC_SNOC },
  296. };
  297. static struct qcom_icc_qosbox xm_usb3_0_qos = {
  298. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  299. .num_ports = 1,
  300. .offsets = { 0xd000 },
  301. .config = &(struct qos_config) {
  302. .prio = 2,
  303. .urg_fwd = 0,
  304. },
  305. };
  306. static struct qcom_icc_node xm_usb3_0 = {
  307. .name = "xm_usb3_0",
  308. .id = MASTER_USB3_0,
  309. .channels = 1,
  310. .buswidth = 8,
  311. .noc_ops = &qcom_qnoc4_ops,
  312. .qosbox = &xm_usb3_0_qos,
  313. .num_links = 1,
  314. .links = { SLAVE_A1NOC_SNOC },
  315. };
  316. static struct qcom_icc_node qxm_camnoc_hf0_uncomp = {
  317. .name = "qxm_camnoc_hf0_uncomp",
  318. .id = MASTER_CAMNOC_HF0_UNCOMP,
  319. .channels = 1,
  320. .buswidth = 32,
  321. .noc_ops = &qcom_qnoc4_ops,
  322. .num_links = 1,
  323. .links = { SLAVE_CAMNOC_UNCOMP },
  324. };
  325. static struct qcom_icc_node qxm_camnoc_hf1_uncomp = {
  326. .name = "qxm_camnoc_hf1_uncomp",
  327. .id = MASTER_CAMNOC_HF1_UNCOMP,
  328. .channels = 1,
  329. .buswidth = 32,
  330. .noc_ops = &qcom_qnoc4_ops,
  331. .num_links = 1,
  332. .links = { SLAVE_CAMNOC_UNCOMP },
  333. };
  334. static struct qcom_icc_node qxm_camnoc_sf_uncomp = {
  335. .name = "qxm_camnoc_sf_uncomp",
  336. .id = MASTER_CAMNOC_SF_UNCOMP,
  337. .channels = 1,
  338. .buswidth = 32,
  339. .noc_ops = &qcom_qnoc4_ops,
  340. .num_links = 1,
  341. .links = { SLAVE_CAMNOC_UNCOMP },
  342. };
  343. static struct qcom_icc_node qhm_spdm = {
  344. .name = "qhm_spdm",
  345. .id = MASTER_SPDM,
  346. .channels = 1,
  347. .buswidth = 4,
  348. .noc_ops = &qcom_qnoc4_ops,
  349. .num_links = 1,
  350. .links = { SLAVE_CNOC_A2NOC },
  351. };
  352. static struct qcom_icc_node qnm_snoc = {
  353. .name = "qnm_snoc",
  354. .id = MASTER_SNOC_CNOC,
  355. .channels = 1,
  356. .buswidth = 8,
  357. .noc_ops = &qcom_qnoc4_ops,
  358. .num_links = 39,
  359. .links = { SLAVE_A1NOC_CFG, SLAVE_AHB2PHY_EAST,
  360. SLAVE_AHB2PHY_WEST, SLAVE_AOP,
  361. SLAVE_AOSS, SLAVE_CAMERA_CFG,
  362. SLAVE_CLK_CTL, SLAVE_RBCPR_CX_CFG,
  363. SLAVE_RBCPR_MX_CFG, SLAVE_CRYPTO_0_CFG,
  364. SLAVE_CNOC_DDRSS, SLAVE_DISPLAY_CFG,
  365. SLAVE_EMAC_AVB_CFG, SLAVE_GLM,
  366. SLAVE_GFX3D_CFG, SLAVE_IMEM_CFG,
  367. SLAVE_IPA_CFG, SLAVE_CNOC_MNOC_CFG,
  368. SLAVE_PCIE_CFG, SLAVE_PIMEM_CFG,
  369. SLAVE_PRNG, SLAVE_QDSS_CFG,
  370. SLAVE_QSPI, SLAVE_QUP_0,
  371. SLAVE_QUP_1, SLAVE_SDCC_1,
  372. SLAVE_SDCC_2, SLAVE_SNOC_CFG,
  373. SLAVE_SPDM_WRAPPER, SLAVE_TCSR,
  374. SLAVE_TLMM_EAST, SLAVE_TLMM_SOUTH,
  375. SLAVE_TLMM_WEST, SLAVE_UFS_MEM_CFG,
  376. SLAVE_USB2, SLAVE_USB3,
  377. SLAVE_VENUS_CFG, SLAVE_VSENSE_CTRL_CFG,
  378. SLAVE_SERVICE_CNOC },
  379. };
  380. static struct qcom_icc_node xm_qdss_dap = {
  381. .name = "xm_qdss_dap",
  382. .id = MASTER_QDSS_DAP,
  383. .channels = 1,
  384. .buswidth = 8,
  385. .noc_ops = &qcom_qnoc4_ops,
  386. .num_links = 40,
  387. .links = { SLAVE_A1NOC_CFG, SLAVE_AHB2PHY_EAST,
  388. SLAVE_AHB2PHY_WEST, SLAVE_AOP,
  389. SLAVE_AOSS, SLAVE_CAMERA_CFG,
  390. SLAVE_CLK_CTL, SLAVE_RBCPR_CX_CFG,
  391. SLAVE_RBCPR_MX_CFG, SLAVE_CRYPTO_0_CFG,
  392. SLAVE_CNOC_DDRSS, SLAVE_DISPLAY_CFG,
  393. SLAVE_EMAC_AVB_CFG, SLAVE_GLM,
  394. SLAVE_GFX3D_CFG, SLAVE_IMEM_CFG,
  395. SLAVE_IPA_CFG, SLAVE_CNOC_MNOC_CFG,
  396. SLAVE_PCIE_CFG, SLAVE_PIMEM_CFG,
  397. SLAVE_PRNG, SLAVE_QDSS_CFG,
  398. SLAVE_QSPI, SLAVE_QUP_0,
  399. SLAVE_QUP_1, SLAVE_SDCC_1,
  400. SLAVE_SDCC_2, SLAVE_SNOC_CFG,
  401. SLAVE_SPDM_WRAPPER, SLAVE_TCSR,
  402. SLAVE_TLMM_EAST, SLAVE_TLMM_SOUTH,
  403. SLAVE_TLMM_WEST, SLAVE_UFS_MEM_CFG,
  404. SLAVE_USB2, SLAVE_USB3,
  405. SLAVE_VENUS_CFG, SLAVE_VSENSE_CTRL_CFG,
  406. SLAVE_CNOC_A2NOC, SLAVE_SERVICE_CNOC },
  407. };
  408. static struct qcom_icc_node qhm_cnoc = {
  409. .name = "qhm_cnoc",
  410. .id = MASTER_CNOC_DC_NOC,
  411. .channels = 1,
  412. .buswidth = 4,
  413. .noc_ops = &qcom_qnoc4_ops,
  414. .num_links = 2,
  415. .links = { SLAVE_DC_NOC_GEMNOC, SLAVE_LLCC_CFG },
  416. };
  417. static struct qcom_icc_qosbox acm_apps_qos = {
  418. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  419. .num_ports = 2,
  420. .offsets = { 0x2e000, 0x2e100 },
  421. .config = &(struct qos_config) {
  422. .prio = 0,
  423. .urg_fwd = 1,
  424. },
  425. };
  426. static struct qcom_icc_node acm_apps = {
  427. .name = "acm_apps",
  428. .id = MASTER_APPSS_PROC,
  429. .channels = 1,
  430. .buswidth = 16,
  431. .noc_ops = &qcom_qnoc4_ops,
  432. .qosbox = &acm_apps_qos,
  433. .num_links = 3,
  434. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC,
  435. SLAVE_MEM_NOC_PCIE_SNOC },
  436. };
  437. static struct qcom_icc_qosbox acm_gpu_tcu_qos = {
  438. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  439. .num_ports = 1,
  440. .offsets = { 0x36000 },
  441. .config = &(struct qos_config) {
  442. .prio = 6,
  443. .urg_fwd = 0,
  444. },
  445. };
  446. static struct qcom_icc_node acm_gpu_tcu = {
  447. .name = "acm_gpu_tcu",
  448. .id = MASTER_GPU_TCU,
  449. .channels = 1,
  450. .buswidth = 8,
  451. .noc_ops = &qcom_qnoc4_ops,
  452. .qosbox = &acm_gpu_tcu_qos,
  453. .num_links = 2,
  454. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  455. };
  456. static struct qcom_icc_qosbox acm_sys_tcu_qos = {
  457. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  458. .num_ports = 1,
  459. .offsets = { 0x37000 },
  460. .config = &(struct qos_config) {
  461. .prio = 6,
  462. .urg_fwd = 0,
  463. },
  464. };
  465. static struct qcom_icc_node acm_sys_tcu = {
  466. .name = "acm_sys_tcu",
  467. .id = MASTER_SYS_TCU,
  468. .channels = 1,
  469. .buswidth = 8,
  470. .noc_ops = &qcom_qnoc4_ops,
  471. .qosbox = &acm_sys_tcu_qos,
  472. .num_links = 2,
  473. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  474. };
  475. static struct qcom_icc_node qhm_gemnoc_cfg = {
  476. .name = "qhm_gemnoc_cfg",
  477. .id = MASTER_GEM_NOC_CFG,
  478. .channels = 1,
  479. .buswidth = 4,
  480. .noc_ops = &qcom_qnoc4_ops,
  481. .num_links = 2,
  482. .links = { SLAVE_MSS_PROC_MS_MPU_CFG, SLAVE_SERVICE_GEM_NOC },
  483. };
  484. static struct qcom_icc_qosbox qnm_gpu_qos = {
  485. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  486. .num_ports = 2,
  487. .offsets = { 0x34000, 0x34080 },
  488. .config = &(struct qos_config) {
  489. .prio = 0,
  490. .urg_fwd = 1,
  491. },
  492. };
  493. static struct qcom_icc_node qnm_gpu = {
  494. .name = "qnm_gpu",
  495. .id = MASTER_GFX3D,
  496. .channels = 2,
  497. .buswidth = 32,
  498. .noc_ops = &qcom_qnoc4_ops,
  499. .qosbox = &qnm_gpu_qos,
  500. .num_links = 2,
  501. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  502. };
  503. static struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  504. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  505. .num_ports = 1,
  506. .offsets = { 0x2f000 },
  507. .config = &(struct qos_config) {
  508. .prio = 0,
  509. .urg_fwd = 1,
  510. },
  511. };
  512. static struct qcom_icc_node qnm_mnoc_hf = {
  513. .name = "qnm_mnoc_hf",
  514. .id = MASTER_MNOC_HF_MEM_NOC,
  515. .channels = 1,
  516. .buswidth = 32,
  517. .noc_ops = &qcom_qnoc4_ops,
  518. .qosbox = &qnm_mnoc_hf_qos,
  519. .num_links = 1,
  520. .links = { SLAVE_LLCC },
  521. };
  522. static struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  523. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  524. .num_ports = 1,
  525. .offsets = { 0x35000 },
  526. .config = &(struct qos_config) {
  527. .prio = 0,
  528. .urg_fwd = 1,
  529. },
  530. };
  531. static struct qcom_icc_node qnm_mnoc_sf = {
  532. .name = "qnm_mnoc_sf",
  533. .id = MASTER_MNOC_SF_MEM_NOC,
  534. .channels = 1,
  535. .buswidth = 32,
  536. .noc_ops = &qcom_qnoc4_ops,
  537. .qosbox = &qnm_mnoc_sf_qos,
  538. .num_links = 2,
  539. .links = { SLAVE_GEM_NOC_SNOC, SLAVE_LLCC },
  540. };
  541. static struct qcom_icc_qosbox qnm_snoc_gc_qos = {
  542. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  543. .num_ports = 1,
  544. .offsets = { 0x31000 },
  545. .config = &(struct qos_config) {
  546. .prio = 0,
  547. .urg_fwd = 1,
  548. },
  549. };
  550. static struct qcom_icc_node qnm_snoc_gc = {
  551. .name = "qnm_snoc_gc",
  552. .id = MASTER_SNOC_GC_MEM_NOC,
  553. .channels = 1,
  554. .buswidth = 8,
  555. .noc_ops = &qcom_qnoc4_ops,
  556. .qosbox = &qnm_snoc_gc_qos,
  557. .num_links = 1,
  558. .links = { SLAVE_LLCC },
  559. };
  560. static struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  561. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  562. .num_ports = 1,
  563. .offsets = { 0x30000 },
  564. .config = &(struct qos_config) {
  565. .prio = 0,
  566. .urg_fwd = 1,
  567. },
  568. };
  569. static struct qcom_icc_node qnm_snoc_sf = {
  570. .name = "qnm_snoc_sf",
  571. .id = MASTER_SNOC_SF_MEM_NOC,
  572. .channels = 1,
  573. .buswidth = 16,
  574. .noc_ops = &qcom_qnoc4_ops,
  575. .qosbox = &qnm_snoc_sf_qos,
  576. .num_links = 1,
  577. .links = { SLAVE_LLCC },
  578. };
  579. static struct qcom_icc_node ipa_core_master = {
  580. .name = "ipa_core_master",
  581. .id = MASTER_IPA_CORE,
  582. .channels = 1,
  583. .buswidth = 8,
  584. .noc_ops = &qcom_qnoc4_ops,
  585. .num_links = 1,
  586. .links = { SLAVE_IPA_CORE },
  587. };
  588. static struct qcom_icc_node llcc_mc = {
  589. .name = "llcc_mc",
  590. .id = MASTER_LLCC,
  591. .channels = 2,
  592. .buswidth = 4,
  593. .noc_ops = &qcom_qnoc4_ops,
  594. .num_links = 1,
  595. .links = { SLAVE_EBI1 },
  596. };
  597. static struct qcom_icc_node qhm_mnoc_cfg = {
  598. .name = "qhm_mnoc_cfg",
  599. .id = MASTER_CNOC_MNOC_CFG,
  600. .channels = 1,
  601. .buswidth = 4,
  602. .noc_ops = &qcom_qnoc4_ops,
  603. .num_links = 1,
  604. .links = { SLAVE_SERVICE_MNOC },
  605. };
  606. static struct qcom_icc_qosbox qxm_camnoc_hf0_qos = {
  607. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  608. .num_ports = 1,
  609. .offsets = { 0xa000 },
  610. .config = &(struct qos_config) {
  611. .prio = 0,
  612. .urg_fwd = 1,
  613. },
  614. };
  615. static struct qcom_icc_node qxm_camnoc_hf0 = {
  616. .name = "qxm_camnoc_hf0",
  617. .id = MASTER_CAMNOC_HF0,
  618. .channels = 1,
  619. .buswidth = 32,
  620. .noc_ops = &qcom_qnoc4_ops,
  621. .qosbox = &qxm_camnoc_hf0_qos,
  622. .num_links = 1,
  623. .links = { SLAVE_MNOC_HF_MEM_NOC },
  624. };
  625. static struct qcom_icc_qosbox qxm_camnoc_hf1_qos = {
  626. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  627. .num_ports = 1,
  628. .offsets = { 0xb000 },
  629. .config = &(struct qos_config) {
  630. .prio = 0,
  631. .urg_fwd = 1,
  632. },
  633. };
  634. static struct qcom_icc_node qxm_camnoc_hf1 = {
  635. .name = "qxm_camnoc_hf1",
  636. .id = MASTER_CAMNOC_HF1,
  637. .channels = 1,
  638. .buswidth = 32,
  639. .noc_ops = &qcom_qnoc4_ops,
  640. .qosbox = &qxm_camnoc_hf1_qos,
  641. .num_links = 1,
  642. .links = { SLAVE_MNOC_HF_MEM_NOC },
  643. };
  644. static struct qcom_icc_qosbox qxm_camnoc_sf_qos = {
  645. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  646. .num_ports = 1,
  647. .offsets = { 0x9000 },
  648. .config = &(struct qos_config) {
  649. .prio = 0,
  650. .urg_fwd = 1,
  651. },
  652. };
  653. static struct qcom_icc_node qxm_camnoc_sf = {
  654. .name = "qxm_camnoc_sf",
  655. .id = MASTER_CAMNOC_SF,
  656. .channels = 1,
  657. .buswidth = 32,
  658. .noc_ops = &qcom_qnoc4_ops,
  659. .qosbox = &qxm_camnoc_sf_qos,
  660. .num_links = 1,
  661. .links = { SLAVE_MNOC_SF_MEM_NOC },
  662. };
  663. static struct qcom_icc_qosbox qxm_mdp0_qos = {
  664. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  665. .num_ports = 1,
  666. .offsets = { 0xc000 },
  667. .config = &(struct qos_config) {
  668. .prio = 0,
  669. .urg_fwd = 1,
  670. },
  671. };
  672. static struct qcom_icc_node qxm_mdp0 = {
  673. .name = "qxm_mdp0",
  674. .id = MASTER_MDP0,
  675. .channels = 1,
  676. .buswidth = 32,
  677. .noc_ops = &qcom_qnoc4_ops,
  678. .qosbox = &qxm_mdp0_qos,
  679. .num_links = 1,
  680. .links = { SLAVE_MNOC_HF_MEM_NOC },
  681. };
  682. static struct qcom_icc_qosbox qxm_rot_qos = {
  683. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  684. .num_ports = 1,
  685. .offsets = { 0xe000 },
  686. .config = &(struct qos_config) {
  687. .prio = 0,
  688. .urg_fwd = 1,
  689. },
  690. };
  691. static struct qcom_icc_node qxm_rot = {
  692. .name = "qxm_rot",
  693. .id = MASTER_ROTATOR,
  694. .channels = 1,
  695. .buswidth = 32,
  696. .noc_ops = &qcom_qnoc4_ops,
  697. .qosbox = &qxm_rot_qos,
  698. .num_links = 1,
  699. .links = { SLAVE_MNOC_SF_MEM_NOC },
  700. };
  701. static struct qcom_icc_qosbox qxm_venus0_qos = {
  702. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  703. .num_ports = 1,
  704. .offsets = { 0xf000 },
  705. .config = &(struct qos_config) {
  706. .prio = 0,
  707. .urg_fwd = 1,
  708. },
  709. };
  710. static struct qcom_icc_node qxm_venus0 = {
  711. .name = "qxm_venus0",
  712. .id = MASTER_VIDEO_P0,
  713. .channels = 1,
  714. .buswidth = 32,
  715. .noc_ops = &qcom_qnoc4_ops,
  716. .qosbox = &qxm_venus0_qos,
  717. .num_links = 1,
  718. .links = { SLAVE_MNOC_SF_MEM_NOC },
  719. };
  720. static struct qcom_icc_qosbox qxm_venus_arm9_qos = {
  721. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  722. .num_ports = 1,
  723. .offsets = { 0x11000 },
  724. .config = &(struct qos_config) {
  725. .prio = 0,
  726. .urg_fwd = 1,
  727. },
  728. };
  729. static struct qcom_icc_node qxm_venus_arm9 = {
  730. .name = "qxm_venus_arm9",
  731. .id = MASTER_VIDEO_PROC,
  732. .channels = 1,
  733. .buswidth = 8,
  734. .noc_ops = &qcom_qnoc4_ops,
  735. .qosbox = &qxm_venus_arm9_qos,
  736. .num_links = 1,
  737. .links = { SLAVE_MNOC_SF_MEM_NOC },
  738. };
  739. static struct qcom_icc_node qhm_snoc_cfg = {
  740. .name = "qhm_snoc_cfg",
  741. .id = MASTER_SNOC_CFG,
  742. .channels = 1,
  743. .buswidth = 4,
  744. .noc_ops = &qcom_qnoc4_ops,
  745. .num_links = 1,
  746. .links = { SLAVE_SERVICE_SNOC },
  747. };
  748. static struct qcom_icc_node qnm_aggre1_noc = {
  749. .name = "qnm_aggre1_noc",
  750. .id = MASTER_A1NOC_SNOC,
  751. .channels = 1,
  752. .buswidth = 16,
  753. .noc_ops = &qcom_qnoc4_ops,
  754. .num_links = 8,
  755. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  756. SLAVE_SNOC_GEM_NOC_SF, SLAVE_IMEM,
  757. SLAVE_PIMEM, SLAVE_PCIE_0,
  758. SLAVE_QDSS_STM, SLAVE_TCU },
  759. };
  760. static struct qcom_icc_node qnm_gemnoc = {
  761. .name = "qnm_gemnoc",
  762. .id = MASTER_GEM_NOC_SNOC,
  763. .channels = 1,
  764. .buswidth = 8,
  765. .noc_ops = &qcom_qnoc4_ops,
  766. .num_links = 6,
  767. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  768. SLAVE_IMEM, SLAVE_PIMEM,
  769. SLAVE_QDSS_STM, SLAVE_TCU },
  770. };
  771. static struct qcom_icc_node qnm_gemnoc_pcie = {
  772. .name = "qnm_gemnoc_pcie",
  773. .id = MASTER_GEM_NOC_PCIE_SNOC,
  774. .channels = 1,
  775. .buswidth = 8,
  776. .noc_ops = &qcom_qnoc4_ops,
  777. .num_links = 1,
  778. .links = { SLAVE_PCIE_0 },
  779. };
  780. static struct qcom_icc_node qnm_lpass_anoc = {
  781. .name = "qnm_lpass_anoc",
  782. .id = MASTER_LPASS_ANOC,
  783. .channels = 1,
  784. .buswidth = 8,
  785. .noc_ops = &qcom_qnoc4_ops,
  786. .num_links = 7,
  787. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  788. SLAVE_SNOC_GEM_NOC_SF, SLAVE_IMEM,
  789. SLAVE_PIMEM, SLAVE_PCIE_0,
  790. SLAVE_QDSS_STM },
  791. };
  792. static struct qcom_icc_node qnm_pcie_anoc = {
  793. .name = "qnm_pcie_anoc",
  794. .id = MASTER_ANOC_PCIE_SNOC,
  795. .channels = 1,
  796. .buswidth = 8,
  797. .noc_ops = &qcom_qnoc4_ops,
  798. .num_links = 5,
  799. .links = { SLAVE_APPSS, SLAVE_SNOC_CNOC,
  800. SLAVE_SNOC_GEM_NOC_SF, SLAVE_IMEM,
  801. SLAVE_QDSS_STM },
  802. };
  803. static struct qcom_icc_qosbox qxm_pimem_qos = {
  804. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  805. .num_ports = 1,
  806. .offsets = { 0xc000 },
  807. .config = &(struct qos_config) {
  808. .prio = 2,
  809. .urg_fwd = 1,
  810. },
  811. };
  812. static struct qcom_icc_node qxm_pimem = {
  813. .name = "qxm_pimem",
  814. .id = MASTER_PIMEM,
  815. .channels = 1,
  816. .buswidth = 8,
  817. .noc_ops = &qcom_qnoc4_ops,
  818. .qosbox = &qxm_pimem_qos,
  819. .num_links = 2,
  820. .links = { SLAVE_SNOC_MEM_NOC_GC, SLAVE_IMEM },
  821. };
  822. static struct qcom_icc_qosbox xm_gic_qos = {
  823. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  824. .num_ports = 1,
  825. .offsets = { 0xd000 },
  826. .config = &(struct qos_config) {
  827. .prio = 2,
  828. .urg_fwd = 1,
  829. },
  830. };
  831. static struct qcom_icc_node xm_gic = {
  832. .name = "xm_gic",
  833. .id = MASTER_GIC,
  834. .channels = 1,
  835. .buswidth = 8,
  836. .noc_ops = &qcom_qnoc4_ops,
  837. .qosbox = &xm_gic_qos,
  838. .num_links = 2,
  839. .links = { SLAVE_SNOC_MEM_NOC_GC, SLAVE_IMEM },
  840. };
  841. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  842. .name = "qnm_mnoc_hf_disp",
  843. .id = MASTER_MNOC_HF_MEM_NOC_DISP,
  844. .channels = 1,
  845. .buswidth = 32,
  846. .noc_ops = &qcom_qnoc4_ops,
  847. .num_links = 1,
  848. .links = { SLAVE_LLCC_DISP },
  849. };
  850. static struct qcom_icc_node qnm_mnoc_sf_disp = {
  851. .name = "qnm_mnoc_sf_disp",
  852. .id = MASTER_MNOC_SF_MEM_NOC_DISP,
  853. .channels = 1,
  854. .buswidth = 32,
  855. .noc_ops = &qcom_qnoc4_ops,
  856. .num_links = 1,
  857. .links = { SLAVE_LLCC_DISP },
  858. };
  859. static struct qcom_icc_node llcc_mc_disp = {
  860. .name = "llcc_mc_disp",
  861. .id = MASTER_LLCC_DISP,
  862. .channels = 2,
  863. .buswidth = 4,
  864. .noc_ops = &qcom_qnoc4_ops,
  865. .num_links = 1,
  866. .links = { SLAVE_EBI1_DISP },
  867. };
  868. static struct qcom_icc_node qxm_mdp0_disp = {
  869. .name = "qxm_mdp0_disp",
  870. .id = MASTER_MDP0_DISP,
  871. .channels = 1,
  872. .buswidth = 32,
  873. .noc_ops = &qcom_qnoc4_ops,
  874. .num_links = 1,
  875. .links = { SLAVE_MNOC_HF_MEM_NOC_DISP },
  876. };
  877. static struct qcom_icc_node qxm_rot_disp = {
  878. .name = "qxm_rot_disp",
  879. .id = MASTER_ROTATOR_DISP,
  880. .channels = 1,
  881. .buswidth = 32,
  882. .noc_ops = &qcom_qnoc4_ops,
  883. .num_links = 1,
  884. .links = { SLAVE_MNOC_SF_MEM_NOC_DISP },
  885. };
  886. static struct qcom_icc_node qns_a1noc_snoc = {
  887. .name = "qns_a1noc_snoc",
  888. .id = SLAVE_A1NOC_SNOC,
  889. .channels = 1,
  890. .buswidth = 16,
  891. .noc_ops = &qcom_qnoc4_ops,
  892. .num_links = 1,
  893. .links = { MASTER_A1NOC_SNOC },
  894. };
  895. static struct qcom_icc_node qns_lpass_snoc = {
  896. .name = "qns_lpass_snoc",
  897. .id = SLAVE_LPASS_SNOC,
  898. .channels = 1,
  899. .buswidth = 8,
  900. .noc_ops = &qcom_qnoc4_ops,
  901. .num_links = 1,
  902. .links = { MASTER_LPASS_ANOC },
  903. };
  904. static struct qcom_icc_node qns_pcie_snoc = {
  905. .name = "qns_pcie_snoc",
  906. .id = SLAVE_ANOC_PCIE_SNOC,
  907. .channels = 1,
  908. .buswidth = 8,
  909. .noc_ops = &qcom_qnoc4_ops,
  910. .num_links = 1,
  911. .links = { MASTER_ANOC_PCIE_SNOC },
  912. };
  913. static struct qcom_icc_node srvc_aggre2_noc = {
  914. .name = "srvc_aggre2_noc",
  915. .id = SLAVE_SERVICE_A2NOC,
  916. .channels = 1,
  917. .buswidth = 4,
  918. .noc_ops = &qcom_qnoc4_ops,
  919. .num_links = 0,
  920. };
  921. static struct qcom_icc_node qns_camnoc_uncomp = {
  922. .name = "qns_camnoc_uncomp",
  923. .id = SLAVE_CAMNOC_UNCOMP,
  924. .channels = 1,
  925. .buswidth = 32,
  926. .noc_ops = &qcom_qnoc4_ops,
  927. .num_links = 0,
  928. };
  929. static struct qcom_icc_node qhs_a1_noc_cfg = {
  930. .name = "qhs_a1_noc_cfg",
  931. .id = SLAVE_A1NOC_CFG,
  932. .channels = 1,
  933. .buswidth = 4,
  934. .noc_ops = &qcom_qnoc4_ops,
  935. .num_links = 1,
  936. .links = { MASTER_A1NOC_CFG },
  937. };
  938. static struct qcom_icc_node qhs_ahb2phy_east = {
  939. .name = "qhs_ahb2phy_east",
  940. .id = SLAVE_AHB2PHY_EAST,
  941. .channels = 1,
  942. .buswidth = 4,
  943. .noc_ops = &qcom_qnoc4_ops,
  944. .num_links = 0,
  945. };
  946. static struct qcom_icc_node qhs_ahb2phy_west = {
  947. .name = "qhs_ahb2phy_west",
  948. .id = SLAVE_AHB2PHY_WEST,
  949. .channels = 1,
  950. .buswidth = 4,
  951. .noc_ops = &qcom_qnoc4_ops,
  952. .num_links = 0,
  953. };
  954. static struct qcom_icc_node qhs_aop = {
  955. .name = "qhs_aop",
  956. .id = SLAVE_AOP,
  957. .channels = 1,
  958. .buswidth = 4,
  959. .noc_ops = &qcom_qnoc4_ops,
  960. .num_links = 0,
  961. };
  962. static struct qcom_icc_node qhs_aoss = {
  963. .name = "qhs_aoss",
  964. .id = SLAVE_AOSS,
  965. .channels = 1,
  966. .buswidth = 4,
  967. .noc_ops = &qcom_qnoc4_ops,
  968. .num_links = 0,
  969. };
  970. static struct qcom_icc_node qhs_camera_cfg = {
  971. .name = "qhs_camera_cfg",
  972. .id = SLAVE_CAMERA_CFG,
  973. .channels = 1,
  974. .buswidth = 4,
  975. .noc_ops = &qcom_qnoc4_ops,
  976. .num_links = 0,
  977. };
  978. static struct qcom_icc_node qhs_clk_ctl = {
  979. .name = "qhs_clk_ctl",
  980. .id = SLAVE_CLK_CTL,
  981. .channels = 1,
  982. .buswidth = 4,
  983. .noc_ops = &qcom_qnoc4_ops,
  984. .num_links = 0,
  985. };
  986. static struct qcom_icc_node qhs_cpr_cx = {
  987. .name = "qhs_cpr_cx",
  988. .id = SLAVE_RBCPR_CX_CFG,
  989. .channels = 1,
  990. .buswidth = 4,
  991. .noc_ops = &qcom_qnoc4_ops,
  992. .num_links = 0,
  993. };
  994. static struct qcom_icc_node qhs_cpr_mx = {
  995. .name = "qhs_cpr_mx",
  996. .id = SLAVE_RBCPR_MX_CFG,
  997. .channels = 1,
  998. .buswidth = 4,
  999. .noc_ops = &qcom_qnoc4_ops,
  1000. .num_links = 0,
  1001. };
  1002. static struct qcom_icc_node qhs_crypto0_cfg = {
  1003. .name = "qhs_crypto0_cfg",
  1004. .id = SLAVE_CRYPTO_0_CFG,
  1005. .channels = 1,
  1006. .buswidth = 4,
  1007. .noc_ops = &qcom_qnoc4_ops,
  1008. .num_links = 0,
  1009. };
  1010. static struct qcom_icc_node qhs_ddrss_cfg = {
  1011. .name = "qhs_ddrss_cfg",
  1012. .id = SLAVE_CNOC_DDRSS,
  1013. .channels = 1,
  1014. .buswidth = 4,
  1015. .noc_ops = &qcom_qnoc4_ops,
  1016. .num_links = 1,
  1017. .links = { MASTER_CNOC_DC_NOC },
  1018. };
  1019. static struct qcom_icc_node qhs_display_cfg = {
  1020. .name = "qhs_display_cfg",
  1021. .id = SLAVE_DISPLAY_CFG,
  1022. .channels = 1,
  1023. .buswidth = 4,
  1024. .noc_ops = &qcom_qnoc4_ops,
  1025. .num_links = 0,
  1026. };
  1027. static struct qcom_icc_node qhs_emac_avb_cfg = {
  1028. .name = "qhs_emac_avb_cfg",
  1029. .id = SLAVE_EMAC_AVB_CFG,
  1030. .channels = 1,
  1031. .buswidth = 4,
  1032. .noc_ops = &qcom_qnoc4_ops,
  1033. .num_links = 0,
  1034. };
  1035. static struct qcom_icc_node qhs_glm = {
  1036. .name = "qhs_glm",
  1037. .id = SLAVE_GLM,
  1038. .channels = 1,
  1039. .buswidth = 4,
  1040. .noc_ops = &qcom_qnoc4_ops,
  1041. .num_links = 0,
  1042. };
  1043. static struct qcom_icc_node qhs_gpuss_cfg = {
  1044. .name = "qhs_gpuss_cfg",
  1045. .id = SLAVE_GFX3D_CFG,
  1046. .channels = 1,
  1047. .buswidth = 8,
  1048. .noc_ops = &qcom_qnoc4_ops,
  1049. .num_links = 0,
  1050. };
  1051. static struct qcom_icc_node qhs_imem_cfg = {
  1052. .name = "qhs_imem_cfg",
  1053. .id = SLAVE_IMEM_CFG,
  1054. .channels = 1,
  1055. .buswidth = 4,
  1056. .noc_ops = &qcom_qnoc4_ops,
  1057. .num_links = 0,
  1058. };
  1059. static struct qcom_icc_node qhs_ipa = {
  1060. .name = "qhs_ipa",
  1061. .id = SLAVE_IPA_CFG,
  1062. .channels = 1,
  1063. .buswidth = 4,
  1064. .noc_ops = &qcom_qnoc4_ops,
  1065. .num_links = 0,
  1066. };
  1067. static struct qcom_icc_node qhs_mnoc_cfg = {
  1068. .name = "qhs_mnoc_cfg",
  1069. .id = SLAVE_CNOC_MNOC_CFG,
  1070. .channels = 1,
  1071. .buswidth = 4,
  1072. .noc_ops = &qcom_qnoc4_ops,
  1073. .num_links = 1,
  1074. .links = { MASTER_CNOC_MNOC_CFG },
  1075. };
  1076. static struct qcom_icc_node qhs_pcie_config = {
  1077. .name = "qhs_pcie_config",
  1078. .id = SLAVE_PCIE_CFG,
  1079. .channels = 1,
  1080. .buswidth = 4,
  1081. .noc_ops = &qcom_qnoc4_ops,
  1082. .num_links = 0,
  1083. };
  1084. static struct qcom_icc_node qhs_pimem_cfg = {
  1085. .name = "qhs_pimem_cfg",
  1086. .id = SLAVE_PIMEM_CFG,
  1087. .channels = 1,
  1088. .buswidth = 4,
  1089. .noc_ops = &qcom_qnoc4_ops,
  1090. .num_links = 0,
  1091. };
  1092. static struct qcom_icc_node qhs_prng = {
  1093. .name = "qhs_prng",
  1094. .id = SLAVE_PRNG,
  1095. .channels = 1,
  1096. .buswidth = 4,
  1097. .noc_ops = &qcom_qnoc4_ops,
  1098. .num_links = 0,
  1099. };
  1100. static struct qcom_icc_node qhs_qdss_cfg = {
  1101. .name = "qhs_qdss_cfg",
  1102. .id = SLAVE_QDSS_CFG,
  1103. .channels = 1,
  1104. .buswidth = 4,
  1105. .noc_ops = &qcom_qnoc4_ops,
  1106. .num_links = 0,
  1107. };
  1108. static struct qcom_icc_node qhs_qspi = {
  1109. .name = "qhs_qspi",
  1110. .id = SLAVE_QSPI,
  1111. .channels = 1,
  1112. .buswidth = 4,
  1113. .noc_ops = &qcom_qnoc4_ops,
  1114. .num_links = 0,
  1115. };
  1116. static struct qcom_icc_node qhs_qup0 = {
  1117. .name = "qhs_qup0",
  1118. .id = SLAVE_QUP_0,
  1119. .channels = 1,
  1120. .buswidth = 4,
  1121. .noc_ops = &qcom_qnoc4_ops,
  1122. .num_links = 0,
  1123. };
  1124. static struct qcom_icc_node qhs_qup1 = {
  1125. .name = "qhs_qup1",
  1126. .id = SLAVE_QUP_1,
  1127. .channels = 1,
  1128. .buswidth = 4,
  1129. .noc_ops = &qcom_qnoc4_ops,
  1130. .num_links = 0,
  1131. };
  1132. static struct qcom_icc_node qhs_sdc1 = {
  1133. .name = "qhs_sdc1",
  1134. .id = SLAVE_SDCC_1,
  1135. .channels = 1,
  1136. .buswidth = 4,
  1137. .noc_ops = &qcom_qnoc4_ops,
  1138. .num_links = 0,
  1139. };
  1140. static struct qcom_icc_node qhs_sdc2 = {
  1141. .name = "qhs_sdc2",
  1142. .id = SLAVE_SDCC_2,
  1143. .channels = 1,
  1144. .buswidth = 4,
  1145. .noc_ops = &qcom_qnoc4_ops,
  1146. .num_links = 0,
  1147. };
  1148. static struct qcom_icc_node qhs_snoc_cfg = {
  1149. .name = "qhs_snoc_cfg",
  1150. .id = SLAVE_SNOC_CFG,
  1151. .channels = 1,
  1152. .buswidth = 4,
  1153. .noc_ops = &qcom_qnoc4_ops,
  1154. .num_links = 1,
  1155. .links = { MASTER_SNOC_CFG },
  1156. };
  1157. static struct qcom_icc_node qhs_spdm = {
  1158. .name = "qhs_spdm",
  1159. .id = SLAVE_SPDM_WRAPPER,
  1160. .channels = 1,
  1161. .buswidth = 4,
  1162. .noc_ops = &qcom_qnoc4_ops,
  1163. .num_links = 0,
  1164. };
  1165. static struct qcom_icc_node qhs_tcsr = {
  1166. .name = "qhs_tcsr",
  1167. .id = SLAVE_TCSR,
  1168. .channels = 1,
  1169. .buswidth = 4,
  1170. .noc_ops = &qcom_qnoc4_ops,
  1171. .num_links = 0,
  1172. };
  1173. static struct qcom_icc_node qhs_tlmm_east = {
  1174. .name = "qhs_tlmm_east",
  1175. .id = SLAVE_TLMM_EAST,
  1176. .channels = 1,
  1177. .buswidth = 4,
  1178. .noc_ops = &qcom_qnoc4_ops,
  1179. .num_links = 0,
  1180. };
  1181. static struct qcom_icc_node qhs_tlmm_south = {
  1182. .name = "qhs_tlmm_south",
  1183. .id = SLAVE_TLMM_SOUTH,
  1184. .channels = 1,
  1185. .buswidth = 4,
  1186. .noc_ops = &qcom_qnoc4_ops,
  1187. .num_links = 0,
  1188. };
  1189. static struct qcom_icc_node qhs_tlmm_west = {
  1190. .name = "qhs_tlmm_west",
  1191. .id = SLAVE_TLMM_WEST,
  1192. .channels = 1,
  1193. .buswidth = 4,
  1194. .noc_ops = &qcom_qnoc4_ops,
  1195. .num_links = 0,
  1196. };
  1197. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1198. .name = "qhs_ufs_mem_cfg",
  1199. .id = SLAVE_UFS_MEM_CFG,
  1200. .channels = 1,
  1201. .buswidth = 4,
  1202. .noc_ops = &qcom_qnoc4_ops,
  1203. .num_links = 0,
  1204. };
  1205. static struct qcom_icc_node qhs_usb2 = {
  1206. .name = "qhs_usb2",
  1207. .id = SLAVE_USB2,
  1208. .channels = 1,
  1209. .buswidth = 4,
  1210. .noc_ops = &qcom_qnoc4_ops,
  1211. .num_links = 0,
  1212. };
  1213. static struct qcom_icc_node qhs_usb3 = {
  1214. .name = "qhs_usb3",
  1215. .id = SLAVE_USB3,
  1216. .channels = 1,
  1217. .buswidth = 4,
  1218. .noc_ops = &qcom_qnoc4_ops,
  1219. .num_links = 0,
  1220. };
  1221. static struct qcom_icc_node qhs_venus_cfg = {
  1222. .name = "qhs_venus_cfg",
  1223. .id = SLAVE_VENUS_CFG,
  1224. .channels = 1,
  1225. .buswidth = 4,
  1226. .noc_ops = &qcom_qnoc4_ops,
  1227. .num_links = 0,
  1228. };
  1229. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1230. .name = "qhs_vsense_ctrl_cfg",
  1231. .id = SLAVE_VSENSE_CTRL_CFG,
  1232. .channels = 1,
  1233. .buswidth = 4,
  1234. .noc_ops = &qcom_qnoc4_ops,
  1235. .num_links = 0,
  1236. };
  1237. static struct qcom_icc_node qns_cnoc_a2noc = {
  1238. .name = "qns_cnoc_a2noc",
  1239. .id = SLAVE_CNOC_A2NOC,
  1240. .channels = 1,
  1241. .buswidth = 8,
  1242. .noc_ops = &qcom_qnoc4_ops,
  1243. .num_links = 1,
  1244. .links = { MASTER_CNOC_A2NOC },
  1245. };
  1246. static struct qcom_icc_node srvc_cnoc = {
  1247. .name = "srvc_cnoc",
  1248. .id = SLAVE_SERVICE_CNOC,
  1249. .channels = 1,
  1250. .buswidth = 4,
  1251. .noc_ops = &qcom_qnoc4_ops,
  1252. .num_links = 0,
  1253. };
  1254. static struct qcom_icc_node qhs_dc_noc_gemnoc = {
  1255. .name = "qhs_dc_noc_gemnoc",
  1256. .id = SLAVE_DC_NOC_GEMNOC,
  1257. .channels = 1,
  1258. .buswidth = 4,
  1259. .noc_ops = &qcom_qnoc4_ops,
  1260. .num_links = 1,
  1261. .links = { MASTER_GEM_NOC_CFG },
  1262. };
  1263. static struct qcom_icc_node qhs_llcc = {
  1264. .name = "qhs_llcc",
  1265. .id = SLAVE_LLCC_CFG,
  1266. .channels = 1,
  1267. .buswidth = 4,
  1268. .noc_ops = &qcom_qnoc4_ops,
  1269. .num_links = 0,
  1270. };
  1271. static struct qcom_icc_node qhs_mdsp_ms_mpu_cfg = {
  1272. .name = "qhs_mdsp_ms_mpu_cfg",
  1273. .id = SLAVE_MSS_PROC_MS_MPU_CFG,
  1274. .channels = 1,
  1275. .buswidth = 4,
  1276. .noc_ops = &qcom_qnoc4_ops,
  1277. .num_links = 0,
  1278. };
  1279. static struct qcom_icc_node qns_gem_noc_snoc = {
  1280. .name = "qns_gem_noc_snoc",
  1281. .id = SLAVE_GEM_NOC_SNOC,
  1282. .channels = 1,
  1283. .buswidth = 8,
  1284. .noc_ops = &qcom_qnoc4_ops,
  1285. .num_links = 1,
  1286. .links = { MASTER_GEM_NOC_SNOC },
  1287. };
  1288. static struct qcom_icc_node qns_llcc = {
  1289. .name = "qns_llcc",
  1290. .id = SLAVE_LLCC,
  1291. .channels = 1,
  1292. .buswidth = 16,
  1293. .noc_ops = &qcom_qnoc4_ops,
  1294. .num_links = 1,
  1295. .links = { MASTER_LLCC },
  1296. };
  1297. static struct qcom_icc_node qns_sys_pcie = {
  1298. .name = "qns_sys_pcie",
  1299. .id = SLAVE_MEM_NOC_PCIE_SNOC,
  1300. .channels = 1,
  1301. .buswidth = 8,
  1302. .noc_ops = &qcom_qnoc4_ops,
  1303. .num_links = 1,
  1304. .links = { MASTER_GEM_NOC_PCIE_SNOC },
  1305. };
  1306. static struct qcom_icc_node srvc_gemnoc = {
  1307. .name = "srvc_gemnoc",
  1308. .id = SLAVE_SERVICE_GEM_NOC,
  1309. .channels = 1,
  1310. .buswidth = 4,
  1311. .noc_ops = &qcom_qnoc4_ops,
  1312. .num_links = 0,
  1313. };
  1314. static struct qcom_icc_node ipa_core_slave = {
  1315. .name = "ipa_core_slave",
  1316. .id = SLAVE_IPA_CORE,
  1317. .channels = 1,
  1318. .buswidth = 8,
  1319. .noc_ops = &qcom_qnoc4_ops,
  1320. .num_links = 0,
  1321. };
  1322. static struct qcom_icc_node ebi = {
  1323. .name = "ebi",
  1324. .id = SLAVE_EBI1,
  1325. .channels = 2,
  1326. .buswidth = 4,
  1327. .noc_ops = &qcom_qnoc4_ops,
  1328. .num_links = 0,
  1329. };
  1330. static struct qcom_icc_node qns2_mem_noc = {
  1331. .name = "qns2_mem_noc",
  1332. .id = SLAVE_MNOC_SF_MEM_NOC,
  1333. .channels = 1,
  1334. .buswidth = 32,
  1335. .noc_ops = &qcom_qnoc4_ops,
  1336. .num_links = 1,
  1337. .links = { MASTER_MNOC_SF_MEM_NOC },
  1338. };
  1339. static struct qcom_icc_node qns_mem_noc_hf = {
  1340. .name = "qns_mem_noc_hf",
  1341. .id = SLAVE_MNOC_HF_MEM_NOC,
  1342. .channels = 1,
  1343. .buswidth = 32,
  1344. .noc_ops = &qcom_qnoc4_ops,
  1345. .num_links = 1,
  1346. .links = { MASTER_MNOC_HF_MEM_NOC },
  1347. };
  1348. static struct qcom_icc_node srvc_mnoc = {
  1349. .name = "srvc_mnoc",
  1350. .id = SLAVE_SERVICE_MNOC,
  1351. .channels = 1,
  1352. .buswidth = 4,
  1353. .noc_ops = &qcom_qnoc4_ops,
  1354. .num_links = 0,
  1355. };
  1356. static struct qcom_icc_node qhs_apss = {
  1357. .name = "qhs_apss",
  1358. .id = SLAVE_APPSS,
  1359. .channels = 1,
  1360. .buswidth = 8,
  1361. .noc_ops = &qcom_qnoc4_ops,
  1362. .num_links = 0,
  1363. };
  1364. static struct qcom_icc_node qns_cnoc = {
  1365. .name = "qns_cnoc",
  1366. .id = SLAVE_SNOC_CNOC,
  1367. .channels = 1,
  1368. .buswidth = 8,
  1369. .noc_ops = &qcom_qnoc4_ops,
  1370. .num_links = 1,
  1371. .links = { MASTER_SNOC_CNOC },
  1372. };
  1373. static struct qcom_icc_node qns_gemnoc_sf = {
  1374. .name = "qns_gemnoc_sf",
  1375. .id = SLAVE_SNOC_GEM_NOC_SF,
  1376. .channels = 1,
  1377. .buswidth = 16,
  1378. .noc_ops = &qcom_qnoc4_ops,
  1379. .num_links = 1,
  1380. .links = { MASTER_SNOC_SF_MEM_NOC },
  1381. };
  1382. static struct qcom_icc_node qns_memnoc_gc = {
  1383. .name = "qns_memnoc_gc",
  1384. .id = SLAVE_SNOC_MEM_NOC_GC,
  1385. .channels = 1,
  1386. .buswidth = 8,
  1387. .noc_ops = &qcom_qnoc4_ops,
  1388. .num_links = 1,
  1389. .links = { MASTER_SNOC_GC_MEM_NOC },
  1390. };
  1391. static struct qcom_icc_node qxs_imem = {
  1392. .name = "qxs_imem",
  1393. .id = SLAVE_IMEM,
  1394. .channels = 1,
  1395. .buswidth = 8,
  1396. .noc_ops = &qcom_qnoc4_ops,
  1397. .num_links = 0,
  1398. };
  1399. static struct qcom_icc_node qxs_pimem = {
  1400. .name = "qxs_pimem",
  1401. .id = SLAVE_PIMEM,
  1402. .channels = 1,
  1403. .buswidth = 8,
  1404. .noc_ops = &qcom_qnoc4_ops,
  1405. .num_links = 0,
  1406. };
  1407. static struct qcom_icc_node srvc_snoc = {
  1408. .name = "srvc_snoc",
  1409. .id = SLAVE_SERVICE_SNOC,
  1410. .channels = 1,
  1411. .buswidth = 4,
  1412. .noc_ops = &qcom_qnoc4_ops,
  1413. .num_links = 0,
  1414. };
  1415. static struct qcom_icc_node xs_pcie = {
  1416. .name = "xs_pcie",
  1417. .id = SLAVE_PCIE_0,
  1418. .channels = 1,
  1419. .buswidth = 8,
  1420. .noc_ops = &qcom_qnoc4_ops,
  1421. .num_links = 0,
  1422. };
  1423. static struct qcom_icc_node xs_qdss_stm = {
  1424. .name = "xs_qdss_stm",
  1425. .id = SLAVE_QDSS_STM,
  1426. .channels = 1,
  1427. .buswidth = 4,
  1428. .noc_ops = &qcom_qnoc4_ops,
  1429. .num_links = 0,
  1430. };
  1431. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1432. .name = "xs_sys_tcu_cfg",
  1433. .id = SLAVE_TCU,
  1434. .channels = 1,
  1435. .buswidth = 8,
  1436. .noc_ops = &qcom_qnoc4_ops,
  1437. .num_links = 0,
  1438. };
  1439. static struct qcom_icc_node qns_llcc_disp = {
  1440. .name = "qns_llcc_disp",
  1441. .id = SLAVE_LLCC_DISP,
  1442. .channels = 1,
  1443. .buswidth = 16,
  1444. .noc_ops = &qcom_qnoc4_ops,
  1445. .num_links = 1,
  1446. .links = { MASTER_LLCC_DISP },
  1447. };
  1448. static struct qcom_icc_node ebi_disp = {
  1449. .name = "ebi_disp",
  1450. .id = SLAVE_EBI1_DISP,
  1451. .channels = 2,
  1452. .buswidth = 4,
  1453. .noc_ops = &qcom_qnoc4_ops,
  1454. .num_links = 0,
  1455. };
  1456. static struct qcom_icc_node qns2_mem_noc_disp = {
  1457. .name = "qns2_mem_noc_disp",
  1458. .id = SLAVE_MNOC_SF_MEM_NOC_DISP,
  1459. .channels = 1,
  1460. .buswidth = 32,
  1461. .noc_ops = &qcom_qnoc4_ops,
  1462. .num_links = 1,
  1463. .links = { MASTER_MNOC_SF_MEM_NOC_DISP },
  1464. };
  1465. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1466. .name = "qns_mem_noc_hf_disp",
  1467. .id = SLAVE_MNOC_HF_MEM_NOC_DISP,
  1468. .channels = 1,
  1469. .buswidth = 32,
  1470. .noc_ops = &qcom_qnoc4_ops,
  1471. .num_links = 1,
  1472. .links = { MASTER_MNOC_HF_MEM_NOC_DISP },
  1473. };
  1474. static struct qcom_icc_bcm bcm_acv = {
  1475. .name = "ACV",
  1476. .voter_idx = 0,
  1477. .num_nodes = 1,
  1478. .nodes = { &ebi },
  1479. };
  1480. static struct qcom_icc_bcm bcm_ce0 = {
  1481. .name = "CE0",
  1482. .voter_idx = 0,
  1483. .num_nodes = 1,
  1484. .nodes = { &qxm_crypto },
  1485. };
  1486. static struct qcom_icc_bcm bcm_cn0 = {
  1487. .name = "CN0",
  1488. .voter_idx = 0,
  1489. .keepalive = true,
  1490. .num_nodes = 37,
  1491. .nodes = { &qhm_spdm, &qnm_snoc,
  1492. &qhs_a1_noc_cfg, &qhs_aop,
  1493. &qhs_aoss, &qhs_camera_cfg,
  1494. &qhs_clk_ctl, &qhs_cpr_cx,
  1495. &qhs_cpr_mx, &qhs_crypto0_cfg,
  1496. &qhs_ddrss_cfg, &qhs_display_cfg,
  1497. &qhs_emac_avb_cfg, &qhs_glm,
  1498. &qhs_gpuss_cfg, &qhs_imem_cfg,
  1499. &qhs_ipa, &qhs_mnoc_cfg,
  1500. &qhs_pcie_config, &qhs_pimem_cfg,
  1501. &qhs_prng, &qhs_qdss_cfg,
  1502. &qhs_qup0, &qhs_qup1,
  1503. &qhs_snoc_cfg, &qhs_spdm,
  1504. &qhs_tcsr, &qhs_tlmm_east,
  1505. &qhs_tlmm_south, &qhs_tlmm_west,
  1506. &qhs_ufs_mem_cfg, &qhs_usb2,
  1507. &qhs_usb3, &qhs_venus_cfg,
  1508. &qhs_vsense_ctrl_cfg, &qns_cnoc_a2noc,
  1509. &srvc_cnoc },
  1510. };
  1511. static struct qcom_icc_bcm bcm_cn1 = {
  1512. .name = "CN1",
  1513. .voter_idx = 0,
  1514. .num_nodes = 8,
  1515. .nodes = { &qhm_qspi, &xm_sdc1,
  1516. &xm_sdc2, &qhs_ahb2phy_east,
  1517. &qhs_ahb2phy_west, &qhs_qspi,
  1518. &qhs_sdc1, &qhs_sdc2 },
  1519. };
  1520. static struct qcom_icc_bcm bcm_ip0 = {
  1521. .name = "IP0",
  1522. .voter_idx = 0,
  1523. .qos_proxy = true,
  1524. .num_nodes = 1,
  1525. .nodes = { &ipa_core_slave },
  1526. };
  1527. static struct qcom_icc_bcm bcm_mc0 = {
  1528. .name = "MC0",
  1529. .voter_idx = 0,
  1530. .keepalive = true,
  1531. .num_nodes = 1,
  1532. .nodes = { &ebi },
  1533. };
  1534. static struct qcom_icc_bcm bcm_mm0 = {
  1535. .name = "MM0",
  1536. .voter_idx = 0,
  1537. .keepalive = true,
  1538. .num_nodes = 1,
  1539. .nodes = { &qns_mem_noc_hf },
  1540. };
  1541. static struct qcom_icc_bcm bcm_mm1 = {
  1542. .name = "MM1",
  1543. .voter_idx = 0,
  1544. .num_nodes = 7,
  1545. .nodes = { &qxm_camnoc_hf0_uncomp, &qxm_camnoc_hf1_uncomp,
  1546. &qxm_camnoc_sf_uncomp, &qxm_camnoc_hf0,
  1547. &qxm_camnoc_hf1, &qxm_mdp0,
  1548. &qxm_rot },
  1549. };
  1550. static struct qcom_icc_bcm bcm_mm2 = {
  1551. .name = "MM2",
  1552. .voter_idx = 0,
  1553. .num_nodes = 2,
  1554. .nodes = { &qxm_camnoc_sf, &qns2_mem_noc },
  1555. };
  1556. static struct qcom_icc_bcm bcm_mm3 = {
  1557. .name = "MM3",
  1558. .voter_idx = 0,
  1559. .num_nodes = 2,
  1560. .nodes = { &qxm_venus0, &qxm_venus_arm9 },
  1561. };
  1562. static struct qcom_icc_bcm bcm_qup0 = {
  1563. .name = "QUP0",
  1564. .voter_idx = 0,
  1565. .keepalive = true,
  1566. .vote_scale = 1,
  1567. .num_nodes = 2,
  1568. .nodes = { &qhm_qup0, &qhm_qup1 },
  1569. };
  1570. static struct qcom_icc_bcm bcm_sh0 = {
  1571. .name = "SH0",
  1572. .voter_idx = 0,
  1573. .keepalive = true,
  1574. .num_nodes = 1,
  1575. .nodes = { &qns_llcc },
  1576. };
  1577. static struct qcom_icc_bcm bcm_sh2 = {
  1578. .name = "SH2",
  1579. .voter_idx = 0,
  1580. .num_nodes = 1,
  1581. .nodes = { &acm_apps },
  1582. };
  1583. static struct qcom_icc_bcm bcm_sh3 = {
  1584. .name = "SH3",
  1585. .voter_idx = 0,
  1586. .num_nodes = 1,
  1587. .nodes = { &qns_gem_noc_snoc },
  1588. };
  1589. static struct qcom_icc_bcm bcm_sn0 = {
  1590. .name = "SN0",
  1591. .voter_idx = 0,
  1592. .keepalive = true,
  1593. .num_nodes = 1,
  1594. .nodes = { &qns_gemnoc_sf },
  1595. };
  1596. static struct qcom_icc_bcm bcm_sn1 = {
  1597. .name = "SN1",
  1598. .voter_idx = 0,
  1599. .num_nodes = 1,
  1600. .nodes = { &qxs_imem },
  1601. };
  1602. static struct qcom_icc_bcm bcm_sn2 = {
  1603. .name = "SN2",
  1604. .voter_idx = 0,
  1605. .num_nodes = 1,
  1606. .nodes = { &qns_memnoc_gc },
  1607. };
  1608. static struct qcom_icc_bcm bcm_sn3 = {
  1609. .name = "SN3",
  1610. .voter_idx = 0,
  1611. .num_nodes = 2,
  1612. .nodes = { &srvc_aggre2_noc, &qns_cnoc },
  1613. };
  1614. static struct qcom_icc_bcm bcm_sn4 = {
  1615. .name = "SN4",
  1616. .voter_idx = 0,
  1617. .num_nodes = 1,
  1618. .nodes = { &qxs_pimem },
  1619. };
  1620. static struct qcom_icc_bcm bcm_sn5 = {
  1621. .name = "SN5",
  1622. .voter_idx = 0,
  1623. .num_nodes = 1,
  1624. .nodes = { &xs_qdss_stm },
  1625. };
  1626. static struct qcom_icc_bcm bcm_sn8 = {
  1627. .name = "SN8",
  1628. .voter_idx = 0,
  1629. .num_nodes = 2,
  1630. .nodes = { &qnm_gemnoc_pcie, &xs_pcie },
  1631. };
  1632. static struct qcom_icc_bcm bcm_sn9 = {
  1633. .name = "SN9",
  1634. .voter_idx = 0,
  1635. .num_nodes = 1,
  1636. .nodes = { &qnm_aggre1_noc },
  1637. };
  1638. static struct qcom_icc_bcm bcm_sn12 = {
  1639. .name = "SN12",
  1640. .voter_idx = 0,
  1641. .num_nodes = 2,
  1642. .nodes = { &qxm_pimem, &xm_gic },
  1643. };
  1644. static struct qcom_icc_bcm bcm_sn13 = {
  1645. .name = "SN13",
  1646. .voter_idx = 0,
  1647. .num_nodes = 1,
  1648. .nodes = { &qnm_lpass_anoc },
  1649. };
  1650. static struct qcom_icc_bcm bcm_sn14 = {
  1651. .name = "SN14",
  1652. .voter_idx = 0,
  1653. .num_nodes = 1,
  1654. .nodes = { &qns_pcie_snoc },
  1655. };
  1656. static struct qcom_icc_bcm bcm_sn15 = {
  1657. .name = "SN15",
  1658. .voter_idx = 0,
  1659. .num_nodes = 1,
  1660. .nodes = { &qnm_gemnoc },
  1661. };
  1662. static struct qcom_icc_bcm bcm_acv_disp = {
  1663. .name = "ACV",
  1664. .voter_idx = 1,
  1665. .num_nodes = 1,
  1666. .nodes = { &ebi_disp },
  1667. };
  1668. static struct qcom_icc_bcm bcm_mc0_disp = {
  1669. .name = "MC0",
  1670. .voter_idx = 1,
  1671. .num_nodes = 1,
  1672. .nodes = { &ebi_disp },
  1673. };
  1674. static struct qcom_icc_bcm bcm_mm0_disp = {
  1675. .name = "MM0",
  1676. .voter_idx = 1,
  1677. .num_nodes = 1,
  1678. .nodes = { &qns_mem_noc_hf_disp },
  1679. };
  1680. static struct qcom_icc_bcm bcm_mm1_disp = {
  1681. .name = "MM1",
  1682. .voter_idx = 1,
  1683. .num_nodes = 2,
  1684. .nodes = { &qxm_mdp0_disp, &qxm_rot_disp },
  1685. };
  1686. static struct qcom_icc_bcm bcm_mm2_disp = {
  1687. .name = "MM2",
  1688. .voter_idx = 1,
  1689. .num_nodes = 1,
  1690. .nodes = { &qns2_mem_noc_disp },
  1691. };
  1692. static struct qcom_icc_bcm bcm_sh0_disp = {
  1693. .name = "SH0",
  1694. .voter_idx = 1,
  1695. .num_nodes = 1,
  1696. .nodes = { &qns_llcc_disp },
  1697. };
  1698. static const struct regmap_config icc_regmap_config = {
  1699. .reg_bits = 32,
  1700. .reg_stride = 4,
  1701. .val_bits = 32,
  1702. };
  1703. static struct qcom_icc_bcm *aggre1_noc_bcms[] = {
  1704. &bcm_ce0,
  1705. &bcm_cn1,
  1706. &bcm_qup0,
  1707. &bcm_sn3,
  1708. &bcm_sn14,
  1709. &bcm_ip0,
  1710. };
  1711. static struct qcom_icc_node *aggre1_noc_nodes[] = {
  1712. [MASTER_A1NOC_CFG] = &qhm_a1noc_cfg,
  1713. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1714. [MASTER_QSPI] = &qhm_qspi,
  1715. [MASTER_QUP_0] = &qhm_qup0,
  1716. [MASTER_BLSP_1] = &qhm_qup1,
  1717. [MASTER_CNOC_A2NOC] = &qnm_cnoc,
  1718. [MASTER_CRYPTO] = &qxm_crypto,
  1719. [MASTER_IPA] = &qxm_ipa,
  1720. [MASTER_EMAC_EVB] = &xm_emac_avb,
  1721. [MASTER_PCIE] = &xm_pcie,
  1722. [MASTER_QDSS_ETR] = &xm_qdss_etr,
  1723. [MASTER_SDCC_1] = &xm_sdc1,
  1724. [MASTER_SDCC_2] = &xm_sdc2,
  1725. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1726. [MASTER_USB2] = &xm_usb2,
  1727. [MASTER_USB3_0] = &xm_usb3_0,
  1728. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1729. [SLAVE_LPASS_SNOC] = &qns_lpass_snoc,
  1730. [SLAVE_ANOC_PCIE_SNOC] = &qns_pcie_snoc,
  1731. [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
  1732. };
  1733. static char *aggre1_noc_voters[] = {
  1734. "hlos",
  1735. };
  1736. static struct qcom_icc_desc sm6150_aggre1_noc = {
  1737. .config = &icc_regmap_config,
  1738. .nodes = aggre1_noc_nodes,
  1739. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1740. .bcms = aggre1_noc_bcms,
  1741. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1742. .voters = aggre1_noc_voters,
  1743. .num_voters = ARRAY_SIZE(aggre1_noc_voters),
  1744. };
  1745. static struct qcom_icc_bcm *camnoc_virt_bcms[] = {
  1746. &bcm_mm1,
  1747. };
  1748. static struct qcom_icc_node *camnoc_virt_nodes[] = {
  1749. [MASTER_CAMNOC_HF0_UNCOMP] = &qxm_camnoc_hf0_uncomp,
  1750. [MASTER_CAMNOC_HF1_UNCOMP] = &qxm_camnoc_hf1_uncomp,
  1751. [MASTER_CAMNOC_SF_UNCOMP] = &qxm_camnoc_sf_uncomp,
  1752. [SLAVE_CAMNOC_UNCOMP] = &qns_camnoc_uncomp,
  1753. };
  1754. static char *camnoc_virt_voters[] = {
  1755. "hlos",
  1756. };
  1757. static struct qcom_icc_desc sm6150_camnoc_virt = {
  1758. .config = &icc_regmap_config,
  1759. .nodes = camnoc_virt_nodes,
  1760. .num_nodes = ARRAY_SIZE(camnoc_virt_nodes),
  1761. .bcms = camnoc_virt_bcms,
  1762. .num_bcms = ARRAY_SIZE(camnoc_virt_bcms),
  1763. .voters = camnoc_virt_voters,
  1764. .num_voters = ARRAY_SIZE(camnoc_virt_voters),
  1765. };
  1766. static struct qcom_icc_bcm *config_noc_bcms[] = {
  1767. &bcm_cn0,
  1768. &bcm_cn1,
  1769. };
  1770. static struct qcom_icc_node *config_noc_nodes[] = {
  1771. [MASTER_SPDM] = &qhm_spdm,
  1772. [MASTER_SNOC_CNOC] = &qnm_snoc,
  1773. [MASTER_QDSS_DAP] = &xm_qdss_dap,
  1774. [SLAVE_A1NOC_CFG] = &qhs_a1_noc_cfg,
  1775. [SLAVE_AHB2PHY_EAST] = &qhs_ahb2phy_east,
  1776. [SLAVE_AHB2PHY_WEST] = &qhs_ahb2phy_west,
  1777. [SLAVE_AOP] = &qhs_aop,
  1778. [SLAVE_AOSS] = &qhs_aoss,
  1779. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1780. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1781. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1782. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1783. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1784. [SLAVE_CNOC_DDRSS] = &qhs_ddrss_cfg,
  1785. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  1786. [SLAVE_EMAC_AVB_CFG] = &qhs_emac_avb_cfg,
  1787. [SLAVE_GLM] = &qhs_glm,
  1788. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1789. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1790. [SLAVE_IPA_CFG] = &qhs_ipa,
  1791. [SLAVE_CNOC_MNOC_CFG] = &qhs_mnoc_cfg,
  1792. [SLAVE_PCIE_CFG] = &qhs_pcie_config,
  1793. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1794. [SLAVE_PRNG] = &qhs_prng,
  1795. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1796. [SLAVE_QSPI] = &qhs_qspi,
  1797. [SLAVE_QUP_0] = &qhs_qup0,
  1798. [SLAVE_QUP_1] = &qhs_qup1,
  1799. [SLAVE_SDCC_1] = &qhs_sdc1,
  1800. [SLAVE_SDCC_2] = &qhs_sdc2,
  1801. [SLAVE_SNOC_CFG] = &qhs_snoc_cfg,
  1802. [SLAVE_SPDM_WRAPPER] = &qhs_spdm,
  1803. [SLAVE_TCSR] = &qhs_tcsr,
  1804. [SLAVE_TLMM_EAST] = &qhs_tlmm_east,
  1805. [SLAVE_TLMM_SOUTH] = &qhs_tlmm_south,
  1806. [SLAVE_TLMM_WEST] = &qhs_tlmm_west,
  1807. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  1808. [SLAVE_USB2] = &qhs_usb2,
  1809. [SLAVE_USB3] = &qhs_usb3,
  1810. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  1811. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  1812. [SLAVE_CNOC_A2NOC] = &qns_cnoc_a2noc,
  1813. [SLAVE_SERVICE_CNOC] = &srvc_cnoc,
  1814. };
  1815. static char *config_noc_voters[] = {
  1816. "hlos",
  1817. };
  1818. static struct qcom_icc_desc sm6150_config_noc = {
  1819. .config = &icc_regmap_config,
  1820. .nodes = config_noc_nodes,
  1821. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  1822. .bcms = config_noc_bcms,
  1823. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  1824. .voters = config_noc_voters,
  1825. .num_voters = ARRAY_SIZE(config_noc_voters),
  1826. };
  1827. static struct qcom_icc_bcm *dc_noc_bcms[] = {
  1828. };
  1829. static struct qcom_icc_node *dc_noc_nodes[] = {
  1830. [MASTER_CNOC_DC_NOC] = &qhm_cnoc,
  1831. [SLAVE_DC_NOC_GEMNOC] = &qhs_dc_noc_gemnoc,
  1832. [SLAVE_LLCC_CFG] = &qhs_llcc,
  1833. };
  1834. static char *dc_noc_voters[] = {
  1835. "hlos",
  1836. };
  1837. static struct qcom_icc_desc sm6150_dc_noc = {
  1838. .config = &icc_regmap_config,
  1839. .nodes = dc_noc_nodes,
  1840. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  1841. .bcms = dc_noc_bcms,
  1842. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  1843. .voters = dc_noc_voters,
  1844. .num_voters = ARRAY_SIZE(dc_noc_voters),
  1845. };
  1846. static struct qcom_icc_bcm *gem_noc_bcms[] = {
  1847. &bcm_sh0,
  1848. &bcm_sh2,
  1849. &bcm_sh3,
  1850. &bcm_sh0_disp,
  1851. &bcm_mm1,
  1852. };
  1853. static struct qcom_icc_node *gem_noc_nodes[] = {
  1854. [MASTER_APPSS_PROC] = &acm_apps,
  1855. [MASTER_GPU_TCU] = &acm_gpu_tcu,
  1856. [MASTER_SYS_TCU] = &acm_sys_tcu,
  1857. [MASTER_GEM_NOC_CFG] = &qhm_gemnoc_cfg,
  1858. [MASTER_GFX3D] = &qnm_gpu,
  1859. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  1860. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  1861. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  1862. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  1863. [SLAVE_MSS_PROC_MS_MPU_CFG] = &qhs_mdsp_ms_mpu_cfg,
  1864. [SLAVE_GEM_NOC_SNOC] = &qns_gem_noc_snoc,
  1865. [SLAVE_LLCC] = &qns_llcc,
  1866. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_sys_pcie,
  1867. [SLAVE_SERVICE_GEM_NOC] = &srvc_gemnoc,
  1868. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  1869. [MASTER_MNOC_SF_MEM_NOC_DISP] = &qnm_mnoc_sf_disp,
  1870. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  1871. };
  1872. static char *gem_noc_voters[] = {
  1873. "hlos",
  1874. "disp",
  1875. };
  1876. static struct qcom_icc_desc sm6150_gem_noc = {
  1877. .config = &icc_regmap_config,
  1878. .nodes = gem_noc_nodes,
  1879. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  1880. .bcms = gem_noc_bcms,
  1881. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  1882. .voters = gem_noc_voters,
  1883. .num_voters = ARRAY_SIZE(gem_noc_voters),
  1884. };
  1885. static struct qcom_icc_bcm *ipa_virt_bcms[] = {
  1886. &bcm_ip0,
  1887. };
  1888. static struct qcom_icc_node *ipa_virt_nodes[] = {
  1889. [MASTER_IPA_CORE] = &ipa_core_master,
  1890. [SLAVE_IPA_CORE] = &ipa_core_slave,
  1891. };
  1892. static char *ipa_virt_voters[] = {
  1893. "hlos",
  1894. };
  1895. static struct qcom_icc_desc sm6150_ipa_virt = {
  1896. .config = &icc_regmap_config,
  1897. .nodes = ipa_virt_nodes,
  1898. .num_nodes = ARRAY_SIZE(ipa_virt_nodes),
  1899. .bcms = ipa_virt_bcms,
  1900. .num_bcms = ARRAY_SIZE(ipa_virt_bcms),
  1901. .voters = ipa_virt_voters,
  1902. .num_voters = ARRAY_SIZE(ipa_virt_voters),
  1903. };
  1904. static struct qcom_icc_bcm *mc_virt_bcms[] = {
  1905. &bcm_acv,
  1906. &bcm_mc0,
  1907. &bcm_acv_disp,
  1908. &bcm_mc0_disp,
  1909. };
  1910. static struct qcom_icc_node *mc_virt_nodes[] = {
  1911. [MASTER_LLCC] = &llcc_mc,
  1912. [SLAVE_EBI1] = &ebi,
  1913. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  1914. [SLAVE_EBI1_DISP] = &ebi_disp,
  1915. };
  1916. static char *mc_virt_voters[] = {
  1917. "hlos",
  1918. "disp",
  1919. };
  1920. static struct qcom_icc_desc sm6150_mc_virt = {
  1921. .config = &icc_regmap_config,
  1922. .nodes = mc_virt_nodes,
  1923. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  1924. .bcms = mc_virt_bcms,
  1925. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  1926. .voters = mc_virt_voters,
  1927. .num_voters = ARRAY_SIZE(mc_virt_voters),
  1928. };
  1929. static struct qcom_icc_bcm *mmss_noc_bcms[] = {
  1930. &bcm_mm0,
  1931. &bcm_mm1,
  1932. &bcm_mm2,
  1933. &bcm_mm3,
  1934. &bcm_mm0_disp,
  1935. &bcm_mm1_disp,
  1936. &bcm_mm2_disp,
  1937. };
  1938. static struct qcom_icc_node *mmss_noc_nodes[] = {
  1939. [MASTER_CNOC_MNOC_CFG] = &qhm_mnoc_cfg,
  1940. [MASTER_CAMNOC_HF0] = &qxm_camnoc_hf0,
  1941. [MASTER_CAMNOC_HF1] = &qxm_camnoc_hf1,
  1942. [MASTER_CAMNOC_SF] = &qxm_camnoc_sf,
  1943. [MASTER_MDP0] = &qxm_mdp0,
  1944. [MASTER_ROTATOR] = &qxm_rot,
  1945. [MASTER_VIDEO_P0] = &qxm_venus0,
  1946. [MASTER_VIDEO_PROC] = &qxm_venus_arm9,
  1947. [SLAVE_MNOC_SF_MEM_NOC] = &qns2_mem_noc,
  1948. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  1949. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  1950. [MASTER_MDP0_DISP] = &qxm_mdp0_disp,
  1951. [MASTER_ROTATOR_DISP] = &qxm_rot_disp,
  1952. [SLAVE_MNOC_SF_MEM_NOC_DISP] = &qns2_mem_noc_disp,
  1953. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  1954. };
  1955. static char *mmss_noc_voters[] = {
  1956. "hlos",
  1957. "disp",
  1958. };
  1959. static struct qcom_icc_desc sm6150_mmss_noc = {
  1960. .config = &icc_regmap_config,
  1961. .nodes = mmss_noc_nodes,
  1962. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  1963. .bcms = mmss_noc_bcms,
  1964. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  1965. .voters = mmss_noc_voters,
  1966. .num_voters = ARRAY_SIZE(mmss_noc_voters),
  1967. };
  1968. static struct qcom_icc_bcm *system_noc_bcms[] = {
  1969. &bcm_sn0,
  1970. &bcm_sn1,
  1971. &bcm_sn2,
  1972. &bcm_sn3,
  1973. &bcm_sn4,
  1974. &bcm_sn5,
  1975. &bcm_sn8,
  1976. &bcm_sn9,
  1977. &bcm_sn12,
  1978. &bcm_sn13,
  1979. &bcm_sn15,
  1980. };
  1981. static struct qcom_icc_node *system_noc_nodes[] = {
  1982. [MASTER_SNOC_CFG] = &qhm_snoc_cfg,
  1983. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  1984. [MASTER_GEM_NOC_SNOC] = &qnm_gemnoc,
  1985. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1986. [MASTER_LPASS_ANOC] = &qnm_lpass_anoc,
  1987. [MASTER_ANOC_PCIE_SNOC] = &qnm_pcie_anoc,
  1988. [MASTER_PIMEM] = &qxm_pimem,
  1989. [MASTER_GIC] = &xm_gic,
  1990. [SLAVE_APPSS] = &qhs_apss,
  1991. [SLAVE_SNOC_CNOC] = &qns_cnoc,
  1992. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  1993. [SLAVE_SNOC_MEM_NOC_GC] = &qns_memnoc_gc,
  1994. [SLAVE_IMEM] = &qxs_imem,
  1995. [SLAVE_PIMEM] = &qxs_pimem,
  1996. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  1997. [SLAVE_PCIE_0] = &xs_pcie,
  1998. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  1999. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2000. };
  2001. static char *system_noc_voters[] = {
  2002. "hlos",
  2003. };
  2004. static struct qcom_icc_desc sm6150_system_noc = {
  2005. .config = &icc_regmap_config,
  2006. .nodes = system_noc_nodes,
  2007. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2008. .bcms = system_noc_bcms,
  2009. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2010. .voters = system_noc_voters,
  2011. .num_voters = ARRAY_SIZE(system_noc_voters),
  2012. };
  2013. static int qnoc_sm6150_restore(struct device *dev)
  2014. {
  2015. struct platform_device *pdev = to_platform_device(dev);
  2016. struct qcom_icc_provider *qp = platform_get_drvdata(pdev);
  2017. return qcom_icc_rpmh_configure_qos(qp);
  2018. }
  2019. static const struct dev_pm_ops qnoc_sm6150_pm_ops = {
  2020. .restore = qnoc_sm6150_restore,
  2021. };
  2022. static const struct of_device_id qnoc_of_match[] = {
  2023. { .compatible = "qcom,sm6150-aggre1_noc",
  2024. .data = &sm6150_aggre1_noc},
  2025. { .compatible = "qcom,sm6150-camnoc_virt",
  2026. .data = &sm6150_camnoc_virt},
  2027. { .compatible = "qcom,sm6150-config_noc",
  2028. .data = &sm6150_config_noc},
  2029. { .compatible = "qcom,sm6150-dc_noc",
  2030. .data = &sm6150_dc_noc},
  2031. { .compatible = "qcom,sm6150-gem_noc",
  2032. .data = &sm6150_gem_noc},
  2033. { .compatible = "qcom,sm6150-ipa_virt",
  2034. .data = &sm6150_ipa_virt},
  2035. { .compatible = "qcom,sm6150-mc_virt",
  2036. .data = &sm6150_mc_virt},
  2037. { .compatible = "qcom,sm6150-mmss_noc",
  2038. .data = &sm6150_mmss_noc},
  2039. { .compatible = "qcom,sm6150-system_noc",
  2040. .data = &sm6150_system_noc},
  2041. { }
  2042. };
  2043. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2044. static struct platform_driver qnoc_driver = {
  2045. .probe = qcom_icc_rpmh_probe,
  2046. .remove = qcom_icc_rpmh_remove,
  2047. .driver = {
  2048. .name = "qnoc-sm6150",
  2049. .of_match_table = qnoc_of_match,
  2050. .pm = &qnoc_sm6150_pm_ops,
  2051. .sync_state = qcom_icc_rpmh_sync_state,
  2052. },
  2053. };
  2054. static int __init qnoc_driver_init(void)
  2055. {
  2056. return platform_driver_register(&qnoc_driver);
  2057. }
  2058. core_initcall(qnoc_driver_init);
  2059. MODULE_DESCRIPTION("SM6150 NoC driver");
  2060. MODULE_LICENSE("GPL");