xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/stratix10-clock.h (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright (C) 2017, Intel Corporation
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef __STRATIX10_CLOCK_H
7*c66ec88fSEmmanuel Vadot #define __STRATIX10_CLOCK_H
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot /* fixed rate clocks */
10*c66ec88fSEmmanuel Vadot #define STRATIX10_OSC1			0
11*c66ec88fSEmmanuel Vadot #define STRATIX10_CB_INTOSC_HS_DIV2_CLK	1
12*c66ec88fSEmmanuel Vadot #define STRATIX10_CB_INTOSC_LS_CLK	2
13*c66ec88fSEmmanuel Vadot #define STRATIX10_F2S_FREE_CLK		3
14*c66ec88fSEmmanuel Vadot 
15*c66ec88fSEmmanuel Vadot /* fixed factor clocks */
16*c66ec88fSEmmanuel Vadot #define STRATIX10_L4_SYS_FREE_CLK	4
17*c66ec88fSEmmanuel Vadot #define STRATIX10_MPU_PERIPH_CLK	5
18*c66ec88fSEmmanuel Vadot #define STRATIX10_MPU_L2RAM_CLK		6
19*c66ec88fSEmmanuel Vadot #define STRATIX10_SDMMC_CIU_CLK		7
20*c66ec88fSEmmanuel Vadot 
21*c66ec88fSEmmanuel Vadot /* PLL clocks */
22*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_PLL_CLK		8
23*c66ec88fSEmmanuel Vadot #define STRATIX10_PERIPH_PLL_CLK	9
24*c66ec88fSEmmanuel Vadot #define STRATIX10_BOOT_CLK		10
25*c66ec88fSEmmanuel Vadot 
26*c66ec88fSEmmanuel Vadot /* Periph clocks */
27*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_MPU_BASE_CLK	11
28*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_NOC_BASE_CLK	12
29*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_EMACA_CLK	13
30*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_EMACB_CLK	14
31*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_EMAC_PTP_CLK	15
32*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_GPIO_DB_CLK	16
33*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_SDMMC_CLK	17
34*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_S2F_USR0_CLK	18
35*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_S2F_USR1_CLK	19
36*c66ec88fSEmmanuel Vadot #define STRATIX10_MAIN_PSI_REF_CLK	20
37*c66ec88fSEmmanuel Vadot 
38*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_MPU_BASE_CLK	21
39*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_NOC_BASE_CLK	22
40*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_EMACA_CLK	23
41*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_EMACB_CLK	24
42*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_EMAC_PTP_CLK	25
43*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_GPIO_DB_CLK	26
44*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_SDMMC_CLK	27
45*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_S2F_USR0_CLK	28
46*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_S2F_USR1_CLK	29
47*c66ec88fSEmmanuel Vadot #define STRATIX10_PERI_PSI_REF_CLK	30
48*c66ec88fSEmmanuel Vadot 
49*c66ec88fSEmmanuel Vadot #define STRATIX10_MPU_FREE_CLK		31
50*c66ec88fSEmmanuel Vadot #define STRATIX10_NOC_FREE_CLK		32
51*c66ec88fSEmmanuel Vadot #define STRATIX10_S2F_USR0_CLK		33
52*c66ec88fSEmmanuel Vadot #define STRATIX10_NOC_CLK		34
53*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC_A_FREE_CLK	35
54*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC_B_FREE_CLK	36
55*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC_PTP_FREE_CLK	37
56*c66ec88fSEmmanuel Vadot #define STRATIX10_GPIO_DB_FREE_CLK	38
57*c66ec88fSEmmanuel Vadot #define STRATIX10_SDMMC_FREE_CLK	39
58*c66ec88fSEmmanuel Vadot #define STRATIX10_S2F_USER1_FREE_CLK	40
59*c66ec88fSEmmanuel Vadot #define STRATIX10_PSI_REF_FREE_CLK	41
60*c66ec88fSEmmanuel Vadot 
61*c66ec88fSEmmanuel Vadot /* Gate clocks */
62*c66ec88fSEmmanuel Vadot #define STRATIX10_MPU_CLK		42
63*c66ec88fSEmmanuel Vadot #define STRATIX10_L4_MAIN_CLK		43
64*c66ec88fSEmmanuel Vadot #define STRATIX10_L4_MP_CLK		44
65*c66ec88fSEmmanuel Vadot #define STRATIX10_L4_SP_CLK		45
66*c66ec88fSEmmanuel Vadot #define STRATIX10_CS_AT_CLK		46
67*c66ec88fSEmmanuel Vadot #define STRATIX10_CS_TRACE_CLK		47
68*c66ec88fSEmmanuel Vadot #define STRATIX10_CS_PDBG_CLK		48
69*c66ec88fSEmmanuel Vadot #define STRATIX10_CS_TIMER_CLK		49
70*c66ec88fSEmmanuel Vadot #define STRATIX10_S2F_USER0_CLK		50
71*c66ec88fSEmmanuel Vadot #define STRATIX10_S2F_USER1_CLK		51
72*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC0_CLK		52
73*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC1_CLK		53
74*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC2_CLK		54
75*c66ec88fSEmmanuel Vadot #define STRATIX10_EMAC_PTP_CLK		55
76*c66ec88fSEmmanuel Vadot #define STRATIX10_GPIO_DB_CLK		56
77*c66ec88fSEmmanuel Vadot #define STRATIX10_SDMMC_CLK		57
78*c66ec88fSEmmanuel Vadot #define STRATIX10_PSI_REF_CLK		58
79*c66ec88fSEmmanuel Vadot #define STRATIX10_USB_CLK		59
80*c66ec88fSEmmanuel Vadot #define STRATIX10_SPI_M_CLK		60
81*c66ec88fSEmmanuel Vadot #define STRATIX10_NAND_CLK		61
82*c66ec88fSEmmanuel Vadot #define STRATIX10_NAND_X_CLK		62
83*c66ec88fSEmmanuel Vadot #define STRATIX10_NAND_ECC_CLK		63
84*c66ec88fSEmmanuel Vadot #define STRATIX10_NUM_CLKS		64
85*c66ec88fSEmmanuel Vadot 
86*c66ec88fSEmmanuel Vadot #endif	/* __STRATIX10_CLOCK_H */
87