162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2016, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci * Copyright (C) 2016-2021, AngeloGioacchino Del Regno
562306a36Sopenharmony_ci *                     <angelogioacchino.delregno@somainline.org>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_MSM_GCC_8976_H
962306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_MSM_GCC_8976_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define GPLL0					0
1262306a36Sopenharmony_ci#define GPLL2					1
1362306a36Sopenharmony_ci#define GPLL3					2
1462306a36Sopenharmony_ci#define GPLL4					3
1562306a36Sopenharmony_ci#define GPLL6					4
1662306a36Sopenharmony_ci#define GPLL0_CLK_SRC				5
1762306a36Sopenharmony_ci#define GPLL2_CLK_SRC				6
1862306a36Sopenharmony_ci#define GPLL3_CLK_SRC				7
1962306a36Sopenharmony_ci#define GPLL4_CLK_SRC				8
2062306a36Sopenharmony_ci#define GPLL6_CLK_SRC				9
2162306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_SPI_APPS_CLK		10
2262306a36Sopenharmony_ci#define GCC_BLSP1_QUP1_I2C_APPS_CLK		11
2362306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_I2C_APPS_CLK		12
2462306a36Sopenharmony_ci#define GCC_BLSP1_QUP2_SPI_APPS_CLK		13
2562306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_I2C_APPS_CLK		14
2662306a36Sopenharmony_ci#define GCC_BLSP1_QUP3_SPI_APPS_CLK		15
2762306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_I2C_APPS_CLK		16
2862306a36Sopenharmony_ci#define GCC_BLSP1_QUP4_SPI_APPS_CLK		17
2962306a36Sopenharmony_ci#define GCC_BLSP1_UART1_APPS_CLK		18
3062306a36Sopenharmony_ci#define GCC_BLSP1_UART2_APPS_CLK		19
3162306a36Sopenharmony_ci#define GCC_BLSP2_QUP1_I2C_APPS_CLK		20
3262306a36Sopenharmony_ci#define GCC_BLSP2_QUP1_SPI_APPS_CLK		21
3362306a36Sopenharmony_ci#define GCC_BLSP2_QUP2_I2C_APPS_CLK		22
3462306a36Sopenharmony_ci#define GCC_BLSP2_QUP2_SPI_APPS_CLK		23
3562306a36Sopenharmony_ci#define GCC_BLSP2_QUP3_I2C_APPS_CLK		24
3662306a36Sopenharmony_ci#define GCC_BLSP2_QUP3_SPI_APPS_CLK		25
3762306a36Sopenharmony_ci#define GCC_BLSP2_QUP4_I2C_APPS_CLK		26
3862306a36Sopenharmony_ci#define GCC_BLSP2_QUP4_SPI_APPS_CLK		27
3962306a36Sopenharmony_ci#define GCC_BLSP2_UART1_APPS_CLK		28
4062306a36Sopenharmony_ci#define GCC_BLSP2_UART2_APPS_CLK		29
4162306a36Sopenharmony_ci#define GCC_CAMSS_CCI_AHB_CLK			30
4262306a36Sopenharmony_ci#define GCC_CAMSS_CCI_CLK			31
4362306a36Sopenharmony_ci#define GCC_CAMSS_CPP_AHB_CLK			32
4462306a36Sopenharmony_ci#define GCC_CAMSS_CPP_AXI_CLK			33
4562306a36Sopenharmony_ci#define GCC_CAMSS_CPP_CLK			34
4662306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_AHB_CLK			35
4762306a36Sopenharmony_ci#define GCC_CAMSS_CSI0_CLK			36
4862306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHY_CLK			37
4962306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PIX_CLK			38
5062306a36Sopenharmony_ci#define GCC_CAMSS_CSI0RDI_CLK			39
5162306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_AHB_CLK			40
5262306a36Sopenharmony_ci#define GCC_CAMSS_CSI1_CLK			41
5362306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHY_CLK			42
5462306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PIX_CLK			43
5562306a36Sopenharmony_ci#define GCC_CAMSS_CSI1RDI_CLK			44
5662306a36Sopenharmony_ci#define GCC_CAMSS_CSI2_AHB_CLK			45
5762306a36Sopenharmony_ci#define GCC_CAMSS_CSI2_CLK			46
5862306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PHY_CLK			47
5962306a36Sopenharmony_ci#define GCC_CAMSS_CSI2PIX_CLK			48
6062306a36Sopenharmony_ci#define GCC_CAMSS_CSI2RDI_CLK			49
6162306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE0_CLK			50
6262306a36Sopenharmony_ci#define GCC_CAMSS_CSI_VFE1_CLK			51
6362306a36Sopenharmony_ci#define GCC_CAMSS_GP0_CLK			52
6462306a36Sopenharmony_ci#define GCC_CAMSS_GP1_CLK			53
6562306a36Sopenharmony_ci#define GCC_CAMSS_ISPIF_AHB_CLK			54
6662306a36Sopenharmony_ci#define GCC_CAMSS_JPEG0_CLK			55
6762306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AHB_CLK			56
6862306a36Sopenharmony_ci#define GCC_CAMSS_JPEG_AXI_CLK			57
6962306a36Sopenharmony_ci#define GCC_CAMSS_MCLK0_CLK			58
7062306a36Sopenharmony_ci#define GCC_CAMSS_MCLK1_CLK			59
7162306a36Sopenharmony_ci#define GCC_CAMSS_MCLK2_CLK			60
7262306a36Sopenharmony_ci#define GCC_CAMSS_MICRO_AHB_CLK			61
7362306a36Sopenharmony_ci#define GCC_CAMSS_CSI0PHYTIMER_CLK		62
7462306a36Sopenharmony_ci#define GCC_CAMSS_CSI1PHYTIMER_CLK		63
7562306a36Sopenharmony_ci#define GCC_CAMSS_AHB_CLK			64
7662306a36Sopenharmony_ci#define GCC_CAMSS_TOP_AHB_CLK			65
7762306a36Sopenharmony_ci#define GCC_CAMSS_VFE0_CLK			66
7862306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AHB_CLK			67
7962306a36Sopenharmony_ci#define GCC_CAMSS_VFE_AXI_CLK			68
8062306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_AHB_CLK			69
8162306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_AXI_CLK			70
8262306a36Sopenharmony_ci#define GCC_CAMSS_VFE1_CLK			71
8362306a36Sopenharmony_ci#define GCC_DCC_CLK				72
8462306a36Sopenharmony_ci#define GCC_GP1_CLK				73
8562306a36Sopenharmony_ci#define GCC_GP2_CLK				74
8662306a36Sopenharmony_ci#define GCC_GP3_CLK				75
8762306a36Sopenharmony_ci#define GCC_MDSS_AHB_CLK			76
8862306a36Sopenharmony_ci#define GCC_MDSS_AXI_CLK			77
8962306a36Sopenharmony_ci#define GCC_MDSS_ESC0_CLK			78
9062306a36Sopenharmony_ci#define GCC_MDSS_ESC1_CLK			79
9162306a36Sopenharmony_ci#define GCC_MDSS_MDP_CLK			80
9262306a36Sopenharmony_ci#define GCC_MDSS_VSYNC_CLK			81
9362306a36Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK			82
9462306a36Sopenharmony_ci#define GCC_MSS_Q6_BIMC_AXI_CLK			83
9562306a36Sopenharmony_ci#define GCC_PDM2_CLK				84
9662306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK			85
9762306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK				86
9862306a36Sopenharmony_ci#define GCC_RBCPR_GFX_AHB_CLK			87
9962306a36Sopenharmony_ci#define GCC_RBCPR_GFX_CLK			88
10062306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK			89
10162306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK			90
10262306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK			91
10362306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK			92
10462306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK			93
10562306a36Sopenharmony_ci#define GCC_SDCC3_AHB_CLK			94
10662306a36Sopenharmony_ci#define GCC_SDCC3_APPS_CLK			95
10762306a36Sopenharmony_ci#define GCC_USB2A_PHY_SLEEP_CLK			96
10862306a36Sopenharmony_ci#define GCC_USB_HS_PHY_CFG_AHB_CLK		97
10962306a36Sopenharmony_ci#define GCC_USB_FS_AHB_CLK			98
11062306a36Sopenharmony_ci#define GCC_USB_FS_IC_CLK			99
11162306a36Sopenharmony_ci#define GCC_USB_FS_SYSTEM_CLK			100
11262306a36Sopenharmony_ci#define GCC_USB_HS_AHB_CLK			101
11362306a36Sopenharmony_ci#define GCC_USB_HS_SYSTEM_CLK			102
11462306a36Sopenharmony_ci#define GCC_VENUS0_AHB_CLK			103
11562306a36Sopenharmony_ci#define GCC_VENUS0_AXI_CLK			104
11662306a36Sopenharmony_ci#define GCC_VENUS0_CORE0_VCODEC0_CLK		105
11762306a36Sopenharmony_ci#define GCC_VENUS0_CORE1_VCODEC0_CLK		106
11862306a36Sopenharmony_ci#define GCC_VENUS0_VCODEC0_CLK			107
11962306a36Sopenharmony_ci#define GCC_APSS_AHB_CLK			108
12062306a36Sopenharmony_ci#define GCC_APSS_AXI_CLK			109
12162306a36Sopenharmony_ci#define GCC_BLSP1_AHB_CLK			110
12262306a36Sopenharmony_ci#define GCC_BLSP2_AHB_CLK			111
12362306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK			112
12462306a36Sopenharmony_ci#define GCC_CRYPTO_AHB_CLK			113
12562306a36Sopenharmony_ci#define GCC_CRYPTO_AXI_CLK			114
12662306a36Sopenharmony_ci#define GCC_CRYPTO_CLK				115
12762306a36Sopenharmony_ci#define GCC_CPP_TBU_CLK				116
12862306a36Sopenharmony_ci#define GCC_APSS_TCU_CLK			117
12962306a36Sopenharmony_ci#define GCC_JPEG_TBU_CLK			118
13062306a36Sopenharmony_ci#define GCC_MDP_RT_TBU_CLK			119
13162306a36Sopenharmony_ci#define GCC_MDP_TBU_CLK				120
13262306a36Sopenharmony_ci#define GCC_SMMU_CFG_CLK			121
13362306a36Sopenharmony_ci#define GCC_VENUS_1_TBU_CLK			122
13462306a36Sopenharmony_ci#define GCC_VENUS_TBU_CLK			123
13562306a36Sopenharmony_ci#define GCC_VFE1_TBU_CLK			124
13662306a36Sopenharmony_ci#define GCC_VFE_TBU_CLK				125
13762306a36Sopenharmony_ci#define GCC_APS_0_CLK				126
13862306a36Sopenharmony_ci#define GCC_APS_1_CLK				127
13962306a36Sopenharmony_ci#define APS_0_CLK_SRC				128
14062306a36Sopenharmony_ci#define APS_1_CLK_SRC				129
14162306a36Sopenharmony_ci#define APSS_AHB_CLK_SRC			130
14262306a36Sopenharmony_ci#define BLSP1_QUP1_I2C_APPS_CLK_SRC		131
14362306a36Sopenharmony_ci#define BLSP1_QUP1_SPI_APPS_CLK_SRC		132
14462306a36Sopenharmony_ci#define BLSP1_QUP2_I2C_APPS_CLK_SRC		133
14562306a36Sopenharmony_ci#define BLSP1_QUP2_SPI_APPS_CLK_SRC		134
14662306a36Sopenharmony_ci#define BLSP1_QUP3_I2C_APPS_CLK_SRC		135
14762306a36Sopenharmony_ci#define BLSP1_QUP3_SPI_APPS_CLK_SRC		136
14862306a36Sopenharmony_ci#define BLSP1_QUP4_I2C_APPS_CLK_SRC		137
14962306a36Sopenharmony_ci#define BLSP1_QUP4_SPI_APPS_CLK_SRC		138
15062306a36Sopenharmony_ci#define BLSP1_UART1_APPS_CLK_SRC		139
15162306a36Sopenharmony_ci#define BLSP1_UART2_APPS_CLK_SRC		140
15262306a36Sopenharmony_ci#define BLSP2_QUP1_I2C_APPS_CLK_SRC		141
15362306a36Sopenharmony_ci#define BLSP2_QUP1_SPI_APPS_CLK_SRC		142
15462306a36Sopenharmony_ci#define BLSP2_QUP2_I2C_APPS_CLK_SRC		143
15562306a36Sopenharmony_ci#define BLSP2_QUP2_SPI_APPS_CLK_SRC		144
15662306a36Sopenharmony_ci#define BLSP2_QUP3_I2C_APPS_CLK_SRC		145
15762306a36Sopenharmony_ci#define BLSP2_QUP3_SPI_APPS_CLK_SRC		146
15862306a36Sopenharmony_ci#define BLSP2_QUP4_I2C_APPS_CLK_SRC		147
15962306a36Sopenharmony_ci#define BLSP2_QUP4_SPI_APPS_CLK_SRC		148
16062306a36Sopenharmony_ci#define BLSP2_UART1_APPS_CLK_SRC		149
16162306a36Sopenharmony_ci#define BLSP2_UART2_APPS_CLK_SRC		150
16262306a36Sopenharmony_ci#define CCI_CLK_SRC				151
16362306a36Sopenharmony_ci#define CPP_CLK_SRC				152
16462306a36Sopenharmony_ci#define CSI0_CLK_SRC				153
16562306a36Sopenharmony_ci#define CSI1_CLK_SRC				154
16662306a36Sopenharmony_ci#define CSI2_CLK_SRC				155
16762306a36Sopenharmony_ci#define CAMSS_GP0_CLK_SRC			156
16862306a36Sopenharmony_ci#define CAMSS_GP1_CLK_SRC			157
16962306a36Sopenharmony_ci#define JPEG0_CLK_SRC				158
17062306a36Sopenharmony_ci#define MCLK0_CLK_SRC				159
17162306a36Sopenharmony_ci#define MCLK1_CLK_SRC				160
17262306a36Sopenharmony_ci#define MCLK2_CLK_SRC				161
17362306a36Sopenharmony_ci#define CSI0PHYTIMER_CLK_SRC			162
17462306a36Sopenharmony_ci#define CSI1PHYTIMER_CLK_SRC			163
17562306a36Sopenharmony_ci#define CAMSS_TOP_AHB_CLK_SRC			164
17662306a36Sopenharmony_ci#define VFE0_CLK_SRC				165
17762306a36Sopenharmony_ci#define VFE1_CLK_SRC				166
17862306a36Sopenharmony_ci#define CRYPTO_CLK_SRC				167
17962306a36Sopenharmony_ci#define GP1_CLK_SRC				168
18062306a36Sopenharmony_ci#define GP2_CLK_SRC				169
18162306a36Sopenharmony_ci#define GP3_CLK_SRC				170
18262306a36Sopenharmony_ci#define ESC0_CLK_SRC				171
18362306a36Sopenharmony_ci#define ESC1_CLK_SRC				172
18462306a36Sopenharmony_ci#define MDP_CLK_SRC				173
18562306a36Sopenharmony_ci#define VSYNC_CLK_SRC				174
18662306a36Sopenharmony_ci#define PDM2_CLK_SRC				175
18762306a36Sopenharmony_ci#define RBCPR_GFX_CLK_SRC			176
18862306a36Sopenharmony_ci#define SDCC1_APPS_CLK_SRC			177
18962306a36Sopenharmony_ci#define SDCC1_ICE_CORE_CLK_SRC			178
19062306a36Sopenharmony_ci#define SDCC2_APPS_CLK_SRC			179
19162306a36Sopenharmony_ci#define SDCC3_APPS_CLK_SRC			180
19262306a36Sopenharmony_ci#define USB_FS_IC_CLK_SRC			181
19362306a36Sopenharmony_ci#define USB_FS_SYSTEM_CLK_SRC			182
19462306a36Sopenharmony_ci#define USB_HS_SYSTEM_CLK_SRC			183
19562306a36Sopenharmony_ci#define VCODEC0_CLK_SRC				184
19662306a36Sopenharmony_ci#define GCC_MDSS_BYTE0_CLK_SRC			185
19762306a36Sopenharmony_ci#define GCC_MDSS_BYTE1_CLK_SRC			186
19862306a36Sopenharmony_ci#define GCC_MDSS_BYTE0_CLK			187
19962306a36Sopenharmony_ci#define GCC_MDSS_BYTE1_CLK			188
20062306a36Sopenharmony_ci#define GCC_MDSS_PCLK0_CLK_SRC			189
20162306a36Sopenharmony_ci#define GCC_MDSS_PCLK1_CLK_SRC			190
20262306a36Sopenharmony_ci#define GCC_MDSS_PCLK0_CLK			191
20362306a36Sopenharmony_ci#define GCC_MDSS_PCLK1_CLK			192
20462306a36Sopenharmony_ci#define GCC_GFX3D_CLK_SRC			193
20562306a36Sopenharmony_ci#define GCC_GFX3D_OXILI_CLK			194
20662306a36Sopenharmony_ci#define GCC_GFX3D_BIMC_CLK			195
20762306a36Sopenharmony_ci#define GCC_GFX3D_OXILI_AHB_CLK			196
20862306a36Sopenharmony_ci#define GCC_GFX3D_OXILI_AON_CLK			197
20962306a36Sopenharmony_ci#define GCC_GFX3D_OXILI_GMEM_CLK		198
21062306a36Sopenharmony_ci#define GCC_GFX3D_OXILI_TIMER_CLK		199
21162306a36Sopenharmony_ci#define GCC_GFX3D_TBU0_CLK			200
21262306a36Sopenharmony_ci#define GCC_GFX3D_TBU1_CLK			201
21362306a36Sopenharmony_ci#define GCC_GFX3D_TCU_CLK			202
21462306a36Sopenharmony_ci#define GCC_GFX3D_GTCU_AHB_CLK			203
21562306a36Sopenharmony_ci
21662306a36Sopenharmony_ci/* GCC block resets */
21762306a36Sopenharmony_ci#define RST_CAMSS_MICRO_BCR			0
21862306a36Sopenharmony_ci#define RST_USB_HS_BCR				1
21962306a36Sopenharmony_ci#define RST_QUSB2_PHY_BCR			2
22062306a36Sopenharmony_ci#define RST_USB2_HS_PHY_ONLY_BCR		3
22162306a36Sopenharmony_ci#define RST_USB_HS_PHY_CFG_AHB_BCR		4
22262306a36Sopenharmony_ci#define RST_USB_FS_BCR				5
22362306a36Sopenharmony_ci#define RST_CAMSS_CSI1PIX_BCR			6
22462306a36Sopenharmony_ci#define RST_CAMSS_CSI_VFE1_BCR			7
22562306a36Sopenharmony_ci#define RST_CAMSS_VFE1_BCR			8
22662306a36Sopenharmony_ci#define RST_CAMSS_CPP_BCR			9
22762306a36Sopenharmony_ci#define RST_MSS_BCR				10
22862306a36Sopenharmony_ci
22962306a36Sopenharmony_ci/* GDSCs */
23062306a36Sopenharmony_ci#define VENUS_GDSC				0
23162306a36Sopenharmony_ci#define VENUS_CORE0_GDSC			1
23262306a36Sopenharmony_ci#define VENUS_CORE1_GDSC			2
23362306a36Sopenharmony_ci#define MDSS_GDSC				3
23462306a36Sopenharmony_ci#define JPEG_GDSC				4
23562306a36Sopenharmony_ci#define VFE0_GDSC				5
23662306a36Sopenharmony_ci#define VFE1_GDSC				6
23762306a36Sopenharmony_ci#define CPP_GDSC				7
23862306a36Sopenharmony_ci#define OXILI_GX_GDSC				8
23962306a36Sopenharmony_ci#define OXILI_CX_GDSC				9
24062306a36Sopenharmony_ci
24162306a36Sopenharmony_ci#endif /* _DT_BINDINGS_CLK_MSM_GCC_8976_H */
242