summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/clock/hi3559av100-clock.h
blob: a4f0e997546c7337f29fbe7e77370241012059f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause */
/*
 * Copyright (c) 2019-2020, Huawei Tech. Co., Ltd.
 *
 * Author: Dongjiu Geng <gengdongjiu@huawei.com>
 */

#ifndef __DTS_HI3559AV100_CLOCK_H
#define __DTS_HI3559AV100_CLOCK_H

/*  fixed   rate    */
#define HI3559AV100_FIXED_1188M     1
#define HI3559AV100_FIXED_1000M     2
#define HI3559AV100_FIXED_842M      3
#define HI3559AV100_FIXED_792M      4
#define HI3559AV100_FIXED_750M      5
#define HI3559AV100_FIXED_710M      6
#define HI3559AV100_FIXED_680M      7
#define HI3559AV100_FIXED_667M      8
#define HI3559AV100_FIXED_631M      9
#define HI3559AV100_FIXED_600M      10
#define HI3559AV100_FIXED_568M      11
#define HI3559AV100_FIXED_500M      12
#define HI3559AV100_FIXED_475M      13
#define HI3559AV100_FIXED_428M      14
#define HI3559AV100_FIXED_400M      15
#define HI3559AV100_FIXED_396M      16
#define HI3559AV100_FIXED_300M      17
#define HI3559AV100_FIXED_250M      18
#define HI3559AV100_FIXED_198M      19
#define HI3559AV100_FIXED_187p5M    20
#define HI3559AV100_FIXED_150M      21
#define HI3559AV100_FIXED_148p5M    22
#define HI3559AV100_FIXED_125M      23
#define HI3559AV100_FIXED_107M      24
#define HI3559AV100_FIXED_100M      25
#define HI3559AV100_FIXED_99M       26
#define HI3559AV100_FIXED_74p25M    27
#define HI3559AV100_FIXED_72M       28
#define HI3559AV100_FIXED_60M       29
#define HI3559AV100_FIXED_54M       30
#define HI3559AV100_FIXED_50M       31
#define HI3559AV100_FIXED_49p5M     32
#define HI3559AV100_FIXED_37p125M   33
#define HI3559AV100_FIXED_36M       34
#define HI3559AV100_FIXED_32p4M     35
#define HI3559AV100_FIXED_27M       36
#define HI3559AV100_FIXED_25M       37
#define HI3559AV100_FIXED_24M       38
#define HI3559AV100_FIXED_12M       39
#define HI3559AV100_FIXED_3M        40
#define HI3559AV100_FIXED_1p6M      41
#define HI3559AV100_FIXED_400K      42
#define HI3559AV100_FIXED_100K      43
#define HI3559AV100_FIXED_200M      44
#define HI3559AV100_FIXED_75M       75

#define HI3559AV100_I2C0_CLK    50
#define HI3559AV100_I2C1_CLK    51
#define HI3559AV100_I2C2_CLK    52
#define HI3559AV100_I2C3_CLK    53
#define HI3559AV100_I2C4_CLK    54
#define HI3559AV100_I2C5_CLK    55
#define HI3559AV100_I2C6_CLK    56
#define HI3559AV100_I2C7_CLK    57
#define HI3559AV100_I2C8_CLK    58
#define HI3559AV100_I2C9_CLK    59
#define HI3559AV100_I2C10_CLK   60
#define HI3559AV100_I2C11_CLK   61

#define HI3559AV100_SPI0_CLK    62
#define HI3559AV100_SPI1_CLK    63
#define HI3559AV100_SPI2_CLK    64
#define HI3559AV100_SPI3_CLK    65
#define HI3559AV100_SPI4_CLK    66
#define HI3559AV100_SPI5_CLK    67
#define HI3559AV100_SPI6_CLK    68

#define HI3559AV100_EDMAC_CLK     69
#define HI3559AV100_EDMAC_AXICLK  70
#define HI3559AV100_EDMAC1_CLK    71
#define HI3559AV100_EDMAC1_AXICLK 72
#define HI3559AV100_VDMAC_CLK     73

