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