kalama.c 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976
  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. #include <asm/div64.h>
  7. #include <dt-bindings/interconnect/qcom,kalama.h>
  8. #include <linux/device.h>
  9. #include <linux/interconnect.h>
  10. #include <linux/interconnect-provider.h>
  11. #include <linux/io.h>
  12. #include <linux/module.h>
  13. #include <linux/of_device.h>
  14. #include <linux/of_platform.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/sort.h>
  17. #include "icc-rpmh.h"
  18. #include "qnoc-qos.h"
  19. static const struct regmap_config icc_regmap_config = {
  20. .reg_bits = 32,
  21. .reg_stride = 4,
  22. .val_bits = 32,
  23. };
  24. static struct qcom_icc_qosbox qhm_qspi_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. .prio_fwd_disable = 1,
  32. },
  33. };
  34. static struct qcom_icc_node qhm_qspi = {
  35. .name = "qhm_qspi",
  36. .id = MASTER_QSPI_0,
  37. .channels = 1,
  38. .buswidth = 4,
  39. .noc_ops = &qcom_qnoc4_ops,
  40. .qosbox = &qhm_qspi_qos,
  41. .num_links = 1,
  42. .links = { SLAVE_A1NOC_SNOC },
  43. };
  44. static struct qcom_icc_qosbox qhm_qup1_qos = {
  45. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  46. .num_ports = 1,
  47. .offsets = { 0xc000 },
  48. .config = &(struct qos_config) {
  49. .prio = 2,
  50. .urg_fwd = 0,
  51. .prio_fwd_disable = 1,
  52. },
  53. };
  54. static struct qcom_icc_node qhm_qup1 = {
  55. .name = "qhm_qup1",
  56. .id = MASTER_QUP_1,
  57. .channels = 1,
  58. .buswidth = 4,
  59. .noc_ops = &qcom_qnoc4_ops,
  60. .qosbox = &qhm_qup1_qos,
  61. .num_links = 1,
  62. .links = { SLAVE_A1NOC_SNOC },
  63. };
  64. static struct qcom_icc_qosbox xm_sdc4_qos = {
  65. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  66. .num_ports = 1,
  67. .offsets = { 0xd000 },
  68. .config = &(struct qos_config) {
  69. .prio = 2,
  70. .urg_fwd = 0,
  71. .prio_fwd_disable = 1,
  72. },
  73. };
  74. static struct qcom_icc_node xm_sdc4 = {
  75. .name = "xm_sdc4",
  76. .id = MASTER_SDCC_4,
  77. .channels = 1,
  78. .buswidth = 8,
  79. .noc_ops = &qcom_qnoc4_ops,
  80. .qosbox = &xm_sdc4_qos,
  81. .num_links = 1,
  82. .links = { SLAVE_A1NOC_SNOC },
  83. };
  84. static struct qcom_icc_qosbox xm_ufs_mem_qos = {
  85. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  86. .num_ports = 1,
  87. .offsets = { 0xe000 },
  88. .config = &(struct qos_config) {
  89. .prio = 2,
  90. .urg_fwd = 0,
  91. .prio_fwd_disable = 1,
  92. },
  93. };
  94. static struct qcom_icc_node xm_ufs_mem = {
  95. .name = "xm_ufs_mem",
  96. .id = MASTER_UFS_MEM,
  97. .channels = 1,
  98. .buswidth = 16,
  99. .noc_ops = &qcom_qnoc4_ops,
  100. .qosbox = &xm_ufs_mem_qos,
  101. .num_links = 1,
  102. .links = { SLAVE_A1NOC_SNOC },
  103. };
  104. static struct qcom_icc_qosbox xm_usb3_0_qos = {
  105. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  106. .num_ports = 1,
  107. .offsets = { 0xf000 },
  108. .config = &(struct qos_config) {
  109. .prio = 2,
  110. .urg_fwd = 0,
  111. .prio_fwd_disable = 1,
  112. },
  113. };
  114. static struct qcom_icc_node xm_usb3_0 = {
  115. .name = "xm_usb3_0",
  116. .id = MASTER_USB3_0,
  117. .channels = 1,
  118. .buswidth = 8,
  119. .noc_ops = &qcom_qnoc4_ops,
  120. .qosbox = &xm_usb3_0_qos,
  121. .num_links = 1,
  122. .links = { SLAVE_A1NOC_SNOC },
  123. };
  124. static struct qcom_icc_qosbox qhm_qdss_bam_qos = {
  125. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  126. .num_ports = 1,
  127. .offsets = { 0x12000 },
  128. .config = &(struct qos_config) {
  129. .prio = 2,
  130. .urg_fwd = 0,
  131. .prio_fwd_disable = 1,
  132. },
  133. };
  134. static struct qcom_icc_node qhm_qdss_bam = {
  135. .name = "qhm_qdss_bam",
  136. .id = MASTER_QDSS_BAM,
  137. .channels = 1,
  138. .buswidth = 4,
  139. .noc_ops = &qcom_qnoc4_ops,
  140. .qosbox = &qhm_qdss_bam_qos,
  141. .num_links = 1,
  142. .links = { SLAVE_A2NOC_SNOC },
  143. };
  144. static struct qcom_icc_qosbox qhm_qup2_qos = {
  145. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  146. .num_ports = 1,
  147. .offsets = { 0x13000 },
  148. .config = &(struct qos_config) {
  149. .prio = 2,
  150. .urg_fwd = 0,
  151. .prio_fwd_disable = 1,
  152. },
  153. };
  154. static struct qcom_icc_node qhm_qup2 = {
  155. .name = "qhm_qup2",
  156. .id = MASTER_QUP_2,
  157. .channels = 1,
  158. .buswidth = 4,
  159. .noc_ops = &qcom_qnoc4_ops,
  160. .qosbox = &qhm_qup2_qos,
  161. .num_links = 1,
  162. .links = { SLAVE_A2NOC_SNOC },
  163. };
  164. static struct qcom_icc_qosbox qxm_crypto_qos = {
  165. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  166. .num_ports = 1,
  167. .offsets = { 0x15000 },
  168. .config = &(struct qos_config) {
  169. .prio = 2,
  170. .urg_fwd = 1,
  171. .prio_fwd_disable = 1,
  172. },
  173. };
  174. static struct qcom_icc_node qxm_crypto = {
  175. .name = "qxm_crypto",
  176. .id = MASTER_CRYPTO,
  177. .channels = 1,
  178. .buswidth = 8,
  179. .noc_ops = &qcom_qnoc4_ops,
  180. .qosbox = &qxm_crypto_qos,
  181. .num_links = 1,
  182. .links = { SLAVE_A2NOC_SNOC },
  183. };
  184. static struct qcom_icc_qosbox qxm_ipa_qos = {
  185. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  186. .num_ports = 1,
  187. .offsets = { 0x16000 },
  188. .config = &(struct qos_config) {
  189. .prio = 2,
  190. .urg_fwd = 1,
  191. .prio_fwd_disable = 1,
  192. },
  193. };
  194. static struct qcom_icc_node qxm_ipa = {
  195. .name = "qxm_ipa",
  196. .id = MASTER_IPA,
  197. .channels = 1,
  198. .buswidth = 8,
  199. .noc_ops = &qcom_qnoc4_ops,
  200. .qosbox = &qxm_ipa_qos,
  201. .num_links = 1,
  202. .links = { SLAVE_A2NOC_SNOC },
  203. };
  204. static struct qcom_icc_node qxm_sp = {
  205. .name = "qxm_sp",
  206. .id = MASTER_SP,
  207. .channels = 1,
  208. .buswidth = 8,
  209. .noc_ops = &qcom_qnoc4_ops,
  210. .num_links = 1,
  211. .links = { SLAVE_A2NOC_SNOC },
  212. };
  213. static struct qcom_icc_qosbox xm_qdss_etr_0_qos = {
  214. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  215. .num_ports = 1,
  216. .offsets = { 0x17000 },
  217. .config = &(struct qos_config) {
  218. .prio = 2,
  219. .urg_fwd = 0,
  220. .prio_fwd_disable = 1,
  221. },
  222. };
  223. static struct qcom_icc_node xm_qdss_etr_0 = {
  224. .name = "xm_qdss_etr_0",
  225. .id = MASTER_QDSS_ETR,
  226. .channels = 1,
  227. .buswidth = 8,
  228. .noc_ops = &qcom_qnoc4_ops,
  229. .qosbox = &xm_qdss_etr_0_qos,
  230. .num_links = 1,
  231. .links = { SLAVE_A2NOC_SNOC },
  232. };
  233. static struct qcom_icc_qosbox xm_qdss_etr_1_qos = {
  234. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  235. .num_ports = 1,
  236. .offsets = { 0x18000 },
  237. .config = &(struct qos_config) {
  238. .prio = 2,
  239. .urg_fwd = 0,
  240. .prio_fwd_disable = 1,
  241. },
  242. };
  243. static struct qcom_icc_node xm_qdss_etr_1 = {
  244. .name = "xm_qdss_etr_1",
  245. .id = MASTER_QDSS_ETR_1,
  246. .channels = 1,
  247. .buswidth = 8,
  248. .noc_ops = &qcom_qnoc4_ops,
  249. .qosbox = &xm_qdss_etr_1_qos,
  250. .num_links = 1,
  251. .links = { SLAVE_A2NOC_SNOC },
  252. };
  253. static struct qcom_icc_qosbox xm_sdc2_qos = {
  254. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  255. .num_ports = 1,
  256. .offsets = { 0x19000 },
  257. .config = &(struct qos_config) {
  258. .prio = 2,
  259. .urg_fwd = 0,
  260. .prio_fwd_disable = 1,
  261. },
  262. };
  263. static struct qcom_icc_node xm_sdc2 = {
  264. .name = "xm_sdc2",
  265. .id = MASTER_SDCC_2,
  266. .channels = 1,
  267. .buswidth = 8,
  268. .noc_ops = &qcom_qnoc4_ops,
  269. .qosbox = &xm_sdc2_qos,
  270. .num_links = 1,
  271. .links = { SLAVE_A2NOC_SNOC },
  272. };
  273. static struct qcom_icc_node qup0_core_master = {
  274. .name = "qup0_core_master",
  275. .id = MASTER_QUP_CORE_0,
  276. .channels = 1,
  277. .buswidth = 4,
  278. .noc_ops = &qcom_qnoc4_ops,
  279. .num_links = 1,
  280. .links = { SLAVE_QUP_CORE_0 },
  281. };
  282. static struct qcom_icc_node qup1_core_master = {
  283. .name = "qup1_core_master",
  284. .id = MASTER_QUP_CORE_1,
  285. .channels = 1,
  286. .buswidth = 4,
  287. .noc_ops = &qcom_qnoc4_ops,
  288. .num_links = 1,
  289. .links = { SLAVE_QUP_CORE_1 },
  290. };
  291. static struct qcom_icc_node qup2_core_master = {
  292. .name = "qup2_core_master",
  293. .id = MASTER_QUP_CORE_2,
  294. .channels = 1,
  295. .buswidth = 4,
  296. .noc_ops = &qcom_qnoc4_ops,
  297. .num_links = 1,
  298. .links = { SLAVE_QUP_CORE_2 },
  299. };
  300. static struct qcom_icc_node qsm_cfg = {
  301. .name = "qsm_cfg",
  302. .id = MASTER_CNOC_CFG,
  303. .channels = 1,
  304. .buswidth = 4,
  305. .noc_ops = &qcom_qnoc4_ops,
  306. .num_links = 44,
  307. .links = { SLAVE_AHB2PHY_SOUTH, SLAVE_AHB2PHY_NORTH,
  308. SLAVE_APPSS, SLAVE_CAMERA_CFG,
  309. SLAVE_CLK_CTL, SLAVE_RBCPR_CX_CFG,
  310. SLAVE_RBCPR_MMCX_CFG, SLAVE_RBCPR_MXA_CFG,
  311. SLAVE_RBCPR_MXC_CFG, SLAVE_CPR_NSPCX,
  312. SLAVE_CRYPTO_0_CFG, SLAVE_CX_RDPM,
  313. SLAVE_DISPLAY_CFG, SLAVE_GFX3D_CFG,
  314. SLAVE_I2C, SLAVE_IMEM_CFG,
  315. SLAVE_IPA_CFG, SLAVE_IPC_ROUTER_CFG,
  316. SLAVE_CNOC_MSS, SLAVE_MX_RDPM,
  317. SLAVE_PCIE_0_CFG, SLAVE_PCIE_1_CFG,
  318. SLAVE_PDM, SLAVE_PIMEM_CFG,
  319. SLAVE_PRNG, SLAVE_QDSS_CFG,
  320. SLAVE_QSPI_0, SLAVE_QUP_1,
  321. SLAVE_QUP_2, SLAVE_SDCC_2,
  322. SLAVE_SDCC_4, SLAVE_SPSS_CFG,
  323. SLAVE_TCSR, SLAVE_TLMM,
  324. SLAVE_UFS_MEM_CFG, SLAVE_USB3_0,
  325. SLAVE_VENUS_CFG, SLAVE_VSENSE_CTRL_CFG,
  326. SLAVE_LPASS_QTB_CFG, SLAVE_CNOC_MNOC_CFG,
  327. SLAVE_NSP_QTB_CFG, SLAVE_PCIE_ANOC_CFG,
  328. SLAVE_QDSS_STM, SLAVE_TCU },
  329. };
  330. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  331. .name = "qnm_gemnoc_cnoc",
  332. .id = MASTER_GEM_NOC_CNOC,
  333. .channels = 1,
  334. .buswidth = 16,
  335. .noc_ops = &qcom_qnoc4_ops,
  336. .num_links = 6,
  337. .links = { SLAVE_AOSS, SLAVE_TME_CFG,
  338. SLAVE_CNOC_CFG, SLAVE_DDRSS_CFG,
  339. SLAVE_BOOT_IMEM, SLAVE_IMEM },
  340. };
  341. static struct qcom_icc_node qnm_gemnoc_pcie = {
  342. .name = "qnm_gemnoc_pcie",
  343. .id = MASTER_GEM_NOC_PCIE_SNOC,
  344. .channels = 1,
  345. .buswidth = 8,
  346. .noc_ops = &qcom_qnoc4_ops,
  347. .num_links = 2,
  348. .links = { SLAVE_PCIE_0, SLAVE_PCIE_1 },
  349. };
  350. static struct qcom_icc_qosbox alm_gpu_tcu_qos = {
  351. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  352. .num_ports = 1,
  353. .offsets = { 0xb1000 },
  354. .config = &(struct qos_config) {
  355. .prio = 1,
  356. .urg_fwd = 0,
  357. .prio_fwd_disable = 1,
  358. },
  359. };
  360. static struct qcom_icc_node alm_gpu_tcu = {
  361. .name = "alm_gpu_tcu",
  362. .id = MASTER_GPU_TCU,
  363. .channels = 1,
  364. .buswidth = 8,
  365. .noc_ops = &qcom_qnoc4_ops,
  366. .qosbox = &alm_gpu_tcu_qos,
  367. .num_links = 2,
  368. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  369. };
  370. static struct qcom_icc_qosbox alm_sys_tcu_qos = {
  371. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  372. .num_ports = 1,
  373. .offsets = { 0xb3000 },
  374. .config = &(struct qos_config) {
  375. .prio = 6,
  376. .urg_fwd = 0,
  377. .prio_fwd_disable = 1,
  378. },
  379. };
  380. static struct qcom_icc_node alm_sys_tcu = {
  381. .name = "alm_sys_tcu",
  382. .id = MASTER_SYS_TCU,
  383. .channels = 1,
  384. .buswidth = 8,
  385. .noc_ops = &qcom_qnoc4_ops,
  386. .qosbox = &alm_sys_tcu_qos,
  387. .num_links = 2,
  388. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  389. };
  390. static struct qcom_icc_node chm_apps = {
  391. .name = "chm_apps",
  392. .id = MASTER_APPSS_PROC,
  393. .channels = 3,
  394. .buswidth = 32,
  395. .noc_ops = &qcom_qnoc4_ops,
  396. .num_links = 3,
  397. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  398. SLAVE_MEM_NOC_PCIE_SNOC },
  399. };
  400. static struct qcom_icc_qosbox qnm_gpu_qos = {
  401. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  402. .num_ports = 2,
  403. .offsets = { 0x31000, 0x71000 },
  404. .config = &(struct qos_config) {
  405. .prio = 0,
  406. .urg_fwd = 1,
  407. .prio_fwd_disable = 1,
  408. },
  409. };
  410. static struct qcom_icc_node qnm_gpu = {
  411. .name = "qnm_gpu",
  412. .id = MASTER_GFX3D,
  413. .channels = 2,
  414. .buswidth = 32,
  415. .noc_ops = &qcom_qnoc4_ops,
  416. .qosbox = &qnm_gpu_qos,
  417. .num_links = 2,
  418. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  419. };
  420. static struct qcom_icc_qosbox qnm_lpass_gemnoc_qos = {
  421. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  422. .num_ports = 1,
  423. .offsets = { 0xb5000 },
  424. .config = &(struct qos_config) {
  425. .prio = 0,
  426. .urg_fwd = 1,
  427. .prio_fwd_disable = 0,
  428. },
  429. };
  430. static struct qcom_icc_node qnm_lpass_gemnoc = {
  431. .name = "qnm_lpass_gemnoc",
  432. .id = MASTER_LPASS_GEM_NOC,
  433. .channels = 1,
  434. .buswidth = 16,
  435. .noc_ops = &qcom_qnoc4_ops,
  436. .qosbox = &qnm_lpass_gemnoc_qos,
  437. .num_links = 3,
  438. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  439. SLAVE_MEM_NOC_PCIE_SNOC },
  440. };
  441. static struct qcom_icc_node qnm_mdsp = {
  442. .name = "qnm_mdsp",
  443. .id = MASTER_MSS_PROC,
  444. .channels = 1,
  445. .buswidth = 16,
  446. .noc_ops = &qcom_qnoc4_ops,
  447. .num_links = 3,
  448. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  449. SLAVE_MEM_NOC_PCIE_SNOC },
  450. };
  451. static struct qcom_icc_qosbox qnm_mnoc_hf_qos = {
  452. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  453. .num_ports = 2,
  454. .offsets = { 0x33000, 0x73000 },
  455. .config = &(struct qos_config) {
  456. .prio = 0,
  457. .urg_fwd = 1,
  458. .prio_fwd_disable = 0,
  459. },
  460. };
  461. static struct qcom_icc_node qnm_mnoc_hf = {
  462. .name = "qnm_mnoc_hf",
  463. .id = MASTER_MNOC_HF_MEM_NOC,
  464. .channels = 2,
  465. .buswidth = 32,
  466. .noc_ops = &qcom_qnoc4_ops,
  467. .qosbox = &qnm_mnoc_hf_qos,
  468. .num_links = 2,
  469. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  470. };
  471. static struct qcom_icc_qosbox qnm_mnoc_sf_qos = {
  472. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  473. .num_ports = 2,
  474. .offsets = { 0x35000, 0x75000 },
  475. .config = &(struct qos_config) {
  476. .prio = 0,
  477. .urg_fwd = 1,
  478. .prio_fwd_disable = 0,
  479. },
  480. };
  481. static struct qcom_icc_node qnm_mnoc_sf = {
  482. .name = "qnm_mnoc_sf",
  483. .id = MASTER_MNOC_SF_MEM_NOC,
  484. .channels = 2,
  485. .buswidth = 32,
  486. .noc_ops = &qcom_qnoc4_ops,
  487. .qosbox = &qnm_mnoc_sf_qos,
  488. .num_links = 2,
  489. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  490. };
  491. static struct qcom_icc_qosbox qnm_nsp_gemnoc_qos = {
  492. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  493. .num_ports = 2,
  494. .offsets = { 0x37000, 0x77000 },
  495. .config = &(struct qos_config) {
  496. .prio = 0,
  497. .urg_fwd = 1,
  498. .prio_fwd_disable = 1,
  499. },
  500. };
  501. static struct qcom_icc_node qnm_nsp_gemnoc = {
  502. .name = "qnm_nsp_gemnoc",
  503. .id = MASTER_COMPUTE_NOC,
  504. .channels = 2,
  505. .buswidth = 32,
  506. .noc_ops = &qcom_qnoc4_ops,
  507. .qosbox = &qnm_nsp_gemnoc_qos,
  508. .num_links = 2,
  509. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  510. };
  511. static struct qcom_icc_qosbox qnm_pcie_qos = {
  512. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  513. .num_ports = 1,
  514. .offsets = { 0xb7000 },
  515. .config = &(struct qos_config) {
  516. .prio = 2,
  517. .urg_fwd = 1,
  518. .prio_fwd_disable = 0,
  519. },
  520. };
  521. static struct qcom_icc_node qnm_pcie = {
  522. .name = "qnm_pcie",
  523. .id = MASTER_ANOC_PCIE_GEM_NOC,
  524. .channels = 1,
  525. .buswidth = 16,
  526. .noc_ops = &qcom_qnoc4_ops,
  527. .qosbox = &qnm_pcie_qos,
  528. .num_links = 2,
  529. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC },
  530. };
  531. static struct qcom_icc_qosbox qnm_snoc_gc_qos = {
  532. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  533. .num_ports = 1,
  534. .offsets = { 0xb9000 },
  535. .config = &(struct qos_config) {
  536. .prio = 0,
  537. .urg_fwd = 1,
  538. .prio_fwd_disable = 0,
  539. },
  540. };
  541. static struct qcom_icc_node qnm_snoc_gc = {
  542. .name = "qnm_snoc_gc",
  543. .id = MASTER_SNOC_GC_MEM_NOC,
  544. .channels = 1,
  545. .buswidth = 8,
  546. .noc_ops = &qcom_qnoc4_ops,
  547. .qosbox = &qnm_snoc_gc_qos,
  548. .num_links = 1,
  549. .links = { SLAVE_LLCC },
  550. };
  551. static struct qcom_icc_qosbox qnm_snoc_sf_qos = {
  552. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  553. .num_ports = 1,
  554. .offsets = { 0xbb000 },
  555. .config = &(struct qos_config) {
  556. .prio = 0,
  557. .urg_fwd = 1,
  558. .prio_fwd_disable = 0,
  559. },
  560. };
  561. static struct qcom_icc_node qnm_snoc_sf = {
  562. .name = "qnm_snoc_sf",
  563. .id = MASTER_SNOC_SF_MEM_NOC,
  564. .channels = 1,
  565. .buswidth = 16,
  566. .noc_ops = &qcom_qnoc4_ops,
  567. .qosbox = &qnm_snoc_sf_qos,
  568. .num_links = 3,
  569. .links = { SLAVE_GEM_NOC_CNOC, SLAVE_LLCC,
  570. SLAVE_MEM_NOC_PCIE_SNOC },
  571. };
  572. static struct qcom_icc_node qnm_lpiaon_noc = {
  573. .name = "qnm_lpiaon_noc",
  574. .id = MASTER_LPIAON_NOC,
  575. .channels = 1,
  576. .buswidth = 16,
  577. .noc_ops = &qcom_qnoc4_ops,
  578. .num_links = 1,
  579. .links = { SLAVE_LPASS_GEM_NOC },
  580. };
  581. static struct qcom_icc_node qnm_lpass_lpinoc = {
  582. .name = "qnm_lpass_lpinoc",
  583. .id = MASTER_LPASS_LPINOC,
  584. .channels = 1,
  585. .buswidth = 16,
  586. .noc_ops = &qcom_qnoc4_ops,
  587. .num_links = 1,
  588. .links = { SLAVE_LPIAON_NOC_LPASS_AG_NOC },
  589. };
  590. static struct qcom_icc_node qxm_lpinoc_dsp_axim = {
  591. .name = "qxm_lpinoc_dsp_axim",
  592. .id = MASTER_LPASS_PROC,
  593. .channels = 1,
  594. .buswidth = 16,
  595. .noc_ops = &qcom_qnoc4_ops,
  596. .num_links = 1,
  597. .links = { SLAVE_LPICX_NOC_LPIAON_NOC },
  598. };
  599. static struct qcom_icc_node llcc_mc = {
  600. .name = "llcc_mc",
  601. .id = MASTER_LLCC,
  602. .channels = 4,
  603. .buswidth = 4,
  604. .noc_ops = &qcom_qnoc4_ops,
  605. .num_links = 1,
  606. .links = { SLAVE_EBI1 },
  607. };
  608. static struct qcom_icc_qosbox qnm_camnoc_hf_qos = {
  609. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  610. .num_ports = 2,
  611. .offsets = { 0x28000, 0x29000 },
  612. .config = &(struct qos_config) {
  613. .prio = 0,
  614. .urg_fwd = 1,
  615. .prio_fwd_disable = 0,
  616. },
  617. };
  618. static struct qcom_icc_node qnm_camnoc_hf = {
  619. .name = "qnm_camnoc_hf",
  620. .id = MASTER_CAMNOC_HF,
  621. .channels = 2,
  622. .buswidth = 32,
  623. .noc_ops = &qcom_qnoc4_ops,
  624. .qosbox = &qnm_camnoc_hf_qos,
  625. .num_links = 1,
  626. .links = { SLAVE_MNOC_HF_MEM_NOC },
  627. };
  628. static struct qcom_icc_qosbox qnm_camnoc_icp_qos = {
  629. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  630. .num_ports = 1,
  631. .offsets = { 0x2a000 },
  632. .config = &(struct qos_config) {
  633. .prio = 4,
  634. .urg_fwd = 1,
  635. .prio_fwd_disable = 1,
  636. },
  637. };
  638. static struct qcom_icc_node qnm_camnoc_icp = {
  639. .name = "qnm_camnoc_icp",
  640. .id = MASTER_CAMNOC_ICP,
  641. .channels = 1,
  642. .buswidth = 8,
  643. .noc_ops = &qcom_qnoc4_ops,
  644. .qosbox = &qnm_camnoc_icp_qos,
  645. .num_links = 1,
  646. .links = { SLAVE_MNOC_SF_MEM_NOC },
  647. };
  648. static struct qcom_icc_qosbox qnm_camnoc_sf_qos = {
  649. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  650. .num_ports = 2,
  651. .offsets = { 0x2b000, 0x2c000 },
  652. .config = &(struct qos_config) {
  653. .prio = 0,
  654. .urg_fwd = 1,
  655. .prio_fwd_disable = 0,
  656. },
  657. };
  658. static struct qcom_icc_node qnm_camnoc_sf = {
  659. .name = "qnm_camnoc_sf",
  660. .id = MASTER_CAMNOC_SF,
  661. .channels = 2,
  662. .buswidth = 32,
  663. .noc_ops = &qcom_qnoc4_ops,
  664. .qosbox = &qnm_camnoc_sf_qos,
  665. .num_links = 1,
  666. .links = { SLAVE_MNOC_SF_MEM_NOC },
  667. };
  668. static struct qcom_icc_qosbox qnm_mdp_qos = {
  669. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  670. .num_ports = 2,
  671. .offsets = { 0x2d000, 0x2e000 },
  672. .config = &(struct qos_config) {
  673. .prio = 0,
  674. .urg_fwd = 1,
  675. .prio_fwd_disable = 0,
  676. },
  677. };
  678. static struct qcom_icc_node qnm_mdp = {
  679. .name = "qnm_mdp",
  680. .id = MASTER_MDP,
  681. .channels = 2,
  682. .buswidth = 32,
  683. .noc_ops = &qcom_qnoc4_ops,
  684. .qosbox = &qnm_mdp_qos,
  685. .num_links = 1,
  686. .links = { SLAVE_MNOC_HF_MEM_NOC },
  687. };
  688. static struct qcom_icc_node qnm_vapss_hcp = {
  689. .name = "qnm_vapss_hcp",
  690. .id = MASTER_CDSP_HCP,
  691. .channels = 1,
  692. .buswidth = 32,
  693. .noc_ops = &qcom_qnoc4_ops,
  694. .num_links = 1,
  695. .links = { SLAVE_MNOC_SF_MEM_NOC },
  696. };
  697. static struct qcom_icc_qosbox qnm_video_qos = {
  698. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  699. .num_ports = 2,
  700. .offsets = { 0x30000, 0x31000 },
  701. .config = &(struct qos_config) {
  702. .prio = 0,
  703. .urg_fwd = 1,
  704. .prio_fwd_disable = 0,
  705. },
  706. };
  707. static struct qcom_icc_node qnm_video = {
  708. .name = "qnm_video",
  709. .id = MASTER_VIDEO,
  710. .channels = 2,
  711. .buswidth = 32,
  712. .noc_ops = &qcom_qnoc4_ops,
  713. .qosbox = &qnm_video_qos,
  714. .num_links = 1,
  715. .links = { SLAVE_MNOC_SF_MEM_NOC },
  716. };
  717. static struct qcom_icc_qosbox qnm_video_cv_cpu_qos = {
  718. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  719. .num_ports = 1,
  720. .offsets = { 0x32000 },
  721. .config = &(struct qos_config) {
  722. .prio = 4,
  723. .urg_fwd = 1,
  724. .prio_fwd_disable = 1,
  725. },
  726. };
  727. static struct qcom_icc_node qnm_video_cv_cpu = {
  728. .name = "qnm_video_cv_cpu",
  729. .id = MASTER_VIDEO_CV_PROC,
  730. .channels = 1,
  731. .buswidth = 8,
  732. .noc_ops = &qcom_qnoc4_ops,
  733. .qosbox = &qnm_video_cv_cpu_qos,
  734. .num_links = 1,
  735. .links = { SLAVE_MNOC_SF_MEM_NOC },
  736. };
  737. static struct qcom_icc_qosbox qnm_video_cvp_qos = {
  738. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  739. .num_ports = 1,
  740. .offsets = { 0x33000 },
  741. .config = &(struct qos_config) {
  742. .prio = 0,
  743. .urg_fwd = 1,
  744. .prio_fwd_disable = 0,
  745. },
  746. };
  747. static struct qcom_icc_node qnm_video_cvp = {
  748. .name = "qnm_video_cvp",
  749. .id = MASTER_VIDEO_PROC,
  750. .channels = 1,
  751. .buswidth = 32,
  752. .noc_ops = &qcom_qnoc4_ops,
  753. .qosbox = &qnm_video_cvp_qos,
  754. .num_links = 1,
  755. .links = { SLAVE_MNOC_SF_MEM_NOC },
  756. };
  757. static struct qcom_icc_qosbox qnm_video_v_cpu_qos = {
  758. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  759. .num_ports = 1,
  760. .offsets = { 0x34000 },
  761. .config = &(struct qos_config) {
  762. .prio = 4,
  763. .urg_fwd = 1,
  764. .prio_fwd_disable = 1,
  765. },
  766. };
  767. static struct qcom_icc_node qnm_video_v_cpu = {
  768. .name = "qnm_video_v_cpu",
  769. .id = MASTER_VIDEO_V_PROC,
  770. .channels = 1,
  771. .buswidth = 8,
  772. .noc_ops = &qcom_qnoc4_ops,
  773. .qosbox = &qnm_video_v_cpu_qos,
  774. .num_links = 1,
  775. .links = { SLAVE_MNOC_SF_MEM_NOC },
  776. };
  777. static struct qcom_icc_node qsm_mnoc_cfg = {
  778. .name = "qsm_mnoc_cfg",
  779. .id = MASTER_CNOC_MNOC_CFG,
  780. .channels = 1,
  781. .buswidth = 4,
  782. .noc_ops = &qcom_qnoc4_ops,
  783. .num_links = 1,
  784. .links = { SLAVE_SERVICE_MNOC },
  785. };
  786. static struct qcom_icc_node qxm_nsp = {
  787. .name = "qxm_nsp",
  788. .id = MASTER_CDSP_PROC,
  789. .channels = 2,
  790. .buswidth = 32,
  791. .noc_ops = &qcom_qnoc4_ops,
  792. .num_links = 1,
  793. .links = { SLAVE_CDSP_MEM_NOC },
  794. };
  795. static struct qcom_icc_node qsm_pcie_anoc_cfg = {
  796. .name = "qsm_pcie_anoc_cfg",
  797. .id = MASTER_PCIE_ANOC_CFG,
  798. .channels = 1,
  799. .buswidth = 4,
  800. .noc_ops = &qcom_qnoc4_ops,
  801. .num_links = 1,
  802. .links = { SLAVE_SERVICE_PCIE_ANOC },
  803. };
  804. static struct qcom_icc_qosbox xm_pcie3_0_qos = {
  805. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  806. .num_ports = 1,
  807. .offsets = { 0xb000 },
  808. .config = &(struct qos_config) {
  809. .prio = 3,
  810. .urg_fwd = 0,
  811. .prio_fwd_disable = 1,
  812. },
  813. };
  814. static struct qcom_icc_node xm_pcie3_0 = {
  815. .name = "xm_pcie3_0",
  816. .id = MASTER_PCIE_0,
  817. .channels = 1,
  818. .buswidth = 8,
  819. .noc_ops = &qcom_qnoc4_ops,
  820. .qosbox = &xm_pcie3_0_qos,
  821. .num_links = 1,
  822. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  823. };
  824. static struct qcom_icc_qosbox xm_pcie3_1_qos = {
  825. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  826. .num_ports = 1,
  827. .offsets = { 0xc000 },
  828. .config = &(struct qos_config) {
  829. .prio = 2,
  830. .urg_fwd = 0,
  831. .prio_fwd_disable = 1,
  832. },
  833. };
  834. static struct qcom_icc_node xm_pcie3_1 = {
  835. .name = "xm_pcie3_1",
  836. .id = MASTER_PCIE_1,
  837. .channels = 1,
  838. .buswidth = 16,
  839. .noc_ops = &qcom_qnoc4_ops,
  840. .qosbox = &xm_pcie3_1_qos,
  841. .num_links = 1,
  842. .links = { SLAVE_ANOC_PCIE_GEM_NOC },
  843. };
  844. static struct qcom_icc_qosbox qhm_gic_qos = {
  845. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  846. .num_ports = 1,
  847. .offsets = { 0x1c000 },
  848. .config = &(struct qos_config) {
  849. .prio = 2,
  850. .urg_fwd = 0,
  851. .prio_fwd_disable = 1,
  852. },
  853. };
  854. static struct qcom_icc_node qhm_gic = {
  855. .name = "qhm_gic",
  856. .id = MASTER_GIC_AHB,
  857. .channels = 1,
  858. .buswidth = 4,
  859. .noc_ops = &qcom_qnoc4_ops,
  860. .qosbox = &qhm_gic_qos,
  861. .num_links = 1,
  862. .links = { SLAVE_SNOC_GEM_NOC_SF },
  863. };
  864. static struct qcom_icc_node qnm_aggre1_noc = {
  865. .name = "qnm_aggre1_noc",
  866. .id = MASTER_A1NOC_SNOC,
  867. .channels = 1,
  868. .buswidth = 16,
  869. .noc_ops = &qcom_qnoc4_ops,
  870. .num_links = 1,
  871. .links = { SLAVE_SNOC_GEM_NOC_SF },
  872. };
  873. static struct qcom_icc_node qnm_aggre2_noc = {
  874. .name = "qnm_aggre2_noc",
  875. .id = MASTER_A2NOC_SNOC,
  876. .channels = 1,
  877. .buswidth = 16,
  878. .noc_ops = &qcom_qnoc4_ops,
  879. .num_links = 1,
  880. .links = { SLAVE_SNOC_GEM_NOC_SF },
  881. };
  882. static struct qcom_icc_qosbox xm_gic_qos = {
  883. .regs = icc_qnoc_qos_regs[ICC_QNOC_QOSGEN_TYPE_RPMH],
  884. .num_ports = 1,
  885. .offsets = { 0x1d000 },
  886. .config = &(struct qos_config) {
  887. .prio = 2,
  888. .urg_fwd = 0,
  889. .prio_fwd_disable = 1,
  890. },
  891. };
  892. static struct qcom_icc_node xm_gic = {
  893. .name = "xm_gic",
  894. .id = MASTER_GIC,
  895. .channels = 1,
  896. .buswidth = 8,
  897. .noc_ops = &qcom_qnoc4_ops,
  898. .qosbox = &xm_gic_qos,
  899. .num_links = 1,
  900. .links = { SLAVE_SNOC_GEM_NOC_GC },
  901. };
  902. static struct qcom_icc_node qnm_mnoc_hf_disp = {
  903. .name = "qnm_mnoc_hf_disp",
  904. .id = MASTER_MNOC_HF_MEM_NOC_DISP,
  905. .channels = 2,
  906. .buswidth = 32,
  907. .noc_ops = &qcom_qnoc4_ops,
  908. .num_links = 1,
  909. .links = { SLAVE_LLCC_DISP },
  910. };
  911. static struct qcom_icc_node qnm_pcie_disp = {
  912. .name = "qnm_pcie_disp",
  913. .id = MASTER_ANOC_PCIE_GEM_NOC_DISP,
  914. .channels = 1,
  915. .buswidth = 16,
  916. .noc_ops = &qcom_qnoc4_ops,
  917. .num_links = 1,
  918. .links = { SLAVE_LLCC_DISP },
  919. };
  920. static struct qcom_icc_node llcc_mc_disp = {
  921. .name = "llcc_mc_disp",
  922. .id = MASTER_LLCC_DISP,
  923. .channels = 4,
  924. .buswidth = 4,
  925. .noc_ops = &qcom_qnoc4_ops,
  926. .num_links = 1,
  927. .links = { SLAVE_EBI1_DISP },
  928. };
  929. static struct qcom_icc_node qnm_mdp_disp = {
  930. .name = "qnm_mdp_disp",
  931. .id = MASTER_MDP_DISP,
  932. .channels = 2,
  933. .buswidth = 32,
  934. .noc_ops = &qcom_qnoc4_ops,
  935. .num_links = 1,
  936. .links = { SLAVE_MNOC_HF_MEM_NOC_DISP },
  937. };
  938. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_0 = {
  939. .name = "qnm_mnoc_hf_cam_ife_0",
  940. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0,
  941. .channels = 2,
  942. .buswidth = 32,
  943. .noc_ops = &qcom_qnoc4_ops,
  944. .num_links = 1,
  945. .links = { SLAVE_LLCC_CAM_IFE_0 },
  946. };
  947. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_0 = {
  948. .name = "qnm_mnoc_sf_cam_ife_0",
  949. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0,
  950. .channels = 2,
  951. .buswidth = 32,
  952. .noc_ops = &qcom_qnoc4_ops,
  953. .num_links = 1,
  954. .links = { SLAVE_LLCC_CAM_IFE_0 },
  955. };
  956. static struct qcom_icc_node qnm_pcie_cam_ife_0 = {
  957. .name = "qnm_pcie_cam_ife_0",
  958. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_0,
  959. .channels = 1,
  960. .buswidth = 16,
  961. .noc_ops = &qcom_qnoc4_ops,
  962. .num_links = 1,
  963. .links = { SLAVE_LLCC_CAM_IFE_0 },
  964. };
  965. static struct qcom_icc_node llcc_mc_cam_ife_0 = {
  966. .name = "llcc_mc_cam_ife_0",
  967. .id = MASTER_LLCC_CAM_IFE_0,
  968. .channels = 4,
  969. .buswidth = 4,
  970. .noc_ops = &qcom_qnoc4_ops,
  971. .num_links = 1,
  972. .links = { SLAVE_EBI1_CAM_IFE_0 },
  973. };
  974. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_0 = {
  975. .name = "qnm_camnoc_hf_cam_ife_0",
  976. .id = MASTER_CAMNOC_HF_CAM_IFE_0,
  977. .channels = 2,
  978. .buswidth = 32,
  979. .noc_ops = &qcom_qnoc4_ops,
  980. .num_links = 1,
  981. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0 },
  982. };
  983. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_0 = {
  984. .name = "qnm_camnoc_icp_cam_ife_0",
  985. .id = MASTER_CAMNOC_ICP_CAM_IFE_0,
  986. .channels = 1,
  987. .buswidth = 8,
  988. .noc_ops = &qcom_qnoc4_ops,
  989. .num_links = 1,
  990. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  991. };
  992. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_0 = {
  993. .name = "qnm_camnoc_sf_cam_ife_0",
  994. .id = MASTER_CAMNOC_SF_CAM_IFE_0,
  995. .channels = 2,
  996. .buswidth = 32,
  997. .noc_ops = &qcom_qnoc4_ops,
  998. .num_links = 1,
  999. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  1000. };
  1001. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_1 = {
  1002. .name = "qnm_mnoc_hf_cam_ife_1",
  1003. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1,
  1004. .channels = 2,
  1005. .buswidth = 32,
  1006. .noc_ops = &qcom_qnoc4_ops,
  1007. .num_links = 1,
  1008. .links = { SLAVE_LLCC_CAM_IFE_1 },
  1009. };
  1010. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_1 = {
  1011. .name = "qnm_mnoc_sf_cam_ife_1",
  1012. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1,
  1013. .channels = 2,
  1014. .buswidth = 32,
  1015. .noc_ops = &qcom_qnoc4_ops,
  1016. .num_links = 1,
  1017. .links = { SLAVE_LLCC_CAM_IFE_1 },
  1018. };
  1019. static struct qcom_icc_node qnm_pcie_cam_ife_1 = {
  1020. .name = "qnm_pcie_cam_ife_1",
  1021. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_1,
  1022. .channels = 1,
  1023. .buswidth = 16,
  1024. .noc_ops = &qcom_qnoc4_ops,
  1025. .num_links = 1,
  1026. .links = { SLAVE_LLCC_CAM_IFE_1 },
  1027. };
  1028. static struct qcom_icc_node llcc_mc_cam_ife_1 = {
  1029. .name = "llcc_mc_cam_ife_1",
  1030. .id = MASTER_LLCC_CAM_IFE_1,
  1031. .channels = 4,
  1032. .buswidth = 4,
  1033. .noc_ops = &qcom_qnoc4_ops,
  1034. .num_links = 1,
  1035. .links = { SLAVE_EBI1_CAM_IFE_1 },
  1036. };
  1037. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_1 = {
  1038. .name = "qnm_camnoc_hf_cam_ife_1",
  1039. .id = MASTER_CAMNOC_HF_CAM_IFE_1,
  1040. .channels = 2,
  1041. .buswidth = 32,
  1042. .noc_ops = &qcom_qnoc4_ops,
  1043. .num_links = 1,
  1044. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1 },
  1045. };
  1046. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_1 = {
  1047. .name = "qnm_camnoc_icp_cam_ife_1",
  1048. .id = MASTER_CAMNOC_ICP_CAM_IFE_1,
  1049. .channels = 1,
  1050. .buswidth = 8,
  1051. .noc_ops = &qcom_qnoc4_ops,
  1052. .num_links = 1,
  1053. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1054. };
  1055. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_1 = {
  1056. .name = "qnm_camnoc_sf_cam_ife_1",
  1057. .id = MASTER_CAMNOC_SF_CAM_IFE_1,
  1058. .channels = 2,
  1059. .buswidth = 32,
  1060. .noc_ops = &qcom_qnoc4_ops,
  1061. .num_links = 1,
  1062. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1063. };
  1064. static struct qcom_icc_node qnm_mnoc_hf_cam_ife_2 = {
  1065. .name = "qnm_mnoc_hf_cam_ife_2",
  1066. .id = MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2,
  1067. .channels = 2,
  1068. .buswidth = 32,
  1069. .noc_ops = &qcom_qnoc4_ops,
  1070. .num_links = 1,
  1071. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1072. };
  1073. static struct qcom_icc_node qnm_mnoc_sf_cam_ife_2 = {
  1074. .name = "qnm_mnoc_sf_cam_ife_2",
  1075. .id = MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2,
  1076. .channels = 2,
  1077. .buswidth = 32,
  1078. .noc_ops = &qcom_qnoc4_ops,
  1079. .num_links = 1,
  1080. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1081. };
  1082. static struct qcom_icc_node qnm_pcie_cam_ife_2 = {
  1083. .name = "qnm_pcie_cam_ife_2",
  1084. .id = MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_2,
  1085. .channels = 1,
  1086. .buswidth = 16,
  1087. .noc_ops = &qcom_qnoc4_ops,
  1088. .num_links = 1,
  1089. .links = { SLAVE_LLCC_CAM_IFE_2 },
  1090. };
  1091. static struct qcom_icc_node llcc_mc_cam_ife_2 = {
  1092. .name = "llcc_mc_cam_ife_2",
  1093. .id = MASTER_LLCC_CAM_IFE_2,
  1094. .channels = 4,
  1095. .buswidth = 4,
  1096. .noc_ops = &qcom_qnoc4_ops,
  1097. .num_links = 1,
  1098. .links = { SLAVE_EBI1_CAM_IFE_2 },
  1099. };
  1100. static struct qcom_icc_node qnm_camnoc_hf_cam_ife_2 = {
  1101. .name = "qnm_camnoc_hf_cam_ife_2",
  1102. .id = MASTER_CAMNOC_HF_CAM_IFE_2,
  1103. .channels = 2,
  1104. .buswidth = 32,
  1105. .noc_ops = &qcom_qnoc4_ops,
  1106. .num_links = 1,
  1107. .links = { SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2 },
  1108. };
  1109. static struct qcom_icc_node qnm_camnoc_icp_cam_ife_2 = {
  1110. .name = "qnm_camnoc_icp_cam_ife_2",
  1111. .id = MASTER_CAMNOC_ICP_CAM_IFE_2,
  1112. .channels = 1,
  1113. .buswidth = 8,
  1114. .noc_ops = &qcom_qnoc4_ops,
  1115. .num_links = 1,
  1116. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1117. };
  1118. static struct qcom_icc_node qnm_camnoc_sf_cam_ife_2 = {
  1119. .name = "qnm_camnoc_sf_cam_ife_2",
  1120. .id = MASTER_CAMNOC_SF_CAM_IFE_2,
  1121. .channels = 2,
  1122. .buswidth = 32,
  1123. .noc_ops = &qcom_qnoc4_ops,
  1124. .num_links = 1,
  1125. .links = { SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1126. };
  1127. static struct qcom_icc_node qns_a1noc_snoc = {
  1128. .name = "qns_a1noc_snoc",
  1129. .id = SLAVE_A1NOC_SNOC,
  1130. .channels = 1,
  1131. .buswidth = 16,
  1132. .noc_ops = &qcom_qnoc4_ops,
  1133. .num_links = 1,
  1134. .links = { MASTER_A1NOC_SNOC },
  1135. };
  1136. static struct qcom_icc_node qns_a2noc_snoc = {
  1137. .name = "qns_a2noc_snoc",
  1138. .id = SLAVE_A2NOC_SNOC,
  1139. .channels = 1,
  1140. .buswidth = 16,
  1141. .noc_ops = &qcom_qnoc4_ops,
  1142. .num_links = 1,
  1143. .links = { MASTER_A2NOC_SNOC },
  1144. };
  1145. static struct qcom_icc_node qup0_core_slave = {
  1146. .name = "qup0_core_slave",
  1147. .id = SLAVE_QUP_CORE_0,
  1148. .channels = 1,
  1149. .buswidth = 4,
  1150. .noc_ops = &qcom_qnoc4_ops,
  1151. .num_links = 0,
  1152. };
  1153. static struct qcom_icc_node qup1_core_slave = {
  1154. .name = "qup1_core_slave",
  1155. .id = SLAVE_QUP_CORE_1,
  1156. .channels = 1,
  1157. .buswidth = 4,
  1158. .noc_ops = &qcom_qnoc4_ops,
  1159. .num_links = 0,
  1160. };
  1161. static struct qcom_icc_node qup2_core_slave = {
  1162. .name = "qup2_core_slave",
  1163. .id = SLAVE_QUP_CORE_2,
  1164. .channels = 1,
  1165. .buswidth = 4,
  1166. .noc_ops = &qcom_qnoc4_ops,
  1167. .num_links = 0,
  1168. };
  1169. static struct qcom_icc_node qhs_ahb2phy0 = {
  1170. .name = "qhs_ahb2phy0",
  1171. .id = SLAVE_AHB2PHY_SOUTH,
  1172. .channels = 1,
  1173. .buswidth = 4,
  1174. .noc_ops = &qcom_qnoc4_ops,
  1175. .num_links = 0,
  1176. };
  1177. static struct qcom_icc_node qhs_ahb2phy1 = {
  1178. .name = "qhs_ahb2phy1",
  1179. .id = SLAVE_AHB2PHY_NORTH,
  1180. .channels = 1,
  1181. .buswidth = 4,
  1182. .noc_ops = &qcom_qnoc4_ops,
  1183. .num_links = 0,
  1184. };
  1185. static struct qcom_icc_node qhs_apss = {
  1186. .name = "qhs_apss",
  1187. .id = SLAVE_APPSS,
  1188. .channels = 1,
  1189. .buswidth = 8,
  1190. .noc_ops = &qcom_qnoc4_ops,
  1191. .num_links = 0,
  1192. };
  1193. static struct qcom_icc_node qhs_camera_cfg = {
  1194. .name = "qhs_camera_cfg",
  1195. .id = SLAVE_CAMERA_CFG,
  1196. .channels = 1,
  1197. .buswidth = 4,
  1198. .noc_ops = &qcom_qnoc4_ops,
  1199. .num_links = 0,
  1200. };
  1201. static struct qcom_icc_node qhs_clk_ctl = {
  1202. .name = "qhs_clk_ctl",
  1203. .id = SLAVE_CLK_CTL,
  1204. .channels = 1,
  1205. .buswidth = 4,
  1206. .noc_ops = &qcom_qnoc4_ops,
  1207. .num_links = 0,
  1208. };
  1209. static struct qcom_icc_node qhs_cpr_cx = {
  1210. .name = "qhs_cpr_cx",
  1211. .id = SLAVE_RBCPR_CX_CFG,
  1212. .channels = 1,
  1213. .buswidth = 4,
  1214. .noc_ops = &qcom_qnoc4_ops,
  1215. .num_links = 0,
  1216. };
  1217. static struct qcom_icc_node qhs_cpr_mmcx = {
  1218. .name = "qhs_cpr_mmcx",
  1219. .id = SLAVE_RBCPR_MMCX_CFG,
  1220. .channels = 1,
  1221. .buswidth = 4,
  1222. .noc_ops = &qcom_qnoc4_ops,
  1223. .num_links = 0,
  1224. };
  1225. static struct qcom_icc_node qhs_cpr_mxa = {
  1226. .name = "qhs_cpr_mxa",
  1227. .id = SLAVE_RBCPR_MXA_CFG,
  1228. .channels = 1,
  1229. .buswidth = 4,
  1230. .noc_ops = &qcom_qnoc4_ops,
  1231. .num_links = 0,
  1232. };
  1233. static struct qcom_icc_node qhs_cpr_mxc = {
  1234. .name = "qhs_cpr_mxc",
  1235. .id = SLAVE_RBCPR_MXC_CFG,
  1236. .channels = 1,
  1237. .buswidth = 4,
  1238. .noc_ops = &qcom_qnoc4_ops,
  1239. .num_links = 0,
  1240. };
  1241. static struct qcom_icc_node qhs_cpr_nspcx = {
  1242. .name = "qhs_cpr_nspcx",
  1243. .id = SLAVE_CPR_NSPCX,
  1244. .channels = 1,
  1245. .buswidth = 4,
  1246. .noc_ops = &qcom_qnoc4_ops,
  1247. .num_links = 0,
  1248. };
  1249. static struct qcom_icc_node qhs_crypto0_cfg = {
  1250. .name = "qhs_crypto0_cfg",
  1251. .id = SLAVE_CRYPTO_0_CFG,
  1252. .channels = 1,
  1253. .buswidth = 4,
  1254. .noc_ops = &qcom_qnoc4_ops,
  1255. .num_links = 0,
  1256. };
  1257. static struct qcom_icc_node qhs_cx_rdpm = {
  1258. .name = "qhs_cx_rdpm",
  1259. .id = SLAVE_CX_RDPM,
  1260. .channels = 1,
  1261. .buswidth = 4,
  1262. .noc_ops = &qcom_qnoc4_ops,
  1263. .num_links = 0,
  1264. };
  1265. static struct qcom_icc_node qhs_display_cfg = {
  1266. .name = "qhs_display_cfg",
  1267. .id = SLAVE_DISPLAY_CFG,
  1268. .channels = 1,
  1269. .buswidth = 4,
  1270. .noc_ops = &qcom_qnoc4_ops,
  1271. .num_links = 0,
  1272. };
  1273. static struct qcom_icc_node qhs_gpuss_cfg = {
  1274. .name = "qhs_gpuss_cfg",
  1275. .id = SLAVE_GFX3D_CFG,
  1276. .channels = 1,
  1277. .buswidth = 8,
  1278. .noc_ops = &qcom_qnoc4_ops,
  1279. .num_links = 0,
  1280. };
  1281. static struct qcom_icc_node qhs_i2c = {
  1282. .name = "qhs_i2c",
  1283. .id = SLAVE_I2C,
  1284. .channels = 1,
  1285. .buswidth = 4,
  1286. .noc_ops = &qcom_qnoc4_ops,
  1287. .num_links = 0,
  1288. };
  1289. static struct qcom_icc_node qhs_imem_cfg = {
  1290. .name = "qhs_imem_cfg",
  1291. .id = SLAVE_IMEM_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_ipa = {
  1298. .name = "qhs_ipa",
  1299. .id = SLAVE_IPA_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_ipc_router = {
  1306. .name = "qhs_ipc_router",
  1307. .id = SLAVE_IPC_ROUTER_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_mss_cfg = {
  1314. .name = "qhs_mss_cfg",
  1315. .id = SLAVE_CNOC_MSS,
  1316. .channels = 1,
  1317. .buswidth = 4,
  1318. .noc_ops = &qcom_qnoc4_ops,
  1319. .num_links = 0,
  1320. };
  1321. static struct qcom_icc_node qhs_mx_rdpm = {
  1322. .name = "qhs_mx_rdpm",
  1323. .id = SLAVE_MX_RDPM,
  1324. .channels = 1,
  1325. .buswidth = 4,
  1326. .noc_ops = &qcom_qnoc4_ops,
  1327. .num_links = 0,
  1328. };
  1329. static struct qcom_icc_node qhs_pcie0_cfg = {
  1330. .name = "qhs_pcie0_cfg",
  1331. .id = SLAVE_PCIE_0_CFG,
  1332. .channels = 1,
  1333. .buswidth = 4,
  1334. .noc_ops = &qcom_qnoc4_ops,
  1335. .num_links = 0,
  1336. };
  1337. static struct qcom_icc_node qhs_pcie1_cfg = {
  1338. .name = "qhs_pcie1_cfg",
  1339. .id = SLAVE_PCIE_1_CFG,
  1340. .channels = 1,
  1341. .buswidth = 4,
  1342. .noc_ops = &qcom_qnoc4_ops,
  1343. .num_links = 0,
  1344. };
  1345. static struct qcom_icc_node qhs_pdm = {
  1346. .name = "qhs_pdm",
  1347. .id = SLAVE_PDM,
  1348. .channels = 1,
  1349. .buswidth = 4,
  1350. .noc_ops = &qcom_qnoc4_ops,
  1351. .num_links = 0,
  1352. };
  1353. static struct qcom_icc_node qhs_pimem_cfg = {
  1354. .name = "qhs_pimem_cfg",
  1355. .id = SLAVE_PIMEM_CFG,
  1356. .channels = 1,
  1357. .buswidth = 4,
  1358. .noc_ops = &qcom_qnoc4_ops,
  1359. .num_links = 0,
  1360. };
  1361. static struct qcom_icc_node qhs_prng = {
  1362. .name = "qhs_prng",
  1363. .id = SLAVE_PRNG,
  1364. .channels = 1,
  1365. .buswidth = 4,
  1366. .noc_ops = &qcom_qnoc4_ops,
  1367. .num_links = 0,
  1368. };
  1369. static struct qcom_icc_node qhs_qdss_cfg = {
  1370. .name = "qhs_qdss_cfg",
  1371. .id = SLAVE_QDSS_CFG,
  1372. .channels = 1,
  1373. .buswidth = 4,
  1374. .noc_ops = &qcom_qnoc4_ops,
  1375. .num_links = 0,
  1376. };
  1377. static struct qcom_icc_node qhs_qspi = {
  1378. .name = "qhs_qspi",
  1379. .id = SLAVE_QSPI_0,
  1380. .channels = 1,
  1381. .buswidth = 4,
  1382. .noc_ops = &qcom_qnoc4_ops,
  1383. .num_links = 0,
  1384. };
  1385. static struct qcom_icc_node qhs_qup1 = {
  1386. .name = "qhs_qup1",
  1387. .id = SLAVE_QUP_1,
  1388. .channels = 1,
  1389. .buswidth = 4,
  1390. .noc_ops = &qcom_qnoc4_ops,
  1391. .num_links = 0,
  1392. };
  1393. static struct qcom_icc_node qhs_qup2 = {
  1394. .name = "qhs_qup2",
  1395. .id = SLAVE_QUP_2,
  1396. .channels = 1,
  1397. .buswidth = 4,
  1398. .noc_ops = &qcom_qnoc4_ops,
  1399. .num_links = 0,
  1400. };
  1401. static struct qcom_icc_node qhs_sdc2 = {
  1402. .name = "qhs_sdc2",
  1403. .id = SLAVE_SDCC_2,
  1404. .channels = 1,
  1405. .buswidth = 4,
  1406. .noc_ops = &qcom_qnoc4_ops,
  1407. .num_links = 0,
  1408. };
  1409. static struct qcom_icc_node qhs_sdc4 = {
  1410. .name = "qhs_sdc4",
  1411. .id = SLAVE_SDCC_4,
  1412. .channels = 1,
  1413. .buswidth = 4,
  1414. .noc_ops = &qcom_qnoc4_ops,
  1415. .num_links = 0,
  1416. };
  1417. static struct qcom_icc_node qhs_spss_cfg = {
  1418. .name = "qhs_spss_cfg",
  1419. .id = SLAVE_SPSS_CFG,
  1420. .channels = 1,
  1421. .buswidth = 4,
  1422. .noc_ops = &qcom_qnoc4_ops,
  1423. .num_links = 0,
  1424. };
  1425. static struct qcom_icc_node qhs_tcsr = {
  1426. .name = "qhs_tcsr",
  1427. .id = SLAVE_TCSR,
  1428. .channels = 1,
  1429. .buswidth = 4,
  1430. .noc_ops = &qcom_qnoc4_ops,
  1431. .num_links = 0,
  1432. };
  1433. static struct qcom_icc_node qhs_tlmm = {
  1434. .name = "qhs_tlmm",
  1435. .id = SLAVE_TLMM,
  1436. .channels = 1,
  1437. .buswidth = 4,
  1438. .noc_ops = &qcom_qnoc4_ops,
  1439. .num_links = 0,
  1440. };
  1441. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1442. .name = "qhs_ufs_mem_cfg",
  1443. .id = SLAVE_UFS_MEM_CFG,
  1444. .channels = 1,
  1445. .buswidth = 4,
  1446. .noc_ops = &qcom_qnoc4_ops,
  1447. .num_links = 0,
  1448. };
  1449. static struct qcom_icc_node qhs_usb3_0 = {
  1450. .name = "qhs_usb3_0",
  1451. .id = SLAVE_USB3_0,
  1452. .channels = 1,
  1453. .buswidth = 4,
  1454. .noc_ops = &qcom_qnoc4_ops,
  1455. .num_links = 0,
  1456. };
  1457. static struct qcom_icc_node qhs_venus_cfg = {
  1458. .name = "qhs_venus_cfg",
  1459. .id = SLAVE_VENUS_CFG,
  1460. .channels = 1,
  1461. .buswidth = 4,
  1462. .noc_ops = &qcom_qnoc4_ops,
  1463. .num_links = 0,
  1464. };
  1465. static struct qcom_icc_node qhs_vsense_ctrl_cfg = {
  1466. .name = "qhs_vsense_ctrl_cfg",
  1467. .id = SLAVE_VSENSE_CTRL_CFG,
  1468. .channels = 1,
  1469. .buswidth = 4,
  1470. .noc_ops = &qcom_qnoc4_ops,
  1471. .num_links = 0,
  1472. };
  1473. static struct qcom_icc_node qss_lpass_qtb_cfg = {
  1474. .name = "qss_lpass_qtb_cfg",
  1475. .id = SLAVE_LPASS_QTB_CFG,
  1476. .channels = 1,
  1477. .buswidth = 4,
  1478. .noc_ops = &qcom_qnoc4_ops,
  1479. .num_links = 0,
  1480. };
  1481. static struct qcom_icc_node qss_mnoc_cfg = {
  1482. .name = "qss_mnoc_cfg",
  1483. .id = SLAVE_CNOC_MNOC_CFG,
  1484. .channels = 1,
  1485. .buswidth = 4,
  1486. .noc_ops = &qcom_qnoc4_ops,
  1487. .num_links = 1,
  1488. .links = { MASTER_CNOC_MNOC_CFG },
  1489. };
  1490. static struct qcom_icc_node qss_nsp_qtb_cfg = {
  1491. .name = "qss_nsp_qtb_cfg",
  1492. .id = SLAVE_NSP_QTB_CFG,
  1493. .channels = 1,
  1494. .buswidth = 4,
  1495. .noc_ops = &qcom_qnoc4_ops,
  1496. .num_links = 0,
  1497. };
  1498. static struct qcom_icc_node qss_pcie_anoc_cfg = {
  1499. .name = "qss_pcie_anoc_cfg",
  1500. .id = SLAVE_PCIE_ANOC_CFG,
  1501. .channels = 1,
  1502. .buswidth = 4,
  1503. .noc_ops = &qcom_qnoc4_ops,
  1504. .num_links = 1,
  1505. .links = { MASTER_PCIE_ANOC_CFG },
  1506. };
  1507. static struct qcom_icc_node xs_qdss_stm = {
  1508. .name = "xs_qdss_stm",
  1509. .id = SLAVE_QDSS_STM,
  1510. .channels = 1,
  1511. .buswidth = 4,
  1512. .noc_ops = &qcom_qnoc4_ops,
  1513. .num_links = 0,
  1514. };
  1515. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1516. .name = "xs_sys_tcu_cfg",
  1517. .id = SLAVE_TCU,
  1518. .channels = 1,
  1519. .buswidth = 8,
  1520. .noc_ops = &qcom_qnoc4_ops,
  1521. .num_links = 0,
  1522. };
  1523. static struct qcom_icc_node qhs_aoss = {
  1524. .name = "qhs_aoss",
  1525. .id = SLAVE_AOSS,
  1526. .channels = 1,
  1527. .buswidth = 4,
  1528. .noc_ops = &qcom_qnoc4_ops,
  1529. .num_links = 0,
  1530. };
  1531. static struct qcom_icc_node qhs_tme_cfg = {
  1532. .name = "qhs_tme_cfg",
  1533. .id = SLAVE_TME_CFG,
  1534. .channels = 1,
  1535. .buswidth = 4,
  1536. .noc_ops = &qcom_qnoc4_ops,
  1537. .num_links = 0,
  1538. };
  1539. static struct qcom_icc_node qss_cfg = {
  1540. .name = "qss_cfg",
  1541. .id = SLAVE_CNOC_CFG,
  1542. .channels = 1,
  1543. .buswidth = 4,
  1544. .noc_ops = &qcom_qnoc4_ops,
  1545. .num_links = 1,
  1546. .links = { MASTER_CNOC_CFG },
  1547. };
  1548. static struct qcom_icc_node qss_ddrss_cfg = {
  1549. .name = "qss_ddrss_cfg",
  1550. .id = SLAVE_DDRSS_CFG,
  1551. .channels = 1,
  1552. .buswidth = 4,
  1553. .noc_ops = &qcom_qnoc4_ops,
  1554. .num_links = 0,
  1555. };
  1556. static struct qcom_icc_node qxs_boot_imem = {
  1557. .name = "qxs_boot_imem",
  1558. .id = SLAVE_BOOT_IMEM,
  1559. .channels = 1,
  1560. .buswidth = 8,
  1561. .noc_ops = &qcom_qnoc4_ops,
  1562. .num_links = 0,
  1563. };
  1564. static struct qcom_icc_node qxs_imem = {
  1565. .name = "qxs_imem",
  1566. .id = SLAVE_IMEM,
  1567. .channels = 1,
  1568. .buswidth = 8,
  1569. .noc_ops = &qcom_qnoc4_ops,
  1570. .num_links = 0,
  1571. };
  1572. static struct qcom_icc_node xs_pcie_0 = {
  1573. .name = "xs_pcie_0",
  1574. .id = SLAVE_PCIE_0,
  1575. .channels = 1,
  1576. .buswidth = 8,
  1577. .noc_ops = &qcom_qnoc4_ops,
  1578. .num_links = 0,
  1579. };
  1580. static struct qcom_icc_node xs_pcie_1 = {
  1581. .name = "xs_pcie_1",
  1582. .id = SLAVE_PCIE_1,
  1583. .channels = 1,
  1584. .buswidth = 16,
  1585. .noc_ops = &qcom_qnoc4_ops,
  1586. .num_links = 0,
  1587. };
  1588. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1589. .name = "qns_gem_noc_cnoc",
  1590. .id = SLAVE_GEM_NOC_CNOC,
  1591. .channels = 1,
  1592. .buswidth = 16,
  1593. .noc_ops = &qcom_qnoc4_ops,
  1594. .num_links = 1,
  1595. .links = { MASTER_GEM_NOC_CNOC },
  1596. };
  1597. static struct qcom_icc_node qns_llcc = {
  1598. .name = "qns_llcc",
  1599. .id = SLAVE_LLCC,
  1600. .channels = 4,
  1601. .buswidth = 16,
  1602. .noc_ops = &qcom_qnoc4_ops,
  1603. .num_links = 1,
  1604. .links = { MASTER_LLCC },
  1605. };
  1606. static struct qcom_icc_node qns_pcie = {
  1607. .name = "qns_pcie",
  1608. .id = SLAVE_MEM_NOC_PCIE_SNOC,
  1609. .channels = 1,
  1610. .buswidth = 8,
  1611. .noc_ops = &qcom_qnoc4_ops,
  1612. .num_links = 1,
  1613. .links = { MASTER_GEM_NOC_PCIE_SNOC },
  1614. };
  1615. static struct qcom_icc_node qns_lpass_ag_noc_gemnoc = {
  1616. .name = "qns_lpass_ag_noc_gemnoc",
  1617. .id = SLAVE_LPASS_GEM_NOC,
  1618. .channels = 1,
  1619. .buswidth = 16,
  1620. .noc_ops = &qcom_qnoc4_ops,
  1621. .num_links = 1,
  1622. .links = { MASTER_LPASS_GEM_NOC },
  1623. };
  1624. static struct qcom_icc_node qns_lpass_aggnoc = {
  1625. .name = "qns_lpass_aggnoc",
  1626. .id = SLAVE_LPIAON_NOC_LPASS_AG_NOC,
  1627. .channels = 1,
  1628. .buswidth = 16,
  1629. .noc_ops = &qcom_qnoc4_ops,
  1630. .num_links = 1,
  1631. .links = { MASTER_LPIAON_NOC },
  1632. };
  1633. static struct qcom_icc_node qns_lpi_aon_noc = {
  1634. .name = "qns_lpi_aon_noc",
  1635. .id = SLAVE_LPICX_NOC_LPIAON_NOC,
  1636. .channels = 1,
  1637. .buswidth = 16,
  1638. .noc_ops = &qcom_qnoc4_ops,
  1639. .num_links = 1,
  1640. .links = { MASTER_LPASS_LPINOC },
  1641. };
  1642. static struct qcom_icc_node ebi = {
  1643. .name = "ebi",
  1644. .id = SLAVE_EBI1,
  1645. .channels = 4,
  1646. .buswidth = 4,
  1647. .noc_ops = &qcom_qnoc4_ops,
  1648. .num_links = 0,
  1649. };
  1650. static struct qcom_icc_node qns_mem_noc_hf = {
  1651. .name = "qns_mem_noc_hf",
  1652. .id = SLAVE_MNOC_HF_MEM_NOC,
  1653. .channels = 2,
  1654. .buswidth = 32,
  1655. .noc_ops = &qcom_qnoc4_ops,
  1656. .num_links = 1,
  1657. .links = { MASTER_MNOC_HF_MEM_NOC },
  1658. };
  1659. static struct qcom_icc_node qns_mem_noc_sf = {
  1660. .name = "qns_mem_noc_sf",
  1661. .id = SLAVE_MNOC_SF_MEM_NOC,
  1662. .channels = 2,
  1663. .buswidth = 32,
  1664. .noc_ops = &qcom_qnoc4_ops,
  1665. .num_links = 1,
  1666. .links = { MASTER_MNOC_SF_MEM_NOC },
  1667. };
  1668. static struct qcom_icc_node srvc_mnoc = {
  1669. .name = "srvc_mnoc",
  1670. .id = SLAVE_SERVICE_MNOC,
  1671. .channels = 1,
  1672. .buswidth = 4,
  1673. .noc_ops = &qcom_qnoc4_ops,
  1674. .num_links = 0,
  1675. };
  1676. static struct qcom_icc_node qns_nsp_gemnoc = {
  1677. .name = "qns_nsp_gemnoc",
  1678. .id = SLAVE_CDSP_MEM_NOC,
  1679. .channels = 2,
  1680. .buswidth = 32,
  1681. .noc_ops = &qcom_qnoc4_ops,
  1682. .num_links = 1,
  1683. .links = { MASTER_COMPUTE_NOC },
  1684. };
  1685. static struct qcom_icc_node qns_pcie_mem_noc = {
  1686. .name = "qns_pcie_mem_noc",
  1687. .id = SLAVE_ANOC_PCIE_GEM_NOC,
  1688. .channels = 1,
  1689. .buswidth = 16,
  1690. .noc_ops = &qcom_qnoc4_ops,
  1691. .num_links = 1,
  1692. .links = { MASTER_ANOC_PCIE_GEM_NOC },
  1693. };
  1694. static struct qcom_icc_node srvc_pcie_aggre_noc = {
  1695. .name = "srvc_pcie_aggre_noc",
  1696. .id = SLAVE_SERVICE_PCIE_ANOC,
  1697. .channels = 1,
  1698. .buswidth = 4,
  1699. .noc_ops = &qcom_qnoc4_ops,
  1700. .num_links = 0,
  1701. };
  1702. static struct qcom_icc_node qns_gemnoc_gc = {
  1703. .name = "qns_gemnoc_gc",
  1704. .id = SLAVE_SNOC_GEM_NOC_GC,
  1705. .channels = 1,
  1706. .buswidth = 8,
  1707. .noc_ops = &qcom_qnoc4_ops,
  1708. .num_links = 1,
  1709. .links = { MASTER_SNOC_GC_MEM_NOC },
  1710. };
  1711. static struct qcom_icc_node qns_gemnoc_sf = {
  1712. .name = "qns_gemnoc_sf",
  1713. .id = SLAVE_SNOC_GEM_NOC_SF,
  1714. .channels = 1,
  1715. .buswidth = 16,
  1716. .noc_ops = &qcom_qnoc4_ops,
  1717. .num_links = 1,
  1718. .links = { MASTER_SNOC_SF_MEM_NOC },
  1719. };
  1720. static struct qcom_icc_node qns_llcc_disp = {
  1721. .name = "qns_llcc_disp",
  1722. .id = SLAVE_LLCC_DISP,
  1723. .channels = 4,
  1724. .buswidth = 16,
  1725. .noc_ops = &qcom_qnoc4_ops,
  1726. .num_links = 1,
  1727. .links = { MASTER_LLCC_DISP },
  1728. };
  1729. static struct qcom_icc_node ebi_disp = {
  1730. .name = "ebi_disp",
  1731. .id = SLAVE_EBI1_DISP,
  1732. .channels = 4,
  1733. .buswidth = 4,
  1734. .noc_ops = &qcom_qnoc4_ops,
  1735. .num_links = 0,
  1736. };
  1737. static struct qcom_icc_node qns_mem_noc_hf_disp = {
  1738. .name = "qns_mem_noc_hf_disp",
  1739. .id = SLAVE_MNOC_HF_MEM_NOC_DISP,
  1740. .channels = 2,
  1741. .buswidth = 32,
  1742. .noc_ops = &qcom_qnoc4_ops,
  1743. .num_links = 1,
  1744. .links = { MASTER_MNOC_HF_MEM_NOC_DISP },
  1745. };
  1746. static struct qcom_icc_node qns_llcc_cam_ife_0 = {
  1747. .name = "qns_llcc_cam_ife_0",
  1748. .id = SLAVE_LLCC_CAM_IFE_0,
  1749. .channels = 4,
  1750. .buswidth = 16,
  1751. .noc_ops = &qcom_qnoc4_ops,
  1752. .num_links = 1,
  1753. .links = { MASTER_LLCC_CAM_IFE_0 },
  1754. };
  1755. static struct qcom_icc_node ebi_cam_ife_0 = {
  1756. .name = "ebi_cam_ife_0",
  1757. .id = SLAVE_EBI1_CAM_IFE_0,
  1758. .channels = 4,
  1759. .buswidth = 4,
  1760. .noc_ops = &qcom_qnoc4_ops,
  1761. .num_links = 0,
  1762. };
  1763. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_0 = {
  1764. .name = "qns_mem_noc_hf_cam_ife_0",
  1765. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0,
  1766. .channels = 2,
  1767. .buswidth = 32,
  1768. .noc_ops = &qcom_qnoc4_ops,
  1769. .num_links = 1,
  1770. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0 },
  1771. };
  1772. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_0 = {
  1773. .name = "qns_mem_noc_sf_cam_ife_0",
  1774. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0,
  1775. .channels = 2,
  1776. .buswidth = 32,
  1777. .noc_ops = &qcom_qnoc4_ops,
  1778. .num_links = 1,
  1779. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0 },
  1780. };
  1781. static struct qcom_icc_node qns_llcc_cam_ife_1 = {
  1782. .name = "qns_llcc_cam_ife_1",
  1783. .id = SLAVE_LLCC_CAM_IFE_1,
  1784. .channels = 4,
  1785. .buswidth = 16,
  1786. .noc_ops = &qcom_qnoc4_ops,
  1787. .num_links = 1,
  1788. .links = { MASTER_LLCC_CAM_IFE_1 },
  1789. };
  1790. static struct qcom_icc_node ebi_cam_ife_1 = {
  1791. .name = "ebi_cam_ife_1",
  1792. .id = SLAVE_EBI1_CAM_IFE_1,
  1793. .channels = 4,
  1794. .buswidth = 4,
  1795. .noc_ops = &qcom_qnoc4_ops,
  1796. .num_links = 0,
  1797. };
  1798. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_1 = {
  1799. .name = "qns_mem_noc_hf_cam_ife_1",
  1800. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1,
  1801. .channels = 2,
  1802. .buswidth = 32,
  1803. .noc_ops = &qcom_qnoc4_ops,
  1804. .num_links = 1,
  1805. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1 },
  1806. };
  1807. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_1 = {
  1808. .name = "qns_mem_noc_sf_cam_ife_1",
  1809. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1,
  1810. .channels = 2,
  1811. .buswidth = 32,
  1812. .noc_ops = &qcom_qnoc4_ops,
  1813. .num_links = 1,
  1814. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1 },
  1815. };
  1816. static struct qcom_icc_node qns_llcc_cam_ife_2 = {
  1817. .name = "qns_llcc_cam_ife_2",
  1818. .id = SLAVE_LLCC_CAM_IFE_2,
  1819. .channels = 4,
  1820. .buswidth = 16,
  1821. .noc_ops = &qcom_qnoc4_ops,
  1822. .num_links = 1,
  1823. .links = { MASTER_LLCC_CAM_IFE_2 },
  1824. };
  1825. static struct qcom_icc_node ebi_cam_ife_2 = {
  1826. .name = "ebi_cam_ife_2",
  1827. .id = SLAVE_EBI1_CAM_IFE_2,
  1828. .channels = 4,
  1829. .buswidth = 4,
  1830. .noc_ops = &qcom_qnoc4_ops,
  1831. .num_links = 0,
  1832. };
  1833. static struct qcom_icc_node qns_mem_noc_hf_cam_ife_2 = {
  1834. .name = "qns_mem_noc_hf_cam_ife_2",
  1835. .id = SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2,
  1836. .channels = 2,
  1837. .buswidth = 32,
  1838. .noc_ops = &qcom_qnoc4_ops,
  1839. .num_links = 1,
  1840. .links = { MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2 },
  1841. };
  1842. static struct qcom_icc_node qns_mem_noc_sf_cam_ife_2 = {
  1843. .name = "qns_mem_noc_sf_cam_ife_2",
  1844. .id = SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2,
  1845. .channels = 2,
  1846. .buswidth = 32,
  1847. .noc_ops = &qcom_qnoc4_ops,
  1848. .num_links = 1,
  1849. .links = { MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2 },
  1850. };
  1851. static struct qcom_icc_bcm bcm_acv = {
  1852. .name = "ACV",
  1853. .voter_idx = 0,
  1854. .enable_mask = 0x8,
  1855. .perf_mode_mask = 0x2,
  1856. .num_nodes = 1,
  1857. .nodes = { &ebi },
  1858. };
  1859. static struct qcom_icc_bcm bcm_ce0 = {
  1860. .name = "CE0",
  1861. .voter_idx = 0,
  1862. .num_nodes = 1,
  1863. .nodes = { &qxm_crypto },
  1864. };
  1865. static struct qcom_icc_bcm bcm_cn0 = {
  1866. .name = "CN0",
  1867. .voter_idx = 0,
  1868. .enable_mask = 0x1,
  1869. .keepalive = true,
  1870. .num_nodes = 55,
  1871. .nodes = { &qsm_cfg, &qhs_ahb2phy0,
  1872. &qhs_ahb2phy1, &qhs_apss,
  1873. &qhs_camera_cfg, &qhs_clk_ctl,
  1874. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1875. &qhs_cpr_mxa, &qhs_cpr_mxc,
  1876. &qhs_cpr_nspcx, &qhs_crypto0_cfg,
  1877. &qhs_cx_rdpm, &qhs_display_cfg,
  1878. &qhs_gpuss_cfg, &qhs_i2c,
  1879. &qhs_imem_cfg, &qhs_ipa,
  1880. &qhs_ipc_router, &qhs_mss_cfg,
  1881. &qhs_mx_rdpm, &qhs_pcie0_cfg,
  1882. &qhs_pcie1_cfg, &qhs_pdm,
  1883. &qhs_pimem_cfg, &qhs_prng,
  1884. &qhs_qdss_cfg, &qhs_qspi,
  1885. &qhs_qup1, &qhs_qup2,
  1886. &qhs_sdc2, &qhs_sdc4,
  1887. &qhs_spss_cfg, &qhs_tcsr,
  1888. &qhs_tlmm, &qhs_ufs_mem_cfg,
  1889. &qhs_usb3_0, &qhs_venus_cfg,
  1890. &qhs_vsense_ctrl_cfg, &qss_lpass_qtb_cfg,
  1891. &qss_mnoc_cfg, &qss_nsp_qtb_cfg,
  1892. &qss_pcie_anoc_cfg, &xs_qdss_stm,
  1893. &xs_sys_tcu_cfg, &qnm_gemnoc_cnoc,
  1894. &qnm_gemnoc_pcie, &qhs_aoss,
  1895. &qhs_tme_cfg, &qss_cfg,
  1896. &qss_ddrss_cfg, &qxs_boot_imem,
  1897. &qxs_imem, &xs_pcie_0,
  1898. &xs_pcie_1 },
  1899. };
  1900. static struct qcom_icc_bcm bcm_co0 = {
  1901. .name = "CO0",
  1902. .voter_idx = 0,
  1903. .enable_mask = 0x1,
  1904. .num_nodes = 2,
  1905. .nodes = { &qxm_nsp, &qns_nsp_gemnoc },
  1906. };
  1907. static struct qcom_icc_bcm bcm_lp0 = {
  1908. .name = "LP0",
  1909. .voter_idx = 0,
  1910. .num_nodes = 2,
  1911. .nodes = { &qnm_lpass_lpinoc, &qns_lpass_aggnoc },
  1912. };
  1913. static struct qcom_icc_bcm bcm_mc0 = {
  1914. .name = "MC0",
  1915. .voter_idx = 0,
  1916. .keepalive = true,
  1917. .num_nodes = 1,
  1918. .nodes = { &ebi },
  1919. };
  1920. static struct qcom_icc_bcm bcm_mm0 = {
  1921. .name = "MM0",
  1922. .voter_idx = 0,
  1923. .keepalive_early = true,
  1924. .num_nodes = 1,
  1925. .nodes = { &qns_mem_noc_hf },
  1926. };
  1927. static struct qcom_icc_bcm bcm_mm1 = {
  1928. .name = "MM1",
  1929. .voter_idx = 0,
  1930. .enable_mask = 0x1,
  1931. .num_nodes = 8,
  1932. .nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
  1933. &qnm_camnoc_sf, &qnm_vapss_hcp,
  1934. &qnm_video_cv_cpu, &qnm_video_cvp,
  1935. &qnm_video_v_cpu, &qns_mem_noc_sf },
  1936. };
  1937. static struct qcom_icc_bcm bcm_qup0 = {
  1938. .name = "QUP0",
  1939. .voter_idx = 0,
  1940. .keepalive = true,
  1941. .vote_scale = 1,
  1942. .num_nodes = 1,
  1943. .nodes = { &qup0_core_slave },
  1944. };
  1945. static struct qcom_icc_bcm bcm_qup1 = {
  1946. .name = "QUP1",
  1947. .voter_idx = 0,
  1948. .keepalive = true,
  1949. .vote_scale = 1,
  1950. .num_nodes = 1,
  1951. .nodes = { &qup1_core_slave },
  1952. };
  1953. static struct qcom_icc_bcm bcm_qup2 = {
  1954. .name = "QUP2",
  1955. .voter_idx = 0,
  1956. .keepalive = true,
  1957. .vote_scale = 1,
  1958. .num_nodes = 1,
  1959. .nodes = { &qup2_core_slave },
  1960. };
  1961. static struct qcom_icc_bcm bcm_sh0 = {
  1962. .name = "SH0",
  1963. .voter_idx = 0,
  1964. .keepalive = true,
  1965. .num_nodes = 1,
  1966. .nodes = { &qns_llcc },
  1967. };
  1968. static struct qcom_icc_bcm bcm_sh1 = {
  1969. .name = "SH1",
  1970. .voter_idx = 0,
  1971. .enable_mask = 0x1,
  1972. .num_nodes = 13,
  1973. .nodes = { &alm_gpu_tcu, &alm_sys_tcu,
  1974. &chm_apps, &qnm_gpu,
  1975. &qnm_mdsp, &qnm_mnoc_hf,
  1976. &qnm_mnoc_sf, &qnm_nsp_gemnoc,
  1977. &qnm_pcie, &qnm_snoc_gc,
  1978. &qnm_snoc_sf, &qns_gem_noc_cnoc,
  1979. &qns_pcie },
  1980. };
  1981. static struct qcom_icc_bcm bcm_sn0 = {
  1982. .name = "SN0",
  1983. .voter_idx = 0,
  1984. .keepalive = true,
  1985. .num_nodes = 1,
  1986. .nodes = { &qns_gemnoc_sf },
  1987. };
  1988. static struct qcom_icc_bcm bcm_sn1 = {
  1989. .name = "SN1",
  1990. .voter_idx = 0,
  1991. .enable_mask = 0x1,
  1992. .num_nodes = 3,
  1993. .nodes = { &qhm_gic, &xm_gic,
  1994. &qns_gemnoc_gc },
  1995. };
  1996. static struct qcom_icc_bcm bcm_sn2 = {
  1997. .name = "SN2",
  1998. .voter_idx = 0,
  1999. .num_nodes = 1,
  2000. .nodes = { &qnm_aggre1_noc },
  2001. };
  2002. static struct qcom_icc_bcm bcm_sn3 = {
  2003. .name = "SN3",
  2004. .voter_idx = 0,
  2005. .num_nodes = 1,
  2006. .nodes = { &qnm_aggre2_noc },
  2007. };
  2008. static struct qcom_icc_bcm bcm_sn7 = {
  2009. .name = "SN7",
  2010. .voter_idx = 0,
  2011. .num_nodes = 1,
  2012. .nodes = { &qns_pcie_mem_noc },
  2013. };
  2014. static struct qcom_icc_bcm bcm_acv_disp = {
  2015. .name = "ACV",
  2016. .voter_idx = 1,
  2017. .enable_mask = 0x1,
  2018. .perf_mode_mask = 0x2,
  2019. .num_nodes = 1,
  2020. .nodes = { &ebi_disp },
  2021. };
  2022. static struct qcom_icc_bcm bcm_mc0_disp = {
  2023. .name = "MC0",
  2024. .voter_idx = 1,
  2025. .num_nodes = 1,
  2026. .nodes = { &ebi_disp },
  2027. };
  2028. static struct qcom_icc_bcm bcm_mm0_disp = {
  2029. .name = "MM0",
  2030. .voter_idx = 1,
  2031. .num_nodes = 1,
  2032. .nodes = { &qns_mem_noc_hf_disp },
  2033. };
  2034. static struct qcom_icc_bcm bcm_sh0_disp = {
  2035. .name = "SH0",
  2036. .voter_idx = 1,
  2037. .num_nodes = 1,
  2038. .nodes = { &qns_llcc_disp },
  2039. };
  2040. static struct qcom_icc_bcm bcm_sh1_disp = {
  2041. .name = "SH1",
  2042. .voter_idx = 1,
  2043. .enable_mask = 0x1,
  2044. .num_nodes = 2,
  2045. .nodes = { &qnm_mnoc_hf_disp, &qnm_pcie_disp },
  2046. };
  2047. static struct qcom_icc_bcm bcm_acv_cam_ife_0 = {
  2048. .name = "ACV",
  2049. .voter_idx = 2,
  2050. .enable_mask = 0x0,
  2051. .num_nodes = 1,
  2052. .nodes = { &ebi_cam_ife_0 },
  2053. };
  2054. static struct qcom_icc_bcm bcm_mc0_cam_ife_0 = {
  2055. .name = "MC0",
  2056. .voter_idx = 2,
  2057. .num_nodes = 1,
  2058. .nodes = { &ebi_cam_ife_0 },
  2059. };
  2060. static struct qcom_icc_bcm bcm_mm0_cam_ife_0 = {
  2061. .name = "MM0",
  2062. .voter_idx = 2,
  2063. .num_nodes = 1,
  2064. .nodes = { &qns_mem_noc_hf_cam_ife_0 },
  2065. };
  2066. static struct qcom_icc_bcm bcm_mm1_cam_ife_0 = {
  2067. .name = "MM1",
  2068. .voter_idx = 2,
  2069. .enable_mask = 0x1,
  2070. .num_nodes = 4,
  2071. .nodes = { &qnm_camnoc_hf_cam_ife_0, &qnm_camnoc_icp_cam_ife_0,
  2072. &qnm_camnoc_sf_cam_ife_0, &qns_mem_noc_sf_cam_ife_0 },
  2073. };
  2074. static struct qcom_icc_bcm bcm_sh0_cam_ife_0 = {
  2075. .name = "SH0",
  2076. .voter_idx = 2,
  2077. .num_nodes = 1,
  2078. .nodes = { &qns_llcc_cam_ife_0 },
  2079. };
  2080. static struct qcom_icc_bcm bcm_sh1_cam_ife_0 = {
  2081. .name = "SH1",
  2082. .voter_idx = 2,
  2083. .enable_mask = 0x1,
  2084. .num_nodes = 3,
  2085. .nodes = { &qnm_mnoc_hf_cam_ife_0, &qnm_mnoc_sf_cam_ife_0,
  2086. &qnm_pcie_cam_ife_0 },
  2087. };
  2088. static struct qcom_icc_bcm bcm_acv_cam_ife_1 = {
  2089. .name = "ACV",
  2090. .voter_idx = 3,
  2091. .enable_mask = 0x0,
  2092. .num_nodes = 1,
  2093. .nodes = { &ebi_cam_ife_1 },
  2094. };
  2095. static struct qcom_icc_bcm bcm_mc0_cam_ife_1 = {
  2096. .name = "MC0",
  2097. .voter_idx = 3,
  2098. .num_nodes = 1,
  2099. .nodes = { &ebi_cam_ife_1 },
  2100. };
  2101. static struct qcom_icc_bcm bcm_mm0_cam_ife_1 = {
  2102. .name = "MM0",
  2103. .voter_idx = 3,
  2104. .num_nodes = 1,
  2105. .nodes = { &qns_mem_noc_hf_cam_ife_1 },
  2106. };
  2107. static struct qcom_icc_bcm bcm_mm1_cam_ife_1 = {
  2108. .name = "MM1",
  2109. .voter_idx = 3,
  2110. .enable_mask = 0x1,
  2111. .num_nodes = 4,
  2112. .nodes = { &qnm_camnoc_hf_cam_ife_1, &qnm_camnoc_icp_cam_ife_1,
  2113. &qnm_camnoc_sf_cam_ife_1, &qns_mem_noc_sf_cam_ife_1 },
  2114. };
  2115. static struct qcom_icc_bcm bcm_sh0_cam_ife_1 = {
  2116. .name = "SH0",
  2117. .voter_idx = 3,
  2118. .num_nodes = 1,
  2119. .nodes = { &qns_llcc_cam_ife_1 },
  2120. };
  2121. static struct qcom_icc_bcm bcm_sh1_cam_ife_1 = {
  2122. .name = "SH1",
  2123. .voter_idx = 3,
  2124. .enable_mask = 0x1,
  2125. .num_nodes = 3,
  2126. .nodes = { &qnm_mnoc_hf_cam_ife_1, &qnm_mnoc_sf_cam_ife_1,
  2127. &qnm_pcie_cam_ife_1 },
  2128. };
  2129. static struct qcom_icc_bcm bcm_acv_cam_ife_2 = {
  2130. .name = "ACV",
  2131. .voter_idx = 4,
  2132. .enable_mask = 0x0,
  2133. .num_nodes = 1,
  2134. .nodes = { &ebi_cam_ife_2 },
  2135. };
  2136. static struct qcom_icc_bcm bcm_mc0_cam_ife_2 = {
  2137. .name = "MC0",
  2138. .voter_idx = 4,
  2139. .num_nodes = 1,
  2140. .nodes = { &ebi_cam_ife_2 },
  2141. };
  2142. static struct qcom_icc_bcm bcm_mm0_cam_ife_2 = {
  2143. .name = "MM0",
  2144. .voter_idx = 4,
  2145. .num_nodes = 1,
  2146. .nodes = { &qns_mem_noc_hf_cam_ife_2 },
  2147. };
  2148. static struct qcom_icc_bcm bcm_mm1_cam_ife_2 = {
  2149. .name = "MM1",
  2150. .voter_idx = 4,
  2151. .enable_mask = 0x1,
  2152. .num_nodes = 4,
  2153. .nodes = { &qnm_camnoc_hf_cam_ife_2, &qnm_camnoc_icp_cam_ife_2,
  2154. &qnm_camnoc_sf_cam_ife_2, &qns_mem_noc_sf_cam_ife_2 },
  2155. };
  2156. static struct qcom_icc_bcm bcm_sh0_cam_ife_2 = {
  2157. .name = "SH0",
  2158. .voter_idx = 4,
  2159. .num_nodes = 1,
  2160. .nodes = { &qns_llcc_cam_ife_2 },
  2161. };
  2162. static struct qcom_icc_bcm bcm_sh1_cam_ife_2 = {
  2163. .name = "SH1",
  2164. .voter_idx = 4,
  2165. .enable_mask = 0x1,
  2166. .num_nodes = 3,
  2167. .nodes = { &qnm_mnoc_hf_cam_ife_2, &qnm_mnoc_sf_cam_ife_2,
  2168. &qnm_pcie_cam_ife_2 },
  2169. };
  2170. static struct qcom_icc_bcm *aggre1_noc_bcms[] = {
  2171. };
  2172. static struct qcom_icc_node *aggre1_noc_nodes[] = {
  2173. [MASTER_QSPI_0] = &qhm_qspi,
  2174. [MASTER_QUP_1] = &qhm_qup1,
  2175. [MASTER_SDCC_4] = &xm_sdc4,
  2176. [MASTER_UFS_MEM] = &xm_ufs_mem,
  2177. [MASTER_USB3_0] = &xm_usb3_0,
  2178. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  2179. };
  2180. static char *aggre1_noc_voters[] = {
  2181. "hlos",
  2182. };
  2183. static struct qcom_icc_desc kalama_aggre1_noc = {
  2184. .config = &icc_regmap_config,
  2185. .nodes = aggre1_noc_nodes,
  2186. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  2187. .bcms = aggre1_noc_bcms,
  2188. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  2189. .voters = aggre1_noc_voters,
  2190. .num_voters = ARRAY_SIZE(aggre1_noc_voters),
  2191. };
  2192. static struct qcom_icc_bcm *aggre2_noc_bcms[] = {
  2193. &bcm_ce0,
  2194. };
  2195. static struct qcom_icc_node *aggre2_noc_nodes[] = {
  2196. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  2197. [MASTER_QUP_2] = &qhm_qup2,
  2198. [MASTER_CRYPTO] = &qxm_crypto,
  2199. [MASTER_IPA] = &qxm_ipa,
  2200. [MASTER_SP] = &qxm_sp,
  2201. [MASTER_QDSS_ETR] = &xm_qdss_etr_0,
  2202. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  2203. [MASTER_SDCC_2] = &xm_sdc2,
  2204. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  2205. };
  2206. static char *aggre2_noc_voters[] = {
  2207. "hlos",
  2208. };
  2209. static struct qcom_icc_desc kalama_aggre2_noc = {
  2210. .config = &icc_regmap_config,
  2211. .nodes = aggre2_noc_nodes,
  2212. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  2213. .bcms = aggre2_noc_bcms,
  2214. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  2215. .voters = aggre2_noc_voters,
  2216. .num_voters = ARRAY_SIZE(aggre2_noc_voters),
  2217. };
  2218. static struct qcom_icc_bcm *clk_virt_bcms[] = {
  2219. &bcm_qup0,
  2220. &bcm_qup1,
  2221. &bcm_qup2,
  2222. };
  2223. static struct qcom_icc_node *clk_virt_nodes[] = {
  2224. [MASTER_QUP_CORE_0] = &qup0_core_master,
  2225. [MASTER_QUP_CORE_1] = &qup1_core_master,
  2226. [MASTER_QUP_CORE_2] = &qup2_core_master,
  2227. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  2228. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  2229. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  2230. };
  2231. static char *clk_virt_voters[] = {
  2232. "hlos",
  2233. };
  2234. static struct qcom_icc_desc kalama_clk_virt = {
  2235. .config = &icc_regmap_config,
  2236. .nodes = clk_virt_nodes,
  2237. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  2238. .bcms = clk_virt_bcms,
  2239. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  2240. .voters = clk_virt_voters,
  2241. .num_voters = ARRAY_SIZE(clk_virt_voters),
  2242. };
  2243. static struct qcom_icc_bcm *cnoc_cfg_bcms[] = {
  2244. &bcm_cn0,
  2245. };
  2246. static struct qcom_icc_node *cnoc_cfg_nodes[] = {
  2247. [MASTER_CNOC_CFG] = &qsm_cfg,
  2248. [SLAVE_AHB2PHY_SOUTH] = &qhs_ahb2phy0,
  2249. [SLAVE_AHB2PHY_NORTH] = &qhs_ahb2phy1,
  2250. [SLAVE_APPSS] = &qhs_apss,
  2251. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  2252. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  2253. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  2254. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  2255. [SLAVE_RBCPR_MXA_CFG] = &qhs_cpr_mxa,
  2256. [SLAVE_RBCPR_MXC_CFG] = &qhs_cpr_mxc,
  2257. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  2258. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  2259. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  2260. [SLAVE_DISPLAY_CFG] = &qhs_display_cfg,
  2261. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  2262. [SLAVE_I2C] = &qhs_i2c,
  2263. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  2264. [SLAVE_IPA_CFG] = &qhs_ipa,
  2265. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  2266. [SLAVE_CNOC_MSS] = &qhs_mss_cfg,
  2267. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  2268. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  2269. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  2270. [SLAVE_PDM] = &qhs_pdm,
  2271. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  2272. [SLAVE_PRNG] = &qhs_prng,
  2273. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  2274. [SLAVE_QSPI_0] = &qhs_qspi,
  2275. [SLAVE_QUP_1] = &qhs_qup1,
  2276. [SLAVE_QUP_2] = &qhs_qup2,
  2277. [SLAVE_SDCC_2] = &qhs_sdc2,
  2278. [SLAVE_SDCC_4] = &qhs_sdc4,
  2279. [SLAVE_SPSS_CFG] = &qhs_spss_cfg,
  2280. [SLAVE_TCSR] = &qhs_tcsr,
  2281. [SLAVE_TLMM] = &qhs_tlmm,
  2282. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  2283. [SLAVE_USB3_0] = &qhs_usb3_0,
  2284. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  2285. [SLAVE_VSENSE_CTRL_CFG] = &qhs_vsense_ctrl_cfg,
  2286. [SLAVE_LPASS_QTB_CFG] = &qss_lpass_qtb_cfg,
  2287. [SLAVE_CNOC_MNOC_CFG] = &qss_mnoc_cfg,
  2288. [SLAVE_NSP_QTB_CFG] = &qss_nsp_qtb_cfg,
  2289. [SLAVE_PCIE_ANOC_CFG] = &qss_pcie_anoc_cfg,
  2290. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  2291. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2292. };
  2293. static char *cnoc_cfg_voters[] = {
  2294. "hlos",
  2295. };
  2296. static struct qcom_icc_desc kalama_cnoc_cfg = {
  2297. .config = &icc_regmap_config,
  2298. .nodes = cnoc_cfg_nodes,
  2299. .num_nodes = ARRAY_SIZE(cnoc_cfg_nodes),
  2300. .bcms = cnoc_cfg_bcms,
  2301. .num_bcms = ARRAY_SIZE(cnoc_cfg_bcms),
  2302. .voters = cnoc_cfg_voters,
  2303. .num_voters = ARRAY_SIZE(cnoc_cfg_voters),
  2304. };
  2305. static struct qcom_icc_bcm *cnoc_main_bcms[] = {
  2306. &bcm_cn0,
  2307. };
  2308. static struct qcom_icc_node *cnoc_main_nodes[] = {
  2309. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  2310. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  2311. [SLAVE_AOSS] = &qhs_aoss,
  2312. [SLAVE_TME_CFG] = &qhs_tme_cfg,
  2313. [SLAVE_CNOC_CFG] = &qss_cfg,
  2314. [SLAVE_DDRSS_CFG] = &qss_ddrss_cfg,
  2315. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  2316. [SLAVE_IMEM] = &qxs_imem,
  2317. [SLAVE_PCIE_0] = &xs_pcie_0,
  2318. [SLAVE_PCIE_1] = &xs_pcie_1,
  2319. };
  2320. static char *cnoc_main_voters[] = {
  2321. "hlos",
  2322. };
  2323. static struct qcom_icc_desc kalama_cnoc_main = {
  2324. .config = &icc_regmap_config,
  2325. .nodes = cnoc_main_nodes,
  2326. .num_nodes = ARRAY_SIZE(cnoc_main_nodes),
  2327. .bcms = cnoc_main_bcms,
  2328. .num_bcms = ARRAY_SIZE(cnoc_main_bcms),
  2329. .voters = cnoc_main_voters,
  2330. .num_voters = ARRAY_SIZE(cnoc_main_voters),
  2331. };
  2332. static struct qcom_icc_bcm *gem_noc_bcms[] = {
  2333. &bcm_sh0,
  2334. &bcm_sh1,
  2335. &bcm_sh0_disp,
  2336. &bcm_sh1_disp,
  2337. &bcm_sh0_cam_ife_0,
  2338. &bcm_sh1_cam_ife_0,
  2339. &bcm_sh0_cam_ife_1,
  2340. &bcm_sh1_cam_ife_1,
  2341. &bcm_sh0_cam_ife_2,
  2342. &bcm_sh1_cam_ife_2,
  2343. };
  2344. static struct qcom_icc_node *gem_noc_nodes[] = {
  2345. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  2346. [MASTER_SYS_TCU] = &alm_sys_tcu,
  2347. [MASTER_APPSS_PROC] = &chm_apps,
  2348. [MASTER_GFX3D] = &qnm_gpu,
  2349. [MASTER_LPASS_GEM_NOC] = &qnm_lpass_gemnoc,
  2350. [MASTER_MSS_PROC] = &qnm_mdsp,
  2351. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  2352. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  2353. [MASTER_COMPUTE_NOC] = &qnm_nsp_gemnoc,
  2354. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  2355. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  2356. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2357. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  2358. [SLAVE_LLCC] = &qns_llcc,
  2359. [SLAVE_MEM_NOC_PCIE_SNOC] = &qns_pcie,
  2360. [MASTER_MNOC_HF_MEM_NOC_DISP] = &qnm_mnoc_hf_disp,
  2361. [MASTER_ANOC_PCIE_GEM_NOC_DISP] = &qnm_pcie_disp,
  2362. [SLAVE_LLCC_DISP] = &qns_llcc_disp,
  2363. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_0] = &qnm_mnoc_hf_cam_ife_0,
  2364. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_0] = &qnm_mnoc_sf_cam_ife_0,
  2365. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_0] = &qnm_pcie_cam_ife_0,
  2366. [SLAVE_LLCC_CAM_IFE_0] = &qns_llcc_cam_ife_0,
  2367. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_1] = &qnm_mnoc_hf_cam_ife_1,
  2368. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_1] = &qnm_mnoc_sf_cam_ife_1,
  2369. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_1] = &qnm_pcie_cam_ife_1,
  2370. [SLAVE_LLCC_CAM_IFE_1] = &qns_llcc_cam_ife_1,
  2371. [MASTER_MNOC_HF_MEM_NOC_CAM_IFE_2] = &qnm_mnoc_hf_cam_ife_2,
  2372. [MASTER_MNOC_SF_MEM_NOC_CAM_IFE_2] = &qnm_mnoc_sf_cam_ife_2,
  2373. [MASTER_ANOC_PCIE_GEM_NOC_CAM_IFE_2] = &qnm_pcie_cam_ife_2,
  2374. [SLAVE_LLCC_CAM_IFE_2] = &qns_llcc_cam_ife_2,
  2375. };
  2376. static char *gem_noc_voters[] = {
  2377. "hlos",
  2378. "disp",
  2379. "cam_ife_0",
  2380. "cam_ife_1",
  2381. "cam_ife_2",
  2382. };
  2383. static struct qcom_icc_desc kalama_gem_noc = {
  2384. .config = &icc_regmap_config,
  2385. .nodes = gem_noc_nodes,
  2386. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2387. .bcms = gem_noc_bcms,
  2388. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2389. .voters = gem_noc_voters,
  2390. .num_voters = ARRAY_SIZE(gem_noc_voters),
  2391. };
  2392. static struct qcom_icc_bcm *lpass_ag_noc_bcms[] = {
  2393. };
  2394. static struct qcom_icc_node *lpass_ag_noc_nodes[] = {
  2395. [MASTER_LPIAON_NOC] = &qnm_lpiaon_noc,
  2396. [SLAVE_LPASS_GEM_NOC] = &qns_lpass_ag_noc_gemnoc,
  2397. };
  2398. static char *lpass_ag_noc_voters[] = {
  2399. "hlos",
  2400. };
  2401. static struct qcom_icc_desc kalama_lpass_ag_noc = {
  2402. .config = &icc_regmap_config,
  2403. .nodes = lpass_ag_noc_nodes,
  2404. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  2405. .bcms = lpass_ag_noc_bcms,
  2406. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  2407. .voters = lpass_ag_noc_voters,
  2408. .num_voters = ARRAY_SIZE(lpass_ag_noc_voters),
  2409. };
  2410. static struct qcom_icc_bcm *lpass_lpiaon_noc_bcms[] = {
  2411. &bcm_lp0,
  2412. };
  2413. static struct qcom_icc_node *lpass_lpiaon_noc_nodes[] = {
  2414. [MASTER_LPASS_LPINOC] = &qnm_lpass_lpinoc,
  2415. [SLAVE_LPIAON_NOC_LPASS_AG_NOC] = &qns_lpass_aggnoc,
  2416. };
  2417. static char *lpass_lpiaon_noc_voters[] = {
  2418. "hlos",
  2419. };
  2420. static struct qcom_icc_desc kalama_lpass_lpiaon_noc = {
  2421. .config = &icc_regmap_config,
  2422. .nodes = lpass_lpiaon_noc_nodes,
  2423. .num_nodes = ARRAY_SIZE(lpass_lpiaon_noc_nodes),
  2424. .bcms = lpass_lpiaon_noc_bcms,
  2425. .num_bcms = ARRAY_SIZE(lpass_lpiaon_noc_bcms),
  2426. .voters = lpass_lpiaon_noc_voters,
  2427. .num_voters = ARRAY_SIZE(lpass_lpiaon_noc_voters),
  2428. };
  2429. static struct qcom_icc_bcm *lpass_lpicx_noc_bcms[] = {
  2430. };
  2431. static struct qcom_icc_node *lpass_lpicx_noc_nodes[] = {
  2432. [MASTER_LPASS_PROC] = &qxm_lpinoc_dsp_axim,
  2433. [SLAVE_LPICX_NOC_LPIAON_NOC] = &qns_lpi_aon_noc,
  2434. };
  2435. static char *lpass_lpicx_noc_voters[] = {
  2436. "hlos",
  2437. };
  2438. static struct qcom_icc_desc kalama_lpass_lpicx_noc = {
  2439. .config = &icc_regmap_config,
  2440. .nodes = lpass_lpicx_noc_nodes,
  2441. .num_nodes = ARRAY_SIZE(lpass_lpicx_noc_nodes),
  2442. .bcms = lpass_lpicx_noc_bcms,
  2443. .num_bcms = ARRAY_SIZE(lpass_lpicx_noc_bcms),
  2444. .voters = lpass_lpicx_noc_voters,
  2445. .num_voters = ARRAY_SIZE(lpass_lpicx_noc_voters),
  2446. };
  2447. static struct qcom_icc_bcm *mc_virt_bcms[] = {
  2448. &bcm_acv,
  2449. &bcm_mc0,
  2450. &bcm_acv_disp,
  2451. &bcm_mc0_disp,
  2452. &bcm_acv_cam_ife_0,
  2453. &bcm_mc0_cam_ife_0,
  2454. &bcm_acv_cam_ife_1,
  2455. &bcm_mc0_cam_ife_1,
  2456. &bcm_acv_cam_ife_2,
  2457. &bcm_mc0_cam_ife_2,
  2458. };
  2459. static struct qcom_icc_node *mc_virt_nodes[] = {
  2460. [MASTER_LLCC] = &llcc_mc,
  2461. [SLAVE_EBI1] = &ebi,
  2462. [MASTER_LLCC_DISP] = &llcc_mc_disp,
  2463. [SLAVE_EBI1_DISP] = &ebi_disp,
  2464. [MASTER_LLCC_CAM_IFE_0] = &llcc_mc_cam_ife_0,
  2465. [SLAVE_EBI1_CAM_IFE_0] = &ebi_cam_ife_0,
  2466. [MASTER_LLCC_CAM_IFE_1] = &llcc_mc_cam_ife_1,
  2467. [SLAVE_EBI1_CAM_IFE_1] = &ebi_cam_ife_1,
  2468. [MASTER_LLCC_CAM_IFE_2] = &llcc_mc_cam_ife_2,
  2469. [SLAVE_EBI1_CAM_IFE_2] = &ebi_cam_ife_2,
  2470. };
  2471. static char *mc_virt_voters[] = {
  2472. "hlos",
  2473. "disp",
  2474. "cam_ife_0",
  2475. "cam_ife_1",
  2476. "cam_ife_2",
  2477. };
  2478. static struct qcom_icc_desc kalama_mc_virt = {
  2479. .config = &icc_regmap_config,
  2480. .nodes = mc_virt_nodes,
  2481. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2482. .bcms = mc_virt_bcms,
  2483. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2484. .voters = mc_virt_voters,
  2485. .num_voters = ARRAY_SIZE(mc_virt_voters),
  2486. };
  2487. static struct qcom_icc_bcm *mmss_noc_bcms[] = {
  2488. &bcm_mm0,
  2489. &bcm_mm1,
  2490. &bcm_mm0_disp,
  2491. &bcm_mm0_cam_ife_0,
  2492. &bcm_mm1_cam_ife_0,
  2493. &bcm_mm0_cam_ife_1,
  2494. &bcm_mm1_cam_ife_1,
  2495. &bcm_mm0_cam_ife_2,
  2496. &bcm_mm1_cam_ife_2,
  2497. };
  2498. static struct qcom_icc_node *mmss_noc_nodes[] = {
  2499. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  2500. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  2501. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  2502. [MASTER_MDP] = &qnm_mdp,
  2503. [MASTER_CDSP_HCP] = &qnm_vapss_hcp,
  2504. [MASTER_VIDEO] = &qnm_video,
  2505. [MASTER_VIDEO_CV_PROC] = &qnm_video_cv_cpu,
  2506. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  2507. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  2508. [MASTER_CNOC_MNOC_CFG] = &qsm_mnoc_cfg,
  2509. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2510. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  2511. [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
  2512. [MASTER_MDP_DISP] = &qnm_mdp_disp,
  2513. [SLAVE_MNOC_HF_MEM_NOC_DISP] = &qns_mem_noc_hf_disp,
  2514. [MASTER_CAMNOC_HF_CAM_IFE_0] = &qnm_camnoc_hf_cam_ife_0,
  2515. [MASTER_CAMNOC_ICP_CAM_IFE_0] = &qnm_camnoc_icp_cam_ife_0,
  2516. [MASTER_CAMNOC_SF_CAM_IFE_0] = &qnm_camnoc_sf_cam_ife_0,
  2517. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_0] = &qns_mem_noc_hf_cam_ife_0,
  2518. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_0] = &qns_mem_noc_sf_cam_ife_0,
  2519. [MASTER_CAMNOC_HF_CAM_IFE_1] = &qnm_camnoc_hf_cam_ife_1,
  2520. [MASTER_CAMNOC_ICP_CAM_IFE_1] = &qnm_camnoc_icp_cam_ife_1,
  2521. [MASTER_CAMNOC_SF_CAM_IFE_1] = &qnm_camnoc_sf_cam_ife_1,
  2522. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_1] = &qns_mem_noc_hf_cam_ife_1,
  2523. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_1] = &qns_mem_noc_sf_cam_ife_1,
  2524. [MASTER_CAMNOC_HF_CAM_IFE_2] = &qnm_camnoc_hf_cam_ife_2,
  2525. [MASTER_CAMNOC_ICP_CAM_IFE_2] = &qnm_camnoc_icp_cam_ife_2,
  2526. [MASTER_CAMNOC_SF_CAM_IFE_2] = &qnm_camnoc_sf_cam_ife_2,
  2527. [SLAVE_MNOC_HF_MEM_NOC_CAM_IFE_2] = &qns_mem_noc_hf_cam_ife_2,
  2528. [SLAVE_MNOC_SF_MEM_NOC_CAM_IFE_2] = &qns_mem_noc_sf_cam_ife_2,
  2529. };
  2530. static char *mmss_noc_voters[] = {
  2531. "hlos",
  2532. "disp",
  2533. "cam_ife_0",
  2534. "cam_ife_1",
  2535. "cam_ife_2",
  2536. };
  2537. static struct qcom_icc_desc kalama_mmss_noc = {
  2538. .config = &icc_regmap_config,
  2539. .nodes = mmss_noc_nodes,
  2540. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2541. .bcms = mmss_noc_bcms,
  2542. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2543. .voters = mmss_noc_voters,
  2544. .num_voters = ARRAY_SIZE(mmss_noc_voters),
  2545. };
  2546. static struct qcom_icc_bcm *nsp_noc_bcms[] = {
  2547. &bcm_co0,
  2548. };
  2549. static struct qcom_icc_node *nsp_noc_nodes[] = {
  2550. [MASTER_CDSP_PROC] = &qxm_nsp,
  2551. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  2552. };
  2553. static char *nsp_noc_voters[] = {
  2554. "hlos",
  2555. };
  2556. static struct qcom_icc_desc kalama_nsp_noc = {
  2557. .config = &icc_regmap_config,
  2558. .nodes = nsp_noc_nodes,
  2559. .num_nodes = ARRAY_SIZE(nsp_noc_nodes),
  2560. .bcms = nsp_noc_bcms,
  2561. .num_bcms = ARRAY_SIZE(nsp_noc_bcms),
  2562. .voters = nsp_noc_voters,
  2563. .num_voters = ARRAY_SIZE(nsp_noc_voters),
  2564. };
  2565. static struct qcom_icc_bcm *pcie_anoc_bcms[] = {
  2566. &bcm_sn7,
  2567. };
  2568. static struct qcom_icc_node *pcie_anoc_nodes[] = {
  2569. [MASTER_PCIE_ANOC_CFG] = &qsm_pcie_anoc_cfg,
  2570. [MASTER_PCIE_0] = &xm_pcie3_0,
  2571. [MASTER_PCIE_1] = &xm_pcie3_1,
  2572. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  2573. [SLAVE_SERVICE_PCIE_ANOC] = &srvc_pcie_aggre_noc,
  2574. };
  2575. static char *pcie_anoc_voters[] = {
  2576. "hlos",
  2577. };
  2578. static struct qcom_icc_desc kalama_pcie_anoc = {
  2579. .config = &icc_regmap_config,
  2580. .nodes = pcie_anoc_nodes,
  2581. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  2582. .bcms = pcie_anoc_bcms,
  2583. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  2584. .voters = pcie_anoc_voters,
  2585. .num_voters = ARRAY_SIZE(pcie_anoc_voters),
  2586. };
  2587. static struct qcom_icc_bcm *system_noc_bcms[] = {
  2588. &bcm_sn0,
  2589. &bcm_sn1,
  2590. &bcm_sn2,
  2591. &bcm_sn3,
  2592. };
  2593. static struct qcom_icc_node *system_noc_nodes[] = {
  2594. [MASTER_GIC_AHB] = &qhm_gic,
  2595. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2596. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2597. [MASTER_GIC] = &xm_gic,
  2598. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  2599. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2600. };
  2601. static char *system_noc_voters[] = {
  2602. "hlos",
  2603. };
  2604. static struct qcom_icc_desc kalama_system_noc = {
  2605. .config = &icc_regmap_config,
  2606. .nodes = system_noc_nodes,
  2607. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2608. .bcms = system_noc_bcms,
  2609. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2610. .voters = system_noc_voters,
  2611. .num_voters = ARRAY_SIZE(system_noc_voters),
  2612. };
  2613. static int qnoc_probe(struct platform_device *pdev)
  2614. {
  2615. int ret;
  2616. ret = qcom_icc_rpmh_probe(pdev);
  2617. if (ret)
  2618. dev_err(&pdev->dev, "failed to register ICC provider\n");
  2619. else
  2620. dev_info(&pdev->dev, "Registered ICC provider\n");
  2621. return ret;
  2622. }
  2623. static const struct of_device_id qnoc_of_match[] = {
  2624. { .compatible = "qcom,kalama-aggre1_noc",
  2625. .data = &kalama_aggre1_noc},
  2626. { .compatible = "qcom,kalama-aggre2_noc",
  2627. .data = &kalama_aggre2_noc},
  2628. { .compatible = "qcom,kalama-clk_virt",
  2629. .data = &kalama_clk_virt},
  2630. { .compatible = "qcom,kalama-cnoc_cfg",
  2631. .data = &kalama_cnoc_cfg},
  2632. { .compatible = "qcom,kalama-cnoc_main",
  2633. .data = &kalama_cnoc_main},
  2634. { .compatible = "qcom,kalama-gem_noc",
  2635. .data = &kalama_gem_noc},
  2636. { .compatible = "qcom,kalama-lpass_ag_noc",
  2637. .data = &kalama_lpass_ag_noc},
  2638. { .compatible = "qcom,kalama-lpass_lpiaon_noc",
  2639. .data = &kalama_lpass_lpiaon_noc},
  2640. { .compatible = "qcom,kalama-lpass_lpicx_noc",
  2641. .data = &kalama_lpass_lpicx_noc},
  2642. { .compatible = "qcom,kalama-mc_virt",
  2643. .data = &kalama_mc_virt},
  2644. { .compatible = "qcom,kalama-mmss_noc",
  2645. .data = &kalama_mmss_noc},
  2646. { .compatible = "qcom,kalama-nsp_noc",
  2647. .data = &kalama_nsp_noc},
  2648. { .compatible = "qcom,kalama-pcie_anoc",
  2649. .data = &kalama_pcie_anoc},
  2650. { .compatible = "qcom,kalama-system_noc",
  2651. .data = &kalama_system_noc},
  2652. { }
  2653. };
  2654. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2655. static struct platform_driver qnoc_driver = {
  2656. .probe = qnoc_probe,
  2657. .remove = qcom_icc_rpmh_remove,
  2658. .driver = {
  2659. .name = "qnoc-kalama",
  2660. .of_match_table = qnoc_of_match,
  2661. .sync_state = qcom_icc_rpmh_sync_state,
  2662. },
  2663. };
  2664. static int __init qnoc_driver_init(void)
  2665. {
  2666. return platform_driver_register(&qnoc_driver);
  2667. }
  2668. core_initcall(qnoc_driver_init);
  2669. MODULE_DESCRIPTION("kalama NoC driver");
  2670. MODULE_LICENSE("GPL");