1*f126890aSEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ 2*f126890aSEmmanuel Vadot /* 3*f126890aSEmmanuel Vadot * Copyright (C) 2023 Nuvoton Technologies. 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H 7*f126890aSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot /* external and internal oscillator clocks */ 10*f126890aSEmmanuel Vadot #define HXT 0 11*f126890aSEmmanuel Vadot #define HXT_GATE 1 12*f126890aSEmmanuel Vadot #define LXT 2 13*f126890aSEmmanuel Vadot #define LXT_GATE 3 14*f126890aSEmmanuel Vadot #define HIRC 4 15*f126890aSEmmanuel Vadot #define HIRC_GATE 5 16*f126890aSEmmanuel Vadot #define LIRC 6 17*f126890aSEmmanuel Vadot #define LIRC_GATE 7 18*f126890aSEmmanuel Vadot /* PLLs */ 19*f126890aSEmmanuel Vadot #define CAPLL 8 20*f126890aSEmmanuel Vadot #define SYSPLL 9 21*f126890aSEmmanuel Vadot #define DDRPLL 10 22*f126890aSEmmanuel Vadot #define APLL 11 23*f126890aSEmmanuel Vadot #define EPLL 12 24*f126890aSEmmanuel Vadot #define VPLL 13 25*f126890aSEmmanuel Vadot /* EPLL divider */ 26*f126890aSEmmanuel Vadot #define EPLL_DIV2 14 27*f126890aSEmmanuel Vadot #define EPLL_DIV4 15 28*f126890aSEmmanuel Vadot #define EPLL_DIV8 16 29*f126890aSEmmanuel Vadot /* CPU clock, system clock, AXI, HCLK and PCLK */ 30*f126890aSEmmanuel Vadot #define CA35CLK_MUX 17 31*f126890aSEmmanuel Vadot #define AXICLK_DIV2 18 32*f126890aSEmmanuel Vadot #define AXICLK_DIV4 19 33*f126890aSEmmanuel Vadot #define AXICLK_MUX 20 34*f126890aSEmmanuel Vadot #define SYSCLK0_MUX 21 35*f126890aSEmmanuel Vadot #define SYSCLK1_MUX 22 36*f126890aSEmmanuel Vadot #define SYSCLK1_DIV2 23 37*f126890aSEmmanuel Vadot #define HCLK0 24 38*f126890aSEmmanuel Vadot #define HCLK1 25 39*f126890aSEmmanuel Vadot #define HCLK2 26 40*f126890aSEmmanuel Vadot #define PCLK0 27 41*f126890aSEmmanuel Vadot #define PCLK1 28 42*f126890aSEmmanuel Vadot #define PCLK2 29 43*f126890aSEmmanuel Vadot #define HCLK3 30 44*f126890aSEmmanuel Vadot #define PCLK3 31 45*f126890aSEmmanuel Vadot #define PCLK4 32 46*f126890aSEmmanuel Vadot /* AXI and AHB peripheral clocks */ 47*f126890aSEmmanuel Vadot #define USBPHY0 33 48*f126890aSEmmanuel Vadot #define USBPHY1 34 49*f126890aSEmmanuel Vadot #define DDR0_GATE 35 50*f126890aSEmmanuel Vadot #define DDR6_GATE 36 51*f126890aSEmmanuel Vadot #define CAN0_MUX 37 52*f126890aSEmmanuel Vadot #define CAN0_DIV 38 53*f126890aSEmmanuel Vadot #define CAN0_GATE 39 54*f126890aSEmmanuel Vadot #define CAN1_MUX 40 55*f126890aSEmmanuel Vadot #define CAN1_DIV 41 56*f126890aSEmmanuel Vadot #define CAN1_GATE 42 57*f126890aSEmmanuel Vadot #define CAN2_MUX 43 58*f126890aSEmmanuel Vadot #define CAN2_DIV 44 59*f126890aSEmmanuel Vadot #define CAN2_GATE 45 60*f126890aSEmmanuel Vadot #define CAN3_MUX 46 61*f126890aSEmmanuel Vadot #define CAN3_DIV 47 62*f126890aSEmmanuel Vadot #define CAN3_GATE 48 63*f126890aSEmmanuel Vadot #define SDH0_MUX 49 64*f126890aSEmmanuel Vadot #define SDH0_GATE 50 65*f126890aSEmmanuel Vadot #define SDH1_MUX 51 66*f126890aSEmmanuel Vadot #define SDH1_GATE 52 67*f126890aSEmmanuel Vadot #define NAND_GATE 53 68*f126890aSEmmanuel Vadot #define USBD_GATE 54 69*f126890aSEmmanuel Vadot #define USBH_GATE 55 70*f126890aSEmmanuel Vadot #define HUSBH0_GATE 56 71*f126890aSEmmanuel Vadot #define HUSBH1_GATE 57 72*f126890aSEmmanuel Vadot #define GFX_MUX 58 73*f126890aSEmmanuel Vadot #define GFX_GATE 59 74*f126890aSEmmanuel Vadot #define VC8K_GATE 60 75*f126890aSEmmanuel Vadot #define DCU_MUX 61 76*f126890aSEmmanuel Vadot #define DCU_GATE 62 77*f126890aSEmmanuel Vadot #define DCUP_DIV 63 78*f126890aSEmmanuel Vadot #define EMAC0_GATE 64 79*f126890aSEmmanuel Vadot #define EMAC1_GATE 65 80*f126890aSEmmanuel Vadot #define CCAP0_MUX 66 81*f126890aSEmmanuel Vadot #define CCAP0_DIV 67 82*f126890aSEmmanuel Vadot #define CCAP0_GATE 68 83*f126890aSEmmanuel Vadot #define CCAP1_MUX 69 84*f126890aSEmmanuel Vadot #define CCAP1_DIV 70 85*f126890aSEmmanuel Vadot #define CCAP1_GATE 71 86*f126890aSEmmanuel Vadot #define PDMA0_GATE 72 87*f126890aSEmmanuel Vadot #define PDMA1_GATE 73 88*f126890aSEmmanuel Vadot #define PDMA2_GATE 74 89*f126890aSEmmanuel Vadot #define PDMA3_GATE 75 90*f126890aSEmmanuel Vadot #define WH0_GATE 76 91*f126890aSEmmanuel Vadot #define WH1_GATE 77 92*f126890aSEmmanuel Vadot #define HWS_GATE 78 93*f126890aSEmmanuel Vadot #define EBI_GATE 79 94*f126890aSEmmanuel Vadot #define SRAM0_GATE 80 95*f126890aSEmmanuel Vadot #define SRAM1_GATE 81 96*f126890aSEmmanuel Vadot #define ROM_GATE 82 97*f126890aSEmmanuel Vadot #define TRA_GATE 83 98*f126890aSEmmanuel Vadot #define DBG_MUX 84 99*f126890aSEmmanuel Vadot #define DBG_GATE 85 100*f126890aSEmmanuel Vadot #define CKO_MUX 86 101*f126890aSEmmanuel Vadot #define CKO_DIV 87 102*f126890aSEmmanuel Vadot #define CKO_GATE 88 103*f126890aSEmmanuel Vadot #define GTMR_GATE 89 104*f126890aSEmmanuel Vadot #define GPA_GATE 90 105*f126890aSEmmanuel Vadot #define GPB_GATE 91 106*f126890aSEmmanuel Vadot #define GPC_GATE 92 107*f126890aSEmmanuel Vadot #define GPD_GATE 93 108*f126890aSEmmanuel Vadot #define GPE_GATE 94 109*f126890aSEmmanuel Vadot #define GPF_GATE 95 110*f126890aSEmmanuel Vadot #define GPG_GATE 96 111*f126890aSEmmanuel Vadot #define GPH_GATE 97 112*f126890aSEmmanuel Vadot #define GPI_GATE 98 113*f126890aSEmmanuel Vadot #define GPJ_GATE 99 114*f126890aSEmmanuel Vadot #define GPK_GATE 100 115*f126890aSEmmanuel Vadot #define GPL_GATE 101 116*f126890aSEmmanuel Vadot #define GPM_GATE 102 117*f126890aSEmmanuel Vadot #define GPN_GATE 103 118*f126890aSEmmanuel Vadot /* APB peripheral clocks */ 119*f126890aSEmmanuel Vadot #define TMR0_MUX 104 120*f126890aSEmmanuel Vadot #define TMR0_GATE 105 121*f126890aSEmmanuel Vadot #define TMR1_MUX 106 122*f126890aSEmmanuel Vadot #define TMR1_GATE 107 123*f126890aSEmmanuel Vadot #define TMR2_MUX 108 124*f126890aSEmmanuel Vadot #define TMR2_GATE 109 125*f126890aSEmmanuel Vadot #define TMR3_MUX 110 126*f126890aSEmmanuel Vadot #define TMR3_GATE 111 127*f126890aSEmmanuel Vadot #define TMR4_MUX 112 128*f126890aSEmmanuel Vadot #define TMR4_GATE 113 129*f126890aSEmmanuel Vadot #define TMR5_MUX 114 130*f126890aSEmmanuel Vadot #define TMR5_GATE 115 131*f126890aSEmmanuel Vadot #define TMR6_MUX 116 132*f126890aSEmmanuel Vadot #define TMR6_GATE 117 133*f126890aSEmmanuel Vadot #define TMR7_MUX 118 134*f126890aSEmmanuel Vadot #define TMR7_GATE 119 135*f126890aSEmmanuel Vadot #define TMR8_MUX 120 136*f126890aSEmmanuel Vadot #define TMR8_GATE 121 137*f126890aSEmmanuel Vadot #define TMR9_MUX 122 138*f126890aSEmmanuel Vadot #define TMR9_GATE 123 139*f126890aSEmmanuel Vadot #define TMR10_MUX 124 140*f126890aSEmmanuel Vadot #define TMR10_GATE 125 141*f126890aSEmmanuel Vadot #define TMR11_MUX 126 142*f126890aSEmmanuel Vadot #define TMR11_GATE 127 143*f126890aSEmmanuel Vadot #define UART0_MUX 128 144*f126890aSEmmanuel Vadot #define UART0_DIV 129 145*f126890aSEmmanuel Vadot #define UART0_GATE 130 146*f126890aSEmmanuel Vadot #define UART1_MUX 131 147*f126890aSEmmanuel Vadot #define UART1_DIV 132 148*f126890aSEmmanuel Vadot #define UART1_GATE 133 149*f126890aSEmmanuel Vadot #define UART2_MUX 134 150*f126890aSEmmanuel Vadot #define UART2_DIV 135 151*f126890aSEmmanuel Vadot #define UART2_GATE 136 152*f126890aSEmmanuel Vadot #define UART3_MUX 137 153*f126890aSEmmanuel Vadot #define UART3_DIV 138 154*f126890aSEmmanuel Vadot #define UART3_GATE 139 155*f126890aSEmmanuel Vadot #define UART4_MUX 140 156*f126890aSEmmanuel Vadot #define UART4_DIV 141 157*f126890aSEmmanuel Vadot #define UART4_GATE 142 158*f126890aSEmmanuel Vadot #define UART5_MUX 143 159*f126890aSEmmanuel Vadot #define UART5_DIV 144 160*f126890aSEmmanuel Vadot #define UART5_GATE 145 161*f126890aSEmmanuel Vadot #define UART6_MUX 146 162*f126890aSEmmanuel Vadot #define UART6_DIV 147 163*f126890aSEmmanuel Vadot #define UART6_GATE 148 164*f126890aSEmmanuel Vadot #define UART7_MUX 149 165*f126890aSEmmanuel Vadot #define UART7_DIV 150 166*f126890aSEmmanuel Vadot #define UART7_GATE 151 167*f126890aSEmmanuel Vadot #define UART8_MUX 152 168*f126890aSEmmanuel Vadot #define UART8_DIV 153 169*f126890aSEmmanuel Vadot #define UART8_GATE 154 170*f126890aSEmmanuel Vadot #define UART9_MUX 155 171*f126890aSEmmanuel Vadot #define UART9_DIV 156 172*f126890aSEmmanuel Vadot #define UART9_GATE 157 173*f126890aSEmmanuel Vadot #define UART10_MUX 158 174*f126890aSEmmanuel Vadot #define UART10_DIV 159 175*f126890aSEmmanuel Vadot #define UART10_GATE 160 176*f126890aSEmmanuel Vadot #define UART11_MUX 161 177*f126890aSEmmanuel Vadot #define UART11_DIV 162 178*f126890aSEmmanuel Vadot #define UART11_GATE 163 179*f126890aSEmmanuel Vadot #define UART12_MUX 164 180*f126890aSEmmanuel Vadot #define UART12_DIV 165 181*f126890aSEmmanuel Vadot #define UART12_GATE 166 182*f126890aSEmmanuel Vadot #define UART13_MUX 167 183*f126890aSEmmanuel Vadot #define UART13_DIV 168 184*f126890aSEmmanuel Vadot #define UART13_GATE 169 185*f126890aSEmmanuel Vadot #define UART14_MUX 170 186*f126890aSEmmanuel Vadot #define UART14_DIV 171 187*f126890aSEmmanuel Vadot #define UART14_GATE 172 188*f126890aSEmmanuel Vadot #define UART15_MUX 173 189*f126890aSEmmanuel Vadot #define UART15_DIV 174 190*f126890aSEmmanuel Vadot #define UART15_GATE 175 191*f126890aSEmmanuel Vadot #define UART16_MUX 176 192*f126890aSEmmanuel Vadot #define UART16_DIV 177 193*f126890aSEmmanuel Vadot #define UART16_GATE 178 194*f126890aSEmmanuel Vadot #define RTC_GATE 179 195*f126890aSEmmanuel Vadot #define DDR_GATE 180 196*f126890aSEmmanuel Vadot #define KPI_MUX 181 197*f126890aSEmmanuel Vadot #define KPI_DIV 182 198*f126890aSEmmanuel Vadot #define KPI_GATE 183 199*f126890aSEmmanuel Vadot #define I2C0_GATE 184 200*f126890aSEmmanuel Vadot #define I2C1_GATE 185 201*f126890aSEmmanuel Vadot #define I2C2_GATE 186 202*f126890aSEmmanuel Vadot #define I2C3_GATE 187 203*f126890aSEmmanuel Vadot #define I2C4_GATE 188 204*f126890aSEmmanuel Vadot #define I2C5_GATE 189 205*f126890aSEmmanuel Vadot #define QSPI0_MUX 190 206*f126890aSEmmanuel Vadot #define QSPI0_GATE 191 207*f126890aSEmmanuel Vadot #define QSPI1_MUX 192 208*f126890aSEmmanuel Vadot #define QSPI1_GATE 193 209*f126890aSEmmanuel Vadot #define SMC0_MUX 194 210*f126890aSEmmanuel Vadot #define SMC0_DIV 195 211*f126890aSEmmanuel Vadot #define SMC0_GATE 196 212*f126890aSEmmanuel Vadot #define SMC1_MUX 197 213*f126890aSEmmanuel Vadot #define SMC1_DIV 198 214*f126890aSEmmanuel Vadot #define SMC1_GATE 199 215*f126890aSEmmanuel Vadot #define WDT0_MUX 200 216*f126890aSEmmanuel Vadot #define WDT0_GATE 201 217*f126890aSEmmanuel Vadot #define WDT1_MUX 202 218*f126890aSEmmanuel Vadot #define WDT1_GATE 203 219*f126890aSEmmanuel Vadot #define WDT2_MUX 204 220*f126890aSEmmanuel Vadot #define WDT2_GATE 205 221*f126890aSEmmanuel Vadot #define WWDT0_MUX 206 222*f126890aSEmmanuel Vadot #define WWDT1_MUX 207 223*f126890aSEmmanuel Vadot #define WWDT2_MUX 208 224*f126890aSEmmanuel Vadot #define EPWM0_GATE 209 225*f126890aSEmmanuel Vadot #define EPWM1_GATE 210 226*f126890aSEmmanuel Vadot #define EPWM2_GATE 211 227*f126890aSEmmanuel Vadot #define I2S0_MUX 212 228*f126890aSEmmanuel Vadot #define I2S0_GATE 213 229*f126890aSEmmanuel Vadot #define I2S1_MUX 214 230*f126890aSEmmanuel Vadot #define I2S1_GATE 215 231*f126890aSEmmanuel Vadot #define SSMCC_GATE 216 232*f126890aSEmmanuel Vadot #define SSPCC_GATE 217 233*f126890aSEmmanuel Vadot #define SPI0_MUX 218 234*f126890aSEmmanuel Vadot #define SPI0_GATE 219 235*f126890aSEmmanuel Vadot #define SPI1_MUX 220 236*f126890aSEmmanuel Vadot #define SPI1_GATE 221 237*f126890aSEmmanuel Vadot #define SPI2_MUX 222 238*f126890aSEmmanuel Vadot #define SPI2_GATE 223 239*f126890aSEmmanuel Vadot #define SPI3_MUX 224 240*f126890aSEmmanuel Vadot #define SPI3_GATE 225 241*f126890aSEmmanuel Vadot #define ECAP0_GATE 226 242*f126890aSEmmanuel Vadot #define ECAP1_GATE 227 243*f126890aSEmmanuel Vadot #define ECAP2_GATE 228 244*f126890aSEmmanuel Vadot #define QEI0_GATE 229 245*f126890aSEmmanuel Vadot #define QEI1_GATE 230 246*f126890aSEmmanuel Vadot #define QEI2_GATE 231 247*f126890aSEmmanuel Vadot #define ADC_DIV 232 248*f126890aSEmmanuel Vadot #define ADC_GATE 233 249*f126890aSEmmanuel Vadot #define EADC_DIV 234 250*f126890aSEmmanuel Vadot #define EADC_GATE 235 251*f126890aSEmmanuel Vadot #define CLK_MAX_IDX 236 252*f126890aSEmmanuel Vadot 253*f126890aSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_NUVOTON_MA35D1_CLK_H */ 254