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