18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
48c2ecf20Sopenharmony_ci * Copyright (c) 2018, Craig Tatlor.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_MSM_GCC_660_H
88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_CLK_MSM_GCC_660_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define BLSP1_QUP1_I2C_APPS_CLK_SRC		0
118c2ecf20Sopenharmony_ci#define BLSP1_QUP1_SPI_APPS_CLK_SRC		1
128c2ecf20Sopenharmony_ci#define BLSP1_QUP2_I2C_APPS_CLK_SRC		2
138c2ecf20Sopenharmony_ci#define BLSP1_QUP2_SPI_APPS_CLK_SRC		3
148c2ecf20Sopenharmony_ci#define BLSP1_QUP3_I2C_APPS_CLK_SRC		4
158c2ecf20Sopenharmony_ci#define BLSP1_QUP3_SPI_APPS_CLK_SRC		5
168c2ecf20Sopenharmony_ci#define BLSP1_QUP4_I2C_APPS_CLK_SRC		6
178c2ecf20Sopenharmony_ci#define BLSP1_QUP4_SPI_APPS_CLK_SRC		7
188c2ecf20Sopenharmony_ci#define BLSP1_UART1_APPS_CLK_SRC		8
198c2ecf20Sopenharmony_ci#define BLSP1_UART2_APPS_CLK_SRC		9
208c2ecf20Sopenharmony_ci#define BLSP2_QUP1_I2C_APPS_CLK_SRC		10
218c2ecf20Sopenharmony_ci#define BLSP2_QUP1_SPI_APPS_CLK_SRC		11
228c2ecf20Sopenharmony_ci#define BLSP2_QUP2_I2C_APPS_CLK_SRC		12
238c2ecf20Sopenharmony_ci#define BLSP2_QUP2_SPI_APPS_CLK_SRC		13
248c2ecf20Sopenharmony_ci#define BLSP2_QUP3_I2C_APPS_CLK_SRC		14
258c2ecf20Sopenharmony_ci#define BLSP2_QUP3_SPI_APPS_CLK_SRC		15
268c2ecf20Sopenharmony_ci#define BLSP2_QUP4_I2C_APPS_CLK_SRC		16
278c2ecf20Sopenharmony_ci#define BLSP2_QUP4_SPI_APPS_CLK_SRC		17
288c2ecf20Sopenharmony_ci#define BLSP2_UART1_APPS_CLK_SRC		18
298c2ecf20Sopenharmony_ci#define BLSP2_UART2_APPS_CLK_SRC		19
308c2ecf20Sopenharmony_ci#define GCC_AGGRE2_UFS_AXI_CLK			20
318c2ecf20Sopenharmony_ci#define GCC_AGGRE2_USB3_AXI_CLK			21
328c2ecf20Sopenharmony_ci#define GCC_BIMC_GFX_CLK			22
338c2ecf20Sopenharmony_ci#define GCC_BIMC_HMSS_AXI_CLK			23
348c2ecf20Sopenharmony_ci#define GCC_BIMC_MSS_Q6_AXI_CLK			24
358c2ecf20Sopenharmony_ci#define GCC_BLSP1_AHB_CLK			25
368c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP1_I2C_APPS_CLK		26
378c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP1_SPI_APPS_CLK		27
388c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP2_I2C_APPS_CLK		28
398c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP2_SPI_APPS_CLK		29
408c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP3_I2C_APPS_CLK		30
418c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP3_SPI_APPS_CLK		31
428c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP4_I2C_APPS_CLK		32
438c2ecf20Sopenharmony_ci#define GCC_BLSP1_QUP4_SPI_APPS_CLK		33
448c2ecf20Sopenharmony_ci#define GCC_BLSP1_UART1_APPS_CLK		34
458c2ecf20Sopenharmony_ci#define GCC_BLSP1_UART2_APPS_CLK		35
468c2ecf20Sopenharmony_ci#define GCC_BLSP2_AHB_CLK			36
478c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP1_I2C_APPS_CLK		37
488c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP1_SPI_APPS_CLK		38
498c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP2_I2C_APPS_CLK		39
508c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP2_SPI_APPS_CLK		40
518c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP3_I2C_APPS_CLK		41
528c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP3_SPI_APPS_CLK		42
538c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP4_I2C_APPS_CLK		43
548c2ecf20Sopenharmony_ci#define GCC_BLSP2_QUP4_SPI_APPS_CLK		44
558c2ecf20Sopenharmony_ci#define GCC_BLSP2_UART1_APPS_CLK		45
568c2ecf20Sopenharmony_ci#define GCC_BLSP2_UART2_APPS_CLK		46
578c2ecf20Sopenharmony_ci#define GCC_BOOT_ROM_AHB_CLK			47
588c2ecf20Sopenharmony_ci#define GCC_CFG_NOC_USB2_AXI_CLK		48
598c2ecf20Sopenharmony_ci#define GCC_CFG_NOC_USB3_AXI_CLK		49
608c2ecf20Sopenharmony_ci#define GCC_DCC_AHB_CLK				50
618c2ecf20Sopenharmony_ci#define GCC_GP1_CLK				51
628c2ecf20Sopenharmony_ci#define GCC_GP2_CLK				52
638c2ecf20Sopenharmony_ci#define GCC_GP3_CLK				53
648c2ecf20Sopenharmony_ci#define GCC_GPU_BIMC_GFX_CLK			54
658c2ecf20Sopenharmony_ci#define GCC_GPU_CFG_AHB_CLK			55
668c2ecf20Sopenharmony_ci#define GCC_GPU_GPLL0_CLK			56
678c2ecf20Sopenharmony_ci#define GCC_GPU_GPLL0_DIV_CLK			57
688c2ecf20Sopenharmony_ci#define GCC_HMSS_DVM_BUS_CLK			58
698c2ecf20Sopenharmony_ci#define GCC_HMSS_RBCPR_CLK			59
708c2ecf20Sopenharmony_ci#define GCC_MMSS_GPLL0_CLK			60
718c2ecf20Sopenharmony_ci#define GCC_MMSS_GPLL0_DIV_CLK			61
728c2ecf20Sopenharmony_ci#define GCC_MMSS_NOC_CFG_AHB_CLK		62
738c2ecf20Sopenharmony_ci#define GCC_MMSS_SYS_NOC_AXI_CLK		63
748c2ecf20Sopenharmony_ci#define GCC_MSS_CFG_AHB_CLK			64
758c2ecf20Sopenharmony_ci#define GCC_MSS_GPLL0_DIV_CLK			65
768c2ecf20Sopenharmony_ci#define GCC_MSS_MNOC_BIMC_AXI_CLK		66
778c2ecf20Sopenharmony_ci#define GCC_MSS_Q6_BIMC_AXI_CLK			67
788c2ecf20Sopenharmony_ci#define GCC_MSS_SNOC_AXI_CLK			68
798c2ecf20Sopenharmony_ci#define GCC_PDM2_CLK				69
808c2ecf20Sopenharmony_ci#define GCC_PDM_AHB_CLK				70
818c2ecf20Sopenharmony_ci#define GCC_PRNG_AHB_CLK			71
828c2ecf20Sopenharmony_ci#define GCC_QSPI_AHB_CLK			72
838c2ecf20Sopenharmony_ci#define GCC_QSPI_SER_CLK			73
848c2ecf20Sopenharmony_ci#define GCC_SDCC1_AHB_CLK			74
858c2ecf20Sopenharmony_ci#define GCC_SDCC1_APPS_CLK			75
868c2ecf20Sopenharmony_ci#define GCC_SDCC1_ICE_CORE_CLK			76
878c2ecf20Sopenharmony_ci#define GCC_SDCC2_AHB_CLK			77
888c2ecf20Sopenharmony_ci#define GCC_SDCC2_APPS_CLK			78
898c2ecf20Sopenharmony_ci#define GCC_UFS_AHB_CLK				79
908c2ecf20Sopenharmony_ci#define GCC_UFS_AXI_CLK				80
918c2ecf20Sopenharmony_ci#define GCC_UFS_CLKREF_CLK			81
928c2ecf20Sopenharmony_ci#define GCC_UFS_ICE_CORE_CLK			82
938c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_AUX_CLK			83
948c2ecf20Sopenharmony_ci#define GCC_UFS_RX_SYMBOL_0_CLK			84
958c2ecf20Sopenharmony_ci#define GCC_UFS_RX_SYMBOL_1_CLK			85
968c2ecf20Sopenharmony_ci#define GCC_UFS_TX_SYMBOL_0_CLK			86
978c2ecf20Sopenharmony_ci#define GCC_UFS_UNIPRO_CORE_CLK			87
988c2ecf20Sopenharmony_ci#define GCC_USB20_MASTER_CLK			88
998c2ecf20Sopenharmony_ci#define GCC_USB20_MOCK_UTMI_CLK			89
1008c2ecf20Sopenharmony_ci#define GCC_USB20_SLEEP_CLK			90
1018c2ecf20Sopenharmony_ci#define GCC_USB30_MASTER_CLK			91
1028c2ecf20Sopenharmony_ci#define GCC_USB30_MOCK_UTMI_CLK			92
1038c2ecf20Sopenharmony_ci#define GCC_USB30_SLEEP_CLK			93
1048c2ecf20Sopenharmony_ci#define GCC_USB3_CLKREF_CLK			94
1058c2ecf20Sopenharmony_ci#define GCC_USB3_PHY_AUX_CLK			95
1068c2ecf20Sopenharmony_ci#define GCC_USB3_PHY_PIPE_CLK			96
1078c2ecf20Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_CLK		97
1088c2ecf20Sopenharmony_ci#define GP1_CLK_SRC				98
1098c2ecf20Sopenharmony_ci#define GP2_CLK_SRC				99
1108c2ecf20Sopenharmony_ci#define GP3_CLK_SRC				100
1118c2ecf20Sopenharmony_ci#define GPLL0					101
1128c2ecf20Sopenharmony_ci#define GPLL0_EARLY				102
1138c2ecf20Sopenharmony_ci#define GPLL1					103
1148c2ecf20Sopenharmony_ci#define GPLL1_EARLY				104
1158c2ecf20Sopenharmony_ci#define GPLL4					105
1168c2ecf20Sopenharmony_ci#define GPLL4_EARLY				106
1178c2ecf20Sopenharmony_ci#define HMSS_GPLL0_CLK_SRC			107
1188c2ecf20Sopenharmony_ci#define HMSS_GPLL4_CLK_SRC			108
1198c2ecf20Sopenharmony_ci#define HMSS_RBCPR_CLK_SRC			109
1208c2ecf20Sopenharmony_ci#define PDM2_CLK_SRC				110
1218c2ecf20Sopenharmony_ci#define QSPI_SER_CLK_SRC			111
1228c2ecf20Sopenharmony_ci#define SDCC1_APPS_CLK_SRC			112
1238c2ecf20Sopenharmony_ci#define SDCC1_ICE_CORE_CLK_SRC			113
1248c2ecf20Sopenharmony_ci#define SDCC2_APPS_CLK_SRC			114
1258c2ecf20Sopenharmony_ci#define UFS_AXI_CLK_SRC				115
1268c2ecf20Sopenharmony_ci#define UFS_ICE_CORE_CLK_SRC			116
1278c2ecf20Sopenharmony_ci#define UFS_PHY_AUX_CLK_SRC			117
1288c2ecf20Sopenharmony_ci#define UFS_UNIPRO_CORE_CLK_SRC			118
1298c2ecf20Sopenharmony_ci#define USB20_MASTER_CLK_SRC			119
1308c2ecf20Sopenharmony_ci#define USB20_MOCK_UTMI_CLK_SRC			120
1318c2ecf20Sopenharmony_ci#define USB30_MASTER_CLK_SRC			121
1328c2ecf20Sopenharmony_ci#define USB30_MOCK_UTMI_CLK_SRC			122
1338c2ecf20Sopenharmony_ci#define USB3_PHY_AUX_CLK_SRC			123
1348c2ecf20Sopenharmony_ci#define GPLL0_OUT_MSSCC				124
1358c2ecf20Sopenharmony_ci#define GCC_UFS_AXI_HW_CTL_CLK			125
1368c2ecf20Sopenharmony_ci#define GCC_UFS_ICE_CORE_HW_CTL_CLK		126
1378c2ecf20Sopenharmony_ci#define GCC_UFS_PHY_AUX_HW_CTL_CLK		127
1388c2ecf20Sopenharmony_ci#define GCC_UFS_UNIPRO_CORE_HW_CTL_CLK		128
1398c2ecf20Sopenharmony_ci#define GCC_RX0_USB2_CLKREF_CLK			129
1408c2ecf20Sopenharmony_ci#define GCC_RX1_USB2_CLKREF_CLK			130
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci#define PCIE_0_GDSC	0
1438c2ecf20Sopenharmony_ci#define UFS_GDSC	1
1448c2ecf20Sopenharmony_ci#define USB_30_GDSC	2
1458c2ecf20Sopenharmony_ci
1468c2ecf20Sopenharmony_ci#define GCC_QUSB2PHY_PRIM_BCR		0
1478c2ecf20Sopenharmony_ci#define GCC_QUSB2PHY_SEC_BCR		1
1488c2ecf20Sopenharmony_ci#define GCC_UFS_BCR			2
1498c2ecf20Sopenharmony_ci#define GCC_USB3_DP_PHY_BCR		3
1508c2ecf20Sopenharmony_ci#define GCC_USB3_PHY_BCR		4
1518c2ecf20Sopenharmony_ci#define GCC_USB3PHY_PHY_BCR		5
1528c2ecf20Sopenharmony_ci#define GCC_USB_20_BCR                  6
1538c2ecf20Sopenharmony_ci#define GCC_USB_30_BCR			7
1548c2ecf20Sopenharmony_ci#define GCC_USB_PHY_CFG_AHB2PHY_BCR	8
1558c2ecf20Sopenharmony_ci#define GCC_MSS_RESTART			9
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci#endif
158