xref: /linux/arch/riscv/boot/dts/sophgo/sg2044-reset.h (revision 31848987f177a6c0944fd0254a55ffd7c52a8c50)
1*ae5bac37SInochi Amaoto /* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
2*ae5bac37SInochi Amaoto /*
3*ae5bac37SInochi Amaoto  * Copyright (C) 2025 Inochi Amaoto <inochiama@gmail.com>
4*ae5bac37SInochi Amaoto  */
5*ae5bac37SInochi Amaoto 
6*ae5bac37SInochi Amaoto #ifndef _SG2044_RESET_H
7*ae5bac37SInochi Amaoto #define _SG2044_RESET_H
8*ae5bac37SInochi Amaoto 
9*ae5bac37SInochi Amaoto #define RST_AP_SYS			0
10*ae5bac37SInochi Amaoto #define RST_AP_SYS_CORE0		1
11*ae5bac37SInochi Amaoto #define RST_AP_SYS_CORE1		2
12*ae5bac37SInochi Amaoto #define RST_AP_SYS_CORE2		3
13*ae5bac37SInochi Amaoto #define RST_AP_SYS_CORE3		4
14*ae5bac37SInochi Amaoto #define RST_AP_PIC			5
15*ae5bac37SInochi Amaoto #define RST_AP_TDT			6
16*ae5bac37SInochi Amaoto #define RST_RP_PIC_TDT			7
17*ae5bac37SInochi Amaoto #define RST_HSDMA			8
18*ae5bac37SInochi Amaoto #define RST_SYSDMA			9
19*ae5bac37SInochi Amaoto #define RST_EFUSE0			10
20*ae5bac37SInochi Amaoto #define RST_EFUSE1			11
21*ae5bac37SInochi Amaoto #define RST_RTC				12
22*ae5bac37SInochi Amaoto #define RST_TIMER			13
23*ae5bac37SInochi Amaoto #define RST_WDT				14
24*ae5bac37SInochi Amaoto #define RST_AHB_ROM0			15
25*ae5bac37SInochi Amaoto #define RST_AHB_ROM1			16
26*ae5bac37SInochi Amaoto #define RST_I2C0			17
27*ae5bac37SInochi Amaoto #define RST_I2C1			18
28*ae5bac37SInochi Amaoto #define RST_I2C2			19
29*ae5bac37SInochi Amaoto #define RST_I2C3			20
30*ae5bac37SInochi Amaoto #define RST_GPIO0			21
31*ae5bac37SInochi Amaoto #define RST_GPIO1			22
32*ae5bac37SInochi Amaoto #define RST_GPIO2			23
33*ae5bac37SInochi Amaoto #define RST_PWM				24
34*ae5bac37SInochi Amaoto #define RST_AXI_SRAM0			25
35*ae5bac37SInochi Amaoto #define RST_AXI_SRAM1			26
36*ae5bac37SInochi Amaoto #define RST_SPIFMC0			27
37*ae5bac37SInochi Amaoto #define RST_SPIFMC1			28
38*ae5bac37SInochi Amaoto #define RST_MAILBOX			29
39*ae5bac37SInochi Amaoto #define RST_ETH0			30
40*ae5bac37SInochi Amaoto #define RST_EMMC			31
41*ae5bac37SInochi Amaoto #define RST_SD				32
42*ae5bac37SInochi Amaoto #define RST_UART0			33
43*ae5bac37SInochi Amaoto #define RST_UART1			34
44*ae5bac37SInochi Amaoto #define RST_UART2			35
45*ae5bac37SInochi Amaoto #define RST_UART3			36
46*ae5bac37SInochi Amaoto #define RST_SPI0			37
47*ae5bac37SInochi Amaoto #define RST_SPI1			38
48*ae5bac37SInochi Amaoto #define RST_MTLI			39
49*ae5bac37SInochi Amaoto #define RST_DBG_I2C			40
50*ae5bac37SInochi Amaoto #define RST_C2C0			41
51*ae5bac37SInochi Amaoto #define RST_C2C1			42
52*ae5bac37SInochi Amaoto #define RST_C2C2			43
53*ae5bac37SInochi Amaoto #define RST_C2C3			44
54*ae5bac37SInochi Amaoto #define RST_CXP				45
55*ae5bac37SInochi Amaoto #define RST_DDR0			46
56*ae5bac37SInochi Amaoto #define RST_DDR1			47
57*ae5bac37SInochi Amaoto #define RST_DDR2			48
58*ae5bac37SInochi Amaoto #define RST_DDR3			49
59*ae5bac37SInochi Amaoto #define RST_DDR4			50
60*ae5bac37SInochi Amaoto #define RST_DDR5			51
61*ae5bac37SInochi Amaoto #define RST_DDR6			52
62*ae5bac37SInochi Amaoto #define RST_DDR7			53
63*ae5bac37SInochi Amaoto #define RST_DDR8			54
64*ae5bac37SInochi Amaoto #define RST_DDR9			55
65*ae5bac37SInochi Amaoto #define RST_DDR10			56
66*ae5bac37SInochi Amaoto #define RST_DDR11			57
67*ae5bac37SInochi Amaoto #define RST_DDR12			58
68*ae5bac37SInochi Amaoto #define RST_DDR13			59
69*ae5bac37SInochi Amaoto #define RST_DDR14			60
70*ae5bac37SInochi Amaoto #define RST_DDR15			61
71*ae5bac37SInochi Amaoto #define RST_BAR				62
72*ae5bac37SInochi Amaoto #define RST_K2K				63
73*ae5bac37SInochi Amaoto #define RST_CC_SYS_X1Y1			64
74*ae5bac37SInochi Amaoto #define RST_CC_SYS_X1Y2			65
75*ae5bac37SInochi Amaoto #define RST_CC_SYS_X1Y3			66
76*ae5bac37SInochi Amaoto #define RST_CC_SYS_X1Y4			67
77*ae5bac37SInochi Amaoto #define RST_CC_SYS_X0Y1			68
78*ae5bac37SInochi Amaoto #define RST_CC_SYS_X0Y2			69
79*ae5bac37SInochi Amaoto #define RST_CC_SYS_X0Y3			70
80*ae5bac37SInochi Amaoto #define RST_CC_SYS_X0Y4			71
81*ae5bac37SInochi Amaoto #define RST_SC_X1Y1			80
82*ae5bac37SInochi Amaoto #define RST_SC_X1Y2			81
83*ae5bac37SInochi Amaoto #define RST_SC_X1Y3			82
84*ae5bac37SInochi Amaoto #define RST_SC_X1Y4			83
85*ae5bac37SInochi Amaoto #define RST_SC_X0Y1			84
86*ae5bac37SInochi Amaoto #define RST_SC_X0Y2			85
87*ae5bac37SInochi Amaoto #define RST_SC_X0Y3			86
88*ae5bac37SInochi Amaoto #define RST_SC_X0Y4			87
89*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y1_S0		160
90*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y1_S1		161
91*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y2_S0		162
92*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y2_S1		163
93*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y3_S0		164
94*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y3_S1		165
95*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y4_S0		166
96*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X1Y4_S1		167
97*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y1_W0		168
98*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y1_W1		169
99*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y2_W0		170
100*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y2_W1		171
101*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y3_W0		172
102*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y3_W1		173
103*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y4_W0		174
104*ae5bac37SInochi Amaoto #define RST_RP_CLUSTER_X0Y4_W1		175
105*ae5bac37SInochi Amaoto #define RST_TPSYS_X1Y1			180
106*ae5bac37SInochi Amaoto #define RST_TPSYS_X1Y2			181
107*ae5bac37SInochi Amaoto #define RST_TPSYS_X1Y3			182
108*ae5bac37SInochi Amaoto #define RST_TPSYS_X1Y4			183
109*ae5bac37SInochi Amaoto #define RST_TPSYS_X0Y1			184
110*ae5bac37SInochi Amaoto #define RST_TPSYS_X0Y2			185
111*ae5bac37SInochi Amaoto #define RST_TPSYS_X0Y3			186
112*ae5bac37SInochi Amaoto #define RST_TPSYS_X0Y4			187
113*ae5bac37SInochi Amaoto #define RST_SPACC			188
114*ae5bac37SInochi Amaoto #define RST_PKA				189
115*ae5bac37SInochi Amaoto #define RST_SE_TRNG			190
116*ae5bac37SInochi Amaoto #define RST_SE_DBG			191
117*ae5bac37SInochi Amaoto #define RST_SE_FAB_FW			192
118*ae5bac37SInochi Amaoto #define RST_SE_CTRL			193
119*ae5bac37SInochi Amaoto #define RST_MAILBOX0			194
120*ae5bac37SInochi Amaoto #define RST_MAILBOX1			195
121*ae5bac37SInochi Amaoto #define RST_MAILBOX2			196
122*ae5bac37SInochi Amaoto #define RST_MAILBOX3			197
123*ae5bac37SInochi Amaoto #define RST_INTC0			198
124*ae5bac37SInochi Amaoto #define RST_INTC1			199
125*ae5bac37SInochi Amaoto #define RST_INTC2			200
126*ae5bac37SInochi Amaoto #define RST_INTC3			201
127*ae5bac37SInochi Amaoto 
128*ae5bac37SInochi Amaoto #endif /* _DT_BINDINGS_SG2044_RESET_H */
129