162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2015 MediaTek, Shunli Wang <shunli.wang@mediatek.com>
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT2701
762306a36Sopenharmony_ci#define _DT_BINDINGS_RESET_CONTROLLER_MT2701
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* INFRACFG resets */
1062306a36Sopenharmony_ci#define MT2701_INFRA_EMI_REG_RST		0
1162306a36Sopenharmony_ci#define MT2701_INFRA_DRAMC0_A0_RST		1
1262306a36Sopenharmony_ci#define MT2701_INFRA_FHCTL_RST			2
1362306a36Sopenharmony_ci#define MT2701_INFRA_APCIRQ_EINT_RST		3
1462306a36Sopenharmony_ci#define MT2701_INFRA_APXGPT_RST			4
1562306a36Sopenharmony_ci#define MT2701_INFRA_SCPSYS_RST			5
1662306a36Sopenharmony_ci#define MT2701_INFRA_KP_RST			6
1762306a36Sopenharmony_ci#define MT2701_INFRA_PMIC_WRAP_RST		7
1862306a36Sopenharmony_ci#define MT2701_INFRA_MIPI_RST			8
1962306a36Sopenharmony_ci#define MT2701_INFRA_IRRX_RST			9
2062306a36Sopenharmony_ci#define MT2701_INFRA_CEC_RST			10
2162306a36Sopenharmony_ci#define MT2701_INFRA_EMI_RST			32
2262306a36Sopenharmony_ci#define MT2701_INFRA_DRAMC0_RST			34
2362306a36Sopenharmony_ci#define MT2701_INFRA_TRNG_RST			37
2462306a36Sopenharmony_ci#define MT2701_INFRA_SYSIRQ_RST			38
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci/*  PERICFG resets */
2762306a36Sopenharmony_ci#define MT2701_PERI_UART0_SW_RST		0
2862306a36Sopenharmony_ci#define MT2701_PERI_UART1_SW_RST		1
2962306a36Sopenharmony_ci#define MT2701_PERI_UART2_SW_RST		2
3062306a36Sopenharmony_ci#define MT2701_PERI_UART3_SW_RST		3
3162306a36Sopenharmony_ci#define MT2701_PERI_GCPU_SW_RST			5
3262306a36Sopenharmony_ci#define MT2701_PERI_BTIF_SW_RST			6
3362306a36Sopenharmony_ci#define MT2701_PERI_PWM_SW_RST			8
3462306a36Sopenharmony_ci#define MT2701_PERI_AUXADC_SW_RST		10
3562306a36Sopenharmony_ci#define MT2701_PERI_DMA_SW_RST			11
3662306a36Sopenharmony_ci#define MT2701_PERI_NFI_SW_RST			14
3762306a36Sopenharmony_ci#define MT2701_PERI_NLI_SW_RST			15
3862306a36Sopenharmony_ci#define MT2701_PERI_THERM_SW_RST		16
3962306a36Sopenharmony_ci#define MT2701_PERI_MSDC2_SW_RST		17
4062306a36Sopenharmony_ci#define MT2701_PERI_MSDC0_SW_RST		19
4162306a36Sopenharmony_ci#define MT2701_PERI_MSDC1_SW_RST		20
4262306a36Sopenharmony_ci#define MT2701_PERI_I2C0_SW_RST			22
4362306a36Sopenharmony_ci#define MT2701_PERI_I2C1_SW_RST			23
4462306a36Sopenharmony_ci#define MT2701_PERI_I2C2_SW_RST			24
4562306a36Sopenharmony_ci#define MT2701_PERI_I2C3_SW_RST			25
4662306a36Sopenharmony_ci#define MT2701_PERI_USB_SW_RST			28
4762306a36Sopenharmony_ci#define MT2701_PERI_ETH_SW_RST			29
4862306a36Sopenharmony_ci#define MT2701_PERI_SPI0_SW_RST			33
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci/* TOPRGU resets */
5162306a36Sopenharmony_ci#define MT2701_TOPRGU_INFRA_RST			0
5262306a36Sopenharmony_ci#define MT2701_TOPRGU_MM_RST			1
5362306a36Sopenharmony_ci#define MT2701_TOPRGU_MFG_RST			2
5462306a36Sopenharmony_ci#define MT2701_TOPRGU_ETHDMA_RST		3
5562306a36Sopenharmony_ci#define MT2701_TOPRGU_VDEC_RST			4
5662306a36Sopenharmony_ci#define MT2701_TOPRGU_VENC_IMG_RST		5
5762306a36Sopenharmony_ci#define MT2701_TOPRGU_DDRPHY_RST		6
5862306a36Sopenharmony_ci#define MT2701_TOPRGU_MD_RST			7
5962306a36Sopenharmony_ci#define MT2701_TOPRGU_INFRA_AO_RST		8
6062306a36Sopenharmony_ci#define MT2701_TOPRGU_CONN_RST			9
6162306a36Sopenharmony_ci#define MT2701_TOPRGU_APMIXED_RST		10
6262306a36Sopenharmony_ci#define MT2701_TOPRGU_HIFSYS_RST		11
6362306a36Sopenharmony_ci#define MT2701_TOPRGU_CONN_MCU_RST		12
6462306a36Sopenharmony_ci#define MT2701_TOPRGU_BDP_DISP_RST		13
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci/* HIFSYS resets */
6762306a36Sopenharmony_ci#define MT2701_HIFSYS_UHOST0_RST		3
6862306a36Sopenharmony_ci#define MT2701_HIFSYS_UHOST1_RST		4
6962306a36Sopenharmony_ci#define MT2701_HIFSYS_UPHY0_RST			21
7062306a36Sopenharmony_ci#define MT2701_HIFSYS_UPHY1_RST			22
7162306a36Sopenharmony_ci#define MT2701_HIFSYS_PCIE0_RST			24
7262306a36Sopenharmony_ci#define MT2701_HIFSYS_PCIE1_RST			25
7362306a36Sopenharmony_ci#define MT2701_HIFSYS_PCIE2_RST			26
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci/* ETHSYS resets */
7662306a36Sopenharmony_ci#define MT2701_ETHSYS_SYS_RST			0
7762306a36Sopenharmony_ci#define MT2701_ETHSYS_MCM_RST			2
7862306a36Sopenharmony_ci#define MT2701_ETHSYS_FE_RST			6
7962306a36Sopenharmony_ci#define MT2701_ETHSYS_GMAC_RST			23
8062306a36Sopenharmony_ci#define MT2701_ETHSYS_PPE_RST			31
8162306a36Sopenharmony_ci
8262306a36Sopenharmony_ci/* G3DSYS resets */
8362306a36Sopenharmony_ci#define MT2701_G3DSYS_CORE_RST			0
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */
86