tegra114-car.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * This header provides constants for binding nvidia,tegra114-car.
  4. *
  5. * The first 160 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB
  6. * registers. These IDs often match those in the CAR's RST_DEVICES registers,
  7. * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In
  8. * this case, those clocks are assigned IDs above 160 in order to highlight
  9. * this issue. Implementations that interpret these clock IDs as bit values
  10. * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to
  11. * explicitly handle these special cases.
  12. *
  13. * The balance of the clocks controlled by the CAR are assigned IDs of 160 and
  14. * above.
  15. */
  16. #ifndef _DT_BINDINGS_CLOCK_TEGRA114_CAR_H
  17. #define _DT_BINDINGS_CLOCK_TEGRA114_CAR_H
  18. /* 0 */
  19. /* 1 */
  20. /* 2 */
  21. /* 3 */
  22. #define TEGRA114_CLK_RTC 4
  23. #define TEGRA114_CLK_TIMER 5
  24. #define TEGRA114_CLK_UARTA 6
  25. /* 7 (register bit affects uartb and vfir) */
  26. /* 8 */
  27. #define TEGRA114_CLK_SDMMC2 9
  28. /* 10 (register bit affects spdif_in and spdif_out) */
  29. #define TEGRA114_CLK_I2S1 11
  30. #define TEGRA114_CLK_I2C1 12
  31. #define TEGRA114_CLK_NDFLASH 13
  32. #define TEGRA114_CLK_SDMMC1 14
  33. #define TEGRA114_CLK_SDMMC4 15
  34. /* 16 */
  35. #define TEGRA114_CLK_PWM 17
  36. #define TEGRA114_CLK_I2S2 18
  37. #define TEGRA114_CLK_EPP 19
  38. /* 20 (register bit affects vi and vi_sensor) */
  39. #define TEGRA114_CLK_GR2D 21
  40. #define TEGRA114_CLK_USBD 22
  41. #define TEGRA114_CLK_ISP 23
  42. #define TEGRA114_CLK_GR3D 24
  43. /* 25 */
  44. #define TEGRA114_CLK_DISP2 26
  45. #define TEGRA114_CLK_DISP1 27
  46. #define TEGRA114_CLK_HOST1X 28
  47. #define TEGRA114_CLK_VCP 29
  48. #define TEGRA114_CLK_I2S0 30
  49. /* 31 */
  50. #define TEGRA114_CLK_MC 32
  51. /* 33 */
  52. #define TEGRA114_CLK_APBDMA 34
  53. /* 35 */
  54. #define TEGRA114_CLK_KBC 36
  55. /* 37 */
  56. /* 38 */
  57. /* 39 (register bit affects fuse and fuse_burn) */
  58. #define TEGRA114_CLK_KFUSE 40
  59. #define TEGRA114_CLK_SBC1 41
  60. #define TEGRA114_CLK_NOR 42
  61. /* 43 */
  62. #define TEGRA114_CLK_SBC2 44
  63. /* 45 */
  64. #define TEGRA114_CLK_SBC3 46
  65. #define TEGRA114_CLK_I2C5 47
  66. #define TEGRA114_CLK_DSIA 48
  67. /* 49 */
  68. #define TEGRA114_CLK_MIPI 50
  69. #define TEGRA114_CLK_HDMI 51
  70. #define TEGRA114_CLK_CSI 52
  71. /* 53 */
  72. #define TEGRA114_CLK_I2C2 54
  73. #define TEGRA114_CLK_UARTC 55
  74. #define TEGRA114_CLK_MIPI_CAL 56
  75. #define TEGRA114_CLK_EMC 57
  76. #define TEGRA114_CLK_USB2 58
  77. #define TEGRA114_CLK_USB3 59
  78. /* 60 */
  79. #define TEGRA114_CLK_VDE 61
  80. #define TEGRA114_CLK_BSEA 62
  81. #define TEGRA114_CLK_BSEV 63
  82. /* 64 */
  83. #define TEGRA114_CLK_UARTD 65
  84. /* 66 */
  85. #define TEGRA114_CLK_I2C3 67
  86. #define TEGRA114_CLK_SBC4 68
  87. #define TEGRA114_CLK_SDMMC3 69
  88. /* 70 */
  89. #define TEGRA114_CLK_OWR 71
  90. /* 72 */
  91. #define TEGRA114_CLK_CSITE 73
  92. /* 74 */
  93. /* 75 */
  94. #define TEGRA114_CLK_LA 76
  95. #define TEGRA114_CLK_TRACE 77
  96. #define TEGRA114_CLK_SOC_THERM 78
  97. #define TEGRA114_CLK_DTV 79
  98. #define TEGRA114_CLK_NDSPEED 80
  99. #define TEGRA114_CLK_I2CSLOW 81
  100. #define TEGRA114_CLK_DSIB 82
  101. #define TEGRA114_CLK_TSEC 83
  102. /* 84 */
  103. /* 85 */
  104. /* 86 */
  105. /* 87 */
  106. /* 88 */
  107. #define TEGRA114_CLK_XUSB_HOST 89
  108. /* 90 */
  109. #define TEGRA114_CLK_MSENC 91
  110. #define TEGRA114_CLK_CSUS 92
  111. /* 93 */
  112. /* 94 */
  113. /* 95 (bit affects xusb_dev and xusb_dev_src) */
  114. /* 96 */
  115. /* 97 */
  116. /* 98 */
  117. #define TEGRA114_CLK_MSELECT 99
  118. #define TEGRA114_CLK_TSENSOR 100
  119. #define TEGRA114_CLK_I2S3 101
  120. #define TEGRA114_CLK_I2S4 102
  121. #define TEGRA114_CLK_I2C4 103
  122. #define TEGRA114_CLK_SBC5 104
  123. #define TEGRA114_CLK_SBC6 105
  124. #define TEGRA114_CLK_D_AUDIO 106
  125. #define TEGRA114_CLK_APBIF 107
  126. #define TEGRA114_CLK_DAM0 108
  127. #define TEGRA114_CLK_DAM1 109
  128. #define TEGRA114_CLK_DAM2 110
  129. #define TEGRA114_CLK_HDA2CODEC_2X 111
  130. /* 112 */
  131. #define TEGRA114_CLK_AUDIO0_2X 113
  132. #define TEGRA114_CLK_AUDIO1_2X 114
  133. #define TEGRA114_CLK_AUDIO2_2X 115
  134. #define TEGRA114_CLK_AUDIO3_2X 116
  135. #define TEGRA114_CLK_AUDIO4_2X 117
  136. #define TEGRA114_CLK_SPDIF_2X 118
  137. #define TEGRA114_CLK_ACTMON 119
  138. #define TEGRA114_CLK_EXTERN1 120
  139. #define TEGRA114_CLK_EXTERN2 121
  140. #define TEGRA114_CLK_EXTERN3 122
  141. /* 123 */
  142. /* 124 */
  143. #define TEGRA114_CLK_HDA 125
  144. /* 126 */
  145. #define TEGRA114_CLK_SE 127
  146. #define TEGRA114_CLK_HDA2HDMI 128
  147. /* 129 */
  148. /* 130 */
  149. /* 131 */
  150. /* 132 */
  151. /* 133 */
  152. /* 134 */
  153. /* 135 */
  154. #define TEGRA114_CLK_CEC 136
  155. /* 137 */
  156. /* 138 */
  157. /* 139 */
  158. /* 140 */
  159. /* 141 */
  160. /* 142 */
  161. /* 143 (bit affects xusb_falcon_src, xusb_fs_src, */
  162. /* xusb_host_src and xusb_ss_src) */
  163. #define TEGRA114_CLK_CILAB 144
  164. #define TEGRA114_CLK_CILCD 145
  165. #define TEGRA114_CLK_CILE 146
  166. #define TEGRA114_CLK_DSIALP 147
  167. #define TEGRA114_CLK_DSIBLP 148
  168. /* 149 */
  169. #define TEGRA114_CLK_DDS 150
  170. /* 151 */
  171. #define TEGRA114_CLK_DP2 152
  172. #define TEGRA114_CLK_AMX 153
  173. #define TEGRA114_CLK_ADX 154
  174. /* 155 (bit affects dfll_ref and dfll_soc) */
  175. #define TEGRA114_CLK_XUSB_SS 156
  176. /* 157 */
  177. /* 158 */
  178. /* 159 */
  179. /* 160 */
  180. /* 161 */
  181. /* 162 */
  182. /* 163 */
  183. /* 164 */
  184. /* 165 */
  185. /* 166 */
  186. /* 167 */
  187. /* 168 */
  188. /* 169 */
  189. /* 170 */
  190. /* 171 */
  191. /* 172 */
  192. /* 173 */
  193. /* 174 */
  194. /* 175 */
  195. /* 176 */
  196. /* 177 */
  197. /* 178 */
  198. /* 179 */
  199. /* 180 */
  200. /* 181 */
  201. /* 182 */
  202. /* 183 */
  203. /* 184 */
  204. /* 185 */
  205. /* 186 */
  206. /* 187 */
  207. /* 188 */
  208. /* 189 */
  209. /* 190 */
  210. /* 191 */
  211. #define TEGRA114_CLK_UARTB 192
  212. #define TEGRA114_CLK_VFIR 193
  213. #define TEGRA114_CLK_SPDIF_IN 194
  214. #define TEGRA114_CLK_SPDIF_OUT 195
  215. #define TEGRA114_CLK_VI 196
  216. #define TEGRA114_CLK_VI_SENSOR 197
  217. #define TEGRA114_CLK_FUSE 198
  218. #define TEGRA114_CLK_FUSE_BURN 199
  219. #define TEGRA114_CLK_CLK_32K 200
  220. #define TEGRA114_CLK_CLK_M 201
  221. #define TEGRA114_CLK_CLK_M_DIV2 202
  222. #define TEGRA114_CLK_CLK_M_DIV4 203
  223. #define TEGRA114_CLK_PLL_REF 204
  224. #define TEGRA114_CLK_PLL_C 205
  225. #define TEGRA114_CLK_PLL_C_OUT1 206
  226. #define TEGRA114_CLK_PLL_C2 207
  227. #define TEGRA114_CLK_PLL_C3 208
  228. #define TEGRA114_CLK_PLL_M 209
  229. #define TEGRA114_CLK_PLL_M_OUT1 210
  230. #define TEGRA114_CLK_PLL_P 211
  231. #define TEGRA114_CLK_PLL_P_OUT1 212
  232. #define TEGRA114_CLK_PLL_P_OUT2 213
  233. #define TEGRA114_CLK_PLL_P_OUT3 214
  234. #define TEGRA114_CLK_PLL_P_OUT4 215
  235. #define TEGRA114_CLK_PLL_A 216
  236. #define TEGRA114_CLK_PLL_A_OUT0 217
  237. #define TEGRA114_CLK_PLL_D 218
  238. #define TEGRA114_CLK_PLL_D_OUT0 219
  239. #define TEGRA114_CLK_PLL_D2 220
  240. #define TEGRA114_CLK_PLL_D2_OUT0 221
  241. #define TEGRA114_CLK_PLL_U 222
  242. #define TEGRA114_CLK_PLL_U_480M 223
  243. #define TEGRA114_CLK_PLL_U_60M 224
  244. #define TEGRA114_CLK_PLL_U_48M 225
  245. #define TEGRA114_CLK_PLL_U_12M 226
  246. #define TEGRA114_CLK_PLL_X 227
  247. #define TEGRA114_CLK_PLL_X_OUT0 228
  248. #define TEGRA114_CLK_PLL_RE_VCO 229
  249. #define TEGRA114_CLK_PLL_RE_OUT 230
  250. #define TEGRA114_CLK_PLL_E_OUT0 231
  251. #define TEGRA114_CLK_SPDIF_IN_SYNC 232
  252. #define TEGRA114_CLK_I2S0_SYNC 233
  253. #define TEGRA114_CLK_I2S1_SYNC 234
  254. #define TEGRA114_CLK_I2S2_SYNC 235
  255. #define TEGRA114_CLK_I2S3_SYNC 236
  256. #define TEGRA114_CLK_I2S4_SYNC 237
  257. #define TEGRA114_CLK_VIMCLK_SYNC 238
  258. #define TEGRA114_CLK_AUDIO0 239
  259. #define TEGRA114_CLK_AUDIO1 240
  260. #define TEGRA114_CLK_AUDIO2 241
  261. #define TEGRA114_CLK_AUDIO3 242
  262. #define TEGRA114_CLK_AUDIO4 243
  263. #define TEGRA114_CLK_SPDIF 244
  264. #define TEGRA114_CLK_CLK_OUT_1 245
  265. #define TEGRA114_CLK_CLK_OUT_2 246
  266. #define TEGRA114_CLK_CLK_OUT_3 247
  267. #define TEGRA114_CLK_BLINK 248
  268. /* 249 */
  269. /* 250 */
  270. /* 251 */
  271. #define TEGRA114_CLK_XUSB_HOST_SRC 252
  272. #define TEGRA114_CLK_XUSB_FALCON_SRC 253
  273. #define TEGRA114_CLK_XUSB_FS_SRC 254
  274. #define TEGRA114_CLK_XUSB_SS_SRC 255
  275. #define TEGRA114_CLK_XUSB_DEV_SRC 256
  276. #define TEGRA114_CLK_XUSB_DEV 257
  277. #define TEGRA114_CLK_XUSB_HS_SRC 258
  278. #define TEGRA114_CLK_SCLK 259
  279. #define TEGRA114_CLK_HCLK 260
  280. #define TEGRA114_CLK_PCLK 261
  281. #define TEGRA114_CLK_CCLK_G 262
  282. #define TEGRA114_CLK_CCLK_LP 263
  283. #define TEGRA114_CLK_DFLL_REF 264
  284. #define TEGRA114_CLK_DFLL_SOC 265
  285. /* 266 */
  286. /* 267 */
  287. /* 268 */
  288. /* 269 */
  289. /* 270 */
  290. /* 271 */
  291. /* 272 */
  292. /* 273 */
  293. /* 274 */
  294. /* 275 */
  295. /* 276 */
  296. /* 277 */
  297. /* 278 */
  298. /* 279 */
  299. /* 280 */
  300. /* 281 */
  301. /* 282 */
  302. /* 283 */
  303. /* 284 */
  304. /* 285 */
  305. /* 286 */
  306. /* 287 */
  307. /* 288 */
  308. /* 289 */
  309. /* 290 */
  310. /* 291 */
  311. /* 292 */
  312. /* 293 */
  313. /* 294 */
  314. /* 295 */
  315. /* 296 */
  316. /* 297 */
  317. /* 298 */
  318. /* 299 */
  319. #define TEGRA114_CLK_AUDIO0_MUX 300
  320. #define TEGRA114_CLK_AUDIO1_MUX 301
  321. #define TEGRA114_CLK_AUDIO2_MUX 302
  322. #define TEGRA114_CLK_AUDIO3_MUX 303
  323. #define TEGRA114_CLK_AUDIO4_MUX 304
  324. #define TEGRA114_CLK_SPDIF_MUX 305
  325. #define TEGRA114_CLK_CLK_OUT_1_MUX 306
  326. #define TEGRA114_CLK_CLK_OUT_2_MUX 307
  327. #define TEGRA114_CLK_CLK_OUT_3_MUX 308
  328. #define TEGRA114_CLK_DSIA_MUX 309
  329. #define TEGRA114_CLK_DSIB_MUX 310
  330. #define TEGRA114_CLK_XUSB_SS_DIV2 311
  331. #define TEGRA114_CLK_CLK_MAX 312
  332. #endif /* _DT_BINDINGS_CLOCK_TEGRA114_CAR_H */