162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2022, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci * Copyright (c) 2022, Linaro Limited
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM8550_H
862306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_SM8550_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* GCC clocks */
1162306a36Sopenharmony_ci#define GCC_AGGRE_NOC_PCIE_AXI_CLK				0
1262306a36Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_CLK				1
1362306a36Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK			2
1462306a36Sopenharmony_ci#define GCC_AGGRE_USB3_PRIM_AXI_CLK				3
1562306a36Sopenharmony_ci#define GCC_AHB2PHY_0_CLK					4
1662306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK					5
1762306a36Sopenharmony_ci#define GCC_CAMERA_AHB_CLK					6
1862306a36Sopenharmony_ci#define GCC_CAMERA_HF_AXI_CLK					7
1962306a36Sopenharmony_ci#define GCC_CAMERA_SF_AXI_CLK					8
2062306a36Sopenharmony_ci#define GCC_CAMERA_XO_CLK					9
2162306a36Sopenharmony_ci#define GCC_CFG_NOC_PCIE_ANOC_AHB_CLK				10
2262306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK				11
2362306a36Sopenharmony_ci#define GCC_CNOC_PCIE_SF_AXI_CLK				12
2462306a36Sopenharmony_ci#define GCC_DDRSS_GPU_AXI_CLK					13
2562306a36Sopenharmony_ci#define GCC_DDRSS_PCIE_SF_QTB_CLK				14
2662306a36Sopenharmony_ci#define GCC_DISP_AHB_CLK					15
2762306a36Sopenharmony_ci#define GCC_DISP_HF_AXI_CLK					16
2862306a36Sopenharmony_ci#define GCC_DISP_XO_CLK						17
2962306a36Sopenharmony_ci#define GCC_GP1_CLK						18
3062306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC						19
3162306a36Sopenharmony_ci#define GCC_GP2_CLK						20
3262306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC						21
3362306a36Sopenharmony_ci#define GCC_GP3_CLK						22
3462306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC						23
3562306a36Sopenharmony_ci#define GCC_GPLL0						24
3662306a36Sopenharmony_ci#define GCC_GPLL0_OUT_EVEN					25
3762306a36Sopenharmony_ci#define GCC_GPLL4						26
3862306a36Sopenharmony_ci#define GCC_GPLL7						27
3962306a36Sopenharmony_ci#define GCC_GPLL9						28
4062306a36Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK					29
4162306a36Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC					30
4262306a36Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC				31
4362306a36Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK					32
4462306a36Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK				33
4562306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK					34
4662306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK_SRC					35
4762306a36Sopenharmony_ci#define GCC_PCIE_0_CFG_AHB_CLK					36
4862306a36Sopenharmony_ci#define GCC_PCIE_0_MSTR_AXI_CLK					37
4962306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_RCHNG_CLK				38
5062306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_RCHNG_CLK_SRC				39
5162306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK					40
5262306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK_SRC					41
5362306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_AXI_CLK					42
5462306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_Q2A_AXI_CLK				43
5562306a36Sopenharmony_ci#define GCC_PCIE_1_AUX_CLK					44
5662306a36Sopenharmony_ci#define GCC_PCIE_1_AUX_CLK_SRC					45
5762306a36Sopenharmony_ci#define GCC_PCIE_1_CFG_AHB_CLK					46
5862306a36Sopenharmony_ci#define GCC_PCIE_1_MSTR_AXI_CLK					47
5962306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_AUX_CLK					48
6062306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_AUX_CLK_SRC				49
6162306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_RCHNG_CLK				50
6262306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_RCHNG_CLK_SRC				51
6362306a36Sopenharmony_ci#define GCC_PCIE_1_PIPE_CLK					52
6462306a36Sopenharmony_ci#define GCC_PCIE_1_PIPE_CLK_SRC					53
6562306a36Sopenharmony_ci#define GCC_PCIE_1_SLV_AXI_CLK					54
6662306a36Sopenharmony_ci#define GCC_PCIE_1_SLV_Q2A_AXI_CLK				55
6762306a36Sopenharmony_ci#define GCC_PDM2_CLK						56
6862306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC					57
6962306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK						58
7062306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK						59
7162306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_NRT_AHB_CLK				60
7262306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_RT_AHB_CLK				61
7362306a36Sopenharmony_ci#define GCC_QMIP_DISP_AHB_CLK					62
7462306a36Sopenharmony_ci#define GCC_QMIP_GPU_AHB_CLK					63
7562306a36Sopenharmony_ci#define GCC_QMIP_PCIE_AHB_CLK					64
7662306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_CV_CPU_AHB_CLK				65
7762306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_CVP_AHB_CLK				66
7862306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_V_CPU_AHB_CLK				67
7962306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_VCODEC_AHB_CLK				68
8062306a36Sopenharmony_ci#define GCC_QUPV3_I2C_CORE_CLK					69
8162306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S0_CLK					70
8262306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S0_CLK_SRC				71
8362306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S1_CLK					72
8462306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S1_CLK_SRC				73
8562306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S2_CLK					74
8662306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S2_CLK_SRC				75
8762306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S3_CLK					76
8862306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S3_CLK_SRC				77
8962306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S4_CLK					78
9062306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S4_CLK_SRC				79
9162306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S5_CLK					80
9262306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S5_CLK_SRC				81
9362306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S6_CLK					82
9462306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S6_CLK_SRC				83
9562306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S7_CLK					84
9662306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S7_CLK_SRC				85
9762306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S8_CLK					86
9862306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S8_CLK_SRC				87
9962306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S9_CLK					88
10062306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S9_CLK_SRC				89
10162306a36Sopenharmony_ci#define GCC_QUPV3_I2C_S_AHB_CLK					90
10262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_2X_CLK				91
10362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_CLK				92
10462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK					93
10562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC				94
10662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK					95
10762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC				96
10862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK					97
10962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC				98
11062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK					99
11162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC				100
11262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK					101
11362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC				102
11462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK					103
11562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC				104
11662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK					105
11762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK_SRC				106
11862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK					107
11962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK_SRC				108
12062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_CORE_2X_CLK				109
12162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_CORE_CLK				110
12262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S0_CLK					111
12362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S0_CLK_SRC				112
12462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S1_CLK					113
12562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S1_CLK_SRC				114
12662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S2_CLK					115
12762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S2_CLK_SRC				116
12862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S3_CLK					117
12962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S3_CLK_SRC				118
13062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S4_CLK					119
13162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S4_CLK_SRC				120
13262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S5_CLK					121
13362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S5_CLK_SRC				122
13462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S6_CLK					123
13562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S6_CLK_SRC				124
13662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S7_CLK					125
13762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP2_S7_CLK_SRC				126
13862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK				127
13962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK				128
14062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_2_M_AHB_CLK				129
14162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_2_S_AHB_CLK				130
14262306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK					131
14362306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK					132
14462306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC					133
14562306a36Sopenharmony_ci#define GCC_SDCC4_AHB_CLK					134
14662306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK					135
14762306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK_SRC					136
14862306a36Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK					137
14962306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK					138
15062306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC					139
15162306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_HW_CTL_CLK				140
15262306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK				141
15362306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC				142
15462306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK				143
15562306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK					144
15662306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC				145
15762306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK				146
15862306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK				147
15962306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK_SRC				148
16062306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_1_CLK				149
16162306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_1_CLK_SRC				150
16262306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK				151
16362306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK_SRC				152
16462306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK				153
16562306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC				154
16662306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK			155
16762306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK				156
16862306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC				157
16962306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK				158
17062306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC			159
17162306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC		160
17262306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK				161
17362306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK				162
17462306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC				163
17562306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK				164
17662306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK				165
17762306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK_SRC				166
17862306a36Sopenharmony_ci#define GCC_VIDEO_AHB_CLK					167
17962306a36Sopenharmony_ci#define GCC_VIDEO_AXI0_CLK					168
18062306a36Sopenharmony_ci#define GCC_VIDEO_AXI1_CLK					169
18162306a36Sopenharmony_ci#define GCC_VIDEO_XO_CLK					170
18262306a36Sopenharmony_ci
18362306a36Sopenharmony_ci/* GCC resets */
18462306a36Sopenharmony_ci#define GCC_CAMERA_BCR						0
18562306a36Sopenharmony_ci#define GCC_DISPLAY_BCR						1
18662306a36Sopenharmony_ci#define GCC_GPU_BCR						2
18762306a36Sopenharmony_ci#define GCC_PCIE_0_BCR						3
18862306a36Sopenharmony_ci#define GCC_PCIE_0_LINK_DOWN_BCR				4
18962306a36Sopenharmony_ci#define GCC_PCIE_0_NOCSR_COM_PHY_BCR				5
19062306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_BCR					6
19162306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_NOCSR_COM_PHY_BCR			7
19262306a36Sopenharmony_ci#define GCC_PCIE_1_BCR						8
19362306a36Sopenharmony_ci#define GCC_PCIE_1_LINK_DOWN_BCR				9
19462306a36Sopenharmony_ci#define GCC_PCIE_1_NOCSR_COM_PHY_BCR				10
19562306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_BCR					11
19662306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_NOCSR_COM_PHY_BCR			12
19762306a36Sopenharmony_ci#define GCC_PCIE_PHY_BCR					13
19862306a36Sopenharmony_ci#define GCC_PCIE_PHY_CFG_AHB_BCR				14
19962306a36Sopenharmony_ci#define GCC_PCIE_PHY_COM_BCR					15
20062306a36Sopenharmony_ci#define GCC_PDM_BCR						16
20162306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_1_BCR					17
20262306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_2_BCR					18
20362306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_I2C_BCR				19
20462306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR					20
20562306a36Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR					21
20662306a36Sopenharmony_ci#define GCC_SDCC2_BCR						22
20762306a36Sopenharmony_ci#define GCC_SDCC4_BCR						23
20862306a36Sopenharmony_ci#define GCC_UFS_PHY_BCR						24
20962306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR					25
21062306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_PRIM_BCR				26
21162306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_SEC_BCR					27
21262306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_BCR					28
21362306a36Sopenharmony_ci#define GCC_USB3_PHY_SEC_BCR					29
21462306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_BCR				30
21562306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_SEC_BCR					31
21662306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR				32
21762306a36Sopenharmony_ci#define GCC_VIDEO_AXI0_CLK_ARES					33
21862306a36Sopenharmony_ci#define GCC_VIDEO_AXI1_CLK_ARES					34
21962306a36Sopenharmony_ci#define GCC_VIDEO_BCR						35
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ci/* GCC power domains */
22262306a36Sopenharmony_ci#define PCIE_0_GDSC						0
22362306a36Sopenharmony_ci#define PCIE_0_PHY_GDSC						1
22462306a36Sopenharmony_ci#define PCIE_1_GDSC						2
22562306a36Sopenharmony_ci#define PCIE_1_PHY_GDSC						3
22662306a36Sopenharmony_ci#define UFS_PHY_GDSC						4
22762306a36Sopenharmony_ci#define UFS_MEM_PHY_GDSC					5
22862306a36Sopenharmony_ci#define USB30_PRIM_GDSC						6
22962306a36Sopenharmony_ci#define USB3_PHY_GDSC						7
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ci#endif
232