xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/hix5hd2-clock.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright (c) 2014 Linaro Ltd.
4*c66ec88fSEmmanuel Vadot  * Copyright (c) 2014 Hisilicon Limited.
5*c66ec88fSEmmanuel Vadot  */
6*c66ec88fSEmmanuel Vadot 
7*c66ec88fSEmmanuel Vadot #ifndef __DTS_HIX5HD2_CLOCK_H
8*c66ec88fSEmmanuel Vadot #define __DTS_HIX5HD2_CLOCK_H
9*c66ec88fSEmmanuel Vadot 
10*c66ec88fSEmmanuel Vadot /* fixed rate */
11*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_1200M		1
12*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_400M		2
13*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_48M		3
14*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_24M		4
15*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_600M		5
16*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_300M		6
17*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_75M		7
18*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_200M		8
19*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_100M		9
20*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_40M		10
21*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_150M		11
22*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_1728M		12
23*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_28P8M		13
24*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_432M		14
25*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_345P6M		15
26*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_288M		16
27*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_60M		17
28*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_750M		18
29*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_500M		19
30*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_54M		20
31*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_27M		21
32*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_1500M		22
33*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_375M		23
34*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_187M		24
35*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_250M		25
36*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_125M		26
37*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_2P02M		27
38*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_50M		28
39*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_25M		29
40*c66ec88fSEmmanuel Vadot #define HIX5HD2_FIXED_83M		30
41*c66ec88fSEmmanuel Vadot 
42*c66ec88fSEmmanuel Vadot /* mux clocks */
43*c66ec88fSEmmanuel Vadot #define HIX5HD2_SFC_MUX			64
44*c66ec88fSEmmanuel Vadot #define HIX5HD2_MMC_MUX			65
45*c66ec88fSEmmanuel Vadot #define HIX5HD2_FEPHY_MUX		66
46*c66ec88fSEmmanuel Vadot #define HIX5HD2_SD_MUX			67
47*c66ec88fSEmmanuel Vadot 
48*c66ec88fSEmmanuel Vadot /* gate clocks */
49*c66ec88fSEmmanuel Vadot #define HIX5HD2_SFC_RST			128
50*c66ec88fSEmmanuel Vadot #define HIX5HD2_SFC_CLK			129
51*c66ec88fSEmmanuel Vadot #define HIX5HD2_MMC_CIU_CLK		130
52*c66ec88fSEmmanuel Vadot #define HIX5HD2_MMC_BIU_CLK		131
53*c66ec88fSEmmanuel Vadot #define HIX5HD2_MMC_CIU_RST		132
54*c66ec88fSEmmanuel Vadot #define HIX5HD2_FWD_BUS_CLK		133
55*c66ec88fSEmmanuel Vadot #define HIX5HD2_FWD_SYS_CLK		134
56*c66ec88fSEmmanuel Vadot #define HIX5HD2_MAC0_PHY_CLK		135
57*c66ec88fSEmmanuel Vadot #define HIX5HD2_SD_CIU_CLK		136
58*c66ec88fSEmmanuel Vadot #define HIX5HD2_SD_BIU_CLK		137
59*c66ec88fSEmmanuel Vadot #define HIX5HD2_SD_CIU_RST		138
60*c66ec88fSEmmanuel Vadot #define HIX5HD2_WDG0_CLK		139
61*c66ec88fSEmmanuel Vadot #define HIX5HD2_WDG0_RST		140
62*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C0_CLK		141
63*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C0_RST		142
64*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C1_CLK		143
65*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C1_RST		144
66*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C2_CLK		145
67*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C2_RST		146
68*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C3_CLK		147
69*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C3_RST		148
70*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C4_CLK		149
71*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C4_RST		150
72*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C5_CLK		151
73*c66ec88fSEmmanuel Vadot #define HIX5HD2_I2C5_RST		152
74*c66ec88fSEmmanuel Vadot 
75*c66ec88fSEmmanuel Vadot /* complex */
76*c66ec88fSEmmanuel Vadot #define HIX5HD2_MAC0_CLK		192
77*c66ec88fSEmmanuel Vadot #define HIX5HD2_MAC1_CLK		193
78*c66ec88fSEmmanuel Vadot #define HIX5HD2_SATA_CLK		194
79*c66ec88fSEmmanuel Vadot #define HIX5HD2_USB_CLK			195
80*c66ec88fSEmmanuel Vadot 
81*c66ec88fSEmmanuel Vadot #define HIX5HD2_NR_CLKS			256
82*c66ec88fSEmmanuel Vadot #endif	/* __DTS_HIX5HD2_CLOCK_H */
83