1c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 28b0d55e9SXing Zheng /* 38b0d55e9SXing Zheng * Copyright (c) 2015 Rockchip Electronics Co. Ltd. 48b0d55e9SXing Zheng * Author: Xing Zheng <zhengxing@rock-chips.com> 58b0d55e9SXing Zheng */ 68b0d55e9SXing Zheng 78b0d55e9SXing Zheng #ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H 88b0d55e9SXing Zheng #define _DT_BINDINGS_CLK_ROCKCHIP_RK3036_H 98b0d55e9SXing Zheng 108b0d55e9SXing Zheng /* core clocks */ 118b0d55e9SXing Zheng #define PLL_APLL 1 128b0d55e9SXing Zheng #define PLL_DPLL 2 138b0d55e9SXing Zheng #define PLL_GPLL 3 148b0d55e9SXing Zheng #define ARMCLK 4 158b0d55e9SXing Zheng 168b0d55e9SXing Zheng /* sclk gates (special clocks) */ 178b0d55e9SXing Zheng #define SCLK_GPU 64 188b0d55e9SXing Zheng #define SCLK_SPI 65 198b0d55e9SXing Zheng #define SCLK_SDMMC 68 208b0d55e9SXing Zheng #define SCLK_SDIO 69 218b0d55e9SXing Zheng #define SCLK_EMMC 71 228b0d55e9SXing Zheng #define SCLK_NANDC 76 238b0d55e9SXing Zheng #define SCLK_UART0 77 248b0d55e9SXing Zheng #define SCLK_UART1 78 258b0d55e9SXing Zheng #define SCLK_UART2 79 268b0d55e9SXing Zheng #define SCLK_I2S 82 278b0d55e9SXing Zheng #define SCLK_SPDIF 83 288b0d55e9SXing Zheng #define SCLK_TIMER0 85 298b0d55e9SXing Zheng #define SCLK_TIMER1 86 308b0d55e9SXing Zheng #define SCLK_TIMER2 87 318b0d55e9SXing Zheng #define SCLK_TIMER3 88 328b0d55e9SXing Zheng #define SCLK_OTGPHY0 93 338b0d55e9SXing Zheng #define SCLK_LCDC 100 348b0d55e9SXing Zheng #define SCLK_HDMI 109 358b0d55e9SXing Zheng #define SCLK_HEVC 111 368b0d55e9SXing Zheng #define SCLK_I2S_OUT 113 378b0d55e9SXing Zheng #define SCLK_SDMMC_DRV 114 388b0d55e9SXing Zheng #define SCLK_SDIO_DRV 115 398b0d55e9SXing Zheng #define SCLK_EMMC_DRV 117 408b0d55e9SXing Zheng #define SCLK_SDMMC_SAMPLE 118 418b0d55e9SXing Zheng #define SCLK_SDIO_SAMPLE 119 428b0d55e9SXing Zheng #define SCLK_EMMC_SAMPLE 121 438b0d55e9SXing Zheng #define SCLK_PVTM_CORE 123 448b0d55e9SXing Zheng #define SCLK_PVTM_GPU 124 458b0d55e9SXing Zheng #define SCLK_PVTM_VIDEO 125 468b0d55e9SXing Zheng #define SCLK_MAC 151 478b0d55e9SXing Zheng #define SCLK_MACREF 152 48f7e18022SXing Zheng #define SCLK_MACPLL 153 498b0d55e9SXing Zheng #define SCLK_SFC 160 508b0d55e9SXing Zheng 518b0d55e9SXing Zheng /* aclk gates */ 528b0d55e9SXing Zheng #define ACLK_DMAC2 194 538b0d55e9SXing Zheng #define ACLK_LCDC 197 548b0d55e9SXing Zheng #define ACLK_VIO 203 558b0d55e9SXing Zheng #define ACLK_VCODEC 208 568b0d55e9SXing Zheng #define ACLK_CPU 209 578b0d55e9SXing Zheng #define ACLK_PERI 210 588b0d55e9SXing Zheng 598b0d55e9SXing Zheng /* pclk gates */ 608b0d55e9SXing Zheng #define PCLK_GPIO0 320 618b0d55e9SXing Zheng #define PCLK_GPIO1 321 628b0d55e9SXing Zheng #define PCLK_GPIO2 322 638b0d55e9SXing Zheng #define PCLK_GRF 329 648b0d55e9SXing Zheng #define PCLK_I2C0 332 658b0d55e9SXing Zheng #define PCLK_I2C1 333 668b0d55e9SXing Zheng #define PCLK_I2C2 334 678b0d55e9SXing Zheng #define PCLK_SPI 338 688b0d55e9SXing Zheng #define PCLK_UART0 341 698b0d55e9SXing Zheng #define PCLK_UART1 342 708b0d55e9SXing Zheng #define PCLK_UART2 343 718b0d55e9SXing Zheng #define PCLK_PWM 350 728b0d55e9SXing Zheng #define PCLK_TIMER 353 738b0d55e9SXing Zheng #define PCLK_HDMI 360 748b0d55e9SXing Zheng #define PCLK_CPU 362 758b0d55e9SXing Zheng #define PCLK_PERI 363 768b0d55e9SXing Zheng #define PCLK_DDRUPCTL 364 778b0d55e9SXing Zheng #define PCLK_WDT 368 788b0d55e9SXing Zheng #define PCLK_ACODEC 369 798b0d55e9SXing Zheng 808b0d55e9SXing Zheng /* hclk gates */ 818b0d55e9SXing Zheng #define HCLK_OTG0 449 828b0d55e9SXing Zheng #define HCLK_OTG1 450 838b0d55e9SXing Zheng #define HCLK_NANDC 453 84*b13c1fffSChris Morgan #define HCLK_SFC 454 858b0d55e9SXing Zheng #define HCLK_SDMMC 456 868b0d55e9SXing Zheng #define HCLK_SDIO 457 878b0d55e9SXing Zheng #define HCLK_EMMC 459 88fb781c8eSXing Zheng #define HCLK_MAC 460 898b0d55e9SXing Zheng #define HCLK_I2S 462 908b0d55e9SXing Zheng #define HCLK_LCDC 465 918b0d55e9SXing Zheng #define HCLK_ROM 467 928b0d55e9SXing Zheng #define HCLK_VIO_BUS 472 938b0d55e9SXing Zheng #define HCLK_VCODEC 476 948b0d55e9SXing Zheng #define HCLK_CPU 477 958b0d55e9SXing Zheng #define HCLK_PERI 478 968b0d55e9SXing Zheng 978b0d55e9SXing Zheng /* soft-reset indices */ 988b0d55e9SXing Zheng #define SRST_CORE0 0 998b0d55e9SXing Zheng #define SRST_CORE1 1 1008b0d55e9SXing Zheng #define SRST_CORE0_DBG 4 1018b0d55e9SXing Zheng #define SRST_CORE1_DBG 5 1028b0d55e9SXing Zheng #define SRST_CORE0_POR 8 1038b0d55e9SXing Zheng #define SRST_CORE1_POR 9 1048b0d55e9SXing Zheng #define SRST_L2C 12 1058b0d55e9SXing Zheng #define SRST_TOPDBG 13 1068b0d55e9SXing Zheng #define SRST_STRC_SYS_A 14 1078b0d55e9SXing Zheng #define SRST_PD_CORE_NIU 15 1088b0d55e9SXing Zheng 1098b0d55e9SXing Zheng #define SRST_TIMER2 16 1108b0d55e9SXing Zheng #define SRST_CPUSYS_H 17 1118b0d55e9SXing Zheng #define SRST_AHB2APB_H 19 1128b0d55e9SXing Zheng #define SRST_TIMER3 20 1138b0d55e9SXing Zheng #define SRST_INTMEM 21 1148b0d55e9SXing Zheng #define SRST_ROM 22 1158b0d55e9SXing Zheng #define SRST_PERI_NIU 23 1168b0d55e9SXing Zheng #define SRST_I2S 24 1178b0d55e9SXing Zheng #define SRST_DDR_PLL 25 1188b0d55e9SXing Zheng #define SRST_GPU_DLL 26 1198b0d55e9SXing Zheng #define SRST_TIMER0 27 1208b0d55e9SXing Zheng #define SRST_TIMER1 28 1218b0d55e9SXing Zheng #define SRST_CORE_DLL 29 1228b0d55e9SXing Zheng #define SRST_EFUSE_P 30 1238b0d55e9SXing Zheng #define SRST_ACODEC_P 31 1248b0d55e9SXing Zheng 1258b0d55e9SXing Zheng #define SRST_GPIO0 32 1268b0d55e9SXing Zheng #define SRST_GPIO1 33 1278b0d55e9SXing Zheng #define SRST_GPIO2 34 1288b0d55e9SXing Zheng #define SRST_UART0 39 1298b0d55e9SXing Zheng #define SRST_UART1 40 1308b0d55e9SXing Zheng #define SRST_UART2 41 1318b0d55e9SXing Zheng #define SRST_I2C0 43 1328b0d55e9SXing Zheng #define SRST_I2C1 44 1338b0d55e9SXing Zheng #define SRST_I2C2 45 1348b0d55e9SXing Zheng #define SRST_SFC 47 1358b0d55e9SXing Zheng 1368b0d55e9SXing Zheng #define SRST_PWM0 48 1378b0d55e9SXing Zheng #define SRST_DAP 51 1388b0d55e9SXing Zheng #define SRST_DAP_SYS 52 1398b0d55e9SXing Zheng #define SRST_GRF 55 1408b0d55e9SXing Zheng #define SRST_PERIPHSYS_A 57 1418b0d55e9SXing Zheng #define SRST_PERIPHSYS_H 58 1428b0d55e9SXing Zheng #define SRST_PERIPHSYS_P 59 1438b0d55e9SXing Zheng #define SRST_CPU_PERI 61 1448b0d55e9SXing Zheng #define SRST_EMEM_PERI 62 1458b0d55e9SXing Zheng #define SRST_USB_PERI 63 1468b0d55e9SXing Zheng 1478b0d55e9SXing Zheng #define SRST_DMA2 64 1488b0d55e9SXing Zheng #define SRST_MAC 66 1498b0d55e9SXing Zheng #define SRST_NANDC 68 1508b0d55e9SXing Zheng #define SRST_USBOTG0 69 1518b0d55e9SXing Zheng #define SRST_OTGC0 71 1528b0d55e9SXing Zheng #define SRST_USBOTG1 72 1538b0d55e9SXing Zheng #define SRST_OTGC1 74 1548b0d55e9SXing Zheng #define SRST_DDRMSCH 79 1558b0d55e9SXing Zheng 1568b0d55e9SXing Zheng #define SRST_MMC0 81 1578b0d55e9SXing Zheng #define SRST_SDIO 82 1588b0d55e9SXing Zheng #define SRST_EMMC 83 1598b0d55e9SXing Zheng #define SRST_SPI0 84 1608b0d55e9SXing Zheng #define SRST_WDT 86 1618b0d55e9SXing Zheng #define SRST_DDRPHY 88 1628b0d55e9SXing Zheng #define SRST_DDRPHY_P 89 1638b0d55e9SXing Zheng #define SRST_DDRCTRL 90 1648b0d55e9SXing Zheng #define SRST_DDRCTRL_P 91 1658b0d55e9SXing Zheng 1668b0d55e9SXing Zheng #define SRST_HDMI_P 96 1678b0d55e9SXing Zheng #define SRST_VIO_BUS_H 99 1688b0d55e9SXing Zheng #define SRST_UTMI0 103 1698b0d55e9SXing Zheng #define SRST_UTMI1 104 1708b0d55e9SXing Zheng #define SRST_USBPOR 105 1718b0d55e9SXing Zheng 1728b0d55e9SXing Zheng #define SRST_VCODEC_A 112 1738b0d55e9SXing Zheng #define SRST_VCODEC_H 113 1748b0d55e9SXing Zheng #define SRST_VIO1_A 114 1758b0d55e9SXing Zheng #define SRST_HEVC 115 1768b0d55e9SXing Zheng #define SRST_VCODEC_NIU_A 116 1778b0d55e9SXing Zheng #define SRST_LCDC1_A 117 1788b0d55e9SXing Zheng #define SRST_LCDC1_H 118 1798b0d55e9SXing Zheng #define SRST_LCDC1_D 119 1808b0d55e9SXing Zheng #define SRST_GPU 120 1818b0d55e9SXing Zheng #define SRST_GPU_NIU_A 122 1828b0d55e9SXing Zheng 1838b0d55e9SXing Zheng #define SRST_DBG_P 131 1848b0d55e9SXing Zheng 1858b0d55e9SXing Zheng #endif 186