xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/sprd,sc9860-clk.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*c66ec88fSEmmanuel Vadot //
3*c66ec88fSEmmanuel Vadot // Spreadtrum SC9860 platform clocks
4*c66ec88fSEmmanuel Vadot //
5*c66ec88fSEmmanuel Vadot // Copyright (C) 2017, Spreadtrum Communications Inc.
6*c66ec88fSEmmanuel Vadot 
7*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_SC9860_H_
8*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_SC9860_H_
9*c66ec88fSEmmanuel Vadot 
10*c66ec88fSEmmanuel Vadot #define	CLK_FAC_4M		0
11*c66ec88fSEmmanuel Vadot #define	CLK_FAC_2M		1
12*c66ec88fSEmmanuel Vadot #define	CLK_FAC_1M		2
13*c66ec88fSEmmanuel Vadot #define	CLK_FAC_250K		3
14*c66ec88fSEmmanuel Vadot #define	CLK_FAC_RPLL0_26M	4
15*c66ec88fSEmmanuel Vadot #define	CLK_FAC_RPLL1_26M	5
16*c66ec88fSEmmanuel Vadot #define	CLK_FAC_RCO25M		6
17*c66ec88fSEmmanuel Vadot #define	CLK_FAC_RCO4M		7
18*c66ec88fSEmmanuel Vadot #define	CLK_FAC_RCO2M		8
19*c66ec88fSEmmanuel Vadot #define	CLK_FAC_3K2		9
20*c66ec88fSEmmanuel Vadot #define	CLK_FAC_1K		10
21*c66ec88fSEmmanuel Vadot #define	CLK_MPLL0_GATE		11
22*c66ec88fSEmmanuel Vadot #define	CLK_MPLL1_GATE		12
23*c66ec88fSEmmanuel Vadot #define	CLK_DPLL0_GATE		13
24*c66ec88fSEmmanuel Vadot #define	CLK_DPLL1_GATE		14
25*c66ec88fSEmmanuel Vadot #define	CLK_LTEPLL0_GATE	15
26*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_GATE		16
27*c66ec88fSEmmanuel Vadot #define	CLK_LTEPLL1_GATE	17
28*c66ec88fSEmmanuel Vadot #define	CLK_RPLL0_GATE		18
29*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_GATE		19
30*c66ec88fSEmmanuel Vadot #define	CLK_CPPLL_GATE		20
31*c66ec88fSEmmanuel Vadot #define	CLK_GPLL_GATE		21
32*c66ec88fSEmmanuel Vadot #define CLK_PMU_GATE_NUM	(CLK_GPLL_GATE + 1)
33*c66ec88fSEmmanuel Vadot 
34*c66ec88fSEmmanuel Vadot #define	CLK_MPLL0		0
35*c66ec88fSEmmanuel Vadot #define	CLK_MPLL1		1
36*c66ec88fSEmmanuel Vadot #define	CLK_DPLL0		2
37*c66ec88fSEmmanuel Vadot #define	CLK_DPLL1		3
38*c66ec88fSEmmanuel Vadot #define	CLK_RPLL0		4
39*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1		5
40*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL		6
41*c66ec88fSEmmanuel Vadot #define	CLK_LTEPLL0		7
42*c66ec88fSEmmanuel Vadot #define	CLK_LTEPLL1		8
43*c66ec88fSEmmanuel Vadot #define	CLK_GPLL		9
44*c66ec88fSEmmanuel Vadot #define	CLK_CPPLL		10
45*c66ec88fSEmmanuel Vadot #define	CLK_GPLL_42M5		11
46*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_768M		12
47*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_384M		13
48*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_192M		14
49*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_96M		15
50*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_48M		16
51*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_24M		17
52*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_12M		18
53*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_512M		19
54*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_256M		20
55*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_128M		21
56*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_64M		22
57*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_307M2		23
58*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_153M6		24
59*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_76M8		25
60*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_51M2		26
61*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_38M4		27
62*c66ec88fSEmmanuel Vadot #define	CLK_TWPLL_19M2		28
63*c66ec88fSEmmanuel Vadot #define	CLK_L0_614M4		29
64*c66ec88fSEmmanuel Vadot #define	CLK_L0_409M6		30
65*c66ec88fSEmmanuel Vadot #define	CLK_L0_38M		31
66*c66ec88fSEmmanuel Vadot #define	CLK_L1_38M		32
67*c66ec88fSEmmanuel Vadot #define	CLK_RPLL0_192M		33
68*c66ec88fSEmmanuel Vadot #define	CLK_RPLL0_96M		34
69*c66ec88fSEmmanuel Vadot #define	CLK_RPLL0_48M		35
70*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_468M		36
71*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_192M		37
72*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_96M		38
73*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_64M		39
74*c66ec88fSEmmanuel Vadot #define	CLK_RPLL1_48M		40
75*c66ec88fSEmmanuel Vadot #define	CLK_DPLL0_50M		41
76*c66ec88fSEmmanuel Vadot #define	CLK_DPLL1_50M		42
77*c66ec88fSEmmanuel Vadot #define	CLK_CPPLL_50M		43
78*c66ec88fSEmmanuel Vadot #define	CLK_M0_39M		44
79*c66ec88fSEmmanuel Vadot #define	CLK_M1_63M		45
80*c66ec88fSEmmanuel Vadot #define CLK_PLL_NUM		(CLK_M1_63M + 1)
81*c66ec88fSEmmanuel Vadot 
82*c66ec88fSEmmanuel Vadot 
83*c66ec88fSEmmanuel Vadot #define	CLK_AP_APB		0
84*c66ec88fSEmmanuel Vadot #define	CLK_AP_USB3		1
85*c66ec88fSEmmanuel Vadot #define	CLK_UART0		2
86*c66ec88fSEmmanuel Vadot #define	CLK_UART1		3
87*c66ec88fSEmmanuel Vadot #define	CLK_UART2		4
88*c66ec88fSEmmanuel Vadot #define	CLK_UART3		5
89*c66ec88fSEmmanuel Vadot #define	CLK_UART4		6
90*c66ec88fSEmmanuel Vadot #define	CLK_I2C0		7
91*c66ec88fSEmmanuel Vadot #define	CLK_I2C1		8
92*c66ec88fSEmmanuel Vadot #define	CLK_I2C2		9
93*c66ec88fSEmmanuel Vadot #define	CLK_I2C3		10
94*c66ec88fSEmmanuel Vadot #define	CLK_I2C4		11
95*c66ec88fSEmmanuel Vadot #define	CLK_I2C5		12
96*c66ec88fSEmmanuel Vadot #define	CLK_SPI0		13
97*c66ec88fSEmmanuel Vadot #define	CLK_SPI1		14
98*c66ec88fSEmmanuel Vadot #define	CLK_SPI2		15
99*c66ec88fSEmmanuel Vadot #define	CLK_SPI3		16
100*c66ec88fSEmmanuel Vadot #define	CLK_IIS0		17
101*c66ec88fSEmmanuel Vadot #define	CLK_IIS1		18
102*c66ec88fSEmmanuel Vadot #define	CLK_IIS2		19
103*c66ec88fSEmmanuel Vadot #define	CLK_IIS3		20
104*c66ec88fSEmmanuel Vadot #define CLK_AP_CLK_NUM		(CLK_IIS3 + 1)
105*c66ec88fSEmmanuel Vadot 
106*c66ec88fSEmmanuel Vadot #define	CLK_AON_APB		0
107*c66ec88fSEmmanuel Vadot #define	CLK_AUX0		1
108*c66ec88fSEmmanuel Vadot #define	CLK_AUX1		2
109*c66ec88fSEmmanuel Vadot #define	CLK_AUX2		3
110*c66ec88fSEmmanuel Vadot #define	CLK_PROBE		4
111*c66ec88fSEmmanuel Vadot #define	CLK_SP_AHB		5
112*c66ec88fSEmmanuel Vadot #define	CLK_CCI			6
113*c66ec88fSEmmanuel Vadot #define	CLK_GIC			7
114*c66ec88fSEmmanuel Vadot #define	CLK_CSSYS		8
115*c66ec88fSEmmanuel Vadot #define	CLK_SDIO0_2X		9
116*c66ec88fSEmmanuel Vadot #define	CLK_SDIO1_2X		10
117*c66ec88fSEmmanuel Vadot #define	CLK_SDIO2_2X		11
118*c66ec88fSEmmanuel Vadot #define	CLK_EMMC_2X		12
119*c66ec88fSEmmanuel Vadot #define	CLK_SDIO0_1X		13
120*c66ec88fSEmmanuel Vadot #define	CLK_SDIO1_1X		14
121*c66ec88fSEmmanuel Vadot #define	CLK_SDIO2_1X		15
122*c66ec88fSEmmanuel Vadot #define	CLK_EMMC_1X		16
123*c66ec88fSEmmanuel Vadot #define	CLK_ADI			17
124*c66ec88fSEmmanuel Vadot #define	CLK_PWM0		18
125*c66ec88fSEmmanuel Vadot #define	CLK_PWM1		19
126*c66ec88fSEmmanuel Vadot #define	CLK_PWM2		20
127*c66ec88fSEmmanuel Vadot #define	CLK_PWM3		21
128*c66ec88fSEmmanuel Vadot #define	CLK_EFUSE		22
129*c66ec88fSEmmanuel Vadot #define	CLK_CM3_UART0		23
130*c66ec88fSEmmanuel Vadot #define	CLK_CM3_UART1		24
131*c66ec88fSEmmanuel Vadot #define	CLK_THM			25
132*c66ec88fSEmmanuel Vadot #define	CLK_CM3_I2C0		26
133*c66ec88fSEmmanuel Vadot #define	CLK_CM3_I2C1		27
134*c66ec88fSEmmanuel Vadot #define	CLK_CM4_SPI		28
135*c66ec88fSEmmanuel Vadot #define	CLK_AON_I2C		29
136*c66ec88fSEmmanuel Vadot #define	CLK_AVS			30
137*c66ec88fSEmmanuel Vadot #define	CLK_CA53_DAP		31
138*c66ec88fSEmmanuel Vadot #define	CLK_CA53_TS		32
139*c66ec88fSEmmanuel Vadot #define	CLK_DJTAG_TCK		33
140*c66ec88fSEmmanuel Vadot #define	CLK_PMU			34
141*c66ec88fSEmmanuel Vadot #define	CLK_PMU_26M		35
142*c66ec88fSEmmanuel Vadot #define	CLK_DEBOUNCE		36
143*c66ec88fSEmmanuel Vadot #define	CLK_OTG2_REF		37
144*c66ec88fSEmmanuel Vadot #define	CLK_USB3_REF		38
145*c66ec88fSEmmanuel Vadot #define	CLK_AP_AXI		39
146*c66ec88fSEmmanuel Vadot #define CLK_AON_PREDIV_NUM	(CLK_AP_AXI + 1)
147*c66ec88fSEmmanuel Vadot 
148*c66ec88fSEmmanuel Vadot #define	CLK_USB3_EB		0
149*c66ec88fSEmmanuel Vadot #define	CLK_USB3_SUSPEND_EB	1
150*c66ec88fSEmmanuel Vadot #define	CLK_USB3_REF_EB		2
151*c66ec88fSEmmanuel Vadot #define	CLK_DMA_EB		3
152*c66ec88fSEmmanuel Vadot #define	CLK_SDIO0_EB		4
153*c66ec88fSEmmanuel Vadot #define	CLK_SDIO1_EB		5
154*c66ec88fSEmmanuel Vadot #define	CLK_SDIO2_EB		6
155*c66ec88fSEmmanuel Vadot #define	CLK_EMMC_EB		7
156*c66ec88fSEmmanuel Vadot #define	CLK_ROM_EB		8
157*c66ec88fSEmmanuel Vadot #define	CLK_BUSMON_EB		9
158*c66ec88fSEmmanuel Vadot #define	CLK_CC63S_EB		10
159*c66ec88fSEmmanuel Vadot #define	CLK_CC63P_EB		11
160*c66ec88fSEmmanuel Vadot #define	CLK_CE0_EB		12
161*c66ec88fSEmmanuel Vadot #define	CLK_CE1_EB		13
162*c66ec88fSEmmanuel Vadot #define CLK_APAHB_GATE_NUM	(CLK_CE1_EB + 1)
163*c66ec88fSEmmanuel Vadot 
164*c66ec88fSEmmanuel Vadot #define	CLK_AVS_LIT_EB		0
165*c66ec88fSEmmanuel Vadot #define	CLK_AVS_BIG_EB		1
166*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC5_EB		2
167*c66ec88fSEmmanuel Vadot #define	CLK_GPIO_EB		3
168*c66ec88fSEmmanuel Vadot #define	CLK_PWM0_EB		4
169*c66ec88fSEmmanuel Vadot #define	CLK_PWM1_EB		5
170*c66ec88fSEmmanuel Vadot #define	CLK_PWM2_EB		6
171*c66ec88fSEmmanuel Vadot #define	CLK_PWM3_EB		7
172*c66ec88fSEmmanuel Vadot #define	CLK_KPD_EB		8
173*c66ec88fSEmmanuel Vadot #define	CLK_AON_SYS_EB		9
174*c66ec88fSEmmanuel Vadot #define	CLK_AP_SYS_EB		10
175*c66ec88fSEmmanuel Vadot #define	CLK_AON_TMR_EB		11
176*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR0_EB		12
177*c66ec88fSEmmanuel Vadot #define	CLK_EFUSE_EB		13
178*c66ec88fSEmmanuel Vadot #define	CLK_EIC_EB		14
179*c66ec88fSEmmanuel Vadot #define	CLK_PUB1_REG_EB		15
180*c66ec88fSEmmanuel Vadot #define	CLK_ADI_EB		16
181*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC0_EB		17
182*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC1_EB		18
183*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC2_EB		19
184*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC3_EB		20
185*c66ec88fSEmmanuel Vadot #define	CLK_AP_INTC4_EB		21
186*c66ec88fSEmmanuel Vadot #define	CLK_SPLK_EB		22
187*c66ec88fSEmmanuel Vadot #define	CLK_MSPI_EB		23
188*c66ec88fSEmmanuel Vadot #define	CLK_PUB0_REG_EB		24
189*c66ec88fSEmmanuel Vadot #define	CLK_PIN_EB		25
190*c66ec88fSEmmanuel Vadot #define	CLK_AON_CKG_EB		26
191*c66ec88fSEmmanuel Vadot #define	CLK_GPU_EB		27
192*c66ec88fSEmmanuel Vadot #define	CLK_APCPU_TS0_EB	28
193*c66ec88fSEmmanuel Vadot #define	CLK_APCPU_TS1_EB	29
194*c66ec88fSEmmanuel Vadot #define	CLK_DAP_EB		30
195*c66ec88fSEmmanuel Vadot #define	CLK_I2C_EB		31
196*c66ec88fSEmmanuel Vadot #define	CLK_PMU_EB		32
197*c66ec88fSEmmanuel Vadot #define	CLK_THM_EB		33
198*c66ec88fSEmmanuel Vadot #define	CLK_AUX0_EB		34
199*c66ec88fSEmmanuel Vadot #define	CLK_AUX1_EB		35
200*c66ec88fSEmmanuel Vadot #define	CLK_AUX2_EB		36
201*c66ec88fSEmmanuel Vadot #define	CLK_PROBE_EB		37
202*c66ec88fSEmmanuel Vadot #define	CLK_GPU0_AVS_EB		38
203*c66ec88fSEmmanuel Vadot #define	CLK_GPU1_AVS_EB		39
204*c66ec88fSEmmanuel Vadot #define	CLK_APCPU_WDG_EB	40
205*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR1_EB		41
206*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR2_EB		42
207*c66ec88fSEmmanuel Vadot #define	CLK_DISP_EMC_EB		43
208*c66ec88fSEmmanuel Vadot #define	CLK_ZIP_EMC_EB		44
209*c66ec88fSEmmanuel Vadot #define	CLK_GSP_EMC_EB		45
210*c66ec88fSEmmanuel Vadot #define	CLK_OSC_AON_EB		46
211*c66ec88fSEmmanuel Vadot #define	CLK_LVDS_TRX_EB		47
212*c66ec88fSEmmanuel Vadot #define	CLK_LVDS_TCXO_EB	48
213*c66ec88fSEmmanuel Vadot #define	CLK_MDAR_EB		49
214*c66ec88fSEmmanuel Vadot #define	CLK_RTC4M0_CAL_EB	50
215*c66ec88fSEmmanuel Vadot #define	CLK_RCT100M_CAL_EB	51
216*c66ec88fSEmmanuel Vadot #define	CLK_DJTAG_EB		52
217*c66ec88fSEmmanuel Vadot #define	CLK_MBOX_EB		53
218*c66ec88fSEmmanuel Vadot #define	CLK_AON_DMA_EB		54
219*c66ec88fSEmmanuel Vadot #define	CLK_DBG_EMC_EB		55
220*c66ec88fSEmmanuel Vadot #define	CLK_LVDS_PLL_DIV_EN	56
221*c66ec88fSEmmanuel Vadot #define	CLK_DEF_EB		57
222*c66ec88fSEmmanuel Vadot #define	CLK_AON_APB_RSV0	58
223*c66ec88fSEmmanuel Vadot #define	CLK_ORP_JTAG_EB		59
224*c66ec88fSEmmanuel Vadot #define	CLK_VSP_EB		60
225*c66ec88fSEmmanuel Vadot #define	CLK_CAM_EB		61
226*c66ec88fSEmmanuel Vadot #define	CLK_DISP_EB		62
227*c66ec88fSEmmanuel Vadot #define	CLK_DBG_AXI_IF_EB	63
228*c66ec88fSEmmanuel Vadot #define	CLK_SDIO0_2X_EN		64
229*c66ec88fSEmmanuel Vadot #define	CLK_SDIO1_2X_EN		65
230*c66ec88fSEmmanuel Vadot #define	CLK_SDIO2_2X_EN		66
231*c66ec88fSEmmanuel Vadot #define	CLK_EMMC_2X_EN		67
232*c66ec88fSEmmanuel Vadot #define	CLK_ARCH_RTC_EB		68
233*c66ec88fSEmmanuel Vadot #define	CLK_KPB_RTC_EB		69
234*c66ec88fSEmmanuel Vadot #define	CLK_AON_SYST_RTC_EB	70
235*c66ec88fSEmmanuel Vadot #define	CLK_AP_SYST_RTC_EB	71
236*c66ec88fSEmmanuel Vadot #define	CLK_AON_TMR_RTC_EB	72
237*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR0_RTC_EB	73
238*c66ec88fSEmmanuel Vadot #define	CLK_EIC_RTC_EB		74
239*c66ec88fSEmmanuel Vadot #define	CLK_EIC_RTCDV5_EB	75
240*c66ec88fSEmmanuel Vadot #define	CLK_AP_WDG_RTC_EB	76
241*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR1_RTC_EB	77
242*c66ec88fSEmmanuel Vadot #define	CLK_AP_TMR2_RTC_EB	78
243*c66ec88fSEmmanuel Vadot #define	CLK_DCXO_TMR_RTC_EB	79
244*c66ec88fSEmmanuel Vadot #define	CLK_BB_CAL_RTC_EB	80
245*c66ec88fSEmmanuel Vadot #define	CLK_AVS_BIG_RTC_EB	81
246*c66ec88fSEmmanuel Vadot #define	CLK_AVS_LIT_RTC_EB	82
247*c66ec88fSEmmanuel Vadot #define	CLK_AVS_GPU0_RTC_EB	83
248*c66ec88fSEmmanuel Vadot #define	CLK_AVS_GPU1_RTC_EB	84
249*c66ec88fSEmmanuel Vadot #define	CLK_GPU_TS_EB		85
250*c66ec88fSEmmanuel Vadot #define	CLK_RTCDV10_EB		86
251*c66ec88fSEmmanuel Vadot #define	CLK_AON_GATE_NUM	(CLK_RTCDV10_EB + 1)
252*c66ec88fSEmmanuel Vadot 
253*c66ec88fSEmmanuel Vadot #define	CLK_LIT_MCU		0
254*c66ec88fSEmmanuel Vadot #define	CLK_BIG_MCU		1
255*c66ec88fSEmmanuel Vadot #define CLK_AONSECURE_NUM	(CLK_BIG_MCU + 1)
256*c66ec88fSEmmanuel Vadot 
257*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_IIS0_EB	0
258*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_IIS1_EB	1
259*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_IIS2_EB	2
260*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_IIS3_EB	3
261*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_UART_EB	4
262*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_DMACP_EB	5
263*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_DMAAP_EB	6
264*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_ARC48K_EB	7
265*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_SRC44P1K_EB	8
266*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_MCDT_EB	9
267*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_VBCIFD_EB	10
268*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_VBC_EB		11
269*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_SPINLOCK_EB	12
270*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_ICU_EB		13
271*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_AP_ASHB_EB	14
272*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_CP_ASHB_EB	15
273*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_AUD_EB		16
274*c66ec88fSEmmanuel Vadot #define	CLK_AGCP_AUDIF_EB	17
275*c66ec88fSEmmanuel Vadot #define CLK_AGCP_GATE_NUM	(CLK_AGCP_AUDIF_EB + 1)
276*c66ec88fSEmmanuel Vadot 
277*c66ec88fSEmmanuel Vadot #define	CLK_GPU			0
278*c66ec88fSEmmanuel Vadot #define CLK_GPU_NUM		(CLK_GPU + 1)
279*c66ec88fSEmmanuel Vadot 
280*c66ec88fSEmmanuel Vadot #define	CLK_AHB_VSP		0
281*c66ec88fSEmmanuel Vadot #define	CLK_VSP			1
282*c66ec88fSEmmanuel Vadot #define	CLK_VSP_ENC		2
283*c66ec88fSEmmanuel Vadot #define	CLK_VPP			3
284*c66ec88fSEmmanuel Vadot #define	CLK_VSP_26M		4
285*c66ec88fSEmmanuel Vadot #define CLK_VSP_NUM		(CLK_VSP_26M + 1)
286*c66ec88fSEmmanuel Vadot 
287*c66ec88fSEmmanuel Vadot #define	CLK_VSP_DEC_EB		0
288*c66ec88fSEmmanuel Vadot #define	CLK_VSP_CKG_EB		1
289*c66ec88fSEmmanuel Vadot #define	CLK_VSP_MMU_EB		2
290*c66ec88fSEmmanuel Vadot #define	CLK_VSP_ENC_EB		3
291*c66ec88fSEmmanuel Vadot #define	CLK_VPP_EB		4
292*c66ec88fSEmmanuel Vadot #define	CLK_VSP_26M_EB		5
293*c66ec88fSEmmanuel Vadot #define	CLK_VSP_AXI_GATE	6
294*c66ec88fSEmmanuel Vadot #define	CLK_VSP_ENC_GATE	7
295*c66ec88fSEmmanuel Vadot #define	CLK_VPP_AXI_GATE	8
296*c66ec88fSEmmanuel Vadot #define	CLK_VSP_BM_GATE		9
297*c66ec88fSEmmanuel Vadot #define	CLK_VSP_ENC_BM_GATE	10
298*c66ec88fSEmmanuel Vadot #define	CLK_VPP_BM_GATE		11
299*c66ec88fSEmmanuel Vadot #define CLK_VSP_GATE_NUM	(CLK_VPP_BM_GATE + 1)
300*c66ec88fSEmmanuel Vadot 
301*c66ec88fSEmmanuel Vadot #define	CLK_AHB_CAM		0
302*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR0		1
303*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR1		2
304*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR2		3
305*c66ec88fSEmmanuel Vadot #define	CLK_MIPI_CSI0_EB	4
306*c66ec88fSEmmanuel Vadot #define	CLK_MIPI_CSI1_EB	5
307*c66ec88fSEmmanuel Vadot #define CLK_CAM_NUM		(CLK_MIPI_CSI1_EB + 1)
308*c66ec88fSEmmanuel Vadot 
309*c66ec88fSEmmanuel Vadot #define	CLK_DCAM0_EB		0
310*c66ec88fSEmmanuel Vadot #define	CLK_DCAM1_EB		1
311*c66ec88fSEmmanuel Vadot #define	CLK_ISP0_EB		2
312*c66ec88fSEmmanuel Vadot #define	CLK_CSI0_EB		3
313*c66ec88fSEmmanuel Vadot #define	CLK_CSI1_EB		4
314*c66ec88fSEmmanuel Vadot #define	CLK_JPG0_EB		5
315*c66ec88fSEmmanuel Vadot #define	CLK_JPG1_EB		6
316*c66ec88fSEmmanuel Vadot #define	CLK_CAM_CKG_EB		7
317*c66ec88fSEmmanuel Vadot #define	CLK_CAM_MMU_EB		8
318*c66ec88fSEmmanuel Vadot #define	CLK_ISP1_EB		9
319*c66ec88fSEmmanuel Vadot #define	CLK_CPP_EB		10
320*c66ec88fSEmmanuel Vadot #define	CLK_MMU_PF_EB		11
321*c66ec88fSEmmanuel Vadot #define	CLK_ISP2_EB		12
322*c66ec88fSEmmanuel Vadot #define	CLK_DCAM2ISP_IF_EB	13
323*c66ec88fSEmmanuel Vadot #define	CLK_ISP2DCAM_IF_EB	14
324*c66ec88fSEmmanuel Vadot #define	CLK_ISP_LCLK_EB		15
325*c66ec88fSEmmanuel Vadot #define	CLK_ISP_ICLK_EB		16
326*c66ec88fSEmmanuel Vadot #define	CLK_ISP_MCLK_EB		17
327*c66ec88fSEmmanuel Vadot #define	CLK_ISP_PCLK_EB		18
328*c66ec88fSEmmanuel Vadot #define	CLK_ISP_ISP2DCAM_EB	19
329*c66ec88fSEmmanuel Vadot #define	CLK_DCAM0_IF_EB		20
330*c66ec88fSEmmanuel Vadot #define	CLK_CLK26M_IF_EB	21
331*c66ec88fSEmmanuel Vadot #define	CLK_CPHY0_GATE		22
332*c66ec88fSEmmanuel Vadot #define	CLK_MIPI_CSI0_GATE	23
333*c66ec88fSEmmanuel Vadot #define	CLK_CPHY1_GATE		24
334*c66ec88fSEmmanuel Vadot #define	CLK_MIPI_CSI1		25
335*c66ec88fSEmmanuel Vadot #define	CLK_DCAM0_AXI_GATE	26
336*c66ec88fSEmmanuel Vadot #define	CLK_DCAM1_AXI_GATE	27
337*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR0_GATE	28
338*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR1_GATE	29
339*c66ec88fSEmmanuel Vadot #define	CLK_JPG0_AXI_GATE	30
340*c66ec88fSEmmanuel Vadot #define	CLK_GPG1_AXI_GATE	31
341*c66ec88fSEmmanuel Vadot #define	CLK_ISP0_AXI_GATE	32
342*c66ec88fSEmmanuel Vadot #define	CLK_ISP1_AXI_GATE	33
343*c66ec88fSEmmanuel Vadot #define	CLK_ISP2_AXI_GATE	34
344*c66ec88fSEmmanuel Vadot #define	CLK_CPP_AXI_GATE	35
345*c66ec88fSEmmanuel Vadot #define	CLK_D0_IF_AXI_GATE	36
346*c66ec88fSEmmanuel Vadot #define	CLK_D2I_IF_AXI_GATE	37
347*c66ec88fSEmmanuel Vadot #define	CLK_I2D_IF_AXI_GATE	38
348*c66ec88fSEmmanuel Vadot #define	CLK_SPARE_AXI_GATE	39
349*c66ec88fSEmmanuel Vadot #define	CLK_SENSOR2_GATE	40
350*c66ec88fSEmmanuel Vadot #define	CLK_D0IF_IN_D_EN	41
351*c66ec88fSEmmanuel Vadot #define	CLK_D1IF_IN_D_EN	42
352*c66ec88fSEmmanuel Vadot #define	CLK_D0IF_IN_D2I_EN	43
353*c66ec88fSEmmanuel Vadot #define	CLK_D1IF_IN_D2I_EN	44
354*c66ec88fSEmmanuel Vadot #define	CLK_IA_IN_D2I_EN	45
355*c66ec88fSEmmanuel Vadot #define	CLK_IB_IN_D2I_EN	46
356*c66ec88fSEmmanuel Vadot #define	CLK_IC_IN_D2I_EN	47
357*c66ec88fSEmmanuel Vadot #define	CLK_IA_IN_I_EN		48
358*c66ec88fSEmmanuel Vadot #define	CLK_IB_IN_I_EN		49
359*c66ec88fSEmmanuel Vadot #define	CLK_IC_IN_I_EN		50
360*c66ec88fSEmmanuel Vadot #define CLK_CAM_GATE_NUM	(CLK_IC_IN_I_EN + 1)
361*c66ec88fSEmmanuel Vadot 
362*c66ec88fSEmmanuel Vadot #define	CLK_AHB_DISP		0
363*c66ec88fSEmmanuel Vadot #define	CLK_DISPC0_DPI		1
364*c66ec88fSEmmanuel Vadot #define	CLK_DISPC1_DPI		2
365*c66ec88fSEmmanuel Vadot #define CLK_DISP_NUM		(CLK_DISPC1_DPI + 1)
366*c66ec88fSEmmanuel Vadot 
367*c66ec88fSEmmanuel Vadot #define	CLK_DISPC0_EB		0
368*c66ec88fSEmmanuel Vadot #define	CLK_DISPC1_EB		1
369*c66ec88fSEmmanuel Vadot #define	CLK_DISPC_MMU_EB	2
370*c66ec88fSEmmanuel Vadot #define	CLK_GSP0_EB		3
371*c66ec88fSEmmanuel Vadot #define	CLK_GSP1_EB		4
372*c66ec88fSEmmanuel Vadot #define	CLK_GSP0_MMU_EB		5
373*c66ec88fSEmmanuel Vadot #define	CLK_GSP1_MMU_EB		6
374*c66ec88fSEmmanuel Vadot #define	CLK_DSI0_EB		7
375*c66ec88fSEmmanuel Vadot #define	CLK_DSI1_EB		8
376*c66ec88fSEmmanuel Vadot #define	CLK_DISP_CKG_EB		9
377*c66ec88fSEmmanuel Vadot #define	CLK_DISP_GPU_EB		10
378*c66ec88fSEmmanuel Vadot #define	CLK_GPU_MTX_EB		11
379*c66ec88fSEmmanuel Vadot #define	CLK_GSP_MTX_EB		12
380*c66ec88fSEmmanuel Vadot #define	CLK_TMC_MTX_EB		13
381*c66ec88fSEmmanuel Vadot #define	CLK_DISPC_MTX_EB	14
382*c66ec88fSEmmanuel Vadot #define	CLK_DPHY0_GATE		15
383*c66ec88fSEmmanuel Vadot #define	CLK_DPHY1_GATE		16
384*c66ec88fSEmmanuel Vadot #define	CLK_GSP0_A_GATE		17
385*c66ec88fSEmmanuel Vadot #define	CLK_GSP1_A_GATE		18
386*c66ec88fSEmmanuel Vadot #define	CLK_GSP0_F_GATE		19
387*c66ec88fSEmmanuel Vadot #define	CLK_GSP1_F_GATE		20
388*c66ec88fSEmmanuel Vadot #define	CLK_D_MTX_F_GATE	21
389*c66ec88fSEmmanuel Vadot #define	CLK_D_MTX_A_GATE	22
390*c66ec88fSEmmanuel Vadot #define	CLK_D_NOC_F_GATE	23
391*c66ec88fSEmmanuel Vadot #define	CLK_D_NOC_A_GATE	24
392*c66ec88fSEmmanuel Vadot #define	CLK_GSP_MTX_F_GATE	25
393*c66ec88fSEmmanuel Vadot #define	CLK_GSP_MTX_A_GATE	26
394*c66ec88fSEmmanuel Vadot #define	CLK_GSP_NOC_F_GATE	27
395*c66ec88fSEmmanuel Vadot #define	CLK_GSP_NOC_A_GATE	28
396*c66ec88fSEmmanuel Vadot #define	CLK_DISPM0IDLE_GATE	29
397*c66ec88fSEmmanuel Vadot #define	CLK_GSPM0IDLE_GATE	30
398*c66ec88fSEmmanuel Vadot #define CLK_DISP_GATE_NUM	(CLK_GSPM0IDLE_GATE + 1)
399*c66ec88fSEmmanuel Vadot 
400*c66ec88fSEmmanuel Vadot #define	CLK_SIM0_EB		0
401*c66ec88fSEmmanuel Vadot #define	CLK_IIS0_EB		1
402*c66ec88fSEmmanuel Vadot #define	CLK_IIS1_EB		2
403*c66ec88fSEmmanuel Vadot #define	CLK_IIS2_EB		3
404*c66ec88fSEmmanuel Vadot #define	CLK_IIS3_EB		4
405*c66ec88fSEmmanuel Vadot #define	CLK_SPI0_EB		5
406*c66ec88fSEmmanuel Vadot #define	CLK_SPI1_EB		6
407*c66ec88fSEmmanuel Vadot #define	CLK_SPI2_EB		7
408*c66ec88fSEmmanuel Vadot #define	CLK_I2C0_EB		8
409*c66ec88fSEmmanuel Vadot #define	CLK_I2C1_EB		9
410*c66ec88fSEmmanuel Vadot #define	CLK_I2C2_EB		10
411*c66ec88fSEmmanuel Vadot #define	CLK_I2C3_EB		11
412*c66ec88fSEmmanuel Vadot #define	CLK_I2C4_EB		12
413*c66ec88fSEmmanuel Vadot #define	CLK_I2C5_EB		13
414*c66ec88fSEmmanuel Vadot #define	CLK_UART0_EB		14
415*c66ec88fSEmmanuel Vadot #define	CLK_UART1_EB		15
416*c66ec88fSEmmanuel Vadot #define	CLK_UART2_EB		16
417*c66ec88fSEmmanuel Vadot #define	CLK_UART3_EB		17
418*c66ec88fSEmmanuel Vadot #define	CLK_UART4_EB		18
419*c66ec88fSEmmanuel Vadot #define	CLK_AP_CKG_EB		19
420*c66ec88fSEmmanuel Vadot #define	CLK_SPI3_EB		20
421*c66ec88fSEmmanuel Vadot #define CLK_APAPB_GATE_NUM	(CLK_SPI3_EB + 1)
422*c66ec88fSEmmanuel Vadot 
423*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_CLK_SC9860_H_ */
424