18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (C) 2017 Priit Laes <plaes@plaes.org>
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms
58c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual
68c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a
78c2ecf20Sopenharmony_ci * whole.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci *  a) This file is free software; you can redistribute it and/or
108c2ecf20Sopenharmony_ci *     modify it under the terms of the GNU General Public License as
118c2ecf20Sopenharmony_ci *     published by the Free Software Foundation; either version 2 of the
128c2ecf20Sopenharmony_ci *     License, or (at your option) any later version.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci *     This file is distributed in the hope that it will be useful,
158c2ecf20Sopenharmony_ci *     but WITHOUT ANY WARRANTY; without even the implied warranty of
168c2ecf20Sopenharmony_ci *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
178c2ecf20Sopenharmony_ci *     GNU General Public License for more details.
188c2ecf20Sopenharmony_ci *
198c2ecf20Sopenharmony_ci * Or, alternatively,
208c2ecf20Sopenharmony_ci *
218c2ecf20Sopenharmony_ci *  b) Permission is hereby granted, free of charge, to any person
228c2ecf20Sopenharmony_ci *     obtaining a copy of this software and associated documentation
238c2ecf20Sopenharmony_ci *     files (the "Software"), to deal in the Software without
248c2ecf20Sopenharmony_ci *     restriction, including without limitation the rights to use,
258c2ecf20Sopenharmony_ci *     copy, modify, merge, publish, distribute, sublicense, and/or
268c2ecf20Sopenharmony_ci *     sell copies of the Software, and to permit persons to whom the
278c2ecf20Sopenharmony_ci *     Software is furnished to do so, subject to the following
288c2ecf20Sopenharmony_ci *     conditions:
298c2ecf20Sopenharmony_ci *
308c2ecf20Sopenharmony_ci *     The above copyright notice and this permission notice shall be
318c2ecf20Sopenharmony_ci *     included in all copies or substantial portions of the Software.
328c2ecf20Sopenharmony_ci *
338c2ecf20Sopenharmony_ci *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
348c2ecf20Sopenharmony_ci *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
358c2ecf20Sopenharmony_ci *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
368c2ecf20Sopenharmony_ci *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
378c2ecf20Sopenharmony_ci *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
388c2ecf20Sopenharmony_ci *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
398c2ecf20Sopenharmony_ci *     OTHER DEALINGS IN THE SOFTWARE.
408c2ecf20Sopenharmony_ci */
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_SUN4I_A10_H_
438c2ecf20Sopenharmony_ci#define _DT_BINDINGS_CLK_SUN4I_A10_H_
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define CLK_HOSC		1
468c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO0_2X	9
478c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO1_2X	18
488c2ecf20Sopenharmony_ci#define CLK_CPU			20
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/* AHB Gates */
518c2ecf20Sopenharmony_ci#define CLK_AHB_OTG		26
528c2ecf20Sopenharmony_ci#define CLK_AHB_EHCI0		27
538c2ecf20Sopenharmony_ci#define CLK_AHB_OHCI0		28
548c2ecf20Sopenharmony_ci#define CLK_AHB_EHCI1		29
558c2ecf20Sopenharmony_ci#define CLK_AHB_OHCI1		30
568c2ecf20Sopenharmony_ci#define CLK_AHB_SS		31
578c2ecf20Sopenharmony_ci#define CLK_AHB_DMA		32
588c2ecf20Sopenharmony_ci#define CLK_AHB_BIST		33
598c2ecf20Sopenharmony_ci#define CLK_AHB_MMC0		34
608c2ecf20Sopenharmony_ci#define CLK_AHB_MMC1		35
618c2ecf20Sopenharmony_ci#define CLK_AHB_MMC2		36
628c2ecf20Sopenharmony_ci#define CLK_AHB_MMC3		37
638c2ecf20Sopenharmony_ci#define CLK_AHB_MS		38
648c2ecf20Sopenharmony_ci#define CLK_AHB_NAND		39
658c2ecf20Sopenharmony_ci#define CLK_AHB_SDRAM		40
668c2ecf20Sopenharmony_ci#define CLK_AHB_ACE		41
678c2ecf20Sopenharmony_ci#define CLK_AHB_EMAC		42
688c2ecf20Sopenharmony_ci#define CLK_AHB_TS		43
698c2ecf20Sopenharmony_ci#define CLK_AHB_SPI0		44
708c2ecf20Sopenharmony_ci#define CLK_AHB_SPI1		45
718c2ecf20Sopenharmony_ci#define CLK_AHB_SPI2		46
728c2ecf20Sopenharmony_ci#define CLK_AHB_SPI3		47
738c2ecf20Sopenharmony_ci#define CLK_AHB_PATA		48
748c2ecf20Sopenharmony_ci#define CLK_AHB_SATA		49
758c2ecf20Sopenharmony_ci#define CLK_AHB_GPS		50
768c2ecf20Sopenharmony_ci#define CLK_AHB_HSTIMER		51
778c2ecf20Sopenharmony_ci#define CLK_AHB_VE		52
788c2ecf20Sopenharmony_ci#define CLK_AHB_TVD		53
798c2ecf20Sopenharmony_ci#define CLK_AHB_TVE0		54
808c2ecf20Sopenharmony_ci#define CLK_AHB_TVE1		55
818c2ecf20Sopenharmony_ci#define CLK_AHB_LCD0		56
828c2ecf20Sopenharmony_ci#define CLK_AHB_LCD1		57
838c2ecf20Sopenharmony_ci#define CLK_AHB_CSI0		58
848c2ecf20Sopenharmony_ci#define CLK_AHB_CSI1		59
858c2ecf20Sopenharmony_ci#define CLK_AHB_HDMI0		60
868c2ecf20Sopenharmony_ci#define CLK_AHB_HDMI1		61
878c2ecf20Sopenharmony_ci#define CLK_AHB_DE_BE0		62
888c2ecf20Sopenharmony_ci#define CLK_AHB_DE_BE1		63
898c2ecf20Sopenharmony_ci#define CLK_AHB_DE_FE0		64
908c2ecf20Sopenharmony_ci#define CLK_AHB_DE_FE1		65
918c2ecf20Sopenharmony_ci#define CLK_AHB_GMAC		66
928c2ecf20Sopenharmony_ci#define CLK_AHB_MP		67
938c2ecf20Sopenharmony_ci#define CLK_AHB_GPU		68
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci/* APB0 Gates */
968c2ecf20Sopenharmony_ci#define CLK_APB0_CODEC		69
978c2ecf20Sopenharmony_ci#define CLK_APB0_SPDIF		70
988c2ecf20Sopenharmony_ci#define CLK_APB0_I2S0		71
998c2ecf20Sopenharmony_ci#define CLK_APB0_AC97		72
1008c2ecf20Sopenharmony_ci#define CLK_APB0_I2S1		73
1018c2ecf20Sopenharmony_ci#define CLK_APB0_PIO		74
1028c2ecf20Sopenharmony_ci#define CLK_APB0_IR0		75
1038c2ecf20Sopenharmony_ci#define CLK_APB0_IR1		76
1048c2ecf20Sopenharmony_ci#define CLK_APB0_I2S2		77
1058c2ecf20Sopenharmony_ci#define CLK_APB0_KEYPAD		78
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci/* APB1 Gates */
1088c2ecf20Sopenharmony_ci#define CLK_APB1_I2C0		79
1098c2ecf20Sopenharmony_ci#define CLK_APB1_I2C1		80
1108c2ecf20Sopenharmony_ci#define CLK_APB1_I2C2		81
1118c2ecf20Sopenharmony_ci#define CLK_APB1_I2C3		82
1128c2ecf20Sopenharmony_ci#define CLK_APB1_CAN		83
1138c2ecf20Sopenharmony_ci#define CLK_APB1_SCR		84
1148c2ecf20Sopenharmony_ci#define CLK_APB1_PS20		85
1158c2ecf20Sopenharmony_ci#define CLK_APB1_PS21		86
1168c2ecf20Sopenharmony_ci#define CLK_APB1_I2C4		87
1178c2ecf20Sopenharmony_ci#define CLK_APB1_UART0		88
1188c2ecf20Sopenharmony_ci#define CLK_APB1_UART1		89
1198c2ecf20Sopenharmony_ci#define CLK_APB1_UART2		90
1208c2ecf20Sopenharmony_ci#define CLK_APB1_UART3		91
1218c2ecf20Sopenharmony_ci#define CLK_APB1_UART4		92
1228c2ecf20Sopenharmony_ci#define CLK_APB1_UART5		93
1238c2ecf20Sopenharmony_ci#define CLK_APB1_UART6		94
1248c2ecf20Sopenharmony_ci#define CLK_APB1_UART7		95
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci/* IP clocks */
1278c2ecf20Sopenharmony_ci#define CLK_NAND		96
1288c2ecf20Sopenharmony_ci#define CLK_MS			97
1298c2ecf20Sopenharmony_ci#define CLK_MMC0		98
1308c2ecf20Sopenharmony_ci#define CLK_MMC0_OUTPUT		99
1318c2ecf20Sopenharmony_ci#define CLK_MMC0_SAMPLE		100
1328c2ecf20Sopenharmony_ci#define CLK_MMC1		101
1338c2ecf20Sopenharmony_ci#define CLK_MMC1_OUTPUT		102
1348c2ecf20Sopenharmony_ci#define CLK_MMC1_SAMPLE		103
1358c2ecf20Sopenharmony_ci#define CLK_MMC2		104
1368c2ecf20Sopenharmony_ci#define CLK_MMC2_OUTPUT		105
1378c2ecf20Sopenharmony_ci#define CLK_MMC2_SAMPLE		106
1388c2ecf20Sopenharmony_ci#define CLK_MMC3		107
1398c2ecf20Sopenharmony_ci#define CLK_MMC3_OUTPUT		108
1408c2ecf20Sopenharmony_ci#define CLK_MMC3_SAMPLE		109
1418c2ecf20Sopenharmony_ci#define CLK_TS			110
1428c2ecf20Sopenharmony_ci#define CLK_SS			111
1438c2ecf20Sopenharmony_ci#define CLK_SPI0		112
1448c2ecf20Sopenharmony_ci#define CLK_SPI1		113
1458c2ecf20Sopenharmony_ci#define CLK_SPI2		114
1468c2ecf20Sopenharmony_ci#define CLK_PATA		115
1478c2ecf20Sopenharmony_ci#define CLK_IR0			116
1488c2ecf20Sopenharmony_ci#define CLK_IR1			117
1498c2ecf20Sopenharmony_ci#define CLK_I2S0		118
1508c2ecf20Sopenharmony_ci#define CLK_AC97		119
1518c2ecf20Sopenharmony_ci#define CLK_SPDIF		120
1528c2ecf20Sopenharmony_ci#define CLK_KEYPAD		121
1538c2ecf20Sopenharmony_ci#define CLK_SATA		122
1548c2ecf20Sopenharmony_ci#define CLK_USB_OHCI0		123
1558c2ecf20Sopenharmony_ci#define CLK_USB_OHCI1		124
1568c2ecf20Sopenharmony_ci#define CLK_USB_PHY		125
1578c2ecf20Sopenharmony_ci#define CLK_GPS			126
1588c2ecf20Sopenharmony_ci#define CLK_SPI3		127
1598c2ecf20Sopenharmony_ci#define CLK_I2S1		128
1608c2ecf20Sopenharmony_ci#define CLK_I2S2		129
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_ci/* DRAM Gates */
1638c2ecf20Sopenharmony_ci#define CLK_DRAM_VE		130
1648c2ecf20Sopenharmony_ci#define CLK_DRAM_CSI0		131
1658c2ecf20Sopenharmony_ci#define CLK_DRAM_CSI1		132
1668c2ecf20Sopenharmony_ci#define CLK_DRAM_TS		133
1678c2ecf20Sopenharmony_ci#define CLK_DRAM_TVD		134
1688c2ecf20Sopenharmony_ci#define CLK_DRAM_TVE0		135
1698c2ecf20Sopenharmony_ci#define CLK_DRAM_TVE1		136
1708c2ecf20Sopenharmony_ci#define CLK_DRAM_OUT		137
1718c2ecf20Sopenharmony_ci#define CLK_DRAM_DE_FE1		138
1728c2ecf20Sopenharmony_ci#define CLK_DRAM_DE_FE0		139
1738c2ecf20Sopenharmony_ci#define CLK_DRAM_DE_BE0		140
1748c2ecf20Sopenharmony_ci#define CLK_DRAM_DE_BE1		141
1758c2ecf20Sopenharmony_ci#define CLK_DRAM_MP		142
1768c2ecf20Sopenharmony_ci#define CLK_DRAM_ACE		143
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci/* Display Engine Clocks */
1798c2ecf20Sopenharmony_ci#define CLK_DE_BE0		144
1808c2ecf20Sopenharmony_ci#define CLK_DE_BE1		145
1818c2ecf20Sopenharmony_ci#define CLK_DE_FE0		146
1828c2ecf20Sopenharmony_ci#define CLK_DE_FE1		147
1838c2ecf20Sopenharmony_ci#define CLK_DE_MP		148
1848c2ecf20Sopenharmony_ci#define CLK_TCON0_CH0		149
1858c2ecf20Sopenharmony_ci#define CLK_TCON1_CH0		150
1868c2ecf20Sopenharmony_ci#define CLK_CSI_SCLK		151
1878c2ecf20Sopenharmony_ci#define CLK_TVD_SCLK2		152
1888c2ecf20Sopenharmony_ci#define CLK_TVD			153
1898c2ecf20Sopenharmony_ci#define CLK_TCON0_CH1_SCLK2	154
1908c2ecf20Sopenharmony_ci#define CLK_TCON0_CH1		155
1918c2ecf20Sopenharmony_ci#define CLK_TCON1_CH1_SCLK2	156
1928c2ecf20Sopenharmony_ci#define CLK_TCON1_CH1		157
1938c2ecf20Sopenharmony_ci#define CLK_CSI0		158
1948c2ecf20Sopenharmony_ci#define CLK_CSI1		159
1958c2ecf20Sopenharmony_ci#define CLK_CODEC		160
1968c2ecf20Sopenharmony_ci#define CLK_VE			161
1978c2ecf20Sopenharmony_ci#define CLK_AVS			162
1988c2ecf20Sopenharmony_ci#define CLK_ACE			163
1998c2ecf20Sopenharmony_ci#define CLK_HDMI		164
2008c2ecf20Sopenharmony_ci#define CLK_GPU			165
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_CLK_SUN4I_A10_H_ */
203