17fce1e39SEmil Renner Berthing /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 27fce1e39SEmil Renner Berthing /* 37fce1e39SEmil Renner Berthing * Copyright 2022 Emil Renner Berthing <kernel@esmil.dk> 47fce1e39SEmil Renner Berthing */ 57fce1e39SEmil Renner Berthing 67fce1e39SEmil Renner Berthing #ifndef __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ 77fce1e39SEmil Renner Berthing #define __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ 87fce1e39SEmil Renner Berthing 9*bd348ca2SXingyu Wu /* PLL clocks */ 10*bd348ca2SXingyu Wu #define JH7110_PLLCLK_PLL0_OUT 0 11*bd348ca2SXingyu Wu #define JH7110_PLLCLK_PLL1_OUT 1 12*bd348ca2SXingyu Wu #define JH7110_PLLCLK_PLL2_OUT 2 13*bd348ca2SXingyu Wu #define JH7110_PLLCLK_END 3 14*bd348ca2SXingyu Wu 157fce1e39SEmil Renner Berthing /* SYSCRG clocks */ 167fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CPU_ROOT 0 177fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CPU_CORE 1 187fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CPU_BUS 2 197fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_ROOT 3 207fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PERH_ROOT 4 217fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_BUS_ROOT 5 227fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOCSTG_BUS 6 237fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG0 7 247fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_STG_AXIAHB 8 257fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AHB0 9 267fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AHB1 10 277fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_APB_BUS 11 287fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_APB0 12 297fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PLL0_DIV2 13 307fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PLL1_DIV2 14 317fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PLL2_DIV2 15 327fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AUDIO_ROOT 16 337fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_MCLK_INNER 17 347fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_MCLK 18 357fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_MCLK_OUT 19 367fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_ISP_2X 20 377fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_ISP_AXI 21 387fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GCLK0 22 397fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GCLK1 23 407fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GCLK2 24 417fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CORE 25 427fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CORE1 26 437fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CORE2 27 447fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CORE3 28 457fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CORE4 29 467fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_DEBUG 30 477fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_RTC_TOGGLE 31 487fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE0 32 497fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE1 33 507fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE2 34 517fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE3 35 527fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE4 36 537fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TRACE_COM 37 547fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_CPU_AXI 38 557fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_AXICFG0_AXI 39 567fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_OSC_DIV2 40 577fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PLL1_DIV4 41 587fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PLL1_DIV8 42 597fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_DDR_BUS 43 607fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_DDR_AXI 44 617fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_CORE 45 627fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_CORE_CLK 46 637fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_SYS_CLK 47 647fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_APB 48 657fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GPU_RTC_TOGGLE 49 667fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_GPU_AXI 50 677fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_ISP_TOP_CORE 51 687fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_ISP_TOP_AXI 52 697fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_ISP_AXI 53 707fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_HIFI4_CORE 54 717fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_HIFI4_AXI 55 727fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG1_MAIN 56 737fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG1_AHB 57 747fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_SRC 58 757fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_AXI 59 767fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_DISP_AXI 60 777fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_TOP_AHB 61 787fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_TOP_AXI 62 797fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK 63 807fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VOUT_TOP_MIPIPHY_REF 64 817fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_JPEGC_AXI 65 827fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CODAJ12_AXI 66 837fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CODAJ12_CORE 67 847fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CODAJ12_APB 68 857fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VDEC_AXI 69 867fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE511_AXI 70 877fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE511_BPU 71 887fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE511_VCE 72 897fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE511_APB 73 907fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VDEC_JPG 74 917fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VDEC_MAIN 75 927fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_VDEC_AXI 76 937fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_VENC_AXI 77 947fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE420L_AXI 78 957fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE420L_BPU 79 967fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE420L_VCE 80 977fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WAVE420L_APB 81 987fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_VENC_AXI 82 997fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG0_MAIN_DIV 83 1007fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG0_MAIN 84 1017fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXI_CFG0_HIFI4 85 1027fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_AXIMEM2_AXI 86 1037fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_QSPI_AHB 87 1047fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_QSPI_APB 88 1057fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_QSPI_REF_SRC 89 1067fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_QSPI_REF 90 1077fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SDIO0_AHB 91 1087fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SDIO1_AHB 92 1097fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SDIO0_SDCARD 93 1107fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SDIO1_SDCARD 94 1117fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_USB_125M 95 1127fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_NOC_BUS_STG_AXI 96 1137fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_AHB 97 1147fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_AXI 98 1157fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC_SRC 99 1167fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_GTXCLK 100 1177fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_RMII_RTX 101 1187fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_PTP 102 1197fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_RX 103 1207fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_RX_INV 104 1217fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_TX 105 1227fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_TX_INV 106 1237fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC1_GTXC 107 1247fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC0_GTXCLK 108 1257fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC0_PTP 109 1267fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC_PHY 110 1277fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_GMAC0_GTXC 111 1287fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_IOMUX_APB 112 1297fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_MAILBOX_APB 113 1307fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_INT_CTRL_APB 114 1317fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN0_APB 115 1327fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN0_TIMER 116 1337fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN0_CAN 117 1347fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN1_APB 118 1357fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN1_TIMER 119 1367fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_CAN1_CAN 120 1377fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PWM_APB 121 1387fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WDT_APB 122 1397fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_WDT_CORE 123 1407fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TIMER_APB 124 1417fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TIMER0 125 1427fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TIMER1 126 1437fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TIMER2 127 1447fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TIMER3 128 1457fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TEMP_APB 129 1467fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TEMP_CORE 130 1477fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI0_APB 131 1487fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI1_APB 132 1497fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI2_APB 133 1507fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI3_APB 134 1517fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI4_APB 135 1527fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI5_APB 136 1537fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPI6_APB 137 1547fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C0_APB 138 1557fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C1_APB 139 1567fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C2_APB 140 1577fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C3_APB 141 1587fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C4_APB 142 1597fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C5_APB 143 1607fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2C6_APB 144 1617fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART0_APB 145 1627fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART0_CORE 146 1637fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART1_APB 147 1647fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART1_CORE 148 1657fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART2_APB 149 1667fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART2_CORE 150 1677fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART3_APB 151 1687fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART3_CORE 152 1697fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART4_APB 153 1707fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART4_CORE 154 1717fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART5_APB 155 1727fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_UART5_CORE 156 1737fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PWMDAC_APB 157 1747fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PWMDAC_CORE 158 1757fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPDIF_APB 159 1767fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_SPDIF_CORE 160 1777fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_APB 161 1787fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_BCLK_MST 162 1797fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_BCLK_MST_INV 163 1807fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_LRCK_MST 164 1817fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_BCLK 165 1827fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_BCLK_INV 166 1837fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX0_LRCK 167 1847fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_APB 168 1857fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_BCLK_MST 169 1867fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_BCLK_MST_INV 170 1877fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_LRCK_MST 171 1887fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_BCLK 172 1897fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_BCLK_INV 173 1907fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2STX1_LRCK 174 1917fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_APB 175 1927fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_BCLK_MST 176 1937fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_BCLK_MST_INV 177 1947fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_LRCK_MST 178 1957fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_BCLK 179 1967fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_BCLK_INV 180 1977fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_I2SRX_LRCK 181 1987fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PDM_DMIC 182 1997fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_PDM_APB 183 2007fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TDM_AHB 184 2017fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TDM_APB 185 2027fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TDM_INTERNAL 186 2037fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TDM_TDM 187 2047fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_TDM_TDM_INV 188 2057fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_JTAG_CERTIFICATION_TRNG 189 2067fce1e39SEmil Renner Berthing 2077fce1e39SEmil Renner Berthing #define JH7110_SYSCLK_END 190 2087fce1e39SEmil Renner Berthing 2093de0c910SEmil Renner Berthing /* AONCRG clocks */ 2103de0c910SEmil Renner Berthing #define JH7110_AONCLK_OSC_DIV4 0 2113de0c910SEmil Renner Berthing #define JH7110_AONCLK_APB_FUNC 1 2123de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_AHB 2 2133de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_AXI 3 2143de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_RMII_RTX 4 2153de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_TX 5 2163de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_TX_INV 6 2173de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_RX 7 2183de0c910SEmil Renner Berthing #define JH7110_AONCLK_GMAC0_RX_INV 8 2193de0c910SEmil Renner Berthing #define JH7110_AONCLK_OTPC_APB 9 2203de0c910SEmil Renner Berthing #define JH7110_AONCLK_RTC_APB 10 2213de0c910SEmil Renner Berthing #define JH7110_AONCLK_RTC_INTERNAL 11 2223de0c910SEmil Renner Berthing #define JH7110_AONCLK_RTC_32K 12 2233de0c910SEmil Renner Berthing #define JH7110_AONCLK_RTC_CAL 13 2243de0c910SEmil Renner Berthing 2253de0c910SEmil Renner Berthing #define JH7110_AONCLK_END 14 2263de0c910SEmil Renner Berthing 2277fce1e39SEmil Renner Berthing #endif /* __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ */ 228