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_CAM_CC_SDM845_H
762306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_SDM_CAM_CC_SDM845_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* CAM_CC clock registers */
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_ATB_CLK				5
1662306a36Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK				6
1762306a36Sopenharmony_ci#define CAM_CC_CCI_CLK					7
1862306a36Sopenharmony_ci#define CAM_CC_CCI_CLK_SRC				8
1962306a36Sopenharmony_ci#define CAM_CC_CPAS_AHB_CLK				9
2062306a36Sopenharmony_ci#define CAM_CC_CPHY_RX_CLK_SRC				10
2162306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK				11
2262306a36Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK_SRC			12
2362306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK				13
2462306a36Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK_SRC			14
2562306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK				15
2662306a36Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK_SRC			16
2762306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK				17
2862306a36Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK_SRC			18
2962306a36Sopenharmony_ci#define CAM_CC_CSIPHY0_CLK				19
3062306a36Sopenharmony_ci#define CAM_CC_CSIPHY1_CLK				20
3162306a36Sopenharmony_ci#define CAM_CC_CSIPHY2_CLK				21
3262306a36Sopenharmony_ci#define CAM_CC_CSIPHY3_CLK				22
3362306a36Sopenharmony_ci#define CAM_CC_FAST_AHB_CLK_SRC				23
3462306a36Sopenharmony_ci#define CAM_CC_FD_CORE_CLK				24
3562306a36Sopenharmony_ci#define CAM_CC_FD_CORE_CLK_SRC				25
3662306a36Sopenharmony_ci#define CAM_CC_FD_CORE_UAR_CLK				26
3762306a36Sopenharmony_ci#define CAM_CC_ICP_APB_CLK				27
3862306a36Sopenharmony_ci#define CAM_CC_ICP_ATB_CLK				28
3962306a36Sopenharmony_ci#define CAM_CC_ICP_CLK					29
4062306a36Sopenharmony_ci#define CAM_CC_ICP_CLK_SRC				30
4162306a36Sopenharmony_ci#define CAM_CC_ICP_CTI_CLK				31
4262306a36Sopenharmony_ci#define CAM_CC_ICP_TS_CLK				32
4362306a36Sopenharmony_ci#define CAM_CC_IFE_0_AXI_CLK				33
4462306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK				34
4562306a36Sopenharmony_ci#define CAM_CC_IFE_0_CLK_SRC				35
4662306a36Sopenharmony_ci#define CAM_CC_IFE_0_CPHY_RX_CLK			36
4762306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK				37
4862306a36Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK_SRC			38
4962306a36Sopenharmony_ci#define CAM_CC_IFE_0_DSP_CLK				39
5062306a36Sopenharmony_ci#define CAM_CC_IFE_1_AXI_CLK				40
5162306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK				41
5262306a36Sopenharmony_ci#define CAM_CC_IFE_1_CLK_SRC				42
5362306a36Sopenharmony_ci#define CAM_CC_IFE_1_CPHY_RX_CLK			43
5462306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK				44
5562306a36Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK_SRC			45
5662306a36Sopenharmony_ci#define CAM_CC_IFE_1_DSP_CLK				46
5762306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK				47
5862306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK_SRC				48
5962306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CPHY_RX_CLK			49
6062306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK			50
6162306a36Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK_SRC			51
6262306a36Sopenharmony_ci#define CAM_CC_IPE_0_AHB_CLK				52
6362306a36Sopenharmony_ci#define CAM_CC_IPE_0_AREG_CLK				53
6462306a36Sopenharmony_ci#define CAM_CC_IPE_0_AXI_CLK				54
6562306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK				55
6662306a36Sopenharmony_ci#define CAM_CC_IPE_0_CLK_SRC				56
6762306a36Sopenharmony_ci#define CAM_CC_IPE_1_AHB_CLK				57
6862306a36Sopenharmony_ci#define CAM_CC_IPE_1_AREG_CLK				58
6962306a36Sopenharmony_ci#define CAM_CC_IPE_1_AXI_CLK				59
7062306a36Sopenharmony_ci#define CAM_CC_IPE_1_CLK				60
7162306a36Sopenharmony_ci#define CAM_CC_IPE_1_CLK_SRC				61
7262306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK					62
7362306a36Sopenharmony_ci#define CAM_CC_JPEG_CLK_SRC				63
7462306a36Sopenharmony_ci#define CAM_CC_LRME_CLK					64
7562306a36Sopenharmony_ci#define CAM_CC_LRME_CLK_SRC				65
7662306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK				66
7762306a36Sopenharmony_ci#define CAM_CC_MCLK0_CLK_SRC				67
7862306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK				68
7962306a36Sopenharmony_ci#define CAM_CC_MCLK1_CLK_SRC				69
8062306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK				70
8162306a36Sopenharmony_ci#define CAM_CC_MCLK2_CLK_SRC				71
8262306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK				72
8362306a36Sopenharmony_ci#define CAM_CC_MCLK3_CLK_SRC				73
8462306a36Sopenharmony_ci#define CAM_CC_PLL0					74
8562306a36Sopenharmony_ci#define CAM_CC_PLL0_OUT_EVEN				75
8662306a36Sopenharmony_ci#define CAM_CC_PLL1					76
8762306a36Sopenharmony_ci#define CAM_CC_PLL1_OUT_EVEN				77
8862306a36Sopenharmony_ci#define CAM_CC_PLL2					78
8962306a36Sopenharmony_ci#define CAM_CC_PLL2_OUT_EVEN				79
9062306a36Sopenharmony_ci#define CAM_CC_PLL3					80
9162306a36Sopenharmony_ci#define CAM_CC_PLL3_OUT_EVEN				81
9262306a36Sopenharmony_ci#define CAM_CC_SLOW_AHB_CLK_SRC				82
9362306a36Sopenharmony_ci#define CAM_CC_SOC_AHB_CLK				83
9462306a36Sopenharmony_ci#define CAM_CC_SYS_TMR_CLK				84
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci/* CAM_CC Resets */
9762306a36Sopenharmony_ci#define TITAN_CAM_CC_CCI_BCR				0
9862306a36Sopenharmony_ci#define TITAN_CAM_CC_CPAS_BCR				1
9962306a36Sopenharmony_ci#define TITAN_CAM_CC_CSI0PHY_BCR			2
10062306a36Sopenharmony_ci#define TITAN_CAM_CC_CSI1PHY_BCR			3
10162306a36Sopenharmony_ci#define TITAN_CAM_CC_CSI2PHY_BCR			4
10262306a36Sopenharmony_ci#define TITAN_CAM_CC_MCLK0_BCR				5
10362306a36Sopenharmony_ci#define TITAN_CAM_CC_MCLK1_BCR				6
10462306a36Sopenharmony_ci#define TITAN_CAM_CC_MCLK2_BCR				7
10562306a36Sopenharmony_ci#define TITAN_CAM_CC_MCLK3_BCR				8
10662306a36Sopenharmony_ci#define TITAN_CAM_CC_TITAN_TOP_BCR			9
10762306a36Sopenharmony_ci
10862306a36Sopenharmony_ci/* CAM_CC GDSCRs */
10962306a36Sopenharmony_ci#define BPS_GDSC					0
11062306a36Sopenharmony_ci#define IPE_0_GDSC					1
11162306a36Sopenharmony_ci#define IPE_1_GDSC					2
11262306a36Sopenharmony_ci#define IFE_0_GDSC					3
11362306a36Sopenharmony_ci#define IFE_1_GDSC					4
11462306a36Sopenharmony_ci#define TITAN_TOP_GDSC					5
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ci#endif
117