17fce1e39SEmil Renner Berthing /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 27fce1e39SEmil Renner Berthing /* 37fce1e39SEmil Renner Berthing * Copyright (C) 2022 Emil Renner Berthing <kernel@esmil.dk> 47fce1e39SEmil Renner Berthing */ 57fce1e39SEmil Renner Berthing 67fce1e39SEmil Renner Berthing #ifndef __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 77fce1e39SEmil Renner Berthing #define __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ 87fce1e39SEmil Renner Berthing 97fce1e39SEmil Renner Berthing /* SYSCRG resets */ 107fce1e39SEmil Renner Berthing #define JH7110_SYSRST_JTAG_APB 0 117fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SYSCON_APB 1 127fce1e39SEmil Renner Berthing #define JH7110_SYSRST_IOMUX_APB 2 137fce1e39SEmil Renner Berthing #define JH7110_SYSRST_BUS 3 147fce1e39SEmil Renner Berthing #define JH7110_SYSRST_DEBUG 4 157fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE0 5 167fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE1 6 177fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE2 7 187fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE3 8 197fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE4 9 207fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE0_ST 10 217fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE1_ST 11 227fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE2_ST 12 237fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE3_ST 13 247fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CORE4_ST 14 257fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE0 15 267fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE1 16 277fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE2 17 287fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE3 18 297fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE4 19 307fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TRACE_COM 20 317fce1e39SEmil Renner Berthing #define JH7110_SYSRST_GPU_APB 21 327fce1e39SEmil Renner Berthing #define JH7110_SYSRST_GPU_DOMA 22 337fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_APB 23 347fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_AXICFG0_AXI 24 357fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_CPU_AXI 25 367fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_DISP_AXI 26 377fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_GPU_AXI 27 387fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_ISP_AXI 28 397fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_DDRC 29 407fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_STG_AXI 30 417fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_VDEC_AXI 31 427fce1e39SEmil Renner Berthing 437fce1e39SEmil Renner Berthing #define JH7110_SYSRST_NOC_BUS_VENC_AXI 32 447fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXI_CFG1_AHB 33 457fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXI_CFG1_MAIN 34 467fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXI_CFG0_MAIN 35 477fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXI_CFG0_MAIN_DIV 36 487fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXI_CFG0_HIFI4 37 497fce1e39SEmil Renner Berthing #define JH7110_SYSRST_DDR_AXI 38 507fce1e39SEmil Renner Berthing #define JH7110_SYSRST_DDR_OSC 39 517fce1e39SEmil Renner Berthing #define JH7110_SYSRST_DDR_APB 40 527fce1e39SEmil Renner Berthing #define JH7110_SYSRST_ISP_TOP 41 537fce1e39SEmil Renner Berthing #define JH7110_SYSRST_ISP_TOP_AXI 42 547fce1e39SEmil Renner Berthing #define JH7110_SYSRST_VOUT_TOP_SRC 43 557fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CODAJ12_AXI 44 567fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CODAJ12_CORE 45 577fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CODAJ12_APB 46 587fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE511_AXI 47 597fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE511_BPU 48 607fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE511_VCE 49 617fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE511_APB 50 627fce1e39SEmil Renner Berthing #define JH7110_SYSRST_VDEC_JPG 51 637fce1e39SEmil Renner Berthing #define JH7110_SYSRST_VDEC_MAIN 52 647fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXIMEM0_AXI 53 657fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE420L_AXI 54 667fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE420L_BPU 55 677fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE420L_VCE 56 687fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WAVE420L_APB 57 697fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXIMEM1_AXI 58 707fce1e39SEmil Renner Berthing #define JH7110_SYSRST_AXIMEM2_AXI 59 717fce1e39SEmil Renner Berthing #define JH7110_SYSRST_INTMEM 60 727fce1e39SEmil Renner Berthing #define JH7110_SYSRST_QSPI_AHB 61 737fce1e39SEmil Renner Berthing #define JH7110_SYSRST_QSPI_APB 62 747fce1e39SEmil Renner Berthing #define JH7110_SYSRST_QSPI_REF 63 757fce1e39SEmil Renner Berthing 767fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SDIO0_AHB 64 777fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SDIO1_AHB 65 787fce1e39SEmil Renner Berthing #define JH7110_SYSRST_GMAC1_AXI 66 797fce1e39SEmil Renner Berthing #define JH7110_SYSRST_GMAC1_AHB 67 807fce1e39SEmil Renner Berthing #define JH7110_SYSRST_MAILBOX_APB 68 817fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI0_APB 69 827fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI1_APB 70 837fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI2_APB 71 847fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI3_APB 72 857fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI4_APB 73 867fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI5_APB 74 877fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPI6_APB 75 887fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C0_APB 76 897fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C1_APB 77 907fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C2_APB 78 917fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C3_APB 79 927fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C4_APB 80 937fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C5_APB 81 947fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2C6_APB 82 957fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART0_APB 83 967fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART0_CORE 84 977fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART1_APB 85 987fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART1_CORE 86 997fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART2_APB 87 1007fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART2_CORE 88 1017fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART3_APB 89 1027fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART3_CORE 90 1037fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART4_APB 91 1047fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART4_CORE 92 1057fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART5_APB 93 1067fce1e39SEmil Renner Berthing #define JH7110_SYSRST_UART5_CORE 94 1077fce1e39SEmil Renner Berthing #define JH7110_SYSRST_SPDIF_APB 95 1087fce1e39SEmil Renner Berthing 1097fce1e39SEmil Renner Berthing #define JH7110_SYSRST_PWMDAC_APB 96 1107fce1e39SEmil Renner Berthing #define JH7110_SYSRST_PDM_DMIC 97 1117fce1e39SEmil Renner Berthing #define JH7110_SYSRST_PDM_APB 98 1127fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2SRX_APB 99 1137fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2SRX_BCLK 100 1147fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2STX0_APB 101 1157fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2STX0_BCLK 102 1167fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2STX1_APB 103 1177fce1e39SEmil Renner Berthing #define JH7110_SYSRST_I2STX1_BCLK 104 1187fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TDM_AHB 105 1197fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TDM_CORE 106 1207fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TDM_APB 107 1217fce1e39SEmil Renner Berthing #define JH7110_SYSRST_PWM_APB 108 1227fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WDT_APB 109 1237fce1e39SEmil Renner Berthing #define JH7110_SYSRST_WDT_CORE 110 1247fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN0_APB 111 1257fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN0_CORE 112 1267fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN0_TIMER 113 1277fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN1_APB 114 1287fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN1_CORE 115 1297fce1e39SEmil Renner Berthing #define JH7110_SYSRST_CAN1_TIMER 116 1307fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TIMER_APB 117 1317fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TIMER0 118 1327fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TIMER1 119 1337fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TIMER2 120 1347fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TIMER3 121 1357fce1e39SEmil Renner Berthing #define JH7110_SYSRST_INT_CTRL_APB 122 1367fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TEMP_APB 123 1377fce1e39SEmil Renner Berthing #define JH7110_SYSRST_TEMP_CORE 124 1387fce1e39SEmil Renner Berthing #define JH7110_SYSRST_JTAG_CERTIFICATION 125 1397fce1e39SEmil Renner Berthing 1407fce1e39SEmil Renner Berthing #define JH7110_SYSRST_END 126 1417fce1e39SEmil Renner Berthing 142*3de0c910SEmil Renner Berthing /* AONCRG resets */ 143*3de0c910SEmil Renner Berthing #define JH7110_AONRST_GMAC0_AXI 0 144*3de0c910SEmil Renner Berthing #define JH7110_AONRST_GMAC0_AHB 1 145*3de0c910SEmil Renner Berthing #define JH7110_AONRST_IOMUX 2 146*3de0c910SEmil Renner Berthing #define JH7110_AONRST_PMU_APB 3 147*3de0c910SEmil Renner Berthing #define JH7110_AONRST_PMU_WKUP 4 148*3de0c910SEmil Renner Berthing #define JH7110_AONRST_RTC_APB 5 149*3de0c910SEmil Renner Berthing #define JH7110_AONRST_RTC_CAL 6 150*3de0c910SEmil Renner Berthing #define JH7110_AONRST_RTC_32K 7 151*3de0c910SEmil Renner Berthing 152*3de0c910SEmil Renner Berthing #define JH7110_AONRST_END 8 153*3de0c910SEmil Renner Berthing 1547fce1e39SEmil Renner Berthing #endif /* __DT_BINDINGS_RESET_STARFIVE_JH7110_CRG_H__ */ 155