sm8150.c 58 KB

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