11.1Sjmcneill/*	$NetBSD: imx7ulp-clock.h,v 1.1.1.3 2021/11/07 16:49:57 jmcneill Exp $	*/
21.1Sjmcneill
31.1Sjmcneill/* SPDX-License-Identifier: GPL-2.0+ */
41.1Sjmcneill/*
51.1Sjmcneill * Copyright (C) 2016 Freescale Semiconductor, Inc.
61.1Sjmcneill * Copyright 2017~2018 NXP
71.1Sjmcneill *
81.1Sjmcneill */
91.1Sjmcneill
101.1Sjmcneill#ifndef __DT_BINDINGS_CLOCK_IMX7ULP_H
111.1Sjmcneill#define __DT_BINDINGS_CLOCK_IMX7ULP_H
121.1Sjmcneill
131.1Sjmcneill/* SCG1 */
141.1Sjmcneill
151.1Sjmcneill#define IMX7ULP_CLK_DUMMY		0
161.1Sjmcneill#define IMX7ULP_CLK_ROSC		1
171.1Sjmcneill#define IMX7ULP_CLK_SOSC		2
181.1Sjmcneill#define IMX7ULP_CLK_FIRC		3
191.1Sjmcneill#define IMX7ULP_CLK_SPLL_PRE_SEL	4
201.1Sjmcneill#define IMX7ULP_CLK_SPLL_PRE_DIV	5
211.1Sjmcneill#define IMX7ULP_CLK_SPLL		6
221.1Sjmcneill#define IMX7ULP_CLK_SPLL_POST_DIV1	7
231.1Sjmcneill#define IMX7ULP_CLK_SPLL_POST_DIV2	8
241.1Sjmcneill#define IMX7ULP_CLK_SPLL_PFD0		9
251.1Sjmcneill#define IMX7ULP_CLK_SPLL_PFD1		10
261.1Sjmcneill#define IMX7ULP_CLK_SPLL_PFD2		11
271.1Sjmcneill#define IMX7ULP_CLK_SPLL_PFD3		12
281.1Sjmcneill#define IMX7ULP_CLK_SPLL_PFD_SEL	13
291.1Sjmcneill#define IMX7ULP_CLK_SPLL_SEL		14
301.1Sjmcneill#define IMX7ULP_CLK_APLL_PRE_SEL	15
311.1Sjmcneill#define IMX7ULP_CLK_APLL_PRE_DIV	16
321.1Sjmcneill#define IMX7ULP_CLK_APLL		17
331.1Sjmcneill#define IMX7ULP_CLK_APLL_POST_DIV1	18
341.1Sjmcneill#define IMX7ULP_CLK_APLL_POST_DIV2	19
351.1Sjmcneill#define IMX7ULP_CLK_APLL_PFD0		20
361.1Sjmcneill#define IMX7ULP_CLK_APLL_PFD1		21
371.1Sjmcneill#define IMX7ULP_CLK_APLL_PFD2		22
381.1Sjmcneill#define IMX7ULP_CLK_APLL_PFD3		23
391.1Sjmcneill#define IMX7ULP_CLK_APLL_PFD_SEL	24
401.1Sjmcneill#define IMX7ULP_CLK_APLL_SEL		25
411.1Sjmcneill#define IMX7ULP_CLK_UPLL		26
421.1Sjmcneill#define IMX7ULP_CLK_SYS_SEL		27
431.1Sjmcneill#define IMX7ULP_CLK_CORE_DIV		28
441.1Sjmcneill#define IMX7ULP_CLK_BUS_DIV		29
451.1Sjmcneill#define IMX7ULP_CLK_PLAT_DIV		30
461.1Sjmcneill#define IMX7ULP_CLK_DDR_SEL		31
471.1Sjmcneill#define IMX7ULP_CLK_DDR_DIV		32
481.1Sjmcneill#define IMX7ULP_CLK_NIC_SEL		33
491.1Sjmcneill#define IMX7ULP_CLK_NIC0_DIV		34
501.1Sjmcneill#define IMX7ULP_CLK_GPU_DIV		35
511.1Sjmcneill#define IMX7ULP_CLK_NIC1_DIV		36
521.1Sjmcneill#define IMX7ULP_CLK_NIC1_BUS_DIV	37
531.1Sjmcneill#define IMX7ULP_CLK_NIC1_EXT_DIV	38
541.1.1.2Sskrll/* IMX7ULP_CLK_MIPI_PLL is unsupported and shouldn't be used in DT */
551.1Sjmcneill#define IMX7ULP_CLK_MIPI_PLL		39
561.1Sjmcneill#define IMX7ULP_CLK_SIRC		40
571.1Sjmcneill#define IMX7ULP_CLK_SOSC_BUS_CLK	41
581.1Sjmcneill#define IMX7ULP_CLK_FIRC_BUS_CLK	42
591.1Sjmcneill#define IMX7ULP_CLK_SPLL_BUS_CLK	43
601.1Sjmcneill#define IMX7ULP_CLK_HSRUN_SYS_SEL	44
611.1Sjmcneill#define IMX7ULP_CLK_HSRUN_CORE_DIV	45
621.1Sjmcneill
631.1.1.3Sjmcneill#define IMX7ULP_CLK_CORE		46
641.1.1.3Sjmcneill#define IMX7ULP_CLK_HSRUN_CORE		47
651.1.1.3Sjmcneill
661.1.1.3Sjmcneill#define IMX7ULP_CLK_SCG1_END		48
671.1Sjmcneill
681.1Sjmcneill/* PCC2 */
691.1Sjmcneill#define IMX7ULP_CLK_DMA1		0
701.1Sjmcneill#define IMX7ULP_CLK_RGPIO2P1		1
711.1Sjmcneill#define IMX7ULP_CLK_FLEXBUS		2
721.1Sjmcneill#define IMX7ULP_CLK_SEMA42_1		3
731.1Sjmcneill#define IMX7ULP_CLK_DMA_MUX1		4
741.1Sjmcneill#define IMX7ULP_CLK_CAAM		6
751.1Sjmcneill#define IMX7ULP_CLK_LPTPM4		7
761.1Sjmcneill#define IMX7ULP_CLK_LPTPM5		8
771.1Sjmcneill#define IMX7ULP_CLK_LPIT1		9
781.1Sjmcneill#define IMX7ULP_CLK_LPSPI2		10
791.1Sjmcneill#define IMX7ULP_CLK_LPSPI3		11
801.1Sjmcneill#define IMX7ULP_CLK_LPI2C4		12
811.1Sjmcneill#define IMX7ULP_CLK_LPI2C5		13
821.1Sjmcneill#define IMX7ULP_CLK_LPUART4		14
831.1Sjmcneill#define IMX7ULP_CLK_LPUART5		15
841.1Sjmcneill#define IMX7ULP_CLK_FLEXIO1		16
851.1Sjmcneill#define IMX7ULP_CLK_USB0		17
861.1Sjmcneill#define IMX7ULP_CLK_USB1		18
871.1Sjmcneill#define IMX7ULP_CLK_USB_PHY		19
881.1Sjmcneill#define IMX7ULP_CLK_USB_PL301		20
891.1Sjmcneill#define IMX7ULP_CLK_USDHC0		21
901.1Sjmcneill#define IMX7ULP_CLK_USDHC1		22
911.1Sjmcneill#define IMX7ULP_CLK_WDG1		23
921.1Sjmcneill#define IMX7ULP_CLK_WDG2		24
931.1Sjmcneill
941.1Sjmcneill#define IMX7ULP_CLK_PCC2_END		25
951.1Sjmcneill
961.1Sjmcneill/* PCC3 */
971.1Sjmcneill#define IMX7ULP_CLK_LPTPM6		0
981.1Sjmcneill#define IMX7ULP_CLK_LPTPM7		1
991.1Sjmcneill#define IMX7ULP_CLK_LPI2C6		2
1001.1Sjmcneill#define IMX7ULP_CLK_LPI2C7		3
1011.1Sjmcneill#define IMX7ULP_CLK_LPUART6		4
1021.1Sjmcneill#define IMX7ULP_CLK_LPUART7		5
1031.1Sjmcneill#define IMX7ULP_CLK_VIU			6
1041.1Sjmcneill#define IMX7ULP_CLK_DSI			7
1051.1Sjmcneill#define IMX7ULP_CLK_LCDIF		8
1061.1Sjmcneill#define IMX7ULP_CLK_MMDC		9
1071.1Sjmcneill#define IMX7ULP_CLK_PCTLC		10
1081.1Sjmcneill#define IMX7ULP_CLK_PCTLD		11
1091.1Sjmcneill#define IMX7ULP_CLK_PCTLE		12
1101.1Sjmcneill#define IMX7ULP_CLK_PCTLF		13
1111.1Sjmcneill#define IMX7ULP_CLK_GPU3D		14
1121.1Sjmcneill#define IMX7ULP_CLK_GPU2D		15
1131.1Sjmcneill
1141.1Sjmcneill#define IMX7ULP_CLK_PCC3_END		16
1151.1Sjmcneill
1161.1Sjmcneill/* SMC1 */
1171.1Sjmcneill#define IMX7ULP_CLK_ARM			0
1181.1Sjmcneill
1191.1Sjmcneill#define IMX7ULP_CLK_SMC1_END		1
1201.1Sjmcneill
1211.1Sjmcneill#endif /* __DT_BINDINGS_CLOCK_IMX7ULP_H */
122