xref: /freebsd-src/sys/contrib/device-tree/include/dt-bindings/clock/sun6i-a31-ccu.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /*
2*c66ec88fSEmmanuel Vadot  * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
3*c66ec88fSEmmanuel Vadot  *
4*c66ec88fSEmmanuel Vadot  * This file is dual-licensed: you can use it either under the terms
5*c66ec88fSEmmanuel Vadot  * of the GPL or the X11 license, at your option. Note that this dual
6*c66ec88fSEmmanuel Vadot  * licensing only applies to this file, and not this project as a
7*c66ec88fSEmmanuel Vadot  * whole.
8*c66ec88fSEmmanuel Vadot  *
9*c66ec88fSEmmanuel Vadot  *  a) This file is free software; you can redistribute it and/or
10*c66ec88fSEmmanuel Vadot  *     modify it under the terms of the GNU General Public License as
11*c66ec88fSEmmanuel Vadot  *     published by the Free Software Foundation; either version 2 of the
12*c66ec88fSEmmanuel Vadot  *     License, or (at your option) any later version.
13*c66ec88fSEmmanuel Vadot  *
14*c66ec88fSEmmanuel Vadot  *     This file is distributed in the hope that it will be useful,
15*c66ec88fSEmmanuel Vadot  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*c66ec88fSEmmanuel Vadot  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*c66ec88fSEmmanuel Vadot  *     GNU General Public License for more details.
18*c66ec88fSEmmanuel Vadot  *
19*c66ec88fSEmmanuel Vadot  * Or, alternatively,
20*c66ec88fSEmmanuel Vadot  *
21*c66ec88fSEmmanuel Vadot  *  b) Permission is hereby granted, free of charge, to any person
22*c66ec88fSEmmanuel Vadot  *     obtaining a copy of this software and associated documentation
23*c66ec88fSEmmanuel Vadot  *     files (the "Software"), to deal in the Software without
24*c66ec88fSEmmanuel Vadot  *     restriction, including without limitation the rights to use,
25*c66ec88fSEmmanuel Vadot  *     copy, modify, merge, publish, distribute, sublicense, and/or
26*c66ec88fSEmmanuel Vadot  *     sell copies of the Software, and to permit persons to whom the
27*c66ec88fSEmmanuel Vadot  *     Software is furnished to do so, subject to the following
28*c66ec88fSEmmanuel Vadot  *     conditions:
29*c66ec88fSEmmanuel Vadot  *
30*c66ec88fSEmmanuel Vadot  *     The above copyright notice and this permission notice shall be
31*c66ec88fSEmmanuel Vadot  *     included in all copies or substantial portions of the Software.
32*c66ec88fSEmmanuel Vadot  *
33*c66ec88fSEmmanuel Vadot  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*c66ec88fSEmmanuel Vadot  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*c66ec88fSEmmanuel Vadot  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*c66ec88fSEmmanuel Vadot  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*c66ec88fSEmmanuel Vadot  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*c66ec88fSEmmanuel Vadot  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*c66ec88fSEmmanuel Vadot  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*c66ec88fSEmmanuel Vadot  *     OTHER DEALINGS IN THE SOFTWARE.
41*c66ec88fSEmmanuel Vadot  */
42*c66ec88fSEmmanuel Vadot 
43*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_SUN6I_A31_H_
44*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_SUN6I_A31_H_
45*c66ec88fSEmmanuel Vadot 
46*c66ec88fSEmmanuel Vadot #define CLK_PLL_VIDEO0_2X	7
47*c66ec88fSEmmanuel Vadot 
48*c66ec88fSEmmanuel Vadot #define CLK_PLL_PERIPH		10
49*c66ec88fSEmmanuel Vadot 
50*c66ec88fSEmmanuel Vadot #define CLK_PLL_VIDEO1_2X	13
51*c66ec88fSEmmanuel Vadot 
52*c66ec88fSEmmanuel Vadot #define CLK_PLL_MIPI		15
53*c66ec88fSEmmanuel Vadot 
54*c66ec88fSEmmanuel Vadot #define CLK_CPU			18
55*c66ec88fSEmmanuel Vadot 
56*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MIPIDSI	23
57*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SS		24
58*c66ec88fSEmmanuel Vadot #define CLK_AHB1_DMA		25
59*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MMC0		26
60*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MMC1		27
61*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MMC2		28
62*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MMC3		29
63*c66ec88fSEmmanuel Vadot #define CLK_AHB1_NAND1		30
64*c66ec88fSEmmanuel Vadot #define CLK_AHB1_NAND0		31
65*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SDRAM		32
66*c66ec88fSEmmanuel Vadot #define CLK_AHB1_EMAC		33
67*c66ec88fSEmmanuel Vadot #define CLK_AHB1_TS		34
68*c66ec88fSEmmanuel Vadot #define CLK_AHB1_HSTIMER	35
69*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SPI0		36
70*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SPI1		37
71*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SPI2		38
72*c66ec88fSEmmanuel Vadot #define CLK_AHB1_SPI3		39
73*c66ec88fSEmmanuel Vadot #define CLK_AHB1_OTG		40
74*c66ec88fSEmmanuel Vadot #define CLK_AHB1_EHCI0		41
75*c66ec88fSEmmanuel Vadot #define CLK_AHB1_EHCI1		42
76*c66ec88fSEmmanuel Vadot #define CLK_AHB1_OHCI0		43
77*c66ec88fSEmmanuel Vadot #define CLK_AHB1_OHCI1		44
78*c66ec88fSEmmanuel Vadot #define CLK_AHB1_OHCI2		45
79*c66ec88fSEmmanuel Vadot #define CLK_AHB1_VE		46
80*c66ec88fSEmmanuel Vadot #define CLK_AHB1_LCD0		47
81*c66ec88fSEmmanuel Vadot #define CLK_AHB1_LCD1		48
82*c66ec88fSEmmanuel Vadot #define CLK_AHB1_CSI		49
83*c66ec88fSEmmanuel Vadot #define CLK_AHB1_HDMI		50
84*c66ec88fSEmmanuel Vadot #define CLK_AHB1_BE0		51
85*c66ec88fSEmmanuel Vadot #define CLK_AHB1_BE1		52
86*c66ec88fSEmmanuel Vadot #define CLK_AHB1_FE0		53
87*c66ec88fSEmmanuel Vadot #define CLK_AHB1_FE1		54
88*c66ec88fSEmmanuel Vadot #define CLK_AHB1_MP		55
89*c66ec88fSEmmanuel Vadot #define CLK_AHB1_GPU		56
90*c66ec88fSEmmanuel Vadot #define CLK_AHB1_DEU0		57
91*c66ec88fSEmmanuel Vadot #define CLK_AHB1_DEU1		58
92*c66ec88fSEmmanuel Vadot #define CLK_AHB1_DRC0		59
93*c66ec88fSEmmanuel Vadot #define CLK_AHB1_DRC1		60
94*c66ec88fSEmmanuel Vadot 
95*c66ec88fSEmmanuel Vadot #define CLK_APB1_CODEC		61
96*c66ec88fSEmmanuel Vadot #define CLK_APB1_SPDIF		62
97*c66ec88fSEmmanuel Vadot #define CLK_APB1_DIGITAL_MIC	63
98*c66ec88fSEmmanuel Vadot #define CLK_APB1_PIO		64
99*c66ec88fSEmmanuel Vadot #define CLK_APB1_DAUDIO0	65
100*c66ec88fSEmmanuel Vadot #define CLK_APB1_DAUDIO1	66
101*c66ec88fSEmmanuel Vadot 
102*c66ec88fSEmmanuel Vadot #define CLK_APB2_I2C0		67
103*c66ec88fSEmmanuel Vadot #define CLK_APB2_I2C1		68
104*c66ec88fSEmmanuel Vadot #define CLK_APB2_I2C2		69
105*c66ec88fSEmmanuel Vadot #define CLK_APB2_I2C3		70
106*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART0		71
107*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART1		72
108*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART2		73
109*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART3		74
110*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART4		75
111*c66ec88fSEmmanuel Vadot #define CLK_APB2_UART5		76
112*c66ec88fSEmmanuel Vadot 
113*c66ec88fSEmmanuel Vadot #define CLK_NAND0		77
114*c66ec88fSEmmanuel Vadot #define CLK_NAND1		78
115*c66ec88fSEmmanuel Vadot #define CLK_MMC0		79
116*c66ec88fSEmmanuel Vadot #define CLK_MMC0_SAMPLE		80
117*c66ec88fSEmmanuel Vadot #define CLK_MMC0_OUTPUT		81
118*c66ec88fSEmmanuel Vadot #define CLK_MMC1		82
119*c66ec88fSEmmanuel Vadot #define CLK_MMC1_SAMPLE		83
120*c66ec88fSEmmanuel Vadot #define CLK_MMC1_OUTPUT		84
121*c66ec88fSEmmanuel Vadot #define CLK_MMC2		85
122*c66ec88fSEmmanuel Vadot #define CLK_MMC2_SAMPLE		86
123*c66ec88fSEmmanuel Vadot #define CLK_MMC2_OUTPUT		87
124*c66ec88fSEmmanuel Vadot #define CLK_MMC3		88
125*c66ec88fSEmmanuel Vadot #define CLK_MMC3_SAMPLE		89
126*c66ec88fSEmmanuel Vadot #define CLK_MMC3_OUTPUT		90
127*c66ec88fSEmmanuel Vadot #define CLK_TS			91
128*c66ec88fSEmmanuel Vadot #define CLK_SS			92
129*c66ec88fSEmmanuel Vadot #define CLK_SPI0		93
130*c66ec88fSEmmanuel Vadot #define CLK_SPI1		94
131*c66ec88fSEmmanuel Vadot #define CLK_SPI2		95
132*c66ec88fSEmmanuel Vadot #define CLK_SPI3		96
133*c66ec88fSEmmanuel Vadot #define CLK_DAUDIO0		97
134*c66ec88fSEmmanuel Vadot #define CLK_DAUDIO1		98
135*c66ec88fSEmmanuel Vadot #define CLK_SPDIF		99
136*c66ec88fSEmmanuel Vadot #define CLK_USB_PHY0		100
137*c66ec88fSEmmanuel Vadot #define CLK_USB_PHY1		101
138*c66ec88fSEmmanuel Vadot #define CLK_USB_PHY2		102
139*c66ec88fSEmmanuel Vadot #define CLK_USB_OHCI0		103
140*c66ec88fSEmmanuel Vadot #define CLK_USB_OHCI1		104
141*c66ec88fSEmmanuel Vadot #define CLK_USB_OHCI2		105
142*c66ec88fSEmmanuel Vadot 
143*c66ec88fSEmmanuel Vadot #define CLK_DRAM_VE		110
144*c66ec88fSEmmanuel Vadot #define CLK_DRAM_CSI_ISP	111
145*c66ec88fSEmmanuel Vadot #define CLK_DRAM_TS		112
146*c66ec88fSEmmanuel Vadot #define CLK_DRAM_DRC0		113
147*c66ec88fSEmmanuel Vadot #define CLK_DRAM_DRC1		114
148*c66ec88fSEmmanuel Vadot #define CLK_DRAM_DEU0		115
149*c66ec88fSEmmanuel Vadot #define CLK_DRAM_DEU1		116
150*c66ec88fSEmmanuel Vadot #define CLK_DRAM_FE0		117
151*c66ec88fSEmmanuel Vadot #define CLK_DRAM_FE1		118
152*c66ec88fSEmmanuel Vadot #define CLK_DRAM_BE0		119
153*c66ec88fSEmmanuel Vadot #define CLK_DRAM_BE1		120
154*c66ec88fSEmmanuel Vadot #define CLK_DRAM_MP		121
155*c66ec88fSEmmanuel Vadot 
156*c66ec88fSEmmanuel Vadot #define CLK_BE0			122
157*c66ec88fSEmmanuel Vadot #define CLK_BE1			123
158*c66ec88fSEmmanuel Vadot #define CLK_FE0			124
159*c66ec88fSEmmanuel Vadot #define CLK_FE1			125
160*c66ec88fSEmmanuel Vadot #define CLK_MP			126
161*c66ec88fSEmmanuel Vadot #define CLK_LCD0_CH0		127
162*c66ec88fSEmmanuel Vadot #define CLK_LCD1_CH0		128
163*c66ec88fSEmmanuel Vadot #define CLK_LCD0_CH1		129
164*c66ec88fSEmmanuel Vadot #define CLK_LCD1_CH1		130
165*c66ec88fSEmmanuel Vadot #define CLK_CSI0_SCLK		131
166*c66ec88fSEmmanuel Vadot #define CLK_CSI0_MCLK		132
167*c66ec88fSEmmanuel Vadot #define CLK_CSI1_MCLK		133
168*c66ec88fSEmmanuel Vadot #define CLK_VE			134
169*c66ec88fSEmmanuel Vadot #define CLK_CODEC		135
170*c66ec88fSEmmanuel Vadot #define CLK_AVS			136
171*c66ec88fSEmmanuel Vadot #define CLK_DIGITAL_MIC		137
172*c66ec88fSEmmanuel Vadot #define CLK_HDMI		138
173*c66ec88fSEmmanuel Vadot #define CLK_HDMI_DDC		139
174*c66ec88fSEmmanuel Vadot #define CLK_PS			140
175*c66ec88fSEmmanuel Vadot 
176*c66ec88fSEmmanuel Vadot #define CLK_MIPI_DSI		143
177*c66ec88fSEmmanuel Vadot #define CLK_MIPI_DSI_DPHY	144
178*c66ec88fSEmmanuel Vadot #define CLK_MIPI_CSI_DPHY	145
179*c66ec88fSEmmanuel Vadot #define CLK_IEP_DRC0		146
180*c66ec88fSEmmanuel Vadot #define CLK_IEP_DRC1		147
181*c66ec88fSEmmanuel Vadot #define CLK_IEP_DEU0		148
182*c66ec88fSEmmanuel Vadot #define CLK_IEP_DEU1		149
183*c66ec88fSEmmanuel Vadot #define CLK_GPU_CORE		150
184*c66ec88fSEmmanuel Vadot #define CLK_GPU_MEMORY		151
185*c66ec88fSEmmanuel Vadot #define CLK_GPU_HYD		152
186*c66ec88fSEmmanuel Vadot #define CLK_ATS			153
187*c66ec88fSEmmanuel Vadot #define CLK_TRACE		154
188*c66ec88fSEmmanuel Vadot 
189*c66ec88fSEmmanuel Vadot #define CLK_OUT_A		155
190*c66ec88fSEmmanuel Vadot #define CLK_OUT_B		156
191*c66ec88fSEmmanuel Vadot #define CLK_OUT_C		157
192*c66ec88fSEmmanuel Vadot 
193*c66ec88fSEmmanuel Vadot #endif /* _DT_BINDINGS_CLK_SUN6I_A31_H_ */
194