tegra124-car-common.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * This header provides constants for binding nvidia,tegra124-car or
  4. * nvidia,tegra132-car.
  5. *
  6. * The first 192 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB
  7. * registers. These IDs often match those in the CAR's RST_DEVICES registers,
  8. * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In
  9. * this case, those clocks are assigned IDs above 185 in order to highlight
  10. * this issue. Implementations that interpret these clock IDs as bit values
  11. * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to
  12. * explicitly handle these special cases.
  13. *
  14. * The balance of the clocks controlled by the CAR are assigned IDs of 185 and
  15. * above.
  16. */
  17. #ifndef _DT_BINDINGS_CLOCK_TEGRA124_CAR_COMMON_H
  18. #define _DT_BINDINGS_CLOCK_TEGRA124_CAR_COMMON_H
  19. /* 0 */
  20. /* 1 */
  21. /* 2 */
  22. #define TEGRA124_CLK_ISPB 3
  23. #define TEGRA124_CLK_RTC 4
  24. #define TEGRA124_CLK_TIMER 5
  25. #define TEGRA124_CLK_UARTA 6
  26. /* 7 (register bit affects uartb and vfir) */
  27. /* 8 */
  28. #define TEGRA124_CLK_SDMMC2 9
  29. /* 10 (register bit affects spdif_in and spdif_out) */
  30. #define TEGRA124_CLK_I2S1 11
  31. #define TEGRA124_CLK_I2C1 12
  32. /* 13 */
  33. #define TEGRA124_CLK_SDMMC1 14
  34. #define TEGRA124_CLK_SDMMC4 15
  35. /* 16 */
  36. #define TEGRA124_CLK_PWM 17
  37. #define TEGRA124_CLK_I2S2 18
  38. /* 20 (register bit affects vi and vi_sensor) */
  39. /* 21 */
  40. #define TEGRA124_CLK_USBD 22
  41. #define TEGRA124_CLK_ISP 23
  42. /* 26 */
  43. /* 25 */
  44. #define TEGRA124_CLK_DISP2 26
  45. #define TEGRA124_CLK_DISP1 27
  46. #define TEGRA124_CLK_HOST1X 28
  47. #define TEGRA124_CLK_VCP 29
  48. #define TEGRA124_CLK_I2S0 30
  49. /* 31 */
  50. #define TEGRA124_CLK_MC 32
  51. /* 33 */
  52. #define TEGRA124_CLK_APBDMA 34
  53. /* 35 */
  54. #define TEGRA124_CLK_KBC 36
  55. /* 37 */
  56. /* 38 */
  57. /* 39 (register bit affects fuse and fuse_burn) */
  58. #define TEGRA124_CLK_KFUSE 40
  59. #define TEGRA124_CLK_SBC1 41
  60. #define TEGRA124_CLK_NOR 42
  61. /* 43 */
  62. #define TEGRA124_CLK_SBC2 44
  63. /* 45 */
  64. #define TEGRA124_CLK_SBC3 46
  65. #define TEGRA124_CLK_I2C5 47
  66. #define TEGRA124_CLK_DSIA 48
  67. /* 49 */
  68. #define TEGRA124_CLK_MIPI 50
  69. #define TEGRA124_CLK_HDMI 51
  70. #define TEGRA124_CLK_CSI 52
  71. /* 53 */
  72. #define TEGRA124_CLK_I2C2 54
  73. #define TEGRA124_CLK_UARTC 55
  74. #define TEGRA124_CLK_MIPI_CAL 56
  75. #define TEGRA124_CLK_EMC 57
  76. #define TEGRA124_CLK_USB2 58
  77. #define TEGRA124_CLK_USB3 59
  78. /* 60 */
  79. #define TEGRA124_CLK_VDE 61
  80. #define TEGRA124_CLK_BSEA 62
  81. #define TEGRA124_CLK_BSEV 63
  82. /* 64 */
  83. #define TEGRA124_CLK_UARTD 65
  84. /* 66 */
  85. #define TEGRA124_CLK_I2C3 67
  86. #define TEGRA124_CLK_SBC4 68
  87. #define TEGRA124_CLK_SDMMC3 69
  88. #define TEGRA124_CLK_PCIE 70
  89. #define TEGRA124_CLK_OWR 71
  90. #define TEGRA124_CLK_AFI 72
  91. #define TEGRA124_CLK_CSITE 73
  92. /* 74 */
  93. /* 75 */
  94. #define TEGRA124_CLK_LA 76
  95. #define TEGRA124_CLK_TRACE 77
  96. #define TEGRA124_CLK_SOC_THERM 78
  97. #define TEGRA124_CLK_DTV 79
  98. /* 80 */
  99. #define TEGRA124_CLK_I2CSLOW 81
  100. #define TEGRA124_CLK_DSIB 82
  101. #define TEGRA124_CLK_TSEC 83
  102. /* 84 */
  103. /* 85 */
  104. /* 86 */
  105. /* 87 */
  106. /* 88 */
  107. #define TEGRA124_CLK_XUSB_HOST 89
  108. /* 90 */
  109. #define TEGRA124_CLK_MSENC 91
  110. #define TEGRA124_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 TEGRA124_CLK_MSELECT 99
  118. #define TEGRA124_CLK_TSENSOR 100
  119. #define TEGRA124_CLK_I2S3 101
  120. #define TEGRA124_CLK_I2S4 102
  121. #define TEGRA124_CLK_I2C4 103
  122. #define TEGRA124_CLK_SBC5 104
  123. #define TEGRA124_CLK_SBC6 105
  124. #define TEGRA124_CLK_D_AUDIO 106
  125. #define TEGRA124_CLK_APBIF 107
  126. #define TEGRA124_CLK_DAM0 108
  127. #define TEGRA124_CLK_DAM1 109
  128. #define TEGRA124_CLK_DAM2 110
  129. #define TEGRA124_CLK_HDA2CODEC_2X 111
  130. /* 112 */
  131. #define TEGRA124_CLK_AUDIO0_2X 113
  132. #define TEGRA124_CLK_AUDIO1_2X 114
  133. #define TEGRA124_CLK_AUDIO2_2X 115
  134. #define TEGRA124_CLK_AUDIO3_2X 116
  135. #define TEGRA124_CLK_AUDIO4_2X 117
  136. #define TEGRA124_CLK_SPDIF_2X 118
  137. #define TEGRA124_CLK_ACTMON 119
  138. #define TEGRA124_CLK_EXTERN1 120
  139. #define TEGRA124_CLK_EXTERN2 121
  140. #define TEGRA124_CLK_EXTERN3 122
  141. #define TEGRA124_CLK_SATA_OOB 123
  142. #define TEGRA124_CLK_SATA 124
  143. #define TEGRA124_CLK_HDA 125
  144. /* 126 */
  145. #define TEGRA124_CLK_SE 127
  146. #define TEGRA124_CLK_HDA2HDMI 128
  147. #define TEGRA124_CLK_SATA_COLD 129
  148. /* 130 */
  149. /* 131 */
  150. /* 132 */
  151. /* 133 */
  152. /* 134 */
  153. /* 135 */
  154. #define TEGRA124_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 TEGRA124_CLK_CILAB 144
  164. #define TEGRA124_CLK_CILCD 145
  165. #define TEGRA124_CLK_CILE 146
  166. #define TEGRA124_CLK_DSIALP 147
  167. #define TEGRA124_CLK_DSIBLP 148
  168. #define TEGRA124_CLK_ENTROPY 149
  169. #define TEGRA124_CLK_DDS 150
  170. /* 151 */
  171. #define TEGRA124_CLK_DP2 152
  172. #define TEGRA124_CLK_AMX 153
  173. #define TEGRA124_CLK_ADX 154
  174. /* 155 (bit affects dfll_ref and dfll_soc) */
  175. #define TEGRA124_CLK_XUSB_SS 156
  176. /* 157 */
  177. /* 158 */
  178. /* 159 */
  179. /* 160 */
  180. /* 161 */
  181. /* 162 */
  182. /* 163 */
  183. /* 164 */
  184. /* 165 */
  185. #define TEGRA124_CLK_I2C6 166
  186. /* 167 */
  187. /* 168 */
  188. /* 169 */
  189. /* 170 */
  190. #define TEGRA124_CLK_VIM2_CLK 171
  191. /* 172 */
  192. /* 173 */
  193. /* 174 */
  194. /* 175 */
  195. #define TEGRA124_CLK_HDMI_AUDIO 176
  196. #define TEGRA124_CLK_CLK72MHZ 177
  197. #define TEGRA124_CLK_VIC03 178
  198. /* 179 */
  199. #define TEGRA124_CLK_ADX1 180
  200. #define TEGRA124_CLK_DPAUX 181
  201. #define TEGRA124_CLK_SOR0 182
  202. /* 183 */
  203. #define TEGRA124_CLK_GPU 184
  204. #define TEGRA124_CLK_AMX1 185
  205. /* 186 */
  206. /* 187 */
  207. /* 188 */
  208. /* 189 */
  209. /* 190 */
  210. /* 191 */
  211. #define TEGRA124_CLK_UARTB 192
  212. #define TEGRA124_CLK_VFIR 193
  213. #define TEGRA124_CLK_SPDIF_IN 194
  214. #define TEGRA124_CLK_SPDIF_OUT 195
  215. #define TEGRA124_CLK_VI 196
  216. #define TEGRA124_CLK_VI_SENSOR 197
  217. #define TEGRA124_CLK_FUSE 198
  218. #define TEGRA124_CLK_FUSE_BURN 199
  219. #define TEGRA124_CLK_CLK_32K 200
  220. #define TEGRA124_CLK_CLK_M 201
  221. #define TEGRA124_CLK_CLK_M_DIV2 202
  222. #define TEGRA124_CLK_CLK_M_DIV4 203
  223. #define TEGRA124_CLK_PLL_REF 204
  224. #define TEGRA124_CLK_PLL_C 205
  225. #define TEGRA124_CLK_PLL_C_OUT1 206
  226. #define TEGRA124_CLK_PLL_C2 207
  227. #define TEGRA124_CLK_PLL_C3 208
  228. #define TEGRA124_CLK_PLL_M 209
  229. #define TEGRA124_CLK_PLL_M_OUT1 210
  230. #define TEGRA124_CLK_PLL_P 211
  231. #define TEGRA124_CLK_PLL_P_OUT1 212
  232. #define TEGRA124_CLK_PLL_P_OUT2 213
  233. #define TEGRA124_CLK_PLL_P_OUT3 214
  234. #define TEGRA124_CLK_PLL_P_OUT4 215
  235. #define TEGRA124_CLK_PLL_A 216
  236. #define TEGRA124_CLK_PLL_A_OUT0 217
  237. #define TEGRA124_CLK_PLL_D 218
  238. #define TEGRA124_CLK_PLL_D_OUT0 219
  239. #define TEGRA124_CLK_PLL_D2 220
  240. #define TEGRA124_CLK_PLL_D2_OUT0 221
  241. #define TEGRA124_CLK_PLL_U 222
  242. #define TEGRA124_CLK_PLL_U_480M 223
  243. #define TEGRA124_CLK_PLL_U_60M 224
  244. #define TEGRA124_CLK_PLL_U_48M 225
  245. #define TEGRA124_CLK_PLL_U_12M 226
  246. /* 227 */
  247. /* 228 */
  248. #define TEGRA124_CLK_PLL_RE_VCO 229
  249. #define TEGRA124_CLK_PLL_RE_OUT 230
  250. #define TEGRA124_CLK_PLL_E 231
  251. #define TEGRA124_CLK_SPDIF_IN_SYNC 232
  252. #define TEGRA124_CLK_I2S0_SYNC 233
  253. #define TEGRA124_CLK_I2S1_SYNC 234
  254. #define TEGRA124_CLK_I2S2_SYNC 235
  255. #define TEGRA124_CLK_I2S3_SYNC 236
  256. #define TEGRA124_CLK_I2S4_SYNC 237
  257. #define TEGRA124_CLK_VIMCLK_SYNC 238
  258. #define TEGRA124_CLK_AUDIO0 239
  259. #define TEGRA124_CLK_AUDIO1 240
  260. #define TEGRA124_CLK_AUDIO2 241
  261. #define TEGRA124_CLK_AUDIO3 242
  262. #define TEGRA124_CLK_AUDIO4 243
  263. #define TEGRA124_CLK_SPDIF 244
  264. #define TEGRA124_CLK_CLK_OUT_1 245
  265. #define TEGRA124_CLK_CLK_OUT_2 246
  266. #define TEGRA124_CLK_CLK_OUT_3 247
  267. #define TEGRA124_CLK_BLINK 248
  268. /* 249 */
  269. /* 250 */
  270. /* 251 */
  271. #define TEGRA124_CLK_XUSB_HOST_SRC 252
  272. #define TEGRA124_CLK_XUSB_FALCON_SRC 253
  273. #define TEGRA124_CLK_XUSB_FS_SRC 254
  274. #define TEGRA124_CLK_XUSB_SS_SRC 255
  275. #define TEGRA124_CLK_XUSB_DEV_SRC 256
  276. #define TEGRA124_CLK_XUSB_DEV 257
  277. #define TEGRA124_CLK_XUSB_HS_SRC 258
  278. #define TEGRA124_CLK_SCLK 259
  279. #define TEGRA124_CLK_HCLK 260
  280. #define TEGRA124_CLK_PCLK 261
  281. /* 262 */
  282. /* 263 */
  283. #define TEGRA124_CLK_DFLL_REF 264
  284. #define TEGRA124_CLK_DFLL_SOC 265
  285. #define TEGRA124_CLK_VI_SENSOR2 266
  286. #define TEGRA124_CLK_PLL_P_OUT5 267
  287. #define TEGRA124_CLK_CML0 268
  288. #define TEGRA124_CLK_CML1 269
  289. #define TEGRA124_CLK_PLL_C4 270
  290. #define TEGRA124_CLK_PLL_DP 271
  291. #define TEGRA124_CLK_PLL_E_MUX 272
  292. #define TEGRA124_CLK_PLL_D_DSI_OUT 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 TEGRA124_CLK_AUDIO0_MUX 300
  320. #define TEGRA124_CLK_AUDIO1_MUX 301
  321. #define TEGRA124_CLK_AUDIO2_MUX 302
  322. #define TEGRA124_CLK_AUDIO3_MUX 303
  323. #define TEGRA124_CLK_AUDIO4_MUX 304
  324. #define TEGRA124_CLK_SPDIF_MUX 305
  325. #define TEGRA124_CLK_CLK_OUT_1_MUX 306
  326. #define TEGRA124_CLK_CLK_OUT_2_MUX 307
  327. #define TEGRA124_CLK_CLK_OUT_3_MUX 308
  328. /* 309 */
  329. /* 310 */
  330. #define TEGRA124_CLK_SOR0_LVDS 311
  331. #define TEGRA124_CLK_XUSB_SS_DIV2 312
  332. #define TEGRA124_CLK_PLL_M_UD 313
  333. #define TEGRA124_CLK_PLL_C_UD 314
  334. #endif /* _DT_BINDINGS_CLOCK_TEGRA124_CAR_COMMON_H */