xref: /linux/include/dt-bindings/clock/fsd-clk.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*d6dc6753SAlim Akhtar /* SPDX-License-Identifier: GPL-2.0 */
2*d6dc6753SAlim Akhtar /*
3*d6dc6753SAlim Akhtar  * Copyright (c) 2017 - 2022: Samsung Electronics Co., Ltd.
4*d6dc6753SAlim Akhtar  *             https://www.samsung.com
5*d6dc6753SAlim Akhtar  * Copyright (c) 2017-2022 Tesla, Inc.
6*d6dc6753SAlim Akhtar  *             https://www.tesla.com
7*d6dc6753SAlim Akhtar  *
8*d6dc6753SAlim Akhtar  * The constants defined in this header are being used in dts
9*d6dc6753SAlim Akhtar  * and fsd platform driver.
10*d6dc6753SAlim Akhtar  */
11*d6dc6753SAlim Akhtar 
12*d6dc6753SAlim Akhtar #ifndef _DT_BINDINGS_CLOCK_FSD_H
13*d6dc6753SAlim Akhtar #define _DT_BINDINGS_CLOCK_FSD_H
14*d6dc6753SAlim Akhtar 
15*d6dc6753SAlim Akhtar /* CMU */
16*d6dc6753SAlim Akhtar #define DOUT_CMU_PLL_SHARED0_DIV4		1
17*d6dc6753SAlim Akhtar #define DOUT_CMU_PERIC_SHARED1DIV36		2
18*d6dc6753SAlim Akhtar #define DOUT_CMU_PERIC_SHARED0DIV3_TBUCLK	3
19*d6dc6753SAlim Akhtar #define DOUT_CMU_PERIC_SHARED0DIV20		4
20*d6dc6753SAlim Akhtar #define DOUT_CMU_PERIC_SHARED1DIV4_DMACLK	5
21*d6dc6753SAlim Akhtar #define DOUT_CMU_PLL_SHARED0_DIV6		6
22*d6dc6753SAlim Akhtar #define DOUT_CMU_FSYS0_SHARED1DIV4		7
23*d6dc6753SAlim Akhtar #define DOUT_CMU_FSYS0_SHARED0DIV4		8
24*d6dc6753SAlim Akhtar #define DOUT_CMU_FSYS1_SHARED0DIV8		9
25*d6dc6753SAlim Akhtar #define DOUT_CMU_FSYS1_SHARED0DIV4		10
26*d6dc6753SAlim Akhtar #define CMU_CPUCL_SWITCH_GATE			11
27*d6dc6753SAlim Akhtar #define DOUT_CMU_IMEM_TCUCLK			12
28*d6dc6753SAlim Akhtar #define DOUT_CMU_IMEM_ACLK			13
29*d6dc6753SAlim Akhtar #define DOUT_CMU_IMEM_DMACLK			14
30*d6dc6753SAlim Akhtar #define GAT_CMU_FSYS0_SHARED0DIV4		15
31*d6dc6753SAlim Akhtar #define CMU_NR_CLK				16
32*d6dc6753SAlim Akhtar 
33*d6dc6753SAlim Akhtar /* PERIC */
34*d6dc6753SAlim Akhtar #define PERIC_SCLK_UART0			1
35*d6dc6753SAlim Akhtar #define PERIC_PCLK_UART0			2
36*d6dc6753SAlim Akhtar #define PERIC_SCLK_UART1			3
37*d6dc6753SAlim Akhtar #define PERIC_PCLK_UART1			4
38*d6dc6753SAlim Akhtar #define PERIC_DMA0_IPCLKPORT_ACLK		5
39*d6dc6753SAlim Akhtar #define PERIC_DMA1_IPCLKPORT_ACLK		6
40*d6dc6753SAlim Akhtar #define PERIC_PWM0_IPCLKPORT_I_PCLK_S0		7
41*d6dc6753SAlim Akhtar #define PERIC_PWM1_IPCLKPORT_I_PCLK_S0		8
42*d6dc6753SAlim Akhtar #define PERIC_PCLK_SPI0                         9
43*d6dc6753SAlim Akhtar #define PERIC_SCLK_SPI0                         10
44*d6dc6753SAlim Akhtar #define PERIC_PCLK_SPI1                         11
45*d6dc6753SAlim Akhtar #define PERIC_SCLK_SPI1                         12
46*d6dc6753SAlim Akhtar #define PERIC_PCLK_SPI2                         13
47*d6dc6753SAlim Akhtar #define PERIC_SCLK_SPI2                         14
48*d6dc6753SAlim Akhtar #define PERIC_PCLK_TDM0                         15
49*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C0			16
50*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C1			17
51*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C2			18
52*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C3			19
53*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C4			20
54*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C5			21
55*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C6			22
56*d6dc6753SAlim Akhtar #define PERIC_PCLK_HSI2C7			23
57*d6dc6753SAlim Akhtar #define PERIC_MCAN0_IPCLKPORT_CCLK		24
58*d6dc6753SAlim Akhtar #define PERIC_MCAN0_IPCLKPORT_PCLK		25
59*d6dc6753SAlim Akhtar #define PERIC_MCAN1_IPCLKPORT_CCLK		26
60*d6dc6753SAlim Akhtar #define PERIC_MCAN1_IPCLKPORT_PCLK		27
61*d6dc6753SAlim Akhtar #define PERIC_MCAN2_IPCLKPORT_CCLK		28
62*d6dc6753SAlim Akhtar #define PERIC_MCAN2_IPCLKPORT_PCLK		29
63*d6dc6753SAlim Akhtar #define PERIC_MCAN3_IPCLKPORT_CCLK		30
64*d6dc6753SAlim Akhtar #define PERIC_MCAN3_IPCLKPORT_PCLK		31
65*d6dc6753SAlim Akhtar #define PERIC_PCLK_ADCIF			32
66*d6dc6753SAlim Akhtar #define PERIC_EQOS_TOP_IPCLKPORT_CLK_PTP_REF_I  33
67*d6dc6753SAlim Akhtar #define PERIC_EQOS_TOP_IPCLKPORT_ACLK_I		34
68*d6dc6753SAlim Akhtar #define PERIC_EQOS_TOP_IPCLKPORT_HCLK_I		35
69*d6dc6753SAlim Akhtar #define PERIC_EQOS_TOP_IPCLKPORT_RGMII_CLK_I	36
70*d6dc6753SAlim Akhtar #define PERIC_EQOS_TOP_IPCLKPORT_CLK_RX_I	37
71*d6dc6753SAlim Akhtar #define PERIC_BUS_D_PERIC_IPCLKPORT_EQOSCLK	38
72*d6dc6753SAlim Akhtar #define PERIC_BUS_P_PERIC_IPCLKPORT_EQOSCLK	39
73*d6dc6753SAlim Akhtar #define PERIC_HCLK_TDM0				40
74*d6dc6753SAlim Akhtar #define PERIC_PCLK_TDM1				41
75*d6dc6753SAlim Akhtar #define PERIC_HCLK_TDM1				42
76*d6dc6753SAlim Akhtar #define PERIC_EQOS_PHYRXCLK_MUX			43
77*d6dc6753SAlim Akhtar #define PERIC_EQOS_PHYRXCLK			44
78*d6dc6753SAlim Akhtar #define PERIC_DOUT_RGMII_CLK			45
79*d6dc6753SAlim Akhtar #define PERIC_NR_CLK				46
80*d6dc6753SAlim Akhtar 
81*d6dc6753SAlim Akhtar /* FSYS0 */
82*d6dc6753SAlim Akhtar #define UFS0_MPHY_REFCLK_IXTAL24		1
83*d6dc6753SAlim Akhtar #define UFS0_MPHY_REFCLK_IXTAL26		2
84*d6dc6753SAlim Akhtar #define UFS1_MPHY_REFCLK_IXTAL24		3
85*d6dc6753SAlim Akhtar #define UFS1_MPHY_REFCLK_IXTAL26		4
86*d6dc6753SAlim Akhtar #define UFS0_TOP0_HCLK_BUS			5
87*d6dc6753SAlim Akhtar #define UFS0_TOP0_ACLK				6
88*d6dc6753SAlim Akhtar #define UFS0_TOP0_CLK_UNIPRO			7
89*d6dc6753SAlim Akhtar #define UFS0_TOP0_FMP_CLK			8
90*d6dc6753SAlim Akhtar #define UFS1_TOP1_HCLK_BUS			9
91*d6dc6753SAlim Akhtar #define UFS1_TOP1_ACLK				10
92*d6dc6753SAlim Akhtar #define UFS1_TOP1_CLK_UNIPRO			11
93*d6dc6753SAlim Akhtar #define UFS1_TOP1_FMP_CLK			12
94*d6dc6753SAlim Akhtar #define PCIE_SUBCTRL_INST0_DBI_ACLK_SOC		13
95*d6dc6753SAlim Akhtar #define PCIE_SUBCTRL_INST0_AUX_CLK_SOC		14
96*d6dc6753SAlim Akhtar #define PCIE_SUBCTRL_INST0_MSTR_ACLK_SOC	15
97*d6dc6753SAlim Akhtar #define PCIE_SUBCTRL_INST0_SLV_ACLK_SOC		16
98*d6dc6753SAlim Akhtar #define FSYS0_EQOS_TOP0_IPCLKPORT_CLK_PTP_REF_I 17
99*d6dc6753SAlim Akhtar #define FSYS0_EQOS_TOP0_IPCLKPORT_ACLK_I	18
100*d6dc6753SAlim Akhtar #define FSYS0_EQOS_TOP0_IPCLKPORT_HCLK_I	19
101*d6dc6753SAlim Akhtar #define FSYS0_EQOS_TOP0_IPCLKPORT_RGMII_CLK_I	20
102*d6dc6753SAlim Akhtar #define FSYS0_EQOS_TOP0_IPCLKPORT_CLK_RX_I	21
103*d6dc6753SAlim Akhtar #define FSYS0_DOUT_FSYS0_PERIBUS_GRP		22
104*d6dc6753SAlim Akhtar #define FSYS0_NR_CLK				23
105*d6dc6753SAlim Akhtar 
106*d6dc6753SAlim Akhtar /* FSYS1 */
107*d6dc6753SAlim Akhtar #define PCIE_LINK0_IPCLKPORT_DBI_ACLK		1
108*d6dc6753SAlim Akhtar #define PCIE_LINK0_IPCLKPORT_AUX_ACLK		2
109*d6dc6753SAlim Akhtar #define PCIE_LINK0_IPCLKPORT_MSTR_ACLK		3
110*d6dc6753SAlim Akhtar #define PCIE_LINK0_IPCLKPORT_SLV_ACLK		4
111*d6dc6753SAlim Akhtar #define PCIE_LINK1_IPCLKPORT_DBI_ACLK		5
112*d6dc6753SAlim Akhtar #define PCIE_LINK1_IPCLKPORT_AUX_ACLK		6
113*d6dc6753SAlim Akhtar #define PCIE_LINK1_IPCLKPORT_MSTR_ACLK		7
114*d6dc6753SAlim Akhtar #define PCIE_LINK1_IPCLKPORT_SLV_ACLK		8
115*d6dc6753SAlim Akhtar #define FSYS1_NR_CLK				9
116*d6dc6753SAlim Akhtar 
117*d6dc6753SAlim Akhtar /* IMEM */
118*d6dc6753SAlim Akhtar #define IMEM_DMA0_IPCLKPORT_ACLK		1
119*d6dc6753SAlim Akhtar #define IMEM_DMA1_IPCLKPORT_ACLK		2
120*d6dc6753SAlim Akhtar #define IMEM_WDT0_IPCLKPORT_PCLK		3
121*d6dc6753SAlim Akhtar #define IMEM_WDT1_IPCLKPORT_PCLK		4
122*d6dc6753SAlim Akhtar #define IMEM_WDT2_IPCLKPORT_PCLK		5
123*d6dc6753SAlim Akhtar #define IMEM_MCT_PCLK				6
124*d6dc6753SAlim Akhtar #define IMEM_TMU_CPU0_IPCLKPORT_I_CLK_TS	7
125*d6dc6753SAlim Akhtar #define IMEM_TMU_CPU2_IPCLKPORT_I_CLK_TS	8
126*d6dc6753SAlim Akhtar #define IMEM_TMU_TOP_IPCLKPORT_I_CLK_TS		9
127*d6dc6753SAlim Akhtar #define IMEM_TMU_GPU_IPCLKPORT_I_CLK_TS		10
128*d6dc6753SAlim Akhtar #define IMEM_TMU_GT_IPCLKPORT_I_CLK_TS		11
129*d6dc6753SAlim Akhtar #define IMEM_NR_CLK				12
130*d6dc6753SAlim Akhtar 
131*d6dc6753SAlim Akhtar /* MFC */
132*d6dc6753SAlim Akhtar #define MFC_MFC_IPCLKPORT_ACLK			1
133*d6dc6753SAlim Akhtar #define MFC_NR_CLK				2
134*d6dc6753SAlim Akhtar 
135*d6dc6753SAlim Akhtar /* CAM_CSI */
136*d6dc6753SAlim Akhtar #define CAM_CSI0_0_IPCLKPORT_I_ACLK		1
137*d6dc6753SAlim Akhtar #define CAM_CSI0_1_IPCLKPORT_I_ACLK		2
138*d6dc6753SAlim Akhtar #define CAM_CSI0_2_IPCLKPORT_I_ACLK		3
139*d6dc6753SAlim Akhtar #define CAM_CSI0_3_IPCLKPORT_I_ACLK		4
140*d6dc6753SAlim Akhtar #define CAM_CSI1_0_IPCLKPORT_I_ACLK		5
141*d6dc6753SAlim Akhtar #define CAM_CSI1_1_IPCLKPORT_I_ACLK		6
142*d6dc6753SAlim Akhtar #define CAM_CSI1_2_IPCLKPORT_I_ACLK		7
143*d6dc6753SAlim Akhtar #define CAM_CSI1_3_IPCLKPORT_I_ACLK		8
144*d6dc6753SAlim Akhtar #define CAM_CSI2_0_IPCLKPORT_I_ACLK		9
145*d6dc6753SAlim Akhtar #define CAM_CSI2_1_IPCLKPORT_I_ACLK		10
146*d6dc6753SAlim Akhtar #define CAM_CSI2_2_IPCLKPORT_I_ACLK		11
147*d6dc6753SAlim Akhtar #define CAM_CSI2_3_IPCLKPORT_I_ACLK		12
148*d6dc6753SAlim Akhtar #define CAM_CSI_NR_CLK				13
149*d6dc6753SAlim Akhtar 
150*d6dc6753SAlim Akhtar #endif /*_DT_BINDINGS_CLOCK_FSD_H */
151