1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2015 Rockchip Electronics Co. Ltd.
4 * Author: Xing Zheng <zhengxing@rock-chips.com>
7 #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H
8 #define _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H
16 /* sclk gates (special clocks) */
28 #define SCLK_TIMER0 85
29 #define SCLK_TIMER1 86
30 #define SCLK_TIMER2 87
31 #define SCLK_TIMER3 88
32 #define SCLK_OTGPHY0 93
36 #define SCLK_I2S_OUT 113
37 #define SCLK_SDMMC_DRV 114
38 #define SCLK_SDIO_DRV 115
39 #define SCLK_EMMC_DRV 117
40 #define SCLK_SDMMC_SAMPLE 118
41 #define SCLK_SDIO_SAMPLE 119
42 #define SCLK_EMMC_SAMPLE 121
43 #define SCLK_PVTM_CORE 123
44 #define SCLK_PVTM_GPU 124
45 #define SCLK_PVTM_VIDEO 125
47 #define SCLK_MACREF 152
48 #define SCLK_MACPLL 153
52 #define ACLK_DMAC2 194
55 #define ACLK_VCODEC 208
60 #define PCLK_GPIO0 320
61 #define PCLK_GPIO1 321
62 #define PCLK_GPIO2 322
68 #define PCLK_UART0 341
69 #define PCLK_UART1 342
70 #define PCLK_UART2 343
72 #define PCLK_TIMER 353
76 #define PCLK_DDRUPCTL 364
78 #define PCLK_ACODEC 369
83 #define HCLK_NANDC 453
84 #define HCLK_SDMMC 456
91 #define HCLK_VIO_BUS 472
92 #define HCLK_VCODEC 476
96 #define CLK_NR_CLKS (HCLK_PERI + 1)
98 /* soft-reset indices */
101 #define SRST_CORE0_DBG 4
102 #define SRST_CORE1_DBG 5
103 #define SRST_CORE0_POR 8
104 #define SRST_CORE1_POR 9
106 #define SRST_TOPDBG 13
107 #define SRST_STRC_SYS_A 14
108 #define SRST_PD_CORE_NIU 15
110 #define SRST_TIMER2 16
111 #define SRST_CPUSYS_H 17
112 #define SRST_AHB2APB_H 19
113 #define SRST_TIMER3 20
114 #define SRST_INTMEM 21
116 #define SRST_PERI_NIU 23
118 #define SRST_DDR_PLL 25
119 #define SRST_GPU_DLL 26
120 #define SRST_TIMER0 27
121 #define SRST_TIMER1 28
122 #define SRST_CORE_DLL 29
123 #define SRST_EFUSE_P 30
124 #define SRST_ACODEC_P 31
126 #define SRST_GPIO0 32
127 #define SRST_GPIO1 33
128 #define SRST_GPIO2 34
129 #define SRST_UART0 39
130 #define SRST_UART1 40
131 #define SRST_UART2 41
139 #define SRST_DAP_SYS 52
141 #define SRST_PERIPHSYS_A 57
142 #define SRST_PERIPHSYS_H 58
143 #define SRST_PERIPHSYS_P 59
144 #define SRST_CPU_PERI 61
145 #define SRST_EMEM_PERI 62
146 #define SRST_USB_PERI 63
150 #define SRST_NANDC 68
151 #define SRST_USBOTG0 69
152 #define SRST_OTGC0 71
153 #define SRST_USBOTG1 72
154 #define SRST_OTGC1 74
155 #define SRST_DDRMSCH 79
162 #define SRST_DDRPHY 88
163 #define SRST_DDRPHY_P 89
164 #define SRST_DDRCTRL 90
165 #define SRST_DDRCTRL_P 91
167 #define SRST_HDMI_P 96
168 #define SRST_VIO_BUS_H 99
169 #define SRST_UTMI0 103
170 #define SRST_UTMI1 104
171 #define SRST_USBPOR 105
173 #define SRST_VCODEC_A 112
174 #define SRST_VCODEC_H 113
175 #define SRST_VIO1_A 114
176 #define SRST_HEVC 115
177 #define SRST_VCODEC_NIU_A 116
178 #define SRST_LCDC1_A 117
179 #define SRST_LCDC1_H 118
180 #define SRST_LCDC1_D 119
182 #define SRST_GPU_NIU_A 122
184 #define SRST_DBG_P 131