1c3c57683SShunli Wang /* 2c3c57683SShunli Wang * Copyright (c) 2015 MediaTek, Shunli Wang <shunli.wang@mediatek.com> 3c3c57683SShunli Wang * 4c3c57683SShunli Wang * This program is free software; you can redistribute it and/or modify 5c3c57683SShunli Wang * it under the terms of the GNU General Public License version 2 as 6c3c57683SShunli Wang * published by the Free Software Foundation. 7c3c57683SShunli Wang * 8c3c57683SShunli Wang * This program is distributed in the hope that it will be useful, 9c3c57683SShunli Wang * but WITHOUT ANY WARRANTY; without even the implied warranty of 10c3c57683SShunli Wang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11c3c57683SShunli Wang * GNU General Public License for more details. 12c3c57683SShunli Wang */ 13c3c57683SShunli Wang 14c3c57683SShunli Wang #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT2701 15c3c57683SShunli Wang #define _DT_BINDINGS_RESET_CONTROLLER_MT2701 16c3c57683SShunli Wang 17c3c57683SShunli Wang /* INFRACFG resets */ 18c3c57683SShunli Wang #define MT2701_INFRA_EMI_REG_RST 0 19c3c57683SShunli Wang #define MT2701_INFRA_DRAMC0_A0_RST 1 20c3c57683SShunli Wang #define MT2701_INFRA_FHCTL_RST 2 21c3c57683SShunli Wang #define MT2701_INFRA_APCIRQ_EINT_RST 3 22c3c57683SShunli Wang #define MT2701_INFRA_APXGPT_RST 4 23c3c57683SShunli Wang #define MT2701_INFRA_SCPSYS_RST 5 24c3c57683SShunli Wang #define MT2701_INFRA_KP_RST 6 25c3c57683SShunli Wang #define MT2701_INFRA_PMIC_WRAP_RST 7 26c3c57683SShunli Wang #define MT2701_INFRA_MIPI_RST 8 27c3c57683SShunli Wang #define MT2701_INFRA_IRRX_RST 9 28c3c57683SShunli Wang #define MT2701_INFRA_CEC_RST 10 29c3c57683SShunli Wang #define MT2701_INFRA_EMI_RST 32 30c3c57683SShunli Wang #define MT2701_INFRA_DRAMC0_RST 34 31c3c57683SShunli Wang #define MT2701_INFRA_TRNG_RST 37 32c3c57683SShunli Wang #define MT2701_INFRA_SYSIRQ_RST 38 33c3c57683SShunli Wang 34c3c57683SShunli Wang /* PERICFG resets */ 35c3c57683SShunli Wang #define MT2701_PERI_UART0_SW_RST 0 36c3c57683SShunli Wang #define MT2701_PERI_UART1_SW_RST 1 37c3c57683SShunli Wang #define MT2701_PERI_UART2_SW_RST 2 38c3c57683SShunli Wang #define MT2701_PERI_UART3_SW_RST 3 39c3c57683SShunli Wang #define MT2701_PERI_GCPU_SW_RST 5 40c3c57683SShunli Wang #define MT2701_PERI_BTIF_SW_RST 6 41c3c57683SShunli Wang #define MT2701_PERI_PWM_SW_RST 8 42c3c57683SShunli Wang #define MT2701_PERI_AUXADC_SW_RST 10 43c3c57683SShunli Wang #define MT2701_PERI_DMA_SW_RST 11 44c3c57683SShunli Wang #define MT2701_PERI_NFI_SW_RST 14 45c3c57683SShunli Wang #define MT2701_PERI_NLI_SW_RST 15 46c3c57683SShunli Wang #define MT2701_PERI_THERM_SW_RST 16 47c3c57683SShunli Wang #define MT2701_PERI_MSDC2_SW_RST 17 48c3c57683SShunli Wang #define MT2701_PERI_MSDC0_SW_RST 19 49c3c57683SShunli Wang #define MT2701_PERI_MSDC1_SW_RST 20 50c3c57683SShunli Wang #define MT2701_PERI_I2C0_SW_RST 22 51c3c57683SShunli Wang #define MT2701_PERI_I2C1_SW_RST 23 52c3c57683SShunli Wang #define MT2701_PERI_I2C2_SW_RST 24 53c3c57683SShunli Wang #define MT2701_PERI_I2C3_SW_RST 25 54c3c57683SShunli Wang #define MT2701_PERI_USB_SW_RST 28 55c3c57683SShunli Wang #define MT2701_PERI_ETH_SW_RST 29 56c3c57683SShunli Wang #define MT2701_PERI_SPI0_SW_RST 33 57c3c57683SShunli Wang 58c3c57683SShunli Wang /* TOPRGU resets */ 59c3c57683SShunli Wang #define MT2701_TOPRGU_INFRA_RST 0 60c3c57683SShunli Wang #define MT2701_TOPRGU_MM_RST 1 61c3c57683SShunli Wang #define MT2701_TOPRGU_MFG_RST 2 62c3c57683SShunli Wang #define MT2701_TOPRGU_ETHDMA_RST 3 63c3c57683SShunli Wang #define MT2701_TOPRGU_VDEC_RST 4 64c3c57683SShunli Wang #define MT2701_TOPRGU_VENC_IMG_RST 5 65c3c57683SShunli Wang #define MT2701_TOPRGU_DDRPHY_RST 6 66c3c57683SShunli Wang #define MT2701_TOPRGU_MD_RST 7 67c3c57683SShunli Wang #define MT2701_TOPRGU_INFRA_AO_RST 8 68c3c57683SShunli Wang #define MT2701_TOPRGU_CONN_RST 9 69c3c57683SShunli Wang #define MT2701_TOPRGU_APMIXED_RST 10 70c3c57683SShunli Wang #define MT2701_TOPRGU_HIFSYS_RST 11 71c3c57683SShunli Wang #define MT2701_TOPRGU_CONN_MCU_RST 12 72c3c57683SShunli Wang #define MT2701_TOPRGU_BDP_DISP_RST 13 73c3c57683SShunli Wang 74c3c57683SShunli Wang /* HIFSYS resets */ 75c3c57683SShunli Wang #define MT2701_HIFSYS_UHOST0_RST 3 76c3c57683SShunli Wang #define MT2701_HIFSYS_UHOST1_RST 4 77c3c57683SShunli Wang #define MT2701_HIFSYS_UPHY0_RST 21 78c3c57683SShunli Wang #define MT2701_HIFSYS_UPHY1_RST 22 79c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE0_RST 24 80c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE1_RST 25 81c3c57683SShunli Wang #define MT2701_HIFSYS_PCIE2_RST 26 82c3c57683SShunli Wang 837c2adaf1SJohn Crispin /* ETHSYS resets */ 847c2adaf1SJohn Crispin #define MT2701_ETHSYS_SYS_RST 0 857c2adaf1SJohn Crispin #define MT2701_ETHSYS_MCM_RST 2 867c2adaf1SJohn Crispin #define MT2701_ETHSYS_FE_RST 6 877c2adaf1SJohn Crispin #define MT2701_ETHSYS_GMAC_RST 23 887c2adaf1SJohn Crispin #define MT2701_ETHSYS_PPE_RST 31 897c2adaf1SJohn Crispin 90c3c57683SShunli Wang #endif /* _DT_BINDINGS_RESET_CONTROLLER_MT2701 */ 91