162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2022 MediaTek Inc.
462306a36Sopenharmony_ci * Author: Sam Shih <sam.shih@mediatek.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7986
862306a36Sopenharmony_ci#define _DT_BINDINGS_RESET_CONTROLLER_MT7986
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* INFRACFG resets */
1162306a36Sopenharmony_ci#define MT7986_INFRACFG_PEXTP_MAC_SW_RST	6
1262306a36Sopenharmony_ci#define MT7986_INFRACFG_SSUSB_SW_RST		7
1362306a36Sopenharmony_ci#define MT7986_INFRACFG_EIP97_SW_RST		8
1462306a36Sopenharmony_ci#define MT7986_INFRACFG_AUDIO_SW_RST		13
1562306a36Sopenharmony_ci#define MT7986_INFRACFG_CQ_DMA_SW_RST		14
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define MT7986_INFRACFG_TRNG_SW_RST		17
1862306a36Sopenharmony_ci#define MT7986_INFRACFG_AP_DMA_SW_RST		32
1962306a36Sopenharmony_ci#define MT7986_INFRACFG_I2C_SW_RST		33
2062306a36Sopenharmony_ci#define MT7986_INFRACFG_NFI_SW_RST		34
2162306a36Sopenharmony_ci#define MT7986_INFRACFG_SPI0_SW_RST		35
2262306a36Sopenharmony_ci#define MT7986_INFRACFG_SPI1_SW_RST		36
2362306a36Sopenharmony_ci#define MT7986_INFRACFG_UART0_SW_RST		37
2462306a36Sopenharmony_ci#define MT7986_INFRACFG_UART1_SW_RST		38
2562306a36Sopenharmony_ci#define MT7986_INFRACFG_UART2_SW_RST		39
2662306a36Sopenharmony_ci#define MT7986_INFRACFG_AUXADC_SW_RST		43
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#define MT7986_INFRACFG_APXGPT_SW_RST		66
2962306a36Sopenharmony_ci#define MT7986_INFRACFG_PWM_SW_RST		68
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#define MT7986_INFRACFG_SW_RST_NUM		69
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci/* TOPRGU resets */
3462306a36Sopenharmony_ci#define MT7986_TOPRGU_APMIXEDSYS_SW_RST		0
3562306a36Sopenharmony_ci#define MT7986_TOPRGU_SGMII0_SW_RST		1
3662306a36Sopenharmony_ci#define MT7986_TOPRGU_SGMII1_SW_RST		2
3762306a36Sopenharmony_ci#define MT7986_TOPRGU_INFRA_SW_RST		3
3862306a36Sopenharmony_ci#define MT7986_TOPRGU_U2PHY_SW_RST		5
3962306a36Sopenharmony_ci#define MT7986_TOPRGU_PCIE_SW_RST		6
4062306a36Sopenharmony_ci#define MT7986_TOPRGU_SSUSB_SW_RST		7
4162306a36Sopenharmony_ci#define MT7986_TOPRGU_ETHDMA_SW_RST		20
4262306a36Sopenharmony_ci#define MT7986_TOPRGU_CONSYS_SW_RST		23
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci#define MT7986_TOPRGU_SW_RST_NUM		24
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci/* ETHSYS Subsystem resets */
4762306a36Sopenharmony_ci#define MT7986_ETHSYS_FE_SW_RST			6
4862306a36Sopenharmony_ci#define MT7986_ETHSYS_PMTR_SW_RST		8
4962306a36Sopenharmony_ci#define MT7986_ETHSYS_GMAC_SW_RST		23
5062306a36Sopenharmony_ci#define MT7986_ETHSYS_PPE0_SW_RST		30
5162306a36Sopenharmony_ci#define MT7986_ETHSYS_PPE1_SW_RST		31
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define MT7986_ETHSYS_SW_RST_NUM		32
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT7986 */
56