18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later OR MIT */
28c2ecf20Sopenharmony_ci#ifndef DT_BINDINGS_AST2600_CLOCK_H
38c2ecf20Sopenharmony_ci#define DT_BINDINGS_AST2600_CLOCK_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_ECLK		0
68c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_GCLK		1
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_MCLK		2
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_VCLK		3
118c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_BCLK		4
128c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_DCLK		5
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_LCLK		6
158c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_LHCCLK		7
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_D1CLK		8
188c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_YCLK		9
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_REF0CLK		10
218c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_REF1CLK		11
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_ESPICLK		12
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_USBUHCICLK	13
268c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_USBPORT1CLK	14
278c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_USBPORT2CLK	15
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_RSACLK		16
308c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_RVASCLK		17
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_MAC1CLK		18
338c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_MAC2CLK		19
348c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_MAC3CLK		20
358c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_MAC4CLK		21
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART1CLK	22
388c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART2CLK	23
398c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART3CLK	24
408c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART4CLK	25
418c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART5CLK	26
428c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART6CLK	27
438c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART7CLK	28
448c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART8CLK	29
458c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART9CLK	30
468c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART10CLK	31
478c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART11CLK	32
488c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART12CLK	33
498c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_UART13CLK	34
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_SDCLK		35
528c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_EMMCCLK		36
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C0CLK		37
558c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C1CLK		38
568c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C2CLK		39
578c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C3CLK		40
588c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C4CLK		41
598c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C5CLK		42
608c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C6CLK		43
618c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_I3C7CLK		44
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#define ASPEED_CLK_GATE_FSICLK		45
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci#define ASPEED_CLK_HPLL			46
668c2ecf20Sopenharmony_ci#define ASPEED_CLK_MPLL			47
678c2ecf20Sopenharmony_ci#define ASPEED_CLK_DPLL			48
688c2ecf20Sopenharmony_ci#define ASPEED_CLK_EPLL			49
698c2ecf20Sopenharmony_ci#define ASPEED_CLK_APLL			50
708c2ecf20Sopenharmony_ci#define ASPEED_CLK_AHB			51
718c2ecf20Sopenharmony_ci#define ASPEED_CLK_APB1			52
728c2ecf20Sopenharmony_ci#define ASPEED_CLK_APB2			53
738c2ecf20Sopenharmony_ci#define ASPEED_CLK_BCLK			54
748c2ecf20Sopenharmony_ci#define ASPEED_CLK_D1CLK		55
758c2ecf20Sopenharmony_ci#define ASPEED_CLK_VCLK			56
768c2ecf20Sopenharmony_ci#define ASPEED_CLK_LHCLK		57
778c2ecf20Sopenharmony_ci#define ASPEED_CLK_UART			58
788c2ecf20Sopenharmony_ci#define ASPEED_CLK_UARTX		59
798c2ecf20Sopenharmony_ci#define ASPEED_CLK_SDIO			60
808c2ecf20Sopenharmony_ci#define ASPEED_CLK_EMMC			61
818c2ecf20Sopenharmony_ci#define ASPEED_CLK_ECLK			62
828c2ecf20Sopenharmony_ci#define ASPEED_CLK_ECLK_MUX		63
838c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC12		64
848c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC34		65
858c2ecf20Sopenharmony_ci#define ASPEED_CLK_USBPHY_40M		66
868c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC1RCLK		67
878c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC2RCLK		68
888c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC3RCLK		69
898c2ecf20Sopenharmony_ci#define ASPEED_CLK_MAC4RCLK		70
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci/* Only list resets here that are not part of a gate */
928c2ecf20Sopenharmony_ci#define ASPEED_RESET_ADC		55
938c2ecf20Sopenharmony_ci#define ASPEED_RESET_JTAG_MASTER2	54
948c2ecf20Sopenharmony_ci#define ASPEED_RESET_I3C_DMA		39
958c2ecf20Sopenharmony_ci#define ASPEED_RESET_PWM		37
968c2ecf20Sopenharmony_ci#define ASPEED_RESET_PECI		36
978c2ecf20Sopenharmony_ci#define ASPEED_RESET_MII		35
988c2ecf20Sopenharmony_ci#define ASPEED_RESET_I2C		34
998c2ecf20Sopenharmony_ci#define ASPEED_RESET_H2X		31
1008c2ecf20Sopenharmony_ci#define ASPEED_RESET_GP_MCU		30
1018c2ecf20Sopenharmony_ci#define ASPEED_RESET_DP_MCU		29
1028c2ecf20Sopenharmony_ci#define ASPEED_RESET_DP			28
1038c2ecf20Sopenharmony_ci#define ASPEED_RESET_RC_XDMA		27
1048c2ecf20Sopenharmony_ci#define ASPEED_RESET_GRAPHICS		26
1058c2ecf20Sopenharmony_ci#define ASPEED_RESET_DEV_XDMA		25
1068c2ecf20Sopenharmony_ci#define ASPEED_RESET_DEV_MCTP		24
1078c2ecf20Sopenharmony_ci#define ASPEED_RESET_RC_MCTP		23
1088c2ecf20Sopenharmony_ci#define ASPEED_RESET_JTAG_MASTER	22
1098c2ecf20Sopenharmony_ci#define ASPEED_RESET_PCIE_DEV_O		21
1108c2ecf20Sopenharmony_ci#define ASPEED_RESET_PCIE_DEV_OEN	20
1118c2ecf20Sopenharmony_ci#define ASPEED_RESET_PCIE_RC_O		19
1128c2ecf20Sopenharmony_ci#define ASPEED_RESET_PCIE_RC_OEN	18
1138c2ecf20Sopenharmony_ci#define ASPEED_RESET_PCI_DP		5
1148c2ecf20Sopenharmony_ci#define ASPEED_RESET_AHB		1
1158c2ecf20Sopenharmony_ci#define ASPEED_RESET_SDRAM		0
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci#endif
118