162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 OR MIT */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 462306a36Sopenharmony_ci * Copyright (C) 2022 StarFive Technology Co., Ltd. 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 862306a36Sopenharmony_ci#define __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* SYSCRG resets */ 1162306a36Sopenharmony_ci#define JH7110_SYSRST_JTAG_APB 0 1262306a36Sopenharmony_ci#define JH7110_SYSRST_SYSCON_APB 1 1362306a36Sopenharmony_ci#define JH7110_SYSRST_IOMUX_APB 2 1462306a36Sopenharmony_ci#define JH7110_SYSRST_BUS 3 1562306a36Sopenharmony_ci#define JH7110_SYSRST_DEBUG 4 1662306a36Sopenharmony_ci#define JH7110_SYSRST_CORE0 5 1762306a36Sopenharmony_ci#define JH7110_SYSRST_CORE1 6 1862306a36Sopenharmony_ci#define JH7110_SYSRST_CORE2 7 1962306a36Sopenharmony_ci#define JH7110_SYSRST_CORE3 8 2062306a36Sopenharmony_ci#define JH7110_SYSRST_CORE4 9 2162306a36Sopenharmony_ci#define JH7110_SYSRST_CORE0_ST 10 2262306a36Sopenharmony_ci#define JH7110_SYSRST_CORE1_ST 11 2362306a36Sopenharmony_ci#define JH7110_SYSRST_CORE2_ST 12 2462306a36Sopenharmony_ci#define JH7110_SYSRST_CORE3_ST 13 2562306a36Sopenharmony_ci#define JH7110_SYSRST_CORE4_ST 14 2662306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE0 15 2762306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE1 16 2862306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE2 17 2962306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE3 18 3062306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE4 19 3162306a36Sopenharmony_ci#define JH7110_SYSRST_TRACE_COM 20 3262306a36Sopenharmony_ci#define JH7110_SYSRST_GPU_APB 21 3362306a36Sopenharmony_ci#define JH7110_SYSRST_GPU_DOMA 22 3462306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_APB 23 3562306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_AXICFG0_AXI 24 3662306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_CPU_AXI 25 3762306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_DISP_AXI 26 3862306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_GPU_AXI 27 3962306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_ISP_AXI 28 4062306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_DDRC 29 4162306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_STG_AXI 30 4262306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_VDEC_AXI 31 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci#define JH7110_SYSRST_NOC_BUS_VENC_AXI 32 4562306a36Sopenharmony_ci#define JH7110_SYSRST_AXI_CFG1_AHB 33 4662306a36Sopenharmony_ci#define JH7110_SYSRST_AXI_CFG1_MAIN 34 4762306a36Sopenharmony_ci#define JH7110_SYSRST_AXI_CFG0_MAIN 35 4862306a36Sopenharmony_ci#define JH7110_SYSRST_AXI_CFG0_MAIN_DIV 36 4962306a36Sopenharmony_ci#define JH7110_SYSRST_AXI_CFG0_HIFI4 37 5062306a36Sopenharmony_ci#define JH7110_SYSRST_DDR_AXI 38 5162306a36Sopenharmony_ci#define JH7110_SYSRST_DDR_OSC 39 5262306a36Sopenharmony_ci#define JH7110_SYSRST_DDR_APB 40 5362306a36Sopenharmony_ci#define JH7110_SYSRST_ISP_TOP 41 5462306a36Sopenharmony_ci#define JH7110_SYSRST_ISP_TOP_AXI 42 5562306a36Sopenharmony_ci#define JH7110_SYSRST_VOUT_TOP_SRC 43 5662306a36Sopenharmony_ci#define JH7110_SYSRST_CODAJ12_AXI 44 5762306a36Sopenharmony_ci#define JH7110_SYSRST_CODAJ12_CORE 45 5862306a36Sopenharmony_ci#define JH7110_SYSRST_CODAJ12_APB 46 5962306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE511_AXI 47 6062306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE511_BPU 48 6162306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE511_VCE 49 6262306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE511_APB 50 6362306a36Sopenharmony_ci#define JH7110_SYSRST_VDEC_JPG 51 6462306a36Sopenharmony_ci#define JH7110_SYSRST_VDEC_MAIN 52 6562306a36Sopenharmony_ci#define JH7110_SYSRST_AXIMEM0_AXI 53 6662306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE420L_AXI 54 6762306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE420L_BPU 55 6862306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE420L_VCE 56 6962306a36Sopenharmony_ci#define JH7110_SYSRST_WAVE420L_APB 57 7062306a36Sopenharmony_ci#define JH7110_SYSRST_AXIMEM1_AXI 58 7162306a36Sopenharmony_ci#define JH7110_SYSRST_AXIMEM2_AXI 59 7262306a36Sopenharmony_ci#define JH7110_SYSRST_INTMEM 60 7362306a36Sopenharmony_ci#define JH7110_SYSRST_QSPI_AHB 61 7462306a36Sopenharmony_ci#define JH7110_SYSRST_QSPI_APB 62 7562306a36Sopenharmony_ci#define JH7110_SYSRST_QSPI_REF 63 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci#define JH7110_SYSRST_SDIO0_AHB 64 7862306a36Sopenharmony_ci#define JH7110_SYSRST_SDIO1_AHB 65 7962306a36Sopenharmony_ci#define JH7110_SYSRST_GMAC1_AXI 66 8062306a36Sopenharmony_ci#define JH7110_SYSRST_GMAC1_AHB 67 8162306a36Sopenharmony_ci#define JH7110_SYSRST_MAILBOX_APB 68 8262306a36Sopenharmony_ci#define JH7110_SYSRST_SPI0_APB 69 8362306a36Sopenharmony_ci#define JH7110_SYSRST_SPI1_APB 70 8462306a36Sopenharmony_ci#define JH7110_SYSRST_SPI2_APB 71 8562306a36Sopenharmony_ci#define JH7110_SYSRST_SPI3_APB 72 8662306a36Sopenharmony_ci#define JH7110_SYSRST_SPI4_APB 73 8762306a36Sopenharmony_ci#define JH7110_SYSRST_SPI5_APB 74 8862306a36Sopenharmony_ci#define JH7110_SYSRST_SPI6_APB 75 8962306a36Sopenharmony_ci#define JH7110_SYSRST_I2C0_APB 76 9062306a36Sopenharmony_ci#define JH7110_SYSRST_I2C1_APB 77 9162306a36Sopenharmony_ci#define JH7110_SYSRST_I2C2_APB 78 9262306a36Sopenharmony_ci#define JH7110_SYSRST_I2C3_APB 79 9362306a36Sopenharmony_ci#define JH7110_SYSRST_I2C4_APB 80 9462306a36Sopenharmony_ci#define JH7110_SYSRST_I2C5_APB 81 9562306a36Sopenharmony_ci#define JH7110_SYSRST_I2C6_APB 82 9662306a36Sopenharmony_ci#define JH7110_SYSRST_UART0_APB 83 9762306a36Sopenharmony_ci#define JH7110_SYSRST_UART0_CORE 84 9862306a36Sopenharmony_ci#define JH7110_SYSRST_UART1_APB 85 9962306a36Sopenharmony_ci#define JH7110_SYSRST_UART1_CORE 86 10062306a36Sopenharmony_ci#define JH7110_SYSRST_UART2_APB 87 10162306a36Sopenharmony_ci#define JH7110_SYSRST_UART2_CORE 88 10262306a36Sopenharmony_ci#define JH7110_SYSRST_UART3_APB 89 10362306a36Sopenharmony_ci#define JH7110_SYSRST_UART3_CORE 90 10462306a36Sopenharmony_ci#define JH7110_SYSRST_UART4_APB 91 10562306a36Sopenharmony_ci#define JH7110_SYSRST_UART4_CORE 92 10662306a36Sopenharmony_ci#define JH7110_SYSRST_UART5_APB 93 10762306a36Sopenharmony_ci#define JH7110_SYSRST_UART5_CORE 94 10862306a36Sopenharmony_ci#define JH7110_SYSRST_SPDIF_APB 95 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci#define JH7110_SYSRST_PWMDAC_APB 96 11162306a36Sopenharmony_ci#define JH7110_SYSRST_PDM_DMIC 97 11262306a36Sopenharmony_ci#define JH7110_SYSRST_PDM_APB 98 11362306a36Sopenharmony_ci#define JH7110_SYSRST_I2SRX_APB 99 11462306a36Sopenharmony_ci#define JH7110_SYSRST_I2SRX_BCLK 100 11562306a36Sopenharmony_ci#define JH7110_SYSRST_I2STX0_APB 101 11662306a36Sopenharmony_ci#define JH7110_SYSRST_I2STX0_BCLK 102 11762306a36Sopenharmony_ci#define JH7110_SYSRST_I2STX1_APB 103 11862306a36Sopenharmony_ci#define JH7110_SYSRST_I2STX1_BCLK 104 11962306a36Sopenharmony_ci#define JH7110_SYSRST_TDM_AHB 105 12062306a36Sopenharmony_ci#define JH7110_SYSRST_TDM_CORE 106 12162306a36Sopenharmony_ci#define JH7110_SYSRST_TDM_APB 107 12262306a36Sopenharmony_ci#define JH7110_SYSRST_PWM_APB 108 12362306a36Sopenharmony_ci#define JH7110_SYSRST_WDT_APB 109 12462306a36Sopenharmony_ci#define JH7110_SYSRST_WDT_CORE 110 12562306a36Sopenharmony_ci#define JH7110_SYSRST_CAN0_APB 111 12662306a36Sopenharmony_ci#define JH7110_SYSRST_CAN0_CORE 112 12762306a36Sopenharmony_ci#define JH7110_SYSRST_CAN0_TIMER 113 12862306a36Sopenharmony_ci#define JH7110_SYSRST_CAN1_APB 114 12962306a36Sopenharmony_ci#define JH7110_SYSRST_CAN1_CORE 115 13062306a36Sopenharmony_ci#define JH7110_SYSRST_CAN1_TIMER 116 13162306a36Sopenharmony_ci#define JH7110_SYSRST_TIMER_APB 117 13262306a36Sopenharmony_ci#define JH7110_SYSRST_TIMER0 118 13362306a36Sopenharmony_ci#define JH7110_SYSRST_TIMER1 119 13462306a36Sopenharmony_ci#define JH7110_SYSRST_TIMER2 120 13562306a36Sopenharmony_ci#define JH7110_SYSRST_TIMER3 121 13662306a36Sopenharmony_ci#define JH7110_SYSRST_INT_CTRL_APB 122 13762306a36Sopenharmony_ci#define JH7110_SYSRST_TEMP_APB 123 13862306a36Sopenharmony_ci#define JH7110_SYSRST_TEMP_CORE 124 13962306a36Sopenharmony_ci#define JH7110_SYSRST_JTAG_CERTIFICATION 125 14062306a36Sopenharmony_ci 14162306a36Sopenharmony_ci#define JH7110_SYSRST_END 126 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci/* AONCRG resets */ 14462306a36Sopenharmony_ci#define JH7110_AONRST_GMAC0_AXI 0 14562306a36Sopenharmony_ci#define JH7110_AONRST_GMAC0_AHB 1 14662306a36Sopenharmony_ci#define JH7110_AONRST_IOMUX 2 14762306a36Sopenharmony_ci#define JH7110_AONRST_PMU_APB 3 14862306a36Sopenharmony_ci#define JH7110_AONRST_PMU_WKUP 4 14962306a36Sopenharmony_ci#define JH7110_AONRST_RTC_APB 5 15062306a36Sopenharmony_ci#define JH7110_AONRST_RTC_CAL 6 15162306a36Sopenharmony_ci#define JH7110_AONRST_RTC_32K 7 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_ci#define JH7110_AONRST_END 8 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ci/* STGCRG resets */ 15662306a36Sopenharmony_ci#define JH7110_STGRST_SYSCON 0 15762306a36Sopenharmony_ci#define JH7110_STGRST_HIFI4_CORE 1 15862306a36Sopenharmony_ci#define JH7110_STGRST_HIFI4_AXI 2 15962306a36Sopenharmony_ci#define JH7110_STGRST_SEC_AHB 3 16062306a36Sopenharmony_ci#define JH7110_STGRST_E24_CORE 4 16162306a36Sopenharmony_ci#define JH7110_STGRST_DMA1P_AXI 5 16262306a36Sopenharmony_ci#define JH7110_STGRST_DMA1P_AHB 6 16362306a36Sopenharmony_ci#define JH7110_STGRST_USB0_AXI 7 16462306a36Sopenharmony_ci#define JH7110_STGRST_USB0_APB 8 16562306a36Sopenharmony_ci#define JH7110_STGRST_USB0_UTMI_APB 9 16662306a36Sopenharmony_ci#define JH7110_STGRST_USB0_PWRUP 10 16762306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_AXI_MST0 11 16862306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_AXI_SLV0 12 16962306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_AXI_SLV 13 17062306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_BRG 14 17162306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_CORE 15 17262306a36Sopenharmony_ci#define JH7110_STGRST_PCIE0_APB 16 17362306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_AXI_MST0 17 17462306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_AXI_SLV0 18 17562306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_AXI_SLV 19 17662306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_BRG 20 17762306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_CORE 21 17862306a36Sopenharmony_ci#define JH7110_STGRST_PCIE1_APB 22 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci#define JH7110_STGRST_END 23 18162306a36Sopenharmony_ci 18262306a36Sopenharmony_ci/* ISPCRG resets */ 18362306a36Sopenharmony_ci#define JH7110_ISPRST_ISPV2_TOP_WRAPPER_P 0 18462306a36Sopenharmony_ci#define JH7110_ISPRST_ISPV2_TOP_WRAPPER_C 1 18562306a36Sopenharmony_ci#define JH7110_ISPRST_M31DPHY_HW 2 18662306a36Sopenharmony_ci#define JH7110_ISPRST_M31DPHY_B09_AON 3 18762306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_APB 4 18862306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_PIXEL_IF0 5 18962306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_PIXEL_IF1 6 19062306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_PIXEL_IF2 7 19162306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_PIXEL_IF3 8 19262306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_SYS 9 19362306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_P_AXI_RD 10 19462306a36Sopenharmony_ci#define JH7110_ISPRST_VIN_P_AXI_WR 11 19562306a36Sopenharmony_ci 19662306a36Sopenharmony_ci#define JH7110_ISPRST_END 12 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_ci/* VOUTCRG resets */ 19962306a36Sopenharmony_ci#define JH7110_VOUTRST_DC8200_AXI 0 20062306a36Sopenharmony_ci#define JH7110_VOUTRST_DC8200_AHB 1 20162306a36Sopenharmony_ci#define JH7110_VOUTRST_DC8200_CORE 2 20262306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_DPI 3 20362306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_APB 4 20462306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_RXESC 5 20562306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_SYS 6 20662306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_TXBYTEHS 7 20762306a36Sopenharmony_ci#define JH7110_VOUTRST_DSITX_TXESC 8 20862306a36Sopenharmony_ci#define JH7110_VOUTRST_HDMI_TX_HDMI 9 20962306a36Sopenharmony_ci#define JH7110_VOUTRST_MIPITX_DPHY_SYS 10 21062306a36Sopenharmony_ci#define JH7110_VOUTRST_MIPITX_DPHY_TXBYTEHS 11 21162306a36Sopenharmony_ci 21262306a36Sopenharmony_ci#define JH7110_VOUTRST_END 12 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ci#endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ */ 215