Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: exynos4.h,v 1.1.1.4 2020/01/03 14:33:04 skrll Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.3  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 Exynos4 clock controller.
      9  1.1.1.3  jmcneill  */
     10      1.1  jmcneill 
     11      1.1  jmcneill #ifndef _DT_BINDINGS_CLOCK_EXYNOS_4_H
     12      1.1  jmcneill #define _DT_BINDINGS_CLOCK_EXYNOS_4_H
     13      1.1  jmcneill 
     14      1.1  jmcneill /* core clocks */
     15      1.1  jmcneill #define CLK_XXTI		1
     16      1.1  jmcneill #define CLK_XUSBXTI		2
     17      1.1  jmcneill #define CLK_FIN_PLL		3
     18      1.1  jmcneill #define CLK_FOUT_APLL		4
     19      1.1  jmcneill #define CLK_FOUT_MPLL		5
     20      1.1  jmcneill #define CLK_FOUT_EPLL		6
     21      1.1  jmcneill #define CLK_FOUT_VPLL		7
     22      1.1  jmcneill #define CLK_SCLK_APLL		8
     23      1.1  jmcneill #define CLK_SCLK_MPLL		9
     24      1.1  jmcneill #define CLK_SCLK_EPLL		10
     25      1.1  jmcneill #define CLK_SCLK_VPLL		11
     26      1.1  jmcneill #define CLK_ARM_CLK		12
     27      1.1  jmcneill #define CLK_ACLK200		13
     28      1.1  jmcneill #define CLK_ACLK100		14
     29      1.1  jmcneill #define CLK_ACLK160		15
     30      1.1  jmcneill #define CLK_ACLK133		16
     31      1.1  jmcneill #define CLK_MOUT_MPLL_USER_T	17 /* Exynos4x12 only */
     32      1.1  jmcneill #define CLK_MOUT_MPLL_USER_C	18 /* Exynos4x12 only */
     33      1.1  jmcneill #define CLK_MOUT_CORE		19
     34      1.1  jmcneill #define CLK_MOUT_APLL		20
     35      1.1  jmcneill #define CLK_SCLK_HDMIPHY	22
     36      1.1  jmcneill #define CLK_OUT_DMC		23
     37      1.1  jmcneill #define CLK_OUT_TOP		24
     38      1.1  jmcneill #define CLK_OUT_LEFTBUS		25
     39      1.1  jmcneill #define CLK_OUT_RIGHTBUS	26
     40      1.1  jmcneill #define CLK_OUT_CPU		27
     41      1.1  jmcneill 
     42      1.1  jmcneill /* gate for special clocks (sclk) */
     43      1.1  jmcneill #define CLK_SCLK_FIMC0		128
     44      1.1  jmcneill #define CLK_SCLK_FIMC1		129
     45      1.1  jmcneill #define CLK_SCLK_FIMC2		130
     46      1.1  jmcneill #define CLK_SCLK_FIMC3		131
     47      1.1  jmcneill #define CLK_SCLK_CAM0		132
     48      1.1  jmcneill #define CLK_SCLK_CAM1		133
     49      1.1  jmcneill #define CLK_SCLK_CSIS0		134
     50      1.1  jmcneill #define CLK_SCLK_CSIS1		135
     51      1.1  jmcneill #define CLK_SCLK_HDMI		136
     52      1.1  jmcneill #define CLK_SCLK_MIXER		137
     53      1.1  jmcneill #define CLK_SCLK_DAC		138
     54      1.1  jmcneill #define CLK_SCLK_PIXEL		139
     55      1.1  jmcneill #define CLK_SCLK_FIMD0		140
     56      1.1  jmcneill #define CLK_SCLK_MDNIE0		141 /* Exynos4412 only */
     57      1.1  jmcneill #define CLK_SCLK_MDNIE_PWM0	142
     58      1.1  jmcneill #define CLK_SCLK_MIPI0		143
     59      1.1  jmcneill #define CLK_SCLK_AUDIO0		144
     60      1.1  jmcneill #define CLK_SCLK_MMC0		145
     61      1.1  jmcneill #define CLK_SCLK_MMC1		146
     62      1.1  jmcneill #define CLK_SCLK_MMC2		147
     63      1.1  jmcneill #define CLK_SCLK_MMC3		148
     64      1.1  jmcneill #define CLK_SCLK_MMC4		149
     65      1.1  jmcneill #define CLK_SCLK_SATA		150 /* Exynos4210 only */
     66      1.1  jmcneill #define CLK_SCLK_UART0		151
     67      1.1  jmcneill #define CLK_SCLK_UART1		152
     68      1.1  jmcneill #define CLK_SCLK_UART2		153
     69      1.1  jmcneill #define CLK_SCLK_UART3		154
     70      1.1  jmcneill #define CLK_SCLK_UART4		155
     71      1.1  jmcneill #define CLK_SCLK_AUDIO1		156
     72      1.1  jmcneill #define CLK_SCLK_AUDIO2		157
     73      1.1  jmcneill #define CLK_SCLK_SPDIF		158
     74      1.1  jmcneill #define CLK_SCLK_SPI0		159
     75      1.1  jmcneill #define CLK_SCLK_SPI1		160
     76      1.1  jmcneill #define CLK_SCLK_SPI2		161
     77      1.1  jmcneill #define CLK_SCLK_SLIMBUS	162
     78      1.1  jmcneill #define CLK_SCLK_FIMD1		163 /* Exynos4210 only */
     79      1.1  jmcneill #define CLK_SCLK_MIPI1		164 /* Exynos4210 only */
     80      1.1  jmcneill #define CLK_SCLK_PCM1		165
     81      1.1  jmcneill #define CLK_SCLK_PCM2		166
     82      1.1  jmcneill #define CLK_SCLK_I2S1		167
     83      1.1  jmcneill #define CLK_SCLK_I2S2		168
     84      1.1  jmcneill #define CLK_SCLK_MIPIHSI	169 /* Exynos4412 only */
     85      1.1  jmcneill #define CLK_SCLK_MFC		170
     86      1.1  jmcneill #define CLK_SCLK_PCM0		171
     87      1.1  jmcneill #define CLK_SCLK_G3D		172
     88      1.1  jmcneill #define CLK_SCLK_PWM_ISP	173 /* Exynos4x12 only */
     89      1.1  jmcneill #define CLK_SCLK_SPI0_ISP	174 /* Exynos4x12 only */
     90      1.1  jmcneill #define CLK_SCLK_SPI1_ISP	175 /* Exynos4x12 only */
     91      1.1  jmcneill #define CLK_SCLK_UART_ISP	176 /* Exynos4x12 only */
     92      1.1  jmcneill #define CLK_SCLK_FIMG2D		177
     93      1.1  jmcneill 
     94      1.1  jmcneill /* gate clocks */
     95      1.1  jmcneill #define CLK_SSS			255
     96      1.1  jmcneill #define CLK_FIMC0		256
     97      1.1  jmcneill #define CLK_FIMC1		257
     98      1.1  jmcneill #define CLK_FIMC2		258
     99      1.1  jmcneill #define CLK_FIMC3		259
    100      1.1  jmcneill #define CLK_CSIS0		260
    101      1.1  jmcneill #define CLK_CSIS1		261
    102      1.1  jmcneill #define CLK_JPEG		262
    103      1.1  jmcneill #define CLK_SMMU_FIMC0		263
    104      1.1  jmcneill #define CLK_SMMU_FIMC1		264
    105      1.1  jmcneill #define CLK_SMMU_FIMC2		265
    106      1.1  jmcneill #define CLK_SMMU_FIMC3		266
    107      1.1  jmcneill #define CLK_SMMU_JPEG		267
    108      1.1  jmcneill #define CLK_VP			268
    109      1.1  jmcneill #define CLK_MIXER		269
    110      1.1  jmcneill #define CLK_TVENC		270 /* Exynos4210 only */
    111      1.1  jmcneill #define CLK_HDMI		271
    112      1.1  jmcneill #define CLK_SMMU_TV		272
    113      1.1  jmcneill #define CLK_MFC			273
    114      1.1  jmcneill #define CLK_SMMU_MFCL		274
    115      1.1  jmcneill #define CLK_SMMU_MFCR		275
    116      1.1  jmcneill #define CLK_G3D			276
    117      1.1  jmcneill #define CLK_G2D			277
    118      1.1  jmcneill #define CLK_ROTATOR		278
    119      1.1  jmcneill #define CLK_MDMA		279
    120      1.1  jmcneill #define CLK_SMMU_G2D		280
    121      1.1  jmcneill #define CLK_SMMU_ROTATOR	281
    122      1.1  jmcneill #define CLK_SMMU_MDMA		282
    123      1.1  jmcneill #define CLK_FIMD0		283
    124      1.1  jmcneill #define CLK_MIE0		284
    125      1.1  jmcneill #define CLK_MDNIE0		285 /* Exynos4412 only */
    126      1.1  jmcneill #define CLK_DSIM0		286
    127      1.1  jmcneill #define CLK_SMMU_FIMD0		287
    128      1.1  jmcneill #define CLK_FIMD1		288 /* Exynos4210 only */
    129      1.1  jmcneill #define CLK_MIE1		289 /* Exynos4210 only */
    130      1.1  jmcneill #define CLK_DSIM1		290 /* Exynos4210 only */
    131      1.1  jmcneill #define CLK_SMMU_FIMD1		291 /* Exynos4210 only */
    132      1.1  jmcneill #define CLK_PDMA0		292
    133      1.1  jmcneill #define CLK_PDMA1		293
    134      1.1  jmcneill #define CLK_PCIE_PHY		294
    135      1.1  jmcneill #define CLK_SATA_PHY		295 /* Exynos4210 only */
    136      1.1  jmcneill #define CLK_TSI			296
    137      1.1  jmcneill #define CLK_SDMMC0		297
    138      1.1  jmcneill #define CLK_SDMMC1		298
    139      1.1  jmcneill #define CLK_SDMMC2		299
    140      1.1  jmcneill #define CLK_SDMMC3		300
    141      1.1  jmcneill #define CLK_SDMMC4		301
    142      1.1  jmcneill #define CLK_SATA		302 /* Exynos4210 only */
    143      1.1  jmcneill #define CLK_SROMC		303
    144      1.1  jmcneill #define CLK_USB_HOST		304
    145      1.1  jmcneill #define CLK_USB_DEVICE		305
    146      1.1  jmcneill #define CLK_PCIE		306
    147      1.1  jmcneill #define CLK_ONENAND		307
    148      1.1  jmcneill #define CLK_NFCON		308
    149      1.1  jmcneill #define CLK_SMMU_PCIE		309
    150      1.1  jmcneill #define CLK_GPS			310
    151      1.1  jmcneill #define CLK_SMMU_GPS		311
    152      1.1  jmcneill #define CLK_UART0		312
    153      1.1  jmcneill #define CLK_UART1		313
    154      1.1  jmcneill #define CLK_UART2		314
    155      1.1  jmcneill #define CLK_UART3		315
    156      1.1  jmcneill #define CLK_UART4		316
    157      1.1  jmcneill #define CLK_I2C0		317
    158      1.1  jmcneill #define CLK_I2C1		318
    159      1.1  jmcneill #define CLK_I2C2		319
    160      1.1  jmcneill #define CLK_I2C3		320
    161      1.1  jmcneill #define CLK_I2C4		321
    162      1.1  jmcneill #define CLK_I2C5		322
    163      1.1  jmcneill #define CLK_I2C6		323
    164      1.1  jmcneill #define CLK_I2C7		324
    165      1.1  jmcneill #define CLK_I2C_HDMI		325
    166      1.1  jmcneill #define CLK_TSADC		326
    167      1.1  jmcneill #define CLK_SPI0		327
    168      1.1  jmcneill #define CLK_SPI1		328
    169      1.1  jmcneill #define CLK_SPI2		329
    170      1.1  jmcneill #define CLK_I2S1		330
    171      1.1  jmcneill #define CLK_I2S2		331
    172      1.1  jmcneill #define CLK_PCM0		332
    173      1.1  jmcneill #define CLK_I2S0		333
    174      1.1  jmcneill #define CLK_PCM1		334
    175      1.1  jmcneill #define CLK_PCM2		335
    176      1.1  jmcneill #define CLK_PWM			336
    177      1.1  jmcneill #define CLK_SLIMBUS		337
    178      1.1  jmcneill #define CLK_SPDIF		338
    179      1.1  jmcneill #define CLK_AC97		339
    180      1.1  jmcneill #define CLK_MODEMIF		340
    181      1.1  jmcneill #define CLK_CHIPID		341
    182      1.1  jmcneill #define CLK_SYSREG		342
    183      1.1  jmcneill #define CLK_HDMI_CEC		343
    184      1.1  jmcneill #define CLK_MCT			344
    185      1.1  jmcneill #define CLK_WDT			345
    186      1.1  jmcneill #define CLK_RTC			346
    187      1.1  jmcneill #define CLK_KEYIF		347
    188      1.1  jmcneill #define CLK_AUDSS		348
    189      1.1  jmcneill #define CLK_MIPI_HSI		349 /* Exynos4210 only */
    190      1.1  jmcneill #define CLK_PIXELASYNCM0	351
    191      1.1  jmcneill #define CLK_PIXELASYNCM1	352
    192  1.1.1.4     skrll #define CLK_ASYNC_G3D		353 /* Exynos4x12 only */
    193      1.1  jmcneill #define CLK_PWM_ISP_SCLK	379 /* Exynos4x12 only */
    194      1.1  jmcneill #define CLK_SPI0_ISP_SCLK	380 /* Exynos4x12 only */
    195      1.1  jmcneill #define CLK_SPI1_ISP_SCLK	381 /* Exynos4x12 only */
    196      1.1  jmcneill #define CLK_UART_ISP_SCLK	382 /* Exynos4x12 only */
    197      1.1  jmcneill #define CLK_TMU_APBIF		383
    198      1.1  jmcneill 
    199      1.1  jmcneill /* mux clocks */
    200      1.1  jmcneill #define CLK_MOUT_FIMC0		384
    201      1.1  jmcneill #define CLK_MOUT_FIMC1		385
    202      1.1  jmcneill #define CLK_MOUT_FIMC2		386
    203      1.1  jmcneill #define CLK_MOUT_FIMC3		387
    204      1.1  jmcneill #define CLK_MOUT_CAM0		388
    205      1.1  jmcneill #define CLK_MOUT_CAM1		389
    206      1.1  jmcneill #define CLK_MOUT_CSIS0		390
    207      1.1  jmcneill #define CLK_MOUT_CSIS1		391
    208      1.1  jmcneill #define CLK_MOUT_G3D0		392
    209      1.1  jmcneill #define CLK_MOUT_G3D1		393
    210      1.1  jmcneill #define CLK_MOUT_G3D		394
    211      1.1  jmcneill #define CLK_ACLK400_MCUISP	395 /* Exynos4x12 only */
    212      1.1  jmcneill #define CLK_MOUT_HDMI		396
    213      1.1  jmcneill #define CLK_MOUT_MIXER		397
    214      1.1  jmcneill 
    215      1.1  jmcneill /* gate clocks - ppmu */
    216      1.1  jmcneill #define CLK_PPMULEFT		400
    217      1.1  jmcneill #define CLK_PPMURIGHT		401
    218      1.1  jmcneill #define CLK_PPMUCAMIF		402
    219      1.1  jmcneill #define CLK_PPMUTV		403
    220      1.1  jmcneill #define CLK_PPMUMFC_L		404
    221      1.1  jmcneill #define CLK_PPMUMFC_R		405
    222      1.1  jmcneill #define CLK_PPMUG3D		406
    223      1.1  jmcneill #define CLK_PPMUIMAGE		407
    224      1.1  jmcneill #define CLK_PPMULCD0		408
    225      1.1  jmcneill #define CLK_PPMULCD1		409 /* Exynos4210 only */
    226      1.1  jmcneill #define CLK_PPMUFILE		410
    227      1.1  jmcneill #define CLK_PPMUGPS		411
    228      1.1  jmcneill #define CLK_PPMUDMC0		412
    229      1.1  jmcneill #define CLK_PPMUDMC1		413
    230      1.1  jmcneill #define CLK_PPMUCPU		414
    231      1.1  jmcneill #define CLK_PPMUACP		415
    232      1.1  jmcneill 
    233      1.1  jmcneill /* div clocks */
    234      1.1  jmcneill #define CLK_DIV_ACLK200		454 /* Exynos4x12 only */
    235      1.1  jmcneill #define CLK_DIV_ACLK400_MCUISP	455 /* Exynos4x12 only */
    236      1.1  jmcneill #define CLK_DIV_ACP		456
    237      1.1  jmcneill #define CLK_DIV_DMC		457
    238      1.1  jmcneill #define CLK_DIV_C2C		458 /* Exynos4x12 only */
    239      1.1  jmcneill #define CLK_DIV_GDL		459
    240      1.1  jmcneill #define CLK_DIV_GDR		460
    241      1.1  jmcneill 
    242      1.1  jmcneill /* must be greater than maximal clock id */
    243      1.1  jmcneill #define CLK_NR_CLKS		461
    244      1.1  jmcneill 
    245  1.1.1.2  jmcneill /* Exynos4x12 ISP clocks */
    246  1.1.1.2  jmcneill #define CLK_ISP_FIMC_ISP		 1
    247  1.1.1.2  jmcneill #define CLK_ISP_FIMC_DRC		 2
    248  1.1.1.2  jmcneill #define CLK_ISP_FIMC_FD			 3
    249  1.1.1.2  jmcneill #define CLK_ISP_FIMC_LITE0		 4
    250  1.1.1.2  jmcneill #define CLK_ISP_FIMC_LITE1		 5
    251  1.1.1.2  jmcneill #define CLK_ISP_MCUISP			 6
    252  1.1.1.2  jmcneill #define CLK_ISP_GICISP			 7
    253  1.1.1.2  jmcneill #define CLK_ISP_SMMU_ISP		 8
    254  1.1.1.2  jmcneill #define CLK_ISP_SMMU_DRC		 9
    255  1.1.1.2  jmcneill #define CLK_ISP_SMMU_FD			10
    256  1.1.1.2  jmcneill #define CLK_ISP_SMMU_LITE0		11
    257  1.1.1.2  jmcneill #define CLK_ISP_SMMU_LITE1		12
    258  1.1.1.2  jmcneill #define CLK_ISP_PPMUISPMX		13
    259  1.1.1.2  jmcneill #define CLK_ISP_PPMUISPX		14
    260  1.1.1.2  jmcneill #define CLK_ISP_MCUCTL_ISP		15
    261  1.1.1.2  jmcneill #define CLK_ISP_MPWM_ISP		16
    262  1.1.1.2  jmcneill #define CLK_ISP_I2C0_ISP		17
    263  1.1.1.2  jmcneill #define CLK_ISP_I2C1_ISP		18
    264  1.1.1.2  jmcneill #define CLK_ISP_MTCADC_ISP		19
    265  1.1.1.2  jmcneill #define CLK_ISP_PWM_ISP			20
    266  1.1.1.2  jmcneill #define CLK_ISP_WDT_ISP			21
    267  1.1.1.2  jmcneill #define CLK_ISP_UART_ISP		22
    268  1.1.1.2  jmcneill #define CLK_ISP_ASYNCAXIM		23
    269  1.1.1.2  jmcneill #define CLK_ISP_SMMU_ISPCX		24
    270  1.1.1.2  jmcneill #define CLK_ISP_SPI0_ISP		25
    271  1.1.1.2  jmcneill #define CLK_ISP_SPI1_ISP		26
    272  1.1.1.2  jmcneill 
    273  1.1.1.2  jmcneill #define CLK_ISP_DIV_ISP0		27
    274  1.1.1.2  jmcneill #define CLK_ISP_DIV_ISP1		28
    275  1.1.1.2  jmcneill #define CLK_ISP_DIV_MCUISP0		29
    276  1.1.1.2  jmcneill #define CLK_ISP_DIV_MCUISP1		30
    277  1.1.1.2  jmcneill 
    278  1.1.1.2  jmcneill #define CLK_NR_ISP_CLKS			31
    279  1.1.1.2  jmcneill 
    280      1.1  jmcneill #endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */
    281