162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8450_H
762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8450_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* CAM_CC clocks */
1062306a36Sopenharmony_ci#define CAM_CC_BPS_AHB_CLK					0
1162306a36Sopenharmony_ci#define CAM_CC_BPS_CLK						1
1262306a36Sopenharmony_ci#define CAM_CC_BPS_CLK_SRC					2
1362306a36Sopenharmony_ci#define CAM_CC_BPS_FAST_AHB_CLK					3
1462306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK					4
1562306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK_SRC				5
1662306a36Sopenharmony_ci#define CAM_CC_CAMNOC_DCD_XO_CLK				6
1762306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK					7
1862306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK_SRC					8
1962306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK					9
2062306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK_SRC					10
2162306a36Sopenharmony_ci#define CAM_CC_CORE_AHB_CLK					11
2262306a36Sopenharmony_ci#define CAM_CC_CPAS_AHB_CLK					12
2362306a36Sopenharmony_ci#define CAM_CC_CPAS_BPS_CLK					13
2462306a36Sopenharmony_ci#define CAM_CC_CPAS_FAST_AHB_CLK				14
2562306a36Sopenharmony_ci#define CAM_CC_CPAS_IFE_0_CLK					15
2662306a36Sopenharmony_ci#define CAM_CC_CPAS_IFE_1_CLK					16
2762306a36Sopenharmony_ci#define CAM_CC_CPAS_IFE_2_CLK					17
2862306a36Sopenharmony_ci#define CAM_CC_CPAS_IFE_LITE_CLK				18
2962306a36Sopenharmony_ci#define CAM_CC_CPAS_IPE_NPS_CLK					19
3062306a36Sopenharmony_ci#define CAM_CC_CPAS_SBI_CLK					20
3162306a36Sopenharmony_ci#define CAM_CC_CPAS_SFE_0_CLK					21
3262306a36Sopenharmony_ci#define CAM_CC_CPAS_SFE_1_CLK					22
3362306a36Sopenharmony_ci#define CAM_CC_CPHY_RX_CLK_SRC					23
3462306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK					24
3562306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK_SRC				25
3662306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK					26
3762306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK_SRC				27
3862306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK					28
3962306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK_SRC				29
4062306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK					30
4162306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK_SRC				31
4262306a36Sopenharmony_ci#define CAM_CC_CSI4PHYTIMER_CLK					32
4362306a36Sopenharmony_ci#define CAM_CC_CSI4PHYTIMER_CLK_SRC				33
4462306a36Sopenharmony_ci#define CAM_CC_CSI5PHYTIMER_CLK					34
4562306a36Sopenharmony_ci#define CAM_CC_CSI5PHYTIMER_CLK_SRC				35
4662306a36Sopenharmony_ci#define CAM_CC_CSID_CLK						36
4762306a36Sopenharmony_ci#define CAM_CC_CSID_CLK_SRC					37
4862306a36Sopenharmony_ci#define CAM_CC_CSID_CSIPHY_RX_CLK				38
4962306a36Sopenharmony_ci#define CAM_CC_CSIPHY0_CLK					39
5062306a36Sopenharmony_ci#define CAM_CC_CSIPHY1_CLK					40
5162306a36Sopenharmony_ci#define CAM_CC_CSIPHY2_CLK					41
5262306a36Sopenharmony_ci#define CAM_CC_CSIPHY3_CLK					42
5362306a36Sopenharmony_ci#define CAM_CC_CSIPHY4_CLK					43
5462306a36Sopenharmony_ci#define CAM_CC_CSIPHY5_CLK					44
5562306a36Sopenharmony_ci#define CAM_CC_FAST_AHB_CLK_SRC					45
5662306a36Sopenharmony_ci#define CAM_CC_GDSC_CLK						46
5762306a36Sopenharmony_ci#define CAM_CC_ICP_AHB_CLK					47
5862306a36Sopenharmony_ci#define CAM_CC_ICP_CLK						48
5962306a36Sopenharmony_ci#define CAM_CC_ICP_CLK_SRC					49
6062306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK					50
6162306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK_SRC					51
6262306a36Sopenharmony_ci#define CAM_CC_IFE_0_DSP_CLK					52
6362306a36Sopenharmony_ci#define CAM_CC_IFE_0_FAST_AHB_CLK				53
6462306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK					54
6562306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK_SRC					55
6662306a36Sopenharmony_ci#define CAM_CC_IFE_1_DSP_CLK					56
6762306a36Sopenharmony_ci#define CAM_CC_IFE_1_FAST_AHB_CLK				57
6862306a36Sopenharmony_ci#define CAM_CC_IFE_2_CLK					58
6962306a36Sopenharmony_ci#define CAM_CC_IFE_2_CLK_SRC					59
7062306a36Sopenharmony_ci#define CAM_CC_IFE_2_DSP_CLK					60
7162306a36Sopenharmony_ci#define CAM_CC_IFE_2_FAST_AHB_CLK				61
7262306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_AHB_CLK					62
7362306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK					63
7462306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK_SRC					64
7562306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CPHY_RX_CLK				65
7662306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK				66
7762306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK_SRC				67
7862306a36Sopenharmony_ci#define CAM_CC_IPE_NPS_AHB_CLK					68
7962306a36Sopenharmony_ci#define CAM_CC_IPE_NPS_CLK					69
8062306a36Sopenharmony_ci#define CAM_CC_IPE_NPS_CLK_SRC					70
8162306a36Sopenharmony_ci#define CAM_CC_IPE_NPS_FAST_AHB_CLK				71
8262306a36Sopenharmony_ci#define CAM_CC_IPE_PPS_CLK					72
8362306a36Sopenharmony_ci#define CAM_CC_IPE_PPS_FAST_AHB_CLK				73
8462306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK						74
8562306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK_SRC					75
8662306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK					76
8762306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK_SRC					77
8862306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK					78
8962306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK_SRC					79
9062306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK					80
9162306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK_SRC					81
9262306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK					82
9362306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK_SRC					83
9462306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK					84
9562306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK_SRC					85
9662306a36Sopenharmony_ci#define CAM_CC_MCLK5_CLK					86
9762306a36Sopenharmony_ci#define CAM_CC_MCLK5_CLK_SRC					87
9862306a36Sopenharmony_ci#define CAM_CC_MCLK6_CLK					88
9962306a36Sopenharmony_ci#define CAM_CC_MCLK6_CLK_SRC					89
10062306a36Sopenharmony_ci#define CAM_CC_MCLK7_CLK					90
10162306a36Sopenharmony_ci#define CAM_CC_MCLK7_CLK_SRC					91
10262306a36Sopenharmony_ci#define CAM_CC_PLL0						92
10362306a36Sopenharmony_ci#define CAM_CC_PLL0_OUT_EVEN					93
10462306a36Sopenharmony_ci#define CAM_CC_PLL0_OUT_ODD					94
10562306a36Sopenharmony_ci#define CAM_CC_PLL1						95
10662306a36Sopenharmony_ci#define CAM_CC_PLL1_OUT_EVEN					96
10762306a36Sopenharmony_ci#define CAM_CC_PLL2						97
10862306a36Sopenharmony_ci#define CAM_CC_PLL3						98
10962306a36Sopenharmony_ci#define CAM_CC_PLL3_OUT_EVEN					99
11062306a36Sopenharmony_ci#define CAM_CC_PLL4						100
11162306a36Sopenharmony_ci#define CAM_CC_PLL4_OUT_EVEN					101
11262306a36Sopenharmony_ci#define CAM_CC_PLL5						102
11362306a36Sopenharmony_ci#define CAM_CC_PLL5_OUT_EVEN					103
11462306a36Sopenharmony_ci#define CAM_CC_PLL6						104
11562306a36Sopenharmony_ci#define CAM_CC_PLL6_OUT_EVEN					105
11662306a36Sopenharmony_ci#define CAM_CC_PLL7						106
11762306a36Sopenharmony_ci#define CAM_CC_PLL7_OUT_EVEN					107
11862306a36Sopenharmony_ci#define CAM_CC_PLL8						108
11962306a36Sopenharmony_ci#define CAM_CC_PLL8_OUT_EVEN					109
12062306a36Sopenharmony_ci#define CAM_CC_QDSS_DEBUG_CLK					110
12162306a36Sopenharmony_ci#define CAM_CC_QDSS_DEBUG_CLK_SRC				111
12262306a36Sopenharmony_ci#define CAM_CC_QDSS_DEBUG_XO_CLK				112
12362306a36Sopenharmony_ci#define CAM_CC_SBI_AHB_CLK					113
12462306a36Sopenharmony_ci#define CAM_CC_SBI_CLK						114
12562306a36Sopenharmony_ci#define CAM_CC_SFE_0_CLK					115
12662306a36Sopenharmony_ci#define CAM_CC_SFE_0_CLK_SRC					116
12762306a36Sopenharmony_ci#define CAM_CC_SFE_0_FAST_AHB_CLK				117
12862306a36Sopenharmony_ci#define CAM_CC_SFE_1_CLK					118
12962306a36Sopenharmony_ci#define CAM_CC_SFE_1_CLK_SRC					119
13062306a36Sopenharmony_ci#define CAM_CC_SFE_1_FAST_AHB_CLK				120
13162306a36Sopenharmony_ci#define CAM_CC_SLEEP_CLK					121
13262306a36Sopenharmony_ci#define CAM_CC_SLEEP_CLK_SRC					122
13362306a36Sopenharmony_ci#define CAM_CC_SLOW_AHB_CLK_SRC					123
13462306a36Sopenharmony_ci#define CAM_CC_XO_CLK_SRC					124
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ci/* CAM_CC resets */
13762306a36Sopenharmony_ci#define CAM_CC_BPS_BCR						0
13862306a36Sopenharmony_ci#define CAM_CC_ICP_BCR						1
13962306a36Sopenharmony_ci#define CAM_CC_IFE_0_BCR					2
14062306a36Sopenharmony_ci#define CAM_CC_IFE_1_BCR					3
14162306a36Sopenharmony_ci#define CAM_CC_IFE_2_BCR					4
14262306a36Sopenharmony_ci#define CAM_CC_IPE_0_BCR					5
14362306a36Sopenharmony_ci#define CAM_CC_QDSS_DEBUG_BCR					6
14462306a36Sopenharmony_ci#define CAM_CC_SBI_BCR						7
14562306a36Sopenharmony_ci#define CAM_CC_SFE_0_BCR					8
14662306a36Sopenharmony_ci#define CAM_CC_SFE_1_BCR					9
14762306a36Sopenharmony_ci
14862306a36Sopenharmony_ci/* CAM_CC GDSCRs */
14962306a36Sopenharmony_ci#define BPS_GDSC		0
15062306a36Sopenharmony_ci#define IPE_0_GDSC		1
15162306a36Sopenharmony_ci#define SBI_GDSC		2
15262306a36Sopenharmony_ci#define IFE_0_GDSC		3
15362306a36Sopenharmony_ci#define IFE_1_GDSC		4
15462306a36Sopenharmony_ci#define IFE_2_GDSC		5
15562306a36Sopenharmony_ci#define SFE_0_GDSC		6
15662306a36Sopenharmony_ci#define SFE_1_GDSC		7
15762306a36Sopenharmony_ci#define TITAN_TOP_GDSC		8
15862306a36Sopenharmony_ci
15962306a36Sopenharmony_ci#endif
160