1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
6 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3368_H
7 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3368_H
19 /* sclk gates (special clocks) */
20 #define SCLK_GPU_CORE 64
28 #define SCLK_SARADC 73
29 #define SCLK_NANDC0 75
35 #define SCLK_I2S_8CH 82
36 #define SCLK_SPDIF_8CH 83
37 #define SCLK_I2S_2CH 84
38 #define SCLK_TIMER00 85
39 #define SCLK_TIMER01 86
40 #define SCLK_TIMER02 87
41 #define SCLK_TIMER03 88
42 #define SCLK_TIMER04 89
43 #define SCLK_TIMER05 90
44 #define SCLK_OTGPHY0 93
45 #define SCLK_OTG_ADP 96
46 #define SCLK_HSICPHY480M 97
47 #define SCLK_HSICPHY12M 98
48 #define SCLK_MACREF 99
49 #define SCLK_VOP0_PWM 100
50 #define SCLK_MAC_RX 102
51 #define SCLK_MAC_TX 103
52 #define SCLK_EDP_24M 104
57 #define SCLK_HDMI_HDCP 109
58 #define SCLK_HDMI_CEC 110
59 #define SCLK_HEVC_CABAC 111
60 #define SCLK_HEVC_CORE 112
61 #define SCLK_I2S_8CH_OUT 113
62 #define SCLK_SDMMC_DRV 114
63 #define SCLK_SDIO0_DRV 115
64 #define SCLK_EMMC_DRV 117
65 #define SCLK_SDMMC_SAMPLE 118
66 #define SCLK_SDIO0_SAMPLE 119
67 #define SCLK_EMMC_SAMPLE 121
68 #define SCLK_USBPHY480M 122
69 #define SCLK_PVTM_CORE 123
70 #define SCLK_PVTM_GPU 124
71 #define SCLK_PVTM_PMU 125
74 #define SCLK_MACREF_OUT 128
75 #define SCLK_TIMER10 133
76 #define SCLK_TIMER11 134
77 #define SCLK_TIMER12 135
78 #define SCLK_TIMER13 136
79 #define SCLK_TIMER14 137
80 #define SCLK_TIMER15 138
83 #define MCLK_CRYPTO 191
86 #define ACLK_GPU_MEM 192
87 #define ACLK_GPU_CFG 193
88 #define ACLK_DMAC_BUS 194
89 #define ACLK_DMAC_PERI 195
90 #define ACLK_PERI_MMU 196
93 #define ACLK_VOP_IEP 199
97 #define ACLK_VIO0_NOC 203
100 #define ACLK_VIO1_NOC 206
101 #define ACLK_VIDEO 208
103 #define ACLK_PERI 210
106 #define PCLK_GPIO0 320
107 #define PCLK_GPIO1 321
108 #define PCLK_GPIO2 322
109 #define PCLK_GPIO3 323
110 #define PCLK_PMUGRF 324
111 #define PCLK_MAILBOX 325
113 #define PCLK_SGRF 330
115 #define PCLK_I2C0 332
116 #define PCLK_I2C1 333
117 #define PCLK_I2C2 334
118 #define PCLK_I2C3 335
119 #define PCLK_I2C4 336
120 #define PCLK_I2C5 337
121 #define PCLK_SPI0 338
122 #define PCLK_SPI1 339
123 #define PCLK_SPI2 340
124 #define PCLK_UART0 341
125 #define PCLK_UART1 342
126 #define PCLK_UART2 343
127 #define PCLK_UART3 344
128 #define PCLK_UART4 345
129 #define PCLK_TSADC 346
130 #define PCLK_SARADC 347
132 #define PCLK_GMAC 349
133 #define PCLK_PWM0 350
134 #define PCLK_PWM1 351
135 #define PCLK_TIMER0 353
136 #define PCLK_TIMER1 354
137 #define PCLK_EDP_CTRL 355
138 #define PCLK_MIPI_DSI0 356
139 #define PCLK_MIPI_CSI 358
140 #define PCLK_HDCP 359
141 #define PCLK_HDMI_CTRL 360
142 #define PCLK_VIO_H2P 361
144 #define PCLK_PERI 363
145 #define PCLK_DDRUPCTL 364
146 #define PCLK_DDRPHY 365
150 #define PCLK_EFUSE256 369
154 #define HCLK_OTG0 449
155 #define HCLK_HOST0 450
156 #define HCLK_HOST1 451
157 #define HCLK_HSIC 452
158 #define HCLK_NANDC0 453
160 #define HCLK_SDMMC 456
161 #define HCLK_SDIO0 457
162 #define HCLK_EMMC 459
163 #define HCLK_HSADC 460
164 #define HCLK_CRYPTO 461
165 #define HCLK_I2S_2CH 462
166 #define HCLK_I2S_8CH 463
167 #define HCLK_SPDIF 464
173 #define HCLK_VIO_AHB_ARBI 471
174 #define HCLK_VIO_NOC 472
176 #define HCLK_VIO_H2P 474
177 #define HCLK_VIO_HDCPMMU 475
178 #define HCLK_VIDEO 476
180 #define HCLK_PERI 478
182 #define CLK_NR_CLKS (HCLK_PERI + 1)
184 /* soft-reset indices */
185 #define SRST_CORE_B0 0
186 #define SRST_CORE_B1 1
187 #define SRST_CORE_B2 2
188 #define SRST_CORE_B3 3
189 #define SRST_CORE_B0_PO 4
190 #define SRST_CORE_B1_PO 5
191 #define SRST_CORE_B2_PO 6
192 #define SRST_CORE_B3_PO 7
195 #define SRST_PD_CORE_B_NIU 10
196 #define SRST_PDBUS_STRSYS 11
197 #define SRST_SOCDBG_B 14
198 #define SRST_CORE_B_DBG 15
200 #define SRST_DMAC1 18
201 #define SRST_INTMEM 19
203 #define SRST_SPDIF8CH 21
204 #define SRST_I2S8CH 23
205 #define SRST_MAILBOX 24
206 #define SRST_I2S2CH 25
207 #define SRST_EFUSE_256 26
208 #define SRST_MCU_SYS 28
209 #define SRST_MCU_PO 29
210 #define SRST_MCU_NOC 30
211 #define SRST_EFUSE 31
213 #define SRST_GPIO0 32
214 #define SRST_GPIO1 33
215 #define SRST_GPIO2 34
216 #define SRST_GPIO3 35
217 #define SRST_GPIO4 36
218 #define SRST_PMUGRF 41
226 #define SRST_DWPWM 48
227 #define SRST_MMC_PERI 49
228 #define SRST_PERIPH_MMU 50
231 #define SRST_PERIPH_AXI 57
232 #define SRST_PERIPH_AHB 58
233 #define SRST_PERIPH_APB 59
234 #define SRST_PERIPH_NIU 60
235 #define SRST_PDPERI_AHB_ARBI 61
237 #define SRST_USB_PERI 63
239 #define SRST_DMAC2 64
242 #define SRST_RKPWM 69
243 #define SRST_USBHOST0 72
245 #define SRST_HSIC_AUX 74
246 #define SRST_HSIC_PHY 75
247 #define SRST_HSADC 76
248 #define SRST_NANDC0 77
254 #define SRST_SARADC 87
255 #define SRST_PDALIVE_NIU 88
256 #define SRST_PDPMU_INTMEM 89
257 #define SRST_PDPMU_NIU 90
260 #define SRST_VIO_ARBI 96
261 #define SRST_RGA_NIU 97
262 #define SRST_VIO0_NIU_AXI 98
263 #define SRST_VIO_NIU_AHB 99
264 #define SRST_LCDC0_AXI 100
265 #define SRST_LCDC0_AHB 101
266 #define SRST_LCDC0_DCLK 102
268 #define SRST_RGA_CORE 105
269 #define SRST_IEP_AXI 106
270 #define SRST_IEP_AHB 107
271 #define SRST_RGA_AXI 108
272 #define SRST_RGA_AHB 109
274 #define SRST_EDP_24M 111
276 #define SRST_VIDEO_AXI 112
277 #define SRST_VIDEO_AHB 113
278 #define SRST_MIPIDPHYTX 114
279 #define SRST_MIPIDSI0 115
280 #define SRST_MIPIDPHYRX 116
281 #define SRST_MIPICSI 117
283 #define SRST_HDMI 121
285 #define SRST_PMU_PVTM 123
286 #define SRST_CORE_PVTM 124
287 #define SRST_GPU_PVTM 125
288 #define SRST_GPU_SYS 126
289 #define SRST_GPU_MEM_NIU 127
291 #define SRST_MMC0 128
292 #define SRST_SDIO0 129
293 #define SRST_EMMC 131
294 #define SRST_USBOTG_AHB 132
295 #define SRST_USBOTG_PHY 133
296 #define SRST_USBOTG_CON 134
297 #define SRST_USBHOST0_AHB 135
298 #define SRST_USBHOST0_PHY 136
299 #define SRST_USBHOST0_CON 137
300 #define SRST_USBOTG_UTMI 138
301 #define SRST_USBHOST1_UTMI 139
302 #define SRST_USB_ADP 141
304 #define SRST_CORESIGHT 144
305 #define SRST_PD_CORE_AHB_NOC 145
306 #define SRST_PD_CORE_APB_NOC 146
308 #define SRST_LCDC_PWM0 149
309 #define SRST_RGA_H2P_BRG 153
310 #define SRST_VIDEO 154
311 #define SRST_GPU_CFG_NIU 157
312 #define SRST_TSADC 159
314 #define SRST_DDRPHY0 160
315 #define SRST_DDRPHY0_APB 161
316 #define SRST_DDRCTRL0 162
317 #define SRST_DDRCTRL0_APB 163
318 #define SRST_VIDEO_NIU 165
319 #define SRST_VIDEO_NIU_AHB 167
320 #define SRST_DDRMSCH0 170
321 #define SRST_PDBUS_AHB 173
322 #define SRST_CRYPTO 174
324 #define SRST_UART0 179
325 #define SRST_UART1 180
326 #define SRST_UART2 181
327 #define SRST_UART3 182
328 #define SRST_UART4 183
329 #define SRST_SIMC 186
331 #define SRST_TSP_CLKIN0 189
333 #define SRST_CORE_L0 192
334 #define SRST_CORE_L1 193
335 #define SRST_CORE_L2 194
336 #define SRST_CORE_L3 195
337 #define SRST_CORE_L0_PO 195
338 #define SRST_CORE_L1_PO 197
339 #define SRST_CORE_L2_PO 198
340 #define SRST_CORE_L3_PO 199
341 #define SRST_L2_L 200
342 #define SRST_ADB_L 201
343 #define SRST_PD_CORE_L_NIU 202
344 #define SRST_CCI_SYS 203
345 #define SRST_CCI_DDR 204
347 #define SRST_SOCDBG_L 206
348 #define SRST_CORE_L_DBG 207
350 #define SRST_CORE_B0_NC 208
351 #define SRST_CORE_B0_PO_NC 209
352 #define SRST_L2_B_NC 210
353 #define SRST_ADB_B_NC 211
354 #define SRST_PD_CORE_B_NIU_NC 212
355 #define SRST_PDBUS_STRSYS_NC 213
356 #define SRST_CORE_L0_NC 214
357 #define SRST_CORE_L0_PO_NC 215
358 #define SRST_L2_L_NC 216
359 #define SRST_ADB_L_NC 217
360 #define SRST_PD_CORE_L_NIU_NC 218
361 #define SRST_CCI_SYS_NC 219
362 #define SRST_CCI_DDR_NC 220
363 #define SRST_CCI_NC 221
364 #define SRST_TRACE_NC 222
366 #define SRST_TIMER00 224
367 #define SRST_TIMER01 225
368 #define SRST_TIMER02 226
369 #define SRST_TIMER03 227
370 #define SRST_TIMER04 228
371 #define SRST_TIMER05 229
372 #define SRST_TIMER10 230
373 #define SRST_TIMER11 231
374 #define SRST_TIMER12 232
375 #define SRST_TIMER13 233
376 #define SRST_TIMER14 234
377 #define SRST_TIMER15 235
378 #define SRST_TIMER0_APB 236
379 #define SRST_TIMER1_APB 237