xref: /linux/include/dt-bindings/clock/rockchip,rv1126-cru.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*bc35a430SJagan Teki /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2*bc35a430SJagan Teki /*
3*bc35a430SJagan Teki  * Copyright (c) 2019 Rockchip Electronics Co. Ltd.
4*bc35a430SJagan Teki  * Author: Finley Xiao <finley.xiao@rock-chips.com>
5*bc35a430SJagan Teki  */
6*bc35a430SJagan Teki 
7*bc35a430SJagan Teki #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RV1126_H
8*bc35a430SJagan Teki #define _DT_BINDINGS_CLK_ROCKCHIP_RV1126_H
9*bc35a430SJagan Teki 
10*bc35a430SJagan Teki /* pmucru-clocks indices */
11*bc35a430SJagan Teki 
12*bc35a430SJagan Teki /* pll clocks */
13*bc35a430SJagan Teki #define PLL_GPLL		1
14*bc35a430SJagan Teki 
15*bc35a430SJagan Teki /* sclk (special clocks) */
16*bc35a430SJagan Teki #define CLK_OSC0_DIV32K		2
17*bc35a430SJagan Teki #define CLK_RTC32K		3
18*bc35a430SJagan Teki #define CLK_WIFI_DIV		4
19*bc35a430SJagan Teki #define CLK_WIFI_OSC0		5
20*bc35a430SJagan Teki #define CLK_WIFI		6
21*bc35a430SJagan Teki #define CLK_PMU			7
22*bc35a430SJagan Teki #define SCLK_UART1_DIV		8
23*bc35a430SJagan Teki #define SCLK_UART1_FRACDIV	9
24*bc35a430SJagan Teki #define SCLK_UART1_MUX		10
25*bc35a430SJagan Teki #define SCLK_UART1		11
26*bc35a430SJagan Teki #define CLK_I2C0		12
27*bc35a430SJagan Teki #define CLK_I2C2		13
28*bc35a430SJagan Teki #define CLK_CAPTURE_PWM0	14
29*bc35a430SJagan Teki #define CLK_PWM0		15
30*bc35a430SJagan Teki #define CLK_CAPTURE_PWM1	16
31*bc35a430SJagan Teki #define CLK_PWM1		17
32*bc35a430SJagan Teki #define CLK_SPI0		18
33*bc35a430SJagan Teki #define DBCLK_GPIO0		19
34*bc35a430SJagan Teki #define CLK_PMUPVTM		20
35*bc35a430SJagan Teki #define CLK_CORE_PMUPVTM	21
36*bc35a430SJagan Teki #define CLK_REF12M		22
37*bc35a430SJagan Teki #define CLK_USBPHY_OTG_REF	23
38*bc35a430SJagan Teki #define CLK_USBPHY_HOST_REF	24
39*bc35a430SJagan Teki #define CLK_REF24M		25
40*bc35a430SJagan Teki #define CLK_MIPIDSIPHY_REF	26
41*bc35a430SJagan Teki 
42*bc35a430SJagan Teki /* pclk */
43*bc35a430SJagan Teki #define PCLK_PDPMU		30
44*bc35a430SJagan Teki #define PCLK_PMU		31
45*bc35a430SJagan Teki #define PCLK_UART1		32
46*bc35a430SJagan Teki #define PCLK_I2C0		33
47*bc35a430SJagan Teki #define PCLK_I2C2		34
48*bc35a430SJagan Teki #define PCLK_PWM0		35
49*bc35a430SJagan Teki #define PCLK_PWM1		36
50*bc35a430SJagan Teki #define PCLK_SPI0		37
51*bc35a430SJagan Teki #define PCLK_GPIO0		38
52*bc35a430SJagan Teki #define PCLK_PMUSGRF		39
53*bc35a430SJagan Teki #define PCLK_PMUGRF		40
54*bc35a430SJagan Teki #define PCLK_PMUCRU		41
55*bc35a430SJagan Teki #define PCLK_CHIPVEROTP		42
56*bc35a430SJagan Teki #define PCLK_PDPMU_NIU		43
57*bc35a430SJagan Teki #define PCLK_PMUPVTM		44
58*bc35a430SJagan Teki #define PCLK_SCRKEYGEN		45
59*bc35a430SJagan Teki 
60*bc35a430SJagan Teki #define CLKPMU_NR_CLKS		(PCLK_SCRKEYGEN + 1)
61*bc35a430SJagan Teki 
62*bc35a430SJagan Teki /* cru-clocks indices */
63*bc35a430SJagan Teki 
64*bc35a430SJagan Teki /* pll clocks */
65*bc35a430SJagan Teki #define PLL_APLL		1
66*bc35a430SJagan Teki #define PLL_DPLL		2
67*bc35a430SJagan Teki #define PLL_CPLL		3
68*bc35a430SJagan Teki #define PLL_HPLL		4
69*bc35a430SJagan Teki 
70*bc35a430SJagan Teki /* sclk (special clocks) */
71*bc35a430SJagan Teki #define ARMCLK			5
72*bc35a430SJagan Teki #define USB480M			6
73*bc35a430SJagan Teki #define CLK_CORE_CPUPVTM	7
74*bc35a430SJagan Teki #define CLK_CPUPVTM		8
75*bc35a430SJagan Teki #define CLK_SCR1		9
76*bc35a430SJagan Teki #define CLK_SCR1_CORE		10
77*bc35a430SJagan Teki #define CLK_SCR1_RTC		11
78*bc35a430SJagan Teki #define CLK_SCR1_JTAG		12
79*bc35a430SJagan Teki #define SCLK_UART0_DIV		13
80*bc35a430SJagan Teki #define SCLK_UART0_FRAC		14
81*bc35a430SJagan Teki #define SCLK_UART0_MUX		15
82*bc35a430SJagan Teki #define SCLK_UART0		16
83*bc35a430SJagan Teki #define SCLK_UART2_DIV		17
84*bc35a430SJagan Teki #define SCLK_UART2_FRAC		18
85*bc35a430SJagan Teki #define SCLK_UART2_MUX		19
86*bc35a430SJagan Teki #define SCLK_UART2		20
87*bc35a430SJagan Teki #define SCLK_UART3_DIV		21
88*bc35a430SJagan Teki #define SCLK_UART3_FRAC		22
89*bc35a430SJagan Teki #define SCLK_UART3_MUX		23
90*bc35a430SJagan Teki #define SCLK_UART3		24
91*bc35a430SJagan Teki #define SCLK_UART4_DIV		25
92*bc35a430SJagan Teki #define SCLK_UART4_FRAC		26
93*bc35a430SJagan Teki #define SCLK_UART4_MUX		27
94*bc35a430SJagan Teki #define SCLK_UART4		28
95*bc35a430SJagan Teki #define SCLK_UART5_DIV		29
96*bc35a430SJagan Teki #define SCLK_UART5_FRAC		30
97*bc35a430SJagan Teki #define SCLK_UART5_MUX		31
98*bc35a430SJagan Teki #define SCLK_UART5		32
99*bc35a430SJagan Teki #define CLK_I2C1		33
100*bc35a430SJagan Teki #define CLK_I2C3		34
101*bc35a430SJagan Teki #define CLK_I2C4		35
102*bc35a430SJagan Teki #define CLK_I2C5		36
103*bc35a430SJagan Teki #define CLK_SPI1		37
104*bc35a430SJagan Teki #define CLK_CAPTURE_PWM2	38
105*bc35a430SJagan Teki #define CLK_PWM2		39
106*bc35a430SJagan Teki #define DBCLK_GPIO1		40
107*bc35a430SJagan Teki #define DBCLK_GPIO2		41
108*bc35a430SJagan Teki #define DBCLK_GPIO3		42
109*bc35a430SJagan Teki #define DBCLK_GPIO4		43
110*bc35a430SJagan Teki #define CLK_SARADC		44
111*bc35a430SJagan Teki #define CLK_TIMER0		45
112*bc35a430SJagan Teki #define CLK_TIMER1		46
113*bc35a430SJagan Teki #define CLK_TIMER2		47
114*bc35a430SJagan Teki #define CLK_TIMER3		48
115*bc35a430SJagan Teki #define CLK_TIMER4		49
116*bc35a430SJagan Teki #define CLK_TIMER5		50
117*bc35a430SJagan Teki #define CLK_CAN			51
118*bc35a430SJagan Teki #define CLK_NPU_TSADC		52
119*bc35a430SJagan Teki #define CLK_NPU_TSADCPHY	53
120*bc35a430SJagan Teki #define CLK_CPU_TSADC		54
121*bc35a430SJagan Teki #define CLK_CPU_TSADCPHY	55
122*bc35a430SJagan Teki #define CLK_CRYPTO_CORE		56
123*bc35a430SJagan Teki #define CLK_CRYPTO_PKA		57
124*bc35a430SJagan Teki #define MCLK_I2S0_TX_DIV	58
125*bc35a430SJagan Teki #define MCLK_I2S0_TX_FRACDIV	59
126*bc35a430SJagan Teki #define MCLK_I2S0_TX_MUX	60
127*bc35a430SJagan Teki #define MCLK_I2S0_TX		61
128*bc35a430SJagan Teki #define MCLK_I2S0_RX_DIV	62
129*bc35a430SJagan Teki #define MCLK_I2S0_RX_FRACDIV	63
130*bc35a430SJagan Teki #define MCLK_I2S0_RX_MUX	64
131*bc35a430SJagan Teki #define MCLK_I2S0_RX		65
132*bc35a430SJagan Teki #define MCLK_I2S0_TX_OUT2IO	66
133*bc35a430SJagan Teki #define MCLK_I2S0_RX_OUT2IO	67
134*bc35a430SJagan Teki #define MCLK_I2S1_DIV		68
135*bc35a430SJagan Teki #define MCLK_I2S1_FRACDIV	69
136*bc35a430SJagan Teki #define MCLK_I2S1_MUX		70
137*bc35a430SJagan Teki #define MCLK_I2S1		71
138*bc35a430SJagan Teki #define MCLK_I2S1_OUT2IO	72
139*bc35a430SJagan Teki #define MCLK_I2S2_DIV		73
140*bc35a430SJagan Teki #define MCLK_I2S2_FRACDIV	74
141*bc35a430SJagan Teki #define MCLK_I2S2_MUX		75
142*bc35a430SJagan Teki #define MCLK_I2S2		76
143*bc35a430SJagan Teki #define MCLK_I2S2_OUT2IO	77
144*bc35a430SJagan Teki #define MCLK_PDM		78
145*bc35a430SJagan Teki #define SCLK_ADUPWM_DIV		79
146*bc35a430SJagan Teki #define SCLK_AUDPWM_FRACDIV	80
147*bc35a430SJagan Teki #define SCLK_AUDPWM_MUX		81
148*bc35a430SJagan Teki #define	SCLK_AUDPWM		82
149*bc35a430SJagan Teki #define CLK_ACDCDIG_ADC		83
150*bc35a430SJagan Teki #define CLK_ACDCDIG_DAC		84
151*bc35a430SJagan Teki #define CLK_ACDCDIG_I2C		85
152*bc35a430SJagan Teki #define CLK_VENC_CORE		86
153*bc35a430SJagan Teki #define CLK_VDEC_CORE		87
154*bc35a430SJagan Teki #define CLK_VDEC_CA		88
155*bc35a430SJagan Teki #define CLK_VDEC_HEVC_CA	89
156*bc35a430SJagan Teki #define CLK_RGA_CORE		90
157*bc35a430SJagan Teki #define CLK_IEP_CORE		91
158*bc35a430SJagan Teki #define CLK_ISP_DIV		92
159*bc35a430SJagan Teki #define CLK_ISP_NP5		93
160*bc35a430SJagan Teki #define CLK_ISP_NUX		94
161*bc35a430SJagan Teki #define CLK_ISP			95
162*bc35a430SJagan Teki #define CLK_CIF_OUT_DIV		96
163*bc35a430SJagan Teki #define CLK_CIF_OUT_FRACDIV	97
164*bc35a430SJagan Teki #define CLK_CIF_OUT_MUX		98
165*bc35a430SJagan Teki #define CLK_CIF_OUT		99
166*bc35a430SJagan Teki #define CLK_MIPICSI_OUT_DIV	100
167*bc35a430SJagan Teki #define CLK_MIPICSI_OUT_FRACDIV	101
168*bc35a430SJagan Teki #define CLK_MIPICSI_OUT_MUX	102
169*bc35a430SJagan Teki #define CLK_MIPICSI_OUT		103
170*bc35a430SJagan Teki #define CLK_ISPP_DIV		104
171*bc35a430SJagan Teki #define CLK_ISPP_NP5		105
172*bc35a430SJagan Teki #define CLK_ISPP_NUX		106
173*bc35a430SJagan Teki #define CLK_ISPP		107
174*bc35a430SJagan Teki #define CLK_SDMMC		108
175*bc35a430SJagan Teki #define SCLK_SDMMC_DRV		109
176*bc35a430SJagan Teki #define SCLK_SDMMC_SAMPLE	110
177*bc35a430SJagan Teki #define CLK_SDIO		111
178*bc35a430SJagan Teki #define SCLK_SDIO_DRV		112
179*bc35a430SJagan Teki #define SCLK_SDIO_SAMPLE	113
180*bc35a430SJagan Teki #define CLK_EMMC		114
181*bc35a430SJagan Teki #define SCLK_EMMC_DRV		115
182*bc35a430SJagan Teki #define SCLK_EMMC_SAMPLE	116
183*bc35a430SJagan Teki #define CLK_NANDC		117
184*bc35a430SJagan Teki #define SCLK_SFC		118
185*bc35a430SJagan Teki #define CLK_USBHOST_UTMI_OHCI	119
186*bc35a430SJagan Teki #define CLK_USBOTG_REF		120
187*bc35a430SJagan Teki #define CLK_GMAC_DIV		121
188*bc35a430SJagan Teki #define CLK_GMAC_RGMII_M0	122
189*bc35a430SJagan Teki #define CLK_GMAC_SRC_M0		123
190*bc35a430SJagan Teki #define CLK_GMAC_RGMII_M1	124
191*bc35a430SJagan Teki #define CLK_GMAC_SRC_M1		125
192*bc35a430SJagan Teki #define CLK_GMAC_SRC		126
193*bc35a430SJagan Teki #define CLK_GMAC_REF		127
194*bc35a430SJagan Teki #define CLK_GMAC_TX_SRC		128
195*bc35a430SJagan Teki #define CLK_GMAC_TX_DIV5	129
196*bc35a430SJagan Teki #define CLK_GMAC_TX_DIV50	130
197*bc35a430SJagan Teki #define RGMII_MODE_CLK		131
198*bc35a430SJagan Teki #define CLK_GMAC_RX_SRC		132
199*bc35a430SJagan Teki #define CLK_GMAC_RX_DIV2	133
200*bc35a430SJagan Teki #define CLK_GMAC_RX_DIV20	134
201*bc35a430SJagan Teki #define RMII_MODE_CLK		135
202*bc35a430SJagan Teki #define CLK_GMAC_TX_RX		136
203*bc35a430SJagan Teki #define CLK_GMAC_PTPREF		137
204*bc35a430SJagan Teki #define CLK_GMAC_ETHERNET_OUT	138
205*bc35a430SJagan Teki #define CLK_DDRPHY		139
206*bc35a430SJagan Teki #define CLK_DDR_MON		140
207*bc35a430SJagan Teki #define TMCLK_DDR_MON		141
208*bc35a430SJagan Teki #define CLK_NPU_DIV		142
209*bc35a430SJagan Teki #define CLK_NPU_NP5		143
210*bc35a430SJagan Teki #define CLK_CORE_NPU		144
211*bc35a430SJagan Teki #define CLK_CORE_NPUPVTM	145
212*bc35a430SJagan Teki #define CLK_NPUPVTM		146
213*bc35a430SJagan Teki #define SCLK_DDRCLK		147
214*bc35a430SJagan Teki #define CLK_OTP			148
215*bc35a430SJagan Teki 
216*bc35a430SJagan Teki /* dclk */
217*bc35a430SJagan Teki #define DCLK_DECOM		150
218*bc35a430SJagan Teki #define DCLK_VOP_DIV		151
219*bc35a430SJagan Teki #define DCLK_VOP_FRACDIV	152
220*bc35a430SJagan Teki #define DCLK_VOP_MUX		153
221*bc35a430SJagan Teki #define DCLK_VOP		154
222*bc35a430SJagan Teki #define DCLK_CIF		155
223*bc35a430SJagan Teki #define DCLK_CIFLITE		156
224*bc35a430SJagan Teki 
225*bc35a430SJagan Teki /* aclk */
226*bc35a430SJagan Teki #define ACLK_PDBUS		160
227*bc35a430SJagan Teki #define ACLK_DMAC		161
228*bc35a430SJagan Teki #define ACLK_DCF		162
229*bc35a430SJagan Teki #define ACLK_SPINLOCK		163
230*bc35a430SJagan Teki #define ACLK_DECOM		164
231*bc35a430SJagan Teki #define ACLK_PDCRYPTO		165
232*bc35a430SJagan Teki #define ACLK_CRYPTO		166
233*bc35a430SJagan Teki #define ACLK_PDVEPU		167
234*bc35a430SJagan Teki #define ACLK_VENC		168
235*bc35a430SJagan Teki #define ACLK_PDVDEC		169
236*bc35a430SJagan Teki #define ACLK_PDJPEG		170
237*bc35a430SJagan Teki #define ACLK_VDEC		171
238*bc35a430SJagan Teki #define ACLK_JPEG		172
239*bc35a430SJagan Teki #define ACLK_PDVO		173
240*bc35a430SJagan Teki #define ACLK_RGA		174
241*bc35a430SJagan Teki #define ACLK_VOP		175
242*bc35a430SJagan Teki #define ACLK_IEP		176
243*bc35a430SJagan Teki #define ACLK_PDVI_DIV		177
244*bc35a430SJagan Teki #define ACLK_PDVI_NP5		178
245*bc35a430SJagan Teki #define ACLK_PDVI		179
246*bc35a430SJagan Teki #define ACLK_ISP		180
247*bc35a430SJagan Teki #define ACLK_CIF		181
248*bc35a430SJagan Teki #define ACLK_CIFLITE		182
249*bc35a430SJagan Teki #define ACLK_PDISPP_DIV		183
250*bc35a430SJagan Teki #define ACLK_PDISPP_NP5		184
251*bc35a430SJagan Teki #define ACLK_PDISPP		185
252*bc35a430SJagan Teki #define ACLK_ISPP		186
253*bc35a430SJagan Teki #define ACLK_PDPHP		187
254*bc35a430SJagan Teki #define ACLK_PDUSB		188
255*bc35a430SJagan Teki #define ACLK_USBOTG		189
256*bc35a430SJagan Teki #define ACLK_PDGMAC		190
257*bc35a430SJagan Teki #define ACLK_GMAC		191
258*bc35a430SJagan Teki #define ACLK_PDNPU_DIV		192
259*bc35a430SJagan Teki #define ACLK_PDNPU_NP5		193
260*bc35a430SJagan Teki #define ACLK_PDNPU		194
261*bc35a430SJagan Teki #define ACLK_NPU		195
262*bc35a430SJagan Teki 
263*bc35a430SJagan Teki /* hclk */
264*bc35a430SJagan Teki #define HCLK_PDCORE_NIU		200
265*bc35a430SJagan Teki #define HCLK_PDUSB		201
266*bc35a430SJagan Teki #define HCLK_PDCRYPTO		202
267*bc35a430SJagan Teki #define HCLK_CRYPTO		203
268*bc35a430SJagan Teki #define HCLK_PDAUDIO		204
269*bc35a430SJagan Teki #define HCLK_I2S0		205
270*bc35a430SJagan Teki #define HCLK_I2S1		206
271*bc35a430SJagan Teki #define HCLK_I2S2		207
272*bc35a430SJagan Teki #define HCLK_PDM		208
273*bc35a430SJagan Teki #define HCLK_AUDPWM		209
274*bc35a430SJagan Teki #define HCLK_PDVEPU		210
275*bc35a430SJagan Teki #define HCLK_VENC		211
276*bc35a430SJagan Teki #define HCLK_PDVDEC		212
277*bc35a430SJagan Teki #define HCLK_PDJPEG		213
278*bc35a430SJagan Teki #define HCLK_VDEC		214
279*bc35a430SJagan Teki #define HCLK_JPEG		215
280*bc35a430SJagan Teki #define HCLK_PDVO		216
281*bc35a430SJagan Teki #define HCLK_RGA		217
282*bc35a430SJagan Teki #define HCLK_VOP		218
283*bc35a430SJagan Teki #define HCLK_IEP		219
284*bc35a430SJagan Teki #define HCLK_PDVI		220
285*bc35a430SJagan Teki #define HCLK_ISP		221
286*bc35a430SJagan Teki #define HCLK_CIF		222
287*bc35a430SJagan Teki #define HCLK_CIFLITE		223
288*bc35a430SJagan Teki #define HCLK_PDISPP		224
289*bc35a430SJagan Teki #define HCLK_ISPP		225
290*bc35a430SJagan Teki #define HCLK_PDPHP		226
291*bc35a430SJagan Teki #define HCLK_PDSDMMC		227
292*bc35a430SJagan Teki #define HCLK_SDMMC		228
293*bc35a430SJagan Teki #define HCLK_PDSDIO		229
294*bc35a430SJagan Teki #define HCLK_SDIO		230
295*bc35a430SJagan Teki #define HCLK_PDNVM		231
296*bc35a430SJagan Teki #define HCLK_EMMC		232
297*bc35a430SJagan Teki #define HCLK_NANDC		233
298*bc35a430SJagan Teki #define HCLK_SFC		234
299*bc35a430SJagan Teki #define HCLK_SFCXIP		235
300*bc35a430SJagan Teki #define HCLK_PDBUS		236
301*bc35a430SJagan Teki #define HCLK_USBHOST		237
302*bc35a430SJagan Teki #define HCLK_USBHOST_ARB	238
303*bc35a430SJagan Teki #define HCLK_PDNPU		239
304*bc35a430SJagan Teki #define HCLK_NPU		240
305*bc35a430SJagan Teki 
306*bc35a430SJagan Teki /* pclk */
307*bc35a430SJagan Teki #define PCLK_CPUPVTM		245
308*bc35a430SJagan Teki #define PCLK_PDBUS		246
309*bc35a430SJagan Teki #define PCLK_DCF		247
310*bc35a430SJagan Teki #define PCLK_WDT		248
311*bc35a430SJagan Teki #define PCLK_MAILBOX		249
312*bc35a430SJagan Teki #define PCLK_UART0		250
313*bc35a430SJagan Teki #define PCLK_UART2		251
314*bc35a430SJagan Teki #define PCLK_UART3		252
315*bc35a430SJagan Teki #define PCLK_UART4		253
316*bc35a430SJagan Teki #define PCLK_UART5		254
317*bc35a430SJagan Teki #define PCLK_I2C1		255
318*bc35a430SJagan Teki #define PCLK_I2C3		256
319*bc35a430SJagan Teki #define PCLK_I2C4		257
320*bc35a430SJagan Teki #define PCLK_I2C5		258
321*bc35a430SJagan Teki #define PCLK_SPI1		259
322*bc35a430SJagan Teki #define PCLK_PWM2		261
323*bc35a430SJagan Teki #define PCLK_GPIO1		262
324*bc35a430SJagan Teki #define PCLK_GPIO2		263
325*bc35a430SJagan Teki #define PCLK_GPIO3		264
326*bc35a430SJagan Teki #define PCLK_GPIO4		265
327*bc35a430SJagan Teki #define PCLK_SARADC		266
328*bc35a430SJagan Teki #define PCLK_TIMER		267
329*bc35a430SJagan Teki #define PCLK_DECOM		268
330*bc35a430SJagan Teki #define PCLK_CAN		269
331*bc35a430SJagan Teki #define PCLK_NPU_TSADC		270
332*bc35a430SJagan Teki #define PCLK_CPU_TSADC		271
333*bc35a430SJagan Teki #define PCLK_ACDCDIG		272
334*bc35a430SJagan Teki #define PCLK_PDVO		273
335*bc35a430SJagan Teki #define PCLK_DSIHOST		274
336*bc35a430SJagan Teki #define PCLK_PDVI		275
337*bc35a430SJagan Teki #define PCLK_CSIHOST		276
338*bc35a430SJagan Teki #define PCLK_PDGMAC		277
339*bc35a430SJagan Teki #define PCLK_GMAC		278
340*bc35a430SJagan Teki #define PCLK_PDDDR		279
341*bc35a430SJagan Teki #define PCLK_DDR_MON		280
342*bc35a430SJagan Teki #define PCLK_PDNPU		281
343*bc35a430SJagan Teki #define PCLK_NPUPVTM		282
344*bc35a430SJagan Teki #define PCLK_PDTOP		283
345*bc35a430SJagan Teki #define PCLK_TOPCRU		284
346*bc35a430SJagan Teki #define PCLK_TOPGRF		285
347*bc35a430SJagan Teki #define PCLK_CPUEMADET		286
348*bc35a430SJagan Teki #define PCLK_DDRPHY		287
349*bc35a430SJagan Teki #define PCLK_DSIPHY		289
350*bc35a430SJagan Teki #define PCLK_CSIPHY0		290
351*bc35a430SJagan Teki #define PCLK_CSIPHY1		291
352*bc35a430SJagan Teki #define PCLK_USBPHY_HOST	292
353*bc35a430SJagan Teki #define PCLK_USBPHY_OTG		293
354*bc35a430SJagan Teki #define PCLK_OTP		294
355*bc35a430SJagan Teki 
356*bc35a430SJagan Teki #define CLK_NR_CLKS		(PCLK_OTP + 1)
357*bc35a430SJagan Teki 
358*bc35a430SJagan Teki /* pmu soft-reset indices */
359*bc35a430SJagan Teki 
360*bc35a430SJagan Teki /* pmu_cru_softrst_con0 */
361*bc35a430SJagan Teki #define SRST_PDPMU_NIU_P	0
362*bc35a430SJagan Teki #define SRST_PMU_SGRF_P		1
363*bc35a430SJagan Teki #define SRST_PMU_SGRF_REMAP_P	2
364*bc35a430SJagan Teki #define SRST_I2C0_P		3
365*bc35a430SJagan Teki #define SRST_I2C0		4
366*bc35a430SJagan Teki #define SRST_I2C2_P		7
367*bc35a430SJagan Teki #define SRST_I2C2		8
368*bc35a430SJagan Teki #define SRST_UART1_P		9
369*bc35a430SJagan Teki #define SRST_UART1		10
370*bc35a430SJagan Teki #define SRST_PWM0_P		11
371*bc35a430SJagan Teki #define SRST_PWM0		12
372*bc35a430SJagan Teki #define SRST_PWM1_P		13
373*bc35a430SJagan Teki #define SRST_PWM1		14
374*bc35a430SJagan Teki #define SRST_DDR_FAIL_SAFE	15
375*bc35a430SJagan Teki 
376*bc35a430SJagan Teki /* pmu_cru_softrst_con1 */
377*bc35a430SJagan Teki #define SRST_GPIO0_P		17
378*bc35a430SJagan Teki #define SRST_GPIO0_DB		18
379*bc35a430SJagan Teki #define SRST_SPI0_P		19
380*bc35a430SJagan Teki #define SRST_SPI0		20
381*bc35a430SJagan Teki #define SRST_PMUGRF_P		21
382*bc35a430SJagan Teki #define SRST_CHIPVEROTP_P	22
383*bc35a430SJagan Teki #define SRST_PMUPVTM		24
384*bc35a430SJagan Teki #define SRST_PMUPVTM_P		25
385*bc35a430SJagan Teki #define SRST_PMUCRU_P		30
386*bc35a430SJagan Teki 
387*bc35a430SJagan Teki /* soft-reset indices */
388*bc35a430SJagan Teki 
389*bc35a430SJagan Teki /* cru_softrst_con0 */
390*bc35a430SJagan Teki #define SRST_CORE0_PO		0
391*bc35a430SJagan Teki #define SRST_CORE1_PO		1
392*bc35a430SJagan Teki #define SRST_CORE2_PO		2
393*bc35a430SJagan Teki #define SRST_CORE3_PO		3
394*bc35a430SJagan Teki #define SRST_CORE0		4
395*bc35a430SJagan Teki #define SRST_CORE1		5
396*bc35a430SJagan Teki #define SRST_CORE2		6
397*bc35a430SJagan Teki #define SRST_CORE3		7
398*bc35a430SJagan Teki #define SRST_CORE0_DBG		8
399*bc35a430SJagan Teki #define SRST_CORE1_DBG		9
400*bc35a430SJagan Teki #define SRST_CORE2_DBG		10
401*bc35a430SJagan Teki #define SRST_CORE3_DBG		11
402*bc35a430SJagan Teki #define SRST_NL2		12
403*bc35a430SJagan Teki #define SRST_CORE_NIU_A		13
404*bc35a430SJagan Teki #define SRST_DBG_DAPLITE_P	14
405*bc35a430SJagan Teki #define SRST_DAPLITE_P		15
406*bc35a430SJagan Teki 
407*bc35a430SJagan Teki /* cru_softrst_con1 */
408*bc35a430SJagan Teki #define SRST_PDBUS_NIU1_A	16
409*bc35a430SJagan Teki #define SRST_PDBUS_NIU1_H	17
410*bc35a430SJagan Teki #define SRST_PDBUS_NIU1_P	18
411*bc35a430SJagan Teki #define SRST_PDBUS_NIU2_A	19
412*bc35a430SJagan Teki #define SRST_PDBUS_NIU2_H	20
413*bc35a430SJagan Teki #define SRST_PDBUS_NIU3_A	21
414*bc35a430SJagan Teki #define SRST_PDBUS_NIU3_H	22
415*bc35a430SJagan Teki #define SRST_PDBUS_HOLD_NIU1_A	23
416*bc35a430SJagan Teki #define SRST_DBG_NIU_P		24
417*bc35a430SJagan Teki #define SRST_PDCORE_NIIU_H	25
418*bc35a430SJagan Teki #define SRST_MUC_NIU		26
419*bc35a430SJagan Teki #define SRST_DCF_A		29
420*bc35a430SJagan Teki #define SRST_DCF_P		30
421*bc35a430SJagan Teki #define SRST_SYSTEM_SRAM_A	31
422*bc35a430SJagan Teki 
423*bc35a430SJagan Teki /* cru_softrst_con2 */
424*bc35a430SJagan Teki #define SRST_I2C1_P		32
425*bc35a430SJagan Teki #define SRST_I2C1		33
426*bc35a430SJagan Teki #define SRST_I2C3_P		34
427*bc35a430SJagan Teki #define SRST_I2C3		35
428*bc35a430SJagan Teki #define SRST_I2C4_P		36
429*bc35a430SJagan Teki #define SRST_I2C4		37
430*bc35a430SJagan Teki #define SRST_I2C5_P		38
431*bc35a430SJagan Teki #define SRST_I2C5		39
432*bc35a430SJagan Teki #define SRST_SPI1_P		40
433*bc35a430SJagan Teki #define SRST_SPI1		41
434*bc35a430SJagan Teki #define SRST_MCU_CORE		42
435*bc35a430SJagan Teki #define SRST_PWM2_P		44
436*bc35a430SJagan Teki #define SRST_PWM2		45
437*bc35a430SJagan Teki #define SRST_SPINLOCK_A		46
438*bc35a430SJagan Teki 
439*bc35a430SJagan Teki /* cru_softrst_con3 */
440*bc35a430SJagan Teki #define SRST_UART0_P		48
441*bc35a430SJagan Teki #define SRST_UART0		49
442*bc35a430SJagan Teki #define SRST_UART2_P		50
443*bc35a430SJagan Teki #define SRST_UART2		51
444*bc35a430SJagan Teki #define SRST_UART3_P		52
445*bc35a430SJagan Teki #define SRST_UART3		53
446*bc35a430SJagan Teki #define SRST_UART4_P		54
447*bc35a430SJagan Teki #define SRST_UART4		55
448*bc35a430SJagan Teki #define SRST_UART5_P		56
449*bc35a430SJagan Teki #define SRST_UART5		57
450*bc35a430SJagan Teki #define SRST_WDT_P		58
451*bc35a430SJagan Teki #define SRST_SARADC_P		59
452*bc35a430SJagan Teki #define SRST_GRF_P		61
453*bc35a430SJagan Teki #define SRST_TIMER_P		62
454*bc35a430SJagan Teki #define SRST_MAILBOX_P		63
455*bc35a430SJagan Teki 
456*bc35a430SJagan Teki /* cru_softrst_con4 */
457*bc35a430SJagan Teki #define SRST_TIMER0		64
458*bc35a430SJagan Teki #define SRST_TIMER1		65
459*bc35a430SJagan Teki #define SRST_TIMER2		66
460*bc35a430SJagan Teki #define SRST_TIMER3		67
461*bc35a430SJagan Teki #define SRST_TIMER4		68
462*bc35a430SJagan Teki #define SRST_TIMER5		69
463*bc35a430SJagan Teki #define SRST_INTMUX_P		70
464*bc35a430SJagan Teki #define SRST_GPIO1_P		72
465*bc35a430SJagan Teki #define SRST_GPIO1_DB		73
466*bc35a430SJagan Teki #define SRST_GPIO2_P		74
467*bc35a430SJagan Teki #define SRST_GPIO2_DB		75
468*bc35a430SJagan Teki #define SRST_GPIO3_P		76
469*bc35a430SJagan Teki #define SRST_GPIO3_DB		77
470*bc35a430SJagan Teki #define SRST_GPIO4_P		78
471*bc35a430SJagan Teki #define SRST_GPIO4_DB		79
472*bc35a430SJagan Teki 
473*bc35a430SJagan Teki /* cru_softrst_con5 */
474*bc35a430SJagan Teki #define SRST_CAN_P		80
475*bc35a430SJagan Teki #define SRST_CAN		81
476*bc35a430SJagan Teki #define SRST_DECOM_A		85
477*bc35a430SJagan Teki #define SRST_DECOM_P		86
478*bc35a430SJagan Teki #define SRST_DECOM_D		87
479*bc35a430SJagan Teki #define SRST_PDCRYPTO_NIU_A	88
480*bc35a430SJagan Teki #define SRST_PDCRYPTO_NIU_H	89
481*bc35a430SJagan Teki #define SRST_CRYPTO_A		90
482*bc35a430SJagan Teki #define SRST_CRYPTO_H		91
483*bc35a430SJagan Teki #define SRST_CRYPTO_CORE	92
484*bc35a430SJagan Teki #define SRST_CRYPTO_PKA		93
485*bc35a430SJagan Teki #define SRST_SGRF_P		95
486*bc35a430SJagan Teki 
487*bc35a430SJagan Teki /* cru_softrst_con6 */
488*bc35a430SJagan Teki #define SRST_PDAUDIO_NIU_H	96
489*bc35a430SJagan Teki #define SRST_PDAUDIO_NIU_P	97
490*bc35a430SJagan Teki #define SRST_I2S0_H		98
491*bc35a430SJagan Teki #define SRST_I2S0_TX_M		99
492*bc35a430SJagan Teki #define SRST_I2S0_RX_M		100
493*bc35a430SJagan Teki #define SRST_I2S1_H		101
494*bc35a430SJagan Teki #define SRST_I2S1_M		102
495*bc35a430SJagan Teki #define SRST_I2S2_H		103
496*bc35a430SJagan Teki #define SRST_I2S2_M		104
497*bc35a430SJagan Teki #define SRST_PDM_H		105
498*bc35a430SJagan Teki #define SRST_PDM_M		106
499*bc35a430SJagan Teki #define SRST_AUDPWM_H		107
500*bc35a430SJagan Teki #define SRST_AUDPWM		108
501*bc35a430SJagan Teki #define SRST_ACDCDIG_P		109
502*bc35a430SJagan Teki #define SRST_ACDCDIG		110
503*bc35a430SJagan Teki 
504*bc35a430SJagan Teki /* cru_softrst_con7 */
505*bc35a430SJagan Teki #define SRST_PDVEPU_NIU_A	112
506*bc35a430SJagan Teki #define SRST_PDVEPU_NIU_H	113
507*bc35a430SJagan Teki #define SRST_VENC_A		114
508*bc35a430SJagan Teki #define SRST_VENC_H		115
509*bc35a430SJagan Teki #define SRST_VENC_CORE		116
510*bc35a430SJagan Teki #define SRST_PDVDEC_NIU_A	117
511*bc35a430SJagan Teki #define SRST_PDVDEC_NIU_H	118
512*bc35a430SJagan Teki #define SRST_VDEC_A		119
513*bc35a430SJagan Teki #define SRST_VDEC_H		120
514*bc35a430SJagan Teki #define SRST_VDEC_CORE		121
515*bc35a430SJagan Teki #define SRST_VDEC_CA		122
516*bc35a430SJagan Teki #define SRST_VDEC_HEVC_CA	123
517*bc35a430SJagan Teki #define SRST_PDJPEG_NIU_A	124
518*bc35a430SJagan Teki #define SRST_PDJPEG_NIU_H	125
519*bc35a430SJagan Teki #define SRST_JPEG_A		126
520*bc35a430SJagan Teki #define SRST_JPEG_H		127
521*bc35a430SJagan Teki 
522*bc35a430SJagan Teki /* cru_softrst_con8 */
523*bc35a430SJagan Teki #define SRST_PDVO_NIU_A		128
524*bc35a430SJagan Teki #define SRST_PDVO_NIU_H		129
525*bc35a430SJagan Teki #define SRST_PDVO_NIU_P		130
526*bc35a430SJagan Teki #define SRST_RGA_A		131
527*bc35a430SJagan Teki #define SRST_RGA_H		132
528*bc35a430SJagan Teki #define SRST_RGA_CORE		133
529*bc35a430SJagan Teki #define SRST_VOP_A		134
530*bc35a430SJagan Teki #define SRST_VOP_H		135
531*bc35a430SJagan Teki #define SRST_VOP_D		136
532*bc35a430SJagan Teki #define SRST_TXBYTEHS_DSIHOST	137
533*bc35a430SJagan Teki #define SRST_DSIHOST_P		138
534*bc35a430SJagan Teki #define SRST_IEP_A		139
535*bc35a430SJagan Teki #define SRST_IEP_H		140
536*bc35a430SJagan Teki #define SRST_IEP_CORE		141
537*bc35a430SJagan Teki #define SRST_ISP_RX_P		142
538*bc35a430SJagan Teki 
539*bc35a430SJagan Teki /* cru_softrst_con9 */
540*bc35a430SJagan Teki #define SRST_PDVI_NIU_A		144
541*bc35a430SJagan Teki #define SRST_PDVI_NIU_H		145
542*bc35a430SJagan Teki #define SRST_PDVI_NIU_P		146
543*bc35a430SJagan Teki #define SRST_ISP		147
544*bc35a430SJagan Teki #define SRST_CIF_A		148
545*bc35a430SJagan Teki #define SRST_CIF_H		149
546*bc35a430SJagan Teki #define SRST_CIF_D		150
547*bc35a430SJagan Teki #define SRST_CIF_P		151
548*bc35a430SJagan Teki #define SRST_CIF_I		152
549*bc35a430SJagan Teki #define SRST_CIF_RX_P		153
550*bc35a430SJagan Teki #define SRST_PDISPP_NIU_A	154
551*bc35a430SJagan Teki #define SRST_PDISPP_NIU_H	155
552*bc35a430SJagan Teki #define SRST_ISPP_A		156
553*bc35a430SJagan Teki #define SRST_ISPP_H		157
554*bc35a430SJagan Teki #define SRST_ISPP		158
555*bc35a430SJagan Teki #define SRST_CSIHOST_P		159
556*bc35a430SJagan Teki 
557*bc35a430SJagan Teki /* cru_softrst_con10 */
558*bc35a430SJagan Teki #define SRST_PDPHPMID_NIU_A	160
559*bc35a430SJagan Teki #define SRST_PDPHPMID_NIU_H	161
560*bc35a430SJagan Teki #define SRST_PDNVM_NIU_H	163
561*bc35a430SJagan Teki #define SRST_SDMMC_H		164
562*bc35a430SJagan Teki #define SRST_SDIO_H		165
563*bc35a430SJagan Teki #define SRST_EMMC_H		166
564*bc35a430SJagan Teki #define SRST_SFC_H		167
565*bc35a430SJagan Teki #define SRST_SFCXIP_H		168
566*bc35a430SJagan Teki #define SRST_SFC		169
567*bc35a430SJagan Teki #define SRST_NANDC_H		170
568*bc35a430SJagan Teki #define SRST_NANDC		171
569*bc35a430SJagan Teki #define SRST_PDSDMMC_H		173
570*bc35a430SJagan Teki #define SRST_PDSDIO_H		174
571*bc35a430SJagan Teki 
572*bc35a430SJagan Teki /* cru_softrst_con11 */
573*bc35a430SJagan Teki #define SRST_PDUSB_NIU_A	176
574*bc35a430SJagan Teki #define SRST_PDUSB_NIU_H	177
575*bc35a430SJagan Teki #define SRST_USBHOST_H		178
576*bc35a430SJagan Teki #define SRST_USBHOST_ARB_H	179
577*bc35a430SJagan Teki #define SRST_USBHOST_UTMI	180
578*bc35a430SJagan Teki #define SRST_USBOTG_A		181
579*bc35a430SJagan Teki #define SRST_USBPHY_OTG_P	182
580*bc35a430SJagan Teki #define SRST_USBPHY_HOST_P	183
581*bc35a430SJagan Teki #define SRST_USBPHYPOR_OTG	184
582*bc35a430SJagan Teki #define SRST_USBPHYPOR_HOST	185
583*bc35a430SJagan Teki #define SRST_PDGMAC_NIU_A	188
584*bc35a430SJagan Teki #define SRST_PDGMAC_NIU_P	189
585*bc35a430SJagan Teki #define SRST_GMAC_A		190
586*bc35a430SJagan Teki 
587*bc35a430SJagan Teki /* cru_softrst_con12 */
588*bc35a430SJagan Teki #define SRST_DDR_DFICTL_P	193
589*bc35a430SJagan Teki #define SRST_DDR_MON_P		194
590*bc35a430SJagan Teki #define SRST_DDR_STANDBY_P	195
591*bc35a430SJagan Teki #define SRST_DDR_GRF_P		196
592*bc35a430SJagan Teki #define SRST_DDR_MSCH_P		197
593*bc35a430SJagan Teki #define SRST_DDR_SPLIT_A	198
594*bc35a430SJagan Teki #define SRST_DDR_MSCH		199
595*bc35a430SJagan Teki #define SRST_DDR_DFICTL		202
596*bc35a430SJagan Teki #define SRST_DDR_STANDBY	203
597*bc35a430SJagan Teki #define SRST_NPUMCU_NIU		205
598*bc35a430SJagan Teki #define SRST_DDRPHY_P		206
599*bc35a430SJagan Teki #define SRST_DDRPHY		207
600*bc35a430SJagan Teki 
601*bc35a430SJagan Teki /* cru_softrst_con13 */
602*bc35a430SJagan Teki #define SRST_PDNPU_NIU_A	208
603*bc35a430SJagan Teki #define SRST_PDNPU_NIU_H	209
604*bc35a430SJagan Teki #define SRST_PDNPU_NIU_P	210
605*bc35a430SJagan Teki #define SRST_NPU_A		211
606*bc35a430SJagan Teki #define SRST_NPU_H		212
607*bc35a430SJagan Teki #define SRST_NPU		213
608*bc35a430SJagan Teki #define SRST_NPUPVTM_P		214
609*bc35a430SJagan Teki #define SRST_NPUPVTM		215
610*bc35a430SJagan Teki #define SRST_NPU_TSADC_P	216
611*bc35a430SJagan Teki #define SRST_NPU_TSADC		217
612*bc35a430SJagan Teki #define SRST_NPU_TSADCPHY	218
613*bc35a430SJagan Teki #define SRST_CIFLITE_A		220
614*bc35a430SJagan Teki #define SRST_CIFLITE_H		221
615*bc35a430SJagan Teki #define SRST_CIFLITE_D		222
616*bc35a430SJagan Teki #define SRST_CIFLITE_RX_P	223
617*bc35a430SJagan Teki 
618*bc35a430SJagan Teki /* cru_softrst_con14 */
619*bc35a430SJagan Teki #define SRST_TOPNIU_P		224
620*bc35a430SJagan Teki #define SRST_TOPCRU_P		225
621*bc35a430SJagan Teki #define SRST_TOPGRF_P		226
622*bc35a430SJagan Teki #define SRST_CPUEMADET_P	227
623*bc35a430SJagan Teki #define SRST_CSIPHY0_P		228
624*bc35a430SJagan Teki #define SRST_CSIPHY1_P		229
625*bc35a430SJagan Teki #define SRST_DSIPHY_P		230
626*bc35a430SJagan Teki #define SRST_CPU_TSADC_P	232
627*bc35a430SJagan Teki #define SRST_CPU_TSADC		233
628*bc35a430SJagan Teki #define SRST_CPU_TSADCPHY	234
629*bc35a430SJagan Teki #define SRST_CPUPVTM_P		235
630*bc35a430SJagan Teki #define SRST_CPUPVTM		236
631*bc35a430SJagan Teki 
632*bc35a430SJagan Teki #endif
633