162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci * Copyright (c) 2023, Danila Tikhonov <danila@jiaxyga.com>
562306a36Sopenharmony_ci * Copyright (c) 2023, David Wronek <davidwronek@gmail.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM7150_H
962306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_GCC_SM7150_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/* GCC clock registers */
1262306a36Sopenharmony_ci#define GCC_GPLL0_MAIN_DIV_CDIV				0
1362306a36Sopenharmony_ci#define GPLL0						1
1462306a36Sopenharmony_ci#define GPLL0_OUT_EVEN					2
1562306a36Sopenharmony_ci#define GPLL6						3
1662306a36Sopenharmony_ci#define GPLL7						4
1762306a36Sopenharmony_ci#define GCC_AGGRE_NOC_PCIE_TBU_CLK			5
1862306a36Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_CLK			6
1962306a36Sopenharmony_ci#define GCC_AGGRE_UFS_PHY_AXI_HW_CTL_CLK		7
2062306a36Sopenharmony_ci#define GCC_AGGRE_USB3_PRIM_AXI_CLK			8
2162306a36Sopenharmony_ci#define GCC_APC_VS_CLK					9
2262306a36Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK				10
2362306a36Sopenharmony_ci#define GCC_CAMERA_HF_AXI_CLK				11
2462306a36Sopenharmony_ci#define GCC_CAMERA_SF_AXI_CLK				12
2562306a36Sopenharmony_ci#define GCC_CE1_AHB_CLK					13
2662306a36Sopenharmony_ci#define GCC_CE1_AXI_CLK					14
2762306a36Sopenharmony_ci#define GCC_CE1_CLK					15
2862306a36Sopenharmony_ci#define GCC_CFG_NOC_USB3_PRIM_AXI_CLK			16
2962306a36Sopenharmony_ci#define GCC_CPUSS_AHB_CLK				17
3062306a36Sopenharmony_ci#define GCC_CPUSS_AHB_CLK_SRC				18
3162306a36Sopenharmony_ci#define GCC_CPUSS_RBCPR_CLK				19
3262306a36Sopenharmony_ci#define GCC_CPUSS_RBCPR_CLK_SRC				20
3362306a36Sopenharmony_ci#define GCC_DDRSS_GPU_AXI_CLK				21
3462306a36Sopenharmony_ci#define GCC_DISP_GPLL0_CLK_SRC				22
3562306a36Sopenharmony_ci#define GCC_DISP_GPLL0_DIV_CLK_SRC			23
3662306a36Sopenharmony_ci#define GCC_DISP_HF_AXI_CLK				24
3762306a36Sopenharmony_ci#define GCC_DISP_SF_AXI_CLK				25
3862306a36Sopenharmony_ci#define GCC_GP1_CLK					26
3962306a36Sopenharmony_ci#define GCC_GP1_CLK_SRC					27
4062306a36Sopenharmony_ci#define GCC_GP2_CLK					28
4162306a36Sopenharmony_ci#define GCC_GP2_CLK_SRC					29
4262306a36Sopenharmony_ci#define GCC_GP3_CLK					30
4362306a36Sopenharmony_ci#define GCC_GP3_CLK_SRC					31
4462306a36Sopenharmony_ci#define GCC_GPU_GPLL0_CLK_SRC				32
4562306a36Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK_SRC			33
4662306a36Sopenharmony_ci#define GCC_GPU_MEMNOC_GFX_CLK				34
4762306a36Sopenharmony_ci#define GCC_GPU_SNOC_DVM_GFX_CLK			35
4862306a36Sopenharmony_ci#define GCC_GPU_VS_CLK					36
4962306a36Sopenharmony_ci#define GCC_NPU_AXI_CLK					37
5062306a36Sopenharmony_ci#define GCC_NPU_CFG_AHB_CLK				38
5162306a36Sopenharmony_ci#define GCC_NPU_GPLL0_CLK_SRC				39
5262306a36Sopenharmony_ci#define GCC_NPU_GPLL0_DIV_CLK_SRC			40
5362306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK				41
5462306a36Sopenharmony_ci#define GCC_PCIE_0_AUX_CLK_SRC				42
5562306a36Sopenharmony_ci#define GCC_PCIE_0_CFG_AHB_CLK				43
5662306a36Sopenharmony_ci#define GCC_PCIE_0_CLKREF_CLK				44
5762306a36Sopenharmony_ci#define GCC_PCIE_0_MSTR_AXI_CLK				45
5862306a36Sopenharmony_ci#define GCC_PCIE_0_PIPE_CLK				46
5962306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_AXI_CLK				47
6062306a36Sopenharmony_ci#define GCC_PCIE_0_SLV_Q2A_AXI_CLK			48
6162306a36Sopenharmony_ci#define GCC_PCIE_PHY_AUX_CLK				49
6262306a36Sopenharmony_ci#define GCC_PCIE_PHY_REFGEN_CLK				50
6362306a36Sopenharmony_ci#define GCC_PCIE_PHY_REFGEN_CLK_SRC			51
6462306a36Sopenharmony_ci#define GCC_PDM2_CLK					52
6562306a36Sopenharmony_ci#define GCC_PDM2_CLK_SRC				53
6662306a36Sopenharmony_ci#define GCC_PDM_AHB_CLK					54
6762306a36Sopenharmony_ci#define GCC_PDM_XO4_CLK					55
6862306a36Sopenharmony_ci#define GCC_PRNG_AHB_CLK				56
6962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_2X_CLK			57
7062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_CORE_CLK			58
7162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK				59
7262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S0_CLK_SRC			60
7362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK				61
7462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S1_CLK_SRC			62
7562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK				63
7662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S2_CLK_SRC			64
7762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK				65
7862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S3_CLK_SRC			66
7962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK				67
8062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S4_CLK_SRC			68
8162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK				69
8262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S5_CLK_SRC			70
8362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK				71
8462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S6_CLK_SRC			72
8562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK				73
8662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP0_S7_CLK_SRC			74
8762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_2X_CLK			75
8862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_CORE_CLK			76
8962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK				77
9062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S0_CLK_SRC			78
9162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK				79
9262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S1_CLK_SRC			80
9362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK				81
9462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S2_CLK_SRC			82
9562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK				83
9662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S3_CLK_SRC			84
9762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK				85
9862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S4_CLK_SRC			86
9962306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK				87
10062306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S5_CLK_SRC			88
10162306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK				89
10262306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S6_CLK_SRC			90
10362306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK				91
10462306a36Sopenharmony_ci#define GCC_QUPV3_WRAP1_S7_CLK_SRC			92
10562306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_M_AHB_CLK			93
10662306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_0_S_AHB_CLK			94
10762306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_M_AHB_CLK			95
10862306a36Sopenharmony_ci#define GCC_QUPV3_WRAP_1_S_AHB_CLK			96
10962306a36Sopenharmony_ci#define GCC_SDCC1_AHB_CLK				97
11062306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK				98
11162306a36Sopenharmony_ci#define GCC_SDCC1_APPS_CLK_SRC				99
11262306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK				100
11362306a36Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK_SRC			101
11462306a36Sopenharmony_ci#define GCC_SDCC2_AHB_CLK				102
11562306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK				103
11662306a36Sopenharmony_ci#define GCC_SDCC2_APPS_CLK_SRC				104
11762306a36Sopenharmony_ci#define GCC_SDCC4_AHB_CLK				105
11862306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK				106
11962306a36Sopenharmony_ci#define GCC_SDCC4_APPS_CLK_SRC				107
12062306a36Sopenharmony_ci#define GCC_SYS_NOC_CPUSS_AHB_CLK			108
12162306a36Sopenharmony_ci#define GCC_TSIF_AHB_CLK				109
12262306a36Sopenharmony_ci#define GCC_TSIF_INACTIVITY_TIMERS_CLK			110
12362306a36Sopenharmony_ci#define GCC_TSIF_REF_CLK				111
12462306a36Sopenharmony_ci#define GCC_TSIF_REF_CLK_SRC				112
12562306a36Sopenharmony_ci#define GCC_UFS_MEM_CLKREF_CLK				113
12662306a36Sopenharmony_ci#define GCC_UFS_PHY_AHB_CLK				114
12762306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK				115
12862306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_CLK_SRC				116
12962306a36Sopenharmony_ci#define GCC_UFS_PHY_AXI_HW_CTL_CLK			117
13062306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK			118
13162306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_CLK_SRC			119
13262306a36Sopenharmony_ci#define GCC_UFS_PHY_ICE_CORE_HW_CTL_CLK			120
13362306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK				121
13462306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_CLK_SRC			122
13562306a36Sopenharmony_ci#define GCC_UFS_PHY_PHY_AUX_HW_CTL_CLK			123
13662306a36Sopenharmony_ci#define GCC_UFS_PHY_RX_SYMBOL_0_CLK			124
13762306a36Sopenharmony_ci#define GCC_UFS_PHY_TX_SYMBOL_0_CLK			125
13862306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK			126
13962306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC			127
14062306a36Sopenharmony_ci#define GCC_UFS_PHY_UNIPRO_CORE_HW_CTL_CLK		128
14162306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK			129
14262306a36Sopenharmony_ci#define GCC_USB30_PRIM_MASTER_CLK_SRC			130
14362306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK			131
14462306a36Sopenharmony_ci#define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC		132
14562306a36Sopenharmony_ci#define GCC_USB30_PRIM_SLEEP_CLK			133
14662306a36Sopenharmony_ci#define GCC_USB3_PRIM_CLKREF_CLK			134
14762306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK			135
14862306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_AUX_CLK_SRC			136
14962306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_COM_AUX_CLK			137
15062306a36Sopenharmony_ci#define GCC_USB3_PRIM_PHY_PIPE_CLK			138
15162306a36Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_CLK			139
15262306a36Sopenharmony_ci#define GCC_VDDA_VS_CLK					140
15362306a36Sopenharmony_ci#define GCC_VDDCX_VS_CLK				141
15462306a36Sopenharmony_ci#define GCC_VDDMX_VS_CLK				142
15562306a36Sopenharmony_ci#define GCC_VIDEO_AXI_CLK				143
15662306a36Sopenharmony_ci#define GCC_VS_CTRL_AHB_CLK				144
15762306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK					145
15862306a36Sopenharmony_ci#define GCC_VS_CTRL_CLK_SRC				146
15962306a36Sopenharmony_ci#define GCC_VSENSOR_CLK_SRC				147
16062306a36Sopenharmony_ci
16162306a36Sopenharmony_ci/* GCC Resets */
16262306a36Sopenharmony_ci#define GCC_PCIE_0_BCR					0
16362306a36Sopenharmony_ci#define GCC_PCIE_PHY_BCR				1
16462306a36Sopenharmony_ci#define GCC_PCIE_PHY_COM_BCR				2
16562306a36Sopenharmony_ci#define GCC_UFS_PHY_BCR					3
16662306a36Sopenharmony_ci#define GCC_USB30_PRIM_BCR				4
16762306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_PRIM_BCR			5
16862306a36Sopenharmony_ci#define GCC_USB3_DP_PHY_SEC_BCR				6
16962306a36Sopenharmony_ci#define GCC_USB3_PHY_PRIM_BCR				7
17062306a36Sopenharmony_ci#define GCC_USB3_PHY_SEC_BCR				8
17162306a36Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR				9
17262306a36Sopenharmony_ci#define GCC_VIDEO_AXI_CLK_BCR				10
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci/* GCC GDSCRs */
17562306a36Sopenharmony_ci#define PCIE_0_GDSC					0
17662306a36Sopenharmony_ci#define UFS_PHY_GDSC					1
17762306a36Sopenharmony_ci#define USB30_PRIM_GDSC					2
17862306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_AUDIO_TBU_GDSC		3
17962306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC		4
18062306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_TBU1_GDSC		5
18162306a36Sopenharmony_ci#define HLOS1_VOTE_AGGRE_NOC_MMU_TBU2_GDSC		6
18262306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC		7
18362306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC		8
18462306a36Sopenharmony_ci#define HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC		9
18562306a36Sopenharmony_ci
18662306a36Sopenharmony_ci#endif
187