1*7b2500baSHeiko Stübner /* 2*7b2500baSHeiko Stübner * Copyright (c) 2014 MundoReader S.L. 3*7b2500baSHeiko Stübner * Author: Heiko Stuebner <heiko@sntech.de> 4*7b2500baSHeiko Stübner * 5*7b2500baSHeiko Stübner * SPDX-License-Identifier: GPL-2.0+ 6*7b2500baSHeiko Stübner */ 7*7b2500baSHeiko Stübner 8*7b2500baSHeiko Stübner #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H 9*7b2500baSHeiko Stübner #define _DT_BINDINGS_CLK_ROCKCHIP_RK3188_COMMON_H 10*7b2500baSHeiko Stübner 11*7b2500baSHeiko Stübner /* core clocks from */ 12*7b2500baSHeiko Stübner #define PLL_APLL 1 13*7b2500baSHeiko Stübner #define PLL_DPLL 2 14*7b2500baSHeiko Stübner #define PLL_CPLL 3 15*7b2500baSHeiko Stübner #define PLL_GPLL 4 16*7b2500baSHeiko Stübner #define CORE_PERI 5 17*7b2500baSHeiko Stübner #define CORE_L2C 6 18*7b2500baSHeiko Stübner #define ARMCLK 7 19*7b2500baSHeiko Stübner 20*7b2500baSHeiko Stübner /* sclk gates (special clocks) */ 21*7b2500baSHeiko Stübner #define SCLK_UART0 64 22*7b2500baSHeiko Stübner #define SCLK_UART1 65 23*7b2500baSHeiko Stübner #define SCLK_UART2 66 24*7b2500baSHeiko Stübner #define SCLK_UART3 67 25*7b2500baSHeiko Stübner #define SCLK_MAC 68 26*7b2500baSHeiko Stübner #define SCLK_SPI0 69 27*7b2500baSHeiko Stübner #define SCLK_SPI1 70 28*7b2500baSHeiko Stübner #define SCLK_SARADC 71 29*7b2500baSHeiko Stübner #define SCLK_SDMMC 72 30*7b2500baSHeiko Stübner #define SCLK_SDIO 73 31*7b2500baSHeiko Stübner #define SCLK_EMMC 74 32*7b2500baSHeiko Stübner #define SCLK_I2S0 75 33*7b2500baSHeiko Stübner #define SCLK_I2S1 76 34*7b2500baSHeiko Stübner #define SCLK_I2S2 77 35*7b2500baSHeiko Stübner #define SCLK_SPDIF 78 36*7b2500baSHeiko Stübner #define SCLK_CIF0 79 37*7b2500baSHeiko Stübner #define SCLK_CIF1 80 38*7b2500baSHeiko Stübner #define SCLK_OTGPHY0 81 39*7b2500baSHeiko Stübner #define SCLK_OTGPHY1 82 40*7b2500baSHeiko Stübner #define SCLK_HSADC 83 41*7b2500baSHeiko Stübner #define SCLK_TIMER0 84 42*7b2500baSHeiko Stübner #define SCLK_TIMER1 85 43*7b2500baSHeiko Stübner #define SCLK_TIMER2 86 44*7b2500baSHeiko Stübner #define SCLK_TIMER3 87 45*7b2500baSHeiko Stübner #define SCLK_TIMER4 88 46*7b2500baSHeiko Stübner #define SCLK_TIMER5 89 47*7b2500baSHeiko Stübner #define SCLK_TIMER6 90 48*7b2500baSHeiko Stübner #define SCLK_JTAG 91 49*7b2500baSHeiko Stübner #define SCLK_SMC 92 50*7b2500baSHeiko Stübner #define SCLK_TSADC 93 51*7b2500baSHeiko Stübner 52*7b2500baSHeiko Stübner #define DCLK_LCDC0 190 53*7b2500baSHeiko Stübner #define DCLK_LCDC1 191 54*7b2500baSHeiko Stübner 55*7b2500baSHeiko Stübner /* aclk gates */ 56*7b2500baSHeiko Stübner #define ACLK_DMA1 192 57*7b2500baSHeiko Stübner #define ACLK_DMA2 193 58*7b2500baSHeiko Stübner #define ACLK_GPS 194 59*7b2500baSHeiko Stübner #define ACLK_LCDC0 195 60*7b2500baSHeiko Stübner #define ACLK_LCDC1 196 61*7b2500baSHeiko Stübner #define ACLK_GPU 197 62*7b2500baSHeiko Stübner #define ACLK_SMC 198 63*7b2500baSHeiko Stübner #define ACLK_CIF 199 64*7b2500baSHeiko Stübner #define ACLK_IPP 200 65*7b2500baSHeiko Stübner #define ACLK_RGA 201 66*7b2500baSHeiko Stübner #define ACLK_CIF0 202 67*7b2500baSHeiko Stübner #define ACLK_CPU 203 68*7b2500baSHeiko Stübner #define ACLK_PERI 204 69*7b2500baSHeiko Stübner 70*7b2500baSHeiko Stübner /* pclk gates */ 71*7b2500baSHeiko Stübner #define PCLK_GRF 320 72*7b2500baSHeiko Stübner #define PCLK_PMU 321 73*7b2500baSHeiko Stübner #define PCLK_TIMER0 322 74*7b2500baSHeiko Stübner #define PCLK_TIMER1 323 75*7b2500baSHeiko Stübner #define PCLK_TIMER2 324 76*7b2500baSHeiko Stübner #define PCLK_TIMER3 325 77*7b2500baSHeiko Stübner #define PCLK_PWM01 326 78*7b2500baSHeiko Stübner #define PCLK_PWM23 327 79*7b2500baSHeiko Stübner #define PCLK_SPI0 328 80*7b2500baSHeiko Stübner #define PCLK_SPI1 329 81*7b2500baSHeiko Stübner #define PCLK_SARADC 330 82*7b2500baSHeiko Stübner #define PCLK_WDT 331 83*7b2500baSHeiko Stübner #define PCLK_UART0 332 84*7b2500baSHeiko Stübner #define PCLK_UART1 333 85*7b2500baSHeiko Stübner #define PCLK_UART2 334 86*7b2500baSHeiko Stübner #define PCLK_UART3 335 87*7b2500baSHeiko Stübner #define PCLK_I2C0 336 88*7b2500baSHeiko Stübner #define PCLK_I2C1 337 89*7b2500baSHeiko Stübner #define PCLK_I2C2 338 90*7b2500baSHeiko Stübner #define PCLK_I2C3 339 91*7b2500baSHeiko Stübner #define PCLK_I2C4 340 92*7b2500baSHeiko Stübner #define PCLK_GPIO0 341 93*7b2500baSHeiko Stübner #define PCLK_GPIO1 342 94*7b2500baSHeiko Stübner #define PCLK_GPIO2 343 95*7b2500baSHeiko Stübner #define PCLK_GPIO3 344 96*7b2500baSHeiko Stübner #define PCLK_GPIO4 345 97*7b2500baSHeiko Stübner #define PCLK_GPIO6 346 98*7b2500baSHeiko Stübner #define PCLK_EFUSE 347 99*7b2500baSHeiko Stübner #define PCLK_TZPC 348 100*7b2500baSHeiko Stübner #define PCLK_TSADC 349 101*7b2500baSHeiko Stübner #define PCLK_CPU 350 102*7b2500baSHeiko Stübner #define PCLK_PERI 351 103*7b2500baSHeiko Stübner #define PCLK_DDRUPCTL 352 104*7b2500baSHeiko Stübner #define PCLK_PUBL 353 105*7b2500baSHeiko Stübner 106*7b2500baSHeiko Stübner /* hclk gates */ 107*7b2500baSHeiko Stübner #define HCLK_SDMMC 448 108*7b2500baSHeiko Stübner #define HCLK_SDIO 449 109*7b2500baSHeiko Stübner #define HCLK_EMMC 450 110*7b2500baSHeiko Stübner #define HCLK_OTG0 451 111*7b2500baSHeiko Stübner #define HCLK_EMAC 452 112*7b2500baSHeiko Stübner #define HCLK_SPDIF 453 113*7b2500baSHeiko Stübner #define HCLK_I2S0 454 114*7b2500baSHeiko Stübner #define HCLK_I2S1 455 115*7b2500baSHeiko Stübner #define HCLK_I2S2 456 116*7b2500baSHeiko Stübner #define HCLK_OTG1 457 117*7b2500baSHeiko Stübner #define HCLK_HSIC 458 118*7b2500baSHeiko Stübner #define HCLK_HSADC 459 119*7b2500baSHeiko Stübner #define HCLK_PIDF 460 120*7b2500baSHeiko Stübner #define HCLK_LCDC0 461 121*7b2500baSHeiko Stübner #define HCLK_LCDC1 462 122*7b2500baSHeiko Stübner #define HCLK_ROM 463 123*7b2500baSHeiko Stübner #define HCLK_CIF0 464 124*7b2500baSHeiko Stübner #define HCLK_IPP 465 125*7b2500baSHeiko Stübner #define HCLK_RGA 466 126*7b2500baSHeiko Stübner #define HCLK_NANDC0 467 127*7b2500baSHeiko Stübner #define HCLK_CPU 468 128*7b2500baSHeiko Stübner #define HCLK_PERI 469 129*7b2500baSHeiko Stübner 130*7b2500baSHeiko Stübner #define CLK_NR_CLKS (HCLK_PERI + 1) 131*7b2500baSHeiko Stübner 132*7b2500baSHeiko Stübner /* soft-reset indices */ 133*7b2500baSHeiko Stübner #define SRST_MCORE 2 134*7b2500baSHeiko Stübner #define SRST_CORE0 3 135*7b2500baSHeiko Stübner #define SRST_CORE1 4 136*7b2500baSHeiko Stübner #define SRST_MCORE_DBG 7 137*7b2500baSHeiko Stübner #define SRST_CORE0_DBG 8 138*7b2500baSHeiko Stübner #define SRST_CORE1_DBG 9 139*7b2500baSHeiko Stübner #define SRST_CORE0_WDT 12 140*7b2500baSHeiko Stübner #define SRST_CORE1_WDT 13 141*7b2500baSHeiko Stübner #define SRST_STRC_SYS 14 142*7b2500baSHeiko Stübner #define SRST_L2C 15 143*7b2500baSHeiko Stübner 144*7b2500baSHeiko Stübner #define SRST_CPU_AHB 17 145*7b2500baSHeiko Stübner #define SRST_AHB2APB 19 146*7b2500baSHeiko Stübner #define SRST_DMA1 20 147*7b2500baSHeiko Stübner #define SRST_INTMEM 21 148*7b2500baSHeiko Stübner #define SRST_ROM 22 149*7b2500baSHeiko Stübner #define SRST_SPDIF 26 150*7b2500baSHeiko Stübner #define SRST_TIMER0 27 151*7b2500baSHeiko Stübner #define SRST_TIMER1 28 152*7b2500baSHeiko Stübner #define SRST_EFUSE 30 153*7b2500baSHeiko Stübner 154*7b2500baSHeiko Stübner #define SRST_GPIO0 32 155*7b2500baSHeiko Stübner #define SRST_GPIO1 33 156*7b2500baSHeiko Stübner #define SRST_GPIO2 34 157*7b2500baSHeiko Stübner #define SRST_GPIO3 35 158*7b2500baSHeiko Stübner 159*7b2500baSHeiko Stübner #define SRST_UART0 39 160*7b2500baSHeiko Stübner #define SRST_UART1 40 161*7b2500baSHeiko Stübner #define SRST_UART2 41 162*7b2500baSHeiko Stübner #define SRST_UART3 42 163*7b2500baSHeiko Stübner #define SRST_I2C0 43 164*7b2500baSHeiko Stübner #define SRST_I2C1 44 165*7b2500baSHeiko Stübner #define SRST_I2C2 45 166*7b2500baSHeiko Stübner #define SRST_I2C3 46 167*7b2500baSHeiko Stübner #define SRST_I2C4 47 168*7b2500baSHeiko Stübner 169*7b2500baSHeiko Stübner #define SRST_PWM0 48 170*7b2500baSHeiko Stübner #define SRST_PWM1 49 171*7b2500baSHeiko Stübner #define SRST_DAP_PO 50 172*7b2500baSHeiko Stübner #define SRST_DAP 51 173*7b2500baSHeiko Stübner #define SRST_DAP_SYS 52 174*7b2500baSHeiko Stübner #define SRST_TPIU_ATB 53 175*7b2500baSHeiko Stübner #define SRST_PMU_APB 54 176*7b2500baSHeiko Stübner #define SRST_GRF 55 177*7b2500baSHeiko Stübner #define SRST_PMU 56 178*7b2500baSHeiko Stübner #define SRST_PERI_AXI 57 179*7b2500baSHeiko Stübner #define SRST_PERI_AHB 58 180*7b2500baSHeiko Stübner #define SRST_PERI_APB 59 181*7b2500baSHeiko Stübner #define SRST_PERI_NIU 60 182*7b2500baSHeiko Stübner #define SRST_CPU_PERI 61 183*7b2500baSHeiko Stübner #define SRST_EMEM_PERI 62 184*7b2500baSHeiko Stübner #define SRST_USB_PERI 63 185*7b2500baSHeiko Stübner 186*7b2500baSHeiko Stübner #define SRST_DMA2 64 187*7b2500baSHeiko Stübner #define SRST_SMC 65 188*7b2500baSHeiko Stübner #define SRST_MAC 66 189*7b2500baSHeiko Stübner #define SRST_NANC0 68 190*7b2500baSHeiko Stübner #define SRST_USBOTG0 69 191*7b2500baSHeiko Stübner #define SRST_USBPHY0 70 192*7b2500baSHeiko Stübner #define SRST_OTGC0 71 193*7b2500baSHeiko Stübner #define SRST_USBOTG1 72 194*7b2500baSHeiko Stübner #define SRST_USBPHY1 73 195*7b2500baSHeiko Stübner #define SRST_OTGC1 74 196*7b2500baSHeiko Stübner #define SRST_HSADC 76 197*7b2500baSHeiko Stübner #define SRST_PIDFILTER 77 198*7b2500baSHeiko Stübner #define SRST_DDR_MSCH 79 199*7b2500baSHeiko Stübner 200*7b2500baSHeiko Stübner #define SRST_TZPC 80 201*7b2500baSHeiko Stübner #define SRST_SDMMC 81 202*7b2500baSHeiko Stübner #define SRST_SDIO 82 203*7b2500baSHeiko Stübner #define SRST_EMMC 83 204*7b2500baSHeiko Stübner #define SRST_SPI0 84 205*7b2500baSHeiko Stübner #define SRST_SPI1 85 206*7b2500baSHeiko Stübner #define SRST_WDT 86 207*7b2500baSHeiko Stübner #define SRST_SARADC 87 208*7b2500baSHeiko Stübner #define SRST_DDRPHY 88 209*7b2500baSHeiko Stübner #define SRST_DDRPHY_APB 89 210*7b2500baSHeiko Stübner #define SRST_DDRCTL 90 211*7b2500baSHeiko Stübner #define SRST_DDRCTL_APB 91 212*7b2500baSHeiko Stübner #define SRST_DDRPUB 93 213*7b2500baSHeiko Stübner 214*7b2500baSHeiko Stübner #define SRST_VIO0_AXI 98 215*7b2500baSHeiko Stübner #define SRST_VIO0_AHB 99 216*7b2500baSHeiko Stübner #define SRST_LCDC0_AXI 100 217*7b2500baSHeiko Stübner #define SRST_LCDC0_AHB 101 218*7b2500baSHeiko Stübner #define SRST_LCDC0_DCLK 102 219*7b2500baSHeiko Stübner #define SRST_LCDC1_AXI 103 220*7b2500baSHeiko Stübner #define SRST_LCDC1_AHB 104 221*7b2500baSHeiko Stübner #define SRST_LCDC1_DCLK 105 222*7b2500baSHeiko Stübner #define SRST_IPP_AXI 106 223*7b2500baSHeiko Stübner #define SRST_IPP_AHB 107 224*7b2500baSHeiko Stübner #define SRST_RGA_AXI 108 225*7b2500baSHeiko Stübner #define SRST_RGA_AHB 109 226*7b2500baSHeiko Stübner #define SRST_CIF0 110 227*7b2500baSHeiko Stübner 228*7b2500baSHeiko Stübner #define SRST_VCODEC_AXI 112 229*7b2500baSHeiko Stübner #define SRST_VCODEC_AHB 113 230*7b2500baSHeiko Stübner #define SRST_VIO1_AXI 114 231*7b2500baSHeiko Stübner #define SRST_VCODEC_CPU 115 232*7b2500baSHeiko Stübner #define SRST_VCODEC_NIU 116 233*7b2500baSHeiko Stübner #define SRST_GPU 120 234*7b2500baSHeiko Stübner #define SRST_GPU_NIU 122 235*7b2500baSHeiko Stübner #define SRST_TFUN_ATB 125 236*7b2500baSHeiko Stübner #define SRST_TFUN_APB 126 237*7b2500baSHeiko Stübner #define SRST_CTI4_APB 127 238*7b2500baSHeiko Stübner 239*7b2500baSHeiko Stübner #define SRST_TPIU_APB 128 240*7b2500baSHeiko Stübner #define SRST_TRACE 129 241*7b2500baSHeiko Stübner #define SRST_CORE_DBG 130 242*7b2500baSHeiko Stübner #define SRST_DBG_APB 131 243*7b2500baSHeiko Stübner #define SRST_CTI0 132 244*7b2500baSHeiko Stübner #define SRST_CTI0_APB 133 245*7b2500baSHeiko Stübner #define SRST_CTI1 134 246*7b2500baSHeiko Stübner #define SRST_CTI1_APB 135 247*7b2500baSHeiko Stübner #define SRST_PTM_CORE0 136 248*7b2500baSHeiko Stübner #define SRST_PTM_CORE1 137 249*7b2500baSHeiko Stübner #define SRST_PTM0 138 250*7b2500baSHeiko Stübner #define SRST_PTM0_ATB 139 251*7b2500baSHeiko Stübner #define SRST_PTM1 140 252*7b2500baSHeiko Stübner #define SRST_PTM1_ATB 141 253*7b2500baSHeiko Stübner #define SRST_CTM 142 254*7b2500baSHeiko Stübner #define SRST_TS 143 255*7b2500baSHeiko Stübner 256*7b2500baSHeiko Stübner #endif 257