1fac71e4eSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 2fac71e4eSEmmanuel Vadot /* 3fac71e4eSEmmanuel Vadot * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 4*aa1a8ff2SEmmanuel Vadot * Copyright (C) 2022 StarFive Technology Co., Ltd. 5fac71e4eSEmmanuel Vadot */ 6fac71e4eSEmmanuel Vadot 7fac71e4eSEmmanuel Vadot #ifndef __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 8fac71e4eSEmmanuel Vadot #define __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 9fac71e4eSEmmanuel Vadot 10fac71e4eSEmmanuel Vadot /* SYSCRG resets */ 11fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_JTAG_APB 0 12fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SYSCON_APB 1 13fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_IOMUX_APB 2 14fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_BUS 3 15fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_DEBUG 4 16fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE0 5 17fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE1 6 18fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE2 7 19fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE3 8 20fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE4 9 21fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE0_ST 10 22fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE1_ST 11 23fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE2_ST 12 24fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE3_ST 13 25fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CORE4_ST 14 26fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE0 15 27fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE1 16 28fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE2 17 29fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE3 18 30fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE4 19 31fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TRACE_COM 20 32fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_GPU_APB 21 33fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_GPU_DOMA 22 34fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_APB 23 35fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_AXICFG0_AXI 24 36fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_CPU_AXI 25 37fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_DISP_AXI 26 38fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_GPU_AXI 27 39fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_ISP_AXI 28 40fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_DDRC 29 41fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_STG_AXI 30 42fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_VDEC_AXI 31 43fac71e4eSEmmanuel Vadot 44fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_NOC_BUS_VENC_AXI 32 45fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXI_CFG1_AHB 33 46fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXI_CFG1_MAIN 34 47fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXI_CFG0_MAIN 35 48fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXI_CFG0_MAIN_DIV 36 49fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXI_CFG0_HIFI4 37 50fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_DDR_AXI 38 51fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_DDR_OSC 39 52fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_DDR_APB 40 53fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_ISP_TOP 41 54fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_ISP_TOP_AXI 42 55fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_VOUT_TOP_SRC 43 56fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CODAJ12_AXI 44 57fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CODAJ12_CORE 45 58fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CODAJ12_APB 46 59fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE511_AXI 47 60fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE511_BPU 48 61fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE511_VCE 49 62fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE511_APB 50 63fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_VDEC_JPG 51 64fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_VDEC_MAIN 52 65fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXIMEM0_AXI 53 66fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE420L_AXI 54 67fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE420L_BPU 55 68fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE420L_VCE 56 69fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WAVE420L_APB 57 70fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXIMEM1_AXI 58 71fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_AXIMEM2_AXI 59 72fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_INTMEM 60 73fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_QSPI_AHB 61 74fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_QSPI_APB 62 75fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_QSPI_REF 63 76fac71e4eSEmmanuel Vadot 77fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SDIO0_AHB 64 78fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SDIO1_AHB 65 79fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_GMAC1_AXI 66 80fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_GMAC1_AHB 67 81fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_MAILBOX_APB 68 82fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI0_APB 69 83fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI1_APB 70 84fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI2_APB 71 85fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI3_APB 72 86fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI4_APB 73 87fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI5_APB 74 88fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPI6_APB 75 89fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C0_APB 76 90fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C1_APB 77 91fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C2_APB 78 92fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C3_APB 79 93fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C4_APB 80 94fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C5_APB 81 95fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2C6_APB 82 96fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART0_APB 83 97fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART0_CORE 84 98fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART1_APB 85 99fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART1_CORE 86 100fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART2_APB 87 101fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART2_CORE 88 102fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART3_APB 89 103fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART3_CORE 90 104fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART4_APB 91 105fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART4_CORE 92 106fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART5_APB 93 107fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_UART5_CORE 94 108fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_SPDIF_APB 95 109fac71e4eSEmmanuel Vadot 110fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_PWMDAC_APB 96 111fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_PDM_DMIC 97 112fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_PDM_APB 98 113fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2SRX_APB 99 114fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2SRX_BCLK 100 115fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2STX0_APB 101 116fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2STX0_BCLK 102 117fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2STX1_APB 103 118fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_I2STX1_BCLK 104 119fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TDM_AHB 105 120fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TDM_CORE 106 121fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TDM_APB 107 122fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_PWM_APB 108 123fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WDT_APB 109 124fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_WDT_CORE 110 125fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN0_APB 111 126fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN0_CORE 112 127fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN0_TIMER 113 128fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN1_APB 114 129fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN1_CORE 115 130fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_CAN1_TIMER 116 131fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TIMER_APB 117 132fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TIMER0 118 133fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TIMER1 119 134fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TIMER2 120 135fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TIMER3 121 136fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_INT_CTRL_APB 122 137fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TEMP_APB 123 138fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_TEMP_CORE 124 139fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_JTAG_CERTIFICATION 125 140fac71e4eSEmmanuel Vadot 141fac71e4eSEmmanuel Vadot #define JH7110_SYSRST_END 126 142fac71e4eSEmmanuel Vadot 143fac71e4eSEmmanuel Vadot /* AONCRG resets */ 144fac71e4eSEmmanuel Vadot #define JH7110_AONRST_GMAC0_AXI 0 145fac71e4eSEmmanuel Vadot #define JH7110_AONRST_GMAC0_AHB 1 146fac71e4eSEmmanuel Vadot #define JH7110_AONRST_IOMUX 2 147fac71e4eSEmmanuel Vadot #define JH7110_AONRST_PMU_APB 3 148fac71e4eSEmmanuel Vadot #define JH7110_AONRST_PMU_WKUP 4 149fac71e4eSEmmanuel Vadot #define JH7110_AONRST_RTC_APB 5 150fac71e4eSEmmanuel Vadot #define JH7110_AONRST_RTC_CAL 6 151fac71e4eSEmmanuel Vadot #define JH7110_AONRST_RTC_32K 7 152fac71e4eSEmmanuel Vadot 153fac71e4eSEmmanuel Vadot #define JH7110_AONRST_END 8 154fac71e4eSEmmanuel Vadot 155*aa1a8ff2SEmmanuel Vadot /* STGCRG resets */ 156*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_SYSCON 0 157*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_HIFI4_CORE 1 158*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_HIFI4_AXI 2 159*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_SEC_AHB 3 160*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_E24_CORE 4 161*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_DMA1P_AXI 5 162*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_DMA1P_AHB 6 163*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_USB0_AXI 7 164*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_USB0_APB 8 165*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_USB0_UTMI_APB 9 166*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_USB0_PWRUP 10 167*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_AXI_MST0 11 168*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_AXI_SLV0 12 169*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_AXI_SLV 13 170*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_BRG 14 171*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_CORE 15 172*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE0_APB 16 173*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_AXI_MST0 17 174*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_AXI_SLV0 18 175*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_AXI_SLV 19 176*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_BRG 20 177*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_CORE 21 178*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_PCIE1_APB 22 179*aa1a8ff2SEmmanuel Vadot 180*aa1a8ff2SEmmanuel Vadot #define JH7110_STGRST_END 23 181*aa1a8ff2SEmmanuel Vadot 182*aa1a8ff2SEmmanuel Vadot /* ISPCRG resets */ 183*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_P 0 184*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_ISPV2_TOP_WRAPPER_C 1 185*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_M31DPHY_HW 2 186*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_M31DPHY_B09_AON 3 187*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_APB 4 188*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_PIXEL_IF0 5 189*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_PIXEL_IF1 6 190*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_PIXEL_IF2 7 191*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_PIXEL_IF3 8 192*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_SYS 9 193*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_P_AXI_RD 10 194*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_VIN_P_AXI_WR 11 195*aa1a8ff2SEmmanuel Vadot 196*aa1a8ff2SEmmanuel Vadot #define JH7110_ISPRST_END 12 197*aa1a8ff2SEmmanuel Vadot 198*aa1a8ff2SEmmanuel Vadot /* VOUTCRG resets */ 199*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DC8200_AXI 0 200*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DC8200_AHB 1 201*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DC8200_CORE 2 202*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_DPI 3 203*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_APB 4 204*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_RXESC 5 205*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_SYS 6 206*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_TXBYTEHS 7 207*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_DSITX_TXESC 8 208*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_HDMI_TX_HDMI 9 209*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_MIPITX_DPHY_SYS 10 210*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_MIPITX_DPHY_TXBYTEHS 11 211*aa1a8ff2SEmmanuel Vadot 212*aa1a8ff2SEmmanuel Vadot #define JH7110_VOUTRST_END 12 213*aa1a8ff2SEmmanuel Vadot 214fac71e4eSEmmanuel Vadot #endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ */ 215