xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gcc-msm8994.h (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */
2c66ec88fSEmmanuel Vadot /*
3c66ec88fSEmmanuel Vadot  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
4c66ec88fSEmmanuel Vadot  */
5c66ec88fSEmmanuel Vadot 
6c66ec88fSEmmanuel Vadot 
7c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_MSM_GCC_8994_H
8c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_MSM_GCC_8994_H
9c66ec88fSEmmanuel Vadot 
10c66ec88fSEmmanuel Vadot #define GPLL0_EARLY				0
11c66ec88fSEmmanuel Vadot #define GPLL0					1
12c66ec88fSEmmanuel Vadot #define GPLL4_EARLY				2
13c66ec88fSEmmanuel Vadot #define GPLL4					3
14c66ec88fSEmmanuel Vadot #define UFS_AXI_CLK_SRC				4
15c66ec88fSEmmanuel Vadot #define USB30_MASTER_CLK_SRC			5
16c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_I2C_APPS_CLK_SRC		6
17c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_SPI_APPS_CLK_SRC		7
18c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_I2C_APPS_CLK_SRC		8
19c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_SPI_APPS_CLK_SRC		9
20c66ec88fSEmmanuel Vadot #define BLSP1_QUP3_I2C_APPS_CLK_SRC		10
21c66ec88fSEmmanuel Vadot #define BLSP1_QUP3_SPI_APPS_CLK_SRC		11
22c66ec88fSEmmanuel Vadot #define BLSP1_QUP4_I2C_APPS_CLK_SRC		12
23c66ec88fSEmmanuel Vadot #define BLSP1_QUP4_SPI_APPS_CLK_SRC		13
24c66ec88fSEmmanuel Vadot #define BLSP1_QUP5_I2C_APPS_CLK_SRC		14
25c66ec88fSEmmanuel Vadot #define BLSP1_QUP5_SPI_APPS_CLK_SRC		15
26c66ec88fSEmmanuel Vadot #define BLSP1_QUP6_I2C_APPS_CLK_SRC		16
27c66ec88fSEmmanuel Vadot #define BLSP1_QUP6_SPI_APPS_CLK_SRC		17
28c66ec88fSEmmanuel Vadot #define BLSP1_UART1_APPS_CLK_SRC		18
29c66ec88fSEmmanuel Vadot #define BLSP1_UART2_APPS_CLK_SRC		19
30c66ec88fSEmmanuel Vadot #define BLSP1_UART3_APPS_CLK_SRC		20
31c66ec88fSEmmanuel Vadot #define BLSP1_UART4_APPS_CLK_SRC		21
32c66ec88fSEmmanuel Vadot #define BLSP1_UART5_APPS_CLK_SRC		22
33c66ec88fSEmmanuel Vadot #define BLSP1_UART6_APPS_CLK_SRC		23
34c66ec88fSEmmanuel Vadot #define BLSP2_QUP1_I2C_APPS_CLK_SRC		24
35c66ec88fSEmmanuel Vadot #define BLSP2_QUP1_SPI_APPS_CLK_SRC		25
36c66ec88fSEmmanuel Vadot #define BLSP2_QUP2_I2C_APPS_CLK_SRC		26
37c66ec88fSEmmanuel Vadot #define BLSP2_QUP2_SPI_APPS_CLK_SRC		27
38c66ec88fSEmmanuel Vadot #define BLSP2_QUP3_I2C_APPS_CLK_SRC		28
39c66ec88fSEmmanuel Vadot #define BLSP2_QUP3_SPI_APPS_CLK_SRC		29
40c66ec88fSEmmanuel Vadot #define BLSP2_QUP4_I2C_APPS_CLK_SRC		30
41c66ec88fSEmmanuel Vadot #define BLSP2_QUP4_SPI_APPS_CLK_SRC		31
42c66ec88fSEmmanuel Vadot #define BLSP2_QUP5_I2C_APPS_CLK_SRC		32
43c66ec88fSEmmanuel Vadot #define BLSP2_QUP5_SPI_APPS_CLK_SRC		33
44c66ec88fSEmmanuel Vadot #define BLSP2_QUP6_I2C_APPS_CLK_SRC		34
45c66ec88fSEmmanuel Vadot #define BLSP2_QUP6_SPI_APPS_CLK_SRC		35
46c66ec88fSEmmanuel Vadot #define BLSP2_UART1_APPS_CLK_SRC		36
47c66ec88fSEmmanuel Vadot #define BLSP2_UART2_APPS_CLK_SRC		37
48c66ec88fSEmmanuel Vadot #define BLSP2_UART3_APPS_CLK_SRC		38
49c66ec88fSEmmanuel Vadot #define BLSP2_UART4_APPS_CLK_SRC		39
50c66ec88fSEmmanuel Vadot #define BLSP2_UART5_APPS_CLK_SRC		40
51c66ec88fSEmmanuel Vadot #define BLSP2_UART6_APPS_CLK_SRC		41
52c66ec88fSEmmanuel Vadot #define GP1_CLK_SRC				42
53c66ec88fSEmmanuel Vadot #define GP2_CLK_SRC				43
54c66ec88fSEmmanuel Vadot #define GP3_CLK_SRC				44
55c66ec88fSEmmanuel Vadot #define PCIE_0_AUX_CLK_SRC			45
56c66ec88fSEmmanuel Vadot #define PCIE_0_PIPE_CLK_SRC			46
57c66ec88fSEmmanuel Vadot #define PCIE_1_AUX_CLK_SRC			47
58c66ec88fSEmmanuel Vadot #define PCIE_1_PIPE_CLK_SRC			48
59c66ec88fSEmmanuel Vadot #define PDM2_CLK_SRC				49
60c66ec88fSEmmanuel Vadot #define SDCC1_APPS_CLK_SRC			50
61c66ec88fSEmmanuel Vadot #define SDCC2_APPS_CLK_SRC			51
62c66ec88fSEmmanuel Vadot #define SDCC3_APPS_CLK_SRC			52
63c66ec88fSEmmanuel Vadot #define SDCC4_APPS_CLK_SRC			53
64c66ec88fSEmmanuel Vadot #define TSIF_REF_CLK_SRC			54
65c66ec88fSEmmanuel Vadot #define USB30_MOCK_UTMI_CLK_SRC			55
66c66ec88fSEmmanuel Vadot #define USB3_PHY_AUX_CLK_SRC			56
67c66ec88fSEmmanuel Vadot #define USB_HS_SYSTEM_CLK_SRC			57
68c66ec88fSEmmanuel Vadot #define GCC_BLSP1_AHB_CLK			58
69c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK		59
70c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK		60
71c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK		61
72c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK		62
73c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK		63
74c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK		64
75c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK		65
76c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK		66
77c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP5_I2C_APPS_CLK		67
78c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP5_SPI_APPS_CLK		68
79c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP6_I2C_APPS_CLK		69
80c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP6_SPI_APPS_CLK		70
81c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK		71
82c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK		72
83c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART3_APPS_CLK		73
84c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART4_APPS_CLK		74
85c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART5_APPS_CLK		75
86c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART6_APPS_CLK		76
87c66ec88fSEmmanuel Vadot #define GCC_BLSP2_AHB_CLK			77
88c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP1_I2C_APPS_CLK		78
89c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP1_SPI_APPS_CLK		79
90c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP2_I2C_APPS_CLK		80
91c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP2_SPI_APPS_CLK		81
92c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP3_I2C_APPS_CLK		82
93c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP3_SPI_APPS_CLK		83
94c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP4_I2C_APPS_CLK		84
95c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP4_SPI_APPS_CLK		85
96c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP5_I2C_APPS_CLK		86
97c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP5_SPI_APPS_CLK		87
98c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP6_I2C_APPS_CLK		88
99c66ec88fSEmmanuel Vadot #define GCC_BLSP2_QUP6_SPI_APPS_CLK		89
100c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART1_APPS_CLK		90
101c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART2_APPS_CLK		91
102c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART3_APPS_CLK		92
103c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART4_APPS_CLK		93
104c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART5_APPS_CLK		94
105c66ec88fSEmmanuel Vadot #define GCC_BLSP2_UART6_APPS_CLK		95
106c66ec88fSEmmanuel Vadot #define GCC_GP1_CLK				96
107c66ec88fSEmmanuel Vadot #define GCC_GP2_CLK				97
108c66ec88fSEmmanuel Vadot #define GCC_GP3_CLK				98
109c66ec88fSEmmanuel Vadot #define GCC_PCIE_0_AUX_CLK			99
110c66ec88fSEmmanuel Vadot #define GCC_PCIE_0_PIPE_CLK			100
111c66ec88fSEmmanuel Vadot #define GCC_PCIE_1_AUX_CLK			101
112c66ec88fSEmmanuel Vadot #define GCC_PCIE_1_PIPE_CLK			102
113c66ec88fSEmmanuel Vadot #define GCC_PDM2_CLK				103
114c66ec88fSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK			104
115c66ec88fSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK			105
116c66ec88fSEmmanuel Vadot #define GCC_SDCC3_APPS_CLK			106
117c66ec88fSEmmanuel Vadot #define GCC_SDCC4_APPS_CLK			107
118c66ec88fSEmmanuel Vadot #define GCC_SYS_NOC_UFS_AXI_CLK			108
119c66ec88fSEmmanuel Vadot #define GCC_SYS_NOC_USB3_AXI_CLK		109
120c66ec88fSEmmanuel Vadot #define GCC_TSIF_REF_CLK			110
121c66ec88fSEmmanuel Vadot #define GCC_UFS_AXI_CLK				111
122c66ec88fSEmmanuel Vadot #define GCC_UFS_RX_CFG_CLK			112
123c66ec88fSEmmanuel Vadot #define GCC_UFS_TX_CFG_CLK			113
124c66ec88fSEmmanuel Vadot #define GCC_USB30_MASTER_CLK			114
125c66ec88fSEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK			115
126c66ec88fSEmmanuel Vadot #define GCC_USB3_PHY_AUX_CLK			116
127c66ec88fSEmmanuel Vadot #define GCC_USB_HS_SYSTEM_CLK			117
128c66ec88fSEmmanuel Vadot #define GCC_SDCC1_AHB_CLK			118
1296be33864SEmmanuel Vadot #define GCC_LPASS_Q6_AXI_CLK		119
1306be33864SEmmanuel Vadot #define GCC_MSS_Q6_BIMC_AXI_CLK		120
1316be33864SEmmanuel Vadot #define GCC_PCIE_0_CFG_AHB_CLK		121
1326be33864SEmmanuel Vadot #define GCC_PCIE_0_MSTR_AXI_CLK		122
1336be33864SEmmanuel Vadot #define GCC_PCIE_0_SLV_AXI_CLK		123
1346be33864SEmmanuel Vadot #define GCC_PCIE_1_CFG_AHB_CLK		124
1356be33864SEmmanuel Vadot #define GCC_PCIE_1_MSTR_AXI_CLK		125
1366be33864SEmmanuel Vadot #define GCC_PCIE_1_SLV_AXI_CLK		126
1376be33864SEmmanuel Vadot #define GCC_PDM_AHB_CLK				127
1386be33864SEmmanuel Vadot #define GCC_SDCC2_AHB_CLK			128
1396be33864SEmmanuel Vadot #define GCC_SDCC3_AHB_CLK			129
1406be33864SEmmanuel Vadot #define GCC_SDCC4_AHB_CLK			130
1416be33864SEmmanuel Vadot #define GCC_TSIF_AHB_CLK			131
1426be33864SEmmanuel Vadot #define GCC_UFS_AHB_CLK				132
1436be33864SEmmanuel Vadot #define GCC_UFS_RX_SYMBOL_0_CLK		133
1446be33864SEmmanuel Vadot #define GCC_UFS_RX_SYMBOL_1_CLK		134
1456be33864SEmmanuel Vadot #define GCC_UFS_TX_SYMBOL_0_CLK		135
1466be33864SEmmanuel Vadot #define GCC_UFS_TX_SYMBOL_1_CLK		136
1476be33864SEmmanuel Vadot #define GCC_USB2_HS_PHY_SLEEP_CLK	137
1486be33864SEmmanuel Vadot #define GCC_USB30_SLEEP_CLK			138
1496be33864SEmmanuel Vadot #define GCC_USB_HS_AHB_CLK			139
1506be33864SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB2PHY_CLK	140
151*8cc087a1SEmmanuel Vadot #define CONFIG_NOC_CLK_SRC			141
152*8cc087a1SEmmanuel Vadot #define PERIPH_NOC_CLK_SRC			142
153*8cc087a1SEmmanuel Vadot #define SYSTEM_NOC_CLK_SRC			143
154*8cc087a1SEmmanuel Vadot #define GPLL0_OUT_MMSSCC			144
155*8cc087a1SEmmanuel Vadot #define GPLL0_OUT_MSSCC				145
156*8cc087a1SEmmanuel Vadot #define PCIE_0_PHY_LDO				146
157*8cc087a1SEmmanuel Vadot #define PCIE_1_PHY_LDO				147
158*8cc087a1SEmmanuel Vadot #define UFS_PHY_LDO					148
159*8cc087a1SEmmanuel Vadot #define USB_SS_PHY_LDO				149
160*8cc087a1SEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK		150
161*8cc087a1SEmmanuel Vadot #define GCC_PRNG_AHB_CLK			151
162*8cc087a1SEmmanuel Vadot #define GCC_USB3_PHY_PIPE_CLK		152
1636be33864SEmmanuel Vadot 
1646be33864SEmmanuel Vadot /* GDSCs */
1656be33864SEmmanuel Vadot #define PCIE_GDSC			0
1666be33864SEmmanuel Vadot #define PCIE_0_GDSC			1
1676be33864SEmmanuel Vadot #define PCIE_1_GDSC			2
1686be33864SEmmanuel Vadot #define USB30_GDSC			3
1696be33864SEmmanuel Vadot #define UFS_GDSC			4
1706be33864SEmmanuel Vadot 
1716be33864SEmmanuel Vadot /* Resets */
1726be33864SEmmanuel Vadot #define USB3_PHY_RESET			0
1736be33864SEmmanuel Vadot #define USB3PHY_PHY_RESET		1
1746be33864SEmmanuel Vadot #define PCIE_PHY_0_RESET		2
1756be33864SEmmanuel Vadot #define PCIE_PHY_1_RESET		3
1766be33864SEmmanuel Vadot #define QUSB2_PHY_RESET			4
177*8cc087a1SEmmanuel Vadot #define MSS_RESET				5
178c66ec88fSEmmanuel Vadot 
179c66ec88fSEmmanuel Vadot #endif
180