xref: /linux/include/dt-bindings/clock/imx8-clock.h (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
108972760SAisheng Dong /* SPDX-License-Identifier: GPL-2.0+ */
208972760SAisheng Dong /*
308972760SAisheng Dong  * Copyright 2018 NXP
408972760SAisheng Dong  *   Dong Aisheng <aisheng.dong@nxp.com>
508972760SAisheng Dong  */
608972760SAisheng Dong 
708972760SAisheng Dong #ifndef __DT_BINDINGS_CLOCK_IMX_H
808972760SAisheng Dong #define __DT_BINDINGS_CLOCK_IMX_H
908972760SAisheng Dong 
1008972760SAisheng Dong /* LPCG clocks */
1108972760SAisheng Dong 
1208972760SAisheng Dong /* LSIO SS LPCG */
1308972760SAisheng Dong #define IMX_LSIO_LPCG_PWM0_IPG_CLK			0
1408972760SAisheng Dong #define IMX_LSIO_LPCG_PWM0_IPG_S_CLK			1
1508972760SAisheng Dong #define IMX_LSIO_LPCG_PWM0_IPG_HF_CLK			2
1608972760SAisheng Dong #define IMX_LSIO_LPCG_PWM0_IPG_SLV_CLK			3
1708972760SAisheng Dong #define IMX_LSIO_LPCG_PWM0_IPG_MSTR_CLK			4
1808972760SAisheng Dong #define IMX_LSIO_LPCG_PWM1_IPG_CLK			5
1908972760SAisheng Dong #define IMX_LSIO_LPCG_PWM1_IPG_S_CLK			6
2008972760SAisheng Dong #define IMX_LSIO_LPCG_PWM1_IPG_HF_CLK			7
2108972760SAisheng Dong #define IMX_LSIO_LPCG_PWM1_IPG_SLV_CLK			8
2208972760SAisheng Dong #define IMX_LSIO_LPCG_PWM1_IPG_MSTR_CLK			9
2308972760SAisheng Dong #define IMX_LSIO_LPCG_PWM2_IPG_CLK			10
2408972760SAisheng Dong #define IMX_LSIO_LPCG_PWM2_IPG_S_CLK			11
2508972760SAisheng Dong #define IMX_LSIO_LPCG_PWM2_IPG_HF_CLK			12
2608972760SAisheng Dong #define IMX_LSIO_LPCG_PWM2_IPG_SLV_CLK			13
2708972760SAisheng Dong #define IMX_LSIO_LPCG_PWM2_IPG_MSTR_CLK			14
2808972760SAisheng Dong #define IMX_LSIO_LPCG_PWM3_IPG_CLK			15
2908972760SAisheng Dong #define IMX_LSIO_LPCG_PWM3_IPG_S_CLK			16
3008972760SAisheng Dong #define IMX_LSIO_LPCG_PWM3_IPG_HF_CLK			17
3108972760SAisheng Dong #define IMX_LSIO_LPCG_PWM3_IPG_SLV_CLK			18
3208972760SAisheng Dong #define IMX_LSIO_LPCG_PWM3_IPG_MSTR_CLK			19
3308972760SAisheng Dong #define IMX_LSIO_LPCG_PWM4_IPG_CLK			20
3408972760SAisheng Dong #define IMX_LSIO_LPCG_PWM4_IPG_S_CLK			21
3508972760SAisheng Dong #define IMX_LSIO_LPCG_PWM4_IPG_HF_CLK			22
3608972760SAisheng Dong #define IMX_LSIO_LPCG_PWM4_IPG_SLV_CLK			23
3708972760SAisheng Dong #define IMX_LSIO_LPCG_PWM4_IPG_MSTR_CLK			24
3808972760SAisheng Dong #define IMX_LSIO_LPCG_PWM5_IPG_CLK			25
3908972760SAisheng Dong #define IMX_LSIO_LPCG_PWM5_IPG_S_CLK			26
4008972760SAisheng Dong #define IMX_LSIO_LPCG_PWM5_IPG_HF_CLK			27
4108972760SAisheng Dong #define IMX_LSIO_LPCG_PWM5_IPG_SLV_CLK			28
4208972760SAisheng Dong #define IMX_LSIO_LPCG_PWM5_IPG_MSTR_CLK			29
4308972760SAisheng Dong #define IMX_LSIO_LPCG_PWM6_IPG_CLK			30
4408972760SAisheng Dong #define IMX_LSIO_LPCG_PWM6_IPG_S_CLK			31
4508972760SAisheng Dong #define IMX_LSIO_LPCG_PWM6_IPG_HF_CLK			32
4608972760SAisheng Dong #define IMX_LSIO_LPCG_PWM6_IPG_SLV_CLK			33
4708972760SAisheng Dong #define IMX_LSIO_LPCG_PWM6_IPG_MSTR_CLK			34
4808972760SAisheng Dong #define IMX_LSIO_LPCG_PWM7_IPG_CLK			35
4908972760SAisheng Dong #define IMX_LSIO_LPCG_PWM7_IPG_S_CLK			36
5008972760SAisheng Dong #define IMX_LSIO_LPCG_PWM7_IPG_HF_CLK			37
5108972760SAisheng Dong #define IMX_LSIO_LPCG_PWM7_IPG_SLV_CLK			38
5208972760SAisheng Dong #define IMX_LSIO_LPCG_PWM7_IPG_MSTR_CLK			39
5308972760SAisheng Dong #define IMX_LSIO_LPCG_GPT0_IPG_CLK			40
5408972760SAisheng Dong #define IMX_LSIO_LPCG_GPT0_IPG_S_CLK			41
5508972760SAisheng Dong #define IMX_LSIO_LPCG_GPT0_IPG_HF_CLK			42
5608972760SAisheng Dong #define IMX_LSIO_LPCG_GPT0_IPG_SLV_CLK			43
5708972760SAisheng Dong #define IMX_LSIO_LPCG_GPT0_IPG_MSTR_CLK			44
5808972760SAisheng Dong #define IMX_LSIO_LPCG_GPT1_IPG_CLK			45
5908972760SAisheng Dong #define IMX_LSIO_LPCG_GPT1_IPG_S_CLK			46
6008972760SAisheng Dong #define IMX_LSIO_LPCG_GPT1_IPG_HF_CLK			47
6108972760SAisheng Dong #define IMX_LSIO_LPCG_GPT1_IPG_SLV_CLK			48
6208972760SAisheng Dong #define IMX_LSIO_LPCG_GPT1_IPG_MSTR_CLK			49
6308972760SAisheng Dong #define IMX_LSIO_LPCG_GPT2_IPG_CLK			50
6408972760SAisheng Dong #define IMX_LSIO_LPCG_GPT2_IPG_S_CLK			51
6508972760SAisheng Dong #define IMX_LSIO_LPCG_GPT2_IPG_HF_CLK			52
6608972760SAisheng Dong #define IMX_LSIO_LPCG_GPT2_IPG_SLV_CLK			53
6708972760SAisheng Dong #define IMX_LSIO_LPCG_GPT2_IPG_MSTR_CLK			54
6808972760SAisheng Dong #define IMX_LSIO_LPCG_GPT3_IPG_CLK			55
6908972760SAisheng Dong #define IMX_LSIO_LPCG_GPT3_IPG_S_CLK			56
7008972760SAisheng Dong #define IMX_LSIO_LPCG_GPT3_IPG_HF_CLK			57
7108972760SAisheng Dong #define IMX_LSIO_LPCG_GPT3_IPG_SLV_CLK			58
7208972760SAisheng Dong #define IMX_LSIO_LPCG_GPT3_IPG_MSTR_CLK			59
7308972760SAisheng Dong #define IMX_LSIO_LPCG_GPT4_IPG_CLK			60
7408972760SAisheng Dong #define IMX_LSIO_LPCG_GPT4_IPG_S_CLK			61
7508972760SAisheng Dong #define IMX_LSIO_LPCG_GPT4_IPG_HF_CLK			62
7608972760SAisheng Dong #define IMX_LSIO_LPCG_GPT4_IPG_SLV_CLK			63
7708972760SAisheng Dong #define IMX_LSIO_LPCG_GPT4_IPG_MSTR_CLK			64
7808972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI0_HCLK			65
7908972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI0_IPG_CLK			66
8008972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI0_IPG_S_CLK			67
8108972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI0_IPG_SFCK			68
8208972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI1_HCLK			69
8308972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI1_IPG_CLK			70
8408972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI1_IPG_S_CLK			71
8508972760SAisheng Dong #define IMX_LSIO_LPCG_FSPI1_IPG_SFCK			72
8608972760SAisheng Dong 
8708972760SAisheng Dong #define IMX_LSIO_LPCG_CLK_END				73
8808972760SAisheng Dong 
8908972760SAisheng Dong /* Connectivity SS LPCG */
9008972760SAisheng Dong #define IMX_CONN_LPCG_SDHC0_IPG_CLK			0
9108972760SAisheng Dong #define IMX_CONN_LPCG_SDHC0_PER_CLK			1
9208972760SAisheng Dong #define IMX_CONN_LPCG_SDHC0_HCLK			2
9308972760SAisheng Dong #define IMX_CONN_LPCG_SDHC1_IPG_CLK			3
9408972760SAisheng Dong #define IMX_CONN_LPCG_SDHC1_PER_CLK			4
9508972760SAisheng Dong #define IMX_CONN_LPCG_SDHC1_HCLK			5
9608972760SAisheng Dong #define IMX_CONN_LPCG_SDHC2_IPG_CLK			6
9708972760SAisheng Dong #define IMX_CONN_LPCG_SDHC2_PER_CLK			7
9808972760SAisheng Dong #define IMX_CONN_LPCG_SDHC2_HCLK			8
9908972760SAisheng Dong #define IMX_CONN_LPCG_GPMI_APB_CLK			9
10008972760SAisheng Dong #define IMX_CONN_LPCG_GPMI_BCH_APB_CLK			10
10108972760SAisheng Dong #define IMX_CONN_LPCG_GPMI_BCH_IO_CLK			11
10208972760SAisheng Dong #define IMX_CONN_LPCG_GPMI_BCH_CLK			12
10308972760SAisheng Dong #define IMX_CONN_LPCG_APBHDMA_CLK			13
10408972760SAisheng Dong #define IMX_CONN_LPCG_ENET0_ROOT_CLK			14
10508972760SAisheng Dong #define IMX_CONN_LPCG_ENET0_TX_CLK			15
10608972760SAisheng Dong #define IMX_CONN_LPCG_ENET0_AHB_CLK			16
10708972760SAisheng Dong #define IMX_CONN_LPCG_ENET0_IPG_S_CLK			17
10808972760SAisheng Dong #define IMX_CONN_LPCG_ENET0_IPG_CLK			18
10908972760SAisheng Dong 
11008972760SAisheng Dong #define IMX_CONN_LPCG_ENET1_ROOT_CLK			19
11108972760SAisheng Dong #define IMX_CONN_LPCG_ENET1_TX_CLK			20
11208972760SAisheng Dong #define IMX_CONN_LPCG_ENET1_AHB_CLK			21
11308972760SAisheng Dong #define IMX_CONN_LPCG_ENET1_IPG_S_CLK			22
11408972760SAisheng Dong #define IMX_CONN_LPCG_ENET1_IPG_CLK			23
11508972760SAisheng Dong 
11608972760SAisheng Dong #define IMX_CONN_LPCG_CLK_END				24
11708972760SAisheng Dong 
11808972760SAisheng Dong /* ADMA SS LPCG */
11908972760SAisheng Dong #define IMX_ADMA_LPCG_UART0_IPG_CLK			0
12008972760SAisheng Dong #define IMX_ADMA_LPCG_UART0_BAUD_CLK			1
12108972760SAisheng Dong #define IMX_ADMA_LPCG_UART1_IPG_CLK			2
12208972760SAisheng Dong #define IMX_ADMA_LPCG_UART1_BAUD_CLK			3
12308972760SAisheng Dong #define IMX_ADMA_LPCG_UART2_IPG_CLK			4
12408972760SAisheng Dong #define IMX_ADMA_LPCG_UART2_BAUD_CLK			5
12508972760SAisheng Dong #define IMX_ADMA_LPCG_UART3_IPG_CLK			6
12608972760SAisheng Dong #define IMX_ADMA_LPCG_UART3_BAUD_CLK			7
12708972760SAisheng Dong #define IMX_ADMA_LPCG_SPI0_IPG_CLK			8
12808972760SAisheng Dong #define IMX_ADMA_LPCG_SPI1_IPG_CLK			9
12908972760SAisheng Dong #define IMX_ADMA_LPCG_SPI2_IPG_CLK			10
13008972760SAisheng Dong #define IMX_ADMA_LPCG_SPI3_IPG_CLK			11
13108972760SAisheng Dong #define IMX_ADMA_LPCG_SPI0_CLK				12
13208972760SAisheng Dong #define IMX_ADMA_LPCG_SPI1_CLK				13
13308972760SAisheng Dong #define IMX_ADMA_LPCG_SPI2_CLK				14
13408972760SAisheng Dong #define IMX_ADMA_LPCG_SPI3_CLK				15
13508972760SAisheng Dong #define IMX_ADMA_LPCG_CAN0_IPG_CLK			16
13608972760SAisheng Dong #define IMX_ADMA_LPCG_CAN0_IPG_PE_CLK			17
13708972760SAisheng Dong #define IMX_ADMA_LPCG_CAN0_IPG_CHI_CLK			18
13808972760SAisheng Dong #define IMX_ADMA_LPCG_CAN1_IPG_CLK			19
13908972760SAisheng Dong #define IMX_ADMA_LPCG_CAN1_IPG_PE_CLK			20
14008972760SAisheng Dong #define IMX_ADMA_LPCG_CAN1_IPG_CHI_CLK			21
14108972760SAisheng Dong #define IMX_ADMA_LPCG_CAN2_IPG_CLK			22
14208972760SAisheng Dong #define IMX_ADMA_LPCG_CAN2_IPG_PE_CLK			23
14308972760SAisheng Dong #define IMX_ADMA_LPCG_CAN2_IPG_CHI_CLK			24
14408972760SAisheng Dong #define IMX_ADMA_LPCG_I2C0_CLK				25
14508972760SAisheng Dong #define IMX_ADMA_LPCG_I2C1_CLK				26
14608972760SAisheng Dong #define IMX_ADMA_LPCG_I2C2_CLK				27
14708972760SAisheng Dong #define IMX_ADMA_LPCG_I2C3_CLK				28
14808972760SAisheng Dong #define IMX_ADMA_LPCG_I2C0_IPG_CLK			29
14908972760SAisheng Dong #define IMX_ADMA_LPCG_I2C1_IPG_CLK			30
15008972760SAisheng Dong #define IMX_ADMA_LPCG_I2C2_IPG_CLK			31
15108972760SAisheng Dong #define IMX_ADMA_LPCG_I2C3_IPG_CLK			32
15208972760SAisheng Dong #define IMX_ADMA_LPCG_FTM0_CLK				33
15308972760SAisheng Dong #define IMX_ADMA_LPCG_FTM1_CLK				34
15408972760SAisheng Dong #define IMX_ADMA_LPCG_FTM0_IPG_CLK			35
15508972760SAisheng Dong #define IMX_ADMA_LPCG_FTM1_IPG_CLK			36
15608972760SAisheng Dong #define IMX_ADMA_LPCG_PWM_HI_CLK			37
15708972760SAisheng Dong #define IMX_ADMA_LPCG_PWM_IPG_CLK			38
15808972760SAisheng Dong #define IMX_ADMA_LPCG_LCD_PIX_CLK			39
15908972760SAisheng Dong #define IMX_ADMA_LPCG_LCD_APB_CLK			40
1606ad7cb71SDaniel Baluta #define IMX_ADMA_LPCG_DSP_ADB_CLK			41
1616ad7cb71SDaniel Baluta #define IMX_ADMA_LPCG_DSP_IPG_CLK			42
1626ad7cb71SDaniel Baluta #define IMX_ADMA_LPCG_DSP_CORE_CLK			43
1636ad7cb71SDaniel Baluta #define IMX_ADMA_LPCG_OCRAM_IPG_CLK			44
16408972760SAisheng Dong 
1656ad7cb71SDaniel Baluta #define IMX_ADMA_LPCG_CLK_END				45
16608972760SAisheng Dong 
167*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_AUD_CLK0_SEL			0
168*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_AUD_CLK1_SEL			1
169*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_MCLKOUT0_SEL			2
170*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_MCLKOUT1_SEL			3
171*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_ESAI0_MCLK_SEL			4
172*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_ESAI1_MCLK_SEL			5
173*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT0_MUX_CLK_SEL			6
174*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT1_MUX_CLK_SEL			7
175*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT2_MUX_CLK_SEL			8
176*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT3_MUX_CLK_SEL			9
177*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT4_MUX_CLK_SEL			10
178*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_GPT5_MUX_CLK_SEL			11
179*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI0_MCLK_SEL			12
180*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI1_MCLK_SEL			13
181*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI2_MCLK_SEL			14
182*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI3_MCLK_SEL			15
183*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI4_MCLK_SEL			16
184*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI5_MCLK_SEL			17
185*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI6_MCLK_SEL			18
186*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SAI7_MCLK_SEL			19
187*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SPDIF0_TX_CLK_SEL			20
188*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_SPDIF1_TX_CLK_SEL			21
189*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_MQS_TX_CLK_SEL			22
190*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_ASRC0_MUX_CLK_SEL			23
191*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_ASRC1_MUX_CLK_SEL			24
192*a70cd8cdSShengjiu Wang 
193*a70cd8cdSShengjiu Wang #define IMX_ADMA_ACM_CLK_END				25
194*a70cd8cdSShengjiu Wang 
19508972760SAisheng Dong #endif /* __DT_BINDINGS_CLOCK_IMX_H */
196