1*3c92cca3SJagan Teki /*
2*3c92cca3SJagan Teki  * Copyright (C) 2017 Priit Laes <plaes@plaes.org>
3*3c92cca3SJagan Teki  *
4*3c92cca3SJagan Teki  * This file is dual-licensed: you can use it either under the terms
5*3c92cca3SJagan Teki  * of the GPL or the X11 license, at your option. Note that this dual
6*3c92cca3SJagan Teki  * licensing only applies to this file, and not this project as a
7*3c92cca3SJagan Teki  * whole.
8*3c92cca3SJagan Teki  *
9*3c92cca3SJagan Teki  *  a) This file is free software; you can redistribute it and/or
10*3c92cca3SJagan Teki  *     modify it under the terms of the GNU General Public License as
11*3c92cca3SJagan Teki  *     published by the Free Software Foundation; either version 2 of the
12*3c92cca3SJagan Teki  *     License, or (at your option) any later version.
13*3c92cca3SJagan Teki  *
14*3c92cca3SJagan Teki  *     This file is distributed in the hope that it will be useful,
15*3c92cca3SJagan Teki  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*3c92cca3SJagan Teki  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*3c92cca3SJagan Teki  *     GNU General Public License for more details.
18*3c92cca3SJagan Teki  *
19*3c92cca3SJagan Teki  * Or, alternatively,
20*3c92cca3SJagan Teki  *
21*3c92cca3SJagan Teki  *  b) Permission is hereby granted, free of charge, to any person
22*3c92cca3SJagan Teki  *     obtaining a copy of this software and associated documentation
23*3c92cca3SJagan Teki  *     files (the "Software"), to deal in the Software without
24*3c92cca3SJagan Teki  *     restriction, including without limitation the rights to use,
25*3c92cca3SJagan Teki  *     copy, modify, merge, publish, distribute, sublicense, and/or
26*3c92cca3SJagan Teki  *     sell copies of the Software, and to permit persons to whom the
27*3c92cca3SJagan Teki  *     Software is furnished to do so, subject to the following
28*3c92cca3SJagan Teki  *     conditions:
29*3c92cca3SJagan Teki  *
30*3c92cca3SJagan Teki  *     The above copyright notice and this permission notice shall be
31*3c92cca3SJagan Teki  *     included in all copies or substantial portions of the Software.
32*3c92cca3SJagan Teki  *
33*3c92cca3SJagan Teki  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*3c92cca3SJagan Teki  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*3c92cca3SJagan Teki  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*3c92cca3SJagan Teki  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*3c92cca3SJagan Teki  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*3c92cca3SJagan Teki  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39*3c92cca3SJagan Teki  *     OTHER DEALINGS IN THE SOFTWARE.
40*3c92cca3SJagan Teki  */
41*3c92cca3SJagan Teki 
42*3c92cca3SJagan Teki #ifndef _DT_BINDINGS_CLK_SUN4I_A10_H_
43*3c92cca3SJagan Teki #define _DT_BINDINGS_CLK_SUN4I_A10_H_
44*3c92cca3SJagan Teki 
45*3c92cca3SJagan Teki #define CLK_HOSC		1
46*3c92cca3SJagan Teki #define CLK_PLL_VIDEO0_2X	9
47*3c92cca3SJagan Teki #define CLK_PLL_VIDEO1_2X	18
48*3c92cca3SJagan Teki #define CLK_CPU			20
49*3c92cca3SJagan Teki 
50*3c92cca3SJagan Teki /* AHB Gates */
51*3c92cca3SJagan Teki #define CLK_AHB_OTG		26
52*3c92cca3SJagan Teki #define CLK_AHB_EHCI0		27
53*3c92cca3SJagan Teki #define CLK_AHB_OHCI0		28
54*3c92cca3SJagan Teki #define CLK_AHB_EHCI1		29
55*3c92cca3SJagan Teki #define CLK_AHB_OHCI1		30
56*3c92cca3SJagan Teki #define CLK_AHB_SS		31
57*3c92cca3SJagan Teki #define CLK_AHB_DMA		32
58*3c92cca3SJagan Teki #define CLK_AHB_BIST		33
59*3c92cca3SJagan Teki #define CLK_AHB_MMC0		34
60*3c92cca3SJagan Teki #define CLK_AHB_MMC1		35
61*3c92cca3SJagan Teki #define CLK_AHB_MMC2		36
62*3c92cca3SJagan Teki #define CLK_AHB_MMC3		37
63*3c92cca3SJagan Teki #define CLK_AHB_MS		38
64*3c92cca3SJagan Teki #define CLK_AHB_NAND		39
65*3c92cca3SJagan Teki #define CLK_AHB_SDRAM		40
66*3c92cca3SJagan Teki #define CLK_AHB_ACE		41
67*3c92cca3SJagan Teki #define CLK_AHB_EMAC		42
68*3c92cca3SJagan Teki #define CLK_AHB_TS		43
69*3c92cca3SJagan Teki #define CLK_AHB_SPI0		44
70*3c92cca3SJagan Teki #define CLK_AHB_SPI1		45
71*3c92cca3SJagan Teki #define CLK_AHB_SPI2		46
72*3c92cca3SJagan Teki #define CLK_AHB_SPI3		47
73*3c92cca3SJagan Teki #define CLK_AHB_PATA		48
74*3c92cca3SJagan Teki #define CLK_AHB_SATA		49
75*3c92cca3SJagan Teki #define CLK_AHB_GPS		50
76*3c92cca3SJagan Teki #define CLK_AHB_HSTIMER		51
77*3c92cca3SJagan Teki #define CLK_AHB_VE		52
78*3c92cca3SJagan Teki #define CLK_AHB_TVD		53
79*3c92cca3SJagan Teki #define CLK_AHB_TVE0		54
80*3c92cca3SJagan Teki #define CLK_AHB_TVE1		55
81*3c92cca3SJagan Teki #define CLK_AHB_LCD0		56
82*3c92cca3SJagan Teki #define CLK_AHB_LCD1		57
83*3c92cca3SJagan Teki #define CLK_AHB_CSI0		58
84*3c92cca3SJagan Teki #define CLK_AHB_CSI1		59
85*3c92cca3SJagan Teki #define CLK_AHB_HDMI0		60
86*3c92cca3SJagan Teki #define CLK_AHB_HDMI1		61
87*3c92cca3SJagan Teki #define CLK_AHB_DE_BE0		62
88*3c92cca3SJagan Teki #define CLK_AHB_DE_BE1		63
89*3c92cca3SJagan Teki #define CLK_AHB_DE_FE0		64
90*3c92cca3SJagan Teki #define CLK_AHB_DE_FE1		65
91*3c92cca3SJagan Teki #define CLK_AHB_GMAC		66
92*3c92cca3SJagan Teki #define CLK_AHB_MP		67
93*3c92cca3SJagan Teki #define CLK_AHB_GPU		68
94*3c92cca3SJagan Teki 
95*3c92cca3SJagan Teki /* APB0 Gates */
96*3c92cca3SJagan Teki #define CLK_APB0_CODEC		69
97*3c92cca3SJagan Teki #define CLK_APB0_SPDIF		70
98*3c92cca3SJagan Teki #define CLK_APB0_I2S0		71
99*3c92cca3SJagan Teki #define CLK_APB0_AC97		72
100*3c92cca3SJagan Teki #define CLK_APB0_I2S1		73
101*3c92cca3SJagan Teki #define CLK_APB0_PIO		74
102*3c92cca3SJagan Teki #define CLK_APB0_IR0		75
103*3c92cca3SJagan Teki #define CLK_APB0_IR1		76
104*3c92cca3SJagan Teki #define CLK_APB0_I2S2		77
105*3c92cca3SJagan Teki #define CLK_APB0_KEYPAD		78
106*3c92cca3SJagan Teki 
107*3c92cca3SJagan Teki /* APB1 Gates */
108*3c92cca3SJagan Teki #define CLK_APB1_I2C0		79
109*3c92cca3SJagan Teki #define CLK_APB1_I2C1		80
110*3c92cca3SJagan Teki #define CLK_APB1_I2C2		81
111*3c92cca3SJagan Teki #define CLK_APB1_I2C3		82
112*3c92cca3SJagan Teki #define CLK_APB1_CAN		83
113*3c92cca3SJagan Teki #define CLK_APB1_SCR		84
114*3c92cca3SJagan Teki #define CLK_APB1_PS20		85
115*3c92cca3SJagan Teki #define CLK_APB1_PS21		86
116*3c92cca3SJagan Teki #define CLK_APB1_I2C4		87
117*3c92cca3SJagan Teki #define CLK_APB1_UART0		88
118*3c92cca3SJagan Teki #define CLK_APB1_UART1		89
119*3c92cca3SJagan Teki #define CLK_APB1_UART2		90
120*3c92cca3SJagan Teki #define CLK_APB1_UART3		91
121*3c92cca3SJagan Teki #define CLK_APB1_UART4		92
122*3c92cca3SJagan Teki #define CLK_APB1_UART5		93
123*3c92cca3SJagan Teki #define CLK_APB1_UART6		94
124*3c92cca3SJagan Teki #define CLK_APB1_UART7		95
125*3c92cca3SJagan Teki 
126*3c92cca3SJagan Teki /* IP clocks */
127*3c92cca3SJagan Teki #define CLK_NAND		96
128*3c92cca3SJagan Teki #define CLK_MS			97
129*3c92cca3SJagan Teki #define CLK_MMC0		98
130*3c92cca3SJagan Teki #define CLK_MMC0_OUTPUT		99
131*3c92cca3SJagan Teki #define CLK_MMC0_SAMPLE		100
132*3c92cca3SJagan Teki #define CLK_MMC1		101
133*3c92cca3SJagan Teki #define CLK_MMC1_OUTPUT		102
134*3c92cca3SJagan Teki #define CLK_MMC1_SAMPLE		103
135*3c92cca3SJagan Teki #define CLK_MMC2		104
136*3c92cca3SJagan Teki #define CLK_MMC2_OUTPUT		105
137*3c92cca3SJagan Teki #define CLK_MMC2_SAMPLE		106
138*3c92cca3SJagan Teki #define CLK_MMC3		107
139*3c92cca3SJagan Teki #define CLK_MMC3_OUTPUT		108
140*3c92cca3SJagan Teki #define CLK_MMC3_SAMPLE		109
141*3c92cca3SJagan Teki #define CLK_TS			110
142*3c92cca3SJagan Teki #define CLK_SS			111
143*3c92cca3SJagan Teki #define CLK_SPI0		112
144*3c92cca3SJagan Teki #define CLK_SPI1		113
145*3c92cca3SJagan Teki #define CLK_SPI2		114
146*3c92cca3SJagan Teki #define CLK_PATA		115
147*3c92cca3SJagan Teki #define CLK_IR0			116
148*3c92cca3SJagan Teki #define CLK_IR1			117
149*3c92cca3SJagan Teki #define CLK_I2S0		118
150*3c92cca3SJagan Teki #define CLK_AC97		119
151*3c92cca3SJagan Teki #define CLK_SPDIF		120
152*3c92cca3SJagan Teki #define CLK_KEYPAD		121
153*3c92cca3SJagan Teki #define CLK_SATA		122
154*3c92cca3SJagan Teki #define CLK_USB_OHCI0		123
155*3c92cca3SJagan Teki #define CLK_USB_OHCI1		124
156*3c92cca3SJagan Teki #define CLK_USB_PHY		125
157*3c92cca3SJagan Teki #define CLK_GPS			126
158*3c92cca3SJagan Teki #define CLK_SPI3		127
159*3c92cca3SJagan Teki #define CLK_I2S1		128
160*3c92cca3SJagan Teki #define CLK_I2S2		129
161*3c92cca3SJagan Teki 
162*3c92cca3SJagan Teki /* DRAM Gates */
163*3c92cca3SJagan Teki #define CLK_DRAM_VE		130
164*3c92cca3SJagan Teki #define CLK_DRAM_CSI0		131
165*3c92cca3SJagan Teki #define CLK_DRAM_CSI1		132
166*3c92cca3SJagan Teki #define CLK_DRAM_TS		133
167*3c92cca3SJagan Teki #define CLK_DRAM_TVD		134
168*3c92cca3SJagan Teki #define CLK_DRAM_TVE0		135
169*3c92cca3SJagan Teki #define CLK_DRAM_TVE1		136
170*3c92cca3SJagan Teki #define CLK_DRAM_OUT		137
171*3c92cca3SJagan Teki #define CLK_DRAM_DE_FE1		138
172*3c92cca3SJagan Teki #define CLK_DRAM_DE_FE0		139
173*3c92cca3SJagan Teki #define CLK_DRAM_DE_BE0		140
174*3c92cca3SJagan Teki #define CLK_DRAM_DE_BE1		141
175*3c92cca3SJagan Teki #define CLK_DRAM_MP		142
176*3c92cca3SJagan Teki #define CLK_DRAM_ACE		143
177*3c92cca3SJagan Teki 
178*3c92cca3SJagan Teki /* Display Engine Clocks */
179*3c92cca3SJagan Teki #define CLK_DE_BE0		144
180*3c92cca3SJagan Teki #define CLK_DE_BE1		145
181*3c92cca3SJagan Teki #define CLK_DE_FE0		146
182*3c92cca3SJagan Teki #define CLK_DE_FE1		147
183*3c92cca3SJagan Teki #define CLK_DE_MP		148
184*3c92cca3SJagan Teki #define CLK_TCON0_CH0		149
185*3c92cca3SJagan Teki #define CLK_TCON1_CH0		150
186*3c92cca3SJagan Teki #define CLK_CSI_SCLK		151
187*3c92cca3SJagan Teki #define CLK_TVD_SCLK2		152
188*3c92cca3SJagan Teki #define CLK_TVD			153
189*3c92cca3SJagan Teki #define CLK_TCON0_CH1_SCLK2	154
190*3c92cca3SJagan Teki #define CLK_TCON0_CH1		155
191*3c92cca3SJagan Teki #define CLK_TCON1_CH1_SCLK2	156
192*3c92cca3SJagan Teki #define CLK_TCON1_CH1		157
193*3c92cca3SJagan Teki #define CLK_CSI0		158
194*3c92cca3SJagan Teki #define CLK_CSI1		159
195*3c92cca3SJagan Teki #define CLK_CODEC		160
196*3c92cca3SJagan Teki #define CLK_VE			161
197*3c92cca3SJagan Teki #define CLK_AVS			162
198*3c92cca3SJagan Teki #define CLK_ACE			163
199*3c92cca3SJagan Teki #define CLK_HDMI		164
200*3c92cca3SJagan Teki #define CLK_GPU			165
201*3c92cca3SJagan Teki 
202*3c92cca3SJagan Teki #endif /* _DT_BINDINGS_CLK_SUN4I_A10_H_ */
203