mt8173-clk.h 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. /*
  2. * Copyright (c) 2014 MediaTek Inc.
  3. * Author: James Liao <jamesjj.liao@mediatek.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _DT_BINDINGS_CLK_MT8173_H
  15. #define _DT_BINDINGS_CLK_MT8173_H
  16. /* TOPCKGEN */
  17. #define CLK_TOP_CLKPH_MCK_O 1
  18. #define CLK_TOP_USB_SYSPLL_125M 3
  19. #define CLK_TOP_HDMITX_DIG_CTS 4
  20. #define CLK_TOP_ARMCA7PLL_754M 5
  21. #define CLK_TOP_ARMCA7PLL_502M 6
  22. #define CLK_TOP_MAIN_H546M 7
  23. #define CLK_TOP_MAIN_H364M 8
  24. #define CLK_TOP_MAIN_H218P4M 9
  25. #define CLK_TOP_MAIN_H156M 10
  26. #define CLK_TOP_TVDPLL_445P5M 11
  27. #define CLK_TOP_TVDPLL_594M 12
  28. #define CLK_TOP_UNIV_624M 13
  29. #define CLK_TOP_UNIV_416M 14
  30. #define CLK_TOP_UNIV_249P6M 15
  31. #define CLK_TOP_UNIV_178P3M 16
  32. #define CLK_TOP_UNIV_48M 17
  33. #define CLK_TOP_CLKRTC_EXT 18
  34. #define CLK_TOP_CLKRTC_INT 19
  35. #define CLK_TOP_FPC 20
  36. #define CLK_TOP_HDMITXPLL_D2 21
  37. #define CLK_TOP_HDMITXPLL_D3 22
  38. #define CLK_TOP_ARMCA7PLL_D2 23
  39. #define CLK_TOP_ARMCA7PLL_D3 24
  40. #define CLK_TOP_APLL1 25
  41. #define CLK_TOP_APLL2 26
  42. #define CLK_TOP_DMPLL 27
  43. #define CLK_TOP_DMPLL_D2 28
  44. #define CLK_TOP_DMPLL_D4 29
  45. #define CLK_TOP_DMPLL_D8 30
  46. #define CLK_TOP_DMPLL_D16 31
  47. #define CLK_TOP_LVDSPLL_D2 32
  48. #define CLK_TOP_LVDSPLL_D4 33
  49. #define CLK_TOP_LVDSPLL_D8 34
  50. #define CLK_TOP_MMPLL 35
  51. #define CLK_TOP_MMPLL_D2 36
  52. #define CLK_TOP_MSDCPLL 37
  53. #define CLK_TOP_MSDCPLL_D2 38
  54. #define CLK_TOP_MSDCPLL_D4 39
  55. #define CLK_TOP_MSDCPLL2 40
  56. #define CLK_TOP_MSDCPLL2_D2 41
  57. #define CLK_TOP_MSDCPLL2_D4 42
  58. #define CLK_TOP_SYSPLL_D2 43
  59. #define CLK_TOP_SYSPLL1_D2 44
  60. #define CLK_TOP_SYSPLL1_D4 45
  61. #define CLK_TOP_SYSPLL1_D8 46
  62. #define CLK_TOP_SYSPLL1_D16 47
  63. #define CLK_TOP_SYSPLL_D3 48
  64. #define CLK_TOP_SYSPLL2_D2 49
  65. #define CLK_TOP_SYSPLL2_D4 50
  66. #define CLK_TOP_SYSPLL_D5 51
  67. #define CLK_TOP_SYSPLL3_D2 52
  68. #define CLK_TOP_SYSPLL3_D4 53
  69. #define CLK_TOP_SYSPLL_D7 54
  70. #define CLK_TOP_SYSPLL4_D2 55
  71. #define CLK_TOP_SYSPLL4_D4 56
  72. #define CLK_TOP_TVDPLL 57
  73. #define CLK_TOP_TVDPLL_D2 58
  74. #define CLK_TOP_TVDPLL_D4 59
  75. #define CLK_TOP_TVDPLL_D8 60
  76. #define CLK_TOP_TVDPLL_D16 61
  77. #define CLK_TOP_UNIVPLL_D2 62
  78. #define CLK_TOP_UNIVPLL1_D2 63
  79. #define CLK_TOP_UNIVPLL1_D4 64
  80. #define CLK_TOP_UNIVPLL1_D8 65
  81. #define CLK_TOP_UNIVPLL_D3 66
  82. #define CLK_TOP_UNIVPLL2_D2 67
  83. #define CLK_TOP_UNIVPLL2_D4 68
  84. #define CLK_TOP_UNIVPLL2_D8 69
  85. #define CLK_TOP_UNIVPLL_D5 70
  86. #define CLK_TOP_UNIVPLL3_D2 71
  87. #define CLK_TOP_UNIVPLL3_D4 72
  88. #define CLK_TOP_UNIVPLL3_D8 73
  89. #define CLK_TOP_UNIVPLL_D7 74
  90. #define CLK_TOP_UNIVPLL_D26 75
  91. #define CLK_TOP_UNIVPLL_D52 76
  92. #define CLK_TOP_VCODECPLL 77
  93. #define CLK_TOP_VCODECPLL_370P5 78
  94. #define CLK_TOP_VENCPLL 79
  95. #define CLK_TOP_VENCPLL_D2 80
  96. #define CLK_TOP_VENCPLL_D4 81
  97. #define CLK_TOP_AXI_SEL 82
  98. #define CLK_TOP_MEM_SEL 83
  99. #define CLK_TOP_DDRPHYCFG_SEL 84
  100. #define CLK_TOP_MM_SEL 85
  101. #define CLK_TOP_PWM_SEL 86
  102. #define CLK_TOP_VDEC_SEL 87
  103. #define CLK_TOP_VENC_SEL 88
  104. #define CLK_TOP_MFG_SEL 89
  105. #define CLK_TOP_CAMTG_SEL 90
  106. #define CLK_TOP_UART_SEL 91
  107. #define CLK_TOP_SPI_SEL 92
  108. #define CLK_TOP_USB20_SEL 93
  109. #define CLK_TOP_USB30_SEL 94
  110. #define CLK_TOP_MSDC50_0_H_SEL 95
  111. #define CLK_TOP_MSDC50_0_SEL 96
  112. #define CLK_TOP_MSDC30_1_SEL 97
  113. #define CLK_TOP_MSDC30_2_SEL 98
  114. #define CLK_TOP_MSDC30_3_SEL 99
  115. #define CLK_TOP_AUDIO_SEL 100
  116. #define CLK_TOP_AUD_INTBUS_SEL 101
  117. #define CLK_TOP_PMICSPI_SEL 102
  118. #define CLK_TOP_SCP_SEL 103
  119. #define CLK_TOP_ATB_SEL 104
  120. #define CLK_TOP_VENC_LT_SEL 105
  121. #define CLK_TOP_DPI0_SEL 106
  122. #define CLK_TOP_IRDA_SEL 107
  123. #define CLK_TOP_CCI400_SEL 108
  124. #define CLK_TOP_AUD_1_SEL 109
  125. #define CLK_TOP_AUD_2_SEL 110
  126. #define CLK_TOP_MEM_MFG_IN_SEL 111
  127. #define CLK_TOP_AXI_MFG_IN_SEL 112
  128. #define CLK_TOP_SCAM_SEL 113
  129. #define CLK_TOP_SPINFI_IFR_SEL 114
  130. #define CLK_TOP_HDMI_SEL 115
  131. #define CLK_TOP_DPILVDS_SEL 116
  132. #define CLK_TOP_MSDC50_2_H_SEL 117
  133. #define CLK_TOP_HDCP_SEL 118
  134. #define CLK_TOP_HDCP_24M_SEL 119
  135. #define CLK_TOP_RTC_SEL 120
  136. #define CLK_TOP_APLL1_DIV0 121
  137. #define CLK_TOP_APLL1_DIV1 122
  138. #define CLK_TOP_APLL1_DIV2 123
  139. #define CLK_TOP_APLL1_DIV3 124
  140. #define CLK_TOP_APLL1_DIV4 125
  141. #define CLK_TOP_APLL1_DIV5 126
  142. #define CLK_TOP_APLL2_DIV0 127
  143. #define CLK_TOP_APLL2_DIV1 128
  144. #define CLK_TOP_APLL2_DIV2 129
  145. #define CLK_TOP_APLL2_DIV3 130
  146. #define CLK_TOP_APLL2_DIV4 131
  147. #define CLK_TOP_APLL2_DIV5 132
  148. #define CLK_TOP_I2S0_M_SEL 133
  149. #define CLK_TOP_I2S1_M_SEL 134
  150. #define CLK_TOP_I2S2_M_SEL 135
  151. #define CLK_TOP_I2S3_M_SEL 136
  152. #define CLK_TOP_I2S3_B_SEL 137
  153. #define CLK_TOP_DSI0_DIG 138
  154. #define CLK_TOP_DSI1_DIG 139
  155. #define CLK_TOP_LVDS_PXL 140
  156. #define CLK_TOP_LVDS_CTS 141
  157. #define CLK_TOP_NR_CLK 142
  158. /* APMIXED_SYS */
  159. #define CLK_APMIXED_ARMCA15PLL 1
  160. #define CLK_APMIXED_ARMCA7PLL 2
  161. #define CLK_APMIXED_MAINPLL 3
  162. #define CLK_APMIXED_UNIVPLL 4
  163. #define CLK_APMIXED_MMPLL 5
  164. #define CLK_APMIXED_MSDCPLL 6
  165. #define CLK_APMIXED_VENCPLL 7
  166. #define CLK_APMIXED_TVDPLL 8
  167. #define CLK_APMIXED_MPLL 9
  168. #define CLK_APMIXED_VCODECPLL 10
  169. #define CLK_APMIXED_APLL1 11
  170. #define CLK_APMIXED_APLL2 12
  171. #define CLK_APMIXED_LVDSPLL 13
  172. #define CLK_APMIXED_MSDCPLL2 14
  173. #define CLK_APMIXED_REF2USB_TX 15
  174. #define CLK_APMIXED_HDMI_REF 16
  175. #define CLK_APMIXED_NR_CLK 17
  176. /* INFRA_SYS */
  177. #define CLK_INFRA_DBGCLK 1
  178. #define CLK_INFRA_SMI 2
  179. #define CLK_INFRA_AUDIO 3
  180. #define CLK_INFRA_GCE 4
  181. #define CLK_INFRA_L2C_SRAM 5
  182. #define CLK_INFRA_M4U 6
  183. #define CLK_INFRA_CPUM 7
  184. #define CLK_INFRA_KP 8
  185. #define CLK_INFRA_CEC 9
  186. #define CLK_INFRA_PMICSPI 10
  187. #define CLK_INFRA_PMICWRAP 11
  188. #define CLK_INFRA_CLK_13M 12
  189. #define CLK_INFRA_NR_CLK 13
  190. /* PERI_SYS */
  191. #define CLK_PERI_NFI 1
  192. #define CLK_PERI_THERM 2
  193. #define CLK_PERI_PWM1 3
  194. #define CLK_PERI_PWM2 4
  195. #define CLK_PERI_PWM3 5
  196. #define CLK_PERI_PWM4 6
  197. #define CLK_PERI_PWM5 7
  198. #define CLK_PERI_PWM6 8
  199. #define CLK_PERI_PWM7 9
  200. #define CLK_PERI_PWM 10
  201. #define CLK_PERI_USB0 11
  202. #define CLK_PERI_USB1 12
  203. #define CLK_PERI_AP_DMA 13
  204. #define CLK_PERI_MSDC30_0 14
  205. #define CLK_PERI_MSDC30_1 15
  206. #define CLK_PERI_MSDC30_2 16
  207. #define CLK_PERI_MSDC30_3 17
  208. #define CLK_PERI_NLI_ARB 18
  209. #define CLK_PERI_IRDA 19
  210. #define CLK_PERI_UART0 20
  211. #define CLK_PERI_UART1 21
  212. #define CLK_PERI_UART2 22
  213. #define CLK_PERI_UART3 23
  214. #define CLK_PERI_I2C0 24
  215. #define CLK_PERI_I2C1 25
  216. #define CLK_PERI_I2C2 26
  217. #define CLK_PERI_I2C3 27
  218. #define CLK_PERI_I2C4 28
  219. #define CLK_PERI_AUXADC 29
  220. #define CLK_PERI_SPI0 30
  221. #define CLK_PERI_I2C5 31
  222. #define CLK_PERI_NFIECC 32
  223. #define CLK_PERI_SPI 33
  224. #define CLK_PERI_IRRX 34
  225. #define CLK_PERI_I2C6 35
  226. #define CLK_PERI_UART0_SEL 36
  227. #define CLK_PERI_UART1_SEL 37
  228. #define CLK_PERI_UART2_SEL 38
  229. #define CLK_PERI_UART3_SEL 39
  230. #define CLK_PERI_NR_CLK 40
  231. /* IMG_SYS */
  232. #define CLK_IMG_LARB2_SMI 1
  233. #define CLK_IMG_CAM_SMI 2
  234. #define CLK_IMG_CAM_CAM 3
  235. #define CLK_IMG_SEN_TG 4
  236. #define CLK_IMG_SEN_CAM 5
  237. #define CLK_IMG_CAM_SV 6
  238. #define CLK_IMG_FD 7
  239. #define CLK_IMG_NR_CLK 8
  240. /* MM_SYS */
  241. #define CLK_MM_SMI_COMMON 1
  242. #define CLK_MM_SMI_LARB0 2
  243. #define CLK_MM_CAM_MDP 3
  244. #define CLK_MM_MDP_RDMA0 4
  245. #define CLK_MM_MDP_RDMA1 5
  246. #define CLK_MM_MDP_RSZ0 6
  247. #define CLK_MM_MDP_RSZ1 7
  248. #define CLK_MM_MDP_RSZ2 8
  249. #define CLK_MM_MDP_TDSHP0 9
  250. #define CLK_MM_MDP_TDSHP1 10
  251. #define CLK_MM_MDP_WDMA 11
  252. #define CLK_MM_MDP_WROT0 12
  253. #define CLK_MM_MDP_WROT1 13
  254. #define CLK_MM_FAKE_ENG 14
  255. #define CLK_MM_MUTEX_32K 15
  256. #define CLK_MM_DISP_OVL0 16
  257. #define CLK_MM_DISP_OVL1 17
  258. #define CLK_MM_DISP_RDMA0 18
  259. #define CLK_MM_DISP_RDMA1 19
  260. #define CLK_MM_DISP_RDMA2 20
  261. #define CLK_MM_DISP_WDMA0 21
  262. #define CLK_MM_DISP_WDMA1 22
  263. #define CLK_MM_DISP_COLOR0 23
  264. #define CLK_MM_DISP_COLOR1 24
  265. #define CLK_MM_DISP_AAL 25
  266. #define CLK_MM_DISP_GAMMA 26
  267. #define CLK_MM_DISP_UFOE 27
  268. #define CLK_MM_DISP_SPLIT0 28
  269. #define CLK_MM_DISP_SPLIT1 29
  270. #define CLK_MM_DISP_MERGE 30
  271. #define CLK_MM_DISP_OD 31
  272. #define CLK_MM_DISP_PWM0MM 32
  273. #define CLK_MM_DISP_PWM026M 33
  274. #define CLK_MM_DISP_PWM1MM 34
  275. #define CLK_MM_DISP_PWM126M 35
  276. #define CLK_MM_DSI0_ENGINE 36
  277. #define CLK_MM_DSI0_DIGITAL 37
  278. #define CLK_MM_DSI1_ENGINE 38
  279. #define CLK_MM_DSI1_DIGITAL 39
  280. #define CLK_MM_DPI_PIXEL 40
  281. #define CLK_MM_DPI_ENGINE 41
  282. #define CLK_MM_DPI1_PIXEL 42
  283. #define CLK_MM_DPI1_ENGINE 43
  284. #define CLK_MM_HDMI_PIXEL 44
  285. #define CLK_MM_HDMI_PLLCK 45
  286. #define CLK_MM_HDMI_AUDIO 46
  287. #define CLK_MM_HDMI_SPDIF 47
  288. #define CLK_MM_LVDS_PIXEL 48
  289. #define CLK_MM_LVDS_CTS 49
  290. #define CLK_MM_SMI_LARB4 50
  291. #define CLK_MM_HDMI_HDCP 51
  292. #define CLK_MM_HDMI_HDCP24M 52
  293. #define CLK_MM_NR_CLK 53
  294. /* VDEC_SYS */
  295. #define CLK_VDEC_CKEN 1
  296. #define CLK_VDEC_LARB_CKEN 2
  297. #define CLK_VDEC_NR_CLK 3
  298. /* VENC_SYS */
  299. #define CLK_VENC_CKE0 1
  300. #define CLK_VENC_CKE1 2
  301. #define CLK_VENC_CKE2 3
  302. #define CLK_VENC_CKE3 4
  303. #define CLK_VENC_NR_CLK 5
  304. /* VENCLT_SYS */
  305. #define CLK_VENCLT_CKE0 1
  306. #define CLK_VENCLT_CKE1 2
  307. #define CLK_VENCLT_NR_CLK 3
  308. #endif /* _DT_BINDINGS_CLK_MT8173_H */