1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */ 2*c66ec88fSEmmanuel Vadot /* 3*c66ec88fSEmmanuel Vadot * Copyright (c) 2017 MediaTek Inc. 4*c66ec88fSEmmanuel Vadot * Author: Sean Wang <sean.wang@mediatek.com> 5*c66ec88fSEmmanuel Vadot */ 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7622 8*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_RESET_CONTROLLER_MT7622 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot /* INFRACFG resets */ 11*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_EMI_REG_RST 0 12*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_DRAMC0_A0_RST 1 13*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_APCIRQ_EINT_RST 3 14*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_APXGPT_RST 4 15*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_SCPSYS_RST 5 16*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_PMIC_WRAP_RST 7 17*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_IRRX_RST 9 18*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_EMI_RST 16 19*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_WED0_RST 17 20*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_DRAMC_RST 18 21*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_CCI_INTF_RST 19 22*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_TRNG_RST 21 23*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_SYSIRQ_RST 22 24*c66ec88fSEmmanuel Vadot #define MT7622_INFRA_WED1_RST 25 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot /* PERICFG Subsystem resets */ 27*c66ec88fSEmmanuel Vadot #define MT7622_PERI_UART0_SW_RST 0 28*c66ec88fSEmmanuel Vadot #define MT7622_PERI_UART1_SW_RST 1 29*c66ec88fSEmmanuel Vadot #define MT7622_PERI_UART2_SW_RST 2 30*c66ec88fSEmmanuel Vadot #define MT7622_PERI_UART3_SW_RST 3 31*c66ec88fSEmmanuel Vadot #define MT7622_PERI_UART4_SW_RST 4 32*c66ec88fSEmmanuel Vadot #define MT7622_PERI_BTIF_SW_RST 6 33*c66ec88fSEmmanuel Vadot #define MT7622_PERI_PWM_SW_RST 8 34*c66ec88fSEmmanuel Vadot #define MT7622_PERI_AUXADC_SW_RST 10 35*c66ec88fSEmmanuel Vadot #define MT7622_PERI_DMA_SW_RST 11 36*c66ec88fSEmmanuel Vadot #define MT7622_PERI_IRTX_SW_RST 13 37*c66ec88fSEmmanuel Vadot #define MT7622_PERI_NFI_SW_RST 14 38*c66ec88fSEmmanuel Vadot #define MT7622_PERI_THERM_SW_RST 16 39*c66ec88fSEmmanuel Vadot #define MT7622_PERI_MSDC0_SW_RST 19 40*c66ec88fSEmmanuel Vadot #define MT7622_PERI_MSDC1_SW_RST 20 41*c66ec88fSEmmanuel Vadot #define MT7622_PERI_I2C0_SW_RST 22 42*c66ec88fSEmmanuel Vadot #define MT7622_PERI_I2C1_SW_RST 23 43*c66ec88fSEmmanuel Vadot #define MT7622_PERI_I2C2_SW_RST 24 44*c66ec88fSEmmanuel Vadot #define MT7622_PERI_SPI0_SW_RST 33 45*c66ec88fSEmmanuel Vadot #define MT7622_PERI_SPI1_SW_RST 34 46*c66ec88fSEmmanuel Vadot #define MT7622_PERI_FLASHIF_SW_RST 36 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel Vadot /* TOPRGU resets */ 49*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_INFRA_RST 0 50*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_ETHDMA_RST 1 51*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_DDRPHY_RST 6 52*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_INFRA_AO_RST 8 53*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_CONN_RST 9 54*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_APMIXED_RST 10 55*c66ec88fSEmmanuel Vadot #define MT7622_TOPRGU_CONN_MCU_RST 12 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel Vadot /* PCIe/SATA Subsystem resets */ 58*c66ec88fSEmmanuel Vadot #define MT7622_SATA_PHY_REG_RST 12 59*c66ec88fSEmmanuel Vadot #define MT7622_SATA_PHY_SW_RST 13 60*c66ec88fSEmmanuel Vadot #define MT7622_SATA_AXI_BUS_RST 15 61*c66ec88fSEmmanuel Vadot #define MT7622_PCIE1_CORE_RST 19 62*c66ec88fSEmmanuel Vadot #define MT7622_PCIE1_MMIO_RST 20 63*c66ec88fSEmmanuel Vadot #define MT7622_PCIE1_HRST 21 64*c66ec88fSEmmanuel Vadot #define MT7622_PCIE1_USER_RST 22 65*c66ec88fSEmmanuel Vadot #define MT7622_PCIE1_PIPE_RST 23 66*c66ec88fSEmmanuel Vadot #define MT7622_PCIE0_CORE_RST 27 67*c66ec88fSEmmanuel Vadot #define MT7622_PCIE0_MMIO_RST 28 68*c66ec88fSEmmanuel Vadot #define MT7622_PCIE0_HRST 29 69*c66ec88fSEmmanuel Vadot #define MT7622_PCIE0_USER_RST 30 70*c66ec88fSEmmanuel Vadot #define MT7622_PCIE0_PIPE_RST 31 71*c66ec88fSEmmanuel Vadot 72*c66ec88fSEmmanuel Vadot /* SSUSB Subsystem resets */ 73*c66ec88fSEmmanuel Vadot #define MT7622_SSUSB_PHY_PWR_RST 3 74*c66ec88fSEmmanuel Vadot #define MT7622_SSUSB_MAC_PWR_RST 4 75*c66ec88fSEmmanuel Vadot 76*c66ec88fSEmmanuel Vadot /* ETHSYS Subsystem resets */ 77*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_SYS_RST 0 78*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_MCM_RST 2 79*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_HSDMA_RST 5 80*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_FE_RST 6 81*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_GMAC_RST 23 82*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_EPHY_RST 24 83*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_CRYPTO_RST 29 84*c66ec88fSEmmanuel Vadot #define MT7622_ETHSYS_PPE_RST 31 85*c66ec88fSEmmanuel Vadot 86*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7622 */ 87