pineapple.c 78 KB

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