162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2017 MediaTek Inc.
462306a36Sopenharmony_ci * Author: Sean Wang <sean.wang@mediatek.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7622
862306a36Sopenharmony_ci#define _DT_BINDINGS_RESET_CONTROLLER_MT7622
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* INFRACFG resets */
1162306a36Sopenharmony_ci#define MT7622_INFRA_EMI_REG_RST		0
1262306a36Sopenharmony_ci#define MT7622_INFRA_DRAMC0_A0_RST		1
1362306a36Sopenharmony_ci#define MT7622_INFRA_APCIRQ_EINT_RST		3
1462306a36Sopenharmony_ci#define MT7622_INFRA_APXGPT_RST			4
1562306a36Sopenharmony_ci#define MT7622_INFRA_SCPSYS_RST			5
1662306a36Sopenharmony_ci#define MT7622_INFRA_PMIC_WRAP_RST		7
1762306a36Sopenharmony_ci#define MT7622_INFRA_IRRX_RST			9
1862306a36Sopenharmony_ci#define MT7622_INFRA_EMI_RST			16
1962306a36Sopenharmony_ci#define MT7622_INFRA_WED0_RST			17
2062306a36Sopenharmony_ci#define MT7622_INFRA_DRAMC_RST			18
2162306a36Sopenharmony_ci#define MT7622_INFRA_CCI_INTF_RST		19
2262306a36Sopenharmony_ci#define MT7622_INFRA_TRNG_RST			21
2362306a36Sopenharmony_ci#define MT7622_INFRA_SYSIRQ_RST			22
2462306a36Sopenharmony_ci#define MT7622_INFRA_WED1_RST			25
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci/* PERICFG Subsystem resets */
2762306a36Sopenharmony_ci#define MT7622_PERI_UART0_SW_RST		0
2862306a36Sopenharmony_ci#define MT7622_PERI_UART1_SW_RST		1
2962306a36Sopenharmony_ci#define MT7622_PERI_UART2_SW_RST		2
3062306a36Sopenharmony_ci#define MT7622_PERI_UART3_SW_RST		3
3162306a36Sopenharmony_ci#define MT7622_PERI_UART4_SW_RST		4
3262306a36Sopenharmony_ci#define MT7622_PERI_BTIF_SW_RST			6
3362306a36Sopenharmony_ci#define MT7622_PERI_PWM_SW_RST			8
3462306a36Sopenharmony_ci#define MT7622_PERI_AUXADC_SW_RST		10
3562306a36Sopenharmony_ci#define MT7622_PERI_DMA_SW_RST			11
3662306a36Sopenharmony_ci#define MT7622_PERI_IRTX_SW_RST			13
3762306a36Sopenharmony_ci#define MT7622_PERI_NFI_SW_RST			14
3862306a36Sopenharmony_ci#define MT7622_PERI_THERM_SW_RST		16
3962306a36Sopenharmony_ci#define MT7622_PERI_MSDC0_SW_RST		19
4062306a36Sopenharmony_ci#define MT7622_PERI_MSDC1_SW_RST		20
4162306a36Sopenharmony_ci#define MT7622_PERI_I2C0_SW_RST			22
4262306a36Sopenharmony_ci#define MT7622_PERI_I2C1_SW_RST			23
4362306a36Sopenharmony_ci#define MT7622_PERI_I2C2_SW_RST			24
4462306a36Sopenharmony_ci#define MT7622_PERI_SPI0_SW_RST			33
4562306a36Sopenharmony_ci#define MT7622_PERI_SPI1_SW_RST			34
4662306a36Sopenharmony_ci#define MT7622_PERI_FLASHIF_SW_RST		36
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci/* TOPRGU resets */
4962306a36Sopenharmony_ci#define MT7622_TOPRGU_INFRA_RST			0
5062306a36Sopenharmony_ci#define MT7622_TOPRGU_ETHDMA_RST		1
5162306a36Sopenharmony_ci#define MT7622_TOPRGU_DDRPHY_RST		6
5262306a36Sopenharmony_ci#define MT7622_TOPRGU_INFRA_AO_RST		8
5362306a36Sopenharmony_ci#define MT7622_TOPRGU_CONN_RST			9
5462306a36Sopenharmony_ci#define MT7622_TOPRGU_APMIXED_RST		10
5562306a36Sopenharmony_ci#define MT7622_TOPRGU_CONN_MCU_RST		12
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ci/* PCIe/SATA Subsystem resets */
5862306a36Sopenharmony_ci#define MT7622_SATA_PHY_REG_RST			12
5962306a36Sopenharmony_ci#define MT7622_SATA_PHY_SW_RST			13
6062306a36Sopenharmony_ci#define MT7622_SATA_AXI_BUS_RST			15
6162306a36Sopenharmony_ci#define MT7622_PCIE1_CORE_RST			19
6262306a36Sopenharmony_ci#define MT7622_PCIE1_MMIO_RST			20
6362306a36Sopenharmony_ci#define MT7622_PCIE1_HRST			21
6462306a36Sopenharmony_ci#define MT7622_PCIE1_USER_RST			22
6562306a36Sopenharmony_ci#define MT7622_PCIE1_PIPE_RST			23
6662306a36Sopenharmony_ci#define MT7622_PCIE0_CORE_RST			27
6762306a36Sopenharmony_ci#define MT7622_PCIE0_MMIO_RST			28
6862306a36Sopenharmony_ci#define MT7622_PCIE0_HRST			29
6962306a36Sopenharmony_ci#define MT7622_PCIE0_USER_RST			30
7062306a36Sopenharmony_ci#define MT7622_PCIE0_PIPE_RST			31
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci/* SSUSB Subsystem resets */
7362306a36Sopenharmony_ci#define MT7622_SSUSB_PHY_PWR_RST		3
7462306a36Sopenharmony_ci#define MT7622_SSUSB_MAC_PWR_RST		4
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ci/* ETHSYS Subsystem resets */
7762306a36Sopenharmony_ci#define MT7622_ETHSYS_SYS_RST			0
7862306a36Sopenharmony_ci#define MT7622_ETHSYS_MCM_RST			2
7962306a36Sopenharmony_ci#define MT7622_ETHSYS_HSDMA_RST			5
8062306a36Sopenharmony_ci#define MT7622_ETHSYS_FE_RST			6
8162306a36Sopenharmony_ci#define MT7622_ETHSYS_GMAC_RST			23
8262306a36Sopenharmony_ci#define MT7622_ETHSYS_EPHY_RST			24
8362306a36Sopenharmony_ci#define MT7622_ETHSYS_CRYPTO_RST		29
8462306a36Sopenharmony_ci#define MT7622_ETHSYS_PPE_RST			31
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT7622 */
87