2 * Copyright (c) 2015 Rockchip Electronics Co. Ltd.
3 * Author: Jeffy Chen <jeffy.chen@rock-chips.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3228_H
17 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3228_H
26 /* sclk gates (special clocks) */
40 #define SCLK_TIMER0 85
41 #define SCLK_TIMER1 86
42 #define SCLK_TIMER2 87
43 #define SCLK_TIMER3 88
44 #define SCLK_TIMER4 89
45 #define SCLK_TIMER5 90
46 #define SCLK_I2S_OUT 113
47 #define SCLK_SDMMC_DRV 114
48 #define SCLK_SDIO_DRV 115
49 #define SCLK_EMMC_DRV 117
50 #define SCLK_SDMMC_SAMPLE 118
51 #define SCLK_SDIO_SAMPLE 119
52 #define SCLK_EMMC_SAMPLE 121
54 #define SCLK_HDMI_HDCP 123
58 #define DCLK_HDMI_PHY 191
66 #define PCLK_GPIO0 320
67 #define PCLK_GPIO1 321
68 #define PCLK_GPIO2 322
69 #define PCLK_GPIO3 323
76 #define PCLK_UART0 341
77 #define PCLK_UART1 342
78 #define PCLK_UART2 343
79 #define PCLK_TSADC 344
81 #define PCLK_TIMER 353
83 #define PCLK_HDMI_CTRL 364
84 #define PCLK_HDMI_PHY 365
88 #define HCLK_NANDC 453
89 #define HCLK_SDMMC 456
94 #define CLK_NR_CLKS (HCLK_PERI + 1)
96 /* soft-reset indices */
97 #define SRST_CORE0_PO 0
98 #define SRST_CORE1_PO 1
99 #define SRST_CORE2_PO 2
100 #define SRST_CORE3_PO 3
105 #define SRST_CORE0_DBG 8
106 #define SRST_CORE1_DBG 9
107 #define SRST_CORE2_DBG 10
108 #define SRST_CORE3_DBG 11
109 #define SRST_TOPDBG 12
110 #define SRST_ACLK_CORE 13
114 #define SRST_CPUSYS_H 18
115 #define SRST_BUSSYS_H 19
116 #define SRST_SPDIF 20
117 #define SRST_INTMEM 21
119 #define SRST_OTG_ADP 23
123 #define SRST_ACODEC_P 27
124 #define SRST_DFIMON 28
126 #define SRST_EFUSE1024 30
127 #define SRST_EFUSE256 31
129 #define SRST_GPIO0 32
130 #define SRST_GPIO1 33
131 #define SRST_GPIO2 34
132 #define SRST_GPIO3 35
133 #define SRST_PERIPH_NOC_A 36
134 #define SRST_PERIPH_NOC_BUS_H 37
135 #define SRST_PERIPH_NOC_P 38
136 #define SRST_UART0 39
137 #define SRST_UART1 40
138 #define SRST_UART2 41
139 #define SRST_PHYNOC 42
146 #define SRST_A53_GIC 49
148 #define SRST_DAP_NOC 52
149 #define SRST_CRYPTO 53
153 #define SRST_PERIPH_NOC_H 58
154 #define SRST_MACPHY 63
157 #define SRST_NANDC 68
158 #define SRST_USBOTG 69
160 #define SRST_USBHOST0 71
161 #define SRST_HOST_CTRL0 72
162 #define SRST_USBHOST1 73
163 #define SRST_HOST_CTRL1 74
164 #define SRST_USBHOST2 75
165 #define SRST_HOST_CTRL2 76
166 #define SRST_USBPOR0 77
167 #define SRST_USBPOR1 78
168 #define SRST_DDRMSCH 79
170 #define SRST_SMART_CARD 80
171 #define SRST_SDMMC 81
175 #define SRST_TSP_H 85
177 #define SRST_TSADC 87
178 #define SRST_DDRPHY 88
179 #define SRST_DDRPHY_P 89
180 #define SRST_DDRCTRL 90
181 #define SRST_DDRCTRL_P 91
182 #define SRST_HOST0_ECHI 92
183 #define SRST_HOST1_ECHI 93
184 #define SRST_HOST2_ECHI 94
185 #define SRST_VOP_NOC_A 95
187 #define SRST_HDMI_P 96
188 #define SRST_VIO_ARBI_H 97
189 #define SRST_IEP_NOC_A 98
190 #define SRST_VIO_NOC_H 99
191 #define SRST_VOP_A 100
192 #define SRST_VOP_H 101
193 #define SRST_VOP_D 102
194 #define SRST_UTMI0 103
195 #define SRST_UTMI1 104
196 #define SRST_UTMI2 105
197 #define SRST_UTMI3 106
199 #define SRST_RGA_NOC_A 108
200 #define SRST_RGA_A 109
201 #define SRST_RGA_H 110
202 #define SRST_HDCP_A 111
204 #define SRST_VPU_A 112
205 #define SRST_VPU_H 113
206 #define SRST_VPU_NOC_A 116
207 #define SRST_VPU_NOC_H 117
208 #define SRST_RKVDEC_A 118
209 #define SRST_RKVDEC_NOC_A 119
210 #define SRST_RKVDEC_H 120
211 #define SRST_RKVDEC_NOC_H 121
212 #define SRST_RKVDEC_CORE 122
213 #define SRST_RKVDEC_CABAC 123
214 #define SRST_IEP_A 124
215 #define SRST_IEP_H 125
216 #define SRST_GPU_A 126
217 #define SRST_GPU_NOC_A 127
219 #define SRST_CORE_DBG 128
220 #define SRST_DBG_P 129
221 #define SRST_TIMER0 130
222 #define SRST_TIMER1 131
223 #define SRST_TIMER2 132
224 #define SRST_TIMER3 133
225 #define SRST_TIMER4 134
226 #define SRST_TIMER5 135
227 #define SRST_VIO_H2P 136
228 #define SRST_HDMIPHY 139
229 #define SRST_VDAC 140
230 #define SRST_TIMER_6CH_P 141