xref: /linux/include/dt-bindings/reset/rockchip,rk3576-cru.h (revision 0c436dfe5c25d0931b164b944165259f95e5281f)
1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /*
3  * Copyright (c) 2023 Rockchip Electronics Co. Ltd.
4  * Copyright (c) 2024 Collabora Ltd.
5  *
6  * Author: Elaine Zhang <zhangqing@rock-chips.com>
7  * Author: Detlev Casanova <detlev.casanova@collabora.com>
8  */
9 
10 #ifndef _DT_BINDINGS_RESET_ROCKCHIP_RK3576_H
11 #define _DT_BINDINGS_RESET_ROCKCHIP_RK3576_H
12 
13 #define SRST_A_TOP_BIU			0
14 #define SRST_P_TOP_BIU			1
15 #define SRST_A_TOP_MID_BIU		2
16 #define SRST_A_SECURE_HIGH_BIU		3
17 #define SRST_H_TOP_BIU			4
18 
19 #define SRST_H_VO0VOP_CHANNEL_BIU	5
20 #define SRST_A_VO0VOP_CHANNEL_BIU	6
21 
22 #define SRST_BISRINTF			7
23 
24 #define SRST_H_AUDIO_BIU		8
25 #define SRST_H_ASRC_2CH_0		9
26 #define SRST_H_ASRC_2CH_1		10
27 #define SRST_H_ASRC_4CH_0		11
28 #define SRST_H_ASRC_4CH_1		12
29 #define SRST_ASRC_2CH_0			13
30 #define SRST_ASRC_2CH_1			14
31 #define SRST_ASRC_4CH_0			15
32 #define SRST_ASRC_4CH_1			16
33 #define SRST_M_SAI0_8CH			17
34 #define SRST_H_SAI0_8CH			18
35 #define SRST_H_SPDIF_RX0		19
36 #define SRST_M_SPDIF_RX0		20
37 
38 #define SRST_H_SPDIF_RX1		21
39 #define SRST_M_SPDIF_RX1		22
40 #define SRST_M_SAI1_8CH			23
41 #define SRST_H_SAI1_8CH			24
42 #define SRST_M_SAI2_2CH			25
43 #define SRST_H_SAI2_2CH			26
44 #define SRST_M_SAI3_2CH			27
45 #define SRST_H_SAI3_2CH			28
46 
47 #define SRST_M_SAI4_2CH			29
48 #define SRST_H_SAI4_2CH			30
49 #define SRST_H_ACDCDIG_DSM		31
50 #define SRST_M_ACDCDIG_DSM		32
51 #define SRST_PDM1			33
52 #define SRST_H_PDM1			34
53 #define SRST_M_PDM1			35
54 #define SRST_H_SPDIF_TX0		36
55 #define SRST_M_SPDIF_TX0		37
56 #define SRST_H_SPDIF_TX1		38
57 #define SRST_M_SPDIF_TX1		39
58 
59 #define SRST_A_BUS_BIU			40
60 #define SRST_P_BUS_BIU			41
61 #define SRST_P_CRU			42
62 #define SRST_H_CAN0			43
63 #define SRST_CAN0			44
64 #define SRST_H_CAN1			45
65 #define SRST_CAN1			46
66 #define SRST_P_INTMUX2BUS		47
67 #define SRST_P_VCCIO_IOC		48
68 #define SRST_H_BUS_BIU			49
69 #define SRST_KEY_SHIFT			50
70 
71 #define SRST_P_I2C1			51
72 #define SRST_P_I2C2			52
73 #define SRST_P_I2C3			53
74 #define SRST_P_I2C4			54
75 #define SRST_P_I2C5			55
76 #define SRST_P_I2C6			56
77 #define SRST_P_I2C7			57
78 #define SRST_P_I2C8			58
79 #define SRST_P_I2C9			59
80 #define SRST_P_WDT_BUSMCU		60
81 #define SRST_T_WDT_BUSMCU		61
82 #define SRST_A_GIC			62
83 #define SRST_I2C1			63
84 #define SRST_I2C2			64
85 #define SRST_I2C3			65
86 #define SRST_I2C4			66
87 
88 #define SRST_I2C5			67
89 #define SRST_I2C6			68
90 #define SRST_I2C7			69
91 #define SRST_I2C8			70
92 #define SRST_I2C9			71
93 #define SRST_P_SARADC			72
94 #define SRST_SARADC			73
95 #define SRST_P_TSADC			74
96 #define SRST_TSADC			75
97 #define SRST_P_UART0			76
98 #define SRST_P_UART2			77
99 #define SRST_P_UART3			78
100 #define SRST_P_UART4			79
101 #define SRST_P_UART5			80
102 #define SRST_P_UART6			81
103 
104 #define SRST_P_UART7			82
105 #define SRST_P_UART8			83
106 #define SRST_P_UART9			84
107 #define SRST_P_UART10			85
108 #define SRST_P_UART11			86
109 #define SRST_S_UART0			87
110 #define SRST_S_UART2			88
111 #define SRST_S_UART3			89
112 #define SRST_S_UART4			90
113 #define SRST_S_UART5			91
114 
115 #define SRST_S_UART6			92
116 #define SRST_S_UART7			93
117 #define SRST_S_UART8			94
118 #define SRST_S_UART9			95
119 #define SRST_S_UART10			96
120 #define SRST_S_UART11			97
121 #define SRST_P_SPI0			98
122 #define SRST_P_SPI1			99
123 #define SRST_P_SPI2			100
124 
125 #define SRST_P_SPI3			101
126 #define SRST_P_SPI4			102
127 #define SRST_SPI0			103
128 #define SRST_SPI1			104
129 #define SRST_SPI2			105
130 #define SRST_SPI3			106
131 #define SRST_SPI4			107
132 #define SRST_P_WDT0			108
133 #define SRST_T_WDT0			109
134 #define SRST_P_SYS_GRF			110
135 #define SRST_P_PWM1			111
136 #define SRST_PWM1			112
137 
138 #define SRST_P_BUSTIMER0		113
139 #define SRST_P_BUSTIMER1		114
140 #define SRST_TIMER0			115
141 #define SRST_TIMER1			116
142 #define SRST_TIMER2			117
143 #define SRST_TIMER3			118
144 #define SRST_TIMER4			119
145 #define SRST_TIMER5			120
146 #define SRST_P_BUSIOC			121
147 #define SRST_P_MAILBOX0			122
148 #define SRST_P_GPIO1			123
149 
150 #define SRST_GPIO1			124
151 #define SRST_P_GPIO2			125
152 #define SRST_GPIO2			126
153 #define SRST_P_GPIO3			127
154 #define SRST_GPIO3			128
155 #define SRST_P_GPIO4			129
156 #define SRST_GPIO4			130
157 #define SRST_A_DECOM			131
158 #define SRST_P_DECOM			132
159 #define SRST_D_DECOM			133
160 #define SRST_TIMER6			134
161 #define SRST_TIMER7			135
162 #define SRST_TIMER8			136
163 #define SRST_TIMER9			137
164 #define SRST_TIMER10			138
165 
166 #define SRST_TIMER11			139
167 #define SRST_A_DMAC0			140
168 #define SRST_A_DMAC1			141
169 #define SRST_A_DMAC2			142
170 #define SRST_A_SPINLOCK			143
171 #define SRST_REF_PVTPLL_BUS		144
172 #define SRST_H_I3C0			145
173 #define SRST_H_I3C1			146
174 #define SRST_H_BUS_CM0_BIU		147
175 #define SRST_F_BUS_CM0_CORE		148
176 #define SRST_T_BUS_CM0_JTAG		149
177 
178 #define SRST_P_INTMUX2PMU		150
179 #define SRST_P_INTMUX2DDR		151
180 #define SRST_P_PVTPLL_BUS		152
181 #define SRST_P_PWM2			153
182 #define SRST_PWM2			154
183 #define SRST_FREQ_PWM1			155
184 #define SRST_COUNTER_PWM1		156
185 #define SRST_I3C0			157
186 #define SRST_I3C1			158
187 
188 #define SRST_P_DDR_MON_CH0		159
189 #define SRST_P_DDR_BIU			160
190 #define SRST_P_DDR_UPCTL_CH0		161
191 #define SRST_TM_DDR_MON_CH0		162
192 #define SRST_A_DDR_BIU			163
193 #define SRST_DFI_CH0			164
194 #define SRST_DDR_MON_CH0		165
195 #define SRST_P_DDR_HWLP_CH0		166
196 #define SRST_P_DDR_MON_CH1		167
197 #define SRST_P_DDR_HWLP_CH1		168
198 
199 #define SRST_P_DDR_UPCTL_CH1		169
200 #define SRST_TM_DDR_MON_CH1		170
201 #define SRST_DFI_CH1			171
202 #define SRST_A_DDR01_MSCH0		172
203 #define SRST_A_DDR01_MSCH1		173
204 #define SRST_DDR_MON_CH1		174
205 #define SRST_DDR_SCRAMBLE_CH0		175
206 #define SRST_DDR_SCRAMBLE_CH1		176
207 #define SRST_P_AHB2APB			177
208 #define SRST_H_AHB2APB			178
209 #define SRST_H_DDR_BIU			179
210 #define SRST_F_DDR_CM0_CORE		180
211 
212 #define SRST_P_DDR01_MSCH0		181
213 #define SRST_P_DDR01_MSCH1		182
214 #define SRST_DDR_TIMER0			183
215 #define SRST_DDR_TIMER1			184
216 #define SRST_T_WDT_DDR			185
217 #define SRST_P_WDT			186
218 #define SRST_P_TIMER			187
219 #define SRST_T_DDR_CM0_JTAG		188
220 #define SRST_P_DDR_GRF			189
221 
222 #define SRST_DDR_UPCTL_CH0		190
223 #define SRST_A_DDR_UPCTL_0_CH0		191
224 #define SRST_A_DDR_UPCTL_1_CH0		192
225 #define SRST_A_DDR_UPCTL_2_CH0		193
226 #define SRST_A_DDR_UPCTL_3_CH0		194
227 #define SRST_A_DDR_UPCTL_4_CH0		195
228 
229 #define SRST_DDR_UPCTL_CH1		196
230 #define SRST_A_DDR_UPCTL_0_CH1		197
231 #define SRST_A_DDR_UPCTL_1_CH1		198
232 #define SRST_A_DDR_UPCTL_2_CH1		199
233 #define SRST_A_DDR_UPCTL_3_CH1		200
234 #define SRST_A_DDR_UPCTL_4_CH1		201
235 
236 #define SRST_REF_PVTPLL_DDR		202
237 #define SRST_P_PVTPLL_DDR		203
238 
239 #define SRST_A_RKNN0			204
240 #define SRST_A_RKNN0_BIU		205
241 #define SRST_L_RKNN0_BIU		206
242 
243 #define SRST_A_RKNN1			207
244 #define SRST_A_RKNN1_BIU		208
245 #define SRST_L_RKNN1_BIU		209
246 
247 #define SRST_NPU_DAP			210
248 #define SRST_L_NPUSUBSYS_BIU		211
249 #define SRST_P_NPUTOP_BIU		212
250 #define SRST_P_NPU_TIMER		213
251 #define SRST_NPUTIMER0			214
252 #define SRST_NPUTIMER1			215
253 #define SRST_P_NPU_WDT			216
254 #define SRST_T_NPU_WDT			217
255 
256 #define SRST_A_RKNN_CBUF		218
257 #define SRST_A_RVCORE0			219
258 #define SRST_P_NPU_GRF			220
259 #define SRST_P_PVTPLL_NPU		221
260 #define SRST_NPU_PVTPLL			222
261 #define SRST_H_NPU_CM0_BIU		223
262 #define SRST_F_NPU_CM0_CORE		224
263 #define SRST_T_NPU_CM0_JTAG		225
264 #define SRST_A_RKNNTOP_BIU		226
265 #define SRST_H_RKNN_CBUF		227
266 #define SRST_H_RKNNTOP_BIU		228
267 
268 #define SRST_H_NVM_BIU			229
269 #define SRST_A_NVM_BIU			230
270 #define SRST_S_FSPI			231
271 #define SRST_H_FSPI			232
272 #define SRST_C_EMMC			233
273 #define SRST_H_EMMC			234
274 #define SRST_A_EMMC			235
275 #define SRST_B_EMMC			236
276 #define SRST_T_EMMC			237
277 
278 #define SRST_P_GRF			238
279 #define SRST_P_PHP_BIU			239
280 #define SRST_A_PHP_BIU			240
281 #define SRST_P_PCIE0			241
282 #define SRST_PCIE0_POWER_UP		242
283 
284 #define SRST_A_USB3OTG1			243
285 #define SRST_A_MMU0			244
286 #define SRST_A_SLV_MMU0			245
287 #define SRST_A_MMU1			246
288 
289 #define SRST_A_SLV_MMU1			247
290 #define SRST_P_PCIE1			248
291 #define SRST_PCIE1_POWER_UP		249
292 
293 #define SRST_RXOOB0			250
294 #define SRST_RXOOB1			251
295 #define SRST_PMALIVE0			252
296 #define SRST_PMALIVE1			253
297 #define SRST_A_SATA0			254
298 #define SRST_A_SATA1			255
299 #define SRST_ASIC1			256
300 #define SRST_ASIC0			257
301 
302 #define SRST_P_CSIDPHY1			258
303 #define SRST_SCAN_CSIDPHY1		259
304 
305 #define SRST_P_SDGMAC_GRF		260
306 #define SRST_P_SDGMAC_BIU		261
307 #define SRST_A_SDGMAC_BIU		262
308 #define SRST_H_SDGMAC_BIU		263
309 #define SRST_A_GMAC0			264
310 #define SRST_A_GMAC1			265
311 #define SRST_P_GMAC0			266
312 #define SRST_P_GMAC1			267
313 #define SRST_H_SDIO			268
314 
315 #define SRST_H_SDMMC0			269
316 #define SRST_S_FSPI1			270
317 #define SRST_H_FSPI1			271
318 #define SRST_A_DSMC_BIU			272
319 #define SRST_A_DSMC			273
320 #define SRST_P_DSMC			274
321 #define SRST_H_HSGPIO			275
322 #define SRST_HSGPIO			276
323 #define SRST_A_HSGPIO			277
324 
325 #define SRST_H_RKVDEC			278
326 #define SRST_H_RKVDEC_BIU		279
327 #define SRST_A_RKVDEC_BIU		280
328 #define SRST_RKVDEC_HEVC_CA		281
329 #define SRST_RKVDEC_CORE		282
330 
331 #define SRST_A_USB_BIU			283
332 #define SRST_P_USBUFS_BIU		284
333 #define SRST_A_USB3OTG0			285
334 #define SRST_A_UFS_BIU			286
335 #define SRST_A_MMU2			287
336 #define SRST_A_SLV_MMU2			288
337 #define SRST_A_UFS_SYS			289
338 
339 #define SRST_A_UFS			290
340 #define SRST_P_USBUFS_GRF		291
341 #define SRST_P_UFS_GRF			292
342 
343 #define SRST_H_VPU_BIU			293
344 #define SRST_A_JPEG_BIU			294
345 #define SRST_A_RGA_BIU			295
346 #define SRST_A_VDPP_BIU			296
347 #define SRST_A_EBC_BIU			297
348 #define SRST_H_RGA2E_0			298
349 #define SRST_A_RGA2E_0			299
350 #define SRST_CORE_RGA2E_0		300
351 
352 #define SRST_A_JPEG			301
353 #define SRST_H_JPEG			302
354 #define SRST_H_VDPP			303
355 #define SRST_A_VDPP			304
356 #define SRST_CORE_VDPP			305
357 #define SRST_H_RGA2E_1			306
358 #define SRST_A_RGA2E_1			307
359 #define SRST_CORE_RGA2E_1		308
360 #define SRST_H_EBC			309
361 #define SRST_A_EBC			310
362 #define SRST_D_EBC			311
363 
364 #define SRST_H_VEPU0_BIU		312
365 #define SRST_A_VEPU0_BIU		313
366 #define SRST_H_VEPU0			314
367 #define SRST_A_VEPU0			315
368 #define SRST_VEPU0_CORE			316
369 
370 #define SRST_A_VI_BIU			317
371 #define SRST_H_VI_BIU			318
372 #define SRST_P_VI_BIU			319
373 #define SRST_D_VICAP			320
374 #define SRST_A_VICAP			321
375 #define SRST_H_VICAP			322
376 #define SRST_ISP0			323
377 #define SRST_ISP0_VICAP			324
378 
379 #define SRST_CORE_VPSS			325
380 #define SRST_P_CSI_HOST_0		326
381 #define SRST_P_CSI_HOST_1		327
382 #define SRST_P_CSI_HOST_2		328
383 #define SRST_P_CSI_HOST_3		329
384 #define SRST_P_CSI_HOST_4		330
385 
386 #define SRST_CIFIN			331
387 #define SRST_VICAP_I0CLK		332
388 #define SRST_VICAP_I1CLK		333
389 #define SRST_VICAP_I2CLK		334
390 #define SRST_VICAP_I3CLK		335
391 #define SRST_VICAP_I4CLK		336
392 
393 #define SRST_A_VOP_BIU			337
394 #define SRST_A_VOP2_BIU			338
395 #define SRST_H_VOP_BIU			339
396 #define SRST_P_VOP_BIU			340
397 #define SRST_H_VOP			341
398 #define SRST_A_VOP			342
399 #define SRST_D_VP0			343
400 
401 #define SRST_D_VP1			344
402 #define SRST_D_VP2			345
403 #define SRST_P_VOP2_BIU			346
404 #define SRST_P_VOPGRF			347
405 
406 #define SRST_H_VO0_BIU			348
407 #define SRST_P_VO0_BIU			349
408 #define SRST_A_HDCP0_BIU		350
409 #define SRST_P_VO0_GRF			351
410 #define SRST_A_HDCP0			352
411 #define SRST_H_HDCP0			353
412 #define SRST_HDCP0			354
413 
414 #define SRST_P_DSIHOST0			355
415 #define SRST_DSIHOST0			356
416 #define SRST_P_HDMITX0			357
417 #define SRST_HDMITX0_REF		358
418 #define SRST_P_EDP0			359
419 #define SRST_EDP0_24M			360
420 
421 #define SRST_M_SAI5_8CH			361
422 #define SRST_H_SAI5_8CH			362
423 #define SRST_M_SAI6_8CH			363
424 #define SRST_H_SAI6_8CH			364
425 #define SRST_H_SPDIF_TX2		365
426 #define SRST_M_SPDIF_TX2		366
427 #define SRST_H_SPDIF_RX2		367
428 #define SRST_M_SPDIF_RX2		368
429 
430 #define SRST_H_SAI8_8CH			369
431 #define SRST_M_SAI8_8CH			370
432 
433 #define SRST_H_VO1_BIU			371
434 #define SRST_P_VO1_BIU			372
435 #define SRST_M_SAI7_8CH			373
436 #define SRST_H_SAI7_8CH			374
437 #define SRST_H_SPDIF_TX3		375
438 #define SRST_H_SPDIF_TX4		376
439 #define SRST_H_SPDIF_TX5		377
440 #define SRST_M_SPDIF_TX3		378
441 
442 #define SRST_DP0			379
443 #define SRST_P_VO1_GRF			380
444 #define SRST_A_HDCP1_BIU		381
445 #define SRST_A_HDCP1			382
446 #define SRST_H_HDCP1			383
447 #define SRST_HDCP1			384
448 #define SRST_H_SAI9_8CH			385
449 #define SRST_M_SAI9_8CH			386
450 #define SRST_M_SPDIF_TX4		387
451 #define SRST_M_SPDIF_TX5		388
452 
453 #define SRST_GPU			389
454 #define SRST_A_S_GPU_BIU		390
455 #define SRST_A_M0_GPU_BIU		391
456 #define SRST_P_GPU_BIU			392
457 #define SRST_P_GPU_GRF			393
458 #define SRST_GPU_PVTPLL			394
459 #define SRST_P_PVTPLL_GPU		395
460 
461 #define SRST_A_CENTER_BIU		396
462 #define SRST_A_DMA2DDR			397
463 #define SRST_A_DDR_SHAREMEM		398
464 #define SRST_A_DDR_SHAREMEM_BIU		399
465 #define SRST_H_CENTER_BIU		400
466 #define SRST_P_CENTER_GRF		401
467 #define SRST_P_DMA2DDR			402
468 #define SRST_P_SHAREMEM			403
469 #define SRST_P_CENTER_BIU		404
470 
471 #define SRST_LINKSYM_HDMITXPHY0		405
472 
473 #define SRST_DP0_PIXELCLK		406
474 #define SRST_PHY_DP0_TX			407
475 #define SRST_DP1_PIXELCLK		408
476 #define SRST_DP2_PIXELCLK		409
477 
478 #define SRST_H_VEPU1_BIU		410
479 #define SRST_A_VEPU1_BIU		411
480 #define SRST_H_VEPU1			412
481 #define SRST_A_VEPU1			413
482 #define SRST_VEPU1_CORE			414
483 
484 #define SRST_P_PHPPHY_CRU		415
485 #define SRST_P_APB2ASB_SLV_CHIP_TOP	416
486 #define SRST_P_PCIE2_COMBOPHY0		417
487 #define SRST_P_PCIE2_COMBOPHY0_GRF	418
488 #define SRST_P_PCIE2_COMBOPHY1		419
489 #define SRST_P_PCIE2_COMBOPHY1_GRF	420
490 
491 #define SRST_PCIE0_PIPE_PHY		421
492 #define SRST_PCIE1_PIPE_PHY		422
493 
494 #define SRST_H_CRYPTO_NS		423
495 #define SRST_H_TRNG_NS			424
496 #define SRST_P_OTPC_NS			425
497 #define SRST_OTPC_NS			426
498 
499 #define SRST_P_HDPTX_GRF		427
500 #define SRST_P_HDPTX_APB		428
501 #define SRST_P_MIPI_DCPHY		429
502 #define SRST_P_DCPHY_GRF		430
503 #define SRST_P_BOT0_APB2ASB		431
504 #define SRST_P_BOT1_APB2ASB		432
505 #define SRST_USB2DEBUG			433
506 #define SRST_P_CSIPHY_GRF		434
507 #define SRST_P_CSIPHY			435
508 #define SRST_P_USBPHY_GRF_0		436
509 #define SRST_P_USBPHY_GRF_1		437
510 #define SRST_P_USBDP_GRF		438
511 #define SRST_P_USBDPPHY			439
512 #define SRST_USBDP_COMBO_PHY_INIT	440
513 
514 #define SRST_USBDP_COMBO_PHY_CMN	441
515 #define SRST_USBDP_COMBO_PHY_LANE	442
516 #define SRST_USBDP_COMBO_PHY_PCS	443
517 #define SRST_M_MIPI_DCPHY		444
518 #define SRST_S_MIPI_DCPHY		445
519 #define SRST_SCAN_CSIPHY		446
520 #define SRST_P_VCCIO6_IOC		447
521 #define SRST_OTGPHY_0			448
522 #define SRST_OTGPHY_1			449
523 #define SRST_HDPTX_INIT			450
524 #define SRST_HDPTX_CMN			451
525 #define SRST_HDPTX_LANE			452
526 #define SRST_HDMITXHDP			453
527 
528 #define SRST_MPHY_INIT			454
529 #define SRST_P_MPHY_GRF			455
530 #define SRST_P_VCCIO7_IOC		456
531 
532 #define SRST_H_PMU1_BIU			457
533 #define SRST_P_PMU1_NIU			458
534 #define SRST_H_PMU_CM0_BIU		459
535 #define SRST_PMU_CM0_CORE		460
536 #define SRST_PMU_CM0_JTAG		461
537 
538 #define SRST_P_CRU_PMU1			462
539 #define SRST_P_PMU1_GRF			463
540 #define SRST_P_PMU1_IOC			464
541 #define SRST_P_PMU1WDT			465
542 #define SRST_T_PMU1WDT			466
543 #define SRST_P_PMUTIMER			467
544 #define SRST_PMUTIMER0			468
545 #define SRST_PMUTIMER1			469
546 #define SRST_P_PMU1PWM			470
547 #define SRST_PMU1PWM			471
548 
549 #define SRST_P_I2C0			472
550 #define SRST_I2C0			473
551 #define SRST_S_UART1			474
552 #define SRST_P_UART1			475
553 #define SRST_PDM0			476
554 #define SRST_H_PDM0			477
555 
556 #define SRST_M_PDM0			478
557 #define SRST_H_VAD			479
558 
559 #define SRST_P_PMU0GRF			480
560 #define SRST_P_PMU0IOC			481
561 #define SRST_P_GPIO0			482
562 #define SRST_DB_GPIO0			483
563 
564 #endif
565