tegra30-car.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * This header provides constants for binding nvidia,tegra30-car.
  4. *
  5. * The first 130 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_TEGRA30_CAR_H
  17. #define _DT_BINDINGS_CLOCK_TEGRA30_CAR_H
  18. #define TEGRA30_CLK_CPU 0
  19. /* 1 */
  20. /* 2 */
  21. /* 3 */
  22. #define TEGRA30_CLK_RTC 4
  23. #define TEGRA30_CLK_TIMER 5
  24. #define TEGRA30_CLK_UARTA 6
  25. /* 7 (register bit affects uartb and vfir) */
  26. #define TEGRA30_CLK_GPIO 8
  27. #define TEGRA30_CLK_SDMMC2 9
  28. /* 10 (register bit affects spdif_in and spdif_out) */
  29. #define TEGRA30_CLK_I2S1 11
  30. #define TEGRA30_CLK_I2C1 12
  31. #define TEGRA30_CLK_NDFLASH 13
  32. #define TEGRA30_CLK_SDMMC1 14
  33. #define TEGRA30_CLK_SDMMC4 15
  34. /* 16 */
  35. #define TEGRA30_CLK_PWM 17
  36. #define TEGRA30_CLK_I2S2 18
  37. #define TEGRA30_CLK_EPP 19
  38. /* 20 (register bit affects vi and vi_sensor) */
  39. #define TEGRA30_CLK_GR2D 21
  40. #define TEGRA30_CLK_USBD 22
  41. #define TEGRA30_CLK_ISP 23
  42. #define TEGRA30_CLK_GR3D 24
  43. /* 25 */
  44. #define TEGRA30_CLK_DISP2 26
  45. #define TEGRA30_CLK_DISP1 27
  46. #define TEGRA30_CLK_HOST1X 28
  47. #define TEGRA30_CLK_VCP 29
  48. #define TEGRA30_CLK_I2S0 30
  49. #define TEGRA30_CLK_COP_CACHE 31
  50. #define TEGRA30_CLK_MC 32
  51. #define TEGRA30_CLK_AHBDMA 33
  52. #define TEGRA30_CLK_APBDMA 34
  53. /* 35 */
  54. #define TEGRA30_CLK_KBC 36
  55. #define TEGRA30_CLK_STATMON 37
  56. #define TEGRA30_CLK_PMC 38
  57. /* 39 (register bit affects fuse and fuse_burn) */
  58. #define TEGRA30_CLK_KFUSE 40
  59. #define TEGRA30_CLK_SBC1 41
  60. #define TEGRA30_CLK_NOR 42
  61. /* 43 */
  62. #define TEGRA30_CLK_SBC2 44
  63. /* 45 */
  64. #define TEGRA30_CLK_SBC3 46
  65. #define TEGRA30_CLK_I2C5 47
  66. #define TEGRA30_CLK_DSIA 48
  67. /* 49 (register bit affects cve and tvo) */
  68. #define TEGRA30_CLK_MIPI 50
  69. #define TEGRA30_CLK_HDMI 51
  70. #define TEGRA30_CLK_CSI 52
  71. #define TEGRA30_CLK_TVDAC 53
  72. #define TEGRA30_CLK_I2C2 54
  73. #define TEGRA30_CLK_UARTC 55
  74. /* 56 */
  75. #define TEGRA30_CLK_EMC 57
  76. #define TEGRA30_CLK_USB2 58
  77. #define TEGRA30_CLK_USB3 59
  78. #define TEGRA30_CLK_MPE 60
  79. #define TEGRA30_CLK_VDE 61
  80. #define TEGRA30_CLK_BSEA 62
  81. #define TEGRA30_CLK_BSEV 63
  82. #define TEGRA30_CLK_SPEEDO 64
  83. #define TEGRA30_CLK_UARTD 65
  84. #define TEGRA30_CLK_UARTE 66
  85. #define TEGRA30_CLK_I2C3 67
  86. #define TEGRA30_CLK_SBC4 68
  87. #define TEGRA30_CLK_SDMMC3 69
  88. #define TEGRA30_CLK_PCIE 70
  89. #define TEGRA30_CLK_OWR 71
  90. #define TEGRA30_CLK_AFI 72
  91. #define TEGRA30_CLK_CSITE 73
  92. /* 74 */
  93. #define TEGRA30_CLK_AVPUCQ 75
  94. #define TEGRA30_CLK_LA 76
  95. /* 77 */
  96. /* 78 */
  97. #define TEGRA30_CLK_DTV 79
  98. #define TEGRA30_CLK_NDSPEED 80
  99. #define TEGRA30_CLK_I2CSLOW 81
  100. #define TEGRA30_CLK_DSIB 82
  101. /* 83 */
  102. #define TEGRA30_CLK_IRAMA 84
  103. #define TEGRA30_CLK_IRAMB 85
  104. #define TEGRA30_CLK_IRAMC 86
  105. #define TEGRA30_CLK_IRAMD 87
  106. #define TEGRA30_CLK_CRAM2 88
  107. /* 89 */
  108. #define TEGRA30_CLK_AUDIO_2X 90 /* a/k/a audio_2x_sync_clk */
  109. /* 91 */
  110. #define TEGRA30_CLK_CSUS 92
  111. #define TEGRA30_CLK_CDEV2 93
  112. #define TEGRA30_CLK_CDEV1 94
  113. /* 95 */
  114. #define TEGRA30_CLK_CPU_G 96
  115. #define TEGRA30_CLK_CPU_LP 97
  116. #define TEGRA30_CLK_GR3D2 98
  117. #define TEGRA30_CLK_MSELECT 99
  118. #define TEGRA30_CLK_TSENSOR 100
  119. #define TEGRA30_CLK_I2S3 101
  120. #define TEGRA30_CLK_I2S4 102
  121. #define TEGRA30_CLK_I2C4 103
  122. #define TEGRA30_CLK_SBC5 104
  123. #define TEGRA30_CLK_SBC6 105
  124. #define TEGRA30_CLK_D_AUDIO 106
  125. #define TEGRA30_CLK_APBIF 107
  126. #define TEGRA30_CLK_DAM0 108
  127. #define TEGRA30_CLK_DAM1 109
  128. #define TEGRA30_CLK_DAM2 110
  129. #define TEGRA30_CLK_HDA2CODEC_2X 111
  130. #define TEGRA30_CLK_ATOMICS 112
  131. #define TEGRA30_CLK_AUDIO0_2X 113
  132. #define TEGRA30_CLK_AUDIO1_2X 114
  133. #define TEGRA30_CLK_AUDIO2_2X 115
  134. #define TEGRA30_CLK_AUDIO3_2X 116
  135. #define TEGRA30_CLK_AUDIO4_2X 117
  136. #define TEGRA30_CLK_SPDIF_2X 118
  137. #define TEGRA30_CLK_ACTMON 119
  138. #define TEGRA30_CLK_EXTERN1 120
  139. #define TEGRA30_CLK_EXTERN2 121
  140. #define TEGRA30_CLK_EXTERN3 122
  141. #define TEGRA30_CLK_SATA_OOB 123
  142. #define TEGRA30_CLK_SATA 124
  143. #define TEGRA30_CLK_HDA 125
  144. /* 126 */
  145. #define TEGRA30_CLK_SE 127
  146. #define TEGRA30_CLK_HDA2HDMI 128
  147. #define TEGRA30_CLK_SATA_COLD 129
  148. /* 130 */
  149. /* 131 */
  150. /* 132 */
  151. /* 133 */
  152. /* 134 */
  153. /* 135 */
  154. #define TEGRA30_CLK_CEC 136
  155. /* 137 */
  156. /* 138 */
  157. /* 139 */
  158. /* 140 */
  159. /* 141 */
  160. /* 142 */
  161. /* 143 */
  162. /* 144 */
  163. /* 145 */
  164. /* 146 */
  165. /* 147 */
  166. /* 148 */
  167. /* 149 */
  168. /* 150 */
  169. /* 151 */
  170. /* 152 */
  171. /* 153 */
  172. /* 154 */
  173. /* 155 */
  174. /* 156 */
  175. /* 157 */
  176. /* 158 */
  177. /* 159 */
  178. #define TEGRA30_CLK_UARTB 160
  179. #define TEGRA30_CLK_VFIR 161
  180. #define TEGRA30_CLK_SPDIF_IN 162
  181. #define TEGRA30_CLK_SPDIF_OUT 163
  182. #define TEGRA30_CLK_VI 164
  183. #define TEGRA30_CLK_VI_SENSOR 165
  184. #define TEGRA30_CLK_FUSE 166
  185. #define TEGRA30_CLK_FUSE_BURN 167
  186. #define TEGRA30_CLK_CVE 168
  187. #define TEGRA30_CLK_TVO 169
  188. #define TEGRA30_CLK_CLK_32K 170
  189. #define TEGRA30_CLK_CLK_M 171
  190. #define TEGRA30_CLK_CLK_M_DIV2 172
  191. #define TEGRA30_CLK_CLK_M_DIV4 173
  192. #define TEGRA30_CLK_PLL_REF 174
  193. #define TEGRA30_CLK_PLL_C 175
  194. #define TEGRA30_CLK_PLL_C_OUT1 176
  195. #define TEGRA30_CLK_PLL_M 177
  196. #define TEGRA30_CLK_PLL_M_OUT1 178
  197. #define TEGRA30_CLK_PLL_P 179
  198. #define TEGRA30_CLK_PLL_P_OUT1 180
  199. #define TEGRA30_CLK_PLL_P_OUT2 181
  200. #define TEGRA30_CLK_PLL_P_OUT3 182
  201. #define TEGRA30_CLK_PLL_P_OUT4 183
  202. #define TEGRA30_CLK_PLL_A 184
  203. #define TEGRA30_CLK_PLL_A_OUT0 185
  204. #define TEGRA30_CLK_PLL_D 186
  205. #define TEGRA30_CLK_PLL_D_OUT0 187
  206. #define TEGRA30_CLK_PLL_D2 188
  207. #define TEGRA30_CLK_PLL_D2_OUT0 189
  208. #define TEGRA30_CLK_PLL_U 190
  209. #define TEGRA30_CLK_PLL_X 191
  210. #define TEGRA30_CLK_PLL_X_OUT0 192
  211. #define TEGRA30_CLK_PLL_E 193
  212. #define TEGRA30_CLK_SPDIF_IN_SYNC 194
  213. #define TEGRA30_CLK_I2S0_SYNC 195
  214. #define TEGRA30_CLK_I2S1_SYNC 196
  215. #define TEGRA30_CLK_I2S2_SYNC 197
  216. #define TEGRA30_CLK_I2S3_SYNC 198
  217. #define TEGRA30_CLK_I2S4_SYNC 199
  218. #define TEGRA30_CLK_VIMCLK_SYNC 200
  219. #define TEGRA30_CLK_AUDIO0 201
  220. #define TEGRA30_CLK_AUDIO1 202
  221. #define TEGRA30_CLK_AUDIO2 203
  222. #define TEGRA30_CLK_AUDIO3 204
  223. #define TEGRA30_CLK_AUDIO4 205
  224. #define TEGRA30_CLK_SPDIF 206
  225. #define TEGRA30_CLK_CLK_OUT_1 207 /* (extern1) */
  226. #define TEGRA30_CLK_CLK_OUT_2 208 /* (extern2) */
  227. #define TEGRA30_CLK_CLK_OUT_3 209 /* (extern3) */
  228. #define TEGRA30_CLK_SCLK 210
  229. #define TEGRA30_CLK_BLINK 211
  230. #define TEGRA30_CLK_CCLK_G 212
  231. #define TEGRA30_CLK_CCLK_LP 213
  232. #define TEGRA30_CLK_TWD 214
  233. #define TEGRA30_CLK_CML0 215
  234. #define TEGRA30_CLK_CML1 216
  235. #define TEGRA30_CLK_HCLK 217
  236. #define TEGRA30_CLK_PCLK 218
  237. /* 219 */
  238. /* 220 */
  239. /* 221 */
  240. /* 222 */
  241. /* 223 */
  242. /* 288 */
  243. /* 289 */
  244. /* 290 */
  245. /* 291 */
  246. /* 292 */
  247. /* 293 */
  248. /* 294 */
  249. /* 295 */
  250. /* 296 */
  251. /* 297 */
  252. /* 298 */
  253. /* 299 */
  254. #define TEGRA30_CLK_CLK_OUT_1_MUX 300
  255. #define TEGRA30_CLK_CLK_OUT_2_MUX 301
  256. #define TEGRA30_CLK_CLK_OUT_3_MUX 302
  257. #define TEGRA30_CLK_AUDIO0_MUX 303
  258. #define TEGRA30_CLK_AUDIO1_MUX 304
  259. #define TEGRA30_CLK_AUDIO2_MUX 305
  260. #define TEGRA30_CLK_AUDIO3_MUX 306
  261. #define TEGRA30_CLK_AUDIO4_MUX 307
  262. #define TEGRA30_CLK_SPDIF_MUX 308
  263. #define TEGRA30_CLK_CLK_MAX 309
  264. #endif /* _DT_BINDINGS_CLOCK_TEGRA30_CAR_H */