162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2013 Samsung Electronics Co., Ltd.
462306a36Sopenharmony_ci * Author: Andrzej Hajda <a.hajda@samsung.com>
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Device Tree binding constants for Exynos4 clock controller.
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLOCK_EXYNOS_4_H
1062306a36Sopenharmony_ci#define _DT_BINDINGS_CLOCK_EXYNOS_4_H
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/* core clocks */
1362306a36Sopenharmony_ci#define CLK_XXTI		1
1462306a36Sopenharmony_ci#define CLK_XUSBXTI		2
1562306a36Sopenharmony_ci#define CLK_FIN_PLL		3
1662306a36Sopenharmony_ci#define CLK_FOUT_APLL		4
1762306a36Sopenharmony_ci#define CLK_FOUT_MPLL		5
1862306a36Sopenharmony_ci#define CLK_FOUT_EPLL		6
1962306a36Sopenharmony_ci#define CLK_FOUT_VPLL		7
2062306a36Sopenharmony_ci#define CLK_SCLK_APLL		8
2162306a36Sopenharmony_ci#define CLK_SCLK_MPLL		9
2262306a36Sopenharmony_ci#define CLK_SCLK_EPLL		10
2362306a36Sopenharmony_ci#define CLK_SCLK_VPLL		11
2462306a36Sopenharmony_ci#define CLK_ARM_CLK		12
2562306a36Sopenharmony_ci#define CLK_ACLK200		13
2662306a36Sopenharmony_ci#define CLK_ACLK100		14
2762306a36Sopenharmony_ci#define CLK_ACLK160		15
2862306a36Sopenharmony_ci#define CLK_ACLK133		16
2962306a36Sopenharmony_ci#define CLK_MOUT_MPLL_USER_T	17 /* Exynos4x12 only */
3062306a36Sopenharmony_ci#define CLK_MOUT_MPLL_USER_C	18 /* Exynos4x12 only */
3162306a36Sopenharmony_ci#define CLK_MOUT_CORE		19
3262306a36Sopenharmony_ci#define CLK_MOUT_APLL		20
3362306a36Sopenharmony_ci#define CLK_SCLK_HDMIPHY	22
3462306a36Sopenharmony_ci#define CLK_OUT_DMC		23
3562306a36Sopenharmony_ci#define CLK_OUT_TOP		24
3662306a36Sopenharmony_ci#define CLK_OUT_LEFTBUS		25
3762306a36Sopenharmony_ci#define CLK_OUT_RIGHTBUS	26
3862306a36Sopenharmony_ci#define CLK_OUT_CPU		27
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci/* gate for special clocks (sclk) */
4162306a36Sopenharmony_ci#define CLK_SCLK_FIMC0		128
4262306a36Sopenharmony_ci#define CLK_SCLK_FIMC1		129
4362306a36Sopenharmony_ci#define CLK_SCLK_FIMC2		130
4462306a36Sopenharmony_ci#define CLK_SCLK_FIMC3		131
4562306a36Sopenharmony_ci#define CLK_SCLK_CAM0		132
4662306a36Sopenharmony_ci#define CLK_SCLK_CAM1		133
4762306a36Sopenharmony_ci#define CLK_SCLK_CSIS0		134
4862306a36Sopenharmony_ci#define CLK_SCLK_CSIS1		135
4962306a36Sopenharmony_ci#define CLK_SCLK_HDMI		136
5062306a36Sopenharmony_ci#define CLK_SCLK_MIXER		137
5162306a36Sopenharmony_ci#define CLK_SCLK_DAC		138
5262306a36Sopenharmony_ci#define CLK_SCLK_PIXEL		139
5362306a36Sopenharmony_ci#define CLK_SCLK_FIMD0		140
5462306a36Sopenharmony_ci#define CLK_SCLK_MDNIE0		141 /* Exynos4412 only */
5562306a36Sopenharmony_ci#define CLK_SCLK_MDNIE_PWM0	142
5662306a36Sopenharmony_ci#define CLK_SCLK_MIPI0		143
5762306a36Sopenharmony_ci#define CLK_SCLK_AUDIO0		144
5862306a36Sopenharmony_ci#define CLK_SCLK_MMC0		145
5962306a36Sopenharmony_ci#define CLK_SCLK_MMC1		146
6062306a36Sopenharmony_ci#define CLK_SCLK_MMC2		147
6162306a36Sopenharmony_ci#define CLK_SCLK_MMC3		148
6262306a36Sopenharmony_ci#define CLK_SCLK_MMC4		149
6362306a36Sopenharmony_ci#define CLK_SCLK_SATA		150 /* Exynos4210 only */
6462306a36Sopenharmony_ci#define CLK_SCLK_UART0		151
6562306a36Sopenharmony_ci#define CLK_SCLK_UART1		152
6662306a36Sopenharmony_ci#define CLK_SCLK_UART2		153
6762306a36Sopenharmony_ci#define CLK_SCLK_UART3		154
6862306a36Sopenharmony_ci#define CLK_SCLK_UART4		155
6962306a36Sopenharmony_ci#define CLK_SCLK_AUDIO1		156
7062306a36Sopenharmony_ci#define CLK_SCLK_AUDIO2		157
7162306a36Sopenharmony_ci#define CLK_SCLK_SPDIF		158
7262306a36Sopenharmony_ci#define CLK_SCLK_SPI0		159
7362306a36Sopenharmony_ci#define CLK_SCLK_SPI1		160
7462306a36Sopenharmony_ci#define CLK_SCLK_SPI2		161
7562306a36Sopenharmony_ci#define CLK_SCLK_SLIMBUS	162
7662306a36Sopenharmony_ci#define CLK_SCLK_FIMD1		163 /* Exynos4210 only */
7762306a36Sopenharmony_ci#define CLK_SCLK_MIPI1		164 /* Exynos4210 only */
7862306a36Sopenharmony_ci#define CLK_SCLK_PCM1		165
7962306a36Sopenharmony_ci#define CLK_SCLK_PCM2		166
8062306a36Sopenharmony_ci#define CLK_SCLK_I2S1		167
8162306a36Sopenharmony_ci#define CLK_SCLK_I2S2		168
8262306a36Sopenharmony_ci#define CLK_SCLK_MIPIHSI	169 /* Exynos4412 only */
8362306a36Sopenharmony_ci#define CLK_SCLK_MFC		170
8462306a36Sopenharmony_ci#define CLK_SCLK_PCM0		171
8562306a36Sopenharmony_ci#define CLK_SCLK_G3D		172
8662306a36Sopenharmony_ci#define CLK_SCLK_PWM_ISP	173 /* Exynos4x12 only */
8762306a36Sopenharmony_ci#define CLK_SCLK_SPI0_ISP	174 /* Exynos4x12 only */
8862306a36Sopenharmony_ci#define CLK_SCLK_SPI1_ISP	175 /* Exynos4x12 only */
8962306a36Sopenharmony_ci#define CLK_SCLK_UART_ISP	176 /* Exynos4x12 only */
9062306a36Sopenharmony_ci#define CLK_SCLK_FIMG2D		177
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci/* gate clocks */
9362306a36Sopenharmony_ci#define CLK_SSS			255
9462306a36Sopenharmony_ci#define CLK_FIMC0		256
9562306a36Sopenharmony_ci#define CLK_FIMC1		257
9662306a36Sopenharmony_ci#define CLK_FIMC2		258
9762306a36Sopenharmony_ci#define CLK_FIMC3		259
9862306a36Sopenharmony_ci#define CLK_CSIS0		260
9962306a36Sopenharmony_ci#define CLK_CSIS1		261
10062306a36Sopenharmony_ci#define CLK_JPEG		262
10162306a36Sopenharmony_ci#define CLK_SMMU_FIMC0		263
10262306a36Sopenharmony_ci#define CLK_SMMU_FIMC1		264
10362306a36Sopenharmony_ci#define CLK_SMMU_FIMC2		265
10462306a36Sopenharmony_ci#define CLK_SMMU_FIMC3		266
10562306a36Sopenharmony_ci#define CLK_SMMU_JPEG		267
10662306a36Sopenharmony_ci#define CLK_VP			268
10762306a36Sopenharmony_ci#define CLK_MIXER		269
10862306a36Sopenharmony_ci#define CLK_TVENC		270 /* Exynos4210 only */
10962306a36Sopenharmony_ci#define CLK_HDMI		271
11062306a36Sopenharmony_ci#define CLK_SMMU_TV		272
11162306a36Sopenharmony_ci#define CLK_MFC			273
11262306a36Sopenharmony_ci#define CLK_SMMU_MFCL		274
11362306a36Sopenharmony_ci#define CLK_SMMU_MFCR		275
11462306a36Sopenharmony_ci#define CLK_G3D			276
11562306a36Sopenharmony_ci#define CLK_G2D			277
11662306a36Sopenharmony_ci#define CLK_ROTATOR		278
11762306a36Sopenharmony_ci#define CLK_MDMA		279
11862306a36Sopenharmony_ci#define CLK_SMMU_G2D		280
11962306a36Sopenharmony_ci#define CLK_SMMU_ROTATOR	281
12062306a36Sopenharmony_ci#define CLK_SMMU_MDMA		282
12162306a36Sopenharmony_ci#define CLK_FIMD0		283
12262306a36Sopenharmony_ci#define CLK_MIE0		284
12362306a36Sopenharmony_ci#define CLK_MDNIE0		285 /* Exynos4412 only */
12462306a36Sopenharmony_ci#define CLK_DSIM0		286
12562306a36Sopenharmony_ci#define CLK_SMMU_FIMD0		287
12662306a36Sopenharmony_ci#define CLK_FIMD1		288 /* Exynos4210 only */
12762306a36Sopenharmony_ci#define CLK_MIE1		289 /* Exynos4210 only */
12862306a36Sopenharmony_ci#define CLK_DSIM1		290 /* Exynos4210 only */
12962306a36Sopenharmony_ci#define CLK_SMMU_FIMD1		291 /* Exynos4210 only */
13062306a36Sopenharmony_ci#define CLK_PDMA0		292
13162306a36Sopenharmony_ci#define CLK_PDMA1		293
13262306a36Sopenharmony_ci#define CLK_PCIE_PHY		294
13362306a36Sopenharmony_ci#define CLK_SATA_PHY		295 /* Exynos4210 only */
13462306a36Sopenharmony_ci#define CLK_TSI			296
13562306a36Sopenharmony_ci#define CLK_SDMMC0		297
13662306a36Sopenharmony_ci#define CLK_SDMMC1		298
13762306a36Sopenharmony_ci#define CLK_SDMMC2		299
13862306a36Sopenharmony_ci#define CLK_SDMMC3		300
13962306a36Sopenharmony_ci#define CLK_SDMMC4		301
14062306a36Sopenharmony_ci#define CLK_SATA		302 /* Exynos4210 only */
14162306a36Sopenharmony_ci#define CLK_SROMC		303
14262306a36Sopenharmony_ci#define CLK_USB_HOST		304
14362306a36Sopenharmony_ci#define CLK_USB_DEVICE		305
14462306a36Sopenharmony_ci#define CLK_PCIE		306
14562306a36Sopenharmony_ci#define CLK_ONENAND		307
14662306a36Sopenharmony_ci#define CLK_NFCON		308
14762306a36Sopenharmony_ci#define CLK_SMMU_PCIE		309
14862306a36Sopenharmony_ci#define CLK_GPS			310
14962306a36Sopenharmony_ci#define CLK_SMMU_GPS		311
15062306a36Sopenharmony_ci#define CLK_UART0		312
15162306a36Sopenharmony_ci#define CLK_UART1		313
15262306a36Sopenharmony_ci#define CLK_UART2		314
15362306a36Sopenharmony_ci#define CLK_UART3		315
15462306a36Sopenharmony_ci#define CLK_UART4		316
15562306a36Sopenharmony_ci#define CLK_I2C0		317
15662306a36Sopenharmony_ci#define CLK_I2C1		318
15762306a36Sopenharmony_ci#define CLK_I2C2		319
15862306a36Sopenharmony_ci#define CLK_I2C3		320
15962306a36Sopenharmony_ci#define CLK_I2C4		321
16062306a36Sopenharmony_ci#define CLK_I2C5		322
16162306a36Sopenharmony_ci#define CLK_I2C6		323
16262306a36Sopenharmony_ci#define CLK_I2C7		324
16362306a36Sopenharmony_ci#define CLK_I2C_HDMI		325
16462306a36Sopenharmony_ci#define CLK_TSADC		326
16562306a36Sopenharmony_ci#define CLK_SPI0		327
16662306a36Sopenharmony_ci#define CLK_SPI1		328
16762306a36Sopenharmony_ci#define CLK_SPI2		329
16862306a36Sopenharmony_ci#define CLK_I2S1		330
16962306a36Sopenharmony_ci#define CLK_I2S2		331
17062306a36Sopenharmony_ci#define CLK_PCM0		332
17162306a36Sopenharmony_ci#define CLK_I2S0		333
17262306a36Sopenharmony_ci#define CLK_PCM1		334
17362306a36Sopenharmony_ci#define CLK_PCM2		335
17462306a36Sopenharmony_ci#define CLK_PWM			336
17562306a36Sopenharmony_ci#define CLK_SLIMBUS		337
17662306a36Sopenharmony_ci#define CLK_SPDIF		338
17762306a36Sopenharmony_ci#define CLK_AC97		339
17862306a36Sopenharmony_ci#define CLK_MODEMIF		340
17962306a36Sopenharmony_ci#define CLK_CHIPID		341
18062306a36Sopenharmony_ci#define CLK_SYSREG		342
18162306a36Sopenharmony_ci#define CLK_HDMI_CEC		343
18262306a36Sopenharmony_ci#define CLK_MCT			344
18362306a36Sopenharmony_ci#define CLK_WDT			345
18462306a36Sopenharmony_ci#define CLK_RTC			346
18562306a36Sopenharmony_ci#define CLK_KEYIF		347
18662306a36Sopenharmony_ci#define CLK_AUDSS		348
18762306a36Sopenharmony_ci#define CLK_MIPI_HSI		349 /* Exynos4210 only */
18862306a36Sopenharmony_ci#define CLK_PIXELASYNCM0	351
18962306a36Sopenharmony_ci#define CLK_PIXELASYNCM1	352
19062306a36Sopenharmony_ci#define CLK_ASYNC_G3D		353 /* Exynos4x12 only */
19162306a36Sopenharmony_ci#define CLK_PWM_ISP_SCLK	379 /* Exynos4x12 only */
19262306a36Sopenharmony_ci#define CLK_SPI0_ISP_SCLK	380 /* Exynos4x12 only */
19362306a36Sopenharmony_ci#define CLK_SPI1_ISP_SCLK	381 /* Exynos4x12 only */
19462306a36Sopenharmony_ci#define CLK_UART_ISP_SCLK	382 /* Exynos4x12 only */
19562306a36Sopenharmony_ci#define CLK_TMU_APBIF		383
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ci/* mux clocks */
19862306a36Sopenharmony_ci#define CLK_MOUT_FIMC0		384
19962306a36Sopenharmony_ci#define CLK_MOUT_FIMC1		385
20062306a36Sopenharmony_ci#define CLK_MOUT_FIMC2		386
20162306a36Sopenharmony_ci#define CLK_MOUT_FIMC3		387
20262306a36Sopenharmony_ci#define CLK_MOUT_CAM0		388
20362306a36Sopenharmony_ci#define CLK_MOUT_CAM1		389
20462306a36Sopenharmony_ci#define CLK_MOUT_CSIS0		390
20562306a36Sopenharmony_ci#define CLK_MOUT_CSIS1		391
20662306a36Sopenharmony_ci#define CLK_MOUT_G3D0		392
20762306a36Sopenharmony_ci#define CLK_MOUT_G3D1		393
20862306a36Sopenharmony_ci#define CLK_MOUT_G3D		394
20962306a36Sopenharmony_ci#define CLK_ACLK400_MCUISP	395 /* Exynos4x12 only */
21062306a36Sopenharmony_ci#define CLK_MOUT_HDMI		396
21162306a36Sopenharmony_ci#define CLK_MOUT_MIXER		397
21262306a36Sopenharmony_ci#define CLK_MOUT_VPLLSRC	398
21362306a36Sopenharmony_ci
21462306a36Sopenharmony_ci/* gate clocks - ppmu */
21562306a36Sopenharmony_ci#define CLK_PPMULEFT		400
21662306a36Sopenharmony_ci#define CLK_PPMURIGHT		401
21762306a36Sopenharmony_ci#define CLK_PPMUCAMIF		402
21862306a36Sopenharmony_ci#define CLK_PPMUTV		403
21962306a36Sopenharmony_ci#define CLK_PPMUMFC_L		404
22062306a36Sopenharmony_ci#define CLK_PPMUMFC_R		405
22162306a36Sopenharmony_ci#define CLK_PPMUG3D		406
22262306a36Sopenharmony_ci#define CLK_PPMUIMAGE		407
22362306a36Sopenharmony_ci#define CLK_PPMULCD0		408
22462306a36Sopenharmony_ci#define CLK_PPMULCD1		409 /* Exynos4210 only */
22562306a36Sopenharmony_ci#define CLK_PPMUFILE		410
22662306a36Sopenharmony_ci#define CLK_PPMUGPS		411
22762306a36Sopenharmony_ci#define CLK_PPMUDMC0		412
22862306a36Sopenharmony_ci#define CLK_PPMUDMC1		413
22962306a36Sopenharmony_ci#define CLK_PPMUCPU		414
23062306a36Sopenharmony_ci#define CLK_PPMUACP		415
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ci/* div clocks */
23362306a36Sopenharmony_ci#define CLK_DIV_ACLK200		454 /* Exynos4x12 only */
23462306a36Sopenharmony_ci#define CLK_DIV_ACLK400_MCUISP	455 /* Exynos4x12 only */
23562306a36Sopenharmony_ci#define CLK_DIV_ACP		456
23662306a36Sopenharmony_ci#define CLK_DIV_DMC		457
23762306a36Sopenharmony_ci#define CLK_DIV_C2C		458 /* Exynos4x12 only */
23862306a36Sopenharmony_ci#define CLK_DIV_GDL		459
23962306a36Sopenharmony_ci#define CLK_DIV_GDR		460
24062306a36Sopenharmony_ci#define CLK_DIV_CORE2		461
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci/* Exynos4x12 ISP clocks */
24362306a36Sopenharmony_ci#define CLK_ISP_FIMC_ISP		 1
24462306a36Sopenharmony_ci#define CLK_ISP_FIMC_DRC		 2
24562306a36Sopenharmony_ci#define CLK_ISP_FIMC_FD			 3
24662306a36Sopenharmony_ci#define CLK_ISP_FIMC_LITE0		 4
24762306a36Sopenharmony_ci#define CLK_ISP_FIMC_LITE1		 5
24862306a36Sopenharmony_ci#define CLK_ISP_MCUISP			 6
24962306a36Sopenharmony_ci#define CLK_ISP_GICISP			 7
25062306a36Sopenharmony_ci#define CLK_ISP_SMMU_ISP		 8
25162306a36Sopenharmony_ci#define CLK_ISP_SMMU_DRC		 9
25262306a36Sopenharmony_ci#define CLK_ISP_SMMU_FD			10
25362306a36Sopenharmony_ci#define CLK_ISP_SMMU_LITE0		11
25462306a36Sopenharmony_ci#define CLK_ISP_SMMU_LITE1		12
25562306a36Sopenharmony_ci#define CLK_ISP_PPMUISPMX		13
25662306a36Sopenharmony_ci#define CLK_ISP_PPMUISPX		14
25762306a36Sopenharmony_ci#define CLK_ISP_MCUCTL_ISP		15
25862306a36Sopenharmony_ci#define CLK_ISP_MPWM_ISP		16
25962306a36Sopenharmony_ci#define CLK_ISP_I2C0_ISP		17
26062306a36Sopenharmony_ci#define CLK_ISP_I2C1_ISP		18
26162306a36Sopenharmony_ci#define CLK_ISP_MTCADC_ISP		19
26262306a36Sopenharmony_ci#define CLK_ISP_PWM_ISP			20
26362306a36Sopenharmony_ci#define CLK_ISP_WDT_ISP			21
26462306a36Sopenharmony_ci#define CLK_ISP_UART_ISP		22
26562306a36Sopenharmony_ci#define CLK_ISP_ASYNCAXIM		23
26662306a36Sopenharmony_ci#define CLK_ISP_SMMU_ISPCX		24
26762306a36Sopenharmony_ci#define CLK_ISP_SPI0_ISP		25
26862306a36Sopenharmony_ci#define CLK_ISP_SPI1_ISP		26
26962306a36Sopenharmony_ci
27062306a36Sopenharmony_ci#define CLK_ISP_DIV_ISP0		27
27162306a36Sopenharmony_ci#define CLK_ISP_DIV_ISP1		28
27262306a36Sopenharmony_ci#define CLK_ISP_DIV_MCUISP0		29
27362306a36Sopenharmony_ci#define CLK_ISP_DIV_MCUISP1		30
27462306a36Sopenharmony_ci
27562306a36Sopenharmony_ci#endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */
276