xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gcc-msm8939.h (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */
2c66ec88fSEmmanuel Vadot /*
3c66ec88fSEmmanuel Vadot  * Copyright 2020 Linaro Limited
4c66ec88fSEmmanuel Vadot  */
5c66ec88fSEmmanuel Vadot 
6c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_MSM_GCC_8939_H
7c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_MSM_GCC_8939_H
8c66ec88fSEmmanuel Vadot 
9c66ec88fSEmmanuel Vadot #define GPLL0					0
10c66ec88fSEmmanuel Vadot #define GPLL0_VOTE				1
11c66ec88fSEmmanuel Vadot #define BIMC_PLL				2
12c66ec88fSEmmanuel Vadot #define BIMC_PLL_VOTE				3
13c66ec88fSEmmanuel Vadot #define GPLL1					4
14c66ec88fSEmmanuel Vadot #define GPLL1_VOTE				5
15c66ec88fSEmmanuel Vadot #define GPLL2					6
16c66ec88fSEmmanuel Vadot #define GPLL2_VOTE				7
17c66ec88fSEmmanuel Vadot #define PCNOC_BFDCD_CLK_SRC			8
18c66ec88fSEmmanuel Vadot #define SYSTEM_NOC_BFDCD_CLK_SRC		9
19c66ec88fSEmmanuel Vadot #define CAMSS_AHB_CLK_SRC			10
20c66ec88fSEmmanuel Vadot #define APSS_AHB_CLK_SRC			11
21c66ec88fSEmmanuel Vadot #define CSI0_CLK_SRC				12
22c66ec88fSEmmanuel Vadot #define CSI1_CLK_SRC				13
23c66ec88fSEmmanuel Vadot #define GFX3D_CLK_SRC				14
24c66ec88fSEmmanuel Vadot #define VFE0_CLK_SRC				15
25c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_I2C_APPS_CLK_SRC		16
26c66ec88fSEmmanuel Vadot #define BLSP1_QUP1_SPI_APPS_CLK_SRC		17
27c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_I2C_APPS_CLK_SRC		18
28c66ec88fSEmmanuel Vadot #define BLSP1_QUP2_SPI_APPS_CLK_SRC		19
29c66ec88fSEmmanuel Vadot #define BLSP1_QUP3_I2C_APPS_CLK_SRC		20
30c66ec88fSEmmanuel Vadot #define BLSP1_QUP3_SPI_APPS_CLK_SRC		21
31c66ec88fSEmmanuel Vadot #define BLSP1_QUP4_I2C_APPS_CLK_SRC		22
32c66ec88fSEmmanuel Vadot #define BLSP1_QUP4_SPI_APPS_CLK_SRC		23
33c66ec88fSEmmanuel Vadot #define BLSP1_QUP5_I2C_APPS_CLK_SRC		24
34c66ec88fSEmmanuel Vadot #define BLSP1_QUP5_SPI_APPS_CLK_SRC		25
35c66ec88fSEmmanuel Vadot #define BLSP1_QUP6_I2C_APPS_CLK_SRC		26
36c66ec88fSEmmanuel Vadot #define BLSP1_QUP6_SPI_APPS_CLK_SRC		27
37c66ec88fSEmmanuel Vadot #define BLSP1_UART1_APPS_CLK_SRC		28
38c66ec88fSEmmanuel Vadot #define BLSP1_UART2_APPS_CLK_SRC		29
39c66ec88fSEmmanuel Vadot #define CCI_CLK_SRC				30
40c66ec88fSEmmanuel Vadot #define CAMSS_GP0_CLK_SRC			31
41c66ec88fSEmmanuel Vadot #define CAMSS_GP1_CLK_SRC			32
42c66ec88fSEmmanuel Vadot #define JPEG0_CLK_SRC				33
43c66ec88fSEmmanuel Vadot #define MCLK0_CLK_SRC				34
44c66ec88fSEmmanuel Vadot #define MCLK1_CLK_SRC				35
45c66ec88fSEmmanuel Vadot #define CSI0PHYTIMER_CLK_SRC			36
46c66ec88fSEmmanuel Vadot #define CSI1PHYTIMER_CLK_SRC			37
47c66ec88fSEmmanuel Vadot #define CPP_CLK_SRC				38
48c66ec88fSEmmanuel Vadot #define CRYPTO_CLK_SRC				39
49c66ec88fSEmmanuel Vadot #define GP1_CLK_SRC				40
50c66ec88fSEmmanuel Vadot #define GP2_CLK_SRC				41
51c66ec88fSEmmanuel Vadot #define GP3_CLK_SRC				42
52c66ec88fSEmmanuel Vadot #define BYTE0_CLK_SRC				43
53c66ec88fSEmmanuel Vadot #define ESC0_CLK_SRC				44
54c66ec88fSEmmanuel Vadot #define MDP_CLK_SRC				45
55c66ec88fSEmmanuel Vadot #define PCLK0_CLK_SRC				46
56c66ec88fSEmmanuel Vadot #define VSYNC_CLK_SRC				47
57c66ec88fSEmmanuel Vadot #define PDM2_CLK_SRC				48
58c66ec88fSEmmanuel Vadot #define SDCC1_APPS_CLK_SRC			49
59c66ec88fSEmmanuel Vadot #define SDCC2_APPS_CLK_SRC			50
60c66ec88fSEmmanuel Vadot #define APSS_TCU_CLK_SRC			51
61c66ec88fSEmmanuel Vadot #define USB_HS_SYSTEM_CLK_SRC			52
62c66ec88fSEmmanuel Vadot #define VCODEC0_CLK_SRC				53
63c66ec88fSEmmanuel Vadot #define GCC_BLSP1_AHB_CLK			54
64c66ec88fSEmmanuel Vadot #define GCC_BLSP1_SLEEP_CLK			55
65c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK		56
66c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK		57
67c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK		58
68c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK		59
69c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK		60
70c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK		61
71c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK		62
72c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK		63
73c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP5_I2C_APPS_CLK		64
74c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP5_SPI_APPS_CLK		65
75c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP6_I2C_APPS_CLK		66
76c66ec88fSEmmanuel Vadot #define GCC_BLSP1_QUP6_SPI_APPS_CLK		67
77c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK		68
78c66ec88fSEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK		69
79c66ec88fSEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK			70
80c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CCI_AHB_CLK			71
81c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CCI_CLK			72
82c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0_AHB_CLK			73
83c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0_CLK			74
84c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0PHY_CLK			75
85c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0PIX_CLK			76
86c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0RDI_CLK			77
87c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1_AHB_CLK			78
88c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1_CLK			79
89c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1PHY_CLK			80
90c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1PIX_CLK			81
91c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1RDI_CLK			82
92c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI_VFE0_CLK			83
93c66ec88fSEmmanuel Vadot #define GCC_CAMSS_GP0_CLK			84
94c66ec88fSEmmanuel Vadot #define GCC_CAMSS_GP1_CLK			85
95c66ec88fSEmmanuel Vadot #define GCC_CAMSS_ISPIF_AHB_CLK			86
96c66ec88fSEmmanuel Vadot #define GCC_CAMSS_JPEG0_CLK			87
97c66ec88fSEmmanuel Vadot #define GCC_CAMSS_JPEG_AHB_CLK			88
98c66ec88fSEmmanuel Vadot #define GCC_CAMSS_JPEG_AXI_CLK			89
99c66ec88fSEmmanuel Vadot #define GCC_CAMSS_MCLK0_CLK			90
100c66ec88fSEmmanuel Vadot #define GCC_CAMSS_MCLK1_CLK			91
101c66ec88fSEmmanuel Vadot #define GCC_CAMSS_MICRO_AHB_CLK			92
102c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI0PHYTIMER_CLK		93
103c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CSI1PHYTIMER_CLK		94
104c66ec88fSEmmanuel Vadot #define GCC_CAMSS_AHB_CLK			95
105c66ec88fSEmmanuel Vadot #define GCC_CAMSS_TOP_AHB_CLK			96
106c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CPP_AHB_CLK			97
107c66ec88fSEmmanuel Vadot #define GCC_CAMSS_CPP_CLK			98
108c66ec88fSEmmanuel Vadot #define GCC_CAMSS_VFE0_CLK			99
109c66ec88fSEmmanuel Vadot #define GCC_CAMSS_VFE_AHB_CLK			100
110c66ec88fSEmmanuel Vadot #define GCC_CAMSS_VFE_AXI_CLK			101
111c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_AHB_CLK			102
112c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_AXI_CLK			103
113c66ec88fSEmmanuel Vadot #define GCC_CRYPTO_CLK				104
114c66ec88fSEmmanuel Vadot #define GCC_OXILI_GMEM_CLK			105
115c66ec88fSEmmanuel Vadot #define GCC_GP1_CLK				106
116c66ec88fSEmmanuel Vadot #define GCC_GP2_CLK				107
117c66ec88fSEmmanuel Vadot #define GCC_GP3_CLK				108
118c66ec88fSEmmanuel Vadot #define GCC_MDSS_AHB_CLK			109
119c66ec88fSEmmanuel Vadot #define GCC_MDSS_AXI_CLK			110
120c66ec88fSEmmanuel Vadot #define GCC_MDSS_BYTE0_CLK			111
121c66ec88fSEmmanuel Vadot #define GCC_MDSS_ESC0_CLK			112
122c66ec88fSEmmanuel Vadot #define GCC_MDSS_MDP_CLK			113
123c66ec88fSEmmanuel Vadot #define GCC_MDSS_PCLK0_CLK			114
124c66ec88fSEmmanuel Vadot #define GCC_MDSS_VSYNC_CLK			115
125c66ec88fSEmmanuel Vadot #define GCC_MSS_CFG_AHB_CLK			116
126c66ec88fSEmmanuel Vadot #define GCC_OXILI_AHB_CLK			117
127c66ec88fSEmmanuel Vadot #define GCC_OXILI_GFX3D_CLK			118
128c66ec88fSEmmanuel Vadot #define GCC_PDM2_CLK				119
129c66ec88fSEmmanuel Vadot #define GCC_PDM_AHB_CLK				120
130c66ec88fSEmmanuel Vadot #define GCC_PRNG_AHB_CLK			121
131c66ec88fSEmmanuel Vadot #define GCC_SDCC1_AHB_CLK			122
132c66ec88fSEmmanuel Vadot #define GCC_SDCC1_APPS_CLK			123
133c66ec88fSEmmanuel Vadot #define GCC_SDCC2_AHB_CLK			124
134c66ec88fSEmmanuel Vadot #define GCC_SDCC2_APPS_CLK			125
135c66ec88fSEmmanuel Vadot #define GCC_GTCU_AHB_CLK			126
136c66ec88fSEmmanuel Vadot #define GCC_JPEG_TBU_CLK			127
137c66ec88fSEmmanuel Vadot #define GCC_MDP_TBU_CLK				128
138c66ec88fSEmmanuel Vadot #define GCC_SMMU_CFG_CLK			129
139c66ec88fSEmmanuel Vadot #define GCC_VENUS_TBU_CLK			130
140c66ec88fSEmmanuel Vadot #define GCC_VFE_TBU_CLK				131
141c66ec88fSEmmanuel Vadot #define GCC_USB2A_PHY_SLEEP_CLK			132
142c66ec88fSEmmanuel Vadot #define GCC_USB_HS_AHB_CLK			133
143c66ec88fSEmmanuel Vadot #define GCC_USB_HS_SYSTEM_CLK			134
144c66ec88fSEmmanuel Vadot #define GCC_VENUS0_AHB_CLK			135
145c66ec88fSEmmanuel Vadot #define GCC_VENUS0_AXI_CLK			136
146c66ec88fSEmmanuel Vadot #define GCC_VENUS0_VCODEC0_CLK			137
147c66ec88fSEmmanuel Vadot #define BIMC_DDR_CLK_SRC			138
148c66ec88fSEmmanuel Vadot #define GCC_APSS_TCU_CLK			139
149c66ec88fSEmmanuel Vadot #define GCC_GFX_TCU_CLK				140
150c66ec88fSEmmanuel Vadot #define BIMC_GPU_CLK_SRC			141
151c66ec88fSEmmanuel Vadot #define GCC_BIMC_GFX_CLK			142
152c66ec88fSEmmanuel Vadot #define GCC_BIMC_GPU_CLK			143
153c66ec88fSEmmanuel Vadot #define ULTAUDIO_LPAIF_PRI_I2S_CLK_SRC		144
154c66ec88fSEmmanuel Vadot #define ULTAUDIO_LPAIF_SEC_I2S_CLK_SRC		145
155c66ec88fSEmmanuel Vadot #define ULTAUDIO_LPAIF_AUX_I2S_CLK_SRC		146
156c66ec88fSEmmanuel Vadot #define ULTAUDIO_XO_CLK_SRC			147
157c66ec88fSEmmanuel Vadot #define ULTAUDIO_AHBFABRIC_CLK_SRC		148
158c66ec88fSEmmanuel Vadot #define CODEC_DIGCODEC_CLK_SRC			149
159c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_PCNOC_MPORT_CLK		150
160c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_PCNOC_SWAY_CLK		151
161c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_AVSYNC_XO_CLK		152
162c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_STC_XO_CLK			153
163c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_CLK	154
164c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_AHBFABRIC_IXFABRIC_LPM_CLK	155
165c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_LPAIF_PRI_I2S_CLK		156
166c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_LPAIF_SEC_I2S_CLK		157
167c66ec88fSEmmanuel Vadot #define GCC_ULTAUDIO_LPAIF_AUX_I2S_CLK		158
168c66ec88fSEmmanuel Vadot #define GCC_CODEC_DIGCODEC_CLK			159
169c66ec88fSEmmanuel Vadot #define GCC_MSS_Q6_BIMC_AXI_CLK			160
170c66ec88fSEmmanuel Vadot #define GPLL3					161
171c66ec88fSEmmanuel Vadot #define GPLL3_VOTE				162
172c66ec88fSEmmanuel Vadot #define GPLL4					163
173c66ec88fSEmmanuel Vadot #define GPLL4_VOTE				164
174c66ec88fSEmmanuel Vadot #define GPLL5					165
175c66ec88fSEmmanuel Vadot #define GPLL5_VOTE				166
176c66ec88fSEmmanuel Vadot #define GPLL6					167
177c66ec88fSEmmanuel Vadot #define GPLL6_VOTE				168
178c66ec88fSEmmanuel Vadot #define BYTE1_CLK_SRC				169
179c66ec88fSEmmanuel Vadot #define GCC_MDSS_BYTE1_CLK			170
180c66ec88fSEmmanuel Vadot #define ESC1_CLK_SRC				171
181c66ec88fSEmmanuel Vadot #define GCC_MDSS_ESC1_CLK			172
182c66ec88fSEmmanuel Vadot #define PCLK1_CLK_SRC				173
183c66ec88fSEmmanuel Vadot #define GCC_MDSS_PCLK1_CLK			174
184c66ec88fSEmmanuel Vadot #define GCC_GFX_TBU_CLK				175
185c66ec88fSEmmanuel Vadot #define GCC_CPP_TBU_CLK				176
186c66ec88fSEmmanuel Vadot #define GCC_MDP_RT_TBU_CLK			177
187c66ec88fSEmmanuel Vadot #define USB_FS_SYSTEM_CLK_SRC			178
188c66ec88fSEmmanuel Vadot #define USB_FS_IC_CLK_SRC			179
189c66ec88fSEmmanuel Vadot #define GCC_USB_FS_AHB_CLK			180
190c66ec88fSEmmanuel Vadot #define GCC_USB_FS_IC_CLK			181
191c66ec88fSEmmanuel Vadot #define GCC_USB_FS_SYSTEM_CLK			182
192c66ec88fSEmmanuel Vadot #define GCC_VENUS0_CORE0_VCODEC0_CLK		183
193c66ec88fSEmmanuel Vadot #define GCC_VENUS0_CORE1_VCODEC0_CLK		184
194c66ec88fSEmmanuel Vadot #define GCC_OXILI_TIMER_CLK			185
195b97ee269SEmmanuel Vadot #define SYSTEM_MM_NOC_BFDCD_CLK_SRC		186
196*8d13bc63SEmmanuel Vadot #define CSI2_CLK_SRC				187
197*8d13bc63SEmmanuel Vadot #define GCC_CAMSS_CSI2_AHB_CLK			188
198*8d13bc63SEmmanuel Vadot #define GCC_CAMSS_CSI2_CLK			189
199*8d13bc63SEmmanuel Vadot #define GCC_CAMSS_CSI2PHY_CLK			190
200*8d13bc63SEmmanuel Vadot #define GCC_CAMSS_CSI2PIX_CLK			191
201*8d13bc63SEmmanuel Vadot #define GCC_CAMSS_CSI2RDI_CLK			192
202c66ec88fSEmmanuel Vadot 
203c66ec88fSEmmanuel Vadot /* Indexes for GDSCs */
204c66ec88fSEmmanuel Vadot #define BIMC_GDSC				0
205c66ec88fSEmmanuel Vadot #define VENUS_GDSC				1
206c66ec88fSEmmanuel Vadot #define MDSS_GDSC				2
207c66ec88fSEmmanuel Vadot #define JPEG_GDSC				3
208c66ec88fSEmmanuel Vadot #define VFE_GDSC				4
209c66ec88fSEmmanuel Vadot #define OXILI_GDSC				5
210c66ec88fSEmmanuel Vadot #define VENUS_CORE0_GDSC			6
211c66ec88fSEmmanuel Vadot #define VENUS_CORE1_GDSC			7
212c66ec88fSEmmanuel Vadot 
213c66ec88fSEmmanuel Vadot #endif
214