1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2015 Rockchip Electronics Co. Ltd.
4 * Author: Jeffy Chen <jeffy.chen@rock-chips.com>
7 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3228_H
8 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3228_H
17 /* sclk gates (special clocks) */
31 #define SCLK_TIMER0 85
32 #define SCLK_TIMER1 86
33 #define SCLK_TIMER2 87
34 #define SCLK_TIMER3 88
35 #define SCLK_TIMER4 89
36 #define SCLK_TIMER5 90
37 #define SCLK_I2S_OUT 113
38 #define SCLK_SDMMC_DRV 114
39 #define SCLK_SDIO_DRV 115
40 #define SCLK_EMMC_DRV 117
41 #define SCLK_SDMMC_SAMPLE 118
42 #define SCLK_SDIO_SAMPLE 119
43 #define SCLK_SDIO_SRC 120
44 #define SCLK_EMMC_SAMPLE 121
46 #define SCLK_HDMI_HDCP 123
47 #define SCLK_MAC_SRC 124
48 #define SCLK_MAC_EXTCLK 125
50 #define SCLK_MAC_REFOUT 127
51 #define SCLK_MAC_REF 128
52 #define SCLK_MAC_RX 129
53 #define SCLK_MAC_TX 130
54 #define SCLK_MAC_PHY 131
55 #define SCLK_MAC_OUT 132
56 #define SCLK_VDEC_CABAC 133
57 #define SCLK_VDEC_CORE 134
60 #define SCLK_HDMI_CEC 137
61 #define SCLK_CRYPTO 138
63 #define SCLK_HSADC 140
65 #define SCLK_OTGPHY0 142
66 #define SCLK_OTGPHY1 143
67 #define SCLK_HDMI_PHY 144
71 #define DCLK_HDMI_PHY 191
76 #define ACLK_VPU_PRE 196
77 #define ACLK_RKVDEC_PRE 197
78 #define ACLK_RGA_PRE 198
79 #define ACLK_IEP_PRE 199
80 #define ACLK_HDCP_PRE 200
81 #define ACLK_VOP_PRE 201
83 #define ACLK_RKVDEC 203
93 #define PCLK_GPIO0 320
94 #define PCLK_GPIO1 321
95 #define PCLK_GPIO2 322
96 #define PCLK_GPIO3 323
97 #define PCLK_VIO_H2P 324
99 #define PCLK_EFUSE_1024 326
100 #define PCLK_EFUSE_256 327
102 #define PCLK_I2C0 332
103 #define PCLK_I2C1 333
104 #define PCLK_I2C2 334
105 #define PCLK_I2C3 335
106 #define PCLK_SPI0 338
107 #define PCLK_UART0 341
108 #define PCLK_UART1 342
109 #define PCLK_UART2 343
110 #define PCLK_TSADC 344
112 #define PCLK_TIMER 353
114 #define PCLK_PERI 363
115 #define PCLK_HDMI_CTRL 364
116 #define PCLK_HDMI_PHY 365
117 #define PCLK_GMAC 367
120 #define HCLK_I2S0_8CH 442
121 #define HCLK_I2S1_8CH 443
122 #define HCLK_I2S2_2CH 444
123 #define HCLK_SPDIF_8CH 445
125 #define HCLK_NANDC 453
126 #define HCLK_SDMMC 456
127 #define HCLK_SDIO 457
128 #define HCLK_EMMC 459
130 #define HCLK_VPU_PRE 461
131 #define HCLK_RKVDEC_PRE 462
132 #define HCLK_VIO_PRE 463
134 #define HCLK_RKVDEC 465
138 #define HCLK_VIO_H2P 469
139 #define HCLK_HDCP_MMU 470
140 #define HCLK_HOST0 471
141 #define HCLK_HOST1 472
142 #define HCLK_HOST2 473
145 #define HCLK_M_CRYPTO 476
146 #define HCLK_S_CRYPTO 477
147 #define HCLK_PERI 478
149 /* soft-reset indices */
150 #define SRST_CORE0_PO 0
151 #define SRST_CORE1_PO 1
152 #define SRST_CORE2_PO 2
153 #define SRST_CORE3_PO 3
158 #define SRST_CORE0_DBG 8
159 #define SRST_CORE1_DBG 9
160 #define SRST_CORE2_DBG 10
161 #define SRST_CORE3_DBG 11
162 #define SRST_TOPDBG 12
163 #define SRST_ACLK_CORE 13
167 #define SRST_CPUSYS_H 18
168 #define SRST_BUSSYS_H 19
169 #define SRST_SPDIF 20
170 #define SRST_INTMEM 21
172 #define SRST_OTG_ADP 23
176 #define SRST_ACODEC_P 27
177 #define SRST_DFIMON 28
179 #define SRST_EFUSE1024 30
180 #define SRST_EFUSE256 31
182 #define SRST_GPIO0 32
183 #define SRST_GPIO1 33
184 #define SRST_GPIO2 34
185 #define SRST_GPIO3 35
186 #define SRST_PERIPH_NOC_A 36
187 #define SRST_PERIPH_NOC_BUS_H 37
188 #define SRST_PERIPH_NOC_P 38
189 #define SRST_UART0 39
190 #define SRST_UART1 40
191 #define SRST_UART2 41
192 #define SRST_PHYNOC 42
199 #define SRST_A53_GIC 49
201 #define SRST_DAP_NOC 52
202 #define SRST_CRYPTO 53
206 #define SRST_PERIPH_NOC_H 58
207 #define SRST_MACPHY 63
210 #define SRST_NANDC 68
211 #define SRST_USBOTG 69
213 #define SRST_USBHOST0 71
214 #define SRST_HOST_CTRL0 72
215 #define SRST_USBHOST1 73
216 #define SRST_HOST_CTRL1 74
217 #define SRST_USBHOST2 75
218 #define SRST_HOST_CTRL2 76
219 #define SRST_USBPOR0 77
220 #define SRST_USBPOR1 78
221 #define SRST_DDRMSCH 79
223 #define SRST_SMART_CARD 80
224 #define SRST_SDMMC 81
228 #define SRST_TSP_H 85
230 #define SRST_TSADC 87
231 #define SRST_DDRPHY 88
232 #define SRST_DDRPHY_P 89
233 #define SRST_DDRCTRL 90
234 #define SRST_DDRCTRL_P 91
235 #define SRST_HOST0_ECHI 92
236 #define SRST_HOST1_ECHI 93
237 #define SRST_HOST2_ECHI 94
238 #define SRST_VOP_NOC_A 95
240 #define SRST_HDMI_P 96
241 #define SRST_VIO_ARBI_H 97
242 #define SRST_IEP_NOC_A 98
243 #define SRST_VIO_NOC_H 99
244 #define SRST_VOP_A 100
245 #define SRST_VOP_H 101
246 #define SRST_VOP_D 102
247 #define SRST_UTMI0 103
248 #define SRST_UTMI1 104
249 #define SRST_UTMI2 105
250 #define SRST_UTMI3 106
252 #define SRST_RGA_NOC_A 108
253 #define SRST_RGA_A 109
254 #define SRST_RGA_H 110
255 #define SRST_HDCP_A 111
257 #define SRST_VPU_A 112
258 #define SRST_VPU_H 113
259 #define SRST_VPU_NOC_A 116
260 #define SRST_VPU_NOC_H 117
261 #define SRST_RKVDEC_A 118
262 #define SRST_RKVDEC_NOC_A 119
263 #define SRST_RKVDEC_H 120
264 #define SRST_RKVDEC_NOC_H 121
265 #define SRST_RKVDEC_CORE 122
266 #define SRST_RKVDEC_CABAC 123
267 #define SRST_IEP_A 124
268 #define SRST_IEP_H 125
269 #define SRST_GPU_A 126
270 #define SRST_GPU_NOC_A 127
272 #define SRST_CORE_DBG 128
273 #define SRST_DBG_P 129
274 #define SRST_TIMER0 130
275 #define SRST_TIMER1 131
276 #define SRST_TIMER2 132
277 #define SRST_TIMER3 133
278 #define SRST_TIMER4 134
279 #define SRST_TIMER5 135
280 #define SRST_VIO_H2P 136
281 #define SRST_HDMIPHY 139
282 #define SRST_VDAC 140
283 #define SRST_TIMER_6CH_P 141