msm8953.c 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/clk.h>
  3. #include <linux/interconnect-provider.h>
  4. #include <linux/mod_devicetable.h>
  5. #include <linux/module.h>
  6. #include <linux/of_device.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/regmap.h>
  9. #include <dt-bindings/interconnect/qcom,msm8953.h>
  10. #include "icc-rpm.h"
  11. enum {
  12. MSM8953_MASTER_AMPSS_M0 = 1,
  13. MSM8953_MASTER_GRAPHICS_3D,
  14. MSM8953_SNOC_BIMC_0_MAS,
  15. MSM8953_SNOC_BIMC_2_MAS,
  16. MSM8953_SNOC_BIMC_1_MAS,
  17. MSM8953_MASTER_TCU_0,
  18. MSM8953_SLAVE_EBI_CH0,
  19. MSM8953_BIMC_SNOC_SLV,
  20. MSM8953_MASTER_SPDM,
  21. MSM8953_MASTER_BLSP_1,
  22. MSM8953_MASTER_BLSP_2,
  23. MSM8953_MASTER_USB3,
  24. MSM8953_MASTER_CRYPTO_CORE0,
  25. MSM8953_MASTER_SDCC_1,
  26. MSM8953_MASTER_SDCC_2,
  27. MSM8953_SNOC_PNOC_MAS,
  28. MSM8953_PNOC_M_0,
  29. MSM8953_PNOC_M_1,
  30. MSM8953_PNOC_INT_1,
  31. MSM8953_PNOC_INT_2,
  32. MSM8953_PNOC_SLV_0,
  33. MSM8953_PNOC_SLV_1,
  34. MSM8953_PNOC_SLV_2,
  35. MSM8953_PNOC_SLV_3,
  36. MSM8953_PNOC_SLV_4,
  37. MSM8953_PNOC_SLV_6,
  38. MSM8953_PNOC_SLV_7,
  39. MSM8953_PNOC_SLV_8,
  40. MSM8953_PNOC_SLV_9,
  41. MSM8953_SLAVE_SPDM_WRAPPER,
  42. MSM8953_SLAVE_PDM,
  43. MSM8953_SLAVE_TCSR,
  44. MSM8953_SLAVE_SNOC_CFG,
  45. MSM8953_SLAVE_TLMM,
  46. MSM8953_SLAVE_MESSAGE_RAM,
  47. MSM8953_SLAVE_BLSP_1,
  48. MSM8953_SLAVE_BLSP_2,
  49. MSM8953_SLAVE_PRNG,
  50. MSM8953_SLAVE_CAMERA_CFG,
  51. MSM8953_SLAVE_DISPLAY_CFG,
  52. MSM8953_SLAVE_VENUS_CFG,
  53. MSM8953_SLAVE_GRAPHICS_3D_CFG,
  54. MSM8953_SLAVE_SDCC_1,
  55. MSM8953_SLAVE_SDCC_2,
  56. MSM8953_SLAVE_CRYPTO_0_CFG,
  57. MSM8953_SLAVE_PMIC_ARB,
  58. MSM8953_SLAVE_USB3,
  59. MSM8953_SLAVE_IPA_CFG,
  60. MSM8953_SLAVE_TCU,
  61. MSM8953_PNOC_SNOC_SLV,
  62. MSM8953_MASTER_QDSS_BAM,
  63. MSM8953_BIMC_SNOC_MAS,
  64. MSM8953_PNOC_SNOC_MAS,
  65. MSM8953_MASTER_IPA,
  66. MSM8953_MASTER_QDSS_ETR,
  67. MSM8953_SNOC_QDSS_INT,
  68. MSM8953_SNOC_INT_0,
  69. MSM8953_SNOC_INT_1,
  70. MSM8953_SNOC_INT_2,
  71. MSM8953_SLAVE_APPSS,
  72. MSM8953_SLAVE_WCSS,
  73. MSM8953_SNOC_BIMC_1_SLV,
  74. MSM8953_SLAVE_OCIMEM,
  75. MSM8953_SNOC_PNOC_SLV,
  76. MSM8953_SLAVE_QDSS_STM,
  77. MSM8953_SLAVE_OCMEM_64,
  78. MSM8953_SLAVE_LPASS,
  79. MSM8953_MASTER_JPEG,
  80. MSM8953_MASTER_MDP_PORT0,
  81. MSM8953_MASTER_VIDEO_P0,
  82. MSM8953_MASTER_VFE,
  83. MSM8953_MASTER_VFE1,
  84. MSM8953_MASTER_CPP,
  85. MSM8953_SNOC_BIMC_0_SLV,
  86. MSM8953_SNOC_BIMC_2_SLV,
  87. MSM8953_SLAVE_CATS_128,
  88. };
  89. static const u16 mas_apps_proc_links[] = {
  90. MSM8953_SLAVE_EBI_CH0,
  91. MSM8953_BIMC_SNOC_SLV
  92. };
  93. static struct qcom_icc_node mas_apps_proc = {
  94. .name = "mas_apps_proc",
  95. .id = MSM8953_MASTER_AMPSS_M0,
  96. .buswidth = 8,
  97. .qos.ap_owned = true,
  98. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  99. .qos.prio_level = 0,
  100. .qos.areq_prio = 0,
  101. .qos.qos_port = 0,
  102. .num_links = ARRAY_SIZE(mas_apps_proc_links),
  103. .links = mas_apps_proc_links,
  104. };
  105. static const u16 mas_oxili_links[] = {
  106. MSM8953_SLAVE_EBI_CH0,
  107. MSM8953_BIMC_SNOC_SLV
  108. };
  109. static struct qcom_icc_node mas_oxili = {
  110. .name = "mas_oxili",
  111. .id = MSM8953_MASTER_GRAPHICS_3D,
  112. .buswidth = 8,
  113. .qos.ap_owned = true,
  114. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  115. .qos.prio_level = 0,
  116. .qos.areq_prio = 0,
  117. .qos.qos_port = 2,
  118. .num_links = ARRAY_SIZE(mas_oxili_links),
  119. .links = mas_oxili_links,
  120. };
  121. static const u16 mas_snoc_bimc_0_links[] = {
  122. MSM8953_SLAVE_EBI_CH0,
  123. MSM8953_BIMC_SNOC_SLV
  124. };
  125. static struct qcom_icc_node mas_snoc_bimc_0 = {
  126. .name = "mas_snoc_bimc_0",
  127. .id = MSM8953_SNOC_BIMC_0_MAS,
  128. .buswidth = 8,
  129. .qos.ap_owned = true,
  130. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  131. .qos.prio_level = 0,
  132. .qos.areq_prio = 0,
  133. .qos.qos_port = 3,
  134. .num_links = ARRAY_SIZE(mas_snoc_bimc_0_links),
  135. .links = mas_snoc_bimc_0_links,
  136. };
  137. static const u16 mas_snoc_bimc_2_links[] = {
  138. MSM8953_SLAVE_EBI_CH0,
  139. MSM8953_BIMC_SNOC_SLV
  140. };
  141. static struct qcom_icc_node mas_snoc_bimc_2 = {
  142. .name = "mas_snoc_bimc_2",
  143. .id = MSM8953_SNOC_BIMC_2_MAS,
  144. .buswidth = 8,
  145. .qos.ap_owned = true,
  146. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  147. .qos.prio_level = 0,
  148. .qos.areq_prio = 0,
  149. .qos.qos_port = 4,
  150. .num_links = ARRAY_SIZE(mas_snoc_bimc_2_links),
  151. .links = mas_snoc_bimc_2_links,
  152. };
  153. static const u16 mas_snoc_bimc_1_links[] = {
  154. MSM8953_SLAVE_EBI_CH0
  155. };
  156. static struct qcom_icc_node mas_snoc_bimc_1 = {
  157. .name = "mas_snoc_bimc_1",
  158. .id = MSM8953_SNOC_BIMC_1_MAS,
  159. .buswidth = 8,
  160. .mas_rpm_id = 76,
  161. .slv_rpm_id = -1,
  162. .num_links = ARRAY_SIZE(mas_snoc_bimc_1_links),
  163. .links = mas_snoc_bimc_1_links,
  164. };
  165. static const u16 mas_tcu_0_links[] = {
  166. MSM8953_SLAVE_EBI_CH0,
  167. MSM8953_BIMC_SNOC_SLV
  168. };
  169. static struct qcom_icc_node mas_tcu_0 = {
  170. .name = "mas_tcu_0",
  171. .id = MSM8953_MASTER_TCU_0,
  172. .buswidth = 8,
  173. .qos.ap_owned = true,
  174. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  175. .qos.prio_level = 2,
  176. .qos.areq_prio = 2,
  177. .qos.qos_port = 6,
  178. .num_links = ARRAY_SIZE(mas_tcu_0_links),
  179. .links = mas_tcu_0_links,
  180. };
  181. static struct qcom_icc_node slv_ebi = {
  182. .name = "slv_ebi",
  183. .id = MSM8953_SLAVE_EBI_CH0,
  184. .buswidth = 8,
  185. .mas_rpm_id = -1,
  186. .slv_rpm_id = 0,
  187. };
  188. static const u16 slv_bimc_snoc_links[] = {
  189. MSM8953_BIMC_SNOC_MAS
  190. };
  191. static struct qcom_icc_node slv_bimc_snoc = {
  192. .name = "slv_bimc_snoc",
  193. .id = MSM8953_BIMC_SNOC_SLV,
  194. .buswidth = 8,
  195. .mas_rpm_id = -1,
  196. .slv_rpm_id = 2,
  197. .num_links = ARRAY_SIZE(slv_bimc_snoc_links),
  198. .links = slv_bimc_snoc_links,
  199. };
  200. static const u16 mas_spdm_links[] = {
  201. MSM8953_PNOC_M_0
  202. };
  203. static struct qcom_icc_node mas_spdm = {
  204. .name = "mas_spdm",
  205. .id = MSM8953_MASTER_SPDM,
  206. .buswidth = 4,
  207. .qos.ap_owned = true,
  208. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  209. .qos.prio_level = 0,
  210. .qos.areq_prio = 0,
  211. .qos.qos_port = -1,
  212. .num_links = ARRAY_SIZE(mas_spdm_links),
  213. .links = mas_spdm_links,
  214. };
  215. static const u16 mas_blsp_1_links[] = {
  216. MSM8953_PNOC_M_1
  217. };
  218. static struct qcom_icc_node mas_blsp_1 = {
  219. .name = "mas_blsp_1",
  220. .id = MSM8953_MASTER_BLSP_1,
  221. .buswidth = 4,
  222. .mas_rpm_id = 41,
  223. .slv_rpm_id = -1,
  224. .num_links = ARRAY_SIZE(mas_blsp_1_links),
  225. .links = mas_blsp_1_links,
  226. };
  227. static const u16 mas_blsp_2_links[] = {
  228. MSM8953_PNOC_M_1
  229. };
  230. static struct qcom_icc_node mas_blsp_2 = {
  231. .name = "mas_blsp_2",
  232. .id = MSM8953_MASTER_BLSP_2,
  233. .buswidth = 4,
  234. .mas_rpm_id = 39,
  235. .slv_rpm_id = -1,
  236. .num_links = ARRAY_SIZE(mas_blsp_2_links),
  237. .links = mas_blsp_2_links,
  238. };
  239. static const u16 mas_usb3_links[] = {
  240. MSM8953_PNOC_INT_1
  241. };
  242. static struct qcom_icc_node mas_usb3 = {
  243. .name = "mas_usb3",
  244. .id = MSM8953_MASTER_USB3,
  245. .buswidth = 8,
  246. .qos.ap_owned = true,
  247. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  248. .qos.prio_level = 1,
  249. .qos.areq_prio = 1,
  250. .qos.qos_port = 11,
  251. .num_links = ARRAY_SIZE(mas_usb3_links),
  252. .links = mas_usb3_links,
  253. };
  254. static const u16 mas_crypto_links[] = {
  255. MSM8953_PNOC_INT_1
  256. };
  257. static struct qcom_icc_node mas_crypto = {
  258. .name = "mas_crypto",
  259. .id = MSM8953_MASTER_CRYPTO_CORE0,
  260. .buswidth = 8,
  261. .qos.ap_owned = true,
  262. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  263. .qos.prio_level = 1,
  264. .qos.areq_prio = 1,
  265. .qos.qos_port = 0,
  266. .num_links = ARRAY_SIZE(mas_crypto_links),
  267. .links = mas_crypto_links,
  268. };
  269. static const u16 mas_sdcc_1_links[] = {
  270. MSM8953_PNOC_INT_1
  271. };
  272. static struct qcom_icc_node mas_sdcc_1 = {
  273. .name = "mas_sdcc_1",
  274. .id = MSM8953_MASTER_SDCC_1,
  275. .buswidth = 8,
  276. .mas_rpm_id = 33,
  277. .slv_rpm_id = -1,
  278. .num_links = ARRAY_SIZE(mas_sdcc_1_links),
  279. .links = mas_sdcc_1_links,
  280. };
  281. static const u16 mas_sdcc_2_links[] = {
  282. MSM8953_PNOC_INT_1
  283. };
  284. static struct qcom_icc_node mas_sdcc_2 = {
  285. .name = "mas_sdcc_2",
  286. .id = MSM8953_MASTER_SDCC_2,
  287. .buswidth = 8,
  288. .mas_rpm_id = 35,
  289. .slv_rpm_id = -1,
  290. .num_links = ARRAY_SIZE(mas_sdcc_2_links),
  291. .links = mas_sdcc_2_links,
  292. };
  293. static const u16 mas_snoc_pcnoc_links[] = {
  294. MSM8953_PNOC_INT_2
  295. };
  296. static struct qcom_icc_node mas_snoc_pcnoc = {
  297. .name = "mas_snoc_pcnoc",
  298. .id = MSM8953_SNOC_PNOC_MAS,
  299. .buswidth = 8,
  300. .mas_rpm_id = 77,
  301. .slv_rpm_id = -1,
  302. .num_links = ARRAY_SIZE(mas_snoc_pcnoc_links),
  303. .links = mas_snoc_pcnoc_links,
  304. };
  305. static const u16 pcnoc_m_0_links[] = {
  306. MSM8953_PNOC_INT_1
  307. };
  308. static struct qcom_icc_node pcnoc_m_0 = {
  309. .name = "pcnoc_m_0",
  310. .id = MSM8953_PNOC_M_0,
  311. .buswidth = 4,
  312. .qos.ap_owned = true,
  313. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  314. .qos.prio_level = 1,
  315. .qos.areq_prio = 1,
  316. .qos.qos_port = 5,
  317. .num_links = ARRAY_SIZE(pcnoc_m_0_links),
  318. .links = pcnoc_m_0_links,
  319. };
  320. static const u16 pcnoc_m_1_links[] = {
  321. MSM8953_PNOC_INT_1
  322. };
  323. static struct qcom_icc_node pcnoc_m_1 = {
  324. .name = "pcnoc_m_1",
  325. .id = MSM8953_PNOC_M_1,
  326. .buswidth = 4,
  327. .mas_rpm_id = 88,
  328. .slv_rpm_id = 117,
  329. .num_links = ARRAY_SIZE(pcnoc_m_1_links),
  330. .links = pcnoc_m_1_links,
  331. };
  332. static const u16 pcnoc_int_1_links[] = {
  333. MSM8953_PNOC_INT_2,
  334. MSM8953_PNOC_SNOC_SLV
  335. };
  336. static struct qcom_icc_node pcnoc_int_1 = {
  337. .name = "pcnoc_int_1",
  338. .id = MSM8953_PNOC_INT_1,
  339. .buswidth = 8,
  340. .mas_rpm_id = 86,
  341. .slv_rpm_id = 115,
  342. .num_links = ARRAY_SIZE(pcnoc_int_1_links),
  343. .links = pcnoc_int_1_links,
  344. };
  345. static const u16 pcnoc_int_2_links[] = {
  346. MSM8953_PNOC_SLV_1,
  347. MSM8953_PNOC_SLV_2,
  348. MSM8953_PNOC_SLV_0,
  349. MSM8953_PNOC_SLV_4,
  350. MSM8953_PNOC_SLV_6,
  351. MSM8953_PNOC_SLV_7,
  352. MSM8953_PNOC_SLV_8,
  353. MSM8953_PNOC_SLV_9,
  354. MSM8953_SLAVE_TCU,
  355. MSM8953_SLAVE_GRAPHICS_3D_CFG,
  356. MSM8953_PNOC_SLV_3
  357. };
  358. static struct qcom_icc_node pcnoc_int_2 = {
  359. .name = "pcnoc_int_2",
  360. .id = MSM8953_PNOC_INT_2,
  361. .buswidth = 8,
  362. .mas_rpm_id = 124,
  363. .slv_rpm_id = 184,
  364. .num_links = ARRAY_SIZE(pcnoc_int_2_links),
  365. .links = pcnoc_int_2_links,
  366. };
  367. static const u16 pcnoc_s_0_links[] = {
  368. MSM8953_SLAVE_PDM,
  369. MSM8953_SLAVE_SPDM_WRAPPER
  370. };
  371. static struct qcom_icc_node pcnoc_s_0 = {
  372. .name = "pcnoc_s_0",
  373. .id = MSM8953_PNOC_SLV_0,
  374. .buswidth = 4,
  375. .mas_rpm_id = 89,
  376. .slv_rpm_id = 118,
  377. .num_links = ARRAY_SIZE(pcnoc_s_0_links),
  378. .links = pcnoc_s_0_links,
  379. };
  380. static const u16 pcnoc_s_1_links[] = {
  381. MSM8953_SLAVE_TCSR
  382. };
  383. static struct qcom_icc_node pcnoc_s_1 = {
  384. .name = "pcnoc_s_1",
  385. .id = MSM8953_PNOC_SLV_1,
  386. .buswidth = 4,
  387. .mas_rpm_id = 90,
  388. .slv_rpm_id = 119,
  389. .num_links = ARRAY_SIZE(pcnoc_s_1_links),
  390. .links = pcnoc_s_1_links,
  391. };
  392. static const u16 pcnoc_s_2_links[] = {
  393. MSM8953_SLAVE_SNOC_CFG
  394. };
  395. static struct qcom_icc_node pcnoc_s_2 = {
  396. .name = "pcnoc_s_2",
  397. .id = MSM8953_PNOC_SLV_2,
  398. .buswidth = 4,
  399. .mas_rpm_id = 91,
  400. .slv_rpm_id = 120,
  401. .num_links = ARRAY_SIZE(pcnoc_s_2_links),
  402. .links = pcnoc_s_2_links,
  403. };
  404. static const u16 pcnoc_s_3_links[] = {
  405. MSM8953_SLAVE_TLMM,
  406. MSM8953_SLAVE_PRNG,
  407. MSM8953_SLAVE_BLSP_1,
  408. MSM8953_SLAVE_BLSP_2,
  409. MSM8953_SLAVE_MESSAGE_RAM
  410. };
  411. static struct qcom_icc_node pcnoc_s_3 = {
  412. .name = "pcnoc_s_3",
  413. .id = MSM8953_PNOC_SLV_3,
  414. .buswidth = 4,
  415. .mas_rpm_id = 92,
  416. .slv_rpm_id = 121,
  417. .num_links = ARRAY_SIZE(pcnoc_s_3_links),
  418. .links = pcnoc_s_3_links,
  419. };
  420. static const u16 pcnoc_s_4_links[] = {
  421. MSM8953_SLAVE_CAMERA_CFG,
  422. MSM8953_SLAVE_DISPLAY_CFG,
  423. MSM8953_SLAVE_VENUS_CFG
  424. };
  425. static struct qcom_icc_node pcnoc_s_4 = {
  426. .name = "pcnoc_s_4",
  427. .id = MSM8953_PNOC_SLV_4,
  428. .buswidth = 4,
  429. .qos.ap_owned = true,
  430. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  431. .qos.prio_level = 0,
  432. .qos.areq_prio = 0,
  433. .qos.qos_port = -1,
  434. .num_links = ARRAY_SIZE(pcnoc_s_4_links),
  435. .links = pcnoc_s_4_links,
  436. };
  437. static const u16 pcnoc_s_6_links[] = {
  438. MSM8953_SLAVE_CRYPTO_0_CFG,
  439. MSM8953_SLAVE_SDCC_2,
  440. MSM8953_SLAVE_SDCC_1
  441. };
  442. static struct qcom_icc_node pcnoc_s_6 = {
  443. .name = "pcnoc_s_6",
  444. .id = MSM8953_PNOC_SLV_6,
  445. .buswidth = 4,
  446. .mas_rpm_id = 94,
  447. .slv_rpm_id = 123,
  448. .num_links = ARRAY_SIZE(pcnoc_s_6_links),
  449. .links = pcnoc_s_6_links,
  450. };
  451. static const u16 pcnoc_s_7_links[] = {
  452. MSM8953_SLAVE_PMIC_ARB
  453. };
  454. static struct qcom_icc_node pcnoc_s_7 = {
  455. .name = "pcnoc_s_7",
  456. .id = MSM8953_PNOC_SLV_7,
  457. .buswidth = 4,
  458. .mas_rpm_id = 95,
  459. .slv_rpm_id = 124,
  460. .num_links = ARRAY_SIZE(pcnoc_s_7_links),
  461. .links = pcnoc_s_7_links,
  462. };
  463. static const u16 pcnoc_s_8_links[] = {
  464. MSM8953_SLAVE_USB3
  465. };
  466. static struct qcom_icc_node pcnoc_s_8 = {
  467. .name = "pcnoc_s_8",
  468. .id = MSM8953_PNOC_SLV_8,
  469. .buswidth = 4,
  470. .qos.ap_owned = true,
  471. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  472. .qos.prio_level = 0,
  473. .qos.areq_prio = 0,
  474. .qos.qos_port = -1,
  475. .num_links = ARRAY_SIZE(pcnoc_s_8_links),
  476. .links = pcnoc_s_8_links,
  477. };
  478. static const u16 pcnoc_s_9_links[] = {
  479. MSM8953_SLAVE_IPA_CFG
  480. };
  481. static struct qcom_icc_node pcnoc_s_9 = {
  482. .name = "pcnoc_s_9",
  483. .id = MSM8953_PNOC_SLV_9,
  484. .buswidth = 4,
  485. .qos.ap_owned = true,
  486. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  487. .qos.prio_level = 0,
  488. .qos.areq_prio = 0,
  489. .qos.qos_port = -1,
  490. .num_links = ARRAY_SIZE(pcnoc_s_9_links),
  491. .links = pcnoc_s_9_links,
  492. };
  493. static struct qcom_icc_node slv_spdm = {
  494. .name = "slv_spdm",
  495. .id = MSM8953_SLAVE_SPDM_WRAPPER,
  496. .buswidth = 4,
  497. .qos.ap_owned = true,
  498. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  499. .qos.prio_level = 0,
  500. .qos.areq_prio = 0,
  501. .qos.qos_port = -1,
  502. };
  503. static struct qcom_icc_node slv_pdm = {
  504. .name = "slv_pdm",
  505. .id = MSM8953_SLAVE_PDM,
  506. .buswidth = 4,
  507. .mas_rpm_id = -1,
  508. .slv_rpm_id = 41,
  509. };
  510. static struct qcom_icc_node slv_tcsr = {
  511. .name = "slv_tcsr",
  512. .id = MSM8953_SLAVE_TCSR,
  513. .buswidth = 4,
  514. .mas_rpm_id = -1,
  515. .slv_rpm_id = 50,
  516. };
  517. static struct qcom_icc_node slv_snoc_cfg = {
  518. .name = "slv_snoc_cfg",
  519. .id = MSM8953_SLAVE_SNOC_CFG,
  520. .buswidth = 4,
  521. .mas_rpm_id = -1,
  522. .slv_rpm_id = 70,
  523. };
  524. static struct qcom_icc_node slv_tlmm = {
  525. .name = "slv_tlmm",
  526. .id = MSM8953_SLAVE_TLMM,
  527. .buswidth = 4,
  528. .mas_rpm_id = -1,
  529. .slv_rpm_id = 51,
  530. };
  531. static struct qcom_icc_node slv_message_ram = {
  532. .name = "slv_message_ram",
  533. .id = MSM8953_SLAVE_MESSAGE_RAM,
  534. .buswidth = 4,
  535. .mas_rpm_id = -1,
  536. .slv_rpm_id = 55,
  537. };
  538. static struct qcom_icc_node slv_blsp_1 = {
  539. .name = "slv_blsp_1",
  540. .id = MSM8953_SLAVE_BLSP_1,
  541. .buswidth = 4,
  542. .mas_rpm_id = -1,
  543. .slv_rpm_id = 39,
  544. };
  545. static struct qcom_icc_node slv_blsp_2 = {
  546. .name = "slv_blsp_2",
  547. .id = MSM8953_SLAVE_BLSP_2,
  548. .buswidth = 4,
  549. .mas_rpm_id = -1,
  550. .slv_rpm_id = 37,
  551. };
  552. static struct qcom_icc_node slv_prng = {
  553. .name = "slv_prng",
  554. .id = MSM8953_SLAVE_PRNG,
  555. .buswidth = 4,
  556. .mas_rpm_id = -1,
  557. .slv_rpm_id = 44,
  558. };
  559. static struct qcom_icc_node slv_camera_ss_cfg = {
  560. .name = "slv_camera_ss_cfg",
  561. .id = MSM8953_SLAVE_CAMERA_CFG,
  562. .buswidth = 4,
  563. .qos.ap_owned = true,
  564. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  565. .qos.prio_level = 0,
  566. .qos.areq_prio = 0,
  567. .qos.qos_port = -1,
  568. };
  569. static struct qcom_icc_node slv_disp_ss_cfg = {
  570. .name = "slv_disp_ss_cfg",
  571. .id = MSM8953_SLAVE_DISPLAY_CFG,
  572. .buswidth = 4,
  573. .qos.ap_owned = true,
  574. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  575. .qos.prio_level = 0,
  576. .qos.areq_prio = 0,
  577. .qos.qos_port = -1,
  578. };
  579. static struct qcom_icc_node slv_venus_cfg = {
  580. .name = "slv_venus_cfg",
  581. .id = MSM8953_SLAVE_VENUS_CFG,
  582. .buswidth = 4,
  583. .qos.ap_owned = true,
  584. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  585. .qos.prio_level = 0,
  586. .qos.areq_prio = 0,
  587. .qos.qos_port = -1,
  588. };
  589. static struct qcom_icc_node slv_gpu_cfg = {
  590. .name = "slv_gpu_cfg",
  591. .id = MSM8953_SLAVE_GRAPHICS_3D_CFG,
  592. .buswidth = 8,
  593. .qos.ap_owned = true,
  594. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  595. .qos.prio_level = 0,
  596. .qos.areq_prio = 0,
  597. .qos.qos_port = -1,
  598. };
  599. static struct qcom_icc_node slv_sdcc_1 = {
  600. .name = "slv_sdcc_1",
  601. .id = MSM8953_SLAVE_SDCC_1,
  602. .buswidth = 4,
  603. .mas_rpm_id = -1,
  604. .slv_rpm_id = 31,
  605. };
  606. static struct qcom_icc_node slv_sdcc_2 = {
  607. .name = "slv_sdcc_2",
  608. .id = MSM8953_SLAVE_SDCC_2,
  609. .buswidth = 4,
  610. .mas_rpm_id = -1,
  611. .slv_rpm_id = 33,
  612. };
  613. static struct qcom_icc_node slv_crypto_0_cfg = {
  614. .name = "slv_crypto_0_cfg",
  615. .id = MSM8953_SLAVE_CRYPTO_0_CFG,
  616. .buswidth = 4,
  617. .qos.ap_owned = true,
  618. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  619. .qos.prio_level = 0,
  620. .qos.areq_prio = 0,
  621. .qos.qos_port = -1,
  622. };
  623. static struct qcom_icc_node slv_pmic_arb = {
  624. .name = "slv_pmic_arb",
  625. .id = MSM8953_SLAVE_PMIC_ARB,
  626. .buswidth = 4,
  627. .mas_rpm_id = -1,
  628. .slv_rpm_id = 59,
  629. };
  630. static struct qcom_icc_node slv_usb3 = {
  631. .name = "slv_usb3",
  632. .id = MSM8953_SLAVE_USB3,
  633. .buswidth = 4,
  634. .qos.ap_owned = true,
  635. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  636. .qos.prio_level = 0,
  637. .qos.areq_prio = 0,
  638. .qos.qos_port = -1,
  639. };
  640. static struct qcom_icc_node slv_ipa_cfg = {
  641. .name = "slv_ipa_cfg",
  642. .id = MSM8953_SLAVE_IPA_CFG,
  643. .buswidth = 4,
  644. .qos.ap_owned = true,
  645. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  646. .qos.prio_level = 0,
  647. .qos.areq_prio = 0,
  648. .qos.qos_port = -1,
  649. };
  650. static struct qcom_icc_node slv_tcu = {
  651. .name = "slv_tcu",
  652. .id = MSM8953_SLAVE_TCU,
  653. .buswidth = 8,
  654. .qos.ap_owned = true,
  655. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  656. .qos.prio_level = 0,
  657. .qos.areq_prio = 0,
  658. .qos.qos_port = -1,
  659. };
  660. static const u16 slv_pcnoc_snoc_links[] = {
  661. MSM8953_PNOC_SNOC_MAS
  662. };
  663. static struct qcom_icc_node slv_pcnoc_snoc = {
  664. .name = "slv_pcnoc_snoc",
  665. .id = MSM8953_PNOC_SNOC_SLV,
  666. .buswidth = 8,
  667. .mas_rpm_id = -1,
  668. .slv_rpm_id = 45,
  669. .num_links = ARRAY_SIZE(slv_pcnoc_snoc_links),
  670. .links = slv_pcnoc_snoc_links,
  671. };
  672. static const u16 mas_qdss_bam_links[] = {
  673. MSM8953_SNOC_QDSS_INT
  674. };
  675. static struct qcom_icc_node mas_qdss_bam = {
  676. .name = "mas_qdss_bam",
  677. .id = MSM8953_MASTER_QDSS_BAM,
  678. .buswidth = 4,
  679. .qos.ap_owned = true,
  680. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  681. .qos.prio_level = 1,
  682. .qos.areq_prio = 1,
  683. .qos.qos_port = 11,
  684. .num_links = ARRAY_SIZE(mas_qdss_bam_links),
  685. .links = mas_qdss_bam_links,
  686. };
  687. static const u16 mas_bimc_snoc_links[] = {
  688. MSM8953_SNOC_INT_0,
  689. MSM8953_SNOC_INT_1,
  690. MSM8953_SNOC_INT_2
  691. };
  692. static struct qcom_icc_node mas_bimc_snoc = {
  693. .name = "mas_bimc_snoc",
  694. .id = MSM8953_BIMC_SNOC_MAS,
  695. .buswidth = 8,
  696. .mas_rpm_id = 21,
  697. .slv_rpm_id = -1,
  698. .num_links = ARRAY_SIZE(mas_bimc_snoc_links),
  699. .links = mas_bimc_snoc_links,
  700. };
  701. static const u16 mas_pcnoc_snoc_links[] = {
  702. MSM8953_SNOC_INT_0,
  703. MSM8953_SNOC_INT_1,
  704. MSM8953_SNOC_BIMC_1_SLV
  705. };
  706. static struct qcom_icc_node mas_pcnoc_snoc = {
  707. .name = "mas_pcnoc_snoc",
  708. .id = MSM8953_PNOC_SNOC_MAS,
  709. .buswidth = 8,
  710. .mas_rpm_id = 29,
  711. .slv_rpm_id = -1,
  712. .num_links = ARRAY_SIZE(mas_pcnoc_snoc_links),
  713. .links = mas_pcnoc_snoc_links,
  714. };
  715. static const u16 mas_ipa_links[] = {
  716. MSM8953_SNOC_INT_0,
  717. MSM8953_SNOC_INT_1,
  718. MSM8953_SNOC_BIMC_1_SLV
  719. };
  720. static struct qcom_icc_node mas_ipa = {
  721. .name = "mas_ipa",
  722. .id = MSM8953_MASTER_IPA,
  723. .buswidth = 8,
  724. .qos.ap_owned = true,
  725. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  726. .qos.prio_level = 0,
  727. .qos.areq_prio = 0,
  728. .qos.qos_port = 14,
  729. .num_links = ARRAY_SIZE(mas_ipa_links),
  730. .links = mas_ipa_links,
  731. };
  732. static const u16 mas_qdss_etr_links[] = {
  733. MSM8953_SNOC_QDSS_INT
  734. };
  735. static struct qcom_icc_node mas_qdss_etr = {
  736. .name = "mas_qdss_etr",
  737. .id = MSM8953_MASTER_QDSS_ETR,
  738. .buswidth = 8,
  739. .qos.ap_owned = true,
  740. .qos.qos_mode = NOC_QOS_MODE_FIXED,
  741. .qos.prio_level = 1,
  742. .qos.areq_prio = 1,
  743. .qos.qos_port = 10,
  744. .num_links = ARRAY_SIZE(mas_qdss_etr_links),
  745. .links = mas_qdss_etr_links,
  746. };
  747. static const u16 qdss_int_links[] = {
  748. MSM8953_SNOC_INT_1,
  749. MSM8953_SNOC_BIMC_1_SLV
  750. };
  751. static struct qcom_icc_node qdss_int = {
  752. .name = "qdss_int",
  753. .id = MSM8953_SNOC_QDSS_INT,
  754. .buswidth = 8,
  755. .qos.ap_owned = true,
  756. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  757. .qos.prio_level = 0,
  758. .qos.areq_prio = 0,
  759. .qos.qos_port = -1,
  760. .num_links = ARRAY_SIZE(qdss_int_links),
  761. .links = qdss_int_links,
  762. };
  763. static const u16 snoc_int_0_links[] = {
  764. MSM8953_SLAVE_LPASS,
  765. MSM8953_SLAVE_WCSS,
  766. MSM8953_SLAVE_APPSS
  767. };
  768. static struct qcom_icc_node snoc_int_0 = {
  769. .name = "snoc_int_0",
  770. .id = MSM8953_SNOC_INT_0,
  771. .buswidth = 8,
  772. .qos.ap_owned = true,
  773. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  774. .qos.prio_level = 0,
  775. .qos.areq_prio = 0,
  776. .qos.qos_port = -1,
  777. .num_links = ARRAY_SIZE(snoc_int_0_links),
  778. .links = snoc_int_0_links,
  779. };
  780. static const u16 snoc_int_1_links[] = {
  781. MSM8953_SLAVE_QDSS_STM,
  782. MSM8953_SLAVE_OCIMEM,
  783. MSM8953_SNOC_PNOC_SLV
  784. };
  785. static struct qcom_icc_node snoc_int_1 = {
  786. .name = "snoc_int_1",
  787. .id = MSM8953_SNOC_INT_1,
  788. .buswidth = 8,
  789. .mas_rpm_id = 100,
  790. .slv_rpm_id = 131,
  791. .num_links = ARRAY_SIZE(snoc_int_1_links),
  792. .links = snoc_int_1_links,
  793. };
  794. static const u16 snoc_int_2_links[] = {
  795. MSM8953_SLAVE_CATS_128,
  796. MSM8953_SLAVE_OCMEM_64
  797. };
  798. static struct qcom_icc_node snoc_int_2 = {
  799. .name = "snoc_int_2",
  800. .id = MSM8953_SNOC_INT_2,
  801. .buswidth = 8,
  802. .qos.ap_owned = true,
  803. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  804. .qos.prio_level = 0,
  805. .qos.areq_prio = 0,
  806. .qos.qos_port = -1,
  807. .num_links = ARRAY_SIZE(snoc_int_2_links),
  808. .links = snoc_int_2_links,
  809. };
  810. static struct qcom_icc_node slv_kpss_ahb = {
  811. .name = "slv_kpss_ahb",
  812. .id = MSM8953_SLAVE_APPSS,
  813. .buswidth = 4,
  814. .qos.ap_owned = true,
  815. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  816. .qos.prio_level = 0,
  817. .qos.areq_prio = 0,
  818. .qos.qos_port = -1,
  819. };
  820. static struct qcom_icc_node slv_wcss = {
  821. .name = "slv_wcss",
  822. .id = MSM8953_SLAVE_WCSS,
  823. .buswidth = 4,
  824. .qos.ap_owned = true,
  825. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  826. .qos.prio_level = 0,
  827. .qos.areq_prio = 0,
  828. .qos.qos_port = -1,
  829. };
  830. static const u16 slv_snoc_bimc_1_links[] = {
  831. MSM8953_SNOC_BIMC_1_MAS
  832. };
  833. static struct qcom_icc_node slv_snoc_bimc_1 = {
  834. .name = "slv_snoc_bimc_1",
  835. .id = MSM8953_SNOC_BIMC_1_SLV,
  836. .buswidth = 8,
  837. .mas_rpm_id = -1,
  838. .slv_rpm_id = 104,
  839. .num_links = ARRAY_SIZE(slv_snoc_bimc_1_links),
  840. .links = slv_snoc_bimc_1_links,
  841. };
  842. static struct qcom_icc_node slv_imem = {
  843. .name = "slv_imem",
  844. .id = MSM8953_SLAVE_OCIMEM,
  845. .buswidth = 8,
  846. .mas_rpm_id = -1,
  847. .slv_rpm_id = 26,
  848. };
  849. static const u16 slv_snoc_pcnoc_links[] = {
  850. MSM8953_SNOC_PNOC_MAS
  851. };
  852. static struct qcom_icc_node slv_snoc_pcnoc = {
  853. .name = "slv_snoc_pcnoc",
  854. .id = MSM8953_SNOC_PNOC_SLV,
  855. .buswidth = 8,
  856. .mas_rpm_id = -1,
  857. .slv_rpm_id = 28,
  858. .num_links = ARRAY_SIZE(slv_snoc_pcnoc_links),
  859. .links = slv_snoc_pcnoc_links,
  860. };
  861. static struct qcom_icc_node slv_qdss_stm = {
  862. .name = "slv_qdss_stm",
  863. .id = MSM8953_SLAVE_QDSS_STM,
  864. .buswidth = 4,
  865. .mas_rpm_id = -1,
  866. .slv_rpm_id = 30,
  867. };
  868. static struct qcom_icc_node slv_cats_1 = {
  869. .name = "slv_cats_1",
  870. .id = MSM8953_SLAVE_OCMEM_64,
  871. .buswidth = 8,
  872. .qos.ap_owned = true,
  873. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  874. .qos.prio_level = 0,
  875. .qos.areq_prio = 0,
  876. .qos.qos_port = -1,
  877. };
  878. static struct qcom_icc_node slv_lpass = {
  879. .name = "slv_lpass",
  880. .id = MSM8953_SLAVE_LPASS,
  881. .buswidth = 4,
  882. .qos.ap_owned = true,
  883. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  884. .qos.prio_level = 0,
  885. .qos.areq_prio = 0,
  886. .qos.qos_port = -1,
  887. };
  888. static const u16 mas_jpeg_links[] = {
  889. MSM8953_SNOC_BIMC_2_SLV
  890. };
  891. static struct qcom_icc_node mas_jpeg = {
  892. .name = "mas_jpeg",
  893. .id = MSM8953_MASTER_JPEG,
  894. .buswidth = 16,
  895. .qos.ap_owned = true,
  896. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  897. .qos.prio_level = 0,
  898. .qos.areq_prio = 0,
  899. .qos.qos_port = 6,
  900. .num_links = ARRAY_SIZE(mas_jpeg_links),
  901. .links = mas_jpeg_links,
  902. };
  903. static const u16 mas_mdp_links[] = {
  904. MSM8953_SNOC_BIMC_0_SLV
  905. };
  906. static struct qcom_icc_node mas_mdp = {
  907. .name = "mas_mdp",
  908. .id = MSM8953_MASTER_MDP_PORT0,
  909. .buswidth = 16,
  910. .qos.ap_owned = true,
  911. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  912. .qos.prio_level = 0,
  913. .qos.areq_prio = 0,
  914. .qos.qos_port = 7,
  915. .num_links = ARRAY_SIZE(mas_mdp_links),
  916. .links = mas_mdp_links,
  917. };
  918. static const u16 mas_venus_links[] = {
  919. MSM8953_SNOC_BIMC_2_SLV
  920. };
  921. static struct qcom_icc_node mas_venus = {
  922. .name = "mas_venus",
  923. .id = MSM8953_MASTER_VIDEO_P0,
  924. .buswidth = 16,
  925. .qos.ap_owned = true,
  926. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  927. .qos.prio_level = 0,
  928. .qos.areq_prio = 0,
  929. .qos.qos_port = 8,
  930. .num_links = ARRAY_SIZE(mas_venus_links),
  931. .links = mas_venus_links,
  932. };
  933. static const u16 mas_vfe0_links[] = {
  934. MSM8953_SNOC_BIMC_0_SLV
  935. };
  936. static struct qcom_icc_node mas_vfe0 = {
  937. .name = "mas_vfe0",
  938. .id = MSM8953_MASTER_VFE,
  939. .buswidth = 16,
  940. .qos.ap_owned = true,
  941. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  942. .qos.prio_level = 0,
  943. .qos.areq_prio = 0,
  944. .qos.qos_port = 9,
  945. .num_links = ARRAY_SIZE(mas_vfe0_links),
  946. .links = mas_vfe0_links,
  947. };
  948. static const u16 mas_vfe1_links[] = {
  949. MSM8953_SNOC_BIMC_0_SLV
  950. };
  951. static struct qcom_icc_node mas_vfe1 = {
  952. .name = "mas_vfe1",
  953. .id = MSM8953_MASTER_VFE1,
  954. .buswidth = 16,
  955. .qos.ap_owned = true,
  956. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  957. .qos.prio_level = 0,
  958. .qos.areq_prio = 0,
  959. .qos.qos_port = 13,
  960. .num_links = ARRAY_SIZE(mas_vfe1_links),
  961. .links = mas_vfe1_links,
  962. };
  963. static const u16 mas_cpp_links[] = {
  964. MSM8953_SNOC_BIMC_2_SLV
  965. };
  966. static struct qcom_icc_node mas_cpp = {
  967. .name = "mas_cpp",
  968. .id = MSM8953_MASTER_CPP,
  969. .buswidth = 16,
  970. .qos.ap_owned = true,
  971. .qos.qos_mode = NOC_QOS_MODE_BYPASS,
  972. .qos.prio_level = 0,
  973. .qos.areq_prio = 0,
  974. .qos.qos_port = 12,
  975. .num_links = ARRAY_SIZE(mas_cpp_links),
  976. .links = mas_cpp_links,
  977. };
  978. static const u16 slv_snoc_bimc_0_links[] = {
  979. MSM8953_SNOC_BIMC_0_MAS
  980. };
  981. static struct qcom_icc_node slv_snoc_bimc_0 = {
  982. .name = "slv_snoc_bimc_0",
  983. .id = MSM8953_SNOC_BIMC_0_SLV,
  984. .buswidth = 16,
  985. .qos.ap_owned = true,
  986. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  987. .qos.prio_level = 0,
  988. .qos.areq_prio = 0,
  989. .qos.qos_port = -1,
  990. .num_links = ARRAY_SIZE(slv_snoc_bimc_0_links),
  991. .links = slv_snoc_bimc_0_links,
  992. };
  993. static const u16 slv_snoc_bimc_2_links[] = {
  994. MSM8953_SNOC_BIMC_2_MAS
  995. };
  996. static struct qcom_icc_node slv_snoc_bimc_2 = {
  997. .name = "slv_snoc_bimc_2",
  998. .id = MSM8953_SNOC_BIMC_2_SLV,
  999. .buswidth = 16,
  1000. .qos.ap_owned = true,
  1001. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  1002. .qos.prio_level = 0,
  1003. .qos.areq_prio = 0,
  1004. .qos.qos_port = -1,
  1005. .num_links = ARRAY_SIZE(slv_snoc_bimc_2_links),
  1006. .links = slv_snoc_bimc_2_links,
  1007. };
  1008. static struct qcom_icc_node slv_cats_0 = {
  1009. .name = "slv_cats_0",
  1010. .id = MSM8953_SLAVE_CATS_128,
  1011. .buswidth = 16,
  1012. .qos.ap_owned = true,
  1013. .qos.qos_mode = NOC_QOS_MODE_INVALID,
  1014. .qos.prio_level = 0,
  1015. .qos.areq_prio = 0,
  1016. .qos.qos_port = -1,
  1017. };
  1018. static struct qcom_icc_node * const msm8953_bimc_nodes[] = {
  1019. [MAS_APPS_PROC] = &mas_apps_proc,
  1020. [MAS_OXILI] = &mas_oxili,
  1021. [MAS_SNOC_BIMC_0] = &mas_snoc_bimc_0,
  1022. [MAS_SNOC_BIMC_2] = &mas_snoc_bimc_2,
  1023. [MAS_SNOC_BIMC_1] = &mas_snoc_bimc_1,
  1024. [MAS_TCU_0] = &mas_tcu_0,
  1025. [SLV_EBI] = &slv_ebi,
  1026. [SLV_BIMC_SNOC] = &slv_bimc_snoc,
  1027. };
  1028. static const struct regmap_config msm8953_bimc_regmap_config = {
  1029. .fast_io = true,
  1030. .max_register = 0x5a000,
  1031. .reg_bits = 32,
  1032. .reg_stride = 4,
  1033. .val_bits = 32,
  1034. };
  1035. static const struct qcom_icc_desc msm8953_bimc = {
  1036. .type = QCOM_ICC_BIMC,
  1037. .bus_clk_desc = &bimc_clk,
  1038. .nodes = msm8953_bimc_nodes,
  1039. .num_nodes = ARRAY_SIZE(msm8953_bimc_nodes),
  1040. .qos_offset = 0x8000,
  1041. .ab_coeff = 153,
  1042. .regmap_cfg = &msm8953_bimc_regmap_config
  1043. };
  1044. static struct qcom_icc_node * const msm8953_pcnoc_nodes[] = {
  1045. [MAS_SPDM] = &mas_spdm,
  1046. [MAS_BLSP_1] = &mas_blsp_1,
  1047. [MAS_BLSP_2] = &mas_blsp_2,
  1048. [MAS_USB3] = &mas_usb3,
  1049. [MAS_CRYPTO] = &mas_crypto,
  1050. [MAS_SDCC_1] = &mas_sdcc_1,
  1051. [MAS_SDCC_2] = &mas_sdcc_2,
  1052. [MAS_SNOC_PCNOC] = &mas_snoc_pcnoc,
  1053. [PCNOC_M_0] = &pcnoc_m_0,
  1054. [PCNOC_M_1] = &pcnoc_m_1,
  1055. [PCNOC_INT_1] = &pcnoc_int_1,
  1056. [PCNOC_INT_2] = &pcnoc_int_2,
  1057. [PCNOC_S_0] = &pcnoc_s_0,
  1058. [PCNOC_S_1] = &pcnoc_s_1,
  1059. [PCNOC_S_2] = &pcnoc_s_2,
  1060. [PCNOC_S_3] = &pcnoc_s_3,
  1061. [PCNOC_S_4] = &pcnoc_s_4,
  1062. [PCNOC_S_6] = &pcnoc_s_6,
  1063. [PCNOC_S_7] = &pcnoc_s_7,
  1064. [PCNOC_S_8] = &pcnoc_s_8,
  1065. [PCNOC_S_9] = &pcnoc_s_9,
  1066. [SLV_SPDM] = &slv_spdm,
  1067. [SLV_PDM] = &slv_pdm,
  1068. [SLV_TCSR] = &slv_tcsr,
  1069. [SLV_SNOC_CFG] = &slv_snoc_cfg,
  1070. [SLV_TLMM] = &slv_tlmm,
  1071. [SLV_MESSAGE_RAM] = &slv_message_ram,
  1072. [SLV_BLSP_1] = &slv_blsp_1,
  1073. [SLV_BLSP_2] = &slv_blsp_2,
  1074. [SLV_PRNG] = &slv_prng,
  1075. [SLV_CAMERA_SS_CFG] = &slv_camera_ss_cfg,
  1076. [SLV_DISP_SS_CFG] = &slv_disp_ss_cfg,
  1077. [SLV_VENUS_CFG] = &slv_venus_cfg,
  1078. [SLV_GPU_CFG] = &slv_gpu_cfg,
  1079. [SLV_SDCC_1] = &slv_sdcc_1,
  1080. [SLV_SDCC_2] = &slv_sdcc_2,
  1081. [SLV_CRYPTO_0_CFG] = &slv_crypto_0_cfg,
  1082. [SLV_PMIC_ARB] = &slv_pmic_arb,
  1083. [SLV_USB3] = &slv_usb3,
  1084. [SLV_IPA_CFG] = &slv_ipa_cfg,
  1085. [SLV_TCU] = &slv_tcu,
  1086. [SLV_PCNOC_SNOC] = &slv_pcnoc_snoc,
  1087. };
  1088. static const char * const msm8953_pcnoc_intf_clocks[] = {
  1089. "pcnoc_usb3_axi"
  1090. };
  1091. static const struct regmap_config msm8953_pcnoc_regmap_config = {
  1092. .fast_io = true,
  1093. .max_register = 0x12080,
  1094. .reg_bits = 32,
  1095. .reg_stride = 4,
  1096. .val_bits = 32,
  1097. };
  1098. static const struct qcom_icc_desc msm8953_pcnoc = {
  1099. .type = QCOM_ICC_NOC,
  1100. .bus_clk_desc = &bus_0_clk,
  1101. .intf_clocks = msm8953_pcnoc_intf_clocks,
  1102. .num_intf_clocks = ARRAY_SIZE(msm8953_pcnoc_intf_clocks),
  1103. .nodes = msm8953_pcnoc_nodes,
  1104. .num_nodes = ARRAY_SIZE(msm8953_pcnoc_nodes),
  1105. .qos_offset = 0x7000,
  1106. .regmap_cfg = &msm8953_pcnoc_regmap_config,
  1107. };
  1108. static struct qcom_icc_node * const msm8953_snoc_nodes[] = {
  1109. [MAS_QDSS_BAM] = &mas_qdss_bam,
  1110. [MAS_BIMC_SNOC] = &mas_bimc_snoc,
  1111. [MAS_PCNOC_SNOC] = &mas_pcnoc_snoc,
  1112. [MAS_IPA] = &mas_ipa,
  1113. [MAS_QDSS_ETR] = &mas_qdss_etr,
  1114. [QDSS_INT] = &qdss_int,
  1115. [SNOC_INT_0] = &snoc_int_0,
  1116. [SNOC_INT_1] = &snoc_int_1,
  1117. [SNOC_INT_2] = &snoc_int_2,
  1118. [SLV_KPSS_AHB] = &slv_kpss_ahb,
  1119. [SLV_WCSS] = &slv_wcss,
  1120. [SLV_SNOC_BIMC_1] = &slv_snoc_bimc_1,
  1121. [SLV_IMEM] = &slv_imem,
  1122. [SLV_SNOC_PCNOC] = &slv_snoc_pcnoc,
  1123. [SLV_QDSS_STM] = &slv_qdss_stm,
  1124. [SLV_CATS_1] = &slv_cats_1,
  1125. [SLV_LPASS] = &slv_lpass,
  1126. };
  1127. static const struct regmap_config msm8953_snoc_regmap_config = {
  1128. .fast_io = true,
  1129. .max_register = 0x16080,
  1130. .reg_bits = 32,
  1131. .reg_stride = 4,
  1132. .val_bits = 32,
  1133. };
  1134. static const struct qcom_icc_desc msm8953_snoc = {
  1135. .type = QCOM_ICC_NOC,
  1136. .bus_clk_desc = &bus_1_clk,
  1137. .nodes = msm8953_snoc_nodes,
  1138. .num_nodes = ARRAY_SIZE(msm8953_snoc_nodes),
  1139. .qos_offset = 0x7000,
  1140. .regmap_cfg = &msm8953_snoc_regmap_config,
  1141. };
  1142. static struct qcom_icc_node * const msm8953_snoc_mm_nodes[] = {
  1143. [MAS_JPEG] = &mas_jpeg,
  1144. [MAS_MDP] = &mas_mdp,
  1145. [MAS_VENUS] = &mas_venus,
  1146. [MAS_VFE0] = &mas_vfe0,
  1147. [MAS_VFE1] = &mas_vfe1,
  1148. [MAS_CPP] = &mas_cpp,
  1149. [SLV_SNOC_BIMC_0] = &slv_snoc_bimc_0,
  1150. [SLV_SNOC_BIMC_2] = &slv_snoc_bimc_2,
  1151. [SLV_CATS_0] = &slv_cats_0,
  1152. };
  1153. static const struct qcom_icc_desc msm8953_snoc_mm = {
  1154. .type = QCOM_ICC_NOC,
  1155. .bus_clk_desc = &bus_2_clk,
  1156. .nodes = msm8953_snoc_mm_nodes,
  1157. .num_nodes = ARRAY_SIZE(msm8953_snoc_mm_nodes),
  1158. .qos_offset = 0x7000,
  1159. .ab_coeff = 153,
  1160. .regmap_cfg = &msm8953_snoc_regmap_config,
  1161. };
  1162. static const struct of_device_id msm8953_noc_of_match[] = {
  1163. { .compatible = "qcom,msm8953-bimc", .data = &msm8953_bimc },
  1164. { .compatible = "qcom,msm8953-pcnoc", .data = &msm8953_pcnoc },
  1165. { .compatible = "qcom,msm8953-snoc", .data = &msm8953_snoc },
  1166. { .compatible = "qcom,msm8953-snoc-mm", .data = &msm8953_snoc_mm },
  1167. { }
  1168. };
  1169. static struct platform_driver msm8953_noc_driver = {
  1170. .probe = qnoc_probe,
  1171. .remove_new = qnoc_remove,
  1172. .driver = {
  1173. .name = "qnoc-msm8953",
  1174. .of_match_table = msm8953_noc_of_match,
  1175. },
  1176. };
  1177. module_platform_driver(msm8953_noc_driver);
  1178. MODULE_DEVICE_TABLE(of, msm8953_noc_of_match);
  1179. MODULE_DESCRIPTION("Qualcomm MSM8953 NoC driver");
  1180. MODULE_LICENSE("GPL");