xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gcc-msm8953.h (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*354d7675SEmmanuel Vadot 
3*354d7675SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_MSM_GCC_8953_H
4*354d7675SEmmanuel Vadot #define _DT_BINDINGS_CLK_MSM_GCC_8953_H
5*354d7675SEmmanuel Vadot 
6*354d7675SEmmanuel Vadot /* Clocks */
7*354d7675SEmmanuel Vadot #define APC0_DROOP_DETECTOR_CLK_SRC		0
8*354d7675SEmmanuel Vadot #define APC1_DROOP_DETECTOR_CLK_SRC		1
9*354d7675SEmmanuel Vadot #define APSS_AHB_CLK_SRC			2
10*354d7675SEmmanuel Vadot #define BLSP1_QUP1_I2C_APPS_CLK_SRC		3
11*354d7675SEmmanuel Vadot #define BLSP1_QUP1_SPI_APPS_CLK_SRC		4
12*354d7675SEmmanuel Vadot #define BLSP1_QUP2_I2C_APPS_CLK_SRC		5
13*354d7675SEmmanuel Vadot #define BLSP1_QUP2_SPI_APPS_CLK_SRC		6
14*354d7675SEmmanuel Vadot #define BLSP1_QUP3_I2C_APPS_CLK_SRC		7
15*354d7675SEmmanuel Vadot #define BLSP1_QUP3_SPI_APPS_CLK_SRC		8
16*354d7675SEmmanuel Vadot #define BLSP1_QUP4_I2C_APPS_CLK_SRC		9
17*354d7675SEmmanuel Vadot #define BLSP1_QUP4_SPI_APPS_CLK_SRC		10
18*354d7675SEmmanuel Vadot #define BLSP1_UART1_APPS_CLK_SRC		11
19*354d7675SEmmanuel Vadot #define BLSP1_UART2_APPS_CLK_SRC		12
20*354d7675SEmmanuel Vadot #define BLSP2_QUP1_I2C_APPS_CLK_SRC		13
21*354d7675SEmmanuel Vadot #define BLSP2_QUP1_SPI_APPS_CLK_SRC		14
22*354d7675SEmmanuel Vadot #define BLSP2_QUP2_I2C_APPS_CLK_SRC		15
23*354d7675SEmmanuel Vadot #define BLSP2_QUP2_SPI_APPS_CLK_SRC		16
24*354d7675SEmmanuel Vadot #define BLSP2_QUP3_I2C_APPS_CLK_SRC		17
25*354d7675SEmmanuel Vadot #define BLSP2_QUP3_SPI_APPS_CLK_SRC		18
26*354d7675SEmmanuel Vadot #define BLSP2_QUP4_I2C_APPS_CLK_SRC		19
27*354d7675SEmmanuel Vadot #define BLSP2_QUP4_SPI_APPS_CLK_SRC		20
28*354d7675SEmmanuel Vadot #define BLSP2_UART1_APPS_CLK_SRC		21
29*354d7675SEmmanuel Vadot #define BLSP2_UART2_APPS_CLK_SRC		22
30*354d7675SEmmanuel Vadot #define BYTE0_CLK_SRC				23
31*354d7675SEmmanuel Vadot #define BYTE1_CLK_SRC				24
32*354d7675SEmmanuel Vadot #define CAMSS_GP0_CLK_SRC			25
33*354d7675SEmmanuel Vadot #define CAMSS_GP1_CLK_SRC			26
34*354d7675SEmmanuel Vadot #define CAMSS_TOP_AHB_CLK_SRC			27
35*354d7675SEmmanuel Vadot #define CCI_CLK_SRC				28
36*354d7675SEmmanuel Vadot #define CPP_CLK_SRC				29
37*354d7675SEmmanuel Vadot #define CRYPTO_CLK_SRC				30
38*354d7675SEmmanuel Vadot #define CSI0PHYTIMER_CLK_SRC			31
39*354d7675SEmmanuel Vadot #define CSI0P_CLK_SRC				32
40*354d7675SEmmanuel Vadot #define CSI0_CLK_SRC				33
41*354d7675SEmmanuel Vadot #define CSI1PHYTIMER_CLK_SRC			34
42*354d7675SEmmanuel Vadot #define CSI1P_CLK_SRC				35
43*354d7675SEmmanuel Vadot #define CSI1_CLK_SRC				36
44*354d7675SEmmanuel Vadot #define CSI2PHYTIMER_CLK_SRC			37
45*354d7675SEmmanuel Vadot #define CSI2P_CLK_SRC				38
46*354d7675SEmmanuel Vadot #define CSI2_CLK_SRC				39
47*354d7675SEmmanuel Vadot #define ESC0_CLK_SRC				40
48*354d7675SEmmanuel Vadot #define ESC1_CLK_SRC				41
49*354d7675SEmmanuel Vadot #define GCC_APC0_DROOP_DETECTOR_GPLL0_CLK	42
50*354d7675SEmmanuel Vadot #define GCC_APC1_DROOP_DETECTOR_GPLL0_CLK	43
51*354d7675SEmmanuel Vadot #define GCC_APSS_AHB_CLK			44
52*354d7675SEmmanuel Vadot #define GCC_APSS_AXI_CLK			45
53*354d7675SEmmanuel Vadot #define GCC_APSS_TCU_ASYNC_CLK			46
54*354d7675SEmmanuel Vadot #define GCC_BIMC_GFX_CLK			47
55*354d7675SEmmanuel Vadot #define GCC_BIMC_GPU_CLK			48
56*354d7675SEmmanuel Vadot #define GCC_BLSP1_AHB_CLK			49
57*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP1_I2C_APPS_CLK		50
58*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP1_SPI_APPS_CLK		51
59*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP2_I2C_APPS_CLK		52
60*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP2_SPI_APPS_CLK		53
61*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP3_I2C_APPS_CLK		54
62*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP3_SPI_APPS_CLK		55
63*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP4_I2C_APPS_CLK		56
64*354d7675SEmmanuel Vadot #define GCC_BLSP1_QUP4_SPI_APPS_CLK		57
65*354d7675SEmmanuel Vadot #define GCC_BLSP1_UART1_APPS_CLK		58
66*354d7675SEmmanuel Vadot #define GCC_BLSP1_UART2_APPS_CLK		59
67*354d7675SEmmanuel Vadot #define GCC_BLSP2_AHB_CLK			60
68*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP1_I2C_APPS_CLK		61
69*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP1_SPI_APPS_CLK		62
70*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP2_I2C_APPS_CLK		63
71*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP2_SPI_APPS_CLK		64
72*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP3_I2C_APPS_CLK		65
73*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP3_SPI_APPS_CLK		66
74*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP4_I2C_APPS_CLK		67
75*354d7675SEmmanuel Vadot #define GCC_BLSP2_QUP4_SPI_APPS_CLK		68
76*354d7675SEmmanuel Vadot #define GCC_BLSP2_UART1_APPS_CLK		69
77*354d7675SEmmanuel Vadot #define GCC_BLSP2_UART2_APPS_CLK		70
78*354d7675SEmmanuel Vadot #define GCC_BOOT_ROM_AHB_CLK			71
79*354d7675SEmmanuel Vadot #define GCC_CAMSS_AHB_CLK			72
80*354d7675SEmmanuel Vadot #define GCC_CAMSS_CCI_AHB_CLK			73
81*354d7675SEmmanuel Vadot #define GCC_CAMSS_CCI_CLK			74
82*354d7675SEmmanuel Vadot #define GCC_CAMSS_CPP_AHB_CLK			75
83*354d7675SEmmanuel Vadot #define GCC_CAMSS_CPP_AXI_CLK			76
84*354d7675SEmmanuel Vadot #define GCC_CAMSS_CPP_CLK			77
85*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0PHYTIMER_CLK		78
86*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0PHY_CLK			79
87*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0PIX_CLK			80
88*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0RDI_CLK			81
89*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0_AHB_CLK			82
90*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0_CLK			83
91*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI0_CSIPHY_3P_CLK		84
92*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1PHYTIMER_CLK		85
93*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1PHY_CLK			86
94*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1PIX_CLK			87
95*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1RDI_CLK			88
96*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1_AHB_CLK			89
97*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1_CLK			90
98*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI1_CSIPHY_3P_CLK		91
99*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2PHYTIMER_CLK		92
100*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2PHY_CLK			93
101*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2PIX_CLK			94
102*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2RDI_CLK			95
103*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2_AHB_CLK			96
104*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2_CLK			97
105*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI2_CSIPHY_3P_CLK		98
106*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI_VFE0_CLK			99
107*354d7675SEmmanuel Vadot #define GCC_CAMSS_CSI_VFE1_CLK			100
108*354d7675SEmmanuel Vadot #define GCC_CAMSS_GP0_CLK			101
109*354d7675SEmmanuel Vadot #define GCC_CAMSS_GP1_CLK			102
110*354d7675SEmmanuel Vadot #define GCC_CAMSS_ISPIF_AHB_CLK			103
111*354d7675SEmmanuel Vadot #define GCC_CAMSS_JPEG0_CLK			104
112*354d7675SEmmanuel Vadot #define GCC_CAMSS_JPEG_AHB_CLK			105
113*354d7675SEmmanuel Vadot #define GCC_CAMSS_JPEG_AXI_CLK			106
114*354d7675SEmmanuel Vadot #define GCC_CAMSS_MCLK0_CLK			107
115*354d7675SEmmanuel Vadot #define GCC_CAMSS_MCLK1_CLK			108
116*354d7675SEmmanuel Vadot #define GCC_CAMSS_MCLK2_CLK			109
117*354d7675SEmmanuel Vadot #define GCC_CAMSS_MCLK3_CLK			110
118*354d7675SEmmanuel Vadot #define GCC_CAMSS_MICRO_AHB_CLK			111
119*354d7675SEmmanuel Vadot #define GCC_CAMSS_TOP_AHB_CLK			112
120*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE0_AHB_CLK			113
121*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE0_AXI_CLK			114
122*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE0_CLK			115
123*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE1_AHB_CLK			116
124*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE1_AXI_CLK			117
125*354d7675SEmmanuel Vadot #define GCC_CAMSS_VFE1_CLK			118
126*354d7675SEmmanuel Vadot #define GCC_CPP_TBU_CLK				119
127*354d7675SEmmanuel Vadot #define GCC_CRYPTO_AHB_CLK			120
128*354d7675SEmmanuel Vadot #define GCC_CRYPTO_AXI_CLK			121
129*354d7675SEmmanuel Vadot #define GCC_CRYPTO_CLK				122
130*354d7675SEmmanuel Vadot #define GCC_DCC_CLK				123
131*354d7675SEmmanuel Vadot #define GCC_GP1_CLK				124
132*354d7675SEmmanuel Vadot #define GCC_GP2_CLK				125
133*354d7675SEmmanuel Vadot #define GCC_GP3_CLK				126
134*354d7675SEmmanuel Vadot #define GCC_JPEG_TBU_CLK			127
135*354d7675SEmmanuel Vadot #define GCC_MDP_TBU_CLK				128
136*354d7675SEmmanuel Vadot #define GCC_MDSS_AHB_CLK			129
137*354d7675SEmmanuel Vadot #define GCC_MDSS_AXI_CLK			130
138*354d7675SEmmanuel Vadot #define GCC_MDSS_BYTE0_CLK			131
139*354d7675SEmmanuel Vadot #define GCC_MDSS_BYTE1_CLK			132
140*354d7675SEmmanuel Vadot #define GCC_MDSS_ESC0_CLK			133
141*354d7675SEmmanuel Vadot #define GCC_MDSS_ESC1_CLK			134
142*354d7675SEmmanuel Vadot #define GCC_MDSS_MDP_CLK			135
143*354d7675SEmmanuel Vadot #define GCC_MDSS_PCLK0_CLK			136
144*354d7675SEmmanuel Vadot #define GCC_MDSS_PCLK1_CLK			137
145*354d7675SEmmanuel Vadot #define GCC_MDSS_VSYNC_CLK			138
146*354d7675SEmmanuel Vadot #define GCC_MSS_CFG_AHB_CLK			139
147*354d7675SEmmanuel Vadot #define GCC_MSS_Q6_BIMC_AXI_CLK			140
148*354d7675SEmmanuel Vadot #define GCC_OXILI_AHB_CLK			141
149*354d7675SEmmanuel Vadot #define GCC_OXILI_AON_CLK			142
150*354d7675SEmmanuel Vadot #define GCC_OXILI_GFX3D_CLK			143
151*354d7675SEmmanuel Vadot #define GCC_OXILI_TIMER_CLK			144
152*354d7675SEmmanuel Vadot #define GCC_PCNOC_USB3_AXI_CLK			145
153*354d7675SEmmanuel Vadot #define GCC_PDM2_CLK				146
154*354d7675SEmmanuel Vadot #define GCC_PDM_AHB_CLK				147
155*354d7675SEmmanuel Vadot #define GCC_PRNG_AHB_CLK			148
156*354d7675SEmmanuel Vadot #define GCC_QDSS_DAP_CLK			149
157*354d7675SEmmanuel Vadot #define GCC_QUSB_REF_CLK			150
158*354d7675SEmmanuel Vadot #define GCC_RBCPR_GFX_CLK			151
159*354d7675SEmmanuel Vadot #define GCC_SDCC1_AHB_CLK			152
160*354d7675SEmmanuel Vadot #define GCC_SDCC1_APPS_CLK			153
161*354d7675SEmmanuel Vadot #define GCC_SDCC1_ICE_CORE_CLK			154
162*354d7675SEmmanuel Vadot #define GCC_SDCC2_AHB_CLK			155
163*354d7675SEmmanuel Vadot #define GCC_SDCC2_APPS_CLK			156
164*354d7675SEmmanuel Vadot #define GCC_SMMU_CFG_CLK			157
165*354d7675SEmmanuel Vadot #define GCC_USB30_MASTER_CLK			158
166*354d7675SEmmanuel Vadot #define GCC_USB30_MOCK_UTMI_CLK			159
167*354d7675SEmmanuel Vadot #define GCC_USB30_SLEEP_CLK			160
168*354d7675SEmmanuel Vadot #define GCC_USB3_AUX_CLK			161
169*354d7675SEmmanuel Vadot #define GCC_USB3_PIPE_CLK			162
170*354d7675SEmmanuel Vadot #define GCC_USB_PHY_CFG_AHB_CLK			163
171*354d7675SEmmanuel Vadot #define GCC_USB_SS_REF_CLK			164
172*354d7675SEmmanuel Vadot #define GCC_VENUS0_AHB_CLK			165
173*354d7675SEmmanuel Vadot #define GCC_VENUS0_AXI_CLK			166
174*354d7675SEmmanuel Vadot #define GCC_VENUS0_CORE0_VCODEC0_CLK		167
175*354d7675SEmmanuel Vadot #define GCC_VENUS0_VCODEC0_CLK			168
176*354d7675SEmmanuel Vadot #define GCC_VENUS_TBU_CLK			169
177*354d7675SEmmanuel Vadot #define GCC_VFE1_TBU_CLK			170
178*354d7675SEmmanuel Vadot #define GCC_VFE_TBU_CLK				171
179*354d7675SEmmanuel Vadot #define GFX3D_CLK_SRC				172
180*354d7675SEmmanuel Vadot #define GP1_CLK_SRC				173
181*354d7675SEmmanuel Vadot #define GP2_CLK_SRC				174
182*354d7675SEmmanuel Vadot #define GP3_CLK_SRC				175
183*354d7675SEmmanuel Vadot #define GPLL0					176
184*354d7675SEmmanuel Vadot #define GPLL0_EARLY				177
185*354d7675SEmmanuel Vadot #define GPLL2					178
186*354d7675SEmmanuel Vadot #define GPLL2_EARLY				179
187*354d7675SEmmanuel Vadot #define GPLL3					180
188*354d7675SEmmanuel Vadot #define GPLL3_EARLY				181
189*354d7675SEmmanuel Vadot #define GPLL4					182
190*354d7675SEmmanuel Vadot #define GPLL4_EARLY				183
191*354d7675SEmmanuel Vadot #define GPLL6					184
192*354d7675SEmmanuel Vadot #define GPLL6_EARLY				185
193*354d7675SEmmanuel Vadot #define JPEG0_CLK_SRC				186
194*354d7675SEmmanuel Vadot #define MCLK0_CLK_SRC				187
195*354d7675SEmmanuel Vadot #define MCLK1_CLK_SRC				188
196*354d7675SEmmanuel Vadot #define MCLK2_CLK_SRC				189
197*354d7675SEmmanuel Vadot #define MCLK3_CLK_SRC				190
198*354d7675SEmmanuel Vadot #define MDP_CLK_SRC				191
199*354d7675SEmmanuel Vadot #define PCLK0_CLK_SRC				192
200*354d7675SEmmanuel Vadot #define PCLK1_CLK_SRC				193
201*354d7675SEmmanuel Vadot #define PDM2_CLK_SRC				194
202*354d7675SEmmanuel Vadot #define RBCPR_GFX_CLK_SRC			195
203*354d7675SEmmanuel Vadot #define SDCC1_APPS_CLK_SRC			196
204*354d7675SEmmanuel Vadot #define SDCC1_ICE_CORE_CLK_SRC			197
205*354d7675SEmmanuel Vadot #define SDCC2_APPS_CLK_SRC			198
206*354d7675SEmmanuel Vadot #define USB30_MASTER_CLK_SRC			199
207*354d7675SEmmanuel Vadot #define USB30_MOCK_UTMI_CLK_SRC			200
208*354d7675SEmmanuel Vadot #define USB3_AUX_CLK_SRC			201
209*354d7675SEmmanuel Vadot #define VCODEC0_CLK_SRC				202
210*354d7675SEmmanuel Vadot #define VFE0_CLK_SRC				203
211*354d7675SEmmanuel Vadot #define VFE1_CLK_SRC				204
212*354d7675SEmmanuel Vadot #define VSYNC_CLK_SRC				205
213*354d7675SEmmanuel Vadot 
214*354d7675SEmmanuel Vadot /* GCC block resets */
215*354d7675SEmmanuel Vadot #define GCC_CAMSS_MICRO_BCR			0
216*354d7675SEmmanuel Vadot #define GCC_MSS_BCR				1
217*354d7675SEmmanuel Vadot #define GCC_QUSB2_PHY_BCR			2
218*354d7675SEmmanuel Vadot #define GCC_USB3PHY_PHY_BCR			3
219*354d7675SEmmanuel Vadot #define GCC_USB3_PHY_BCR			4
220*354d7675SEmmanuel Vadot #define GCC_USB_30_BCR				5
221*354d7675SEmmanuel Vadot 
222*354d7675SEmmanuel Vadot /* GDSCs */
223*354d7675SEmmanuel Vadot #define CPP_GDSC				0
224*354d7675SEmmanuel Vadot #define JPEG_GDSC				1
225*354d7675SEmmanuel Vadot #define MDSS_GDSC				2
226*354d7675SEmmanuel Vadot #define OXILI_CX_GDSC				3
227*354d7675SEmmanuel Vadot #define OXILI_GX_GDSC				4
228*354d7675SEmmanuel Vadot #define USB30_GDSC				5
229*354d7675SEmmanuel Vadot #define VENUS_CORE0_GDSC			6
230*354d7675SEmmanuel Vadot #define VENUS_GDSC				7
231*354d7675SEmmanuel Vadot #define VFE0_GDSC				8
232*354d7675SEmmanuel Vadot #define VFE1_GDSC				9
233*354d7675SEmmanuel Vadot 
234*354d7675SEmmanuel Vadot #endif
235