1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2014 MundoReader S.L.
4 * Author: Heiko Stuebner <heiko@sntech.de>
7 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H
8 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H
10 /* core clocks from */
19 /* sclk gates (special clocks) */
27 #define SCLK_SARADC 71
37 #define SCLK_OTGPHY0 81
38 #define SCLK_OTGPHY1 82
40 #define SCLK_TIMER0 84
41 #define SCLK_TIMER1 85
42 #define SCLK_TIMER2 86
43 #define SCLK_TIMER3 87
44 #define SCLK_TIMER4 88
45 #define SCLK_TIMER5 89
46 #define SCLK_TIMER6 90
51 #define DCLK_LCDC0 190
52 #define DCLK_LCDC1 191
58 #define ACLK_LCDC0 195
59 #define ACLK_LCDC1 196
74 #define PCLK_TIMER0 322
75 #define PCLK_TIMER1 323
76 #define PCLK_TIMER2 324
77 #define PCLK_TIMER3 325
78 #define PCLK_PWM01 326
79 #define PCLK_PWM23 327
82 #define PCLK_SARADC 330
84 #define PCLK_UART0 332
85 #define PCLK_UART1 333
86 #define PCLK_UART2 334
87 #define PCLK_UART3 335
93 #define PCLK_GPIO0 341
94 #define PCLK_GPIO1 342
95 #define PCLK_GPIO2 343
96 #define PCLK_GPIO3 344
97 #define PCLK_GPIO4 345
98 #define PCLK_GPIO6 346
99 #define PCLK_EFUSE 347
100 #define PCLK_TZPC 348
101 #define PCLK_TSADC 349
103 #define PCLK_PERI 351
104 #define PCLK_DDRUPCTL 352
105 #define PCLK_PUBL 353
108 #define HCLK_SDMMC 448
109 #define HCLK_SDIO 449
110 #define HCLK_EMMC 450
111 #define HCLK_OTG0 451
112 #define HCLK_EMAC 452
113 #define HCLK_SPDIF 453
114 #define HCLK_I2S0 454
115 #define HCLK_I2S1 455
116 #define HCLK_I2S2 456
117 #define HCLK_OTG1 457
118 #define HCLK_HSIC 458
119 #define HCLK_HSADC 459
120 #define HCLK_PIDF 460
121 #define HCLK_LCDC0 461
122 #define HCLK_LCDC1 462
124 #define HCLK_CIF0 464
127 #define HCLK_NANDC0 467
129 #define HCLK_PERI 469
130 #define HCLK_CIF1 470
131 #define HCLK_VEPU 471
132 #define HCLK_VDPU 472
133 #define HCLK_HDMI 473
135 /* soft-reset indices */
139 #define SRST_MCORE_DBG 7
140 #define SRST_CORE0_DBG 8
141 #define SRST_CORE1_DBG 9
142 #define SRST_CORE0_WDT 12
143 #define SRST_CORE1_WDT 13
144 #define SRST_STRC_SYS 14
147 #define SRST_CPU_AHB 17
148 #define SRST_AHB2APB 19
150 #define SRST_INTMEM 21
152 #define SRST_SPDIF 26
153 #define SRST_TIMER0 27
154 #define SRST_TIMER1 28
155 #define SRST_EFUSE 30
157 #define SRST_GPIO0 32
158 #define SRST_GPIO1 33
159 #define SRST_GPIO2 34
160 #define SRST_GPIO3 35
162 #define SRST_UART0 39
163 #define SRST_UART1 40
164 #define SRST_UART2 41
165 #define SRST_UART3 42
174 #define SRST_DAP_PO 50
176 #define SRST_DAP_SYS 52
177 #define SRST_TPIU_ATB 53
178 #define SRST_PMU_APB 54
181 #define SRST_PERI_AXI 57
182 #define SRST_PERI_AHB 58
183 #define SRST_PERI_APB 59
184 #define SRST_PERI_NIU 60
185 #define SRST_CPU_PERI 61
186 #define SRST_EMEM_PERI 62
187 #define SRST_USB_PERI 63
192 #define SRST_NANC0 68
193 #define SRST_USBOTG0 69
194 #define SRST_USBPHY0 70
195 #define SRST_OTGC0 71
196 #define SRST_USBOTG1 72
197 #define SRST_USBPHY1 73
198 #define SRST_OTGC1 74
199 #define SRST_HSADC 76
200 #define SRST_PIDFILTER 77
201 #define SRST_DDR_MSCH 79
204 #define SRST_SDMMC 81
210 #define SRST_SARADC 87
211 #define SRST_DDRPHY 88
212 #define SRST_DDRPHY_APB 89
213 #define SRST_DDRCTL 90
214 #define SRST_DDRCTL_APB 91
215 #define SRST_DDRPUB 93
217 #define SRST_VIO0_AXI 98
218 #define SRST_VIO0_AHB 99
219 #define SRST_LCDC0_AXI 100
220 #define SRST_LCDC0_AHB 101
221 #define SRST_LCDC0_DCLK 102
222 #define SRST_LCDC1_AXI 103
223 #define SRST_LCDC1_AHB 104
224 #define SRST_LCDC1_DCLK 105
225 #define SRST_IPP_AXI 106
226 #define SRST_IPP_AHB 107
227 #define SRST_RGA_AXI 108
228 #define SRST_RGA_AHB 109
229 #define SRST_CIF0 110
231 #define SRST_VCODEC_AXI 112
232 #define SRST_VCODEC_AHB 113
233 #define SRST_VIO1_AXI 114
234 #define SRST_VCODEC_CPU 115
235 #define SRST_VCODEC_NIU 116
237 #define SRST_GPU_NIU 122
238 #define SRST_TFUN_ATB 125
239 #define SRST_TFUN_APB 126
240 #define SRST_CTI4_APB 127
242 #define SRST_TPIU_APB 128
243 #define SRST_TRACE 129
244 #define SRST_CORE_DBG 130
245 #define SRST_DBG_APB 131
246 #define SRST_CTI0 132
247 #define SRST_CTI0_APB 133
248 #define SRST_CTI1 134
249 #define SRST_CTI1_APB 135
250 #define SRST_PTM_CORE0 136
251 #define SRST_PTM_CORE1 137
252 #define SRST_PTM0 138
253 #define SRST_PTM0_ATB 139
254 #define SRST_PTM1 140
255 #define SRST_PTM1_ATB 141