qcom,gcc-apq8084.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /*
  2. * Copyright (c) 2014, The Linux Foundation. All rights reserved.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _DT_BINDINGS_CLK_APQ_GCC_8084_H
  14. #define _DT_BINDINGS_CLK_APQ_GCC_8084_H
  15. #define GPLL0 0
  16. #define GPLL0_VOTE 1
  17. #define GPLL1 2
  18. #define GPLL1_VOTE 3
  19. #define GPLL2 4
  20. #define GPLL2_VOTE 5
  21. #define GPLL3 6
  22. #define GPLL3_VOTE 7
  23. #define GPLL4 8
  24. #define GPLL4_VOTE 9
  25. #define CONFIG_NOC_CLK_SRC 10
  26. #define PERIPH_NOC_CLK_SRC 11
  27. #define SYSTEM_NOC_CLK_SRC 12
  28. #define BLSP_UART_SIM_CLK_SRC 13
  29. #define QDSS_TSCTR_CLK_SRC 14
  30. #define UFS_AXI_CLK_SRC 15
  31. #define RPM_CLK_SRC 16
  32. #define KPSS_AHB_CLK_SRC 17
  33. #define QDSS_AT_CLK_SRC 18
  34. #define BIMC_DDR_CLK_SRC 19
  35. #define USB30_MASTER_CLK_SRC 20
  36. #define USB30_SEC_MASTER_CLK_SRC 21
  37. #define USB_HSIC_AHB_CLK_SRC 22
  38. #define MMSS_BIMC_GFX_CLK_SRC 23
  39. #define QDSS_STM_CLK_SRC 24
  40. #define ACC_CLK_SRC 25
  41. #define SEC_CTRL_CLK_SRC 26
  42. #define BLSP1_QUP1_I2C_APPS_CLK_SRC 27
  43. #define BLSP1_QUP1_SPI_APPS_CLK_SRC 28
  44. #define BLSP1_QUP2_I2C_APPS_CLK_SRC 29
  45. #define BLSP1_QUP2_SPI_APPS_CLK_SRC 30
  46. #define BLSP1_QUP3_I2C_APPS_CLK_SRC 31
  47. #define BLSP1_QUP3_SPI_APPS_CLK_SRC 32
  48. #define BLSP1_QUP4_I2C_APPS_CLK_SRC 33
  49. #define BLSP1_QUP4_SPI_APPS_CLK_SRC 34
  50. #define BLSP1_QUP5_I2C_APPS_CLK_SRC 35
  51. #define BLSP1_QUP5_SPI_APPS_CLK_SRC 36
  52. #define BLSP1_QUP6_I2C_APPS_CLK_SRC 37
  53. #define BLSP1_QUP6_SPI_APPS_CLK_SRC 38
  54. #define BLSP1_UART1_APPS_CLK_SRC 39
  55. #define BLSP1_UART2_APPS_CLK_SRC 40
  56. #define BLSP1_UART3_APPS_CLK_SRC 41
  57. #define BLSP1_UART4_APPS_CLK_SRC 42
  58. #define BLSP1_UART5_APPS_CLK_SRC 43
  59. #define BLSP1_UART6_APPS_CLK_SRC 44
  60. #define BLSP2_QUP1_I2C_APPS_CLK_SRC 45
  61. #define BLSP2_QUP1_SPI_APPS_CLK_SRC 46
  62. #define BLSP2_QUP2_I2C_APPS_CLK_SRC 47
  63. #define BLSP2_QUP2_SPI_APPS_CLK_SRC 48
  64. #define BLSP2_QUP3_I2C_APPS_CLK_SRC 49
  65. #define BLSP2_QUP3_SPI_APPS_CLK_SRC 50
  66. #define BLSP2_QUP4_I2C_APPS_CLK_SRC 51
  67. #define BLSP2_QUP4_SPI_APPS_CLK_SRC 52
  68. #define BLSP2_QUP5_I2C_APPS_CLK_SRC 53
  69. #define BLSP2_QUP5_SPI_APPS_CLK_SRC 54
  70. #define BLSP2_QUP6_I2C_APPS_CLK_SRC 55
  71. #define BLSP2_QUP6_SPI_APPS_CLK_SRC 56
  72. #define BLSP2_UART1_APPS_CLK_SRC 57
  73. #define BLSP2_UART2_APPS_CLK_SRC 58
  74. #define BLSP2_UART3_APPS_CLK_SRC 59
  75. #define BLSP2_UART4_APPS_CLK_SRC 60
  76. #define BLSP2_UART5_APPS_CLK_SRC 61
  77. #define BLSP2_UART6_APPS_CLK_SRC 62
  78. #define CE1_CLK_SRC 63
  79. #define CE2_CLK_SRC 64
  80. #define CE3_CLK_SRC 65
  81. #define GP1_CLK_SRC 66
  82. #define GP2_CLK_SRC 67
  83. #define GP3_CLK_SRC 68
  84. #define PDM2_CLK_SRC 69
  85. #define QDSS_TRACECLKIN_CLK_SRC 70
  86. #define RBCPR_CLK_SRC 71
  87. #define SATA_ASIC0_CLK_SRC 72
  88. #define SATA_PMALIVE_CLK_SRC 73
  89. #define SATA_RX_CLK_SRC 74
  90. #define SATA_RX_OOB_CLK_SRC 75
  91. #define SDCC1_APPS_CLK_SRC 76
  92. #define SDCC2_APPS_CLK_SRC 77
  93. #define SDCC3_APPS_CLK_SRC 78
  94. #define SDCC4_APPS_CLK_SRC 79
  95. #define GCC_SNOC_BUS_TIMEOUT0_AHB_CLK 80
  96. #define SPMI_AHB_CLK_SRC 81
  97. #define SPMI_SER_CLK_SRC 82
  98. #define TSIF_REF_CLK_SRC 83
  99. #define USB30_MOCK_UTMI_CLK_SRC 84
  100. #define USB30_SEC_MOCK_UTMI_CLK_SRC 85
  101. #define USB_HS_SYSTEM_CLK_SRC 86
  102. #define USB_HSIC_CLK_SRC 87
  103. #define USB_HSIC_IO_CAL_CLK_SRC 88
  104. #define USB_HSIC_MOCK_UTMI_CLK_SRC 89
  105. #define USB_HSIC_SYSTEM_CLK_SRC 90
  106. #define GCC_BAM_DMA_AHB_CLK 91
  107. #define GCC_BAM_DMA_INACTIVITY_TIMERS_CLK 92
  108. #define DDR_CLK_SRC 93
  109. #define GCC_BIMC_CFG_AHB_CLK 94
  110. #define GCC_BIMC_CLK 95
  111. #define GCC_BIMC_KPSS_AXI_CLK 96
  112. #define GCC_BIMC_SLEEP_CLK 97
  113. #define GCC_BIMC_SYSNOC_AXI_CLK 98
  114. #define GCC_BIMC_XO_CLK 99
  115. #define GCC_BLSP1_AHB_CLK 100
  116. #define GCC_BLSP1_SLEEP_CLK 101
  117. #define GCC_BLSP1_QUP1_I2C_APPS_CLK 102
  118. #define GCC_BLSP1_QUP1_SPI_APPS_CLK 103
  119. #define GCC_BLSP1_QUP2_I2C_APPS_CLK 104
  120. #define GCC_BLSP1_QUP2_SPI_APPS_CLK 105
  121. #define GCC_BLSP1_QUP3_I2C_APPS_CLK 106
  122. #define GCC_BLSP1_QUP3_SPI_APPS_CLK 107
  123. #define GCC_BLSP1_QUP4_I2C_APPS_CLK 108
  124. #define GCC_BLSP1_QUP4_SPI_APPS_CLK 109
  125. #define GCC_BLSP1_QUP5_I2C_APPS_CLK 110
  126. #define GCC_BLSP1_QUP5_SPI_APPS_CLK 111
  127. #define GCC_BLSP1_QUP6_I2C_APPS_CLK 112
  128. #define GCC_BLSP1_QUP6_SPI_APPS_CLK 113
  129. #define GCC_BLSP1_UART1_APPS_CLK 114
  130. #define GCC_BLSP1_UART1_SIM_CLK 115
  131. #define GCC_BLSP1_UART2_APPS_CLK 116
  132. #define GCC_BLSP1_UART2_SIM_CLK 117
  133. #define GCC_BLSP1_UART3_APPS_CLK 118
  134. #define GCC_BLSP1_UART3_SIM_CLK 119
  135. #define GCC_BLSP1_UART4_APPS_CLK 120
  136. #define GCC_BLSP1_UART4_SIM_CLK 121
  137. #define GCC_BLSP1_UART5_APPS_CLK 122
  138. #define GCC_BLSP1_UART5_SIM_CLK 123
  139. #define GCC_BLSP1_UART6_APPS_CLK 124
  140. #define GCC_BLSP1_UART6_SIM_CLK 125
  141. #define GCC_BLSP2_AHB_CLK 126
  142. #define GCC_BLSP2_SLEEP_CLK 127
  143. #define GCC_BLSP2_QUP1_I2C_APPS_CLK 128
  144. #define GCC_BLSP2_QUP1_SPI_APPS_CLK 129
  145. #define GCC_BLSP2_QUP2_I2C_APPS_CLK 130
  146. #define GCC_BLSP2_QUP2_SPI_APPS_CLK 131
  147. #define GCC_BLSP2_QUP3_I2C_APPS_CLK 132
  148. #define GCC_BLSP2_QUP3_SPI_APPS_CLK 133
  149. #define GCC_BLSP2_QUP4_I2C_APPS_CLK 134
  150. #define GCC_BLSP2_QUP4_SPI_APPS_CLK 135
  151. #define GCC_BLSP2_QUP5_I2C_APPS_CLK 136
  152. #define GCC_BLSP2_QUP5_SPI_APPS_CLK 137
  153. #define GCC_BLSP2_QUP6_I2C_APPS_CLK 138
  154. #define GCC_BLSP2_QUP6_SPI_APPS_CLK 139
  155. #define GCC_BLSP2_UART1_APPS_CLK 140
  156. #define GCC_BLSP2_UART1_SIM_CLK 141
  157. #define GCC_BLSP2_UART2_APPS_CLK 142
  158. #define GCC_BLSP2_UART2_SIM_CLK 143
  159. #define GCC_BLSP2_UART3_APPS_CLK 144
  160. #define GCC_BLSP2_UART3_SIM_CLK 145
  161. #define GCC_BLSP2_UART4_APPS_CLK 146
  162. #define GCC_BLSP2_UART4_SIM_CLK 147
  163. #define GCC_BLSP2_UART5_APPS_CLK 148
  164. #define GCC_BLSP2_UART5_SIM_CLK 149
  165. #define GCC_BLSP2_UART6_APPS_CLK 150
  166. #define GCC_BLSP2_UART6_SIM_CLK 151
  167. #define GCC_BOOT_ROM_AHB_CLK 152
  168. #define GCC_CE1_AHB_CLK 153
  169. #define GCC_CE1_AXI_CLK 154
  170. #define GCC_CE1_CLK 155
  171. #define GCC_CE2_AHB_CLK 156
  172. #define GCC_CE2_AXI_CLK 157
  173. #define GCC_CE2_CLK 158
  174. #define GCC_CE3_AHB_CLK 159
  175. #define GCC_CE3_AXI_CLK 160
  176. #define GCC_CE3_CLK 161
  177. #define GCC_CNOC_BUS_TIMEOUT0_AHB_CLK 162
  178. #define GCC_CNOC_BUS_TIMEOUT1_AHB_CLK 163
  179. #define GCC_CNOC_BUS_TIMEOUT2_AHB_CLK 164
  180. #define GCC_CNOC_BUS_TIMEOUT3_AHB_CLK 165
  181. #define GCC_CNOC_BUS_TIMEOUT4_AHB_CLK 166
  182. #define GCC_CNOC_BUS_TIMEOUT5_AHB_CLK 167
  183. #define GCC_CNOC_BUS_TIMEOUT6_AHB_CLK 168
  184. #define GCC_CNOC_BUS_TIMEOUT7_AHB_CLK 169
  185. #define GCC_CFG_NOC_AHB_CLK 170
  186. #define GCC_CFG_NOC_DDR_CFG_CLK 171
  187. #define GCC_CFG_NOC_RPM_AHB_CLK 172
  188. #define GCC_COPSS_SMMU_AHB_CLK 173
  189. #define GCC_COPSS_SMMU_AXI_CLK 174
  190. #define GCC_DCD_XO_CLK 175
  191. #define GCC_BIMC_DDR_CH0_CLK 176
  192. #define GCC_BIMC_DDR_CH1_CLK 177
  193. #define GCC_BIMC_DDR_CPLL0_CLK 178
  194. #define GCC_BIMC_DDR_CPLL1_CLK 179
  195. #define GCC_BIMC_GFX_CLK 180
  196. #define GCC_DDR_DIM_CFG_CLK 181
  197. #define GCC_DDR_DIM_SLEEP_CLK 182
  198. #define GCC_DEHR_CLK 183
  199. #define GCC_AHB_CLK 184
  200. #define GCC_IM_SLEEP_CLK 185
  201. #define GCC_XO_CLK 186
  202. #define GCC_XO_DIV4_CLK 187
  203. #define GCC_GP1_CLK 188
  204. #define GCC_GP2_CLK 189
  205. #define GCC_GP3_CLK 190
  206. #define GCC_IMEM_AXI_CLK 191
  207. #define GCC_IMEM_CFG_AHB_CLK 192
  208. #define GCC_KPSS_AHB_CLK 193
  209. #define GCC_KPSS_AXI_CLK 194
  210. #define GCC_LPASS_MPORT_AXI_CLK 195
  211. #define GCC_LPASS_Q6_AXI_CLK 196
  212. #define GCC_LPASS_SWAY_CLK 197
  213. #define GCC_MMSS_BIMC_GFX_CLK 198
  214. #define GCC_MMSS_NOC_AT_CLK 199
  215. #define GCC_MMSS_NOC_CFG_AHB_CLK 200
  216. #define GCC_MMSS_VPU_MAPLE_SYS_NOC_AXI_CLK 201
  217. #define GCC_OCMEM_NOC_CFG_AHB_CLK 202
  218. #define GCC_OCMEM_SYS_NOC_AXI_CLK 203
  219. #define GCC_MPM_AHB_CLK 204
  220. #define GCC_MSG_RAM_AHB_CLK 205
  221. #define GCC_NOC_CONF_XPU_AHB_CLK 206
  222. #define GCC_PDM2_CLK 207
  223. #define GCC_PDM_AHB_CLK 208
  224. #define GCC_PDM_XO4_CLK 209
  225. #define GCC_PERIPH_NOC_AHB_CLK 210
  226. #define GCC_PERIPH_NOC_AT_CLK 211
  227. #define GCC_PERIPH_NOC_CFG_AHB_CLK 212
  228. #define GCC_PERIPH_NOC_USB_HSIC_AHB_CLK 213
  229. #define GCC_PERIPH_NOC_MPU_CFG_AHB_CLK 214
  230. #define GCC_PERIPH_XPU_AHB_CLK 215
  231. #define GCC_PNOC_BUS_TIMEOUT0_AHB_CLK 216
  232. #define GCC_PNOC_BUS_TIMEOUT1_AHB_CLK 217
  233. #define GCC_PNOC_BUS_TIMEOUT2_AHB_CLK 218
  234. #define GCC_PNOC_BUS_TIMEOUT3_AHB_CLK 219
  235. #define GCC_PNOC_BUS_TIMEOUT4_AHB_CLK 220
  236. #define GCC_PRNG_AHB_CLK 221
  237. #define GCC_QDSS_AT_CLK 222
  238. #define GCC_QDSS_CFG_AHB_CLK 223
  239. #define GCC_QDSS_DAP_AHB_CLK 224
  240. #define GCC_QDSS_DAP_CLK 225
  241. #define GCC_QDSS_ETR_USB_CLK 226
  242. #define GCC_QDSS_STM_CLK 227
  243. #define GCC_QDSS_TRACECLKIN_CLK 228
  244. #define GCC_QDSS_TSCTR_DIV16_CLK 229
  245. #define GCC_QDSS_TSCTR_DIV2_CLK 230
  246. #define GCC_QDSS_TSCTR_DIV3_CLK 231
  247. #define GCC_QDSS_TSCTR_DIV4_CLK 232
  248. #define GCC_QDSS_TSCTR_DIV8_CLK 233
  249. #define GCC_QDSS_RBCPR_XPU_AHB_CLK 234
  250. #define GCC_RBCPR_AHB_CLK 235
  251. #define GCC_RBCPR_CLK 236
  252. #define GCC_RPM_BUS_AHB_CLK 237
  253. #define GCC_RPM_PROC_HCLK 238
  254. #define GCC_RPM_SLEEP_CLK 239
  255. #define GCC_RPM_TIMER_CLK 240
  256. #define GCC_SATA_ASIC0_CLK 241
  257. #define GCC_SATA_AXI_CLK 242
  258. #define GCC_SATA_CFG_AHB_CLK 243
  259. #define GCC_SATA_PMALIVE_CLK 244
  260. #define GCC_SATA_RX_CLK 245
  261. #define GCC_SATA_RX_OOB_CLK 246
  262. #define GCC_SDCC1_AHB_CLK 247
  263. #define GCC_SDCC1_APPS_CLK 248
  264. #define GCC_SDCC1_CDCCAL_FF_CLK 249
  265. #define GCC_SDCC1_CDCCAL_SLEEP_CLK 250
  266. #define GCC_SDCC2_AHB_CLK 251
  267. #define GCC_SDCC2_APPS_CLK 252
  268. #define GCC_SDCC2_INACTIVITY_TIMERS_CLK 253
  269. #define GCC_SDCC3_AHB_CLK 254
  270. #define GCC_SDCC3_APPS_CLK 255
  271. #define GCC_SDCC3_INACTIVITY_TIMERS_CLK 256
  272. #define GCC_SDCC4_AHB_CLK 257
  273. #define GCC_SDCC4_APPS_CLK 258
  274. #define GCC_SDCC4_INACTIVITY_TIMERS_CLK 259
  275. #define GCC_SEC_CTRL_ACC_CLK 260
  276. #define GCC_SEC_CTRL_AHB_CLK 261
  277. #define GCC_SEC_CTRL_BOOT_ROM_PATCH_CLK 262
  278. #define GCC_SEC_CTRL_CLK 263
  279. #define GCC_SEC_CTRL_SENSE_CLK 264
  280. #define GCC_SNOC_BUS_TIMEOUT2_AHB_CLK 265
  281. #define GCC_SNOC_BUS_TIMEOUT3_AHB_CLK 266
  282. #define GCC_SPDM_BIMC_CY_CLK 267
  283. #define GCC_SPDM_CFG_AHB_CLK 268
  284. #define GCC_SPDM_DEBUG_CY_CLK 269
  285. #define GCC_SPDM_FF_CLK 270
  286. #define GCC_SPDM_MSTR_AHB_CLK 271
  287. #define GCC_SPDM_PNOC_CY_CLK 272
  288. #define GCC_SPDM_RPM_CY_CLK 273
  289. #define GCC_SPDM_SNOC_CY_CLK 274
  290. #define GCC_SPMI_AHB_CLK 275
  291. #define GCC_SPMI_CNOC_AHB_CLK 276
  292. #define GCC_SPMI_SER_CLK 277
  293. #define GCC_SPSS_AHB_CLK 278
  294. #define GCC_SNOC_CNOC_AHB_CLK 279
  295. #define GCC_SNOC_PNOC_AHB_CLK 280
  296. #define GCC_SYS_NOC_AT_CLK 281
  297. #define GCC_SYS_NOC_AXI_CLK 282
  298. #define GCC_SYS_NOC_KPSS_AHB_CLK 283
  299. #define GCC_SYS_NOC_QDSS_STM_AXI_CLK 284
  300. #define GCC_SYS_NOC_UFS_AXI_CLK 285
  301. #define GCC_SYS_NOC_USB3_AXI_CLK 286
  302. #define GCC_SYS_NOC_USB3_SEC_AXI_CLK 287
  303. #define GCC_TCSR_AHB_CLK 288
  304. #define GCC_TLMM_AHB_CLK 289
  305. #define GCC_TLMM_CLK 290
  306. #define GCC_TSIF_AHB_CLK 291
  307. #define GCC_TSIF_INACTIVITY_TIMERS_CLK 292
  308. #define GCC_TSIF_REF_CLK 293
  309. #define GCC_UFS_AHB_CLK 294
  310. #define GCC_UFS_AXI_CLK 295
  311. #define GCC_UFS_RX_CFG_CLK 296
  312. #define GCC_UFS_RX_SYMBOL_0_CLK 297
  313. #define GCC_UFS_RX_SYMBOL_1_CLK 298
  314. #define GCC_UFS_TX_CFG_CLK 299
  315. #define GCC_UFS_TX_SYMBOL_0_CLK 300
  316. #define GCC_UFS_TX_SYMBOL_1_CLK 301
  317. #define GCC_USB2A_PHY_SLEEP_CLK 302
  318. #define GCC_USB2B_PHY_SLEEP_CLK 303
  319. #define GCC_USB30_MASTER_CLK 304
  320. #define GCC_USB30_MOCK_UTMI_CLK 305
  321. #define GCC_USB30_SLEEP_CLK 306
  322. #define GCC_USB30_SEC_MASTER_CLK 307
  323. #define GCC_USB30_SEC_MOCK_UTMI_CLK 308
  324. #define GCC_USB30_SEC_SLEEP_CLK 309
  325. #define GCC_USB_HS_AHB_CLK 310
  326. #define GCC_USB_HS_INACTIVITY_TIMERS_CLK 311
  327. #define GCC_USB_HS_SYSTEM_CLK 312
  328. #define GCC_USB_HSIC_AHB_CLK 313
  329. #define GCC_USB_HSIC_CLK 314
  330. #define GCC_USB_HSIC_IO_CAL_CLK 315
  331. #define GCC_USB_HSIC_IO_CAL_SLEEP_CLK 316
  332. #define GCC_USB_HSIC_MOCK_UTMI_CLK 317
  333. #define GCC_USB_HSIC_SYSTEM_CLK 318
  334. #define PCIE_0_AUX_CLK_SRC 319
  335. #define PCIE_0_PIPE_CLK_SRC 320
  336. #define PCIE_1_AUX_CLK_SRC 321
  337. #define PCIE_1_PIPE_CLK_SRC 322
  338. #define GCC_PCIE_0_AUX_CLK 323
  339. #define GCC_PCIE_0_CFG_AHB_CLK 324
  340. #define GCC_PCIE_0_MSTR_AXI_CLK 325
  341. #define GCC_PCIE_0_PIPE_CLK 326
  342. #define GCC_PCIE_0_SLV_AXI_CLK 327
  343. #define GCC_PCIE_1_AUX_CLK 328
  344. #define GCC_PCIE_1_CFG_AHB_CLK 329
  345. #define GCC_PCIE_1_MSTR_AXI_CLK 330
  346. #define GCC_PCIE_1_PIPE_CLK 331
  347. #define GCC_PCIE_1_SLV_AXI_CLK 332
  348. /* gdscs */
  349. #define USB_HS_HSIC_GDSC 0
  350. #define PCIE0_GDSC 1
  351. #define PCIE1_GDSC 2
  352. #define USB30_GDSC 3
  353. #endif