1*49c04453SDetlev Casanova /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ 2*49c04453SDetlev Casanova /* 3*49c04453SDetlev Casanova * Copyright (c) 2023 Rockchip Electronics Co. Ltd. 4*49c04453SDetlev Casanova * Copyright (c) 2024 Collabora Ltd. 5*49c04453SDetlev Casanova * 6*49c04453SDetlev Casanova * Author: Elaine Zhang <zhangqing@rock-chips.com> 7*49c04453SDetlev Casanova * Author: Detlev Casanova <detlev.casanova@collabora.com> 8*49c04453SDetlev Casanova */ 9*49c04453SDetlev Casanova 10*49c04453SDetlev Casanova #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3576_H 11*49c04453SDetlev Casanova #define _DT_BINDINGS_CLK_ROCKCHIP_RK3576_H 12*49c04453SDetlev Casanova 13*49c04453SDetlev Casanova /* cru-clocks indices */ 14*49c04453SDetlev Casanova 15*49c04453SDetlev Casanova /* cru plls */ 16*49c04453SDetlev Casanova #define PLL_BPLL 0 17*49c04453SDetlev Casanova #define PLL_LPLL 1 18*49c04453SDetlev Casanova #define PLL_VPLL 2 19*49c04453SDetlev Casanova #define PLL_AUPLL 3 20*49c04453SDetlev Casanova #define PLL_CPLL 4 21*49c04453SDetlev Casanova #define PLL_GPLL 5 22*49c04453SDetlev Casanova #define PLL_PPLL 6 23*49c04453SDetlev Casanova #define ARMCLK_L 7 24*49c04453SDetlev Casanova #define ARMCLK_B 8 25*49c04453SDetlev Casanova 26*49c04453SDetlev Casanova /* cru clocks */ 27*49c04453SDetlev Casanova #define CLK_CPLL_DIV20 9 28*49c04453SDetlev Casanova #define CLK_CPLL_DIV10 10 29*49c04453SDetlev Casanova #define CLK_GPLL_DIV8 11 30*49c04453SDetlev Casanova #define CLK_GPLL_DIV6 12 31*49c04453SDetlev Casanova #define CLK_CPLL_DIV4 13 32*49c04453SDetlev Casanova #define CLK_GPLL_DIV4 14 33*49c04453SDetlev Casanova #define CLK_SPLL_DIV2 15 34*49c04453SDetlev Casanova #define CLK_GPLL_DIV3 16 35*49c04453SDetlev Casanova #define CLK_CPLL_DIV2 17 36*49c04453SDetlev Casanova #define CLK_GPLL_DIV2 18 37*49c04453SDetlev Casanova #define CLK_SPLL_DIV1 19 38*49c04453SDetlev Casanova #define PCLK_TOP_ROOT 20 39*49c04453SDetlev Casanova #define ACLK_TOP 21 40*49c04453SDetlev Casanova #define HCLK_TOP 22 41*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_0 23 42*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_1 24 43*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_2 25 44*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_3 26 45*49c04453SDetlev Casanova #define CLK_UART_FRAC_0 27 46*49c04453SDetlev Casanova #define CLK_UART_FRAC_1 28 47*49c04453SDetlev Casanova #define CLK_UART_FRAC_2 29 48*49c04453SDetlev Casanova #define CLK_UART1_SRC_TOP 30 49*49c04453SDetlev Casanova #define CLK_AUDIO_INT_0 31 50*49c04453SDetlev Casanova #define CLK_AUDIO_INT_1 32 51*49c04453SDetlev Casanova #define CLK_AUDIO_INT_2 33 52*49c04453SDetlev Casanova #define CLK_PDM0_SRC_TOP 34 53*49c04453SDetlev Casanova #define CLK_PDM1_OUT 35 54*49c04453SDetlev Casanova #define CLK_GMAC0_125M_SRC 36 55*49c04453SDetlev Casanova #define CLK_GMAC1_125M_SRC 37 56*49c04453SDetlev Casanova #define LCLK_ASRC_SRC_0 38 57*49c04453SDetlev Casanova #define LCLK_ASRC_SRC_1 39 58*49c04453SDetlev Casanova #define REF_CLK0_OUT_PLL 40 59*49c04453SDetlev Casanova #define REF_CLK1_OUT_PLL 41 60*49c04453SDetlev Casanova #define REF_CLK2_OUT_PLL 42 61*49c04453SDetlev Casanova #define REFCLKO25M_GMAC0_OUT 43 62*49c04453SDetlev Casanova #define REFCLKO25M_GMAC1_OUT 44 63*49c04453SDetlev Casanova #define CLK_CIFOUT_OUT 45 64*49c04453SDetlev Casanova #define CLK_GMAC0_RMII_CRU 46 65*49c04453SDetlev Casanova #define CLK_GMAC1_RMII_CRU 47 66*49c04453SDetlev Casanova #define CLK_OTPC_AUTO_RD_G 48 67*49c04453SDetlev Casanova #define CLK_OTP_PHY_G 49 68*49c04453SDetlev Casanova #define CLK_MIPI_CAMERAOUT_M0 50 69*49c04453SDetlev Casanova #define CLK_MIPI_CAMERAOUT_M1 51 70*49c04453SDetlev Casanova #define CLK_MIPI_CAMERAOUT_M2 52 71*49c04453SDetlev Casanova #define MCLK_PDM0_SRC_TOP 53 72*49c04453SDetlev Casanova #define HCLK_AUDIO_ROOT 54 73*49c04453SDetlev Casanova #define HCLK_ASRC_2CH_0 55 74*49c04453SDetlev Casanova #define HCLK_ASRC_2CH_1 56 75*49c04453SDetlev Casanova #define HCLK_ASRC_4CH_0 57 76*49c04453SDetlev Casanova #define HCLK_ASRC_4CH_1 58 77*49c04453SDetlev Casanova #define CLK_ASRC_2CH_0 59 78*49c04453SDetlev Casanova #define CLK_ASRC_2CH_1 60 79*49c04453SDetlev Casanova #define CLK_ASRC_4CH_0 61 80*49c04453SDetlev Casanova #define CLK_ASRC_4CH_1 62 81*49c04453SDetlev Casanova #define MCLK_SAI0_8CH_SRC 63 82*49c04453SDetlev Casanova #define MCLK_SAI0_8CH 64 83*49c04453SDetlev Casanova #define HCLK_SAI0_8CH 65 84*49c04453SDetlev Casanova #define HCLK_SPDIF_RX0 66 85*49c04453SDetlev Casanova #define MCLK_SPDIF_RX0 67 86*49c04453SDetlev Casanova #define HCLK_SPDIF_RX1 68 87*49c04453SDetlev Casanova #define MCLK_SPDIF_RX1 69 88*49c04453SDetlev Casanova #define MCLK_SAI1_8CH_SRC 70 89*49c04453SDetlev Casanova #define MCLK_SAI1_8CH 71 90*49c04453SDetlev Casanova #define HCLK_SAI1_8CH 72 91*49c04453SDetlev Casanova #define MCLK_SAI2_2CH_SRC 73 92*49c04453SDetlev Casanova #define MCLK_SAI2_2CH 74 93*49c04453SDetlev Casanova #define HCLK_SAI2_2CH 75 94*49c04453SDetlev Casanova #define MCLK_SAI3_2CH_SRC 76 95*49c04453SDetlev Casanova #define MCLK_SAI3_2CH 77 96*49c04453SDetlev Casanova #define HCLK_SAI3_2CH 78 97*49c04453SDetlev Casanova #define MCLK_SAI4_2CH_SRC 79 98*49c04453SDetlev Casanova #define MCLK_SAI4_2CH 80 99*49c04453SDetlev Casanova #define HCLK_SAI4_2CH 81 100*49c04453SDetlev Casanova #define HCLK_ACDCDIG_DSM 82 101*49c04453SDetlev Casanova #define MCLK_ACDCDIG_DSM 83 102*49c04453SDetlev Casanova #define CLK_PDM1 84 103*49c04453SDetlev Casanova #define HCLK_PDM1 85 104*49c04453SDetlev Casanova #define MCLK_PDM1 86 105*49c04453SDetlev Casanova #define HCLK_SPDIF_TX0 87 106*49c04453SDetlev Casanova #define MCLK_SPDIF_TX0 88 107*49c04453SDetlev Casanova #define HCLK_SPDIF_TX1 89 108*49c04453SDetlev Casanova #define MCLK_SPDIF_TX1 90 109*49c04453SDetlev Casanova #define CLK_SAI1_MCLKOUT 91 110*49c04453SDetlev Casanova #define CLK_SAI2_MCLKOUT 92 111*49c04453SDetlev Casanova #define CLK_SAI3_MCLKOUT 93 112*49c04453SDetlev Casanova #define CLK_SAI4_MCLKOUT 94 113*49c04453SDetlev Casanova #define CLK_SAI0_MCLKOUT 95 114*49c04453SDetlev Casanova #define HCLK_BUS_ROOT 96 115*49c04453SDetlev Casanova #define PCLK_BUS_ROOT 97 116*49c04453SDetlev Casanova #define ACLK_BUS_ROOT 98 117*49c04453SDetlev Casanova #define HCLK_CAN0 99 118*49c04453SDetlev Casanova #define CLK_CAN0 100 119*49c04453SDetlev Casanova #define HCLK_CAN1 101 120*49c04453SDetlev Casanova #define CLK_CAN1 102 121*49c04453SDetlev Casanova #define CLK_KEY_SHIFT 103 122*49c04453SDetlev Casanova #define PCLK_I2C1 104 123*49c04453SDetlev Casanova #define PCLK_I2C2 105 124*49c04453SDetlev Casanova #define PCLK_I2C3 106 125*49c04453SDetlev Casanova #define PCLK_I2C4 107 126*49c04453SDetlev Casanova #define PCLK_I2C5 108 127*49c04453SDetlev Casanova #define PCLK_I2C6 109 128*49c04453SDetlev Casanova #define PCLK_I2C7 110 129*49c04453SDetlev Casanova #define PCLK_I2C8 111 130*49c04453SDetlev Casanova #define PCLK_I2C9 112 131*49c04453SDetlev Casanova #define PCLK_WDT_BUSMCU 113 132*49c04453SDetlev Casanova #define TCLK_WDT_BUSMCU 114 133*49c04453SDetlev Casanova #define ACLK_GIC 115 134*49c04453SDetlev Casanova #define CLK_I2C1 116 135*49c04453SDetlev Casanova #define CLK_I2C2 117 136*49c04453SDetlev Casanova #define CLK_I2C3 118 137*49c04453SDetlev Casanova #define CLK_I2C4 119 138*49c04453SDetlev Casanova #define CLK_I2C5 120 139*49c04453SDetlev Casanova #define CLK_I2C6 121 140*49c04453SDetlev Casanova #define CLK_I2C7 122 141*49c04453SDetlev Casanova #define CLK_I2C8 123 142*49c04453SDetlev Casanova #define CLK_I2C9 124 143*49c04453SDetlev Casanova #define PCLK_SARADC 125 144*49c04453SDetlev Casanova #define CLK_SARADC 126 145*49c04453SDetlev Casanova #define PCLK_TSADC 127 146*49c04453SDetlev Casanova #define CLK_TSADC 128 147*49c04453SDetlev Casanova #define PCLK_UART0 129 148*49c04453SDetlev Casanova #define PCLK_UART2 130 149*49c04453SDetlev Casanova #define PCLK_UART3 131 150*49c04453SDetlev Casanova #define PCLK_UART4 132 151*49c04453SDetlev Casanova #define PCLK_UART5 133 152*49c04453SDetlev Casanova #define PCLK_UART6 134 153*49c04453SDetlev Casanova #define PCLK_UART7 135 154*49c04453SDetlev Casanova #define PCLK_UART8 136 155*49c04453SDetlev Casanova #define PCLK_UART9 137 156*49c04453SDetlev Casanova #define PCLK_UART10 138 157*49c04453SDetlev Casanova #define PCLK_UART11 139 158*49c04453SDetlev Casanova #define SCLK_UART0 140 159*49c04453SDetlev Casanova #define SCLK_UART2 141 160*49c04453SDetlev Casanova #define SCLK_UART3 142 161*49c04453SDetlev Casanova #define SCLK_UART4 143 162*49c04453SDetlev Casanova #define SCLK_UART5 144 163*49c04453SDetlev Casanova #define SCLK_UART6 145 164*49c04453SDetlev Casanova #define SCLK_UART7 146 165*49c04453SDetlev Casanova #define SCLK_UART8 147 166*49c04453SDetlev Casanova #define SCLK_UART9 148 167*49c04453SDetlev Casanova #define SCLK_UART10 149 168*49c04453SDetlev Casanova #define SCLK_UART11 150 169*49c04453SDetlev Casanova #define PCLK_SPI0 151 170*49c04453SDetlev Casanova #define PCLK_SPI1 152 171*49c04453SDetlev Casanova #define PCLK_SPI2 153 172*49c04453SDetlev Casanova #define PCLK_SPI3 154 173*49c04453SDetlev Casanova #define PCLK_SPI4 155 174*49c04453SDetlev Casanova #define CLK_SPI0 156 175*49c04453SDetlev Casanova #define CLK_SPI1 157 176*49c04453SDetlev Casanova #define CLK_SPI2 158 177*49c04453SDetlev Casanova #define CLK_SPI3 159 178*49c04453SDetlev Casanova #define CLK_SPI4 160 179*49c04453SDetlev Casanova #define PCLK_WDT0 161 180*49c04453SDetlev Casanova #define TCLK_WDT0 162 181*49c04453SDetlev Casanova #define PCLK_PWM1 163 182*49c04453SDetlev Casanova #define CLK_PWM1 164 183*49c04453SDetlev Casanova #define CLK_OSC_PWM1 165 184*49c04453SDetlev Casanova #define CLK_RC_PWM1 166 185*49c04453SDetlev Casanova #define PCLK_BUSTIMER0 167 186*49c04453SDetlev Casanova #define PCLK_BUSTIMER1 168 187*49c04453SDetlev Casanova #define CLK_TIMER0_ROOT 169 188*49c04453SDetlev Casanova #define CLK_TIMER0 170 189*49c04453SDetlev Casanova #define CLK_TIMER1 171 190*49c04453SDetlev Casanova #define CLK_TIMER2 172 191*49c04453SDetlev Casanova #define CLK_TIMER3 173 192*49c04453SDetlev Casanova #define CLK_TIMER4 174 193*49c04453SDetlev Casanova #define CLK_TIMER5 175 194*49c04453SDetlev Casanova #define PCLK_MAILBOX0 176 195*49c04453SDetlev Casanova #define PCLK_GPIO1 177 196*49c04453SDetlev Casanova #define DBCLK_GPIO1 178 197*49c04453SDetlev Casanova #define PCLK_GPIO2 179 198*49c04453SDetlev Casanova #define DBCLK_GPIO2 180 199*49c04453SDetlev Casanova #define PCLK_GPIO3 181 200*49c04453SDetlev Casanova #define DBCLK_GPIO3 182 201*49c04453SDetlev Casanova #define PCLK_GPIO4 183 202*49c04453SDetlev Casanova #define DBCLK_GPIO4 184 203*49c04453SDetlev Casanova #define ACLK_DECOM 185 204*49c04453SDetlev Casanova #define PCLK_DECOM 186 205*49c04453SDetlev Casanova #define DCLK_DECOM 187 206*49c04453SDetlev Casanova #define CLK_TIMER1_ROOT 188 207*49c04453SDetlev Casanova #define CLK_TIMER6 189 208*49c04453SDetlev Casanova #define CLK_TIMER7 190 209*49c04453SDetlev Casanova #define CLK_TIMER8 191 210*49c04453SDetlev Casanova #define CLK_TIMER9 192 211*49c04453SDetlev Casanova #define CLK_TIMER10 193 212*49c04453SDetlev Casanova #define CLK_TIMER11 194 213*49c04453SDetlev Casanova #define ACLK_DMAC0 195 214*49c04453SDetlev Casanova #define ACLK_DMAC1 196 215*49c04453SDetlev Casanova #define ACLK_DMAC2 197 216*49c04453SDetlev Casanova #define ACLK_SPINLOCK 198 217*49c04453SDetlev Casanova #define HCLK_I3C0 199 218*49c04453SDetlev Casanova #define HCLK_I3C1 200 219*49c04453SDetlev Casanova #define HCLK_BUS_CM0_ROOT 201 220*49c04453SDetlev Casanova #define FCLK_BUS_CM0_CORE 202 221*49c04453SDetlev Casanova #define CLK_BUS_CM0_RTC 203 222*49c04453SDetlev Casanova #define PCLK_PMU2 204 223*49c04453SDetlev Casanova #define PCLK_PWM2 205 224*49c04453SDetlev Casanova #define CLK_PWM2 206 225*49c04453SDetlev Casanova #define CLK_RC_PWM2 207 226*49c04453SDetlev Casanova #define CLK_OSC_PWM2 208 227*49c04453SDetlev Casanova #define CLK_FREQ_PWM1 209 228*49c04453SDetlev Casanova #define CLK_COUNTER_PWM1 210 229*49c04453SDetlev Casanova #define SAI_SCLKIN_FREQ 211 230*49c04453SDetlev Casanova #define SAI_SCLKIN_COUNTER 212 231*49c04453SDetlev Casanova #define CLK_I3C0 213 232*49c04453SDetlev Casanova #define CLK_I3C1 214 233*49c04453SDetlev Casanova #define PCLK_CSIDPHY1 215 234*49c04453SDetlev Casanova #define PCLK_DDR_ROOT 216 235*49c04453SDetlev Casanova #define PCLK_DDR_MON_CH0 217 236*49c04453SDetlev Casanova #define TMCLK_DDR_MON_CH0 218 237*49c04453SDetlev Casanova #define ACLK_DDR_ROOT 219 238*49c04453SDetlev Casanova #define HCLK_DDR_ROOT 220 239*49c04453SDetlev Casanova #define FCLK_DDR_CM0_CORE 221 240*49c04453SDetlev Casanova #define CLK_DDR_TIMER_ROOT 222 241*49c04453SDetlev Casanova #define CLK_DDR_TIMER0 223 242*49c04453SDetlev Casanova #define CLK_DDR_TIMER1 224 243*49c04453SDetlev Casanova #define TCLK_WDT_DDR 225 244*49c04453SDetlev Casanova #define PCLK_WDT 226 245*49c04453SDetlev Casanova #define PCLK_TIMER 227 246*49c04453SDetlev Casanova #define CLK_DDR_CM0_RTC 228 247*49c04453SDetlev Casanova #define ACLK_RKNN0 229 248*49c04453SDetlev Casanova #define ACLK_RKNN1 230 249*49c04453SDetlev Casanova #define HCLK_RKNN_ROOT 231 250*49c04453SDetlev Casanova #define CLK_RKNN_DSU0 232 251*49c04453SDetlev Casanova #define PCLK_NPUTOP_ROOT 233 252*49c04453SDetlev Casanova #define PCLK_NPU_TIMER 234 253*49c04453SDetlev Casanova #define CLK_NPUTIMER_ROOT 235 254*49c04453SDetlev Casanova #define CLK_NPUTIMER0 236 255*49c04453SDetlev Casanova #define CLK_NPUTIMER1 237 256*49c04453SDetlev Casanova #define PCLK_NPU_WDT 238 257*49c04453SDetlev Casanova #define TCLK_NPU_WDT 239 258*49c04453SDetlev Casanova #define ACLK_RKNN_CBUF 240 259*49c04453SDetlev Casanova #define HCLK_NPU_CM0_ROOT 241 260*49c04453SDetlev Casanova #define FCLK_NPU_CM0_CORE 242 261*49c04453SDetlev Casanova #define CLK_NPU_CM0_RTC 243 262*49c04453SDetlev Casanova #define HCLK_RKNN_CBUF 244 263*49c04453SDetlev Casanova #define HCLK_NVM_ROOT 245 264*49c04453SDetlev Casanova #define ACLK_NVM_ROOT 246 265*49c04453SDetlev Casanova #define SCLK_FSPI_X2 247 266*49c04453SDetlev Casanova #define HCLK_FSPI 248 267*49c04453SDetlev Casanova #define CCLK_SRC_EMMC 249 268*49c04453SDetlev Casanova #define HCLK_EMMC 250 269*49c04453SDetlev Casanova #define ACLK_EMMC 251 270*49c04453SDetlev Casanova #define BCLK_EMMC 252 271*49c04453SDetlev Casanova #define TCLK_EMMC 253 272*49c04453SDetlev Casanova #define PCLK_PHP_ROOT 254 273*49c04453SDetlev Casanova #define ACLK_PHP_ROOT 255 274*49c04453SDetlev Casanova #define PCLK_PCIE0 256 275*49c04453SDetlev Casanova #define CLK_PCIE0_AUX 257 276*49c04453SDetlev Casanova #define ACLK_PCIE0_MST 258 277*49c04453SDetlev Casanova #define ACLK_PCIE0_SLV 259 278*49c04453SDetlev Casanova #define ACLK_PCIE0_DBI 260 279*49c04453SDetlev Casanova #define ACLK_USB3OTG1 261 280*49c04453SDetlev Casanova #define CLK_REF_USB3OTG1 262 281*49c04453SDetlev Casanova #define CLK_SUSPEND_USB3OTG1 263 282*49c04453SDetlev Casanova #define ACLK_MMU0 264 283*49c04453SDetlev Casanova #define ACLK_SLV_MMU0 265 284*49c04453SDetlev Casanova #define ACLK_MMU1 266 285*49c04453SDetlev Casanova #define ACLK_SLV_MMU1 267 286*49c04453SDetlev Casanova #define PCLK_PCIE1 268 287*49c04453SDetlev Casanova #define CLK_PCIE1_AUX 269 288*49c04453SDetlev Casanova #define ACLK_PCIE1_MST 270 289*49c04453SDetlev Casanova #define ACLK_PCIE1_SLV 271 290*49c04453SDetlev Casanova #define ACLK_PCIE1_DBI 272 291*49c04453SDetlev Casanova #define CLK_RXOOB0 273 292*49c04453SDetlev Casanova #define CLK_RXOOB1 274 293*49c04453SDetlev Casanova #define CLK_PMALIVE0 275 294*49c04453SDetlev Casanova #define CLK_PMALIVE1 276 295*49c04453SDetlev Casanova #define ACLK_SATA0 277 296*49c04453SDetlev Casanova #define ACLK_SATA1 278 297*49c04453SDetlev Casanova #define CLK_USB3OTG1_PIPE_PCLK 279 298*49c04453SDetlev Casanova #define CLK_USB3OTG1_UTMI 280 299*49c04453SDetlev Casanova #define CLK_USB3OTG0_PIPE_PCLK 281 300*49c04453SDetlev Casanova #define CLK_USB3OTG0_UTMI 282 301*49c04453SDetlev Casanova #define HCLK_SDGMAC_ROOT 283 302*49c04453SDetlev Casanova #define ACLK_SDGMAC_ROOT 284 303*49c04453SDetlev Casanova #define PCLK_SDGMAC_ROOT 285 304*49c04453SDetlev Casanova #define ACLK_GMAC0 286 305*49c04453SDetlev Casanova #define ACLK_GMAC1 287 306*49c04453SDetlev Casanova #define PCLK_GMAC0 288 307*49c04453SDetlev Casanova #define PCLK_GMAC1 289 308*49c04453SDetlev Casanova #define CCLK_SRC_SDIO 290 309*49c04453SDetlev Casanova #define HCLK_SDIO 291 310*49c04453SDetlev Casanova #define CLK_GMAC1_PTP_REF 292 311*49c04453SDetlev Casanova #define CLK_GMAC0_PTP_REF 293 312*49c04453SDetlev Casanova #define CLK_GMAC1_PTP_REF_SRC 294 313*49c04453SDetlev Casanova #define CLK_GMAC0_PTP_REF_SRC 295 314*49c04453SDetlev Casanova #define CCLK_SRC_SDMMC0 296 315*49c04453SDetlev Casanova #define HCLK_SDMMC0 297 316*49c04453SDetlev Casanova #define SCLK_FSPI1_X2 298 317*49c04453SDetlev Casanova #define HCLK_FSPI1 299 318*49c04453SDetlev Casanova #define ACLK_DSMC_ROOT 300 319*49c04453SDetlev Casanova #define ACLK_DSMC 301 320*49c04453SDetlev Casanova #define PCLK_DSMC 302 321*49c04453SDetlev Casanova #define CLK_DSMC_SYS 303 322*49c04453SDetlev Casanova #define HCLK_HSGPIO 304 323*49c04453SDetlev Casanova #define CLK_HSGPIO_TX 305 324*49c04453SDetlev Casanova #define CLK_HSGPIO_RX 306 325*49c04453SDetlev Casanova #define ACLK_HSGPIO 307 326*49c04453SDetlev Casanova #define PCLK_PHPPHY_ROOT 308 327*49c04453SDetlev Casanova #define PCLK_PCIE2_COMBOPHY0 309 328*49c04453SDetlev Casanova #define PCLK_PCIE2_COMBOPHY1 310 329*49c04453SDetlev Casanova #define CLK_PCIE_100M_SRC 311 330*49c04453SDetlev Casanova #define CLK_PCIE_100M_NDUTY_SRC 312 331*49c04453SDetlev Casanova #define CLK_REF_PCIE0_PHY 313 332*49c04453SDetlev Casanova #define CLK_REF_PCIE1_PHY 314 333*49c04453SDetlev Casanova #define CLK_REF_MPHY_26M 315 334*49c04453SDetlev Casanova #define HCLK_RKVDEC_ROOT 316 335*49c04453SDetlev Casanova #define ACLK_RKVDEC_ROOT 317 336*49c04453SDetlev Casanova #define HCLK_RKVDEC 318 337*49c04453SDetlev Casanova #define CLK_RKVDEC_HEVC_CA 319 338*49c04453SDetlev Casanova #define CLK_RKVDEC_CORE 320 339*49c04453SDetlev Casanova #define ACLK_UFS_ROOT 321 340*49c04453SDetlev Casanova #define ACLK_USB_ROOT 322 341*49c04453SDetlev Casanova #define PCLK_USB_ROOT 323 342*49c04453SDetlev Casanova #define ACLK_USB3OTG0 324 343*49c04453SDetlev Casanova #define CLK_REF_USB3OTG0 325 344*49c04453SDetlev Casanova #define CLK_SUSPEND_USB3OTG0 326 345*49c04453SDetlev Casanova #define ACLK_MMU2 327 346*49c04453SDetlev Casanova #define ACLK_SLV_MMU2 328 347*49c04453SDetlev Casanova #define ACLK_UFS_SYS 329 348*49c04453SDetlev Casanova #define ACLK_VPU_ROOT 330 349*49c04453SDetlev Casanova #define ACLK_VPU_MID_ROOT 331 350*49c04453SDetlev Casanova #define HCLK_VPU_ROOT 332 351*49c04453SDetlev Casanova #define ACLK_JPEG_ROOT 333 352*49c04453SDetlev Casanova #define ACLK_VPU_LOW_ROOT 334 353*49c04453SDetlev Casanova #define HCLK_RGA2E_0 335 354*49c04453SDetlev Casanova #define ACLK_RGA2E_0 336 355*49c04453SDetlev Casanova #define CLK_CORE_RGA2E_0 337 356*49c04453SDetlev Casanova #define ACLK_JPEG 338 357*49c04453SDetlev Casanova #define HCLK_JPEG 339 358*49c04453SDetlev Casanova #define HCLK_VDPP 340 359*49c04453SDetlev Casanova #define ACLK_VDPP 341 360*49c04453SDetlev Casanova #define CLK_CORE_VDPP 342 361*49c04453SDetlev Casanova #define HCLK_RGA2E_1 343 362*49c04453SDetlev Casanova #define ACLK_RGA2E_1 344 363*49c04453SDetlev Casanova #define CLK_CORE_RGA2E_1 345 364*49c04453SDetlev Casanova #define DCLK_EBC_FRAC_SRC 346 365*49c04453SDetlev Casanova #define HCLK_EBC 347 366*49c04453SDetlev Casanova #define ACLK_EBC 348 367*49c04453SDetlev Casanova #define DCLK_EBC 349 368*49c04453SDetlev Casanova #define HCLK_VEPU0_ROOT 350 369*49c04453SDetlev Casanova #define ACLK_VEPU0_ROOT 351 370*49c04453SDetlev Casanova #define HCLK_VEPU0 352 371*49c04453SDetlev Casanova #define ACLK_VEPU0 353 372*49c04453SDetlev Casanova #define CLK_VEPU0_CORE 354 373*49c04453SDetlev Casanova #define ACLK_VI_ROOT 355 374*49c04453SDetlev Casanova #define HCLK_VI_ROOT 356 375*49c04453SDetlev Casanova #define PCLK_VI_ROOT 357 376*49c04453SDetlev Casanova #define DCLK_VICAP 358 377*49c04453SDetlev Casanova #define ACLK_VICAP 359 378*49c04453SDetlev Casanova #define HCLK_VICAP 360 379*49c04453SDetlev Casanova #define CLK_ISP_CORE 361 380*49c04453SDetlev Casanova #define CLK_ISP_CORE_MARVIN 362 381*49c04453SDetlev Casanova #define CLK_ISP_CORE_VICAP 363 382*49c04453SDetlev Casanova #define ACLK_ISP 364 383*49c04453SDetlev Casanova #define HCLK_ISP 365 384*49c04453SDetlev Casanova #define ACLK_VPSS 366 385*49c04453SDetlev Casanova #define HCLK_VPSS 367 386*49c04453SDetlev Casanova #define CLK_CORE_VPSS 368 387*49c04453SDetlev Casanova #define PCLK_CSI_HOST_0 369 388*49c04453SDetlev Casanova #define PCLK_CSI_HOST_1 370 389*49c04453SDetlev Casanova #define PCLK_CSI_HOST_2 371 390*49c04453SDetlev Casanova #define PCLK_CSI_HOST_3 372 391*49c04453SDetlev Casanova #define PCLK_CSI_HOST_4 373 392*49c04453SDetlev Casanova #define ICLK_CSIHOST01 374 393*49c04453SDetlev Casanova #define ICLK_CSIHOST0 375 394*49c04453SDetlev Casanova #define CLK_ISP_PVTPLL_SRC 376 395*49c04453SDetlev Casanova #define ACLK_VI_ROOT_INTER 377 396*49c04453SDetlev Casanova #define CLK_VICAP_I0CLK 378 397*49c04453SDetlev Casanova #define CLK_VICAP_I1CLK 379 398*49c04453SDetlev Casanova #define CLK_VICAP_I2CLK 380 399*49c04453SDetlev Casanova #define CLK_VICAP_I3CLK 381 400*49c04453SDetlev Casanova #define CLK_VICAP_I4CLK 382 401*49c04453SDetlev Casanova #define ACLK_VOP_ROOT 383 402*49c04453SDetlev Casanova #define HCLK_VOP_ROOT 384 403*49c04453SDetlev Casanova #define PCLK_VOP_ROOT 385 404*49c04453SDetlev Casanova #define HCLK_VOP 386 405*49c04453SDetlev Casanova #define ACLK_VOP 387 406*49c04453SDetlev Casanova #define DCLK_VP0_SRC 388 407*49c04453SDetlev Casanova #define DCLK_VP1_SRC 389 408*49c04453SDetlev Casanova #define DCLK_VP2_SRC 390 409*49c04453SDetlev Casanova #define DCLK_VP0 391 410*49c04453SDetlev Casanova #define DCLK_VP1 392 411*49c04453SDetlev Casanova #define DCLK_VP2 393 412*49c04453SDetlev Casanova #define PCLK_VOPGRF 394 413*49c04453SDetlev Casanova #define ACLK_VO0_ROOT 395 414*49c04453SDetlev Casanova #define HCLK_VO0_ROOT 396 415*49c04453SDetlev Casanova #define PCLK_VO0_ROOT 397 416*49c04453SDetlev Casanova #define PCLK_VO0_GRF 398 417*49c04453SDetlev Casanova #define ACLK_HDCP0 399 418*49c04453SDetlev Casanova #define HCLK_HDCP0 400 419*49c04453SDetlev Casanova #define PCLK_HDCP0 401 420*49c04453SDetlev Casanova #define CLK_TRNG0_SKP 402 421*49c04453SDetlev Casanova #define PCLK_DSIHOST0 403 422*49c04453SDetlev Casanova #define CLK_DSIHOST0 404 423*49c04453SDetlev Casanova #define PCLK_HDMITX0 405 424*49c04453SDetlev Casanova #define CLK_HDMITX0_EARC 406 425*49c04453SDetlev Casanova #define CLK_HDMITX0_REF 407 426*49c04453SDetlev Casanova #define PCLK_EDP0 408 427*49c04453SDetlev Casanova #define CLK_EDP0_24M 409 428*49c04453SDetlev Casanova #define CLK_EDP0_200M 410 429*49c04453SDetlev Casanova #define MCLK_SAI5_8CH_SRC 411 430*49c04453SDetlev Casanova #define MCLK_SAI5_8CH 412 431*49c04453SDetlev Casanova #define HCLK_SAI5_8CH 413 432*49c04453SDetlev Casanova #define MCLK_SAI6_8CH_SRC 414 433*49c04453SDetlev Casanova #define MCLK_SAI6_8CH 415 434*49c04453SDetlev Casanova #define HCLK_SAI6_8CH 416 435*49c04453SDetlev Casanova #define HCLK_SPDIF_TX2 417 436*49c04453SDetlev Casanova #define MCLK_SPDIF_TX2 418 437*49c04453SDetlev Casanova #define HCLK_SPDIF_RX2 419 438*49c04453SDetlev Casanova #define MCLK_SPDIF_RX2 420 439*49c04453SDetlev Casanova #define HCLK_SAI8_8CH 421 440*49c04453SDetlev Casanova #define MCLK_SAI8_8CH_SRC 422 441*49c04453SDetlev Casanova #define MCLK_SAI8_8CH 423 442*49c04453SDetlev Casanova #define ACLK_VO1_ROOT 424 443*49c04453SDetlev Casanova #define HCLK_VO1_ROOT 425 444*49c04453SDetlev Casanova #define PCLK_VO1_ROOT 426 445*49c04453SDetlev Casanova #define MCLK_SAI7_8CH_SRC 427 446*49c04453SDetlev Casanova #define MCLK_SAI7_8CH 428 447*49c04453SDetlev Casanova #define HCLK_SAI7_8CH 429 448*49c04453SDetlev Casanova #define HCLK_SPDIF_TX3 430 449*49c04453SDetlev Casanova #define HCLK_SPDIF_TX4 431 450*49c04453SDetlev Casanova #define HCLK_SPDIF_TX5 432 451*49c04453SDetlev Casanova #define MCLK_SPDIF_TX3 433 452*49c04453SDetlev Casanova #define CLK_AUX16MHZ_0 434 453*49c04453SDetlev Casanova #define ACLK_DP0 435 454*49c04453SDetlev Casanova #define PCLK_DP0 436 455*49c04453SDetlev Casanova #define PCLK_VO1_GRF 437 456*49c04453SDetlev Casanova #define ACLK_HDCP1 438 457*49c04453SDetlev Casanova #define HCLK_HDCP1 439 458*49c04453SDetlev Casanova #define PCLK_HDCP1 440 459*49c04453SDetlev Casanova #define CLK_TRNG1_SKP 441 460*49c04453SDetlev Casanova #define HCLK_SAI9_8CH 442 461*49c04453SDetlev Casanova #define MCLK_SAI9_8CH_SRC 443 462*49c04453SDetlev Casanova #define MCLK_SAI9_8CH 444 463*49c04453SDetlev Casanova #define MCLK_SPDIF_TX4 445 464*49c04453SDetlev Casanova #define MCLK_SPDIF_TX5 446 465*49c04453SDetlev Casanova #define CLK_GPU_SRC_PRE 447 466*49c04453SDetlev Casanova #define CLK_GPU 448 467*49c04453SDetlev Casanova #define PCLK_GPU_ROOT 449 468*49c04453SDetlev Casanova #define ACLK_CENTER_ROOT 450 469*49c04453SDetlev Casanova #define ACLK_CENTER_LOW_ROOT 451 470*49c04453SDetlev Casanova #define HCLK_CENTER_ROOT 452 471*49c04453SDetlev Casanova #define PCLK_CENTER_ROOT 453 472*49c04453SDetlev Casanova #define ACLK_DMA2DDR 454 473*49c04453SDetlev Casanova #define ACLK_DDR_SHAREMEM 455 474*49c04453SDetlev Casanova #define PCLK_DMA2DDR 456 475*49c04453SDetlev Casanova #define PCLK_SHAREMEM 457 476*49c04453SDetlev Casanova #define HCLK_VEPU1_ROOT 458 477*49c04453SDetlev Casanova #define ACLK_VEPU1_ROOT 459 478*49c04453SDetlev Casanova #define HCLK_VEPU1 460 479*49c04453SDetlev Casanova #define ACLK_VEPU1 461 480*49c04453SDetlev Casanova #define CLK_VEPU1_CORE 462 481*49c04453SDetlev Casanova #define CLK_JDBCK_DAP 463 482*49c04453SDetlev Casanova #define PCLK_MIPI_DCPHY 464 483*49c04453SDetlev Casanova #define CLK_32K_USB2DEBUG 465 484*49c04453SDetlev Casanova #define PCLK_CSIDPHY 466 485*49c04453SDetlev Casanova #define PCLK_USBDPPHY 467 486*49c04453SDetlev Casanova #define CLK_PMUPHY_REF_SRC 468 487*49c04453SDetlev Casanova #define CLK_USBDP_COMBO_PHY_IMMORTAL 469 488*49c04453SDetlev Casanova #define CLK_HDMITXHDP 470 489*49c04453SDetlev Casanova #define PCLK_MPHY 471 490*49c04453SDetlev Casanova #define CLK_REF_OSC_MPHY 472 491*49c04453SDetlev Casanova #define CLK_REF_UFS_CLKOUT 473 492*49c04453SDetlev Casanova #define HCLK_PMU1_ROOT 474 493*49c04453SDetlev Casanova #define HCLK_PMU_CM0_ROOT 475 494*49c04453SDetlev Casanova #define CLK_200M_PMU_SRC 476 495*49c04453SDetlev Casanova #define CLK_100M_PMU_SRC 477 496*49c04453SDetlev Casanova #define CLK_50M_PMU_SRC 478 497*49c04453SDetlev Casanova #define FCLK_PMU_CM0_CORE 479 498*49c04453SDetlev Casanova #define CLK_PMU_CM0_RTC 480 499*49c04453SDetlev Casanova #define PCLK_PMU1 481 500*49c04453SDetlev Casanova #define CLK_PMU1 482 501*49c04453SDetlev Casanova #define PCLK_PMU1WDT 483 502*49c04453SDetlev Casanova #define TCLK_PMU1WDT 484 503*49c04453SDetlev Casanova #define PCLK_PMUTIMER 485 504*49c04453SDetlev Casanova #define CLK_PMUTIMER_ROOT 486 505*49c04453SDetlev Casanova #define CLK_PMUTIMER0 487 506*49c04453SDetlev Casanova #define CLK_PMUTIMER1 488 507*49c04453SDetlev Casanova #define PCLK_PMU1PWM 489 508*49c04453SDetlev Casanova #define CLK_PMU1PWM 490 509*49c04453SDetlev Casanova #define CLK_PMU1PWM_OSC 491 510*49c04453SDetlev Casanova #define PCLK_PMUPHY_ROOT 492 511*49c04453SDetlev Casanova #define PCLK_I2C0 493 512*49c04453SDetlev Casanova #define CLK_I2C0 494 513*49c04453SDetlev Casanova #define SCLK_UART1 495 514*49c04453SDetlev Casanova #define PCLK_UART1 496 515*49c04453SDetlev Casanova #define CLK_PMU1PWM_RC 497 516*49c04453SDetlev Casanova #define CLK_PDM0 498 517*49c04453SDetlev Casanova #define HCLK_PDM0 499 518*49c04453SDetlev Casanova #define MCLK_PDM0 500 519*49c04453SDetlev Casanova #define HCLK_VAD 501 520*49c04453SDetlev Casanova #define CLK_OSCCHK_PVTM 502 521*49c04453SDetlev Casanova #define CLK_PDM0_OUT 503 522*49c04453SDetlev Casanova #define CLK_HPTIMER_SRC 504 523*49c04453SDetlev Casanova #define PCLK_PMU0_ROOT 505 524*49c04453SDetlev Casanova #define PCLK_PMU0 506 525*49c04453SDetlev Casanova #define PCLK_GPIO0 507 526*49c04453SDetlev Casanova #define DBCLK_GPIO0 508 527*49c04453SDetlev Casanova #define CLK_OSC0_PMU1 509 528*49c04453SDetlev Casanova #define PCLK_PMU1_ROOT 510 529*49c04453SDetlev Casanova #define XIN_OSC0_DIV 511 530*49c04453SDetlev Casanova #define ACLK_USB 512 531*49c04453SDetlev Casanova #define ACLK_UFS 513 532*49c04453SDetlev Casanova #define ACLK_SDGMAC 514 533*49c04453SDetlev Casanova #define HCLK_SDGMAC 515 534*49c04453SDetlev Casanova #define PCLK_SDGMAC 516 535*49c04453SDetlev Casanova #define HCLK_VO1 517 536*49c04453SDetlev Casanova #define HCLK_VO0 518 537*49c04453SDetlev Casanova #define PCLK_CCI_ROOT 519 538*49c04453SDetlev Casanova #define ACLK_CCI_ROOT 520 539*49c04453SDetlev Casanova #define HCLK_VO0VOP_CHANNEL 521 540*49c04453SDetlev Casanova #define ACLK_VO0VOP_CHANNEL 522 541*49c04453SDetlev Casanova #define ACLK_TOP_MID 523 542*49c04453SDetlev Casanova #define ACLK_SECURE_HIGH 524 543*49c04453SDetlev Casanova #define CLK_USBPHY_REF_SRC 525 544*49c04453SDetlev Casanova #define CLK_PHY_REF_SRC 526 545*49c04453SDetlev Casanova #define CLK_CPLL_REF_SRC 527 546*49c04453SDetlev Casanova #define CLK_AUPLL_REF_SRC 528 547*49c04453SDetlev Casanova #define PCLK_SECURE_NS 529 548*49c04453SDetlev Casanova #define HCLK_SECURE_NS 530 549*49c04453SDetlev Casanova #define ACLK_SECURE_NS 531 550*49c04453SDetlev Casanova #define PCLK_OTPC_NS 532 551*49c04453SDetlev Casanova #define HCLK_CRYPTO_NS 533 552*49c04453SDetlev Casanova #define HCLK_TRNG_NS 534 553*49c04453SDetlev Casanova #define CLK_OTPC_NS 535 554*49c04453SDetlev Casanova #define SCLK_DSU 536 555*49c04453SDetlev Casanova #define SCLK_DDR 537 556*49c04453SDetlev Casanova #define ACLK_CRYPTO_NS 538 557*49c04453SDetlev Casanova #define CLK_PKA_CRYPTO_NS 539 558*49c04453SDetlev Casanova #define ACLK_RKVDEC_ROOT_BAK 540 559*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_0_SRC 541 560*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_1_SRC 542 561*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_2_SRC 543 562*49c04453SDetlev Casanova #define CLK_AUDIO_FRAC_3_SRC 544 563*49c04453SDetlev Casanova #define PCLK_HDPTX_APB 545 564*49c04453SDetlev Casanova 565*49c04453SDetlev Casanova /* secure clk */ 566*49c04453SDetlev Casanova #define CLK_STIMER0_ROOT 546 567*49c04453SDetlev Casanova #define CLK_STIMER1_ROOT 547 568*49c04453SDetlev Casanova #define PCLK_SECURE_S 548 569*49c04453SDetlev Casanova #define HCLK_SECURE_S 549 570*49c04453SDetlev Casanova #define ACLK_SECURE_S 550 571*49c04453SDetlev Casanova #define CLK_PKA_CRYPTO_S 551 572*49c04453SDetlev Casanova #define HCLK_VO1_S 552 573*49c04453SDetlev Casanova #define PCLK_VO1_S 553 574*49c04453SDetlev Casanova #define HCLK_VO0_S 554 575*49c04453SDetlev Casanova #define PCLK_VO0_S 555 576*49c04453SDetlev Casanova #define PCLK_KLAD 556 577*49c04453SDetlev Casanova #define HCLK_CRYPTO_S 557 578*49c04453SDetlev Casanova #define HCLK_KLAD 558 579*49c04453SDetlev Casanova #define ACLK_CRYPTO_S 559 580*49c04453SDetlev Casanova #define HCLK_TRNG_S 560 581*49c04453SDetlev Casanova #define PCLK_OTPC_S 561 582*49c04453SDetlev Casanova #define CLK_OTPC_S 562 583*49c04453SDetlev Casanova #define PCLK_WDT_S 563 584*49c04453SDetlev Casanova #define TCLK_WDT_S 564 585*49c04453SDetlev Casanova #define PCLK_HDCP0_TRNG 565 586*49c04453SDetlev Casanova #define PCLK_HDCP1_TRNG 566 587*49c04453SDetlev Casanova #define HCLK_HDCP_KEY0 567 588*49c04453SDetlev Casanova #define HCLK_HDCP_KEY1 568 589*49c04453SDetlev Casanova #define PCLK_EDP_S 569 590*49c04453SDetlev Casanova #define ACLK_KLAD 570 591*49c04453SDetlev Casanova 592*49c04453SDetlev Casanova #endif 593