qcom,gcc-ipq8074.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. /*
  2. * Copyright (c) 2016-2017, 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_CLOCK_IPQ_GCC_8074_H
  14. #define _DT_BINDINGS_CLOCK_IPQ_GCC_8074_H
  15. #define GPLL0 0
  16. #define GPLL0_MAIN 1
  17. #define GCC_SLEEP_CLK_SRC 2
  18. #define BLSP1_QUP1_I2C_APPS_CLK_SRC 3
  19. #define BLSP1_QUP1_SPI_APPS_CLK_SRC 4
  20. #define BLSP1_QUP2_I2C_APPS_CLK_SRC 5
  21. #define BLSP1_QUP2_SPI_APPS_CLK_SRC 6
  22. #define BLSP1_QUP3_I2C_APPS_CLK_SRC 7
  23. #define BLSP1_QUP3_SPI_APPS_CLK_SRC 8
  24. #define BLSP1_QUP4_I2C_APPS_CLK_SRC 9
  25. #define BLSP1_QUP4_SPI_APPS_CLK_SRC 10
  26. #define BLSP1_QUP5_I2C_APPS_CLK_SRC 11
  27. #define BLSP1_QUP5_SPI_APPS_CLK_SRC 12
  28. #define BLSP1_QUP6_I2C_APPS_CLK_SRC 13
  29. #define BLSP1_QUP6_SPI_APPS_CLK_SRC 14
  30. #define BLSP1_UART1_APPS_CLK_SRC 15
  31. #define BLSP1_UART2_APPS_CLK_SRC 16
  32. #define BLSP1_UART3_APPS_CLK_SRC 17
  33. #define BLSP1_UART4_APPS_CLK_SRC 18
  34. #define BLSP1_UART5_APPS_CLK_SRC 19
  35. #define BLSP1_UART6_APPS_CLK_SRC 20
  36. #define GCC_BLSP1_AHB_CLK 21
  37. #define GCC_BLSP1_QUP1_I2C_APPS_CLK 22
  38. #define GCC_BLSP1_QUP1_SPI_APPS_CLK 23
  39. #define GCC_BLSP1_QUP2_I2C_APPS_CLK 24
  40. #define GCC_BLSP1_QUP2_SPI_APPS_CLK 25
  41. #define GCC_BLSP1_QUP3_I2C_APPS_CLK 26
  42. #define GCC_BLSP1_QUP3_SPI_APPS_CLK 27
  43. #define GCC_BLSP1_QUP4_I2C_APPS_CLK 28
  44. #define GCC_BLSP1_QUP4_SPI_APPS_CLK 29
  45. #define GCC_BLSP1_QUP5_I2C_APPS_CLK 30
  46. #define GCC_BLSP1_QUP5_SPI_APPS_CLK 31
  47. #define GCC_BLSP1_QUP6_I2C_APPS_CLK 32
  48. #define GCC_BLSP1_QUP6_SPI_APPS_CLK 33
  49. #define GCC_BLSP1_UART1_APPS_CLK 34
  50. #define GCC_BLSP1_UART2_APPS_CLK 35
  51. #define GCC_BLSP1_UART3_APPS_CLK 36
  52. #define GCC_BLSP1_UART4_APPS_CLK 37
  53. #define GCC_BLSP1_UART5_APPS_CLK 38
  54. #define GCC_BLSP1_UART6_APPS_CLK 39
  55. #define GCC_PRNG_AHB_CLK 40
  56. #define GCC_QPIC_AHB_CLK 41
  57. #define GCC_QPIC_CLK 42
  58. #define PCNOC_BFDCD_CLK_SRC 43
  59. #define GPLL2_MAIN 44
  60. #define GPLL2 45
  61. #define GPLL4_MAIN 46
  62. #define GPLL4 47
  63. #define GPLL6_MAIN 48
  64. #define GPLL6 49
  65. #define UBI32_PLL_MAIN 50
  66. #define UBI32_PLL 51
  67. #define NSS_CRYPTO_PLL_MAIN 52
  68. #define NSS_CRYPTO_PLL 53
  69. #define PCIE0_AXI_CLK_SRC 54
  70. #define PCIE0_AUX_CLK_SRC 55
  71. #define PCIE0_PIPE_CLK_SRC 56
  72. #define PCIE1_AXI_CLK_SRC 57
  73. #define PCIE1_AUX_CLK_SRC 58
  74. #define PCIE1_PIPE_CLK_SRC 59
  75. #define SDCC1_APPS_CLK_SRC 60
  76. #define SDCC1_ICE_CORE_CLK_SRC 61
  77. #define SDCC2_APPS_CLK_SRC 62
  78. #define USB0_MASTER_CLK_SRC 63
  79. #define USB0_AUX_CLK_SRC 64
  80. #define USB0_MOCK_UTMI_CLK_SRC 65
  81. #define USB0_PIPE_CLK_SRC 66
  82. #define USB1_MASTER_CLK_SRC 67
  83. #define USB1_AUX_CLK_SRC 68
  84. #define USB1_MOCK_UTMI_CLK_SRC 69
  85. #define USB1_PIPE_CLK_SRC 70
  86. #define GCC_XO_CLK_SRC 71
  87. #define SYSTEM_NOC_BFDCD_CLK_SRC 72
  88. #define NSS_CE_CLK_SRC 73
  89. #define NSS_NOC_BFDCD_CLK_SRC 74
  90. #define NSS_CRYPTO_CLK_SRC 75
  91. #define NSS_UBI0_CLK_SRC 76
  92. #define NSS_UBI0_DIV_CLK_SRC 77
  93. #define NSS_UBI1_CLK_SRC 78
  94. #define NSS_UBI1_DIV_CLK_SRC 79
  95. #define UBI_MPT_CLK_SRC 80
  96. #define NSS_IMEM_CLK_SRC 81
  97. #define NSS_PPE_CLK_SRC 82
  98. #define NSS_PORT1_RX_CLK_SRC 83
  99. #define NSS_PORT1_RX_DIV_CLK_SRC 84
  100. #define NSS_PORT1_TX_CLK_SRC 85
  101. #define NSS_PORT1_TX_DIV_CLK_SRC 86
  102. #define NSS_PORT2_RX_CLK_SRC 87
  103. #define NSS_PORT2_RX_DIV_CLK_SRC 88
  104. #define NSS_PORT2_TX_CLK_SRC 89
  105. #define NSS_PORT2_TX_DIV_CLK_SRC 90
  106. #define NSS_PORT3_RX_CLK_SRC 91
  107. #define NSS_PORT3_RX_DIV_CLK_SRC 92
  108. #define NSS_PORT3_TX_CLK_SRC 93
  109. #define NSS_PORT3_TX_DIV_CLK_SRC 94
  110. #define NSS_PORT4_RX_CLK_SRC 95
  111. #define NSS_PORT4_RX_DIV_CLK_SRC 96
  112. #define NSS_PORT4_TX_CLK_SRC 97
  113. #define NSS_PORT4_TX_DIV_CLK_SRC 98
  114. #define NSS_PORT5_RX_CLK_SRC 99
  115. #define NSS_PORT5_RX_DIV_CLK_SRC 100
  116. #define NSS_PORT5_TX_CLK_SRC 101
  117. #define NSS_PORT5_TX_DIV_CLK_SRC 102
  118. #define NSS_PORT6_RX_CLK_SRC 103
  119. #define NSS_PORT6_RX_DIV_CLK_SRC 104
  120. #define NSS_PORT6_TX_CLK_SRC 105
  121. #define NSS_PORT6_TX_DIV_CLK_SRC 106
  122. #define CRYPTO_CLK_SRC 107
  123. #define GP1_CLK_SRC 108
  124. #define GP2_CLK_SRC 109
  125. #define GP3_CLK_SRC 110
  126. #define GCC_PCIE0_AHB_CLK 111
  127. #define GCC_PCIE0_AUX_CLK 112
  128. #define GCC_PCIE0_AXI_M_CLK 113
  129. #define GCC_PCIE0_AXI_S_CLK 114
  130. #define GCC_PCIE0_PIPE_CLK 115
  131. #define GCC_SYS_NOC_PCIE0_AXI_CLK 116
  132. #define GCC_PCIE1_AHB_CLK 117
  133. #define GCC_PCIE1_AUX_CLK 118
  134. #define GCC_PCIE1_AXI_M_CLK 119
  135. #define GCC_PCIE1_AXI_S_CLK 120
  136. #define GCC_PCIE1_PIPE_CLK 121
  137. #define GCC_SYS_NOC_PCIE1_AXI_CLK 122
  138. #define GCC_USB0_AUX_CLK 123
  139. #define GCC_SYS_NOC_USB0_AXI_CLK 124
  140. #define GCC_USB0_MASTER_CLK 125
  141. #define GCC_USB0_MOCK_UTMI_CLK 126
  142. #define GCC_USB0_PHY_CFG_AHB_CLK 127
  143. #define GCC_USB0_PIPE_CLK 128
  144. #define GCC_USB0_SLEEP_CLK 129
  145. #define GCC_USB1_AUX_CLK 130
  146. #define GCC_SYS_NOC_USB1_AXI_CLK 131
  147. #define GCC_USB1_MASTER_CLK 132
  148. #define GCC_USB1_MOCK_UTMI_CLK 133
  149. #define GCC_USB1_PHY_CFG_AHB_CLK 134
  150. #define GCC_USB1_PIPE_CLK 135
  151. #define GCC_USB1_SLEEP_CLK 136
  152. #define GCC_SDCC1_AHB_CLK 137
  153. #define GCC_SDCC1_APPS_CLK 138
  154. #define GCC_SDCC1_ICE_CORE_CLK 139
  155. #define GCC_SDCC2_AHB_CLK 140
  156. #define GCC_SDCC2_APPS_CLK 141
  157. #define GCC_MEM_NOC_NSS_AXI_CLK 142
  158. #define GCC_NSS_CE_APB_CLK 143
  159. #define GCC_NSS_CE_AXI_CLK 144
  160. #define GCC_NSS_CFG_CLK 145
  161. #define GCC_NSS_CRYPTO_CLK 146
  162. #define GCC_NSS_CSR_CLK 147
  163. #define GCC_NSS_EDMA_CFG_CLK 148
  164. #define GCC_NSS_EDMA_CLK 149
  165. #define GCC_NSS_IMEM_CLK 150
  166. #define GCC_NSS_NOC_CLK 151
  167. #define GCC_NSS_PPE_BTQ_CLK 152
  168. #define GCC_NSS_PPE_CFG_CLK 153
  169. #define GCC_NSS_PPE_CLK 154
  170. #define GCC_NSS_PPE_IPE_CLK 155
  171. #define GCC_NSS_PTP_REF_CLK 156
  172. #define GCC_NSSNOC_CE_APB_CLK 157
  173. #define GCC_NSSNOC_CE_AXI_CLK 158
  174. #define GCC_NSSNOC_CRYPTO_CLK 159
  175. #define GCC_NSSNOC_PPE_CFG_CLK 160
  176. #define GCC_NSSNOC_PPE_CLK 161
  177. #define GCC_NSSNOC_QOSGEN_REF_CLK 162
  178. #define GCC_NSSNOC_SNOC_CLK 163
  179. #define GCC_NSSNOC_TIMEOUT_REF_CLK 164
  180. #define GCC_NSSNOC_UBI0_AHB_CLK 165
  181. #define GCC_NSSNOC_UBI1_AHB_CLK 166
  182. #define GCC_UBI0_AHB_CLK 167
  183. #define GCC_UBI0_AXI_CLK 168
  184. #define GCC_UBI0_NC_AXI_CLK 169
  185. #define GCC_UBI0_CORE_CLK 170
  186. #define GCC_UBI0_MPT_CLK 171
  187. #define GCC_UBI1_AHB_CLK 172
  188. #define GCC_UBI1_AXI_CLK 173
  189. #define GCC_UBI1_NC_AXI_CLK 174
  190. #define GCC_UBI1_CORE_CLK 175
  191. #define GCC_UBI1_MPT_CLK 176
  192. #define GCC_CMN_12GPLL_AHB_CLK 177
  193. #define GCC_CMN_12GPLL_SYS_CLK 178
  194. #define GCC_MDIO_AHB_CLK 179
  195. #define GCC_UNIPHY0_AHB_CLK 180
  196. #define GCC_UNIPHY0_SYS_CLK 181
  197. #define GCC_UNIPHY1_AHB_CLK 182
  198. #define GCC_UNIPHY1_SYS_CLK 183
  199. #define GCC_UNIPHY2_AHB_CLK 184
  200. #define GCC_UNIPHY2_SYS_CLK 185
  201. #define GCC_NSS_PORT1_RX_CLK 186
  202. #define GCC_NSS_PORT1_TX_CLK 187
  203. #define GCC_NSS_PORT2_RX_CLK 188
  204. #define GCC_NSS_PORT2_TX_CLK 189
  205. #define GCC_NSS_PORT3_RX_CLK 190
  206. #define GCC_NSS_PORT3_TX_CLK 191
  207. #define GCC_NSS_PORT4_RX_CLK 192
  208. #define GCC_NSS_PORT4_TX_CLK 193
  209. #define GCC_NSS_PORT5_RX_CLK 194
  210. #define GCC_NSS_PORT5_TX_CLK 195
  211. #define GCC_NSS_PORT6_RX_CLK 196
  212. #define GCC_NSS_PORT6_TX_CLK 197
  213. #define GCC_PORT1_MAC_CLK 198
  214. #define GCC_PORT2_MAC_CLK 199
  215. #define GCC_PORT3_MAC_CLK 200
  216. #define GCC_PORT4_MAC_CLK 201
  217. #define GCC_PORT5_MAC_CLK 202
  218. #define GCC_PORT6_MAC_CLK 203
  219. #define GCC_UNIPHY0_PORT1_RX_CLK 204
  220. #define GCC_UNIPHY0_PORT1_TX_CLK 205
  221. #define GCC_UNIPHY0_PORT2_RX_CLK 206
  222. #define GCC_UNIPHY0_PORT2_TX_CLK 207
  223. #define GCC_UNIPHY0_PORT3_RX_CLK 208
  224. #define GCC_UNIPHY0_PORT3_TX_CLK 209
  225. #define GCC_UNIPHY0_PORT4_RX_CLK 210
  226. #define GCC_UNIPHY0_PORT4_TX_CLK 211
  227. #define GCC_UNIPHY0_PORT5_RX_CLK 212
  228. #define GCC_UNIPHY0_PORT5_TX_CLK 213
  229. #define GCC_UNIPHY1_PORT5_RX_CLK 214
  230. #define GCC_UNIPHY1_PORT5_TX_CLK 215
  231. #define GCC_UNIPHY2_PORT6_RX_CLK 216
  232. #define GCC_UNIPHY2_PORT6_TX_CLK 217
  233. #define GCC_CRYPTO_AHB_CLK 218
  234. #define GCC_CRYPTO_AXI_CLK 219
  235. #define GCC_CRYPTO_CLK 220
  236. #define GCC_GP1_CLK 221
  237. #define GCC_GP2_CLK 222
  238. #define GCC_GP3_CLK 223
  239. #define GCC_BLSP1_BCR 0
  240. #define GCC_BLSP1_QUP1_BCR 1
  241. #define GCC_BLSP1_UART1_BCR 2
  242. #define GCC_BLSP1_QUP2_BCR 3
  243. #define GCC_BLSP1_UART2_BCR 4
  244. #define GCC_BLSP1_QUP3_BCR 5
  245. #define GCC_BLSP1_UART3_BCR 6
  246. #define GCC_BLSP1_QUP4_BCR 7
  247. #define GCC_BLSP1_UART4_BCR 8
  248. #define GCC_BLSP1_QUP5_BCR 9
  249. #define GCC_BLSP1_UART5_BCR 10
  250. #define GCC_BLSP1_QUP6_BCR 11
  251. #define GCC_BLSP1_UART6_BCR 12
  252. #define GCC_IMEM_BCR 13
  253. #define GCC_SMMU_BCR 14
  254. #define GCC_APSS_TCU_BCR 15
  255. #define GCC_SMMU_XPU_BCR 16
  256. #define GCC_PCNOC_TBU_BCR 17
  257. #define GCC_SMMU_CFG_BCR 18
  258. #define GCC_PRNG_BCR 19
  259. #define GCC_BOOT_ROM_BCR 20
  260. #define GCC_CRYPTO_BCR 21
  261. #define GCC_WCSS_BCR 22
  262. #define GCC_WCSS_Q6_BCR 23
  263. #define GCC_NSS_BCR 24
  264. #define GCC_SEC_CTRL_BCR 25
  265. #define GCC_ADSS_BCR 26
  266. #define GCC_DDRSS_BCR 27
  267. #define GCC_SYSTEM_NOC_BCR 28
  268. #define GCC_PCNOC_BCR 29
  269. #define GCC_TCSR_BCR 30
  270. #define GCC_QDSS_BCR 31
  271. #define GCC_DCD_BCR 32
  272. #define GCC_MSG_RAM_BCR 33
  273. #define GCC_MPM_BCR 34
  274. #define GCC_SPMI_BCR 35
  275. #define GCC_SPDM_BCR 36
  276. #define GCC_RBCPR_BCR 37
  277. #define GCC_RBCPR_MX_BCR 38
  278. #define GCC_TLMM_BCR 39
  279. #define GCC_RBCPR_WCSS_BCR 40
  280. #define GCC_USB0_PHY_BCR 41
  281. #define GCC_USB3PHY_0_PHY_BCR 42
  282. #define GCC_USB0_BCR 43
  283. #define GCC_USB1_PHY_BCR 44
  284. #define GCC_USB3PHY_1_PHY_BCR 45
  285. #define GCC_USB1_BCR 46
  286. #define GCC_QUSB2_0_PHY_BCR 47
  287. #define GCC_QUSB2_1_PHY_BCR 48
  288. #define GCC_SDCC1_BCR 49
  289. #define GCC_SDCC2_BCR 50
  290. #define GCC_SNOC_BUS_TIMEOUT0_BCR 51
  291. #define GCC_SNOC_BUS_TIMEOUT2_BCR 52
  292. #define GCC_SNOC_BUS_TIMEOUT3_BCR 53
  293. #define GCC_PCNOC_BUS_TIMEOUT0_BCR 54
  294. #define GCC_PCNOC_BUS_TIMEOUT1_BCR 55
  295. #define GCC_PCNOC_BUS_TIMEOUT2_BCR 56
  296. #define GCC_PCNOC_BUS_TIMEOUT3_BCR 57
  297. #define GCC_PCNOC_BUS_TIMEOUT4_BCR 58
  298. #define GCC_PCNOC_BUS_TIMEOUT5_BCR 59
  299. #define GCC_PCNOC_BUS_TIMEOUT6_BCR 60
  300. #define GCC_PCNOC_BUS_TIMEOUT7_BCR 61
  301. #define GCC_PCNOC_BUS_TIMEOUT8_BCR 62
  302. #define GCC_PCNOC_BUS_TIMEOUT9_BCR 63
  303. #define GCC_UNIPHY0_BCR 64
  304. #define GCC_UNIPHY1_BCR 65
  305. #define GCC_UNIPHY2_BCR 66
  306. #define GCC_CMN_12GPLL_BCR 67
  307. #define GCC_QPIC_BCR 68
  308. #define GCC_MDIO_BCR 69
  309. #define GCC_PCIE1_TBU_BCR 70
  310. #define GCC_WCSS_CORE_TBU_BCR 71
  311. #define GCC_WCSS_Q6_TBU_BCR 72
  312. #define GCC_USB0_TBU_BCR 73
  313. #define GCC_USB1_TBU_BCR 74
  314. #define GCC_PCIE0_TBU_BCR 75
  315. #define GCC_NSS_NOC_TBU_BCR 76
  316. #define GCC_PCIE0_BCR 77
  317. #define GCC_PCIE0_PHY_BCR 78
  318. #define GCC_PCIE0PHY_PHY_BCR 79
  319. #define GCC_PCIE0_LINK_DOWN_BCR 80
  320. #define GCC_PCIE1_BCR 81
  321. #define GCC_PCIE1_PHY_BCR 82
  322. #define GCC_PCIE1PHY_PHY_BCR 83
  323. #define GCC_PCIE1_LINK_DOWN_BCR 84
  324. #define GCC_DCC_BCR 85
  325. #define GCC_APC0_VOLTAGE_DROOP_DETECTOR_BCR 86
  326. #define GCC_APC1_VOLTAGE_DROOP_DETECTOR_BCR 87
  327. #define GCC_SMMU_CATS_BCR 88
  328. #define GCC_UBI0_AXI_ARES 89
  329. #define GCC_UBI0_AHB_ARES 90
  330. #define GCC_UBI0_NC_AXI_ARES 91
  331. #define GCC_UBI0_DBG_ARES 92
  332. #define GCC_UBI0_CORE_CLAMP_ENABLE 93
  333. #define GCC_UBI0_CLKRST_CLAMP_ENABLE 94
  334. #define GCC_UBI1_AXI_ARES 95
  335. #define GCC_UBI1_AHB_ARES 96
  336. #define GCC_UBI1_NC_AXI_ARES 97
  337. #define GCC_UBI1_DBG_ARES 98
  338. #define GCC_UBI1_CORE_CLAMP_ENABLE 99
  339. #define GCC_UBI1_CLKRST_CLAMP_ENABLE 100
  340. #define GCC_NSS_CFG_ARES 101
  341. #define GCC_NSS_IMEM_ARES 102
  342. #define GCC_NSS_NOC_ARES 103
  343. #define GCC_NSS_CRYPTO_ARES 104
  344. #define GCC_NSS_CSR_ARES 105
  345. #define GCC_NSS_CE_APB_ARES 106
  346. #define GCC_NSS_CE_AXI_ARES 107
  347. #define GCC_NSSNOC_CE_APB_ARES 108
  348. #define GCC_NSSNOC_CE_AXI_ARES 109
  349. #define GCC_NSSNOC_UBI0_AHB_ARES 110
  350. #define GCC_NSSNOC_UBI1_AHB_ARES 111
  351. #define GCC_NSSNOC_SNOC_ARES 112
  352. #define GCC_NSSNOC_CRYPTO_ARES 113
  353. #define GCC_NSSNOC_ATB_ARES 114
  354. #define GCC_NSSNOC_QOSGEN_REF_ARES 115
  355. #define GCC_NSSNOC_TIMEOUT_REF_ARES 116
  356. #define GCC_PCIE0_PIPE_ARES 117
  357. #define GCC_PCIE0_SLEEP_ARES 118
  358. #define GCC_PCIE0_CORE_STICKY_ARES 119
  359. #define GCC_PCIE0_AXI_MASTER_ARES 120
  360. #define GCC_PCIE0_AXI_SLAVE_ARES 121
  361. #define GCC_PCIE0_AHB_ARES 122
  362. #define GCC_PCIE0_AXI_MASTER_STICKY_ARES 123
  363. #define GCC_PCIE1_PIPE_ARES 124
  364. #define GCC_PCIE1_SLEEP_ARES 125
  365. #define GCC_PCIE1_CORE_STICKY_ARES 126
  366. #define GCC_PCIE1_AXI_MASTER_ARES 127
  367. #define GCC_PCIE1_AXI_SLAVE_ARES 128
  368. #define GCC_PCIE1_AHB_ARES 129
  369. #define GCC_PCIE1_AXI_MASTER_STICKY_ARES 130
  370. #endif