162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Copyright (C) 2017 Priit Laes <plaes@plaes.org>
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms
562306a36Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual
662306a36Sopenharmony_ci * licensing only applies to this file, and not this project as a
762306a36Sopenharmony_ci * whole.
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci *  a) This file is free software; you can redistribute it and/or
1062306a36Sopenharmony_ci *     modify it under the terms of the GNU General Public License as
1162306a36Sopenharmony_ci *     published by the Free Software Foundation; either version 2 of the
1262306a36Sopenharmony_ci *     License, or (at your option) any later version.
1362306a36Sopenharmony_ci *
1462306a36Sopenharmony_ci *     This file is distributed in the hope that it will be useful,
1562306a36Sopenharmony_ci *     but WITHOUT ANY WARRANTY; without even the implied warranty of
1662306a36Sopenharmony_ci *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1762306a36Sopenharmony_ci *     GNU General Public License for more details.
1862306a36Sopenharmony_ci *
1962306a36Sopenharmony_ci * Or, alternatively,
2062306a36Sopenharmony_ci *
2162306a36Sopenharmony_ci *  b) Permission is hereby granted, free of charge, to any person
2262306a36Sopenharmony_ci *     obtaining a copy of this software and associated documentation
2362306a36Sopenharmony_ci *     files (the "Software"), to deal in the Software without
2462306a36Sopenharmony_ci *     restriction, including without limitation the rights to use,
2562306a36Sopenharmony_ci *     copy, modify, merge, publish, distribute, sublicense, and/or
2662306a36Sopenharmony_ci *     sell copies of the Software, and to permit persons to whom the
2762306a36Sopenharmony_ci *     Software is furnished to do so, subject to the following
2862306a36Sopenharmony_ci *     conditions:
2962306a36Sopenharmony_ci *
3062306a36Sopenharmony_ci *     The above copyright notice and this permission notice shall be
3162306a36Sopenharmony_ci *     included in all copies or substantial portions of the Software.
3262306a36Sopenharmony_ci *
3362306a36Sopenharmony_ci *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3462306a36Sopenharmony_ci *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3562306a36Sopenharmony_ci *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
3662306a36Sopenharmony_ci *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
3762306a36Sopenharmony_ci *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
3862306a36Sopenharmony_ci *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
3962306a36Sopenharmony_ci *     OTHER DEALINGS IN THE SOFTWARE.
4062306a36Sopenharmony_ci */
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_SUN4I_A10_H_
4362306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_SUN4I_A10_H_
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci#define CLK_HOSC		1
4662306a36Sopenharmony_ci#define CLK_PLL_VIDEO0_2X	9
4762306a36Sopenharmony_ci#define CLK_PLL_VIDEO1_2X	18
4862306a36Sopenharmony_ci#define CLK_CPU			20
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci/* AHB Gates */
5162306a36Sopenharmony_ci#define CLK_AHB_OTG		26
5262306a36Sopenharmony_ci#define CLK_AHB_EHCI0		27
5362306a36Sopenharmony_ci#define CLK_AHB_OHCI0		28
5462306a36Sopenharmony_ci#define CLK_AHB_EHCI1		29
5562306a36Sopenharmony_ci#define CLK_AHB_OHCI1		30
5662306a36Sopenharmony_ci#define CLK_AHB_SS		31
5762306a36Sopenharmony_ci#define CLK_AHB_DMA		32
5862306a36Sopenharmony_ci#define CLK_AHB_BIST		33
5962306a36Sopenharmony_ci#define CLK_AHB_MMC0		34
6062306a36Sopenharmony_ci#define CLK_AHB_MMC1		35
6162306a36Sopenharmony_ci#define CLK_AHB_MMC2		36
6262306a36Sopenharmony_ci#define CLK_AHB_MMC3		37
6362306a36Sopenharmony_ci#define CLK_AHB_MS		38
6462306a36Sopenharmony_ci#define CLK_AHB_NAND		39
6562306a36Sopenharmony_ci#define CLK_AHB_SDRAM		40
6662306a36Sopenharmony_ci#define CLK_AHB_ACE		41
6762306a36Sopenharmony_ci#define CLK_AHB_EMAC		42
6862306a36Sopenharmony_ci#define CLK_AHB_TS		43
6962306a36Sopenharmony_ci#define CLK_AHB_SPI0		44
7062306a36Sopenharmony_ci#define CLK_AHB_SPI1		45
7162306a36Sopenharmony_ci#define CLK_AHB_SPI2		46
7262306a36Sopenharmony_ci#define CLK_AHB_SPI3		47
7362306a36Sopenharmony_ci#define CLK_AHB_PATA		48
7462306a36Sopenharmony_ci#define CLK_AHB_SATA		49
7562306a36Sopenharmony_ci#define CLK_AHB_GPS		50
7662306a36Sopenharmony_ci#define CLK_AHB_HSTIMER		51
7762306a36Sopenharmony_ci#define CLK_AHB_VE		52
7862306a36Sopenharmony_ci#define CLK_AHB_TVD		53
7962306a36Sopenharmony_ci#define CLK_AHB_TVE0		54
8062306a36Sopenharmony_ci#define CLK_AHB_TVE1		55
8162306a36Sopenharmony_ci#define CLK_AHB_LCD0		56
8262306a36Sopenharmony_ci#define CLK_AHB_LCD1		57
8362306a36Sopenharmony_ci#define CLK_AHB_CSI0		58
8462306a36Sopenharmony_ci#define CLK_AHB_CSI1		59
8562306a36Sopenharmony_ci#define CLK_AHB_HDMI0		60
8662306a36Sopenharmony_ci#define CLK_AHB_HDMI1		61
8762306a36Sopenharmony_ci#define CLK_AHB_DE_BE0		62
8862306a36Sopenharmony_ci#define CLK_AHB_DE_BE1		63
8962306a36Sopenharmony_ci#define CLK_AHB_DE_FE0		64
9062306a36Sopenharmony_ci#define CLK_AHB_DE_FE1		65
9162306a36Sopenharmony_ci#define CLK_AHB_GMAC		66
9262306a36Sopenharmony_ci#define CLK_AHB_MP		67
9362306a36Sopenharmony_ci#define CLK_AHB_GPU		68
9462306a36Sopenharmony_ci
9562306a36Sopenharmony_ci/* APB0 Gates */
9662306a36Sopenharmony_ci#define CLK_APB0_CODEC		69
9762306a36Sopenharmony_ci#define CLK_APB0_SPDIF		70
9862306a36Sopenharmony_ci#define CLK_APB0_I2S0		71
9962306a36Sopenharmony_ci#define CLK_APB0_AC97		72
10062306a36Sopenharmony_ci#define CLK_APB0_I2S1		73
10162306a36Sopenharmony_ci#define CLK_APB0_PIO		74
10262306a36Sopenharmony_ci#define CLK_APB0_IR0		75
10362306a36Sopenharmony_ci#define CLK_APB0_IR1		76
10462306a36Sopenharmony_ci#define CLK_APB0_I2S2		77
10562306a36Sopenharmony_ci#define CLK_APB0_KEYPAD		78
10662306a36Sopenharmony_ci
10762306a36Sopenharmony_ci/* APB1 Gates */
10862306a36Sopenharmony_ci#define CLK_APB1_I2C0		79
10962306a36Sopenharmony_ci#define CLK_APB1_I2C1		80
11062306a36Sopenharmony_ci#define CLK_APB1_I2C2		81
11162306a36Sopenharmony_ci#define CLK_APB1_I2C3		82
11262306a36Sopenharmony_ci#define CLK_APB1_CAN		83
11362306a36Sopenharmony_ci#define CLK_APB1_SCR		84
11462306a36Sopenharmony_ci#define CLK_APB1_PS20		85
11562306a36Sopenharmony_ci#define CLK_APB1_PS21		86
11662306a36Sopenharmony_ci#define CLK_APB1_I2C4		87
11762306a36Sopenharmony_ci#define CLK_APB1_UART0		88
11862306a36Sopenharmony_ci#define CLK_APB1_UART1		89
11962306a36Sopenharmony_ci#define CLK_APB1_UART2		90
12062306a36Sopenharmony_ci#define CLK_APB1_UART3		91
12162306a36Sopenharmony_ci#define CLK_APB1_UART4		92
12262306a36Sopenharmony_ci#define CLK_APB1_UART5		93
12362306a36Sopenharmony_ci#define CLK_APB1_UART6		94
12462306a36Sopenharmony_ci#define CLK_APB1_UART7		95
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ci/* IP clocks */
12762306a36Sopenharmony_ci#define CLK_NAND		96
12862306a36Sopenharmony_ci#define CLK_MS			97
12962306a36Sopenharmony_ci#define CLK_MMC0		98
13062306a36Sopenharmony_ci#define CLK_MMC0_OUTPUT		99
13162306a36Sopenharmony_ci#define CLK_MMC0_SAMPLE		100
13262306a36Sopenharmony_ci#define CLK_MMC1		101
13362306a36Sopenharmony_ci#define CLK_MMC1_OUTPUT		102
13462306a36Sopenharmony_ci#define CLK_MMC1_SAMPLE		103
13562306a36Sopenharmony_ci#define CLK_MMC2		104
13662306a36Sopenharmony_ci#define CLK_MMC2_OUTPUT		105
13762306a36Sopenharmony_ci#define CLK_MMC2_SAMPLE		106
13862306a36Sopenharmony_ci#define CLK_MMC3		107
13962306a36Sopenharmony_ci#define CLK_MMC3_OUTPUT		108
14062306a36Sopenharmony_ci#define CLK_MMC3_SAMPLE		109
14162306a36Sopenharmony_ci#define CLK_TS			110
14262306a36Sopenharmony_ci#define CLK_SS			111
14362306a36Sopenharmony_ci#define CLK_SPI0		112
14462306a36Sopenharmony_ci#define CLK_SPI1		113
14562306a36Sopenharmony_ci#define CLK_SPI2		114
14662306a36Sopenharmony_ci#define CLK_PATA		115
14762306a36Sopenharmony_ci#define CLK_IR0			116
14862306a36Sopenharmony_ci#define CLK_IR1			117
14962306a36Sopenharmony_ci#define CLK_I2S0		118
15062306a36Sopenharmony_ci#define CLK_AC97		119
15162306a36Sopenharmony_ci#define CLK_SPDIF		120
15262306a36Sopenharmony_ci#define CLK_KEYPAD		121
15362306a36Sopenharmony_ci#define CLK_SATA		122
15462306a36Sopenharmony_ci#define CLK_USB_OHCI0		123
15562306a36Sopenharmony_ci#define CLK_USB_OHCI1		124
15662306a36Sopenharmony_ci#define CLK_USB_PHY		125
15762306a36Sopenharmony_ci#define CLK_GPS			126
15862306a36Sopenharmony_ci#define CLK_SPI3		127
15962306a36Sopenharmony_ci#define CLK_I2S1		128
16062306a36Sopenharmony_ci#define CLK_I2S2		129
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ci/* DRAM Gates */
16362306a36Sopenharmony_ci#define CLK_DRAM_VE		130
16462306a36Sopenharmony_ci#define CLK_DRAM_CSI0		131
16562306a36Sopenharmony_ci#define CLK_DRAM_CSI1		132
16662306a36Sopenharmony_ci#define CLK_DRAM_TS		133
16762306a36Sopenharmony_ci#define CLK_DRAM_TVD		134
16862306a36Sopenharmony_ci#define CLK_DRAM_TVE0		135
16962306a36Sopenharmony_ci#define CLK_DRAM_TVE1		136
17062306a36Sopenharmony_ci#define CLK_DRAM_OUT		137
17162306a36Sopenharmony_ci#define CLK_DRAM_DE_FE1		138
17262306a36Sopenharmony_ci#define CLK_DRAM_DE_FE0		139
17362306a36Sopenharmony_ci#define CLK_DRAM_DE_BE0		140
17462306a36Sopenharmony_ci#define CLK_DRAM_DE_BE1		141
17562306a36Sopenharmony_ci#define CLK_DRAM_MP		142
17662306a36Sopenharmony_ci#define CLK_DRAM_ACE		143
17762306a36Sopenharmony_ci
17862306a36Sopenharmony_ci/* Display Engine Clocks */
17962306a36Sopenharmony_ci#define CLK_DE_BE0		144
18062306a36Sopenharmony_ci#define CLK_DE_BE1		145
18162306a36Sopenharmony_ci#define CLK_DE_FE0		146
18262306a36Sopenharmony_ci#define CLK_DE_FE1		147
18362306a36Sopenharmony_ci#define CLK_DE_MP		148
18462306a36Sopenharmony_ci#define CLK_TCON0_CH0		149
18562306a36Sopenharmony_ci#define CLK_TCON1_CH0		150
18662306a36Sopenharmony_ci#define CLK_CSI_SCLK		151
18762306a36Sopenharmony_ci#define CLK_TVD_SCLK2		152
18862306a36Sopenharmony_ci#define CLK_TVD			153
18962306a36Sopenharmony_ci#define CLK_TCON0_CH1_SCLK2	154
19062306a36Sopenharmony_ci#define CLK_TCON0_CH1		155
19162306a36Sopenharmony_ci#define CLK_TCON1_CH1_SCLK2	156
19262306a36Sopenharmony_ci#define CLK_TCON1_CH1		157
19362306a36Sopenharmony_ci#define CLK_CSI0		158
19462306a36Sopenharmony_ci#define CLK_CSI1		159
19562306a36Sopenharmony_ci#define CLK_CODEC		160
19662306a36Sopenharmony_ci#define CLK_VE			161
19762306a36Sopenharmony_ci#define CLK_AVS			162
19862306a36Sopenharmony_ci#define CLK_ACE			163
19962306a36Sopenharmony_ci#define CLK_HDMI		164
20062306a36Sopenharmony_ci#define CLK_GPU			165
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci#endif /* _DT_BINDINGS_CLK_SUN4I_A10_H_ */
203