Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: exynos5250.h,v 1.1.1.3 2021/11/07 16:49:59 jmcneill Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.2  jmcneill /* SPDX-License-Identifier: GPL-2.0 */
      4      1.1  jmcneill /*
      5      1.1  jmcneill  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
      6      1.1  jmcneill  * Author: Andrzej Hajda <a.hajda (at) samsung.com>
      7      1.1  jmcneill  *
      8      1.1  jmcneill  * Device Tree binding constants for Exynos5250 clock controller.
      9  1.1.1.2  jmcneill  */
     10      1.1  jmcneill 
     11      1.1  jmcneill #ifndef _DT_BINDINGS_CLOCK_EXYNOS_5250_H
     12      1.1  jmcneill #define _DT_BINDINGS_CLOCK_EXYNOS_5250_H
     13      1.1  jmcneill 
     14      1.1  jmcneill /* core clocks */
     15      1.1  jmcneill #define CLK_FIN_PLL		1
     16      1.1  jmcneill #define CLK_FOUT_APLL		2
     17      1.1  jmcneill #define CLK_FOUT_MPLL		3
     18      1.1  jmcneill #define CLK_FOUT_BPLL		4
     19      1.1  jmcneill #define CLK_FOUT_GPLL		5
     20      1.1  jmcneill #define CLK_FOUT_CPLL		6
     21      1.1  jmcneill #define CLK_FOUT_EPLL		7
     22      1.1  jmcneill #define CLK_FOUT_VPLL		8
     23      1.1  jmcneill #define CLK_ARM_CLK		9
     24      1.1  jmcneill 
     25      1.1  jmcneill /* gate for special clocks (sclk) */
     26      1.1  jmcneill #define CLK_SCLK_CAM_BAYER	128
     27      1.1  jmcneill #define CLK_SCLK_CAM0		129
     28      1.1  jmcneill #define CLK_SCLK_CAM1		130
     29      1.1  jmcneill #define CLK_SCLK_GSCL_WA	131
     30      1.1  jmcneill #define CLK_SCLK_GSCL_WB	132
     31      1.1  jmcneill #define CLK_SCLK_FIMD1		133
     32      1.1  jmcneill #define CLK_SCLK_MIPI1		134
     33      1.1  jmcneill #define CLK_SCLK_DP		135
     34      1.1  jmcneill #define CLK_SCLK_HDMI		136
     35      1.1  jmcneill #define CLK_SCLK_PIXEL		137
     36      1.1  jmcneill #define CLK_SCLK_AUDIO0		138
     37      1.1  jmcneill #define CLK_SCLK_MMC0		139
     38      1.1  jmcneill #define CLK_SCLK_MMC1		140
     39      1.1  jmcneill #define CLK_SCLK_MMC2		141
     40      1.1  jmcneill #define CLK_SCLK_MMC3		142
     41      1.1  jmcneill #define CLK_SCLK_SATA		143
     42      1.1  jmcneill #define CLK_SCLK_USB3		144
     43      1.1  jmcneill #define CLK_SCLK_JPEG		145
     44      1.1  jmcneill #define CLK_SCLK_UART0		146
     45      1.1  jmcneill #define CLK_SCLK_UART1		147
     46      1.1  jmcneill #define CLK_SCLK_UART2		148
     47      1.1  jmcneill #define CLK_SCLK_UART3		149
     48      1.1  jmcneill #define CLK_SCLK_PWM		150
     49      1.1  jmcneill #define CLK_SCLK_AUDIO1		151
     50      1.1  jmcneill #define CLK_SCLK_AUDIO2		152
     51      1.1  jmcneill #define CLK_SCLK_SPDIF		153
     52      1.1  jmcneill #define CLK_SCLK_SPI0		154
     53      1.1  jmcneill #define CLK_SCLK_SPI1		155
     54      1.1  jmcneill #define CLK_SCLK_SPI2		156
     55      1.1  jmcneill #define CLK_DIV_I2S1		157
     56      1.1  jmcneill #define CLK_DIV_I2S2		158
     57      1.1  jmcneill #define CLK_SCLK_HDMIPHY	159
     58      1.1  jmcneill #define CLK_DIV_PCM0		160
     59      1.1  jmcneill 
     60      1.1  jmcneill /* gate clocks */
     61      1.1  jmcneill #define CLK_GSCL0		256
     62      1.1  jmcneill #define CLK_GSCL1		257
     63      1.1  jmcneill #define CLK_GSCL2		258
     64      1.1  jmcneill #define CLK_GSCL3		259
     65      1.1  jmcneill #define CLK_GSCL_WA		260
     66      1.1  jmcneill #define CLK_GSCL_WB		261
     67      1.1  jmcneill #define CLK_SMMU_GSCL0		262
     68      1.1  jmcneill #define CLK_SMMU_GSCL1		263
     69      1.1  jmcneill #define CLK_SMMU_GSCL2		264
     70      1.1  jmcneill #define CLK_SMMU_GSCL3		265
     71      1.1  jmcneill #define CLK_MFC			266
     72      1.1  jmcneill #define CLK_SMMU_MFCL		267
     73      1.1  jmcneill #define CLK_SMMU_MFCR		268
     74      1.1  jmcneill #define CLK_ROTATOR		269
     75      1.1  jmcneill #define CLK_JPEG		270
     76      1.1  jmcneill #define CLK_MDMA1		271
     77      1.1  jmcneill #define CLK_SMMU_ROTATOR	272
     78      1.1  jmcneill #define CLK_SMMU_JPEG		273
     79      1.1  jmcneill #define CLK_SMMU_MDMA1		274
     80      1.1  jmcneill #define CLK_PDMA0		275
     81      1.1  jmcneill #define CLK_PDMA1		276
     82      1.1  jmcneill #define CLK_SATA		277
     83      1.1  jmcneill #define CLK_USBOTG		278
     84      1.1  jmcneill #define CLK_MIPI_HSI		279
     85      1.1  jmcneill #define CLK_SDMMC0		280
     86      1.1  jmcneill #define CLK_SDMMC1		281
     87      1.1  jmcneill #define CLK_SDMMC2		282
     88      1.1  jmcneill #define CLK_SDMMC3		283
     89      1.1  jmcneill #define CLK_SROMC		284
     90      1.1  jmcneill #define CLK_USB2		285
     91      1.1  jmcneill #define CLK_USB3		286
     92      1.1  jmcneill #define CLK_SATA_PHYCTRL	287
     93      1.1  jmcneill #define CLK_SATA_PHYI2C		288
     94      1.1  jmcneill #define CLK_UART0		289
     95      1.1  jmcneill #define CLK_UART1		290
     96      1.1  jmcneill #define CLK_UART2		291
     97      1.1  jmcneill #define CLK_UART3		292
     98      1.1  jmcneill #define CLK_UART4		293
     99      1.1  jmcneill #define CLK_I2C0		294
    100      1.1  jmcneill #define CLK_I2C1		295
    101      1.1  jmcneill #define CLK_I2C2		296
    102      1.1  jmcneill #define CLK_I2C3		297
    103      1.1  jmcneill #define CLK_I2C4		298
    104      1.1  jmcneill #define CLK_I2C5		299
    105      1.1  jmcneill #define CLK_I2C6		300
    106      1.1  jmcneill #define CLK_I2C7		301
    107      1.1  jmcneill #define CLK_I2C_HDMI		302
    108      1.1  jmcneill #define CLK_ADC			303
    109      1.1  jmcneill #define CLK_SPI0		304
    110      1.1  jmcneill #define CLK_SPI1		305
    111      1.1  jmcneill #define CLK_SPI2		306
    112      1.1  jmcneill #define CLK_I2S1		307
    113      1.1  jmcneill #define CLK_I2S2		308
    114      1.1  jmcneill #define CLK_PCM1		309
    115      1.1  jmcneill #define CLK_PCM2		310
    116      1.1  jmcneill #define CLK_PWM			311
    117      1.1  jmcneill #define CLK_SPDIF		312
    118      1.1  jmcneill #define CLK_AC97		313
    119      1.1  jmcneill #define CLK_HSI2C0		314
    120      1.1  jmcneill #define CLK_HSI2C1		315
    121      1.1  jmcneill #define CLK_HSI2C2		316
    122      1.1  jmcneill #define CLK_HSI2C3		317
    123      1.1  jmcneill #define CLK_CHIPID		318
    124      1.1  jmcneill #define CLK_SYSREG		319
    125      1.1  jmcneill #define CLK_PMU			320
    126      1.1  jmcneill #define CLK_CMU_TOP		321
    127      1.1  jmcneill #define CLK_CMU_CORE		322
    128      1.1  jmcneill #define CLK_CMU_MEM		323
    129      1.1  jmcneill #define CLK_TZPC0		324
    130      1.1  jmcneill #define CLK_TZPC1		325
    131      1.1  jmcneill #define CLK_TZPC2		326
    132      1.1  jmcneill #define CLK_TZPC3		327
    133      1.1  jmcneill #define CLK_TZPC4		328
    134      1.1  jmcneill #define CLK_TZPC5		329
    135      1.1  jmcneill #define CLK_TZPC6		330
    136      1.1  jmcneill #define CLK_TZPC7		331
    137      1.1  jmcneill #define CLK_TZPC8		332
    138      1.1  jmcneill #define CLK_TZPC9		333
    139      1.1  jmcneill #define CLK_HDMI_CEC		334
    140      1.1  jmcneill #define CLK_MCT			335
    141      1.1  jmcneill #define CLK_WDT			336
    142      1.1  jmcneill #define CLK_RTC			337
    143      1.1  jmcneill #define CLK_TMU			338
    144      1.1  jmcneill #define CLK_FIMD1		339
    145      1.1  jmcneill #define CLK_MIE1		340
    146      1.1  jmcneill #define CLK_DSIM0		341
    147      1.1  jmcneill #define CLK_DP			342
    148      1.1  jmcneill #define CLK_MIXER		343
    149      1.1  jmcneill #define CLK_HDMI		344
    150      1.1  jmcneill #define CLK_G2D			345
    151      1.1  jmcneill #define CLK_MDMA0		346
    152      1.1  jmcneill #define CLK_SMMU_MDMA0		347
    153      1.1  jmcneill #define CLK_SSS			348
    154      1.1  jmcneill #define CLK_G3D			349
    155      1.1  jmcneill #define CLK_SMMU_TV		350
    156      1.1  jmcneill #define CLK_SMMU_FIMD1		351
    157      1.1  jmcneill #define CLK_SMMU_2D		352
    158      1.1  jmcneill #define CLK_SMMU_FIMC_ISP	353
    159      1.1  jmcneill #define CLK_SMMU_FIMC_DRC	354
    160      1.1  jmcneill #define CLK_SMMU_FIMC_SCC	355
    161      1.1  jmcneill #define CLK_SMMU_FIMC_SCP	356
    162      1.1  jmcneill #define CLK_SMMU_FIMC_FD	357
    163      1.1  jmcneill #define CLK_SMMU_FIMC_MCU	358
    164      1.1  jmcneill #define CLK_SMMU_FIMC_ODC	359
    165      1.1  jmcneill #define CLK_SMMU_FIMC_DIS0	360
    166      1.1  jmcneill #define CLK_SMMU_FIMC_DIS1	361
    167      1.1  jmcneill #define CLK_SMMU_FIMC_3DNR	362
    168      1.1  jmcneill #define CLK_SMMU_FIMC_LITE0	363
    169      1.1  jmcneill #define CLK_SMMU_FIMC_LITE1	364
    170      1.1  jmcneill #define CLK_CAMIF_TOP		365
    171      1.1  jmcneill 
    172      1.1  jmcneill /* mux clocks */
    173      1.1  jmcneill #define CLK_MOUT_HDMI		1024
    174      1.1  jmcneill #define CLK_MOUT_GPLL		1025
    175      1.1  jmcneill #define CLK_MOUT_ACLK200_DISP1_SUB	1026
    176      1.1  jmcneill #define CLK_MOUT_ACLK300_DISP1_SUB	1027
    177  1.1.1.3  jmcneill #define CLK_MOUT_APLL		1028
    178  1.1.1.3  jmcneill #define CLK_MOUT_MPLL		1029
    179      1.1  jmcneill 
    180      1.1  jmcneill /* must be greater than maximal clock id */
    181  1.1.1.3  jmcneill #define CLK_NR_CLKS		1030
    182      1.1  jmcneill 
    183      1.1  jmcneill #endif /* _DT_BINDINGS_CLOCK_EXYNOS_5250_H */
    184