1*fc0fada0Shuang lin /* 2*fc0fada0Shuang lin * Copyright (c) 2014 MundoReader S.L. 3*fc0fada0Shuang lin * Author: Heiko Stuebner <heiko@sntech.de> 4*fc0fada0Shuang lin * 5*fc0fada0Shuang lin * SPDX-License-Identifier: GPL-2.0+ 6*fc0fada0Shuang lin */ 7*fc0fada0Shuang lin 8*fc0fada0Shuang lin #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H 9*fc0fada0Shuang lin #define _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H 10*fc0fada0Shuang lin 11*fc0fada0Shuang lin /* core clocks */ 12*fc0fada0Shuang lin #define PLL_APLL 1 13*fc0fada0Shuang lin #define PLL_DPLL 2 14*fc0fada0Shuang lin #define PLL_GPLL 3 15*fc0fada0Shuang lin #define ARMCLK 4 16*fc0fada0Shuang lin 17*fc0fada0Shuang lin /* sclk gates (special clocks) */ 18*fc0fada0Shuang lin #define SCLK_GPU 64 19*fc0fada0Shuang lin #define SCLK_SPI 65 20*fc0fada0Shuang lin #define SCLK_SDMMC 68 21*fc0fada0Shuang lin #define SCLK_SDIO 69 22*fc0fada0Shuang lin #define SCLK_EMMC 71 23*fc0fada0Shuang lin #define SCLK_NANDC 76 24*fc0fada0Shuang lin #define SCLK_UART0 77 25*fc0fada0Shuang lin #define SCLK_UART1 78 26*fc0fada0Shuang lin #define SCLK_UART2 79 27*fc0fada0Shuang lin #define SCLK_I2S 82 28*fc0fada0Shuang lin #define SCLK_SPDIF 83 29*fc0fada0Shuang lin #define SCLK_TIMER0 85 30*fc0fada0Shuang lin #define SCLK_TIMER1 86 31*fc0fada0Shuang lin #define SCLK_TIMER2 87 32*fc0fada0Shuang lin #define SCLK_TIMER3 88 33*fc0fada0Shuang lin #define SCLK_OTGPHY0 93 34*fc0fada0Shuang lin #define SCLK_LCDC 100 35*fc0fada0Shuang lin #define SCLK_HDMI 109 36*fc0fada0Shuang lin #define SCLK_HEVC 111 37*fc0fada0Shuang lin #define SCLK_I2S_OUT 113 38*fc0fada0Shuang lin #define SCLK_SDMMC_DRV 114 39*fc0fada0Shuang lin #define SCLK_SDIO_DRV 115 40*fc0fada0Shuang lin #define SCLK_EMMC_DRV 117 41*fc0fada0Shuang lin #define SCLK_SDMMC_SAMPLE 118 42*fc0fada0Shuang lin #define SCLK_SDIO_SAMPLE 119 43*fc0fada0Shuang lin #define SCLK_EMMC_SAMPLE 121 44*fc0fada0Shuang lin #define SCLK_PVTM_CORE 123 45*fc0fada0Shuang lin #define SCLK_PVTM_GPU 124 46*fc0fada0Shuang lin #define SCLK_PVTM_VIDEO 125 47*fc0fada0Shuang lin #define SCLK_MAC 151 48*fc0fada0Shuang lin #define SCLK_MACREF 152 49*fc0fada0Shuang lin #define SCLK_SFC 160 50*fc0fada0Shuang lin 51*fc0fada0Shuang lin #define DCLK_LCDC 190 52*fc0fada0Shuang lin 53*fc0fada0Shuang lin /* aclk gates */ 54*fc0fada0Shuang lin #define ACLK_DMAC2 194 55*fc0fada0Shuang lin #define ACLK_LCDC 197 56*fc0fada0Shuang lin #define ACLK_VIO 203 57*fc0fada0Shuang lin #define ACLK_VCODEC 208 58*fc0fada0Shuang lin #define ACLK_CPU 209 59*fc0fada0Shuang lin #define ACLK_PERI 210 60*fc0fada0Shuang lin 61*fc0fada0Shuang lin /* pclk gates */ 62*fc0fada0Shuang lin #define PCLK_GPIO0 320 63*fc0fada0Shuang lin #define PCLK_GPIO1 321 64*fc0fada0Shuang lin #define PCLK_GPIO2 322 65*fc0fada0Shuang lin #define PCLK_GRF 329 66*fc0fada0Shuang lin #define PCLK_I2C0 332 67*fc0fada0Shuang lin #define PCLK_I2C1 333 68*fc0fada0Shuang lin #define PCLK_I2C2 334 69*fc0fada0Shuang lin #define PCLK_SPI 338 70*fc0fada0Shuang lin #define PCLK_UART0 341 71*fc0fada0Shuang lin #define PCLK_UART1 342 72*fc0fada0Shuang lin #define PCLK_UART2 343 73*fc0fada0Shuang lin #define PCLK_PWM 350 74*fc0fada0Shuang lin #define PCLK_TIMER 353 75*fc0fada0Shuang lin #define PCLK_HDMI 360 76*fc0fada0Shuang lin #define PCLK_CPU 362 77*fc0fada0Shuang lin #define PCLK_PERI 363 78*fc0fada0Shuang lin #define PCLK_DDRUPCTL 364 79*fc0fada0Shuang lin #define PCLK_WDT 368 80*fc0fada0Shuang lin 81*fc0fada0Shuang lin /* hclk gates */ 82*fc0fada0Shuang lin #define HCLK_OTG0 449 83*fc0fada0Shuang lin #define HCLK_OTG1 450 84*fc0fada0Shuang lin #define HCLK_NANDC 453 85*fc0fada0Shuang lin #define HCLK_SDMMC 456 86*fc0fada0Shuang lin #define HCLK_SDIO 457 87*fc0fada0Shuang lin #define HCLK_EMMC 459 88*fc0fada0Shuang lin #define HCLK_I2S 462 89*fc0fada0Shuang lin #define HCLK_LCDC 465 90*fc0fada0Shuang lin #define HCLK_ROM 467 91*fc0fada0Shuang lin #define HCLK_VIO_BUS 472 92*fc0fada0Shuang lin #define HCLK_VCODEC 476 93*fc0fada0Shuang lin #define HCLK_CPU 477 94*fc0fada0Shuang lin #define HCLK_PERI 478 95*fc0fada0Shuang lin 96*fc0fada0Shuang lin #define CLK_NR_CLKS (HCLK_PERI + 1) 97*fc0fada0Shuang lin 98*fc0fada0Shuang lin /* soft-reset indices */ 99*fc0fada0Shuang lin #define SRST_CORE0 0 100*fc0fada0Shuang lin #define SRST_CORE1 1 101*fc0fada0Shuang lin #define SRST_CORE0_DBG 4 102*fc0fada0Shuang lin #define SRST_CORE1_DBG 5 103*fc0fada0Shuang lin #define SRST_CORE0_POR 8 104*fc0fada0Shuang lin #define SRST_CORE1_POR 9 105*fc0fada0Shuang lin #define SRST_L2C 12 106*fc0fada0Shuang lin #define SRST_TOPDBG 13 107*fc0fada0Shuang lin #define SRST_STRC_SYS_A 14 108*fc0fada0Shuang lin #define SRST_PD_CORE_NIU 15 109*fc0fada0Shuang lin 110*fc0fada0Shuang lin #define SRST_TIMER2 16 111*fc0fada0Shuang lin #define SRST_CPUSYS_H 17 112*fc0fada0Shuang lin #define SRST_AHB2APB_H 19 113*fc0fada0Shuang lin #define SRST_TIMER3 20 114*fc0fada0Shuang lin #define SRST_INTMEM 21 115*fc0fada0Shuang lin #define SRST_ROM 22 116*fc0fada0Shuang lin #define SRST_PERI_NIU 23 117*fc0fada0Shuang lin #define SRST_I2S 24 118*fc0fada0Shuang lin #define SRST_DDR_PLL 25 119*fc0fada0Shuang lin #define SRST_GPU_DLL 26 120*fc0fada0Shuang lin #define SRST_TIMER0 27 121*fc0fada0Shuang lin #define SRST_TIMER1 28 122*fc0fada0Shuang lin #define SRST_CORE_DLL 29 123*fc0fada0Shuang lin #define SRST_EFUSE_P 30 124*fc0fada0Shuang lin #define SRST_ACODEC_P 31 125*fc0fada0Shuang lin 126*fc0fada0Shuang lin #define SRST_GPIO0 32 127*fc0fada0Shuang lin #define SRST_GPIO1 33 128*fc0fada0Shuang lin #define SRST_GPIO2 34 129*fc0fada0Shuang lin #define SRST_UART0 39 130*fc0fada0Shuang lin #define SRST_UART1 40 131*fc0fada0Shuang lin #define SRST_UART2 41 132*fc0fada0Shuang lin #define SRST_I2C0 43 133*fc0fada0Shuang lin #define SRST_I2C1 44 134*fc0fada0Shuang lin #define SRST_I2C2 45 135*fc0fada0Shuang lin #define SRST_SFC 47 136*fc0fada0Shuang lin 137*fc0fada0Shuang lin #define SRST_PWM0 48 138*fc0fada0Shuang lin #define SRST_DAP 51 139*fc0fada0Shuang lin #define SRST_DAP_SYS 52 140*fc0fada0Shuang lin #define SRST_GRF 55 141*fc0fada0Shuang lin #define SRST_PERIPHSYS_A 57 142*fc0fada0Shuang lin #define SRST_PERIPHSYS_H 58 143*fc0fada0Shuang lin #define SRST_PERIPHSYS_P 59 144*fc0fada0Shuang lin #define SRST_CPU_PERI 61 145*fc0fada0Shuang lin #define SRST_EMEM_PERI 62 146*fc0fada0Shuang lin #define SRST_USB_PERI 63 147*fc0fada0Shuang lin 148*fc0fada0Shuang lin #define SRST_DMA2 64 149*fc0fada0Shuang lin #define SRST_MAC 66 150*fc0fada0Shuang lin #define SRST_NANDC 68 151*fc0fada0Shuang lin #define SRST_USBOTG0 69 152*fc0fada0Shuang lin #define SRST_OTGC0 71 153*fc0fada0Shuang lin #define SRST_USBOTG1 72 154*fc0fada0Shuang lin #define SRST_OTGC1 74 155*fc0fada0Shuang lin #define SRST_DDRMSCH 79 156*fc0fada0Shuang lin 157*fc0fada0Shuang lin #define SRST_MMC0 81 158*fc0fada0Shuang lin #define SRST_SDIO 82 159*fc0fada0Shuang lin #define SRST_EMMC 83 160*fc0fada0Shuang lin #define SRST_SPI0 84 161*fc0fada0Shuang lin #define SRST_WDT 86 162*fc0fada0Shuang lin #define SRST_DDRPHY 88 163*fc0fada0Shuang lin #define SRST_DDRPHY_P 89 164*fc0fada0Shuang lin #define SRST_DDRCTRL 90 165*fc0fada0Shuang lin #define SRST_DDRCTRL_P 91 166*fc0fada0Shuang lin 167*fc0fada0Shuang lin #define SRST_HDMI_P 96 168*fc0fada0Shuang lin #define SRST_VIO_BUS_H 99 169*fc0fada0Shuang lin #define SRST_UTMI0 103 170*fc0fada0Shuang lin #define SRST_UTMI1 104 171*fc0fada0Shuang lin #define SRST_USBPOR 105 172*fc0fada0Shuang lin 173*fc0fada0Shuang lin #define SRST_VCODEC_A 112 174*fc0fada0Shuang lin #define SRST_VCODEC_H 113 175*fc0fada0Shuang lin #define SRST_VIO1_A 114 176*fc0fada0Shuang lin #define SRST_HEVC 115 177*fc0fada0Shuang lin #define SRST_VCODEC_NIU_A 116 178*fc0fada0Shuang lin #define SRST_LCDC1_A 117 179*fc0fada0Shuang lin #define SRST_LCDC1_H 118 180*fc0fada0Shuang lin #define SRST_LCDC1_D 119 181*fc0fada0Shuang lin #define SRST_GPU 120 182*fc0fada0Shuang lin #define SRST_GPU_NIU_A 122 183*fc0fada0Shuang lin 184*fc0fada0Shuang lin #define SRST_DBG_P 131 185*fc0fada0Shuang lin 186*fc0fada0Shuang lin #endif 187