/*  mux clocks  */
#define HI3559AV100_FMC_MUX     80
#define HI3559AV100_SYSAPB_MUX  81
#define HI3559AV100_UART_MUX    82
#define HI3559AV100_SYSBUS_MUX  83
#define HI3559AV100_A73_MUX     84
#define HI3559AV100_MMC0_MUX    85
#define HI3559AV100_MMC1_MUX    86
#define HI3559AV100_MMC2_MUX    87
#define HI3559AV100_MMC3_MUX    88

/*  gate    clocks  */
#define HI3559AV100_FMC_CLK     90
#define HI3559AV100_UART0_CLK   91
#define HI3559AV100_UART1_CLK   92
#define HI3559AV100_UART2_CLK   93
#define HI3559AV100_UART3_CLK   94
#define HI3559AV100_UART4_CLK   95
#define HI3559AV100_MMC0_CLK    96
#define HI3559AV100_MMC1_CLK    97
#define HI3559AV100_MMC2_CLK    98
#define HI3559AV100_MMC3_CLK    99

#define HI3559AV100_ETH_CLK         100
#define HI3559AV100_ETH_MACIF_CLK   101
#define HI3559AV100_ETH1_CLK        102
#define HI3559AV100_ETH1_MACIF_CLK  103

/*  complex */
#define HI3559AV100_MAC0_CLK                110
#define HI3559AV100_MAC1_CLK                111
#define HI3559AV100_SATA_CLK                112
#define HI3559AV100_USB_CLK                 113
#define HI3559AV100_USB1_CLK                114

/* pll clocks */
#define HI3559AV100_APLL_CLK                250
#define HI3559AV100_GPLL_CLK                251

#define HI3559AV100_CRG_NR_CLKS	            256

#define HI3559AV100_SHUB_SOURCE_SOC_24M	    0
#define HI3559AV100_SHUB_SOURCE_SOC_200M    1
#define HI3559AV100_SHUB_SOURCE_SOC_300M    2
#define HI3559AV100_SHUB_SOURCE_PLL         3
#define HI3559AV100_SHUB_SOURCE_CLK         4

#define HI3559AV100_SHUB_I2C0_CLK           10
#define HI3559AV100_SHUB_I2C1_CLK           11
#define HI3559AV100_SHUB_I2C2_CLK           12
#define HI3559AV100_SHUB_I2C3_CLK           13
#define HI3559AV100_SHUB_I2C4_CLK           14
#define HI3559AV100_SHUB_I2C5_CLK           15
#define HI3559AV100_SHUB_I2C6_CLK           16
#define HI3559AV100_SHUB_I2C7_CLK           17

#define HI3559AV100_SHUB_SPI_SOURCE_CLK     20
#define HI3559AV100_SHUB_SPI4_SOURCE_CLK    21
#define HI3559AV100_SHUB_SPI0_CLK           22
#define HI3559AV100_SHUB_SPI1_CLK           23
#define HI3559AV100_SHUB_SPI2_CLK           24
#define HI3559AV100_SHUB_SPI3_CLK           25
#define HI3559AV100_SHUB_SPI4_CLK           26

#define HI3559AV100_SHUB_UART_CLK_32K       30
#define HI3559AV100_SHUB_UART_SOURCE_CLK    31
#define HI3559AV100_SHUB_UART_DIV_CLK       32
#define HI3559AV100_SHUB_UART0_CLK          33
#define HI3559AV100_SHUB_UART1_CLK          34
#define HI3559AV100_SHUB_UART2_CLK          35
#define HI3559AV100_SHUB_UART3_CLK          36
#define HI3559AV100_SHUB_UART4_CLK          37
#define HI3559AV100_SHUB_UART5_CLK          38
#define HI3559AV100_SHUB_UART6_CLK          39

#define HI3559AV100_SHUB_EDMAC_CLK          40

#define HI3559AV100_SHUB_NR_CLKS            50

#endif  /* __DTS_HI3559AV100_CLOCK_H */