11802d0beSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2c3c57683SShunli Wang /*
3c3c57683SShunli Wang  * Copyright (c) 2015 MediaTek, Shunli Wang <shunli.wang@mediatek.com>
4c3c57683SShunli Wang  */
5c3c57683SShunli Wang 
6c3c57683SShunli Wang #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT2701
7c3c57683SShunli Wang #define _DT_BINDINGS_RESET_CONTROLLER_MT2701
8c3c57683SShunli Wang 
9c3c57683SShunli Wang /* INFRACFG resets */
10c3c57683SShunli Wang #define MT2701_INFRA_EMI_REG_RST		0
11c3c57683SShunli Wang #define MT2701_INFRA_DRAMC0_A0_RST		1
12c3c57683SShunli Wang #define MT2701_INFRA_FHCTL_RST			2
13c3c57683SShunli Wang #define MT2701_INFRA_APCIRQ_EINT_RST		3
14c3c57683SShunli Wang #define MT2701_INFRA_APXGPT_RST			4
15c3c57683SShunli Wang #define MT2701_INFRA_SCPSYS_RST			5
16c3c57683SShunli Wang #define MT2701_INFRA_KP_RST			6
17c3c57683SShunli Wang #define MT2701_INFRA_PMIC_WRAP_RST		7
18c3c57683SShunli Wang #define MT2701_INFRA_MIPI_RST			8
19c3c57683SShunli Wang #define MT2701_INFRA_IRRX_RST			9
20c3c57683SShunli Wang #define MT2701_INFRA_CEC_RST			10
21c3c57683SShunli Wang #define MT2701_INFRA_EMI_RST			32
22c3c57683SShunli Wang #define MT2701_INFRA_DRAMC0_RST			34
23c3c57683SShunli Wang #define MT2701_INFRA_TRNG_RST			37
24c3c57683SShunli Wang #define MT2701_INFRA_SYSIRQ_RST			38
25c3c57683SShunli Wang 
26c3c57683SShunli Wang /*  PERICFG resets */
27c3c57683SShunli Wang #define MT2701_PERI_UART0_SW_RST		0
28c3c57683SShunli Wang #define MT2701_PERI_UART1_SW_RST		1
29c3c57683SShunli Wang #define MT2701_PERI_UART2_SW_RST		2
30c3c57683SShunli Wang #define MT2701_PERI_UART3_SW_RST		3
31c3c57683SShunli Wang #define MT2701_PERI_GCPU_SW_RST			5
32c3c57683SShunli Wang #define MT2701_PERI_BTIF_SW_RST			6
33c3c57683SShunli Wang #define MT2701_PERI_PWM_SW_RST			8
34c3c57683SShunli Wang #define MT2701_PERI_AUXADC_SW_RST		10
35c3c57683SShunli Wang #define MT2701_PERI_DMA_SW_RST			11
36c3c57683SShunli Wang #define MT2701_PERI_NFI_SW_RST			14
37c3c57683SShunli Wang #define MT2701_PERI_NLI_SW_RST			15
38c3c57683SShunli Wang #define MT2701_PERI_THERM_SW_RST		16
39c3c57683SShunli Wang #define MT2701_PERI_MSDC2_SW_RST		17
40c3c57683SShunli Wang #define MT2701_PERI_MSDC0_SW_RST		19
41c3c57683SShunli Wang #define MT2701_PERI_MSDC1_SW_RST		20
42c3c57683SShunli Wang #define MT2701_PERI_I2C0_SW_RST			22
43c3c57683SShunli Wang #define MT2701_PERI_I2C1_SW_RST			23
44c3c57683SShunli Wang #define MT2701_PERI_I2C2_SW_RST			24
45c3c57683SShunli Wang #define MT2701_PERI_I2C3_SW_RST			25
46c3c57683SShunli Wang #define MT2701_PERI_USB_SW_RST			28
47c3c57683SShunli Wang #define MT2701_PERI_ETH_SW_RST			29
48c3c57683SShunli Wang #define MT2701_PERI_SPI0_SW_RST			33
49c3c57683SShunli Wang 
50c3c57683SShunli Wang /* TOPRGU resets */
51c3c57683SShunli Wang #define MT2701_TOPRGU_INFRA_RST			0
52c3c57683SShunli Wang #define MT2701_TOPRGU_MM_RST			1
53c3c57683SShunli Wang #define MT2701_TOPRGU_MFG_RST			2
54c3c57683SShunli Wang #define MT2701_TOPRGU_ETHDMA_RST		3
55c3c57683SShunli Wang #define MT2701_TOPRGU_VDEC_RST			4
56c3c57683SShunli Wang #define MT2701_TOPRGU_VENC_IMG_RST		5
57c3c57683SShunli Wang #define MT2701_TOPRGU_DDRPHY_RST		6
58c3c57683SShunli Wang #define MT2701_TOPRGU_MD_RST			7
59c3c57683SShunli Wang #define MT2701_TOPRGU_INFRA_AO_RST		8
60c3c57683SShunli Wang #define MT2701_TOPRGU_CONN_RST			9
61c3c57683SShunli Wang #define MT2701_TOPRGU_APMIXED_RST		10
62c3c57683SShunli Wang #define MT2701_TOPRGU_HIFSYS_RST		11
63c3c57683SShunli Wang #define MT2701_TOPRGU_CONN_MCU_RST		12
64c3c57683SShunli Wang #define MT2701_TOPRGU_BDP_DISP_RST		13
65c3c57683SShunli Wang 
66c3c57683SShunli Wang /* HIFSYS resets */
67c3c57683SShunli Wang #define MT2701_HIFSYS_UHOST0_RST		3
68c3c57683SShunli Wang #define MT2701_HIFSYS_UHOST1_RST		4
69c3c57683SShunli Wang #define MT2701_HIFSYS_UPHY0_RST			21
70c3c57683SShunli Wang #define MT2701_HIFSYS_UPHY1_RST			22
71c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE0_RST			24
72c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE1_RST			25
73c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE2_RST			26
74c3c57683SShunli Wang 
757c2adaf1SJohn Crispin /* ETHSYS resets */
767c2adaf1SJohn Crispin #define MT2701_ETHSYS_SYS_RST			0
777c2adaf1SJohn Crispin #define MT2701_ETHSYS_MCM_RST			2
787c2adaf1SJohn Crispin #define MT2701_ETHSYS_FE_RST			6
797c2adaf1SJohn Crispin #define MT2701_ETHSYS_GMAC_RST			23
807c2adaf1SJohn Crispin #define MT2701_ETHSYS_PPE_RST			31
817c2adaf1SJohn Crispin 
825eb57e1eSSean Wang /* G3DSYS resets */
835eb57e1eSSean Wang #define MT2701_G3DSYS_CORE_RST			0
845eb57e1eSSean Wang 
85c3c57683SShunli Wang #endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */
86