162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8250_H
762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8250_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* CAM_CC clocks */
1062306a36Sopenharmony_ci#define CAM_CC_BPS_AHB_CLK		0
1162306a36Sopenharmony_ci#define CAM_CC_BPS_AREG_CLK		1
1262306a36Sopenharmony_ci#define CAM_CC_BPS_AXI_CLK		2
1362306a36Sopenharmony_ci#define CAM_CC_BPS_CLK			3
1462306a36Sopenharmony_ci#define CAM_CC_BPS_CLK_SRC		4
1562306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK		5
1662306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK_SRC	6
1762306a36Sopenharmony_ci#define CAM_CC_CAMNOC_DCD_XO_CLK	7
1862306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK		8
1962306a36Sopenharmony_ci#define CAM_CC_CCI_0_CLK_SRC		9
2062306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK		10
2162306a36Sopenharmony_ci#define CAM_CC_CCI_1_CLK_SRC		11
2262306a36Sopenharmony_ci#define CAM_CC_CORE_AHB_CLK		12
2362306a36Sopenharmony_ci#define CAM_CC_CPAS_AHB_CLK		13
2462306a36Sopenharmony_ci#define CAM_CC_CPHY_RX_CLK_SRC		14
2562306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK		15
2662306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK_SRC	16
2762306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK		17
2862306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK_SRC	18
2962306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK		19
3062306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK_SRC	20
3162306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK		21
3262306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK_SRC	22
3362306a36Sopenharmony_ci#define CAM_CC_CSI4PHYTIMER_CLK		23
3462306a36Sopenharmony_ci#define CAM_CC_CSI4PHYTIMER_CLK_SRC	24
3562306a36Sopenharmony_ci#define CAM_CC_CSI5PHYTIMER_CLK		25
3662306a36Sopenharmony_ci#define CAM_CC_CSI5PHYTIMER_CLK_SRC	26
3762306a36Sopenharmony_ci#define CAM_CC_CSIPHY0_CLK		27
3862306a36Sopenharmony_ci#define CAM_CC_CSIPHY1_CLK		28
3962306a36Sopenharmony_ci#define CAM_CC_CSIPHY2_CLK		29
4062306a36Sopenharmony_ci#define CAM_CC_CSIPHY3_CLK		30
4162306a36Sopenharmony_ci#define CAM_CC_CSIPHY4_CLK		31
4262306a36Sopenharmony_ci#define CAM_CC_CSIPHY5_CLK		32
4362306a36Sopenharmony_ci#define CAM_CC_FAST_AHB_CLK_SRC		33
4462306a36Sopenharmony_ci#define CAM_CC_FD_CORE_CLK		34
4562306a36Sopenharmony_ci#define CAM_CC_FD_CORE_CLK_SRC		35
4662306a36Sopenharmony_ci#define CAM_CC_FD_CORE_UAR_CLK		36
4762306a36Sopenharmony_ci#define CAM_CC_GDSC_CLK			37
4862306a36Sopenharmony_ci#define CAM_CC_ICP_AHB_CLK		38
4962306a36Sopenharmony_ci#define CAM_CC_ICP_CLK			39
5062306a36Sopenharmony_ci#define CAM_CC_ICP_CLK_SRC		40
5162306a36Sopenharmony_ci#define CAM_CC_IFE_0_AHB_CLK		41
5262306a36Sopenharmony_ci#define CAM_CC_IFE_0_AREG_CLK		42
5362306a36Sopenharmony_ci#define CAM_CC_IFE_0_AXI_CLK		43
5462306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK		44
5562306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK_SRC		45
5662306a36Sopenharmony_ci#define CAM_CC_IFE_0_CPHY_RX_CLK	46
5762306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK		47
5862306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK_SRC	48
5962306a36Sopenharmony_ci#define CAM_CC_IFE_0_DSP_CLK		49
6062306a36Sopenharmony_ci#define CAM_CC_IFE_1_AHB_CLK		50
6162306a36Sopenharmony_ci#define CAM_CC_IFE_1_AREG_CLK		51
6262306a36Sopenharmony_ci#define CAM_CC_IFE_1_AXI_CLK		52
6362306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK		53
6462306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK_SRC		54
6562306a36Sopenharmony_ci#define CAM_CC_IFE_1_CPHY_RX_CLK	55
6662306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK		56
6762306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK_SRC	57
6862306a36Sopenharmony_ci#define CAM_CC_IFE_1_DSP_CLK		58
6962306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_AHB_CLK		59
7062306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_AXI_CLK		60
7162306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK		61
7262306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK_SRC		62
7362306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CPHY_RX_CLK	63
7462306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK	64
7562306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK_SRC	65
7662306a36Sopenharmony_ci#define CAM_CC_IPE_0_AHB_CLK		66
7762306a36Sopenharmony_ci#define CAM_CC_IPE_0_AREG_CLK		67
7862306a36Sopenharmony_ci#define CAM_CC_IPE_0_AXI_CLK		68
7962306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK		69
8062306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK_SRC		70
8162306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK			71
8262306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK_SRC		72
8362306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK		73
8462306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK_SRC		74
8562306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK		75
8662306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK_SRC		76
8762306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK		77
8862306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK_SRC		78
8962306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK		79
9062306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK_SRC		80
9162306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK		81
9262306a36Sopenharmony_ci#define CAM_CC_MCLK4_CLK_SRC		82
9362306a36Sopenharmony_ci#define CAM_CC_MCLK5_CLK		83
9462306a36Sopenharmony_ci#define CAM_CC_MCLK5_CLK_SRC		84
9562306a36Sopenharmony_ci#define CAM_CC_MCLK6_CLK		85
9662306a36Sopenharmony_ci#define CAM_CC_MCLK6_CLK_SRC		86
9762306a36Sopenharmony_ci#define CAM_CC_PLL0			87
9862306a36Sopenharmony_ci#define CAM_CC_PLL0_OUT_EVEN		88
9962306a36Sopenharmony_ci#define CAM_CC_PLL0_OUT_ODD		89
10062306a36Sopenharmony_ci#define CAM_CC_PLL1			90
10162306a36Sopenharmony_ci#define CAM_CC_PLL1_OUT_EVEN		91
10262306a36Sopenharmony_ci#define CAM_CC_PLL2			92
10362306a36Sopenharmony_ci#define CAM_CC_PLL2_OUT_MAIN		93
10462306a36Sopenharmony_ci#define CAM_CC_PLL3			94
10562306a36Sopenharmony_ci#define CAM_CC_PLL3_OUT_EVEN		95
10662306a36Sopenharmony_ci#define CAM_CC_PLL4			96
10762306a36Sopenharmony_ci#define CAM_CC_PLL4_OUT_EVEN		97
10862306a36Sopenharmony_ci#define CAM_CC_SBI_AHB_CLK		98
10962306a36Sopenharmony_ci#define CAM_CC_SBI_AXI_CLK		99
11062306a36Sopenharmony_ci#define CAM_CC_SBI_CLK			100
11162306a36Sopenharmony_ci#define CAM_CC_SBI_CPHY_RX_CLK		101
11262306a36Sopenharmony_ci#define CAM_CC_SBI_CSID_CLK		102
11362306a36Sopenharmony_ci#define CAM_CC_SBI_CSID_CLK_SRC		103
11462306a36Sopenharmony_ci#define CAM_CC_SBI_DIV_CLK_SRC		104
11562306a36Sopenharmony_ci#define CAM_CC_SBI_IFE_0_CLK		105
11662306a36Sopenharmony_ci#define CAM_CC_SBI_IFE_1_CLK		106
11762306a36Sopenharmony_ci#define CAM_CC_SLEEP_CLK		107
11862306a36Sopenharmony_ci#define CAM_CC_SLEEP_CLK_SRC		108
11962306a36Sopenharmony_ci#define CAM_CC_SLOW_AHB_CLK_SRC		109
12062306a36Sopenharmony_ci#define CAM_CC_XO_CLK_SRC		110
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci/* CAM_CC resets */
12362306a36Sopenharmony_ci#define CAM_CC_BPS_BCR			0
12462306a36Sopenharmony_ci#define CAM_CC_ICP_BCR			1
12562306a36Sopenharmony_ci#define CAM_CC_IFE_0_BCR		2
12662306a36Sopenharmony_ci#define CAM_CC_IFE_1_BCR		3
12762306a36Sopenharmony_ci#define CAM_CC_IPE_0_BCR		4
12862306a36Sopenharmony_ci#define CAM_CC_SBI_BCR			5
12962306a36Sopenharmony_ci
13062306a36Sopenharmony_ci/* CAM_CC GDSCRs */
13162306a36Sopenharmony_ci#define BPS_GDSC			0
13262306a36Sopenharmony_ci#define IPE_0_GDSC			1
13362306a36Sopenharmony_ci#define SBI_GDSC			2
13462306a36Sopenharmony_ci#define IFE_0_GDSC			3
13562306a36Sopenharmony_ci#define IFE_1_GDSC			4
13662306a36Sopenharmony_ci#define TITAN_TOP_GDSC			5
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ci#endif
139