1cd9102e9SKrzysztof Kozlowski /* SPDX-License-Identifier: GPL-2.0 */ 28774e124SAndrzej Hajda /* 38774e124SAndrzej Hajda * Copyright (c) 2013 Samsung Electronics Co., Ltd. 4f65d5189STomasz Figa * Author: Andrzej Hajda <a.hajda@samsung.com> 58774e124SAndrzej Hajda * 68774e124SAndrzej Hajda * Device Tree binding constants for Exynos5420 clock controller. 78774e124SAndrzej Hajda */ 88774e124SAndrzej Hajda 98774e124SAndrzej Hajda #ifndef _DT_BINDINGS_CLOCK_EXYNOS_5420_H 108774e124SAndrzej Hajda #define _DT_BINDINGS_CLOCK_EXYNOS_5420_H 118774e124SAndrzej Hajda 128774e124SAndrzej Hajda /* core clocks */ 138774e124SAndrzej Hajda #define CLK_FIN_PLL 1 148774e124SAndrzej Hajda #define CLK_FOUT_APLL 2 158774e124SAndrzej Hajda #define CLK_FOUT_CPLL 3 168774e124SAndrzej Hajda #define CLK_FOUT_DPLL 4 178774e124SAndrzej Hajda #define CLK_FOUT_EPLL 5 188774e124SAndrzej Hajda #define CLK_FOUT_RPLL 6 198774e124SAndrzej Hajda #define CLK_FOUT_IPLL 7 208774e124SAndrzej Hajda #define CLK_FOUT_SPLL 8 218774e124SAndrzej Hajda #define CLK_FOUT_VPLL 9 228774e124SAndrzej Hajda #define CLK_FOUT_MPLL 10 238774e124SAndrzej Hajda #define CLK_FOUT_BPLL 11 248774e124SAndrzej Hajda #define CLK_FOUT_KPLL 12 25bee4f87fSThomas Abraham #define CLK_ARM_CLK 13 26bee4f87fSThomas Abraham #define CLK_KFC_CLK 14 278774e124SAndrzej Hajda 288774e124SAndrzej Hajda /* gate for special clocks (sclk) */ 298774e124SAndrzej Hajda #define CLK_SCLK_UART0 128 308774e124SAndrzej Hajda #define CLK_SCLK_UART1 129 318774e124SAndrzej Hajda #define CLK_SCLK_UART2 130 328774e124SAndrzej Hajda #define CLK_SCLK_UART3 131 338774e124SAndrzej Hajda #define CLK_SCLK_MMC0 132 348774e124SAndrzej Hajda #define CLK_SCLK_MMC1 133 358774e124SAndrzej Hajda #define CLK_SCLK_MMC2 134 368774e124SAndrzej Hajda #define CLK_SCLK_SPI0 135 378774e124SAndrzej Hajda #define CLK_SCLK_SPI1 136 388774e124SAndrzej Hajda #define CLK_SCLK_SPI2 137 398774e124SAndrzej Hajda #define CLK_SCLK_I2S1 138 408774e124SAndrzej Hajda #define CLK_SCLK_I2S2 139 418774e124SAndrzej Hajda #define CLK_SCLK_PCM1 140 428774e124SAndrzej Hajda #define CLK_SCLK_PCM2 141 438774e124SAndrzej Hajda #define CLK_SCLK_SPDIF 142 448774e124SAndrzej Hajda #define CLK_SCLK_HDMI 143 458774e124SAndrzej Hajda #define CLK_SCLK_PIXEL 144 468774e124SAndrzej Hajda #define CLK_SCLK_DP1 145 478774e124SAndrzej Hajda #define CLK_SCLK_MIPI1 146 488774e124SAndrzej Hajda #define CLK_SCLK_FIMD1 147 498774e124SAndrzej Hajda #define CLK_SCLK_MAUDIO0 148 508774e124SAndrzej Hajda #define CLK_SCLK_MAUPCM0 149 518774e124SAndrzej Hajda #define CLK_SCLK_USBD300 150 528774e124SAndrzej Hajda #define CLK_SCLK_USBD301 151 538774e124SAndrzej Hajda #define CLK_SCLK_USBPHY300 152 548774e124SAndrzej Hajda #define CLK_SCLK_USBPHY301 153 558774e124SAndrzej Hajda #define CLK_SCLK_UNIPRO 154 568774e124SAndrzej Hajda #define CLK_SCLK_PWM 155 578774e124SAndrzej Hajda #define CLK_SCLK_GSCL_WA 156 588774e124SAndrzej Hajda #define CLK_SCLK_GSCL_WB 157 598774e124SAndrzej Hajda #define CLK_SCLK_HDMIPHY 158 6031116a64SShaik Ameer Basha #define CLK_MAU_EPLL 159 61b31ca2a0SShaik Ameer Basha #define CLK_SCLK_HSIC_12M 160 62b31ca2a0SShaik Ameer Basha #define CLK_SCLK_MPHY_IXTAL24 161 63cc9bdecfSLukasz Luba #define CLK_SCLK_BPLL 162 648774e124SAndrzej Hajda 658774e124SAndrzej Hajda /* gate clocks */ 668774e124SAndrzej Hajda #define CLK_UART0 257 678774e124SAndrzej Hajda #define CLK_UART1 258 688774e124SAndrzej Hajda #define CLK_UART2 259 698774e124SAndrzej Hajda #define CLK_UART3 260 708774e124SAndrzej Hajda #define CLK_I2C0 261 718774e124SAndrzej Hajda #define CLK_I2C1 262 728774e124SAndrzej Hajda #define CLK_I2C2 263 738774e124SAndrzej Hajda #define CLK_I2C3 264 74faec151bSShaik Ameer Basha #define CLK_USI0 265 75faec151bSShaik Ameer Basha #define CLK_USI1 266 76faec151bSShaik Ameer Basha #define CLK_USI2 267 77faec151bSShaik Ameer Basha #define CLK_USI3 268 788774e124SAndrzej Hajda #define CLK_I2C_HDMI 269 798774e124SAndrzej Hajda #define CLK_TSADC 270 808774e124SAndrzej Hajda #define CLK_SPI0 271 818774e124SAndrzej Hajda #define CLK_SPI1 272 828774e124SAndrzej Hajda #define CLK_SPI2 273 838774e124SAndrzej Hajda #define CLK_KEYIF 274 848774e124SAndrzej Hajda #define CLK_I2S1 275 858774e124SAndrzej Hajda #define CLK_I2S2 276 868774e124SAndrzej Hajda #define CLK_PCM1 277 878774e124SAndrzej Hajda #define CLK_PCM2 278 888774e124SAndrzej Hajda #define CLK_PWM 279 898774e124SAndrzej Hajda #define CLK_SPDIF 280 90faec151bSShaik Ameer Basha #define CLK_USI4 281 91faec151bSShaik Ameer Basha #define CLK_USI5 282 92faec151bSShaik Ameer Basha #define CLK_USI6 283 938774e124SAndrzej Hajda #define CLK_ACLK66_PSGEN 300 948774e124SAndrzej Hajda #define CLK_CHIPID 301 958774e124SAndrzej Hajda #define CLK_SYSREG 302 968774e124SAndrzej Hajda #define CLK_TZPC0 303 978774e124SAndrzej Hajda #define CLK_TZPC1 304 988774e124SAndrzej Hajda #define CLK_TZPC2 305 998774e124SAndrzej Hajda #define CLK_TZPC3 306 1008774e124SAndrzej Hajda #define CLK_TZPC4 307 1018774e124SAndrzej Hajda #define CLK_TZPC5 308 1028774e124SAndrzej Hajda #define CLK_TZPC6 309 1038774e124SAndrzej Hajda #define CLK_TZPC7 310 1048774e124SAndrzej Hajda #define CLK_TZPC8 311 1058774e124SAndrzej Hajda #define CLK_TZPC9 312 1068774e124SAndrzej Hajda #define CLK_HDMI_CEC 313 1078774e124SAndrzej Hajda #define CLK_SECKEY 314 1088774e124SAndrzej Hajda #define CLK_MCT 315 1098774e124SAndrzej Hajda #define CLK_WDT 316 1108774e124SAndrzej Hajda #define CLK_RTC 317 1118774e124SAndrzej Hajda #define CLK_TMU 318 1128774e124SAndrzej Hajda #define CLK_TMU_GPU 319 1138774e124SAndrzej Hajda #define CLK_PCLK66_GPIO 330 1148774e124SAndrzej Hajda #define CLK_ACLK200_FSYS2 350 1158774e124SAndrzej Hajda #define CLK_MMC0 351 1168774e124SAndrzej Hajda #define CLK_MMC1 352 1178774e124SAndrzej Hajda #define CLK_MMC2 353 1188774e124SAndrzej Hajda #define CLK_SROMC 354 1198774e124SAndrzej Hajda #define CLK_UFS 355 1208774e124SAndrzej Hajda #define CLK_ACLK200_FSYS 360 1218774e124SAndrzej Hajda #define CLK_TSI 361 1228774e124SAndrzej Hajda #define CLK_PDMA0 362 1238774e124SAndrzej Hajda #define CLK_PDMA1 363 1248774e124SAndrzej Hajda #define CLK_RTIC 364 1258774e124SAndrzej Hajda #define CLK_USBH20 365 1268774e124SAndrzej Hajda #define CLK_USBD300 366 1278774e124SAndrzej Hajda #define CLK_USBD301 367 1288774e124SAndrzej Hajda #define CLK_ACLK400_MSCL 380 1298774e124SAndrzej Hajda #define CLK_MSCL0 381 1308774e124SAndrzej Hajda #define CLK_MSCL1 382 1318774e124SAndrzej Hajda #define CLK_MSCL2 383 1328774e124SAndrzej Hajda #define CLK_SMMU_MSCL0 384 1338774e124SAndrzej Hajda #define CLK_SMMU_MSCL1 385 1348774e124SAndrzej Hajda #define CLK_SMMU_MSCL2 386 1358774e124SAndrzej Hajda #define CLK_ACLK333 400 1368774e124SAndrzej Hajda #define CLK_MFC 401 1378774e124SAndrzej Hajda #define CLK_SMMU_MFCL 402 1388774e124SAndrzej Hajda #define CLK_SMMU_MFCR 403 1398774e124SAndrzej Hajda #define CLK_ACLK200_DISP1 410 1408774e124SAndrzej Hajda #define CLK_DSIM1 411 1418774e124SAndrzej Hajda #define CLK_DP1 412 1428774e124SAndrzej Hajda #define CLK_HDMI 413 1438774e124SAndrzej Hajda #define CLK_ACLK300_DISP1 420 1448774e124SAndrzej Hajda #define CLK_FIMD1 421 145424b673aSShaik Ameer Basha #define CLK_SMMU_FIMD1M0 422 146424b673aSShaik Ameer Basha #define CLK_SMMU_FIMD1M1 423 1478774e124SAndrzej Hajda #define CLK_ACLK166 430 1488774e124SAndrzej Hajda #define CLK_MIXER 431 1498774e124SAndrzej Hajda #define CLK_ACLK266 440 1508774e124SAndrzej Hajda #define CLK_ROTATOR 441 1518774e124SAndrzej Hajda #define CLK_MDMA1 442 1528774e124SAndrzej Hajda #define CLK_SMMU_ROTATOR 443 1538774e124SAndrzej Hajda #define CLK_SMMU_MDMA1 444 1548774e124SAndrzej Hajda #define CLK_ACLK300_JPEG 450 1558774e124SAndrzej Hajda #define CLK_JPEG 451 1568774e124SAndrzej Hajda #define CLK_JPEG2 452 1578774e124SAndrzej Hajda #define CLK_SMMU_JPEG 453 1580a22c306SShaik Ameer Basha #define CLK_SMMU_JPEG2 454 1598774e124SAndrzej Hajda #define CLK_ACLK300_GSCL 460 1608774e124SAndrzej Hajda #define CLK_SMMU_GSCL0 461 1618774e124SAndrzej Hajda #define CLK_SMMU_GSCL1 462 1628774e124SAndrzej Hajda #define CLK_GSCL_WA 463 1638774e124SAndrzej Hajda #define CLK_GSCL_WB 464 1648774e124SAndrzej Hajda #define CLK_GSCL0 465 1658774e124SAndrzej Hajda #define CLK_GSCL1 466 16602932381SShaik Ameer Basha #define CLK_FIMC_3AA 467 1678774e124SAndrzej Hajda #define CLK_ACLK266_G2D 470 1688774e124SAndrzej Hajda #define CLK_SSS 471 1698774e124SAndrzej Hajda #define CLK_SLIM_SSS 472 1708774e124SAndrzej Hajda #define CLK_MDMA0 473 1718774e124SAndrzej Hajda #define CLK_ACLK333_G2D 480 1728774e124SAndrzej Hajda #define CLK_G2D 481 1738774e124SAndrzej Hajda #define CLK_ACLK333_432_GSCL 490 1748774e124SAndrzej Hajda #define CLK_SMMU_3AA 491 1758774e124SAndrzej Hajda #define CLK_SMMU_FIMCL0 492 1768774e124SAndrzej Hajda #define CLK_SMMU_FIMCL1 493 1778774e124SAndrzej Hajda #define CLK_SMMU_FIMCL3 494 1788774e124SAndrzej Hajda #define CLK_FIMC_LITE3 495 17902932381SShaik Ameer Basha #define CLK_FIMC_LITE0 496 18002932381SShaik Ameer Basha #define CLK_FIMC_LITE1 497 1818774e124SAndrzej Hajda #define CLK_ACLK_G3D 500 1828774e124SAndrzej Hajda #define CLK_G3D 501 1838774e124SAndrzej Hajda #define CLK_SMMU_MIXER 502 1843fac5941SShaik Ameer Basha #define CLK_SMMU_G2D 503 1853fac5941SShaik Ameer Basha #define CLK_SMMU_MDMA0 504 1860a22c306SShaik Ameer Basha #define CLK_MC 505 1870a22c306SShaik Ameer Basha #define CLK_TOP_RTC 506 1883a767b35SShaik Ameer Basha #define CLK_SCLK_UART_ISP 510 1893a767b35SShaik Ameer Basha #define CLK_SCLK_SPI0_ISP 511 1903a767b35SShaik Ameer Basha #define CLK_SCLK_SPI1_ISP 512 1913a767b35SShaik Ameer Basha #define CLK_SCLK_PWM_ISP 513 1923a767b35SShaik Ameer Basha #define CLK_SCLK_ISP_SENSOR0 514 1933a767b35SShaik Ameer Basha #define CLK_SCLK_ISP_SENSOR1 515 1943a767b35SShaik Ameer Basha #define CLK_SCLK_ISP_SENSOR2 516 1956520e968SAlim Akhtar #define CLK_ACLK432_SCALER 517 1966520e968SAlim Akhtar #define CLK_ACLK432_CAM 518 1976520e968SAlim Akhtar #define CLK_ACLK_FL1550_CAM 519 1986520e968SAlim Akhtar #define CLK_ACLK550_CAM 520 199cc9bdecfSLukasz Luba #define CLK_CLKM_PHY0 521 200cc9bdecfSLukasz Luba #define CLK_CLKM_PHY1 522 201cc9bdecfSLukasz Luba #define CLK_ACLK_PPMU_DREX0_0 523 202cc9bdecfSLukasz Luba #define CLK_ACLK_PPMU_DREX0_1 524 203cc9bdecfSLukasz Luba #define CLK_ACLK_PPMU_DREX1_0 525 204cc9bdecfSLukasz Luba #define CLK_ACLK_PPMU_DREX1_1 526 205cc9bdecfSLukasz Luba #define CLK_PCLK_PPMU_DREX0_0 527 206cc9bdecfSLukasz Luba #define CLK_PCLK_PPMU_DREX0_1 528 207cc9bdecfSLukasz Luba #define CLK_PCLK_PPMU_DREX1_0 529 208cc9bdecfSLukasz Luba #define CLK_PCLK_PPMU_DREX1_1 530 2098774e124SAndrzej Hajda 2108774e124SAndrzej Hajda /* mux clocks */ 2118774e124SAndrzej Hajda #define CLK_MOUT_HDMI 640 2122ce262f4SArun Kumar K #define CLK_MOUT_G3D 641 2132ce262f4SArun Kumar K #define CLK_MOUT_VPLL 642 21431116a64SShaik Ameer Basha #define CLK_MOUT_MAUDIO0 643 215c0fb262bSArun Kumar K #define CLK_MOUT_USER_ACLK333 644 216c0fb262bSArun Kumar K #define CLK_MOUT_SW_ACLK333 645 21788560100SJavier Martinez Canillas #define CLK_MOUT_USER_ACLK200_DISP1 646 21888560100SJavier Martinez Canillas #define CLK_MOUT_SW_ACLK200 647 21988560100SJavier Martinez Canillas #define CLK_MOUT_USER_ACLK300_DISP1 648 22088560100SJavier Martinez Canillas #define CLK_MOUT_SW_ACLK300 649 22188560100SJavier Martinez Canillas #define CLK_MOUT_USER_ACLK400_DISP1 650 22288560100SJavier Martinez Canillas #define CLK_MOUT_SW_ACLK400 651 223c0feb268SMarek Szyprowski #define CLK_MOUT_USER_ACLK300_GSCL 652 224c0feb268SMarek Szyprowski #define CLK_MOUT_SW_ACLK300_GSCL 653 2253b6b7172SChanwoo Choi #define CLK_MOUT_MCLK_CDREX 654 2263b6b7172SChanwoo Choi #define CLK_MOUT_BPLL 655 2273b6b7172SChanwoo Choi #define CLK_MOUT_MX_MSPLL_CCORE 656 2288a9cf26eSSylwester Nawrocki #define CLK_MOUT_EPLL 657 2298a9cf26eSSylwester Nawrocki #define CLK_MOUT_MAU_EPLL 658 2308a9cf26eSSylwester Nawrocki #define CLK_MOUT_USER_MAU_EPLL 659 231cc9bdecfSLukasz Luba #define CLK_MOUT_SCLK_SPLL 660 232cc9bdecfSLukasz Luba #define CLK_MOUT_MX_MSPLL_CCORE_PHY 661 233*3f1cc53bSSylwester Nawrocki #define CLK_MOUT_SW_ACLK_G3D 662 2348774e124SAndrzej Hajda 2358774e124SAndrzej Hajda /* divider clocks */ 2368774e124SAndrzej Hajda #define CLK_DOUT_PIXEL 768 23772b67b3fSChanwoo Choi #define CLK_DOUT_ACLK400_WCORE 769 23872b67b3fSChanwoo Choi #define CLK_DOUT_ACLK400_ISP 770 23972b67b3fSChanwoo Choi #define CLK_DOUT_ACLK400_MSCL 771 24072b67b3fSChanwoo Choi #define CLK_DOUT_ACLK200 772 24172b67b3fSChanwoo Choi #define CLK_DOUT_ACLK200_FSYS2 773 24272b67b3fSChanwoo Choi #define CLK_DOUT_ACLK100_NOC 774 24372b67b3fSChanwoo Choi #define CLK_DOUT_PCLK200_FSYS 775 24472b67b3fSChanwoo Choi #define CLK_DOUT_ACLK200_FSYS 776 24572b67b3fSChanwoo Choi #define CLK_DOUT_ACLK333_432_GSCL 777 24672b67b3fSChanwoo Choi #define CLK_DOUT_ACLK333_432_ISP 778 24772b67b3fSChanwoo Choi #define CLK_DOUT_ACLK66 779 24872b67b3fSChanwoo Choi #define CLK_DOUT_ACLK333_432_ISP0 780 24972b67b3fSChanwoo Choi #define CLK_DOUT_ACLK266 781 25072b67b3fSChanwoo Choi #define CLK_DOUT_ACLK166 782 25172b67b3fSChanwoo Choi #define CLK_DOUT_ACLK333 783 25272b67b3fSChanwoo Choi #define CLK_DOUT_ACLK333_G2D 784 25372b67b3fSChanwoo Choi #define CLK_DOUT_ACLK266_G2D 785 25472b67b3fSChanwoo Choi #define CLK_DOUT_ACLK_G3D 786 25572b67b3fSChanwoo Choi #define CLK_DOUT_ACLK300_JPEG 787 25672b67b3fSChanwoo Choi #define CLK_DOUT_ACLK300_DISP1 788 25772b67b3fSChanwoo Choi #define CLK_DOUT_ACLK300_GSCL 789 25872b67b3fSChanwoo Choi #define CLK_DOUT_ACLK400_DISP1 790 2593b6b7172SChanwoo Choi #define CLK_DOUT_PCLK_CDREX 791 2603b6b7172SChanwoo Choi #define CLK_DOUT_SCLK_CDREX 792 2613b6b7172SChanwoo Choi #define CLK_DOUT_ACLK_CDREX1 793 2623b6b7172SChanwoo Choi #define CLK_DOUT_CCLK_DREX0 794 2633b6b7172SChanwoo Choi #define CLK_DOUT_CLK2X_PHY0 795 2643b6b7172SChanwoo Choi #define CLK_DOUT_PCLK_CORE_MEM 796 265cc9bdecfSLukasz Luba #define CLK_FF_DOUT_SPLL2 797 266cc9bdecfSLukasz Luba #define CLK_DOUT_PCLK_DREX0 798 267cc9bdecfSLukasz Luba #define CLK_DOUT_PCLK_DREX1 799 2688774e124SAndrzej Hajda 2698774e124SAndrzej Hajda /* must be greater than maximal clock id */ 270cc9bdecfSLukasz Luba #define CLK_NR_CLKS 800 2718774e124SAndrzej Hajda 2728774e124SAndrzej Hajda #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5420_H */ 273