162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2018, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_SDM_GCC_SDM845_H
762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_SDM_GCC_SDM845_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* GCC clock registers */
1062306a36Sopenharmony_ci#define GCC_AGGRE_NOC_PCIE_TBU_CLK				0
1162306a36Sopenharmony_ci#define GCC_AGGRE_UFS_CARD_AXI_CLK				1
1262306a36Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_CLK				2
1362306a36Sopenharmony_ci#define GCC_AGGRE_USB3_PRIM_AXI_CLK				3
1462306a36Sopenharmony_ci#define GCC_AGGRE_USB3_SEC_AXI_CLK				4
1562306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK					5
1662306a36Sopenharmony_ci#define GCC_CAMERA_AHB_CLK					6
1762306a36Sopenharmony_ci#define GCC_CAMERA_AXI_CLK					7
1862306a36Sopenharmony_ci#define GCC_CAMERA_XO_CLK					8
1962306a36Sopenharmony_ci#define GCC_CE1_AHB_CLK						9
2062306a36Sopenharmony_ci#define GCC_CE1_AXI_CLK						10
2162306a36Sopenharmony_ci#define GCC_CE1_CLK						11
2262306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK				12
2362306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_SEC_AXI_CLK				13
2462306a36Sopenharmony_ci#define GCC_CPUSS_AHB_CLK					14
2562306a36Sopenharmony_ci#define GCC_CPUSS_AHB_CLK_SRC					15
2662306a36Sopenharmony_ci#define GCC_CPUSS_RBCPR_CLK					16
2762306a36Sopenharmony_ci#define GCC_CPUSS_RBCPR_CLK_SRC					17
2862306a36Sopenharmony_ci#define GCC_DDRSS_GPU_AXI_CLK					18
2962306a36Sopenharmony_ci#define GCC_DISP_AHB_CLK					19
3062306a36Sopenharmony_ci#define GCC_DISP_AXI_CLK					20
3162306a36Sopenharmony_ci#define GCC_DISP_GPLL0_CLK_SRC					21
3262306a36Sopenharmony_ci#define GCC_DISP_GPLL0_DIV_CLK_SRC				22
3362306a36Sopenharmony_ci#define GCC_DISP_XO_CLK						23
3462306a36Sopenharmony_ci#define GCC_GP1_CLK						24
3562306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC						25
3662306a36Sopenharmony_ci#define GCC_GP2_CLK						26
3762306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC						27
3862306a36Sopenharmony_ci#define GCC_GP3_CLK						28
3962306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC						29
4062306a36Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK					30
4162306a36Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC					31
4262306a36Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC				32
4362306a36Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK					33
4462306a36Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK				34
4562306a36Sopenharmony_ci#define GCC_MSS_AXIS2_CLK					35
4662306a36Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK					36
4762306a36Sopenharmony_ci#define GCC_MSS_GPLL0_DIV_CLK_SRC				37
4862306a36Sopenharmony_ci#define GCC_MSS_MFAB_AXIS_CLK					38
4962306a36Sopenharmony_ci#define GCC_MSS_Q6_MEMNOC_AXI_CLK				39
5062306a36Sopenharmony_ci#define GCC_MSS_SNOC_AXI_CLK					40
5162306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK					41
5262306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK_SRC					42
5362306a36Sopenharmony_ci#define GCC_PCIE_0_CFG_AHB_CLK					43
5462306a36Sopenharmony_ci#define GCC_PCIE_0_CLKREF_CLK					44
5562306a36Sopenharmony_ci#define GCC_PCIE_0_MSTR_AXI_CLK					45
5662306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK					46
5762306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_AXI_CLK					47
5862306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_Q2A_AXI_CLK				48
5962306a36Sopenharmony_ci#define GCC_PCIE_1_AUX_CLK					49
6062306a36Sopenharmony_ci#define GCC_PCIE_1_AUX_CLK_SRC					50
6162306a36Sopenharmony_ci#define GCC_PCIE_1_CFG_AHB_CLK					51
6262306a36Sopenharmony_ci#define GCC_PCIE_1_CLKREF_CLK					52
6362306a36Sopenharmony_ci#define GCC_PCIE_1_MSTR_AXI_CLK					53
6462306a36Sopenharmony_ci#define GCC_PCIE_1_PIPE_CLK					54
6562306a36Sopenharmony_ci#define GCC_PCIE_1_SLV_AXI_CLK					55
6662306a36Sopenharmony_ci#define GCC_PCIE_1_SLV_Q2A_AXI_CLK				56
6762306a36Sopenharmony_ci#define GCC_PCIE_PHY_AUX_CLK					57
6862306a36Sopenharmony_ci#define GCC_PCIE_PHY_REFGEN_CLK					58
6962306a36Sopenharmony_ci#define GCC_PCIE_PHY_REFGEN_CLK_SRC				59
7062306a36Sopenharmony_ci#define GCC_PDM2_CLK						60
7162306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC					61
7262306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK						62
7362306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK						63
7462306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK					64
7562306a36Sopenharmony_ci#define GCC_QMIP_CAMERA_AHB_CLK					65
7662306a36Sopenharmony_ci#define GCC_QMIP_DISP_AHB_CLK					66
7762306a36Sopenharmony_ci#define GCC_QMIP_VIDEO_AHB_CLK					67
7862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK					68
7962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC				69
8062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK					70
8162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC				71
8262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK					72
8362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC				73
8462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK					74
8562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC				75
8662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK					76
8762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC				77
8862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK					78
8962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC				79
9062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK					80
9162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK_SRC				81
9262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK					82
9362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK_SRC				83
9462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK					84
9562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC				85
9662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK					86
9762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC				87
9862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK					88
9962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC				89
10062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK					90
10162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC				91
10262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK					92
10362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC				93
10462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK					94
10562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC				95
10662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK					96
10762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK_SRC				97
10862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK					98
10962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK_SRC				99
11062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK				100
11162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK				101
11262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK				102
11362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK				103
11462306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK					104
11562306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK					105
11662306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC					106
11762306a36Sopenharmony_ci#define GCC_SDCC4_AHB_CLK					107
11862306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK					108
11962306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK_SRC					109
12062306a36Sopenharmony_ci#define GCC_SYS_NOC_CPUSS_AHB_CLK				110
12162306a36Sopenharmony_ci#define GCC_TSIF_AHB_CLK					111
12262306a36Sopenharmony_ci#define GCC_TSIF_INACTIVITY_TIMERS_CLK				112
12362306a36Sopenharmony_ci#define GCC_TSIF_REF_CLK					113
12462306a36Sopenharmony_ci#define GCC_TSIF_REF_CLK_SRC					114
12562306a36Sopenharmony_ci#define GCC_UFS_CARD_AHB_CLK					115
12662306a36Sopenharmony_ci#define GCC_UFS_CARD_AXI_CLK					116
12762306a36Sopenharmony_ci#define GCC_UFS_CARD_AXI_CLK_SRC				117
12862306a36Sopenharmony_ci#define GCC_UFS_CARD_CLKREF_CLK					118
12962306a36Sopenharmony_ci#define GCC_UFS_CARD_ICE_CORE_CLK				119
13062306a36Sopenharmony_ci#define GCC_UFS_CARD_ICE_CORE_CLK_SRC				120
13162306a36Sopenharmony_ci#define GCC_UFS_CARD_PHY_AUX_CLK				121
13262306a36Sopenharmony_ci#define GCC_UFS_CARD_PHY_AUX_CLK_SRC				122
13362306a36Sopenharmony_ci#define GCC_UFS_CARD_RX_SYMBOL_0_CLK				123
13462306a36Sopenharmony_ci#define GCC_UFS_CARD_RX_SYMBOL_1_CLK				124
13562306a36Sopenharmony_ci#define GCC_UFS_CARD_TX_SYMBOL_0_CLK				125
13662306a36Sopenharmony_ci#define GCC_UFS_CARD_UNIPRO_CORE_CLK				126
13762306a36Sopenharmony_ci#define GCC_UFS_CARD_UNIPRO_CORE_CLK_SRC			127
13862306a36Sopenharmony_ci#define GCC_UFS_MEM_CLKREF_CLK					128
13962306a36Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK					129
14062306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK					130
14162306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC					131
14262306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK				132
14362306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC				133
14462306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK					134
14562306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC				135
14662306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK				136
14762306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_1_CLK				137
14862306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK				138
14962306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK				139
15062306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC				140
15162306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK				141
15262306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC				142
15362306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK				143
15462306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC			144
15562306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK				145
15662306a36Sopenharmony_ci#define GCC_USB30_SEC_MASTER_CLK				146
15762306a36Sopenharmony_ci#define GCC_USB30_SEC_MASTER_CLK_SRC				147
15862306a36Sopenharmony_ci#define GCC_USB30_SEC_MOCK_UTMI_CLK				148
15962306a36Sopenharmony_ci#define GCC_USB30_SEC_MOCK_UTMI_CLK_SRC				149
16062306a36Sopenharmony_ci#define GCC_USB30_SEC_SLEEP_CLK					150
16162306a36Sopenharmony_ci#define GCC_USB3_PRIM_CLKREF_CLK				151
16262306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK				152
16362306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC				153
16462306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK				154
16562306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK				155
16662306a36Sopenharmony_ci#define GCC_USB3_SEC_CLKREF_CLK					156
16762306a36Sopenharmony_ci#define GCC_USB3_SEC_PHY_AUX_CLK				157
16862306a36Sopenharmony_ci#define GCC_USB3_SEC_PHY_AUX_CLK_SRC				158
16962306a36Sopenharmony_ci#define GCC_USB3_SEC_PHY_PIPE_CLK				159
17062306a36Sopenharmony_ci#define GCC_USB3_SEC_PHY_COM_AUX_CLK				160
17162306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_CLK				161
17262306a36Sopenharmony_ci#define GCC_VIDEO_AHB_CLK					162
17362306a36Sopenharmony_ci#define GCC_VIDEO_AXI_CLK					163
17462306a36Sopenharmony_ci#define GCC_VIDEO_XO_CLK					164
17562306a36Sopenharmony_ci#define GPLL0							165
17662306a36Sopenharmony_ci#define GPLL0_OUT_EVEN						166
17762306a36Sopenharmony_ci#define GPLL0_OUT_MAIN						167
17862306a36Sopenharmony_ci#define GCC_GPU_IREF_CLK					168
17962306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK					169
18062306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK					170
18162306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK					171
18262306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK_SRC					172
18362306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK_SRC				173
18462306a36Sopenharmony_ci#define GCC_APC_VS_CLK						174
18562306a36Sopenharmony_ci#define GCC_GPU_VS_CLK						175
18662306a36Sopenharmony_ci#define GCC_MSS_VS_CLK						176
18762306a36Sopenharmony_ci#define GCC_VDDA_VS_CLK						177
18862306a36Sopenharmony_ci#define GCC_VDDCX_VS_CLK					178
18962306a36Sopenharmony_ci#define GCC_VDDMX_VS_CLK					179
19062306a36Sopenharmony_ci#define GCC_VS_CTRL_AHB_CLK					180
19162306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK						181
19262306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK_SRC					182
19362306a36Sopenharmony_ci#define GCC_VSENSOR_CLK_SRC					183
19462306a36Sopenharmony_ci#define GPLL4							184
19562306a36Sopenharmony_ci#define GCC_CPUSS_DVM_BUS_CLK					185
19662306a36Sopenharmony_ci#define GCC_CPUSS_GNOC_CLK					186
19762306a36Sopenharmony_ci#define GCC_QSPI_CORE_CLK_SRC					187
19862306a36Sopenharmony_ci#define GCC_QSPI_CORE_CLK					188
19962306a36Sopenharmony_ci#define GCC_QSPI_CNOC_PERIPH_AHB_CLK				189
20062306a36Sopenharmony_ci#define GCC_LPASS_Q6_AXI_CLK					190
20162306a36Sopenharmony_ci#define GCC_LPASS_SWAY_CLK					191
20262306a36Sopenharmony_ci#define GPLL6							192
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ci/* GCC Resets */
20562306a36Sopenharmony_ci#define GCC_MMSS_BCR						0
20662306a36Sopenharmony_ci#define GCC_PCIE_0_BCR						1
20762306a36Sopenharmony_ci#define GCC_PCIE_1_BCR						2
20862306a36Sopenharmony_ci#define GCC_PCIE_PHY_BCR					3
20962306a36Sopenharmony_ci#define GCC_PDM_BCR						4
21062306a36Sopenharmony_ci#define GCC_PRNG_BCR						5
21162306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_0_BCR					6
21262306a36Sopenharmony_ci#define GCC_QUPV3_WRAPPER_1_BCR					7
21362306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR					8
21462306a36Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR					9
21562306a36Sopenharmony_ci#define GCC_SDCC2_BCR						10
21662306a36Sopenharmony_ci#define GCC_SDCC4_BCR						11
21762306a36Sopenharmony_ci#define GCC_TSIF_BCR						12
21862306a36Sopenharmony_ci#define GCC_UFS_CARD_BCR					13
21962306a36Sopenharmony_ci#define GCC_UFS_PHY_BCR						14
22062306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR					15
22162306a36Sopenharmony_ci#define GCC_USB30_SEC_BCR					16
22262306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_BCR					17
22362306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_PRIM_BCR				18
22462306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_PRIM_BCR				19
22562306a36Sopenharmony_ci#define GCC_USB3_PHY_SEC_BCR					20
22662306a36Sopenharmony_ci#define GCC_USB3PHY_PHY_SEC_BCR					21
22762306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_SEC_BCR					22
22862306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR				23
22962306a36Sopenharmony_ci#define GCC_PCIE_0_PHY_BCR					24
23062306a36Sopenharmony_ci#define GCC_PCIE_1_PHY_BCR					25
23162306a36Sopenharmony_ci
23262306a36Sopenharmony_ci/* GCC GDSCRs */
23362306a36Sopenharmony_ci#define PCIE_0_GDSC						0
23462306a36Sopenharmony_ci#define PCIE_1_GDSC						1
23562306a36Sopenharmony_ci#define UFS_CARD_GDSC						2
23662306a36Sopenharmony_ci#define UFS_PHY_GDSC						3
23762306a36Sopenharmony_ci#define USB30_PRIM_GDSC						4
23862306a36Sopenharmony_ci#define USB30_SEC_GDSC						5
23962306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_AUDIO_TBU_GDSC			6
24062306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC			7
24162306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_TBU1_GDSC			8
24262306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_TBU2_GDSC			9
24362306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC			10
24462306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC			11
24562306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC			12
24662306a36Sopenharmony_ci
24762306a36Sopenharmony_ci#endif
248