xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/reset/mt8188-resets.h (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
18bab661aSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)*/
28bab661aSEmmanuel Vadot /*
38bab661aSEmmanuel Vadot  * Copyright (c) 2022 MediaTek Inc.
48bab661aSEmmanuel Vadot  * Author: Runyang Chen <runyang.chen@mediatek.com>
58bab661aSEmmanuel Vadot  */
68bab661aSEmmanuel Vadot 
78bab661aSEmmanuel Vadot #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8188
88bab661aSEmmanuel Vadot #define _DT_BINDINGS_RESET_CONTROLLER_MT8188
98bab661aSEmmanuel Vadot 
108bab661aSEmmanuel Vadot #define MT8188_TOPRGU_CONN_MCU_SW_RST          0
118bab661aSEmmanuel Vadot #define MT8188_TOPRGU_INFRA_GRST_SW_RST        1
128bab661aSEmmanuel Vadot #define MT8188_TOPRGU_IPU0_SW_RST              2
138bab661aSEmmanuel Vadot #define MT8188_TOPRGU_IPU1_SW_RST              3
148bab661aSEmmanuel Vadot #define MT8188_TOPRGU_IPU2_SW_RST              4
158bab661aSEmmanuel Vadot #define MT8188_TOPRGU_AUD_ASRC_SW_RST          5
168bab661aSEmmanuel Vadot #define MT8188_TOPRGU_INFRA_SW_RST             6
178bab661aSEmmanuel Vadot #define MT8188_TOPRGU_MMSYS_SW_RST             7
188bab661aSEmmanuel Vadot #define MT8188_TOPRGU_MFG_SW_RST               8
198bab661aSEmmanuel Vadot #define MT8188_TOPRGU_VENC_SW_RST              9
208bab661aSEmmanuel Vadot #define MT8188_TOPRGU_VDEC_SW_RST              10
218bab661aSEmmanuel Vadot #define MT8188_TOPRGU_CAM_VCORE_SW_RST         11
228bab661aSEmmanuel Vadot #define MT8188_TOPRGU_SCP_SW_RST               12
238bab661aSEmmanuel Vadot #define MT8188_TOPRGU_APMIXEDSYS_SW_RST        13
248bab661aSEmmanuel Vadot #define MT8188_TOPRGU_AUDIO_SW_RST             14
258bab661aSEmmanuel Vadot #define MT8188_TOPRGU_CAMSYS_SW_RST            15
268bab661aSEmmanuel Vadot #define MT8188_TOPRGU_MJC_SW_RST               16
278bab661aSEmmanuel Vadot #define MT8188_TOPRGU_PERI_SW_RST              17
288bab661aSEmmanuel Vadot #define MT8188_TOPRGU_PERI_AO_SW_RST           18
298bab661aSEmmanuel Vadot #define MT8188_TOPRGU_PCIE_SW_RST              19
308bab661aSEmmanuel Vadot #define MT8188_TOPRGU_ADSPSYS_SW_RST           21
318bab661aSEmmanuel Vadot #define MT8188_TOPRGU_DPTX_SW_RST              22
328bab661aSEmmanuel Vadot #define MT8188_TOPRGU_SPMI_MST_SW_RST          23
338bab661aSEmmanuel Vadot 
348bab661aSEmmanuel Vadot #define MT8188_TOPRGU_SW_RST_NUM               24
358bab661aSEmmanuel Vadot 
36f126890aSEmmanuel Vadot /* INFRA resets */
37f126890aSEmmanuel Vadot #define MT8188_INFRA_RST1_THERMAL_MCU_RST          0
38f126890aSEmmanuel Vadot #define MT8188_INFRA_RST1_THERMAL_CTRL_RST         1
39f126890aSEmmanuel Vadot #define MT8188_INFRA_RST3_PTP_CTRL_RST             2
40f126890aSEmmanuel Vadot 
41*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_OVL0		0
42*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_FAKE_ENG0		1
43*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_CCORR0		2
44*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_MUTEX0		3
45*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_GAMMA0		4
46*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_DITHER0		5
47*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_WDMA0		6
48*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_RDMA0		7
49*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DSI0			8
50*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DSI1			9
51*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DSC_WRAP0		10
52*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_VPP_MERGE0		11
53*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DP_INTF0		12
54*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_AAL0		13
55*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_INLINEROT0		14
56*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_APB_BUS			15
57*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_COLOR0		16
58*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_MDP_WROT0		17
59*8d13bc63SEmmanuel Vadot #define MT8188_VDO0_RST_DISP_RSZ0		18
60*8d13bc63SEmmanuel Vadot 
61*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_SMI_LARB2		0
62*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_SMI_LARB3		1
63*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_GALS			2
64*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_FAKE_ENG0		3
65*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_FAKE_ENG1		4
66*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA0		5
67*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA1		6
68*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA2		7
69*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA3		8
70*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP_MERGE0		9
71*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP_MERGE1		10
72*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP_MERGE2		11
73*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP_MERGE3		12
74*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP_MERGE4		13
75*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP2_TO_VDO1_DL_ASYNC	14
76*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VPP3_TO_VDO1_DL_ASYNC	15
77*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_MUTEX		16
78*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA4		17
79*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA5		18
80*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA6		19
81*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MDP_RDMA7		20
82*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DP_INTF1_MMCK		21
83*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DPI0_MM_CK		22
84*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DPI1_MM_CK		23
85*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MERGE0_DL_ASYNC		24
86*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MERGE1_DL_ASYNC		25
87*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MERGE2_DL_ASYNC		26
88*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MERGE3_DL_ASYNC		27
89*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_MERGE4_DL_ASYNC		28
90*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VDO0_DSC_TO_VDO1_DL_ASYNC	29
91*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_VDO0_MERGE_TO_VDO1_DL_ASYNC	30
92*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING0		31
93*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING1		32
94*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING2		33
95*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING3		34
96*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING4		35
97*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING5		36
98*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING6		37
99*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_PADDING7		38
100*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_RSZ0		39
101*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_RSZ1		40
102*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_RSZ2		41
103*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_RSZ3		42
104*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_FE0		43
105*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_GFX_FE0		44
106*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_BE		45
107*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_FE1		46
108*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_GFX_FE1		47
109*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_DISP_MIXER		48
110*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_FE0_DL_ASYNC	49
111*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_FE1_DL_ASYNC	50
112*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_GFX_FE0_DL_ASYNC	51
113*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_GFX_FE1_DL_ASYNC	52
114*8d13bc63SEmmanuel Vadot #define MT8188_VDO1_RST_HDR_VDO_BE_DL_ASYNC	53
115*8d13bc63SEmmanuel Vadot 
1168bab661aSEmmanuel Vadot #endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT8188 */
117