xref: /linux/include/dt-bindings/clock/aspeed,ast2700-scu.h (revision 80739fd00c7ea1315d362ce889bef499452913ef)
1*76c6217cSRyan Chen /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*76c6217cSRyan Chen /*
3*76c6217cSRyan Chen  * Device Tree binding constants for AST2700 clock controller.
4*76c6217cSRyan Chen  *
5*76c6217cSRyan Chen  * Copyright (c) 2024 Aspeed Technology Inc.
6*76c6217cSRyan Chen  */
7*76c6217cSRyan Chen 
8*76c6217cSRyan Chen #ifndef __DT_BINDINGS_CLOCK_AST2700_H
9*76c6217cSRyan Chen #define __DT_BINDINGS_CLOCK_AST2700_H
10*76c6217cSRyan Chen 
11*76c6217cSRyan Chen /* SOC0 clk */
12*76c6217cSRyan Chen #define SCU0_CLKIN		0
13*76c6217cSRyan Chen #define SCU0_CLK_24M		1
14*76c6217cSRyan Chen #define SCU0_CLK_192M		2
15*76c6217cSRyan Chen #define SCU0_CLK_UART		3
16*76c6217cSRyan Chen #define SCU0_CLK_UART_DIV13	3
17*76c6217cSRyan Chen #define SCU0_CLK_PSP		4
18*76c6217cSRyan Chen #define SCU0_CLK_HPLL		5
19*76c6217cSRyan Chen #define SCU0_CLK_HPLL_DIV2	6
20*76c6217cSRyan Chen #define SCU0_CLK_HPLL_DIV4	7
21*76c6217cSRyan Chen #define SCU0_CLK_HPLL_DIV_AHB	8
22*76c6217cSRyan Chen #define SCU0_CLK_DPLL		9
23*76c6217cSRyan Chen #define SCU0_CLK_MPLL		10
24*76c6217cSRyan Chen #define SCU0_CLK_MPLL_DIV2	11
25*76c6217cSRyan Chen #define SCU0_CLK_MPLL_DIV4	12
26*76c6217cSRyan Chen #define SCU0_CLK_MPLL_DIV8	13
27*76c6217cSRyan Chen #define SCU0_CLK_MPLL_DIV_AHB	14
28*76c6217cSRyan Chen #define SCU0_CLK_D0		15
29*76c6217cSRyan Chen #define SCU0_CLK_D1		16
30*76c6217cSRyan Chen #define SCU0_CLK_CRT0		17
31*76c6217cSRyan Chen #define SCU0_CLK_CRT1		18
32*76c6217cSRyan Chen #define SCU0_CLK_MPHY		19
33*76c6217cSRyan Chen #define SCU0_CLK_AXI0		20
34*76c6217cSRyan Chen #define SCU0_CLK_AXI1		21
35*76c6217cSRyan Chen #define SCU0_CLK_AHB		22
36*76c6217cSRyan Chen #define SCU0_CLK_APB		23
37*76c6217cSRyan Chen #define SCU0_CLK_UART4		24
38*76c6217cSRyan Chen #define SCU0_CLK_EMMCMUX	25
39*76c6217cSRyan Chen #define SCU0_CLK_EMMC		26
40*76c6217cSRyan Chen #define SCU0_CLK_U2PHY_CLK12M	27
41*76c6217cSRyan Chen #define SCU0_CLK_U2PHY_REFCLK	28
42*76c6217cSRyan Chen 
43*76c6217cSRyan Chen /* SOC0 clk-gate */
44*76c6217cSRyan Chen #define SCU0_CLK_GATE_MCLK	29
45*76c6217cSRyan Chen #define SCU0_CLK_GATE_ECLK	30
46*76c6217cSRyan Chen #define SCU0_CLK_GATE_2DCLK	31
47*76c6217cSRyan Chen #define SCU0_CLK_GATE_VCLK	32
48*76c6217cSRyan Chen #define SCU0_CLK_GATE_BCLK	33
49*76c6217cSRyan Chen #define SCU0_CLK_GATE_VGA0CLK	34
50*76c6217cSRyan Chen #define SCU0_CLK_GATE_REFCLK	35
51*76c6217cSRyan Chen #define SCU0_CLK_GATE_PORTBUSB2CLK	36
52*76c6217cSRyan Chen #define SCU0_CLK_GATE_UHCICLK	37
53*76c6217cSRyan Chen #define SCU0_CLK_GATE_VGA1CLK	38
54*76c6217cSRyan Chen #define SCU0_CLK_GATE_DDRPHYCLK	39
55*76c6217cSRyan Chen #define SCU0_CLK_GATE_E2M0CLK	40
56*76c6217cSRyan Chen #define SCU0_CLK_GATE_HACCLK	41
57*76c6217cSRyan Chen #define SCU0_CLK_GATE_PORTAUSB2CLK	42
58*76c6217cSRyan Chen #define SCU0_CLK_GATE_UART4CLK	43
59*76c6217cSRyan Chen #define SCU0_CLK_GATE_SLICLK	44
60*76c6217cSRyan Chen #define SCU0_CLK_GATE_DACCLK	45
61*76c6217cSRyan Chen #define SCU0_CLK_GATE_DP	46
62*76c6217cSRyan Chen #define SCU0_CLK_GATE_E2M1CLK	47
63*76c6217cSRyan Chen #define SCU0_CLK_GATE_CRT0CLK	48
64*76c6217cSRyan Chen #define SCU0_CLK_GATE_CRT1CLK	49
65*76c6217cSRyan Chen #define SCU0_CLK_GATE_ECDSACLK	50
66*76c6217cSRyan Chen #define SCU0_CLK_GATE_RSACLK	51
67*76c6217cSRyan Chen #define SCU0_CLK_GATE_RVAS0CLK	52
68*76c6217cSRyan Chen #define SCU0_CLK_GATE_UFSCLK	53
69*76c6217cSRyan Chen #define SCU0_CLK_GATE_EMMCCLK	54
70*76c6217cSRyan Chen #define SCU0_CLK_GATE_RVAS1CLK	55
71*76c6217cSRyan Chen 
72*76c6217cSRyan Chen /* SOC1 clk */
73*76c6217cSRyan Chen #define SCU1_CLKIN		0
74*76c6217cSRyan Chen #define SCU1_CLK_HPLL		1
75*76c6217cSRyan Chen #define SCU1_CLK_APLL		2
76*76c6217cSRyan Chen #define SCU1_CLK_APLL_DIV2	3
77*76c6217cSRyan Chen #define SCU1_CLK_APLL_DIV4	4
78*76c6217cSRyan Chen #define SCU1_CLK_DPLL		5
79*76c6217cSRyan Chen #define SCU1_CLK_UXCLK		6
80*76c6217cSRyan Chen #define SCU1_CLK_HUXCLK		7
81*76c6217cSRyan Chen #define SCU1_CLK_UARTX		8
82*76c6217cSRyan Chen #define SCU1_CLK_HUARTX		9
83*76c6217cSRyan Chen #define SCU1_CLK_AHB		10
84*76c6217cSRyan Chen #define SCU1_CLK_APB		11
85*76c6217cSRyan Chen #define SCU1_CLK_UART0		12
86*76c6217cSRyan Chen #define SCU1_CLK_UART1		13
87*76c6217cSRyan Chen #define SCU1_CLK_UART2		14
88*76c6217cSRyan Chen #define SCU1_CLK_UART3		15
89*76c6217cSRyan Chen #define SCU1_CLK_UART5		16
90*76c6217cSRyan Chen #define SCU1_CLK_UART6		17
91*76c6217cSRyan Chen #define SCU1_CLK_UART7		18
92*76c6217cSRyan Chen #define SCU1_CLK_UART8		19
93*76c6217cSRyan Chen #define SCU1_CLK_UART9		20
94*76c6217cSRyan Chen #define SCU1_CLK_UART10		21
95*76c6217cSRyan Chen #define SCU1_CLK_UART11		22
96*76c6217cSRyan Chen #define SCU1_CLK_UART12		23
97*76c6217cSRyan Chen #define SCU1_CLK_UART13		24
98*76c6217cSRyan Chen #define SCU1_CLK_UART14		25
99*76c6217cSRyan Chen #define SCU1_CLK_APLL_DIVN	26
100*76c6217cSRyan Chen #define SCU1_CLK_SDMUX		27
101*76c6217cSRyan Chen #define SCU1_CLK_SDCLK		28
102*76c6217cSRyan Chen #define SCU1_CLK_RMII		29
103*76c6217cSRyan Chen #define SCU1_CLK_RGMII		30
104*76c6217cSRyan Chen #define SCU1_CLK_MACHCLK	31
105*76c6217cSRyan Chen #define SCU1_CLK_MAC0RCLK	32
106*76c6217cSRyan Chen #define SCU1_CLK_MAC1RCLK	33
107*76c6217cSRyan Chen #define SCU1_CLK_CAN		34
108*76c6217cSRyan Chen 
109*76c6217cSRyan Chen /* SOC1 clk gate */
110*76c6217cSRyan Chen #define SCU1_CLK_GATE_LCLK0		35
111*76c6217cSRyan Chen #define SCU1_CLK_GATE_LCLK1		36
112*76c6217cSRyan Chen #define SCU1_CLK_GATE_ESPI0CLK		37
113*76c6217cSRyan Chen #define SCU1_CLK_GATE_ESPI1CLK		38
114*76c6217cSRyan Chen #define SCU1_CLK_GATE_SDCLK		39
115*76c6217cSRyan Chen #define SCU1_CLK_GATE_IPEREFCLK		40
116*76c6217cSRyan Chen #define SCU1_CLK_GATE_REFCLK		41
117*76c6217cSRyan Chen #define SCU1_CLK_GATE_LPCHCLK		42
118*76c6217cSRyan Chen #define SCU1_CLK_GATE_MAC0CLK		43
119*76c6217cSRyan Chen #define SCU1_CLK_GATE_MAC1CLK		44
120*76c6217cSRyan Chen #define SCU1_CLK_GATE_MAC2CLK		45
121*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART0CLK		46
122*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART1CLK		47
123*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART2CLK		48
124*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART3CLK		49
125*76c6217cSRyan Chen #define SCU1_CLK_GATE_I2CCLK		50
126*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C0CLK		51
127*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C1CLK		52
128*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C2CLK		53
129*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C3CLK		54
130*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C4CLK		55
131*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C5CLK		56
132*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C6CLK		57
133*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C7CLK		58
134*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C8CLK		59
135*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C9CLK		60
136*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C10CLK		61
137*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C11CLK		62
138*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C12CLK		63
139*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C13CLK		64
140*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C14CLK		65
141*76c6217cSRyan Chen #define SCU1_CLK_GATE_I3C15CLK		66
142*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART5CLK		67
143*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART6CLK		68
144*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART7CLK		69
145*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART8CLK		70
146*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART9CLK		71
147*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART10CLK		72
148*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART11CLK		73
149*76c6217cSRyan Chen #define SCU1_CLK_GATE_UART12CLK		74
150*76c6217cSRyan Chen #define SCU1_CLK_GATE_FSICLK		75
151*76c6217cSRyan Chen #define SCU1_CLK_GATE_LTPIPHYCLK	76
152*76c6217cSRyan Chen #define SCU1_CLK_GATE_LTPICLK		77
153*76c6217cSRyan Chen #define SCU1_CLK_GATE_VGALCLK		78
154*76c6217cSRyan Chen #define SCU1_CLK_GATE_UHCICLK		79
155*76c6217cSRyan Chen #define SCU1_CLK_GATE_CANCLK		80
156*76c6217cSRyan Chen #define SCU1_CLK_GATE_PCICLK		81
157*76c6217cSRyan Chen #define SCU1_CLK_GATE_SLICLK		82
158*76c6217cSRyan Chen #define SCU1_CLK_GATE_E2MCLK		83
159*76c6217cSRyan Chen #define SCU1_CLK_GATE_PORTCUSB2CLK	84
160*76c6217cSRyan Chen #define SCU1_CLK_GATE_PORTDUSB2CLK	85
161*76c6217cSRyan Chen #define SCU1_CLK_GATE_LTPI1TXCLK	86
162*76c6217cSRyan Chen 
163*76c6217cSRyan Chen #endif
164