18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2018, The Linux Foundation. All rights reserved.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_SDM_CAM_CC_SDM845_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_CLK_SDM_CAM_CC_SDM845_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* CAM_CC clock registers */
108c2ecf20Sopenharmony_ci#define CAM_CC_BPS_AHB_CLK				0
118c2ecf20Sopenharmony_ci#define CAM_CC_BPS_AREG_CLK				1
128c2ecf20Sopenharmony_ci#define CAM_CC_BPS_AXI_CLK				2
138c2ecf20Sopenharmony_ci#define CAM_CC_BPS_CLK					3
148c2ecf20Sopenharmony_ci#define CAM_CC_BPS_CLK_SRC				4
158c2ecf20Sopenharmony_ci#define CAM_CC_CAMNOC_ATB_CLK				5
168c2ecf20Sopenharmony_ci#define CAM_CC_CAMNOC_AXI_CLK				6
178c2ecf20Sopenharmony_ci#define CAM_CC_CCI_CLK					7
188c2ecf20Sopenharmony_ci#define CAM_CC_CCI_CLK_SRC				8
198c2ecf20Sopenharmony_ci#define CAM_CC_CPAS_AHB_CLK				9
208c2ecf20Sopenharmony_ci#define CAM_CC_CPHY_RX_CLK_SRC				10
218c2ecf20Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK				11
228c2ecf20Sopenharmony_ci#define CAM_CC_CSI0PHYTIMER_CLK_SRC			12
238c2ecf20Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK				13
248c2ecf20Sopenharmony_ci#define CAM_CC_CSI1PHYTIMER_CLK_SRC			14
258c2ecf20Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK				15
268c2ecf20Sopenharmony_ci#define CAM_CC_CSI2PHYTIMER_CLK_SRC			16
278c2ecf20Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK				17
288c2ecf20Sopenharmony_ci#define CAM_CC_CSI3PHYTIMER_CLK_SRC			18
298c2ecf20Sopenharmony_ci#define CAM_CC_CSIPHY0_CLK				19
308c2ecf20Sopenharmony_ci#define CAM_CC_CSIPHY1_CLK				20
318c2ecf20Sopenharmony_ci#define CAM_CC_CSIPHY2_CLK				21
328c2ecf20Sopenharmony_ci#define CAM_CC_CSIPHY3_CLK				22
338c2ecf20Sopenharmony_ci#define CAM_CC_FAST_AHB_CLK_SRC				23
348c2ecf20Sopenharmony_ci#define CAM_CC_FD_CORE_CLK				24
358c2ecf20Sopenharmony_ci#define CAM_CC_FD_CORE_CLK_SRC				25
368c2ecf20Sopenharmony_ci#define CAM_CC_FD_CORE_UAR_CLK				26
378c2ecf20Sopenharmony_ci#define CAM_CC_ICP_APB_CLK				27
388c2ecf20Sopenharmony_ci#define CAM_CC_ICP_ATB_CLK				28
398c2ecf20Sopenharmony_ci#define CAM_CC_ICP_CLK					29
408c2ecf20Sopenharmony_ci#define CAM_CC_ICP_CLK_SRC				30
418c2ecf20Sopenharmony_ci#define CAM_CC_ICP_CTI_CLK				31
428c2ecf20Sopenharmony_ci#define CAM_CC_ICP_TS_CLK				32
438c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_AXI_CLK				33
448c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_CLK				34
458c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_CLK_SRC				35
468c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_CPHY_RX_CLK			36
478c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK				37
488c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_CSID_CLK_SRC			38
498c2ecf20Sopenharmony_ci#define CAM_CC_IFE_0_DSP_CLK				39
508c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_AXI_CLK				40
518c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_CLK				41
528c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_CLK_SRC				42
538c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_CPHY_RX_CLK			43
548c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK				44
558c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_CSID_CLK_SRC			45
568c2ecf20Sopenharmony_ci#define CAM_CC_IFE_1_DSP_CLK				46
578c2ecf20Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK				47
588c2ecf20Sopenharmony_ci#define CAM_CC_IFE_LITE_CLK_SRC				48
598c2ecf20Sopenharmony_ci#define CAM_CC_IFE_LITE_CPHY_RX_CLK			49
608c2ecf20Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK			50
618c2ecf20Sopenharmony_ci#define CAM_CC_IFE_LITE_CSID_CLK_SRC			51
628c2ecf20Sopenharmony_ci#define CAM_CC_IPE_0_AHB_CLK				52
638c2ecf20Sopenharmony_ci#define CAM_CC_IPE_0_AREG_CLK				53
648c2ecf20Sopenharmony_ci#define CAM_CC_IPE_0_AXI_CLK				54
658c2ecf20Sopenharmony_ci#define CAM_CC_IPE_0_CLK				55
668c2ecf20Sopenharmony_ci#define CAM_CC_IPE_0_CLK_SRC				56
678c2ecf20Sopenharmony_ci#define CAM_CC_IPE_1_AHB_CLK				57
688c2ecf20Sopenharmony_ci#define CAM_CC_IPE_1_AREG_CLK				58
698c2ecf20Sopenharmony_ci#define CAM_CC_IPE_1_AXI_CLK				59
708c2ecf20Sopenharmony_ci#define CAM_CC_IPE_1_CLK				60
718c2ecf20Sopenharmony_ci#define CAM_CC_IPE_1_CLK_SRC				61
728c2ecf20Sopenharmony_ci#define CAM_CC_JPEG_CLK					62
738c2ecf20Sopenharmony_ci#define CAM_CC_JPEG_CLK_SRC				63
748c2ecf20Sopenharmony_ci#define CAM_CC_LRME_CLK					64
758c2ecf20Sopenharmony_ci#define CAM_CC_LRME_CLK_SRC				65
768c2ecf20Sopenharmony_ci#define CAM_CC_MCLK0_CLK				66
778c2ecf20Sopenharmony_ci#define CAM_CC_MCLK0_CLK_SRC				67
788c2ecf20Sopenharmony_ci#define CAM_CC_MCLK1_CLK				68
798c2ecf20Sopenharmony_ci#define CAM_CC_MCLK1_CLK_SRC				69
808c2ecf20Sopenharmony_ci#define CAM_CC_MCLK2_CLK				70
818c2ecf20Sopenharmony_ci#define CAM_CC_MCLK2_CLK_SRC				71
828c2ecf20Sopenharmony_ci#define CAM_CC_MCLK3_CLK				72
838c2ecf20Sopenharmony_ci#define CAM_CC_MCLK3_CLK_SRC				73
848c2ecf20Sopenharmony_ci#define CAM_CC_PLL0					74
858c2ecf20Sopenharmony_ci#define CAM_CC_PLL0_OUT_EVEN				75
868c2ecf20Sopenharmony_ci#define CAM_CC_PLL1					76
878c2ecf20Sopenharmony_ci#define CAM_CC_PLL1_OUT_EVEN				77
888c2ecf20Sopenharmony_ci#define CAM_CC_PLL2					78
898c2ecf20Sopenharmony_ci#define CAM_CC_PLL2_OUT_EVEN				79
908c2ecf20Sopenharmony_ci#define CAM_CC_PLL3					80
918c2ecf20Sopenharmony_ci#define CAM_CC_PLL3_OUT_EVEN				81
928c2ecf20Sopenharmony_ci#define CAM_CC_SLOW_AHB_CLK_SRC				82
938c2ecf20Sopenharmony_ci#define CAM_CC_SOC_AHB_CLK				83
948c2ecf20Sopenharmony_ci#define CAM_CC_SYS_TMR_CLK				84
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci/* CAM_CC Resets */
978c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_CCI_BCR				0
988c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_CPAS_BCR				1
998c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_CSI0PHY_BCR			2
1008c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_CSI1PHY_BCR			3
1018c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_CSI2PHY_BCR			4
1028c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_MCLK0_BCR				5
1038c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_MCLK1_BCR				6
1048c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_MCLK2_BCR				7
1058c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_MCLK3_BCR				8
1068c2ecf20Sopenharmony_ci#define TITAN_CAM_CC_TITAN_TOP_BCR			9
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ci/* CAM_CC GDSCRs */
1098c2ecf20Sopenharmony_ci#define BPS_GDSC					0
1108c2ecf20Sopenharmony_ci#define IPE_0_GDSC					1
1118c2ecf20Sopenharmony_ci#define IPE_1_GDSC					2
1128c2ecf20Sopenharmony_ci#define IFE_0_GDSC					3
1138c2ecf20Sopenharmony_ci#define IFE_1_GDSC					4
1148c2ecf20Sopenharmony_ci#define TITAN_TOP_GDSC					5
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci#endif
117