sa8775p.c 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc. All rights reserved.
  4. * Copyright (c) 2023, Linaro Limited
  5. */
  6. #include <linux/device.h>
  7. #include <linux/interconnect.h>
  8. #include <linux/interconnect-provider.h>
  9. #include <linux/mod_devicetable.h>
  10. #include <linux/module.h>
  11. #include <linux/platform_device.h>
  12. #include <dt-bindings/interconnect/qcom,sa8775p-rpmh.h>
  13. #include "bcm-voter.h"
  14. #include "icc-rpmh.h"
  15. #define SA8775P_MASTER_GPU_TCU 0
  16. #define SA8775P_MASTER_PCIE_TCU 1
  17. #define SA8775P_MASTER_SYS_TCU 2
  18. #define SA8775P_MASTER_APPSS_PROC 3
  19. #define SA8775P_MASTER_LLCC 4
  20. #define SA8775P_MASTER_CNOC_LPASS_AG_NOC 5
  21. #define SA8775P_MASTER_GIC_AHB 6
  22. #define SA8775P_MASTER_CDSP_NOC_CFG 7
  23. #define SA8775P_MASTER_CDSPB_NOC_CFG 8
  24. #define SA8775P_MASTER_QDSS_BAM 9
  25. #define SA8775P_MASTER_QUP_0 10
  26. #define SA8775P_MASTER_QUP_1 11
  27. #define SA8775P_MASTER_QUP_2 12
  28. #define SA8775P_MASTER_A1NOC_SNOC 13
  29. #define SA8775P_MASTER_A2NOC_SNOC 14
  30. #define SA8775P_MASTER_CAMNOC_HF 15
  31. #define SA8775P_MASTER_CAMNOC_ICP 16
  32. #define SA8775P_MASTER_CAMNOC_SF 17
  33. #define SA8775P_MASTER_COMPUTE_NOC 18
  34. #define SA8775P_MASTER_COMPUTE_NOC_1 19
  35. #define SA8775P_MASTER_CNOC_A2NOC 20
  36. #define SA8775P_MASTER_CNOC_DC_NOC 21
  37. #define SA8775P_MASTER_GEM_NOC_CFG 22
  38. #define SA8775P_MASTER_GEM_NOC_CNOC 23
  39. #define SA8775P_MASTER_GEM_NOC_PCIE_SNOC 24
  40. #define SA8775P_MASTER_GPDSP_SAIL 25
  41. #define SA8775P_MASTER_GFX3D 26
  42. #define SA8775P_MASTER_LPASS_ANOC 27
  43. #define SA8775P_MASTER_MDP0 28
  44. #define SA8775P_MASTER_MDP1 29
  45. #define SA8775P_MASTER_MDP_CORE1_0 30
  46. #define SA8775P_MASTER_MDP_CORE1_1 31
  47. #define SA8775P_MASTER_MNOC_HF_MEM_NOC 32
  48. #define SA8775P_MASTER_CNOC_MNOC_HF_CFG 33
  49. #define SA8775P_MASTER_MNOC_SF_MEM_NOC 34
  50. #define SA8775P_MASTER_CNOC_MNOC_SF_CFG 35
  51. #define SA8775P_MASTER_ANOC_PCIE_GEM_NOC 36
  52. #define SA8775P_MASTER_SNOC_CFG 37
  53. #define SA8775P_MASTER_SNOC_GC_MEM_NOC 38
  54. #define SA8775P_MASTER_SNOC_SF_MEM_NOC 39
  55. #define SA8775P_MASTER_VIDEO_P0 40
  56. #define SA8775P_MASTER_VIDEO_P1 41
  57. #define SA8775P_MASTER_VIDEO_PROC 42
  58. #define SA8775P_MASTER_VIDEO_V_PROC 43
  59. #define SA8775P_MASTER_QUP_CORE_0 44
  60. #define SA8775P_MASTER_QUP_CORE_1 45
  61. #define SA8775P_MASTER_QUP_CORE_2 46
  62. #define SA8775P_MASTER_QUP_CORE_3 47
  63. #define SA8775P_MASTER_CRYPTO_CORE0 48
  64. #define SA8775P_MASTER_CRYPTO_CORE1 49
  65. #define SA8775P_MASTER_DSP0 50
  66. #define SA8775P_MASTER_DSP1 51
  67. #define SA8775P_MASTER_IPA 52
  68. #define SA8775P_MASTER_LPASS_PROC 53
  69. #define SA8775P_MASTER_CDSP_PROC 54
  70. #define SA8775P_MASTER_CDSP_PROC_B 55
  71. #define SA8775P_MASTER_PIMEM 56
  72. #define SA8775P_MASTER_QUP_3 57
  73. #define SA8775P_MASTER_EMAC 58
  74. #define SA8775P_MASTER_EMAC_1 59
  75. #define SA8775P_MASTER_GIC 60
  76. #define SA8775P_MASTER_PCIE_0 61
  77. #define SA8775P_MASTER_PCIE_1 62
  78. #define SA8775P_MASTER_QDSS_ETR_0 63
  79. #define SA8775P_MASTER_QDSS_ETR_1 64
  80. #define SA8775P_MASTER_SDC 65
  81. #define SA8775P_MASTER_UFS_CARD 66
  82. #define SA8775P_MASTER_UFS_MEM 67
  83. #define SA8775P_MASTER_USB2 68
  84. #define SA8775P_MASTER_USB3_0 69
  85. #define SA8775P_MASTER_USB3_1 70
  86. #define SA8775P_SLAVE_EBI1 512
  87. #define SA8775P_SLAVE_AHB2PHY_0 513
  88. #define SA8775P_SLAVE_AHB2PHY_1 514
  89. #define SA8775P_SLAVE_AHB2PHY_2 515
  90. #define SA8775P_SLAVE_AHB2PHY_3 516
  91. #define SA8775P_SLAVE_ANOC_THROTTLE_CFG 517
  92. #define SA8775P_SLAVE_AOSS 518
  93. #define SA8775P_SLAVE_APPSS 519
  94. #define SA8775P_SLAVE_BOOT_ROM 520
  95. #define SA8775P_SLAVE_CAMERA_CFG 521
  96. #define SA8775P_SLAVE_CAMERA_NRT_THROTTLE_CFG 522
  97. #define SA8775P_SLAVE_CAMERA_RT_THROTTLE_CFG 523
  98. #define SA8775P_SLAVE_CLK_CTL 524
  99. #define SA8775P_SLAVE_CDSP_CFG 525
  100. #define SA8775P_SLAVE_CDSP1_CFG 526
  101. #define SA8775P_SLAVE_RBCPR_CX_CFG 527
  102. #define SA8775P_SLAVE_RBCPR_MMCX_CFG 528
  103. #define SA8775P_SLAVE_RBCPR_MX_CFG 529
  104. #define SA8775P_SLAVE_CPR_NSPCX 530
  105. #define SA8775P_SLAVE_CRYPTO_0_CFG 531
  106. #define SA8775P_SLAVE_CX_RDPM 532
  107. #define SA8775P_SLAVE_DISPLAY_CFG 533
  108. #define SA8775P_SLAVE_DISPLAY_RT_THROTTLE_CFG 534
  109. #define SA8775P_SLAVE_DISPLAY1_CFG 535
  110. #define SA8775P_SLAVE_DISPLAY1_RT_THROTTLE_CFG 536
  111. #define SA8775P_SLAVE_EMAC_CFG 537
  112. #define SA8775P_SLAVE_EMAC1_CFG 538
  113. #define SA8775P_SLAVE_GP_DSP0_CFG 539
  114. #define SA8775P_SLAVE_GP_DSP1_CFG 540
  115. #define SA8775P_SLAVE_GPDSP0_THROTTLE_CFG 541
  116. #define SA8775P_SLAVE_GPDSP1_THROTTLE_CFG 542
  117. #define SA8775P_SLAVE_GPU_TCU_THROTTLE_CFG 543
  118. #define SA8775P_SLAVE_GFX3D_CFG 544
  119. #define SA8775P_SLAVE_HWKM 545
  120. #define SA8775P_SLAVE_IMEM_CFG 546
  121. #define SA8775P_SLAVE_IPA_CFG 547
  122. #define SA8775P_SLAVE_IPC_ROUTER_CFG 548
  123. #define SA8775P_SLAVE_LLCC_CFG 549
  124. #define SA8775P_SLAVE_LPASS 550
  125. #define SA8775P_SLAVE_LPASS_CORE_CFG 551
  126. #define SA8775P_SLAVE_LPASS_LPI_CFG 552
  127. #define SA8775P_SLAVE_LPASS_MPU_CFG 553
  128. #define SA8775P_SLAVE_LPASS_THROTTLE_CFG 554
  129. #define SA8775P_SLAVE_LPASS_TOP_CFG 555
  130. #define SA8775P_SLAVE_MX_RDPM 556
  131. #define SA8775P_SLAVE_MXC_RDPM 557
  132. #define SA8775P_SLAVE_PCIE_0_CFG 558
  133. #define SA8775P_SLAVE_PCIE_1_CFG 559
  134. #define SA8775P_SLAVE_PCIE_RSC_CFG 560
  135. #define SA8775P_SLAVE_PCIE_TCU_THROTTLE_CFG 561
  136. #define SA8775P_SLAVE_PCIE_THROTTLE_CFG 562
  137. #define SA8775P_SLAVE_PDM 563
  138. #define SA8775P_SLAVE_PIMEM_CFG 564
  139. #define SA8775P_SLAVE_PKA_WRAPPER_CFG 565
  140. #define SA8775P_SLAVE_QDSS_CFG 566
  141. #define SA8775P_SLAVE_QM_CFG 567
  142. #define SA8775P_SLAVE_QM_MPU_CFG 568
  143. #define SA8775P_SLAVE_QUP_0 569
  144. #define SA8775P_SLAVE_QUP_1 570
  145. #define SA8775P_SLAVE_QUP_2 571
  146. #define SA8775P_SLAVE_QUP_3 572
  147. #define SA8775P_SLAVE_SAIL_THROTTLE_CFG 573
  148. #define SA8775P_SLAVE_SDC1 574
  149. #define SA8775P_SLAVE_SECURITY 575
  150. #define SA8775P_SLAVE_SNOC_THROTTLE_CFG 576
  151. #define SA8775P_SLAVE_TCSR 577
  152. #define SA8775P_SLAVE_TLMM 578
  153. #define SA8775P_SLAVE_TSC_CFG 579
  154. #define SA8775P_SLAVE_UFS_CARD_CFG 580
  155. #define SA8775P_SLAVE_UFS_MEM_CFG 581
  156. #define SA8775P_SLAVE_USB2 582
  157. #define SA8775P_SLAVE_USB3_0 583
  158. #define SA8775P_SLAVE_USB3_1 584
  159. #define SA8775P_SLAVE_VENUS_CFG 585
  160. #define SA8775P_SLAVE_VENUS_CVP_THROTTLE_CFG 586
  161. #define SA8775P_SLAVE_VENUS_V_CPU_THROTTLE_CFG 587
  162. #define SA8775P_SLAVE_VENUS_VCODEC_THROTTLE_CFG 588
  163. #define SA8775P_SLAVE_A1NOC_SNOC 589
  164. #define SA8775P_SLAVE_A2NOC_SNOC 590
  165. #define SA8775P_SLAVE_DDRSS_CFG 591
  166. #define SA8775P_SLAVE_GEM_NOC_CNOC 592
  167. #define SA8775P_SLAVE_GEM_NOC_CFG 593
  168. #define SA8775P_SLAVE_SNOC_GEM_NOC_GC 594
  169. #define SA8775P_SLAVE_SNOC_GEM_NOC_SF 595
  170. #define SA8775P_SLAVE_GP_DSP_SAIL_NOC 596
  171. #define SA8775P_SLAVE_GPDSP_NOC_CFG 597
  172. #define SA8775P_SLAVE_HCP_A 598
  173. #define SA8775P_SLAVE_LLCC 599
  174. #define SA8775P_SLAVE_MNOC_HF_MEM_NOC 600
  175. #define SA8775P_SLAVE_MNOC_SF_MEM_NOC 601
  176. #define SA8775P_SLAVE_CNOC_MNOC_HF_CFG 602
  177. #define SA8775P_SLAVE_CNOC_MNOC_SF_CFG 603
  178. #define SA8775P_SLAVE_CDSP_MEM_NOC 604
  179. #define SA8775P_SLAVE_CDSPB_MEM_NOC 605
  180. #define SA8775P_SLAVE_HCP_B 606
  181. #define SA8775P_SLAVE_GEM_NOC_PCIE_CNOC 607
  182. #define SA8775P_SLAVE_PCIE_ANOC_CFG 608
  183. #define SA8775P_SLAVE_ANOC_PCIE_GEM_NOC 609
  184. #define SA8775P_SLAVE_SNOC_CFG 610
  185. #define SA8775P_SLAVE_LPASS_SNOC 611
  186. #define SA8775P_SLAVE_QUP_CORE_0 612
  187. #define SA8775P_SLAVE_QUP_CORE_1 613
  188. #define SA8775P_SLAVE_QUP_CORE_2 614
  189. #define SA8775P_SLAVE_QUP_CORE_3 615
  190. #define SA8775P_SLAVE_BOOT_IMEM 616
  191. #define SA8775P_SLAVE_IMEM 617
  192. #define SA8775P_SLAVE_PIMEM 618
  193. #define SA8775P_SLAVE_SERVICE_NSP_NOC 619
  194. #define SA8775P_SLAVE_SERVICE_NSPB_NOC 620
  195. #define SA8775P_SLAVE_SERVICE_GEM_NOC_1 621
  196. #define SA8775P_SLAVE_SERVICE_MNOC_HF 622
  197. #define SA8775P_SLAVE_SERVICE_MNOC_SF 623
  198. #define SA8775P_SLAVE_SERVICES_LPASS_AML_NOC 624
  199. #define SA8775P_SLAVE_SERVICE_LPASS_AG_NOC 625
  200. #define SA8775P_SLAVE_SERVICE_GEM_NOC_2 626
  201. #define SA8775P_SLAVE_SERVICE_SNOC 627
  202. #define SA8775P_SLAVE_SERVICE_GEM_NOC 628
  203. #define SA8775P_SLAVE_SERVICE_GEM_NOC2 629
  204. #define SA8775P_SLAVE_PCIE_0 630
  205. #define SA8775P_SLAVE_PCIE_1 631
  206. #define SA8775P_SLAVE_QDSS_STM 632
  207. #define SA8775P_SLAVE_TCU 633
  208. static struct qcom_icc_node qxm_qup3 = {
  209. .name = "qxm_qup3",
  210. .id = SA8775P_MASTER_QUP_3,
  211. .channels = 1,
  212. .buswidth = 8,
  213. .num_links = 1,
  214. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  215. };
  216. static struct qcom_icc_node xm_emac_0 = {
  217. .name = "xm_emac_0",
  218. .id = SA8775P_MASTER_EMAC,
  219. .channels = 1,
  220. .buswidth = 8,
  221. .num_links = 1,
  222. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  223. };
  224. static struct qcom_icc_node xm_emac_1 = {
  225. .name = "xm_emac_1",
  226. .id = SA8775P_MASTER_EMAC_1,
  227. .channels = 1,
  228. .buswidth = 8,
  229. .num_links = 1,
  230. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  231. };
  232. static struct qcom_icc_node xm_sdc1 = {
  233. .name = "xm_sdc1",
  234. .id = SA8775P_MASTER_SDC,
  235. .channels = 1,
  236. .buswidth = 8,
  237. .num_links = 1,
  238. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  239. };
  240. static struct qcom_icc_node xm_ufs_mem = {
  241. .name = "xm_ufs_mem",
  242. .id = SA8775P_MASTER_UFS_MEM,
  243. .channels = 1,
  244. .buswidth = 8,
  245. .num_links = 1,
  246. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  247. };
  248. static struct qcom_icc_node xm_usb2_2 = {
  249. .name = "xm_usb2_2",
  250. .id = SA8775P_MASTER_USB2,
  251. .channels = 1,
  252. .buswidth = 8,
  253. .num_links = 1,
  254. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  255. };
  256. static struct qcom_icc_node xm_usb3_0 = {
  257. .name = "xm_usb3_0",
  258. .id = SA8775P_MASTER_USB3_0,
  259. .channels = 1,
  260. .buswidth = 8,
  261. .num_links = 1,
  262. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  263. };
  264. static struct qcom_icc_node xm_usb3_1 = {
  265. .name = "xm_usb3_1",
  266. .id = SA8775P_MASTER_USB3_1,
  267. .channels = 1,
  268. .buswidth = 8,
  269. .num_links = 1,
  270. .links = { SA8775P_SLAVE_A1NOC_SNOC },
  271. };
  272. static struct qcom_icc_node qhm_qdss_bam = {
  273. .name = "qhm_qdss_bam",
  274. .id = SA8775P_MASTER_QDSS_BAM,
  275. .channels = 1,
  276. .buswidth = 4,
  277. .num_links = 1,
  278. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  279. };
  280. static struct qcom_icc_node qhm_qup0 = {
  281. .name = "qhm_qup0",
  282. .id = SA8775P_MASTER_QUP_0,
  283. .channels = 1,
  284. .buswidth = 4,
  285. .num_links = 1,
  286. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  287. };
  288. static struct qcom_icc_node qhm_qup1 = {
  289. .name = "qhm_qup1",
  290. .id = SA8775P_MASTER_QUP_1,
  291. .channels = 1,
  292. .buswidth = 4,
  293. .num_links = 1,
  294. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  295. };
  296. static struct qcom_icc_node qhm_qup2 = {
  297. .name = "qhm_qup2",
  298. .id = SA8775P_MASTER_QUP_2,
  299. .channels = 1,
  300. .buswidth = 4,
  301. .num_links = 1,
  302. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  303. };
  304. static struct qcom_icc_node qnm_cnoc_datapath = {
  305. .name = "qnm_cnoc_datapath",
  306. .id = SA8775P_MASTER_CNOC_A2NOC,
  307. .channels = 1,
  308. .buswidth = 8,
  309. .num_links = 1,
  310. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  311. };
  312. static struct qcom_icc_node qxm_crypto_0 = {
  313. .name = "qxm_crypto_0",
  314. .id = SA8775P_MASTER_CRYPTO_CORE0,
  315. .channels = 1,
  316. .buswidth = 8,
  317. .num_links = 1,
  318. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  319. };
  320. static struct qcom_icc_node qxm_crypto_1 = {
  321. .name = "qxm_crypto_1",
  322. .id = SA8775P_MASTER_CRYPTO_CORE1,
  323. .channels = 1,
  324. .buswidth = 8,
  325. .num_links = 1,
  326. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  327. };
  328. static struct qcom_icc_node qxm_ipa = {
  329. .name = "qxm_ipa",
  330. .id = SA8775P_MASTER_IPA,
  331. .channels = 1,
  332. .buswidth = 8,
  333. .num_links = 1,
  334. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  335. };
  336. static struct qcom_icc_node xm_qdss_etr_0 = {
  337. .name = "xm_qdss_etr_0",
  338. .id = SA8775P_MASTER_QDSS_ETR_0,
  339. .channels = 1,
  340. .buswidth = 8,
  341. .num_links = 1,
  342. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  343. };
  344. static struct qcom_icc_node xm_qdss_etr_1 = {
  345. .name = "xm_qdss_etr_1",
  346. .id = SA8775P_MASTER_QDSS_ETR_1,
  347. .channels = 1,
  348. .buswidth = 8,
  349. .num_links = 1,
  350. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  351. };
  352. static struct qcom_icc_node xm_ufs_card = {
  353. .name = "xm_ufs_card",
  354. .id = SA8775P_MASTER_UFS_CARD,
  355. .channels = 1,
  356. .buswidth = 8,
  357. .num_links = 1,
  358. .links = { SA8775P_SLAVE_A2NOC_SNOC },
  359. };
  360. static struct qcom_icc_node qup0_core_master = {
  361. .name = "qup0_core_master",
  362. .id = SA8775P_MASTER_QUP_CORE_0,
  363. .channels = 1,
  364. .buswidth = 4,
  365. .num_links = 1,
  366. .links = { SA8775P_SLAVE_QUP_CORE_0 },
  367. };
  368. static struct qcom_icc_node qup1_core_master = {
  369. .name = "qup1_core_master",
  370. .id = SA8775P_MASTER_QUP_CORE_1,
  371. .channels = 1,
  372. .buswidth = 4,
  373. .num_links = 1,
  374. .links = { SA8775P_SLAVE_QUP_CORE_1 },
  375. };
  376. static struct qcom_icc_node qup2_core_master = {
  377. .name = "qup2_core_master",
  378. .id = SA8775P_MASTER_QUP_CORE_2,
  379. .channels = 1,
  380. .buswidth = 4,
  381. .num_links = 1,
  382. .links = { SA8775P_SLAVE_QUP_CORE_2 },
  383. };
  384. static struct qcom_icc_node qup3_core_master = {
  385. .name = "qup3_core_master",
  386. .id = SA8775P_MASTER_QUP_CORE_3,
  387. .channels = 1,
  388. .buswidth = 4,
  389. .num_links = 1,
  390. .links = { SA8775P_SLAVE_QUP_CORE_3 },
  391. };
  392. static struct qcom_icc_node qnm_gemnoc_cnoc = {
  393. .name = "qnm_gemnoc_cnoc",
  394. .id = SA8775P_MASTER_GEM_NOC_CNOC,
  395. .channels = 1,
  396. .buswidth = 16,
  397. .num_links = 82,
  398. .links = { SA8775P_SLAVE_AHB2PHY_0,
  399. SA8775P_SLAVE_AHB2PHY_1,
  400. SA8775P_SLAVE_AHB2PHY_2,
  401. SA8775P_SLAVE_AHB2PHY_3,
  402. SA8775P_SLAVE_ANOC_THROTTLE_CFG,
  403. SA8775P_SLAVE_AOSS,
  404. SA8775P_SLAVE_APPSS,
  405. SA8775P_SLAVE_BOOT_ROM,
  406. SA8775P_SLAVE_CAMERA_CFG,
  407. SA8775P_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  408. SA8775P_SLAVE_CAMERA_RT_THROTTLE_CFG,
  409. SA8775P_SLAVE_CLK_CTL,
  410. SA8775P_SLAVE_CDSP_CFG,
  411. SA8775P_SLAVE_CDSP1_CFG,
  412. SA8775P_SLAVE_RBCPR_CX_CFG,
  413. SA8775P_SLAVE_RBCPR_MMCX_CFG,
  414. SA8775P_SLAVE_RBCPR_MX_CFG,
  415. SA8775P_SLAVE_CPR_NSPCX,
  416. SA8775P_SLAVE_CRYPTO_0_CFG,
  417. SA8775P_SLAVE_CX_RDPM,
  418. SA8775P_SLAVE_DISPLAY_CFG,
  419. SA8775P_SLAVE_DISPLAY_RT_THROTTLE_CFG,
  420. SA8775P_SLAVE_DISPLAY1_CFG,
  421. SA8775P_SLAVE_DISPLAY1_RT_THROTTLE_CFG,
  422. SA8775P_SLAVE_EMAC_CFG,
  423. SA8775P_SLAVE_EMAC1_CFG,
  424. SA8775P_SLAVE_GP_DSP0_CFG,
  425. SA8775P_SLAVE_GP_DSP1_CFG,
  426. SA8775P_SLAVE_GPDSP0_THROTTLE_CFG,
  427. SA8775P_SLAVE_GPDSP1_THROTTLE_CFG,
  428. SA8775P_SLAVE_GPU_TCU_THROTTLE_CFG,
  429. SA8775P_SLAVE_GFX3D_CFG,
  430. SA8775P_SLAVE_HWKM,
  431. SA8775P_SLAVE_IMEM_CFG,
  432. SA8775P_SLAVE_IPA_CFG,
  433. SA8775P_SLAVE_IPC_ROUTER_CFG,
  434. SA8775P_SLAVE_LPASS,
  435. SA8775P_SLAVE_LPASS_THROTTLE_CFG,
  436. SA8775P_SLAVE_MX_RDPM,
  437. SA8775P_SLAVE_MXC_RDPM,
  438. SA8775P_SLAVE_PCIE_0_CFG,
  439. SA8775P_SLAVE_PCIE_1_CFG,
  440. SA8775P_SLAVE_PCIE_RSC_CFG,
  441. SA8775P_SLAVE_PCIE_TCU_THROTTLE_CFG,
  442. SA8775P_SLAVE_PCIE_THROTTLE_CFG,
  443. SA8775P_SLAVE_PDM,
  444. SA8775P_SLAVE_PIMEM_CFG,
  445. SA8775P_SLAVE_PKA_WRAPPER_CFG,
  446. SA8775P_SLAVE_QDSS_CFG,
  447. SA8775P_SLAVE_QM_CFG,
  448. SA8775P_SLAVE_QM_MPU_CFG,
  449. SA8775P_SLAVE_QUP_0,
  450. SA8775P_SLAVE_QUP_1,
  451. SA8775P_SLAVE_QUP_2,
  452. SA8775P_SLAVE_QUP_3,
  453. SA8775P_SLAVE_SAIL_THROTTLE_CFG,
  454. SA8775P_SLAVE_SDC1,
  455. SA8775P_SLAVE_SECURITY,
  456. SA8775P_SLAVE_SNOC_THROTTLE_CFG,
  457. SA8775P_SLAVE_TCSR,
  458. SA8775P_SLAVE_TLMM,
  459. SA8775P_SLAVE_TSC_CFG,
  460. SA8775P_SLAVE_UFS_CARD_CFG,
  461. SA8775P_SLAVE_UFS_MEM_CFG,
  462. SA8775P_SLAVE_USB2,
  463. SA8775P_SLAVE_USB3_0,
  464. SA8775P_SLAVE_USB3_1,
  465. SA8775P_SLAVE_VENUS_CFG,
  466. SA8775P_SLAVE_VENUS_CVP_THROTTLE_CFG,
  467. SA8775P_SLAVE_VENUS_V_CPU_THROTTLE_CFG,
  468. SA8775P_SLAVE_VENUS_VCODEC_THROTTLE_CFG,
  469. SA8775P_SLAVE_DDRSS_CFG,
  470. SA8775P_SLAVE_GPDSP_NOC_CFG,
  471. SA8775P_SLAVE_CNOC_MNOC_HF_CFG,
  472. SA8775P_SLAVE_CNOC_MNOC_SF_CFG,
  473. SA8775P_SLAVE_PCIE_ANOC_CFG,
  474. SA8775P_SLAVE_SNOC_CFG,
  475. SA8775P_SLAVE_BOOT_IMEM,
  476. SA8775P_SLAVE_IMEM,
  477. SA8775P_SLAVE_PIMEM,
  478. SA8775P_SLAVE_QDSS_STM,
  479. SA8775P_SLAVE_TCU
  480. },
  481. };
  482. static struct qcom_icc_node qnm_gemnoc_pcie = {
  483. .name = "qnm_gemnoc_pcie",
  484. .id = SA8775P_MASTER_GEM_NOC_PCIE_SNOC,
  485. .channels = 1,
  486. .buswidth = 16,
  487. .num_links = 2,
  488. .links = { SA8775P_SLAVE_PCIE_0,
  489. SA8775P_SLAVE_PCIE_1
  490. },
  491. };
  492. static struct qcom_icc_node qnm_cnoc_dc_noc = {
  493. .name = "qnm_cnoc_dc_noc",
  494. .id = SA8775P_MASTER_CNOC_DC_NOC,
  495. .channels = 1,
  496. .buswidth = 4,
  497. .num_links = 2,
  498. .links = { SA8775P_SLAVE_LLCC_CFG,
  499. SA8775P_SLAVE_GEM_NOC_CFG
  500. },
  501. };
  502. static struct qcom_icc_node alm_gpu_tcu = {
  503. .name = "alm_gpu_tcu",
  504. .id = SA8775P_MASTER_GPU_TCU,
  505. .channels = 1,
  506. .buswidth = 8,
  507. .num_links = 2,
  508. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  509. SA8775P_SLAVE_LLCC
  510. },
  511. };
  512. static struct qcom_icc_node alm_pcie_tcu = {
  513. .name = "alm_pcie_tcu",
  514. .id = SA8775P_MASTER_PCIE_TCU,
  515. .channels = 1,
  516. .buswidth = 8,
  517. .num_links = 2,
  518. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  519. SA8775P_SLAVE_LLCC
  520. },
  521. };
  522. static struct qcom_icc_node alm_sys_tcu = {
  523. .name = "alm_sys_tcu",
  524. .id = SA8775P_MASTER_SYS_TCU,
  525. .channels = 1,
  526. .buswidth = 8,
  527. .num_links = 2,
  528. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  529. SA8775P_SLAVE_LLCC
  530. },
  531. };
  532. static struct qcom_icc_node chm_apps = {
  533. .name = "chm_apps",
  534. .id = SA8775P_MASTER_APPSS_PROC,
  535. .channels = 4,
  536. .buswidth = 32,
  537. .num_links = 3,
  538. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  539. SA8775P_SLAVE_LLCC,
  540. SA8775P_SLAVE_GEM_NOC_PCIE_CNOC
  541. },
  542. };
  543. static struct qcom_icc_node qnm_cmpnoc0 = {
  544. .name = "qnm_cmpnoc0",
  545. .id = SA8775P_MASTER_COMPUTE_NOC,
  546. .channels = 2,
  547. .buswidth = 32,
  548. .num_links = 2,
  549. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  550. SA8775P_SLAVE_LLCC
  551. },
  552. };
  553. static struct qcom_icc_node qnm_cmpnoc1 = {
  554. .name = "qnm_cmpnoc1",
  555. .id = SA8775P_MASTER_COMPUTE_NOC_1,
  556. .channels = 2,
  557. .buswidth = 32,
  558. .num_links = 2,
  559. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  560. SA8775P_SLAVE_LLCC
  561. },
  562. };
  563. static struct qcom_icc_node qnm_gemnoc_cfg = {
  564. .name = "qnm_gemnoc_cfg",
  565. .id = SA8775P_MASTER_GEM_NOC_CFG,
  566. .channels = 1,
  567. .buswidth = 4,
  568. .num_links = 4,
  569. .links = { SA8775P_SLAVE_SERVICE_GEM_NOC_1,
  570. SA8775P_SLAVE_SERVICE_GEM_NOC_2,
  571. SA8775P_SLAVE_SERVICE_GEM_NOC,
  572. SA8775P_SLAVE_SERVICE_GEM_NOC2
  573. },
  574. };
  575. static struct qcom_icc_node qnm_gpdsp_sail = {
  576. .name = "qnm_gpdsp_sail",
  577. .id = SA8775P_MASTER_GPDSP_SAIL,
  578. .channels = 1,
  579. .buswidth = 16,
  580. .num_links = 2,
  581. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  582. SA8775P_SLAVE_LLCC
  583. },
  584. };
  585. static struct qcom_icc_node qnm_gpu = {
  586. .name = "qnm_gpu",
  587. .id = SA8775P_MASTER_GFX3D,
  588. .channels = 2,
  589. .buswidth = 32,
  590. .num_links = 2,
  591. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  592. SA8775P_SLAVE_LLCC
  593. },
  594. };
  595. static struct qcom_icc_node qnm_mnoc_hf = {
  596. .name = "qnm_mnoc_hf",
  597. .id = SA8775P_MASTER_MNOC_HF_MEM_NOC,
  598. .channels = 2,
  599. .buswidth = 32,
  600. .num_links = 2,
  601. .links = { SA8775P_SLAVE_LLCC,
  602. SA8775P_SLAVE_GEM_NOC_PCIE_CNOC
  603. },
  604. };
  605. static struct qcom_icc_node qnm_mnoc_sf = {
  606. .name = "qnm_mnoc_sf",
  607. .id = SA8775P_MASTER_MNOC_SF_MEM_NOC,
  608. .channels = 2,
  609. .buswidth = 32,
  610. .num_links = 3,
  611. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  612. SA8775P_SLAVE_LLCC,
  613. SA8775P_SLAVE_GEM_NOC_PCIE_CNOC
  614. },
  615. };
  616. static struct qcom_icc_node qnm_pcie = {
  617. .name = "qnm_pcie",
  618. .id = SA8775P_MASTER_ANOC_PCIE_GEM_NOC,
  619. .channels = 1,
  620. .buswidth = 32,
  621. .num_links = 2,
  622. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  623. SA8775P_SLAVE_LLCC
  624. },
  625. };
  626. static struct qcom_icc_node qnm_snoc_gc = {
  627. .name = "qnm_snoc_gc",
  628. .id = SA8775P_MASTER_SNOC_GC_MEM_NOC,
  629. .channels = 1,
  630. .buswidth = 8,
  631. .num_links = 1,
  632. .links = { SA8775P_SLAVE_LLCC },
  633. };
  634. static struct qcom_icc_node qnm_snoc_sf = {
  635. .name = "qnm_snoc_sf",
  636. .id = SA8775P_MASTER_SNOC_SF_MEM_NOC,
  637. .channels = 1,
  638. .buswidth = 16,
  639. .num_links = 3,
  640. .links = { SA8775P_SLAVE_GEM_NOC_CNOC,
  641. SA8775P_SLAVE_LLCC,
  642. SA8775P_SLAVE_GEM_NOC_PCIE_CNOC },
  643. };
  644. static struct qcom_icc_node qxm_dsp0 = {
  645. .name = "qxm_dsp0",
  646. .id = SA8775P_MASTER_DSP0,
  647. .channels = 1,
  648. .buswidth = 16,
  649. .num_links = 1,
  650. .links = { SA8775P_SLAVE_GP_DSP_SAIL_NOC },
  651. };
  652. static struct qcom_icc_node qxm_dsp1 = {
  653. .name = "qxm_dsp1",
  654. .id = SA8775P_MASTER_DSP1,
  655. .channels = 1,
  656. .buswidth = 16,
  657. .num_links = 1,
  658. .links = { SA8775P_SLAVE_GP_DSP_SAIL_NOC },
  659. };
  660. static struct qcom_icc_node qhm_config_noc = {
  661. .name = "qhm_config_noc",
  662. .id = SA8775P_MASTER_CNOC_LPASS_AG_NOC,
  663. .channels = 1,
  664. .buswidth = 4,
  665. .num_links = 6,
  666. .links = { SA8775P_SLAVE_LPASS_CORE_CFG,
  667. SA8775P_SLAVE_LPASS_LPI_CFG,
  668. SA8775P_SLAVE_LPASS_MPU_CFG,
  669. SA8775P_SLAVE_LPASS_TOP_CFG,
  670. SA8775P_SLAVE_SERVICES_LPASS_AML_NOC,
  671. SA8775P_SLAVE_SERVICE_LPASS_AG_NOC
  672. },
  673. };
  674. static struct qcom_icc_node qxm_lpass_dsp = {
  675. .name = "qxm_lpass_dsp",
  676. .id = SA8775P_MASTER_LPASS_PROC,
  677. .channels = 1,
  678. .buswidth = 8,
  679. .num_links = 4,
  680. .links = { SA8775P_SLAVE_LPASS_TOP_CFG,
  681. SA8775P_SLAVE_LPASS_SNOC,
  682. SA8775P_SLAVE_SERVICES_LPASS_AML_NOC,
  683. SA8775P_SLAVE_SERVICE_LPASS_AG_NOC
  684. },
  685. };
  686. static struct qcom_icc_node llcc_mc = {
  687. .name = "llcc_mc",
  688. .id = SA8775P_MASTER_LLCC,
  689. .channels = 8,
  690. .buswidth = 4,
  691. .num_links = 1,
  692. .links = { SA8775P_SLAVE_EBI1 },
  693. };
  694. static struct qcom_icc_node qnm_camnoc_hf = {
  695. .name = "qnm_camnoc_hf",
  696. .id = SA8775P_MASTER_CAMNOC_HF,
  697. .channels = 1,
  698. .buswidth = 32,
  699. .num_links = 1,
  700. .links = { SA8775P_SLAVE_MNOC_HF_MEM_NOC },
  701. };
  702. static struct qcom_icc_node qnm_camnoc_icp = {
  703. .name = "qnm_camnoc_icp",
  704. .id = SA8775P_MASTER_CAMNOC_ICP,
  705. .channels = 1,
  706. .buswidth = 8,
  707. .num_links = 1,
  708. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  709. };
  710. static struct qcom_icc_node qnm_camnoc_sf = {
  711. .name = "qnm_camnoc_sf",
  712. .id = SA8775P_MASTER_CAMNOC_SF,
  713. .channels = 1,
  714. .buswidth = 32,
  715. .num_links = 1,
  716. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  717. };
  718. static struct qcom_icc_node qnm_mdp0_0 = {
  719. .name = "qnm_mdp0_0",
  720. .id = SA8775P_MASTER_MDP0,
  721. .channels = 1,
  722. .buswidth = 32,
  723. .num_links = 1,
  724. .links = { SA8775P_SLAVE_MNOC_HF_MEM_NOC },
  725. };
  726. static struct qcom_icc_node qnm_mdp0_1 = {
  727. .name = "qnm_mdp0_1",
  728. .id = SA8775P_MASTER_MDP1,
  729. .channels = 1,
  730. .buswidth = 32,
  731. .num_links = 1,
  732. .links = { SA8775P_SLAVE_MNOC_HF_MEM_NOC },
  733. };
  734. static struct qcom_icc_node qnm_mdp1_0 = {
  735. .name = "qnm_mdp1_0",
  736. .id = SA8775P_MASTER_MDP_CORE1_0,
  737. .channels = 1,
  738. .buswidth = 32,
  739. .num_links = 1,
  740. .links = { SA8775P_SLAVE_MNOC_HF_MEM_NOC },
  741. };
  742. static struct qcom_icc_node qnm_mdp1_1 = {
  743. .name = "qnm_mdp1_1",
  744. .id = SA8775P_MASTER_MDP_CORE1_1,
  745. .channels = 1,
  746. .buswidth = 32,
  747. .num_links = 1,
  748. .links = { SA8775P_SLAVE_MNOC_HF_MEM_NOC },
  749. };
  750. static struct qcom_icc_node qnm_mnoc_hf_cfg = {
  751. .name = "qnm_mnoc_hf_cfg",
  752. .id = SA8775P_MASTER_CNOC_MNOC_HF_CFG,
  753. .channels = 1,
  754. .buswidth = 4,
  755. .num_links = 1,
  756. .links = { SA8775P_SLAVE_SERVICE_MNOC_HF },
  757. };
  758. static struct qcom_icc_node qnm_mnoc_sf_cfg = {
  759. .name = "qnm_mnoc_sf_cfg",
  760. .id = SA8775P_MASTER_CNOC_MNOC_SF_CFG,
  761. .channels = 1,
  762. .buswidth = 4,
  763. .num_links = 1,
  764. .links = { SA8775P_SLAVE_SERVICE_MNOC_SF },
  765. };
  766. static struct qcom_icc_node qnm_video0 = {
  767. .name = "qnm_video0",
  768. .id = SA8775P_MASTER_VIDEO_P0,
  769. .channels = 1,
  770. .buswidth = 32,
  771. .num_links = 1,
  772. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  773. };
  774. static struct qcom_icc_node qnm_video1 = {
  775. .name = "qnm_video1",
  776. .id = SA8775P_MASTER_VIDEO_P1,
  777. .channels = 1,
  778. .buswidth = 32,
  779. .num_links = 1,
  780. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  781. };
  782. static struct qcom_icc_node qnm_video_cvp = {
  783. .name = "qnm_video_cvp",
  784. .id = SA8775P_MASTER_VIDEO_PROC,
  785. .channels = 1,
  786. .buswidth = 32,
  787. .num_links = 1,
  788. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  789. };
  790. static struct qcom_icc_node qnm_video_v_cpu = {
  791. .name = "qnm_video_v_cpu",
  792. .id = SA8775P_MASTER_VIDEO_V_PROC,
  793. .channels = 1,
  794. .buswidth = 8,
  795. .num_links = 1,
  796. .links = { SA8775P_SLAVE_MNOC_SF_MEM_NOC },
  797. };
  798. static struct qcom_icc_node qhm_nsp_noc_config = {
  799. .name = "qhm_nsp_noc_config",
  800. .id = SA8775P_MASTER_CDSP_NOC_CFG,
  801. .channels = 1,
  802. .buswidth = 4,
  803. .num_links = 1,
  804. .links = { SA8775P_SLAVE_SERVICE_NSP_NOC },
  805. };
  806. static struct qcom_icc_node qxm_nsp = {
  807. .name = "qxm_nsp",
  808. .id = SA8775P_MASTER_CDSP_PROC,
  809. .channels = 2,
  810. .buswidth = 32,
  811. .num_links = 2,
  812. .links = { SA8775P_SLAVE_HCP_A, SLAVE_CDSP_MEM_NOC },
  813. };
  814. static struct qcom_icc_node qhm_nspb_noc_config = {
  815. .name = "qhm_nspb_noc_config",
  816. .id = SA8775P_MASTER_CDSPB_NOC_CFG,
  817. .channels = 1,
  818. .buswidth = 4,
  819. .num_links = 1,
  820. .links = { SA8775P_SLAVE_SERVICE_NSPB_NOC },
  821. };
  822. static struct qcom_icc_node qxm_nspb = {
  823. .name = "qxm_nspb",
  824. .id = SA8775P_MASTER_CDSP_PROC_B,
  825. .channels = 2,
  826. .buswidth = 32,
  827. .num_links = 2,
  828. .links = { SA8775P_SLAVE_HCP_B, SLAVE_CDSPB_MEM_NOC },
  829. };
  830. static struct qcom_icc_node xm_pcie3_0 = {
  831. .name = "xm_pcie3_0",
  832. .id = SA8775P_MASTER_PCIE_0,
  833. .channels = 1,
  834. .buswidth = 16,
  835. .num_links = 1,
  836. .links = { SA8775P_SLAVE_ANOC_PCIE_GEM_NOC },
  837. };
  838. static struct qcom_icc_node xm_pcie3_1 = {
  839. .name = "xm_pcie3_1",
  840. .id = SA8775P_MASTER_PCIE_1,
  841. .channels = 1,
  842. .buswidth = 32,
  843. .num_links = 1,
  844. .links = { SA8775P_SLAVE_ANOC_PCIE_GEM_NOC },
  845. };
  846. static struct qcom_icc_node qhm_gic = {
  847. .name = "qhm_gic",
  848. .id = SA8775P_MASTER_GIC_AHB,
  849. .channels = 1,
  850. .buswidth = 4,
  851. .num_links = 1,
  852. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_SF },
  853. };
  854. static struct qcom_icc_node qnm_aggre1_noc = {
  855. .name = "qnm_aggre1_noc",
  856. .id = SA8775P_MASTER_A1NOC_SNOC,
  857. .channels = 1,
  858. .buswidth = 32,
  859. .num_links = 1,
  860. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_SF },
  861. };
  862. static struct qcom_icc_node qnm_aggre2_noc = {
  863. .name = "qnm_aggre2_noc",
  864. .id = SA8775P_MASTER_A2NOC_SNOC,
  865. .channels = 1,
  866. .buswidth = 16,
  867. .num_links = 1,
  868. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_SF },
  869. };
  870. static struct qcom_icc_node qnm_lpass_noc = {
  871. .name = "qnm_lpass_noc",
  872. .id = SA8775P_MASTER_LPASS_ANOC,
  873. .channels = 1,
  874. .buswidth = 16,
  875. .num_links = 1,
  876. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_SF },
  877. };
  878. static struct qcom_icc_node qnm_snoc_cfg = {
  879. .name = "qnm_snoc_cfg",
  880. .id = SA8775P_MASTER_SNOC_CFG,
  881. .channels = 1,
  882. .buswidth = 4,
  883. .num_links = 1,
  884. .links = { SA8775P_SLAVE_SERVICE_SNOC },
  885. };
  886. static struct qcom_icc_node qxm_pimem = {
  887. .name = "qxm_pimem",
  888. .id = SA8775P_MASTER_PIMEM,
  889. .channels = 1,
  890. .buswidth = 8,
  891. .num_links = 1,
  892. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_GC },
  893. };
  894. static struct qcom_icc_node xm_gic = {
  895. .name = "xm_gic",
  896. .id = SA8775P_MASTER_GIC,
  897. .channels = 1,
  898. .buswidth = 8,
  899. .num_links = 1,
  900. .links = { SA8775P_SLAVE_SNOC_GEM_NOC_GC },
  901. };
  902. static struct qcom_icc_node qns_a1noc_snoc = {
  903. .name = "qns_a1noc_snoc",
  904. .id = SA8775P_SLAVE_A1NOC_SNOC,
  905. .channels = 1,
  906. .buswidth = 32,
  907. .num_links = 1,
  908. .links = { SA8775P_MASTER_A1NOC_SNOC },
  909. };
  910. static struct qcom_icc_node qns_a2noc_snoc = {
  911. .name = "qns_a2noc_snoc",
  912. .id = SA8775P_SLAVE_A2NOC_SNOC,
  913. .channels = 1,
  914. .buswidth = 16,
  915. .num_links = 1,
  916. .links = { SA8775P_MASTER_A2NOC_SNOC },
  917. };
  918. static struct qcom_icc_node qup0_core_slave = {
  919. .name = "qup0_core_slave",
  920. .id = SA8775P_SLAVE_QUP_CORE_0,
  921. .channels = 1,
  922. .buswidth = 4,
  923. };
  924. static struct qcom_icc_node qup1_core_slave = {
  925. .name = "qup1_core_slave",
  926. .id = SA8775P_SLAVE_QUP_CORE_1,
  927. .channels = 1,
  928. .buswidth = 4,
  929. };
  930. static struct qcom_icc_node qup2_core_slave = {
  931. .name = "qup2_core_slave",
  932. .id = SA8775P_SLAVE_QUP_CORE_2,
  933. .channels = 1,
  934. .buswidth = 4,
  935. };
  936. static struct qcom_icc_node qup3_core_slave = {
  937. .name = "qup3_core_slave",
  938. .id = SA8775P_SLAVE_QUP_CORE_3,
  939. .channels = 1,
  940. .buswidth = 4,
  941. };
  942. static struct qcom_icc_node qhs_ahb2phy0 = {
  943. .name = "qhs_ahb2phy0",
  944. .id = SA8775P_SLAVE_AHB2PHY_0,
  945. .channels = 1,
  946. .buswidth = 4,
  947. };
  948. static struct qcom_icc_node qhs_ahb2phy1 = {
  949. .name = "qhs_ahb2phy1",
  950. .id = SA8775P_SLAVE_AHB2PHY_1,
  951. .channels = 1,
  952. .buswidth = 4,
  953. };
  954. static struct qcom_icc_node qhs_ahb2phy2 = {
  955. .name = "qhs_ahb2phy2",
  956. .id = SA8775P_SLAVE_AHB2PHY_2,
  957. .channels = 1,
  958. .buswidth = 4,
  959. };
  960. static struct qcom_icc_node qhs_ahb2phy3 = {
  961. .name = "qhs_ahb2phy3",
  962. .id = SA8775P_SLAVE_AHB2PHY_3,
  963. .channels = 1,
  964. .buswidth = 4,
  965. };
  966. static struct qcom_icc_node qhs_anoc_throttle_cfg = {
  967. .name = "qhs_anoc_throttle_cfg",
  968. .id = SA8775P_SLAVE_ANOC_THROTTLE_CFG,
  969. .channels = 1,
  970. .buswidth = 4,
  971. };
  972. static struct qcom_icc_node qhs_aoss = {
  973. .name = "qhs_aoss",
  974. .id = SA8775P_SLAVE_AOSS,
  975. .channels = 1,
  976. .buswidth = 4,
  977. };
  978. static struct qcom_icc_node qhs_apss = {
  979. .name = "qhs_apss",
  980. .id = SA8775P_SLAVE_APPSS,
  981. .channels = 1,
  982. .buswidth = 8,
  983. };
  984. static struct qcom_icc_node qhs_boot_rom = {
  985. .name = "qhs_boot_rom",
  986. .id = SA8775P_SLAVE_BOOT_ROM,
  987. .channels = 1,
  988. .buswidth = 4,
  989. };
  990. static struct qcom_icc_node qhs_camera_cfg = {
  991. .name = "qhs_camera_cfg",
  992. .id = SA8775P_SLAVE_CAMERA_CFG,
  993. .channels = 1,
  994. .buswidth = 4,
  995. };
  996. static struct qcom_icc_node qhs_camera_nrt_throttle_cfg = {
  997. .name = "qhs_camera_nrt_throttle_cfg",
  998. .id = SA8775P_SLAVE_CAMERA_NRT_THROTTLE_CFG,
  999. .channels = 1,
  1000. .buswidth = 4,
  1001. };
  1002. static struct qcom_icc_node qhs_camera_rt_throttle_cfg = {
  1003. .name = "qhs_camera_rt_throttle_cfg",
  1004. .id = SA8775P_SLAVE_CAMERA_RT_THROTTLE_CFG,
  1005. .channels = 1,
  1006. .buswidth = 4,
  1007. };
  1008. static struct qcom_icc_node qhs_clk_ctl = {
  1009. .name = "qhs_clk_ctl",
  1010. .id = SA8775P_SLAVE_CLK_CTL,
  1011. .channels = 1,
  1012. .buswidth = 4,
  1013. };
  1014. static struct qcom_icc_node qhs_compute0_cfg = {
  1015. .name = "qhs_compute0_cfg",
  1016. .id = SA8775P_SLAVE_CDSP_CFG,
  1017. .channels = 1,
  1018. .buswidth = 4,
  1019. .num_links = 1,
  1020. .links = { SA8775P_MASTER_CDSP_NOC_CFG },
  1021. };
  1022. static struct qcom_icc_node qhs_compute1_cfg = {
  1023. .name = "qhs_compute1_cfg",
  1024. .id = SA8775P_SLAVE_CDSP1_CFG,
  1025. .channels = 1,
  1026. .buswidth = 4,
  1027. .num_links = 1,
  1028. .links = { SA8775P_MASTER_CDSPB_NOC_CFG },
  1029. };
  1030. static struct qcom_icc_node qhs_cpr_cx = {
  1031. .name = "qhs_cpr_cx",
  1032. .id = SA8775P_SLAVE_RBCPR_CX_CFG,
  1033. .channels = 1,
  1034. .buswidth = 4,
  1035. };
  1036. static struct qcom_icc_node qhs_cpr_mmcx = {
  1037. .name = "qhs_cpr_mmcx",
  1038. .id = SA8775P_SLAVE_RBCPR_MMCX_CFG,
  1039. .channels = 1,
  1040. .buswidth = 4,
  1041. };
  1042. static struct qcom_icc_node qhs_cpr_mx = {
  1043. .name = "qhs_cpr_mx",
  1044. .id = SA8775P_SLAVE_RBCPR_MX_CFG,
  1045. .channels = 1,
  1046. .buswidth = 4,
  1047. };
  1048. static struct qcom_icc_node qhs_cpr_nspcx = {
  1049. .name = "qhs_cpr_nspcx",
  1050. .id = SA8775P_SLAVE_CPR_NSPCX,
  1051. .channels = 1,
  1052. .buswidth = 4,
  1053. };
  1054. static struct qcom_icc_node qhs_crypto0_cfg = {
  1055. .name = "qhs_crypto0_cfg",
  1056. .id = SA8775P_SLAVE_CRYPTO_0_CFG,
  1057. .channels = 1,
  1058. .buswidth = 4,
  1059. };
  1060. static struct qcom_icc_node qhs_cx_rdpm = {
  1061. .name = "qhs_cx_rdpm",
  1062. .id = SA8775P_SLAVE_CX_RDPM,
  1063. .channels = 1,
  1064. .buswidth = 4,
  1065. };
  1066. static struct qcom_icc_node qhs_display0_cfg = {
  1067. .name = "qhs_display0_cfg",
  1068. .id = SA8775P_SLAVE_DISPLAY_CFG,
  1069. .channels = 1,
  1070. .buswidth = 4,
  1071. };
  1072. static struct qcom_icc_node qhs_display0_rt_throttle_cfg = {
  1073. .name = "qhs_display0_rt_throttle_cfg",
  1074. .id = SA8775P_SLAVE_DISPLAY_RT_THROTTLE_CFG,
  1075. .channels = 1,
  1076. .buswidth = 4,
  1077. };
  1078. static struct qcom_icc_node qhs_display1_cfg = {
  1079. .name = "qhs_display1_cfg",
  1080. .id = SA8775P_SLAVE_DISPLAY1_CFG,
  1081. .channels = 1,
  1082. .buswidth = 4,
  1083. };
  1084. static struct qcom_icc_node qhs_display1_rt_throttle_cfg = {
  1085. .name = "qhs_display1_rt_throttle_cfg",
  1086. .id = SA8775P_SLAVE_DISPLAY1_RT_THROTTLE_CFG,
  1087. .channels = 1,
  1088. .buswidth = 4,
  1089. };
  1090. static struct qcom_icc_node qhs_emac0_cfg = {
  1091. .name = "qhs_emac0_cfg",
  1092. .id = SA8775P_SLAVE_EMAC_CFG,
  1093. .channels = 1,
  1094. .buswidth = 4,
  1095. };
  1096. static struct qcom_icc_node qhs_emac1_cfg = {
  1097. .name = "qhs_emac1_cfg",
  1098. .id = SA8775P_SLAVE_EMAC1_CFG,
  1099. .channels = 1,
  1100. .buswidth = 4,
  1101. };
  1102. static struct qcom_icc_node qhs_gp_dsp0_cfg = {
  1103. .name = "qhs_gp_dsp0_cfg",
  1104. .id = SA8775P_SLAVE_GP_DSP0_CFG,
  1105. .channels = 1,
  1106. .buswidth = 4,
  1107. };
  1108. static struct qcom_icc_node qhs_gp_dsp1_cfg = {
  1109. .name = "qhs_gp_dsp1_cfg",
  1110. .id = SA8775P_SLAVE_GP_DSP1_CFG,
  1111. .channels = 1,
  1112. .buswidth = 4,
  1113. };
  1114. static struct qcom_icc_node qhs_gpdsp0_throttle_cfg = {
  1115. .name = "qhs_gpdsp0_throttle_cfg",
  1116. .id = SA8775P_SLAVE_GPDSP0_THROTTLE_CFG,
  1117. .channels = 1,
  1118. .buswidth = 4,
  1119. };
  1120. static struct qcom_icc_node qhs_gpdsp1_throttle_cfg = {
  1121. .name = "qhs_gpdsp1_throttle_cfg",
  1122. .id = SA8775P_SLAVE_GPDSP1_THROTTLE_CFG,
  1123. .channels = 1,
  1124. .buswidth = 4,
  1125. };
  1126. static struct qcom_icc_node qhs_gpu_tcu_throttle_cfg = {
  1127. .name = "qhs_gpu_tcu_throttle_cfg",
  1128. .id = SA8775P_SLAVE_GPU_TCU_THROTTLE_CFG,
  1129. .channels = 1,
  1130. .buswidth = 4,
  1131. };
  1132. static struct qcom_icc_node qhs_gpuss_cfg = {
  1133. .name = "qhs_gpuss_cfg",
  1134. .id = SA8775P_SLAVE_GFX3D_CFG,
  1135. .channels = 1,
  1136. .buswidth = 8,
  1137. };
  1138. static struct qcom_icc_node qhs_hwkm = {
  1139. .name = "qhs_hwkm",
  1140. .id = SA8775P_SLAVE_HWKM,
  1141. .channels = 1,
  1142. .buswidth = 4,
  1143. };
  1144. static struct qcom_icc_node qhs_imem_cfg = {
  1145. .name = "qhs_imem_cfg",
  1146. .id = SA8775P_SLAVE_IMEM_CFG,
  1147. .channels = 1,
  1148. .buswidth = 4,
  1149. };
  1150. static struct qcom_icc_node qhs_ipa = {
  1151. .name = "qhs_ipa",
  1152. .id = SA8775P_SLAVE_IPA_CFG,
  1153. .channels = 1,
  1154. .buswidth = 4,
  1155. };
  1156. static struct qcom_icc_node qhs_ipc_router = {
  1157. .name = "qhs_ipc_router",
  1158. .id = SA8775P_SLAVE_IPC_ROUTER_CFG,
  1159. .channels = 1,
  1160. .buswidth = 4,
  1161. };
  1162. static struct qcom_icc_node qhs_lpass_cfg = {
  1163. .name = "qhs_lpass_cfg",
  1164. .id = SA8775P_SLAVE_LPASS,
  1165. .channels = 1,
  1166. .buswidth = 4,
  1167. .num_links = 1,
  1168. .links = { SA8775P_MASTER_CNOC_LPASS_AG_NOC },
  1169. };
  1170. static struct qcom_icc_node qhs_lpass_throttle_cfg = {
  1171. .name = "qhs_lpass_throttle_cfg",
  1172. .id = SA8775P_SLAVE_LPASS_THROTTLE_CFG,
  1173. .channels = 1,
  1174. .buswidth = 4,
  1175. };
  1176. static struct qcom_icc_node qhs_mx_rdpm = {
  1177. .name = "qhs_mx_rdpm",
  1178. .id = SA8775P_SLAVE_MX_RDPM,
  1179. .channels = 1,
  1180. .buswidth = 4,
  1181. };
  1182. static struct qcom_icc_node qhs_mxc_rdpm = {
  1183. .name = "qhs_mxc_rdpm",
  1184. .id = SA8775P_SLAVE_MXC_RDPM,
  1185. .channels = 1,
  1186. .buswidth = 4,
  1187. };
  1188. static struct qcom_icc_node qhs_pcie0_cfg = {
  1189. .name = "qhs_pcie0_cfg",
  1190. .id = SA8775P_SLAVE_PCIE_0_CFG,
  1191. .channels = 1,
  1192. .buswidth = 4,
  1193. };
  1194. static struct qcom_icc_node qhs_pcie1_cfg = {
  1195. .name = "qhs_pcie1_cfg",
  1196. .id = SA8775P_SLAVE_PCIE_1_CFG,
  1197. .channels = 1,
  1198. .buswidth = 4,
  1199. };
  1200. static struct qcom_icc_node qhs_pcie_rsc_cfg = {
  1201. .name = "qhs_pcie_rsc_cfg",
  1202. .id = SA8775P_SLAVE_PCIE_RSC_CFG,
  1203. .channels = 1,
  1204. .buswidth = 4,
  1205. };
  1206. static struct qcom_icc_node qhs_pcie_tcu_throttle_cfg = {
  1207. .name = "qhs_pcie_tcu_throttle_cfg",
  1208. .id = SA8775P_SLAVE_PCIE_TCU_THROTTLE_CFG,
  1209. .channels = 1,
  1210. .buswidth = 4,
  1211. };
  1212. static struct qcom_icc_node qhs_pcie_throttle_cfg = {
  1213. .name = "qhs_pcie_throttle_cfg",
  1214. .id = SA8775P_SLAVE_PCIE_THROTTLE_CFG,
  1215. .channels = 1,
  1216. .buswidth = 4,
  1217. };
  1218. static struct qcom_icc_node qhs_pdm = {
  1219. .name = "qhs_pdm",
  1220. .id = SA8775P_SLAVE_PDM,
  1221. .channels = 1,
  1222. .buswidth = 4,
  1223. };
  1224. static struct qcom_icc_node qhs_pimem_cfg = {
  1225. .name = "qhs_pimem_cfg",
  1226. .id = SA8775P_SLAVE_PIMEM_CFG,
  1227. .channels = 1,
  1228. .buswidth = 4,
  1229. };
  1230. static struct qcom_icc_node qhs_pke_wrapper_cfg = {
  1231. .name = "qhs_pke_wrapper_cfg",
  1232. .id = SA8775P_SLAVE_PKA_WRAPPER_CFG,
  1233. .channels = 1,
  1234. .buswidth = 4,
  1235. };
  1236. static struct qcom_icc_node qhs_qdss_cfg = {
  1237. .name = "qhs_qdss_cfg",
  1238. .id = SA8775P_SLAVE_QDSS_CFG,
  1239. .channels = 1,
  1240. .buswidth = 4,
  1241. };
  1242. static struct qcom_icc_node qhs_qm_cfg = {
  1243. .name = "qhs_qm_cfg",
  1244. .id = SA8775P_SLAVE_QM_CFG,
  1245. .channels = 1,
  1246. .buswidth = 4,
  1247. };
  1248. static struct qcom_icc_node qhs_qm_mpu_cfg = {
  1249. .name = "qhs_qm_mpu_cfg",
  1250. .id = SA8775P_SLAVE_QM_MPU_CFG,
  1251. .channels = 1,
  1252. .buswidth = 4,
  1253. };
  1254. static struct qcom_icc_node qhs_qup0 = {
  1255. .name = "qhs_qup0",
  1256. .id = SA8775P_SLAVE_QUP_0,
  1257. .channels = 1,
  1258. .buswidth = 4,
  1259. };
  1260. static struct qcom_icc_node qhs_qup1 = {
  1261. .name = "qhs_qup1",
  1262. .id = SA8775P_SLAVE_QUP_1,
  1263. .channels = 1,
  1264. .buswidth = 4,
  1265. };
  1266. static struct qcom_icc_node qhs_qup2 = {
  1267. .name = "qhs_qup2",
  1268. .id = SA8775P_SLAVE_QUP_2,
  1269. .channels = 1,
  1270. .buswidth = 4,
  1271. };
  1272. static struct qcom_icc_node qhs_qup3 = {
  1273. .name = "qhs_qup3",
  1274. .id = SA8775P_SLAVE_QUP_3,
  1275. .channels = 1,
  1276. .buswidth = 4,
  1277. };
  1278. static struct qcom_icc_node qhs_sail_throttle_cfg = {
  1279. .name = "qhs_sail_throttle_cfg",
  1280. .id = SA8775P_SLAVE_SAIL_THROTTLE_CFG,
  1281. .channels = 1,
  1282. .buswidth = 4,
  1283. };
  1284. static struct qcom_icc_node qhs_sdc1 = {
  1285. .name = "qhs_sdc1",
  1286. .id = SA8775P_SLAVE_SDC1,
  1287. .channels = 1,
  1288. .buswidth = 4,
  1289. };
  1290. static struct qcom_icc_node qhs_security = {
  1291. .name = "qhs_security",
  1292. .id = SA8775P_SLAVE_SECURITY,
  1293. .channels = 1,
  1294. .buswidth = 4,
  1295. };
  1296. static struct qcom_icc_node qhs_snoc_throttle_cfg = {
  1297. .name = "qhs_snoc_throttle_cfg",
  1298. .id = SA8775P_SLAVE_SNOC_THROTTLE_CFG,
  1299. .channels = 1,
  1300. .buswidth = 4,
  1301. };
  1302. static struct qcom_icc_node qhs_tcsr = {
  1303. .name = "qhs_tcsr",
  1304. .id = SA8775P_SLAVE_TCSR,
  1305. .channels = 1,
  1306. .buswidth = 4,
  1307. };
  1308. static struct qcom_icc_node qhs_tlmm = {
  1309. .name = "qhs_tlmm",
  1310. .id = SA8775P_SLAVE_TLMM,
  1311. .channels = 1,
  1312. .buswidth = 4,
  1313. };
  1314. static struct qcom_icc_node qhs_tsc_cfg = {
  1315. .name = "qhs_tsc_cfg",
  1316. .id = SA8775P_SLAVE_TSC_CFG,
  1317. .channels = 1,
  1318. .buswidth = 4,
  1319. };
  1320. static struct qcom_icc_node qhs_ufs_card_cfg = {
  1321. .name = "qhs_ufs_card_cfg",
  1322. .id = SA8775P_SLAVE_UFS_CARD_CFG,
  1323. .channels = 1,
  1324. .buswidth = 4,
  1325. };
  1326. static struct qcom_icc_node qhs_ufs_mem_cfg = {
  1327. .name = "qhs_ufs_mem_cfg",
  1328. .id = SA8775P_SLAVE_UFS_MEM_CFG,
  1329. .channels = 1,
  1330. .buswidth = 4,
  1331. };
  1332. static struct qcom_icc_node qhs_usb2_0 = {
  1333. .name = "qhs_usb2_0",
  1334. .id = SA8775P_SLAVE_USB2,
  1335. .channels = 1,
  1336. .buswidth = 4,
  1337. };
  1338. static struct qcom_icc_node qhs_usb3_0 = {
  1339. .name = "qhs_usb3_0",
  1340. .id = SA8775P_SLAVE_USB3_0,
  1341. .channels = 1,
  1342. .buswidth = 4,
  1343. };
  1344. static struct qcom_icc_node qhs_usb3_1 = {
  1345. .name = "qhs_usb3_1",
  1346. .id = SA8775P_SLAVE_USB3_1,
  1347. .channels = 1,
  1348. .buswidth = 4,
  1349. };
  1350. static struct qcom_icc_node qhs_venus_cfg = {
  1351. .name = "qhs_venus_cfg",
  1352. .id = SA8775P_SLAVE_VENUS_CFG,
  1353. .channels = 1,
  1354. .buswidth = 4,
  1355. };
  1356. static struct qcom_icc_node qhs_venus_cvp_throttle_cfg = {
  1357. .name = "qhs_venus_cvp_throttle_cfg",
  1358. .id = SA8775P_SLAVE_VENUS_CVP_THROTTLE_CFG,
  1359. .channels = 1,
  1360. .buswidth = 4,
  1361. };
  1362. static struct qcom_icc_node qhs_venus_v_cpu_throttle_cfg = {
  1363. .name = "qhs_venus_v_cpu_throttle_cfg",
  1364. .id = SA8775P_SLAVE_VENUS_V_CPU_THROTTLE_CFG,
  1365. .channels = 1,
  1366. .buswidth = 4,
  1367. };
  1368. static struct qcom_icc_node qhs_venus_vcodec_throttle_cfg = {
  1369. .name = "qhs_venus_vcodec_throttle_cfg",
  1370. .id = SA8775P_SLAVE_VENUS_VCODEC_THROTTLE_CFG,
  1371. .channels = 1,
  1372. .buswidth = 4,
  1373. };
  1374. static struct qcom_icc_node qns_ddrss_cfg = {
  1375. .name = "qns_ddrss_cfg",
  1376. .id = SA8775P_SLAVE_DDRSS_CFG,
  1377. .channels = 1,
  1378. .buswidth = 4,
  1379. .num_links = 1,
  1380. .links = { SA8775P_MASTER_CNOC_DC_NOC },
  1381. };
  1382. static struct qcom_icc_node qns_gpdsp_noc_cfg = {
  1383. .name = "qns_gpdsp_noc_cfg",
  1384. .id = SA8775P_SLAVE_GPDSP_NOC_CFG,
  1385. .channels = 1,
  1386. .buswidth = 4,
  1387. };
  1388. static struct qcom_icc_node qns_mnoc_hf_cfg = {
  1389. .name = "qns_mnoc_hf_cfg",
  1390. .id = SA8775P_SLAVE_CNOC_MNOC_HF_CFG,
  1391. .channels = 1,
  1392. .buswidth = 4,
  1393. .num_links = 1,
  1394. .links = { SA8775P_MASTER_CNOC_MNOC_HF_CFG },
  1395. };
  1396. static struct qcom_icc_node qns_mnoc_sf_cfg = {
  1397. .name = "qns_mnoc_sf_cfg",
  1398. .id = SA8775P_SLAVE_CNOC_MNOC_SF_CFG,
  1399. .channels = 1,
  1400. .buswidth = 4,
  1401. .num_links = 1,
  1402. .links = { SA8775P_MASTER_CNOC_MNOC_SF_CFG },
  1403. };
  1404. static struct qcom_icc_node qns_pcie_anoc_cfg = {
  1405. .name = "qns_pcie_anoc_cfg",
  1406. .id = SA8775P_SLAVE_PCIE_ANOC_CFG,
  1407. .channels = 1,
  1408. .buswidth = 4,
  1409. };
  1410. static struct qcom_icc_node qns_snoc_cfg = {
  1411. .name = "qns_snoc_cfg",
  1412. .id = SA8775P_SLAVE_SNOC_CFG,
  1413. .channels = 1,
  1414. .buswidth = 4,
  1415. .num_links = 1,
  1416. .links = { SA8775P_MASTER_SNOC_CFG },
  1417. };
  1418. static struct qcom_icc_node qxs_boot_imem = {
  1419. .name = "qxs_boot_imem",
  1420. .id = SA8775P_SLAVE_BOOT_IMEM,
  1421. .channels = 1,
  1422. .buswidth = 16,
  1423. };
  1424. static struct qcom_icc_node qxs_imem = {
  1425. .name = "qxs_imem",
  1426. .id = SA8775P_SLAVE_IMEM,
  1427. .channels = 1,
  1428. .buswidth = 8,
  1429. };
  1430. static struct qcom_icc_node qxs_pimem = {
  1431. .name = "qxs_pimem",
  1432. .id = SA8775P_SLAVE_PIMEM,
  1433. .channels = 1,
  1434. .buswidth = 8,
  1435. };
  1436. static struct qcom_icc_node xs_pcie_0 = {
  1437. .name = "xs_pcie_0",
  1438. .id = SA8775P_SLAVE_PCIE_0,
  1439. .channels = 1,
  1440. .buswidth = 16,
  1441. };
  1442. static struct qcom_icc_node xs_pcie_1 = {
  1443. .name = "xs_pcie_1",
  1444. .id = SA8775P_SLAVE_PCIE_1,
  1445. .channels = 1,
  1446. .buswidth = 32,
  1447. };
  1448. static struct qcom_icc_node xs_qdss_stm = {
  1449. .name = "xs_qdss_stm",
  1450. .id = SA8775P_SLAVE_QDSS_STM,
  1451. .channels = 1,
  1452. .buswidth = 4,
  1453. };
  1454. static struct qcom_icc_node xs_sys_tcu_cfg = {
  1455. .name = "xs_sys_tcu_cfg",
  1456. .id = SA8775P_SLAVE_TCU,
  1457. .channels = 1,
  1458. .buswidth = 8,
  1459. };
  1460. static struct qcom_icc_node qhs_llcc = {
  1461. .name = "qhs_llcc",
  1462. .id = SA8775P_SLAVE_LLCC_CFG,
  1463. .channels = 1,
  1464. .buswidth = 4,
  1465. };
  1466. static struct qcom_icc_node qns_gemnoc = {
  1467. .name = "qns_gemnoc",
  1468. .id = SA8775P_SLAVE_GEM_NOC_CFG,
  1469. .channels = 1,
  1470. .buswidth = 4,
  1471. .num_links = 1,
  1472. .links = { SA8775P_MASTER_GEM_NOC_CFG },
  1473. };
  1474. static struct qcom_icc_node qns_gem_noc_cnoc = {
  1475. .name = "qns_gem_noc_cnoc",
  1476. .id = SA8775P_SLAVE_GEM_NOC_CNOC,
  1477. .channels = 1,
  1478. .buswidth = 16,
  1479. .num_links = 1,
  1480. .links = { SA8775P_MASTER_GEM_NOC_CNOC },
  1481. };
  1482. static struct qcom_icc_node qns_llcc = {
  1483. .name = "qns_llcc",
  1484. .id = SA8775P_SLAVE_LLCC,
  1485. .channels = 6,
  1486. .buswidth = 16,
  1487. .num_links = 1,
  1488. .links = { SA8775P_MASTER_LLCC },
  1489. };
  1490. static struct qcom_icc_node qns_pcie = {
  1491. .name = "qns_pcie",
  1492. .id = SA8775P_SLAVE_GEM_NOC_PCIE_CNOC,
  1493. .channels = 1,
  1494. .buswidth = 16,
  1495. .num_links = 1,
  1496. .links = { SA8775P_MASTER_GEM_NOC_PCIE_SNOC },
  1497. };
  1498. static struct qcom_icc_node srvc_even_gemnoc = {
  1499. .name = "srvc_even_gemnoc",
  1500. .id = SA8775P_SLAVE_SERVICE_GEM_NOC_1,
  1501. .channels = 1,
  1502. .buswidth = 4,
  1503. };
  1504. static struct qcom_icc_node srvc_odd_gemnoc = {
  1505. .name = "srvc_odd_gemnoc",
  1506. .id = SA8775P_SLAVE_SERVICE_GEM_NOC_2,
  1507. .channels = 1,
  1508. .buswidth = 4,
  1509. };
  1510. static struct qcom_icc_node srvc_sys_gemnoc = {
  1511. .name = "srvc_sys_gemnoc",
  1512. .id = SA8775P_SLAVE_SERVICE_GEM_NOC,
  1513. .channels = 1,
  1514. .buswidth = 4,
  1515. };
  1516. static struct qcom_icc_node srvc_sys_gemnoc_2 = {
  1517. .name = "srvc_sys_gemnoc_2",
  1518. .id = SA8775P_SLAVE_SERVICE_GEM_NOC2,
  1519. .channels = 1,
  1520. .buswidth = 4,
  1521. };
  1522. static struct qcom_icc_node qns_gp_dsp_sail_noc = {
  1523. .name = "qns_gp_dsp_sail_noc",
  1524. .id = SA8775P_SLAVE_GP_DSP_SAIL_NOC,
  1525. .channels = 1,
  1526. .buswidth = 16,
  1527. .num_links = 1,
  1528. .links = { SA8775P_MASTER_GPDSP_SAIL },
  1529. };
  1530. static struct qcom_icc_node qhs_lpass_core = {
  1531. .name = "qhs_lpass_core",
  1532. .id = SA8775P_SLAVE_LPASS_CORE_CFG,
  1533. .channels = 1,
  1534. .buswidth = 4,
  1535. };
  1536. static struct qcom_icc_node qhs_lpass_lpi = {
  1537. .name = "qhs_lpass_lpi",
  1538. .id = SA8775P_SLAVE_LPASS_LPI_CFG,
  1539. .channels = 1,
  1540. .buswidth = 4,
  1541. };
  1542. static struct qcom_icc_node qhs_lpass_mpu = {
  1543. .name = "qhs_lpass_mpu",
  1544. .id = SA8775P_SLAVE_LPASS_MPU_CFG,
  1545. .channels = 1,
  1546. .buswidth = 4,
  1547. };
  1548. static struct qcom_icc_node qhs_lpass_top = {
  1549. .name = "qhs_lpass_top",
  1550. .id = SA8775P_SLAVE_LPASS_TOP_CFG,
  1551. .channels = 1,
  1552. .buswidth = 4,
  1553. };
  1554. static struct qcom_icc_node qns_sysnoc = {
  1555. .name = "qns_sysnoc",
  1556. .id = SA8775P_SLAVE_LPASS_SNOC,
  1557. .channels = 1,
  1558. .buswidth = 16,
  1559. .num_links = 1,
  1560. .links = { SA8775P_MASTER_LPASS_ANOC },
  1561. };
  1562. static struct qcom_icc_node srvc_niu_aml_noc = {
  1563. .name = "srvc_niu_aml_noc",
  1564. .id = SA8775P_SLAVE_SERVICES_LPASS_AML_NOC,
  1565. .channels = 1,
  1566. .buswidth = 4,
  1567. };
  1568. static struct qcom_icc_node srvc_niu_lpass_agnoc = {
  1569. .name = "srvc_niu_lpass_agnoc",
  1570. .id = SA8775P_SLAVE_SERVICE_LPASS_AG_NOC,
  1571. .channels = 1,
  1572. .buswidth = 4,
  1573. };
  1574. static struct qcom_icc_node ebi = {
  1575. .name = "ebi",
  1576. .id = SA8775P_SLAVE_EBI1,
  1577. .channels = 8,
  1578. .buswidth = 4,
  1579. };
  1580. static struct qcom_icc_node qns_mem_noc_hf = {
  1581. .name = "qns_mem_noc_hf",
  1582. .id = SA8775P_SLAVE_MNOC_HF_MEM_NOC,
  1583. .channels = 2,
  1584. .buswidth = 32,
  1585. .num_links = 1,
  1586. .links = { SA8775P_MASTER_MNOC_HF_MEM_NOC },
  1587. };
  1588. static struct qcom_icc_node qns_mem_noc_sf = {
  1589. .name = "qns_mem_noc_sf",
  1590. .id = SA8775P_SLAVE_MNOC_SF_MEM_NOC,
  1591. .channels = 2,
  1592. .buswidth = 32,
  1593. .num_links = 1,
  1594. .links = { SA8775P_MASTER_MNOC_SF_MEM_NOC },
  1595. };
  1596. static struct qcom_icc_node srvc_mnoc_hf = {
  1597. .name = "srvc_mnoc_hf",
  1598. .id = SA8775P_SLAVE_SERVICE_MNOC_HF,
  1599. .channels = 1,
  1600. .buswidth = 4,
  1601. };
  1602. static struct qcom_icc_node srvc_mnoc_sf = {
  1603. .name = "srvc_mnoc_sf",
  1604. .id = SA8775P_SLAVE_SERVICE_MNOC_SF,
  1605. .channels = 1,
  1606. .buswidth = 4,
  1607. };
  1608. static struct qcom_icc_node qns_hcp = {
  1609. .name = "qns_hcp",
  1610. .id = SA8775P_SLAVE_HCP_A,
  1611. .channels = 2,
  1612. .buswidth = 32,
  1613. };
  1614. static struct qcom_icc_node qns_nsp_gemnoc = {
  1615. .name = "qns_nsp_gemnoc",
  1616. .id = SA8775P_SLAVE_CDSP_MEM_NOC,
  1617. .channels = 2,
  1618. .buswidth = 32,
  1619. .num_links = 1,
  1620. .links = { SA8775P_MASTER_COMPUTE_NOC },
  1621. };
  1622. static struct qcom_icc_node service_nsp_noc = {
  1623. .name = "service_nsp_noc",
  1624. .id = SA8775P_SLAVE_SERVICE_NSP_NOC,
  1625. .channels = 1,
  1626. .buswidth = 4,
  1627. };
  1628. static struct qcom_icc_node qns_nspb_gemnoc = {
  1629. .name = "qns_nspb_gemnoc",
  1630. .id = SA8775P_SLAVE_CDSPB_MEM_NOC,
  1631. .channels = 2,
  1632. .buswidth = 32,
  1633. .num_links = 1,
  1634. .links = { SA8775P_MASTER_COMPUTE_NOC_1 },
  1635. };
  1636. static struct qcom_icc_node qns_nspb_hcp = {
  1637. .name = "qns_nspb_hcp",
  1638. .id = SA8775P_SLAVE_HCP_B,
  1639. .channels = 2,
  1640. .buswidth = 32,
  1641. };
  1642. static struct qcom_icc_node service_nspb_noc = {
  1643. .name = "service_nspb_noc",
  1644. .id = SA8775P_SLAVE_SERVICE_NSPB_NOC,
  1645. .channels = 1,
  1646. .buswidth = 4,
  1647. };
  1648. static struct qcom_icc_node qns_pcie_mem_noc = {
  1649. .name = "qns_pcie_mem_noc",
  1650. .id = SA8775P_SLAVE_ANOC_PCIE_GEM_NOC,
  1651. .channels = 1,
  1652. .buswidth = 32,
  1653. .num_links = 1,
  1654. .links = { SA8775P_MASTER_ANOC_PCIE_GEM_NOC },
  1655. };
  1656. static struct qcom_icc_node qns_gemnoc_gc = {
  1657. .name = "qns_gemnoc_gc",
  1658. .id = SA8775P_SLAVE_SNOC_GEM_NOC_GC,
  1659. .channels = 1,
  1660. .buswidth = 8,
  1661. .num_links = 1,
  1662. .links = { SA8775P_MASTER_SNOC_GC_MEM_NOC },
  1663. };
  1664. static struct qcom_icc_node qns_gemnoc_sf = {
  1665. .name = "qns_gemnoc_sf",
  1666. .id = SA8775P_SLAVE_SNOC_GEM_NOC_SF,
  1667. .channels = 1,
  1668. .buswidth = 16,
  1669. .num_links = 1,
  1670. .links = { SA8775P_MASTER_SNOC_SF_MEM_NOC },
  1671. };
  1672. static struct qcom_icc_node srvc_snoc = {
  1673. .name = "srvc_snoc",
  1674. .id = SA8775P_SLAVE_SERVICE_SNOC,
  1675. .channels = 1,
  1676. .buswidth = 4,
  1677. };
  1678. static struct qcom_icc_bcm bcm_acv = {
  1679. .name = "ACV",
  1680. .enable_mask = 0x8,
  1681. .num_nodes = 1,
  1682. .nodes = { &ebi },
  1683. };
  1684. static struct qcom_icc_bcm bcm_ce0 = {
  1685. .name = "CE0",
  1686. .num_nodes = 2,
  1687. .nodes = { &qxm_crypto_0, &qxm_crypto_1 },
  1688. };
  1689. static struct qcom_icc_bcm bcm_cn0 = {
  1690. .name = "CN0",
  1691. .keepalive = true,
  1692. .num_nodes = 2,
  1693. .nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie },
  1694. };
  1695. static struct qcom_icc_bcm bcm_cn1 = {
  1696. .name = "CN1",
  1697. .num_nodes = 76,
  1698. .nodes = { &qhs_ahb2phy0, &qhs_ahb2phy1,
  1699. &qhs_ahb2phy2, &qhs_ahb2phy3,
  1700. &qhs_anoc_throttle_cfg, &qhs_aoss,
  1701. &qhs_apss, &qhs_boot_rom,
  1702. &qhs_camera_cfg, &qhs_camera_nrt_throttle_cfg,
  1703. &qhs_camera_rt_throttle_cfg, &qhs_clk_ctl,
  1704. &qhs_compute0_cfg, &qhs_compute1_cfg,
  1705. &qhs_cpr_cx, &qhs_cpr_mmcx,
  1706. &qhs_cpr_mx, &qhs_cpr_nspcx,
  1707. &qhs_crypto0_cfg, &qhs_cx_rdpm,
  1708. &qhs_display0_cfg, &qhs_display0_rt_throttle_cfg,
  1709. &qhs_display1_cfg, &qhs_display1_rt_throttle_cfg,
  1710. &qhs_emac0_cfg, &qhs_emac1_cfg,
  1711. &qhs_gp_dsp0_cfg, &qhs_gp_dsp1_cfg,
  1712. &qhs_gpdsp0_throttle_cfg, &qhs_gpdsp1_throttle_cfg,
  1713. &qhs_gpu_tcu_throttle_cfg, &qhs_gpuss_cfg,
  1714. &qhs_hwkm, &qhs_imem_cfg,
  1715. &qhs_ipa, &qhs_ipc_router,
  1716. &qhs_lpass_cfg, &qhs_lpass_throttle_cfg,
  1717. &qhs_mx_rdpm, &qhs_mxc_rdpm,
  1718. &qhs_pcie0_cfg, &qhs_pcie1_cfg,
  1719. &qhs_pcie_rsc_cfg, &qhs_pcie_tcu_throttle_cfg,
  1720. &qhs_pcie_throttle_cfg, &qhs_pdm,
  1721. &qhs_pimem_cfg, &qhs_pke_wrapper_cfg,
  1722. &qhs_qdss_cfg, &qhs_qm_cfg,
  1723. &qhs_qm_mpu_cfg, &qhs_sail_throttle_cfg,
  1724. &qhs_sdc1, &qhs_security,
  1725. &qhs_snoc_throttle_cfg, &qhs_tcsr,
  1726. &qhs_tlmm, &qhs_tsc_cfg,
  1727. &qhs_ufs_card_cfg, &qhs_ufs_mem_cfg,
  1728. &qhs_usb2_0, &qhs_usb3_0,
  1729. &qhs_usb3_1, &qhs_venus_cfg,
  1730. &qhs_venus_cvp_throttle_cfg, &qhs_venus_v_cpu_throttle_cfg,
  1731. &qhs_venus_vcodec_throttle_cfg, &qns_ddrss_cfg,
  1732. &qns_gpdsp_noc_cfg, &qns_mnoc_hf_cfg,
  1733. &qns_mnoc_sf_cfg, &qns_pcie_anoc_cfg,
  1734. &qns_snoc_cfg, &qxs_boot_imem,
  1735. &qxs_imem, &xs_sys_tcu_cfg },
  1736. };
  1737. static struct qcom_icc_bcm bcm_cn2 = {
  1738. .name = "CN2",
  1739. .num_nodes = 4,
  1740. .nodes = { &qhs_qup0, &qhs_qup1,
  1741. &qhs_qup2, &qhs_qup3 },
  1742. };
  1743. static struct qcom_icc_bcm bcm_cn3 = {
  1744. .name = "CN3",
  1745. .num_nodes = 2,
  1746. .nodes = { &xs_pcie_0, &xs_pcie_1 },
  1747. };
  1748. static struct qcom_icc_bcm bcm_gna0 = {
  1749. .name = "GNA0",
  1750. .num_nodes = 1,
  1751. .nodes = { &qxm_dsp0 },
  1752. };
  1753. static struct qcom_icc_bcm bcm_gnb0 = {
  1754. .name = "GNB0",
  1755. .num_nodes = 1,
  1756. .nodes = { &qxm_dsp1 },
  1757. };
  1758. static struct qcom_icc_bcm bcm_mc0 = {
  1759. .name = "MC0",
  1760. .keepalive = true,
  1761. .num_nodes = 1,
  1762. .nodes = { &ebi },
  1763. };
  1764. static struct qcom_icc_bcm bcm_mm0 = {
  1765. .name = "MM0",
  1766. .keepalive = true,
  1767. .num_nodes = 5,
  1768. .nodes = { &qnm_camnoc_hf, &qnm_mdp0_0,
  1769. &qnm_mdp0_1, &qnm_mdp1_0,
  1770. &qns_mem_noc_hf },
  1771. };
  1772. static struct qcom_icc_bcm bcm_mm1 = {
  1773. .name = "MM1",
  1774. .num_nodes = 7,
  1775. .nodes = { &qnm_camnoc_icp, &qnm_camnoc_sf,
  1776. &qnm_video0, &qnm_video1,
  1777. &qnm_video_cvp, &qnm_video_v_cpu,
  1778. &qns_mem_noc_sf },
  1779. };
  1780. static struct qcom_icc_bcm bcm_nsa0 = {
  1781. .name = "NSA0",
  1782. .num_nodes = 2,
  1783. .nodes = { &qns_hcp, &qns_nsp_gemnoc },
  1784. };
  1785. static struct qcom_icc_bcm bcm_nsa1 = {
  1786. .name = "NSA1",
  1787. .num_nodes = 1,
  1788. .nodes = { &qxm_nsp },
  1789. };
  1790. static struct qcom_icc_bcm bcm_nsb0 = {
  1791. .name = "NSB0",
  1792. .num_nodes = 2,
  1793. .nodes = { &qns_nspb_gemnoc, &qns_nspb_hcp },
  1794. };
  1795. static struct qcom_icc_bcm bcm_nsb1 = {
  1796. .name = "NSB1",
  1797. .num_nodes = 1,
  1798. .nodes = { &qxm_nspb },
  1799. };
  1800. static struct qcom_icc_bcm bcm_pci0 = {
  1801. .name = "PCI0",
  1802. .num_nodes = 1,
  1803. .nodes = { &qns_pcie_mem_noc },
  1804. };
  1805. static struct qcom_icc_bcm bcm_qup0 = {
  1806. .name = "QUP0",
  1807. .vote_scale = 1,
  1808. .num_nodes = 1,
  1809. .nodes = { &qup0_core_slave },
  1810. };
  1811. static struct qcom_icc_bcm bcm_qup1 = {
  1812. .name = "QUP1",
  1813. .vote_scale = 1,
  1814. .num_nodes = 1,
  1815. .nodes = { &qup1_core_slave },
  1816. };
  1817. static struct qcom_icc_bcm bcm_qup2 = {
  1818. .name = "QUP2",
  1819. .vote_scale = 1,
  1820. .num_nodes = 2,
  1821. .nodes = { &qup2_core_slave, &qup3_core_slave },
  1822. };
  1823. static struct qcom_icc_bcm bcm_sh0 = {
  1824. .name = "SH0",
  1825. .keepalive = true,
  1826. .num_nodes = 1,
  1827. .nodes = { &qns_llcc },
  1828. };
  1829. static struct qcom_icc_bcm bcm_sh2 = {
  1830. .name = "SH2",
  1831. .num_nodes = 1,
  1832. .nodes = { &chm_apps },
  1833. };
  1834. static struct qcom_icc_bcm bcm_sn0 = {
  1835. .name = "SN0",
  1836. .keepalive = true,
  1837. .num_nodes = 1,
  1838. .nodes = { &qns_gemnoc_sf },
  1839. };
  1840. static struct qcom_icc_bcm bcm_sn1 = {
  1841. .name = "SN1",
  1842. .num_nodes = 1,
  1843. .nodes = { &qns_gemnoc_gc },
  1844. };
  1845. static struct qcom_icc_bcm bcm_sn2 = {
  1846. .name = "SN2",
  1847. .num_nodes = 1,
  1848. .nodes = { &qxs_pimem },
  1849. };
  1850. static struct qcom_icc_bcm bcm_sn3 = {
  1851. .name = "SN3",
  1852. .num_nodes = 2,
  1853. .nodes = { &qns_a1noc_snoc, &qnm_aggre1_noc },
  1854. };
  1855. static struct qcom_icc_bcm bcm_sn4 = {
  1856. .name = "SN4",
  1857. .num_nodes = 2,
  1858. .nodes = { &qns_a2noc_snoc, &qnm_aggre2_noc },
  1859. };
  1860. static struct qcom_icc_bcm bcm_sn9 = {
  1861. .name = "SN9",
  1862. .num_nodes = 2,
  1863. .nodes = { &qns_sysnoc, &qnm_lpass_noc },
  1864. };
  1865. static struct qcom_icc_bcm bcm_sn10 = {
  1866. .name = "SN10",
  1867. .num_nodes = 1,
  1868. .nodes = { &xs_qdss_stm },
  1869. };
  1870. static struct qcom_icc_bcm * const aggre1_noc_bcms[] = {
  1871. &bcm_sn3,
  1872. };
  1873. static struct qcom_icc_node * const aggre1_noc_nodes[] = {
  1874. [MASTER_QUP_3] = &qxm_qup3,
  1875. [MASTER_EMAC] = &xm_emac_0,
  1876. [MASTER_EMAC_1] = &xm_emac_1,
  1877. [MASTER_SDC] = &xm_sdc1,
  1878. [MASTER_UFS_MEM] = &xm_ufs_mem,
  1879. [MASTER_USB2] = &xm_usb2_2,
  1880. [MASTER_USB3_0] = &xm_usb3_0,
  1881. [MASTER_USB3_1] = &xm_usb3_1,
  1882. [SLAVE_A1NOC_SNOC] = &qns_a1noc_snoc,
  1883. };
  1884. static const struct qcom_icc_desc sa8775p_aggre1_noc = {
  1885. .nodes = aggre1_noc_nodes,
  1886. .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
  1887. .bcms = aggre1_noc_bcms,
  1888. .num_bcms = ARRAY_SIZE(aggre1_noc_bcms),
  1889. };
  1890. static struct qcom_icc_bcm * const aggre2_noc_bcms[] = {
  1891. &bcm_ce0,
  1892. &bcm_sn4,
  1893. };
  1894. static struct qcom_icc_node * const aggre2_noc_nodes[] = {
  1895. [MASTER_QDSS_BAM] = &qhm_qdss_bam,
  1896. [MASTER_QUP_0] = &qhm_qup0,
  1897. [MASTER_QUP_1] = &qhm_qup1,
  1898. [MASTER_QUP_2] = &qhm_qup2,
  1899. [MASTER_CNOC_A2NOC] = &qnm_cnoc_datapath,
  1900. [MASTER_CRYPTO_CORE0] = &qxm_crypto_0,
  1901. [MASTER_CRYPTO_CORE1] = &qxm_crypto_1,
  1902. [MASTER_IPA] = &qxm_ipa,
  1903. [MASTER_QDSS_ETR_0] = &xm_qdss_etr_0,
  1904. [MASTER_QDSS_ETR_1] = &xm_qdss_etr_1,
  1905. [MASTER_UFS_CARD] = &xm_ufs_card,
  1906. [SLAVE_A2NOC_SNOC] = &qns_a2noc_snoc,
  1907. };
  1908. static const struct qcom_icc_desc sa8775p_aggre2_noc = {
  1909. .nodes = aggre2_noc_nodes,
  1910. .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
  1911. .bcms = aggre2_noc_bcms,
  1912. .num_bcms = ARRAY_SIZE(aggre2_noc_bcms),
  1913. };
  1914. static struct qcom_icc_bcm * const clk_virt_bcms[] = {
  1915. &bcm_qup0,
  1916. &bcm_qup1,
  1917. &bcm_qup2,
  1918. };
  1919. static struct qcom_icc_node * const clk_virt_nodes[] = {
  1920. [MASTER_QUP_CORE_0] = &qup0_core_master,
  1921. [MASTER_QUP_CORE_1] = &qup1_core_master,
  1922. [MASTER_QUP_CORE_2] = &qup2_core_master,
  1923. [MASTER_QUP_CORE_3] = &qup3_core_master,
  1924. [SLAVE_QUP_CORE_0] = &qup0_core_slave,
  1925. [SLAVE_QUP_CORE_1] = &qup1_core_slave,
  1926. [SLAVE_QUP_CORE_2] = &qup2_core_slave,
  1927. [SLAVE_QUP_CORE_3] = &qup3_core_slave,
  1928. };
  1929. static const struct qcom_icc_desc sa8775p_clk_virt = {
  1930. .nodes = clk_virt_nodes,
  1931. .num_nodes = ARRAY_SIZE(clk_virt_nodes),
  1932. .bcms = clk_virt_bcms,
  1933. .num_bcms = ARRAY_SIZE(clk_virt_bcms),
  1934. };
  1935. static struct qcom_icc_bcm * const config_noc_bcms[] = {
  1936. &bcm_cn0,
  1937. &bcm_cn1,
  1938. &bcm_cn2,
  1939. &bcm_cn3,
  1940. &bcm_sn2,
  1941. &bcm_sn10,
  1942. };
  1943. static struct qcom_icc_node * const config_noc_nodes[] = {
  1944. [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc,
  1945. [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie,
  1946. [SLAVE_AHB2PHY_0] = &qhs_ahb2phy0,
  1947. [SLAVE_AHB2PHY_1] = &qhs_ahb2phy1,
  1948. [SLAVE_AHB2PHY_2] = &qhs_ahb2phy2,
  1949. [SLAVE_AHB2PHY_3] = &qhs_ahb2phy3,
  1950. [SLAVE_ANOC_THROTTLE_CFG] = &qhs_anoc_throttle_cfg,
  1951. [SLAVE_AOSS] = &qhs_aoss,
  1952. [SLAVE_APPSS] = &qhs_apss,
  1953. [SLAVE_BOOT_ROM] = &qhs_boot_rom,
  1954. [SLAVE_CAMERA_CFG] = &qhs_camera_cfg,
  1955. [SLAVE_CAMERA_NRT_THROTTLE_CFG] = &qhs_camera_nrt_throttle_cfg,
  1956. [SLAVE_CAMERA_RT_THROTTLE_CFG] = &qhs_camera_rt_throttle_cfg,
  1957. [SLAVE_CLK_CTL] = &qhs_clk_ctl,
  1958. [SLAVE_CDSP_CFG] = &qhs_compute0_cfg,
  1959. [SLAVE_CDSP1_CFG] = &qhs_compute1_cfg,
  1960. [SLAVE_RBCPR_CX_CFG] = &qhs_cpr_cx,
  1961. [SLAVE_RBCPR_MMCX_CFG] = &qhs_cpr_mmcx,
  1962. [SLAVE_RBCPR_MX_CFG] = &qhs_cpr_mx,
  1963. [SLAVE_CPR_NSPCX] = &qhs_cpr_nspcx,
  1964. [SLAVE_CRYPTO_0_CFG] = &qhs_crypto0_cfg,
  1965. [SLAVE_CX_RDPM] = &qhs_cx_rdpm,
  1966. [SLAVE_DISPLAY_CFG] = &qhs_display0_cfg,
  1967. [SLAVE_DISPLAY_RT_THROTTLE_CFG] = &qhs_display0_rt_throttle_cfg,
  1968. [SLAVE_DISPLAY1_CFG] = &qhs_display1_cfg,
  1969. [SLAVE_DISPLAY1_RT_THROTTLE_CFG] = &qhs_display1_rt_throttle_cfg,
  1970. [SLAVE_EMAC_CFG] = &qhs_emac0_cfg,
  1971. [SLAVE_EMAC1_CFG] = &qhs_emac1_cfg,
  1972. [SLAVE_GP_DSP0_CFG] = &qhs_gp_dsp0_cfg,
  1973. [SLAVE_GP_DSP1_CFG] = &qhs_gp_dsp1_cfg,
  1974. [SLAVE_GPDSP0_THROTTLE_CFG] = &qhs_gpdsp0_throttle_cfg,
  1975. [SLAVE_GPDSP1_THROTTLE_CFG] = &qhs_gpdsp1_throttle_cfg,
  1976. [SLAVE_GPU_TCU_THROTTLE_CFG] = &qhs_gpu_tcu_throttle_cfg,
  1977. [SLAVE_GFX3D_CFG] = &qhs_gpuss_cfg,
  1978. [SLAVE_HWKM] = &qhs_hwkm,
  1979. [SLAVE_IMEM_CFG] = &qhs_imem_cfg,
  1980. [SLAVE_IPA_CFG] = &qhs_ipa,
  1981. [SLAVE_IPC_ROUTER_CFG] = &qhs_ipc_router,
  1982. [SLAVE_LPASS] = &qhs_lpass_cfg,
  1983. [SLAVE_LPASS_THROTTLE_CFG] = &qhs_lpass_throttle_cfg,
  1984. [SLAVE_MX_RDPM] = &qhs_mx_rdpm,
  1985. [SLAVE_MXC_RDPM] = &qhs_mxc_rdpm,
  1986. [SLAVE_PCIE_0_CFG] = &qhs_pcie0_cfg,
  1987. [SLAVE_PCIE_1_CFG] = &qhs_pcie1_cfg,
  1988. [SLAVE_PCIE_RSC_CFG] = &qhs_pcie_rsc_cfg,
  1989. [SLAVE_PCIE_TCU_THROTTLE_CFG] = &qhs_pcie_tcu_throttle_cfg,
  1990. [SLAVE_PCIE_THROTTLE_CFG] = &qhs_pcie_throttle_cfg,
  1991. [SLAVE_PDM] = &qhs_pdm,
  1992. [SLAVE_PIMEM_CFG] = &qhs_pimem_cfg,
  1993. [SLAVE_PKA_WRAPPER_CFG] = &qhs_pke_wrapper_cfg,
  1994. [SLAVE_QDSS_CFG] = &qhs_qdss_cfg,
  1995. [SLAVE_QM_CFG] = &qhs_qm_cfg,
  1996. [SLAVE_QM_MPU_CFG] = &qhs_qm_mpu_cfg,
  1997. [SLAVE_QUP_0] = &qhs_qup0,
  1998. [SLAVE_QUP_1] = &qhs_qup1,
  1999. [SLAVE_QUP_2] = &qhs_qup2,
  2000. [SLAVE_QUP_3] = &qhs_qup3,
  2001. [SLAVE_SAIL_THROTTLE_CFG] = &qhs_sail_throttle_cfg,
  2002. [SLAVE_SDC1] = &qhs_sdc1,
  2003. [SLAVE_SECURITY] = &qhs_security,
  2004. [SLAVE_SNOC_THROTTLE_CFG] = &qhs_snoc_throttle_cfg,
  2005. [SLAVE_TCSR] = &qhs_tcsr,
  2006. [SLAVE_TLMM] = &qhs_tlmm,
  2007. [SLAVE_TSC_CFG] = &qhs_tsc_cfg,
  2008. [SLAVE_UFS_CARD_CFG] = &qhs_ufs_card_cfg,
  2009. [SLAVE_UFS_MEM_CFG] = &qhs_ufs_mem_cfg,
  2010. [SLAVE_USB2] = &qhs_usb2_0,
  2011. [SLAVE_USB3_0] = &qhs_usb3_0,
  2012. [SLAVE_USB3_1] = &qhs_usb3_1,
  2013. [SLAVE_VENUS_CFG] = &qhs_venus_cfg,
  2014. [SLAVE_VENUS_CVP_THROTTLE_CFG] = &qhs_venus_cvp_throttle_cfg,
  2015. [SLAVE_VENUS_V_CPU_THROTTLE_CFG] = &qhs_venus_v_cpu_throttle_cfg,
  2016. [SLAVE_VENUS_VCODEC_THROTTLE_CFG] = &qhs_venus_vcodec_throttle_cfg,
  2017. [SLAVE_DDRSS_CFG] = &qns_ddrss_cfg,
  2018. [SLAVE_GPDSP_NOC_CFG] = &qns_gpdsp_noc_cfg,
  2019. [SLAVE_CNOC_MNOC_HF_CFG] = &qns_mnoc_hf_cfg,
  2020. [SLAVE_CNOC_MNOC_SF_CFG] = &qns_mnoc_sf_cfg,
  2021. [SLAVE_PCIE_ANOC_CFG] = &qns_pcie_anoc_cfg,
  2022. [SLAVE_SNOC_CFG] = &qns_snoc_cfg,
  2023. [SLAVE_BOOT_IMEM] = &qxs_boot_imem,
  2024. [SLAVE_IMEM] = &qxs_imem,
  2025. [SLAVE_PIMEM] = &qxs_pimem,
  2026. [SLAVE_PCIE_0] = &xs_pcie_0,
  2027. [SLAVE_PCIE_1] = &xs_pcie_1,
  2028. [SLAVE_QDSS_STM] = &xs_qdss_stm,
  2029. [SLAVE_TCU] = &xs_sys_tcu_cfg,
  2030. };
  2031. static const struct qcom_icc_desc sa8775p_config_noc = {
  2032. .nodes = config_noc_nodes,
  2033. .num_nodes = ARRAY_SIZE(config_noc_nodes),
  2034. .bcms = config_noc_bcms,
  2035. .num_bcms = ARRAY_SIZE(config_noc_bcms),
  2036. };
  2037. static struct qcom_icc_bcm * const dc_noc_bcms[] = {
  2038. };
  2039. static struct qcom_icc_node * const dc_noc_nodes[] = {
  2040. [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc,
  2041. [SLAVE_LLCC_CFG] = &qhs_llcc,
  2042. [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
  2043. };
  2044. static const struct qcom_icc_desc sa8775p_dc_noc = {
  2045. .nodes = dc_noc_nodes,
  2046. .num_nodes = ARRAY_SIZE(dc_noc_nodes),
  2047. .bcms = dc_noc_bcms,
  2048. .num_bcms = ARRAY_SIZE(dc_noc_bcms),
  2049. };
  2050. static struct qcom_icc_bcm * const gem_noc_bcms[] = {
  2051. &bcm_sh0,
  2052. &bcm_sh2,
  2053. };
  2054. static struct qcom_icc_node * const gem_noc_nodes[] = {
  2055. [MASTER_GPU_TCU] = &alm_gpu_tcu,
  2056. [MASTER_PCIE_TCU] = &alm_pcie_tcu,
  2057. [MASTER_SYS_TCU] = &alm_sys_tcu,
  2058. [MASTER_APPSS_PROC] = &chm_apps,
  2059. [MASTER_COMPUTE_NOC] = &qnm_cmpnoc0,
  2060. [MASTER_COMPUTE_NOC_1] = &qnm_cmpnoc1,
  2061. [MASTER_GEM_NOC_CFG] = &qnm_gemnoc_cfg,
  2062. [MASTER_GPDSP_SAIL] = &qnm_gpdsp_sail,
  2063. [MASTER_GFX3D] = &qnm_gpu,
  2064. [MASTER_MNOC_HF_MEM_NOC] = &qnm_mnoc_hf,
  2065. [MASTER_MNOC_SF_MEM_NOC] = &qnm_mnoc_sf,
  2066. [MASTER_ANOC_PCIE_GEM_NOC] = &qnm_pcie,
  2067. [MASTER_SNOC_GC_MEM_NOC] = &qnm_snoc_gc,
  2068. [MASTER_SNOC_SF_MEM_NOC] = &qnm_snoc_sf,
  2069. [SLAVE_GEM_NOC_CNOC] = &qns_gem_noc_cnoc,
  2070. [SLAVE_LLCC] = &qns_llcc,
  2071. [SLAVE_GEM_NOC_PCIE_CNOC] = &qns_pcie,
  2072. [SLAVE_SERVICE_GEM_NOC_1] = &srvc_even_gemnoc,
  2073. [SLAVE_SERVICE_GEM_NOC_2] = &srvc_odd_gemnoc,
  2074. [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
  2075. [SLAVE_SERVICE_GEM_NOC2] = &srvc_sys_gemnoc_2,
  2076. };
  2077. static const struct qcom_icc_desc sa8775p_gem_noc = {
  2078. .nodes = gem_noc_nodes,
  2079. .num_nodes = ARRAY_SIZE(gem_noc_nodes),
  2080. .bcms = gem_noc_bcms,
  2081. .num_bcms = ARRAY_SIZE(gem_noc_bcms),
  2082. };
  2083. static struct qcom_icc_bcm * const gpdsp_anoc_bcms[] = {
  2084. &bcm_gna0,
  2085. &bcm_gnb0,
  2086. };
  2087. static struct qcom_icc_node * const gpdsp_anoc_nodes[] = {
  2088. [MASTER_DSP0] = &qxm_dsp0,
  2089. [MASTER_DSP1] = &qxm_dsp1,
  2090. [SLAVE_GP_DSP_SAIL_NOC] = &qns_gp_dsp_sail_noc,
  2091. };
  2092. static const struct qcom_icc_desc sa8775p_gpdsp_anoc = {
  2093. .nodes = gpdsp_anoc_nodes,
  2094. .num_nodes = ARRAY_SIZE(gpdsp_anoc_nodes),
  2095. .bcms = gpdsp_anoc_bcms,
  2096. .num_bcms = ARRAY_SIZE(gpdsp_anoc_bcms),
  2097. };
  2098. static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = {
  2099. &bcm_sn9,
  2100. };
  2101. static struct qcom_icc_node * const lpass_ag_noc_nodes[] = {
  2102. [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc,
  2103. [MASTER_LPASS_PROC] = &qxm_lpass_dsp,
  2104. [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core,
  2105. [SLAVE_LPASS_LPI_CFG] = &qhs_lpass_lpi,
  2106. [SLAVE_LPASS_MPU_CFG] = &qhs_lpass_mpu,
  2107. [SLAVE_LPASS_TOP_CFG] = &qhs_lpass_top,
  2108. [SLAVE_LPASS_SNOC] = &qns_sysnoc,
  2109. [SLAVE_SERVICES_LPASS_AML_NOC] = &srvc_niu_aml_noc,
  2110. [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
  2111. };
  2112. static const struct qcom_icc_desc sa8775p_lpass_ag_noc = {
  2113. .nodes = lpass_ag_noc_nodes,
  2114. .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
  2115. .bcms = lpass_ag_noc_bcms,
  2116. .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms),
  2117. };
  2118. static struct qcom_icc_bcm * const mc_virt_bcms[] = {
  2119. &bcm_acv,
  2120. &bcm_mc0,
  2121. };
  2122. static struct qcom_icc_node * const mc_virt_nodes[] = {
  2123. [MASTER_LLCC] = &llcc_mc,
  2124. [SLAVE_EBI1] = &ebi,
  2125. };
  2126. static const struct qcom_icc_desc sa8775p_mc_virt = {
  2127. .nodes = mc_virt_nodes,
  2128. .num_nodes = ARRAY_SIZE(mc_virt_nodes),
  2129. .bcms = mc_virt_bcms,
  2130. .num_bcms = ARRAY_SIZE(mc_virt_bcms),
  2131. };
  2132. static struct qcom_icc_bcm * const mmss_noc_bcms[] = {
  2133. &bcm_mm0,
  2134. &bcm_mm1,
  2135. };
  2136. static struct qcom_icc_node * const mmss_noc_nodes[] = {
  2137. [MASTER_CAMNOC_HF] = &qnm_camnoc_hf,
  2138. [MASTER_CAMNOC_ICP] = &qnm_camnoc_icp,
  2139. [MASTER_CAMNOC_SF] = &qnm_camnoc_sf,
  2140. [MASTER_MDP0] = &qnm_mdp0_0,
  2141. [MASTER_MDP1] = &qnm_mdp0_1,
  2142. [MASTER_MDP_CORE1_0] = &qnm_mdp1_0,
  2143. [MASTER_MDP_CORE1_1] = &qnm_mdp1_1,
  2144. [MASTER_CNOC_MNOC_HF_CFG] = &qnm_mnoc_hf_cfg,
  2145. [MASTER_CNOC_MNOC_SF_CFG] = &qnm_mnoc_sf_cfg,
  2146. [MASTER_VIDEO_P0] = &qnm_video0,
  2147. [MASTER_VIDEO_P1] = &qnm_video1,
  2148. [MASTER_VIDEO_PROC] = &qnm_video_cvp,
  2149. [MASTER_VIDEO_V_PROC] = &qnm_video_v_cpu,
  2150. [SLAVE_MNOC_HF_MEM_NOC] = &qns_mem_noc_hf,
  2151. [SLAVE_MNOC_SF_MEM_NOC] = &qns_mem_noc_sf,
  2152. [SLAVE_SERVICE_MNOC_HF] = &srvc_mnoc_hf,
  2153. [SLAVE_SERVICE_MNOC_SF] = &srvc_mnoc_sf,
  2154. };
  2155. static const struct qcom_icc_desc sa8775p_mmss_noc = {
  2156. .nodes = mmss_noc_nodes,
  2157. .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
  2158. .bcms = mmss_noc_bcms,
  2159. .num_bcms = ARRAY_SIZE(mmss_noc_bcms),
  2160. };
  2161. static struct qcom_icc_bcm * const nspa_noc_bcms[] = {
  2162. &bcm_nsa0,
  2163. &bcm_nsa1,
  2164. };
  2165. static struct qcom_icc_node * const nspa_noc_nodes[] = {
  2166. [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config,
  2167. [MASTER_CDSP_PROC] = &qxm_nsp,
  2168. [SLAVE_HCP_A] = &qns_hcp,
  2169. [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc,
  2170. [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
  2171. };
  2172. static const struct qcom_icc_desc sa8775p_nspa_noc = {
  2173. .nodes = nspa_noc_nodes,
  2174. .num_nodes = ARRAY_SIZE(nspa_noc_nodes),
  2175. .bcms = nspa_noc_bcms,
  2176. .num_bcms = ARRAY_SIZE(nspa_noc_bcms),
  2177. };
  2178. static struct qcom_icc_bcm * const nspb_noc_bcms[] = {
  2179. &bcm_nsb0,
  2180. &bcm_nsb1,
  2181. };
  2182. static struct qcom_icc_node * const nspb_noc_nodes[] = {
  2183. [MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config,
  2184. [MASTER_CDSP_PROC_B] = &qxm_nspb,
  2185. [SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc,
  2186. [SLAVE_HCP_B] = &qns_nspb_hcp,
  2187. [SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc,
  2188. };
  2189. static const struct qcom_icc_desc sa8775p_nspb_noc = {
  2190. .nodes = nspb_noc_nodes,
  2191. .num_nodes = ARRAY_SIZE(nspb_noc_nodes),
  2192. .bcms = nspb_noc_bcms,
  2193. .num_bcms = ARRAY_SIZE(nspb_noc_bcms),
  2194. };
  2195. static struct qcom_icc_bcm * const pcie_anoc_bcms[] = {
  2196. &bcm_pci0,
  2197. };
  2198. static struct qcom_icc_node * const pcie_anoc_nodes[] = {
  2199. [MASTER_PCIE_0] = &xm_pcie3_0,
  2200. [MASTER_PCIE_1] = &xm_pcie3_1,
  2201. [SLAVE_ANOC_PCIE_GEM_NOC] = &qns_pcie_mem_noc,
  2202. };
  2203. static const struct qcom_icc_desc sa8775p_pcie_anoc = {
  2204. .nodes = pcie_anoc_nodes,
  2205. .num_nodes = ARRAY_SIZE(pcie_anoc_nodes),
  2206. .bcms = pcie_anoc_bcms,
  2207. .num_bcms = ARRAY_SIZE(pcie_anoc_bcms),
  2208. };
  2209. static struct qcom_icc_bcm * const system_noc_bcms[] = {
  2210. &bcm_sn0,
  2211. &bcm_sn1,
  2212. &bcm_sn3,
  2213. &bcm_sn4,
  2214. &bcm_sn9,
  2215. };
  2216. static struct qcom_icc_node * const system_noc_nodes[] = {
  2217. [MASTER_GIC_AHB] = &qhm_gic,
  2218. [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc,
  2219. [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc,
  2220. [MASTER_LPASS_ANOC] = &qnm_lpass_noc,
  2221. [MASTER_SNOC_CFG] = &qnm_snoc_cfg,
  2222. [MASTER_PIMEM] = &qxm_pimem,
  2223. [MASTER_GIC] = &xm_gic,
  2224. [SLAVE_SNOC_GEM_NOC_GC] = &qns_gemnoc_gc,
  2225. [SLAVE_SNOC_GEM_NOC_SF] = &qns_gemnoc_sf,
  2226. [SLAVE_SERVICE_SNOC] = &srvc_snoc,
  2227. };
  2228. static const struct qcom_icc_desc sa8775p_system_noc = {
  2229. .nodes = system_noc_nodes,
  2230. .num_nodes = ARRAY_SIZE(system_noc_nodes),
  2231. .bcms = system_noc_bcms,
  2232. .num_bcms = ARRAY_SIZE(system_noc_bcms),
  2233. };
  2234. static const struct of_device_id qnoc_of_match[] = {
  2235. { .compatible = "qcom,sa8775p-aggre1-noc", .data = &sa8775p_aggre1_noc, },
  2236. { .compatible = "qcom,sa8775p-aggre2-noc", .data = &sa8775p_aggre2_noc, },
  2237. { .compatible = "qcom,sa8775p-clk-virt", .data = &sa8775p_clk_virt, },
  2238. { .compatible = "qcom,sa8775p-config-noc", .data = &sa8775p_config_noc, },
  2239. { .compatible = "qcom,sa8775p-dc-noc", .data = &sa8775p_dc_noc, },
  2240. { .compatible = "qcom,sa8775p-gem-noc", .data = &sa8775p_gem_noc, },
  2241. { .compatible = "qcom,sa8775p-gpdsp-anoc", .data = &sa8775p_gpdsp_anoc, },
  2242. { .compatible = "qcom,sa8775p-lpass-ag-noc", .data = &sa8775p_lpass_ag_noc, },
  2243. { .compatible = "qcom,sa8775p-mc-virt", .data = &sa8775p_mc_virt, },
  2244. { .compatible = "qcom,sa8775p-mmss-noc", .data = &sa8775p_mmss_noc, },
  2245. { .compatible = "qcom,sa8775p-nspa-noc", .data = &sa8775p_nspa_noc, },
  2246. { .compatible = "qcom,sa8775p-nspb-noc", .data = &sa8775p_nspb_noc, },
  2247. { .compatible = "qcom,sa8775p-pcie-anoc", .data = &sa8775p_pcie_anoc, },
  2248. { .compatible = "qcom,sa8775p-system-noc", .data = &sa8775p_system_noc, },
  2249. { }
  2250. };
  2251. MODULE_DEVICE_TABLE(of, qnoc_of_match);
  2252. static struct platform_driver qnoc_driver = {
  2253. .probe = qcom_icc_rpmh_probe,
  2254. .remove_new = qcom_icc_rpmh_remove,
  2255. .driver = {
  2256. .name = "qnoc-sa8775p",
  2257. .of_match_table = qnoc_of_match,
  2258. .sync_state = icc_sync_state,
  2259. },
  2260. };
  2261. static int __init qnoc_driver_init(void)
  2262. {
  2263. return platform_driver_register(&qnoc_driver);
  2264. }
  2265. core_initcall(qnoc_driver_init);
  2266. static void __exit qnoc_driver_exit(void)
  2267. {
  2268. platform_driver_unregister(&qnoc_driver);
  2269. }
  2270. module_exit(qnoc_driver_exit);
  2271. MODULE_DESCRIPTION("Qualcomm Technologies, Inc. SA8775P NoC driver");
  2272. MODULE_LICENSE("GPL");