1f07c776fSEnric Balletbo i Serra /* SPDX-License-Identifier: GPL-2.0 */
2f07c776fSEnric Balletbo i Serra /*
3f07c776fSEnric Balletbo i Serra  * Copyright (c) 2019 MediaTek Inc.
4f07c776fSEnric Balletbo i Serra  * Author: Yong Liang <yong.liang@mediatek.com>
5f07c776fSEnric Balletbo i Serra  */
6f07c776fSEnric Balletbo i Serra 
7f07c776fSEnric Balletbo i Serra #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8183
8f07c776fSEnric Balletbo i Serra #define _DT_BINDINGS_RESET_CONTROLLER_MT8183
9f07c776fSEnric Balletbo i Serra 
10f07c776fSEnric Balletbo i Serra /* INFRACFG AO resets */
11f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_THERM_SW_RST				0
12f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_USB_TOP_SW_RST			1
13f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MM_IOMMU_SW_RST			3
14f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MSDC3_SW_RST				4
15f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MSDC2_SW_RST				5
16f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MSDC1_SW_RST				6
17f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MSDC0_SW_RST				7
18f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_APDMA_SW_RST				9
19f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MIMP_D_SW_RST			10
20f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_BTIF_SW_RST				12
21f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_DISP_PWM_SW_RST			14
22f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_AUXADC_SW_RST			15
23f07c776fSEnric Balletbo i Serra 
24f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_IRTX_SW_RST				32
25f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI0_SW_RST				33
26f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C0_SW_RST				34
27f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C1_SW_RST				35
28f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C2_SW_RST				36
29f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C3_SW_RST				37
30f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UART0_SW_RST				38
31f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UART1_SW_RST				39
32f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UART2_SW_RST				40
33f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_PWM_SW_RST				41
34f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI1_SW_RST				42
35f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C4_SW_RST				43
36f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_DVFSP_SW_RST				44
37f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI2_SW_RST				45
38f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI3_SW_RST				46
39f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UFSHCI_SW_RST			47
40f07c776fSEnric Balletbo i Serra 
41f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_PMIC_WRAP_SW_RST			64
42f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPM_SW_RST				65
43f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_USBSIF_SW_RST			66
44f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_KP_SW_RST				68
45f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_APXGPT_SW_RST			69
46f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CLDMA_AO_SW_RST			70
47f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UNIPRO_UFS_SW_RST			71
48f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_DX_CC_SW_RST				72
49f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UFSPHY_SW_RST			73
50f07c776fSEnric Balletbo i Serra 
51f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_DX_CC_SEC_SW_RST			96
52f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_GCE_SW_RST				97
53f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CLDMA_SW_RST				98
54f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_TRNG_SW_RST				99
55f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_AP_MD_CCIF_1_SW_RST			103
56f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_AP_MD_CCIF_SW_RST			104
57f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C1_IMM_SW_RST			105
58f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C1_ARB_SW_RST			106
59f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C2_IMM_SW_RST			107
60f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C2_ARB_SW_RST			108
61f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C5_SW_RST				109
62f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C5_IMM_SW_RST			110
63f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C5_ARB_SW_RST			111
64f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI4_SW_RST				112
65f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_SPI5_SW_RST				113
66f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_INFRA2MFGAXI_CBIP_CLAS_SW_RST	114
67f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MFGAXI2INFRA_M0_CBIP_GLAS_OUT_SW_RST	115
68f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_MFGAXI2INFRA_M1_CBIP_GLAS_OUT_SW_RST	116
69f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_UFS_AES_SW_RST			117
70f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CCU_I2C_IRQ_SW_RST			118
71f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CCU_I2C_DMA_SW_RST			119
72f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C6_SW_RST				120
73f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CCU_GALS_SW_RST			121
74f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_IPU_GALS_SW_RST			122
75f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_CONN2AP_GALS_SW_RST			123
76f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_AP_MD_CCIF2_SW_RST			124
77f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_AP_MD_CCIF3_SW_RST			125
78f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C7_SW_RST				126
79f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_AO_I2C8_SW_RST				127
80f07c776fSEnric Balletbo i Serra 
81f07c776fSEnric Balletbo i Serra #define MT8183_INFRACFG_SW_RST_NUM				128
82f07c776fSEnric Balletbo i Serra 
83*4bdb00edSEnric Balletbo i Serra /* MMSYS resets */
84*4bdb00edSEnric Balletbo i Serra #define MT8183_MMSYS_SW0_RST_B_DISP_DSI0			25
85*4bdb00edSEnric Balletbo i Serra 
86f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_MM_SW_RST					1
87f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_MFG_SW_RST				2
88f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_VENC_SW_RST				3
89f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_VDEC_SW_RST				4
90f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_IMG_SW_RST				5
91f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_MD_SW_RST					7
92f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_CONN_SW_RST				9
93f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_CONN_MCU_SW_RST				12
94f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_IPU0_SW_RST				14
95f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_IPU1_SW_RST				15
96f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_AUDIO_SW_RST				17
97f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_CAMSYS_SW_RST				18
98f07c776fSEnric Balletbo i Serra 
99f07c776fSEnric Balletbo i Serra #define MT8183_TOPRGU_SW_RST_NUM				19
100f07c776fSEnric Balletbo i Serra 
101f07c776fSEnric Balletbo i Serra #endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT8183 */
102