18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2017 MediaTek Inc. 48c2ecf20Sopenharmony_ci * Author: Sean Wang <sean.wang@mediatek.com> 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT7622 88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_RESET_CONTROLLER_MT7622 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* INFRACFG resets */ 118c2ecf20Sopenharmony_ci#define MT7622_INFRA_EMI_REG_RST 0 128c2ecf20Sopenharmony_ci#define MT7622_INFRA_DRAMC0_A0_RST 1 138c2ecf20Sopenharmony_ci#define MT7622_INFRA_APCIRQ_EINT_RST 3 148c2ecf20Sopenharmony_ci#define MT7622_INFRA_APXGPT_RST 4 158c2ecf20Sopenharmony_ci#define MT7622_INFRA_SCPSYS_RST 5 168c2ecf20Sopenharmony_ci#define MT7622_INFRA_PMIC_WRAP_RST 7 178c2ecf20Sopenharmony_ci#define MT7622_INFRA_IRRX_RST 9 188c2ecf20Sopenharmony_ci#define MT7622_INFRA_EMI_RST 16 198c2ecf20Sopenharmony_ci#define MT7622_INFRA_WED0_RST 17 208c2ecf20Sopenharmony_ci#define MT7622_INFRA_DRAMC_RST 18 218c2ecf20Sopenharmony_ci#define MT7622_INFRA_CCI_INTF_RST 19 228c2ecf20Sopenharmony_ci#define MT7622_INFRA_TRNG_RST 21 238c2ecf20Sopenharmony_ci#define MT7622_INFRA_SYSIRQ_RST 22 248c2ecf20Sopenharmony_ci#define MT7622_INFRA_WED1_RST 25 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* PERICFG Subsystem resets */ 278c2ecf20Sopenharmony_ci#define MT7622_PERI_UART0_SW_RST 0 288c2ecf20Sopenharmony_ci#define MT7622_PERI_UART1_SW_RST 1 298c2ecf20Sopenharmony_ci#define MT7622_PERI_UART2_SW_RST 2 308c2ecf20Sopenharmony_ci#define MT7622_PERI_UART3_SW_RST 3 318c2ecf20Sopenharmony_ci#define MT7622_PERI_UART4_SW_RST 4 328c2ecf20Sopenharmony_ci#define MT7622_PERI_BTIF_SW_RST 6 338c2ecf20Sopenharmony_ci#define MT7622_PERI_PWM_SW_RST 8 348c2ecf20Sopenharmony_ci#define MT7622_PERI_AUXADC_SW_RST 10 358c2ecf20Sopenharmony_ci#define MT7622_PERI_DMA_SW_RST 11 368c2ecf20Sopenharmony_ci#define MT7622_PERI_IRTX_SW_RST 13 378c2ecf20Sopenharmony_ci#define MT7622_PERI_NFI_SW_RST 14 388c2ecf20Sopenharmony_ci#define MT7622_PERI_THERM_SW_RST 16 398c2ecf20Sopenharmony_ci#define MT7622_PERI_MSDC0_SW_RST 19 408c2ecf20Sopenharmony_ci#define MT7622_PERI_MSDC1_SW_RST 20 418c2ecf20Sopenharmony_ci#define MT7622_PERI_I2C0_SW_RST 22 428c2ecf20Sopenharmony_ci#define MT7622_PERI_I2C1_SW_RST 23 438c2ecf20Sopenharmony_ci#define MT7622_PERI_I2C2_SW_RST 24 448c2ecf20Sopenharmony_ci#define MT7622_PERI_SPI0_SW_RST 33 458c2ecf20Sopenharmony_ci#define MT7622_PERI_SPI1_SW_RST 34 468c2ecf20Sopenharmony_ci#define MT7622_PERI_FLASHIF_SW_RST 36 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/* TOPRGU resets */ 498c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_INFRA_RST 0 508c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_ETHDMA_RST 1 518c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_DDRPHY_RST 6 528c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_INFRA_AO_RST 8 538c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_CONN_RST 9 548c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_APMIXED_RST 10 558c2ecf20Sopenharmony_ci#define MT7622_TOPRGU_CONN_MCU_RST 12 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci/* PCIe/SATA Subsystem resets */ 588c2ecf20Sopenharmony_ci#define MT7622_SATA_PHY_REG_RST 12 598c2ecf20Sopenharmony_ci#define MT7622_SATA_PHY_SW_RST 13 608c2ecf20Sopenharmony_ci#define MT7622_SATA_AXI_BUS_RST 15 618c2ecf20Sopenharmony_ci#define MT7622_PCIE1_CORE_RST 19 628c2ecf20Sopenharmony_ci#define MT7622_PCIE1_MMIO_RST 20 638c2ecf20Sopenharmony_ci#define MT7622_PCIE1_HRST 21 648c2ecf20Sopenharmony_ci#define MT7622_PCIE1_USER_RST 22 658c2ecf20Sopenharmony_ci#define MT7622_PCIE1_PIPE_RST 23 668c2ecf20Sopenharmony_ci#define MT7622_PCIE0_CORE_RST 27 678c2ecf20Sopenharmony_ci#define MT7622_PCIE0_MMIO_RST 28 688c2ecf20Sopenharmony_ci#define MT7622_PCIE0_HRST 29 698c2ecf20Sopenharmony_ci#define MT7622_PCIE0_USER_RST 30 708c2ecf20Sopenharmony_ci#define MT7622_PCIE0_PIPE_RST 31 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci/* SSUSB Subsystem resets */ 738c2ecf20Sopenharmony_ci#define MT7622_SSUSB_PHY_PWR_RST 3 748c2ecf20Sopenharmony_ci#define MT7622_SSUSB_MAC_PWR_RST 4 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci/* ETHSYS Subsystem resets */ 778c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_SYS_RST 0 788c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_MCM_RST 2 798c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_HSDMA_RST 5 808c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_FE_RST 6 818c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_GMAC_RST 23 828c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_EPHY_RST 24 838c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_CRYPTO_RST 29 848c2ecf20Sopenharmony_ci#define MT7622_ETHSYS_PPE_RST 31 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT7622 */ 87