1 /* SPDX-License-Identifier: GPL-2.0+ */ 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 2 /* 3 * Copyright (C) 2016 Freescale Semiconductor, 3 * Copyright (C) 2016 Freescale Semiconductor, Inc. 4 * Copyright 2017~2018 NXP 4 * Copyright 2017~2018 NXP 5 * 5 * 6 */ 6 */ 7 7 8 #ifndef __DT_BINDINGS_CLOCK_IMX7ULP_H 8 #ifndef __DT_BINDINGS_CLOCK_IMX7ULP_H 9 #define __DT_BINDINGS_CLOCK_IMX7ULP_H 9 #define __DT_BINDINGS_CLOCK_IMX7ULP_H 10 10 11 /* SCG1 */ 11 /* SCG1 */ 12 12 13 #define IMX7ULP_CLK_DUMMY 0 13 #define IMX7ULP_CLK_DUMMY 0 14 #define IMX7ULP_CLK_ROSC 1 14 #define IMX7ULP_CLK_ROSC 1 15 #define IMX7ULP_CLK_SOSC 2 15 #define IMX7ULP_CLK_SOSC 2 16 #define IMX7ULP_CLK_FIRC 3 16 #define IMX7ULP_CLK_FIRC 3 17 #define IMX7ULP_CLK_SPLL_PRE_SEL 4 17 #define IMX7ULP_CLK_SPLL_PRE_SEL 4 18 #define IMX7ULP_CLK_SPLL_PRE_DIV 5 18 #define IMX7ULP_CLK_SPLL_PRE_DIV 5 19 #define IMX7ULP_CLK_SPLL 6 19 #define IMX7ULP_CLK_SPLL 6 20 #define IMX7ULP_CLK_SPLL_POST_DIV1 7 20 #define IMX7ULP_CLK_SPLL_POST_DIV1 7 21 #define IMX7ULP_CLK_SPLL_POST_DIV2 8 21 #define IMX7ULP_CLK_SPLL_POST_DIV2 8 22 #define IMX7ULP_CLK_SPLL_PFD0 9 22 #define IMX7ULP_CLK_SPLL_PFD0 9 23 #define IMX7ULP_CLK_SPLL_PFD1 10 23 #define IMX7ULP_CLK_SPLL_PFD1 10 24 #define IMX7ULP_CLK_SPLL_PFD2 11 24 #define IMX7ULP_CLK_SPLL_PFD2 11 25 #define IMX7ULP_CLK_SPLL_PFD3 12 25 #define IMX7ULP_CLK_SPLL_PFD3 12 26 #define IMX7ULP_CLK_SPLL_PFD_SEL 13 26 #define IMX7ULP_CLK_SPLL_PFD_SEL 13 27 #define IMX7ULP_CLK_SPLL_SEL 14 27 #define IMX7ULP_CLK_SPLL_SEL 14 28 #define IMX7ULP_CLK_APLL_PRE_SEL 15 28 #define IMX7ULP_CLK_APLL_PRE_SEL 15 29 #define IMX7ULP_CLK_APLL_PRE_DIV 16 29 #define IMX7ULP_CLK_APLL_PRE_DIV 16 30 #define IMX7ULP_CLK_APLL 17 30 #define IMX7ULP_CLK_APLL 17 31 #define IMX7ULP_CLK_APLL_POST_DIV1 18 31 #define IMX7ULP_CLK_APLL_POST_DIV1 18 32 #define IMX7ULP_CLK_APLL_POST_DIV2 19 32 #define IMX7ULP_CLK_APLL_POST_DIV2 19 33 #define IMX7ULP_CLK_APLL_PFD0 20 33 #define IMX7ULP_CLK_APLL_PFD0 20 34 #define IMX7ULP_CLK_APLL_PFD1 21 34 #define IMX7ULP_CLK_APLL_PFD1 21 35 #define IMX7ULP_CLK_APLL_PFD2 22 35 #define IMX7ULP_CLK_APLL_PFD2 22 36 #define IMX7ULP_CLK_APLL_PFD3 23 36 #define IMX7ULP_CLK_APLL_PFD3 23 37 #define IMX7ULP_CLK_APLL_PFD_SEL 24 37 #define IMX7ULP_CLK_APLL_PFD_SEL 24 38 #define IMX7ULP_CLK_APLL_SEL 25 38 #define IMX7ULP_CLK_APLL_SEL 25 39 #define IMX7ULP_CLK_UPLL 26 39 #define IMX7ULP_CLK_UPLL 26 40 #define IMX7ULP_CLK_SYS_SEL 27 40 #define IMX7ULP_CLK_SYS_SEL 27 41 #define IMX7ULP_CLK_CORE_DIV 28 41 #define IMX7ULP_CLK_CORE_DIV 28 42 #define IMX7ULP_CLK_BUS_DIV 29 42 #define IMX7ULP_CLK_BUS_DIV 29 43 #define IMX7ULP_CLK_PLAT_DIV 30 43 #define IMX7ULP_CLK_PLAT_DIV 30 44 #define IMX7ULP_CLK_DDR_SEL 31 44 #define IMX7ULP_CLK_DDR_SEL 31 45 #define IMX7ULP_CLK_DDR_DIV 32 45 #define IMX7ULP_CLK_DDR_DIV 32 46 #define IMX7ULP_CLK_NIC_SEL 33 46 #define IMX7ULP_CLK_NIC_SEL 33 47 #define IMX7ULP_CLK_NIC0_DIV 34 47 #define IMX7ULP_CLK_NIC0_DIV 34 48 #define IMX7ULP_CLK_GPU_DIV 35 48 #define IMX7ULP_CLK_GPU_DIV 35 49 #define IMX7ULP_CLK_NIC1_DIV 36 49 #define IMX7ULP_CLK_NIC1_DIV 36 50 #define IMX7ULP_CLK_NIC1_BUS_DIV 37 50 #define IMX7ULP_CLK_NIC1_BUS_DIV 37 51 #define IMX7ULP_CLK_NIC1_EXT_DIV 38 51 #define IMX7ULP_CLK_NIC1_EXT_DIV 38 52 /* IMX7ULP_CLK_MIPI_PLL is unsupported and sho 52 /* IMX7ULP_CLK_MIPI_PLL is unsupported and shouldn't be used in DT */ 53 #define IMX7ULP_CLK_MIPI_PLL 39 53 #define IMX7ULP_CLK_MIPI_PLL 39 54 #define IMX7ULP_CLK_SIRC 40 54 #define IMX7ULP_CLK_SIRC 40 55 #define IMX7ULP_CLK_SOSC_BUS_CLK 41 55 #define IMX7ULP_CLK_SOSC_BUS_CLK 41 56 #define IMX7ULP_CLK_FIRC_BUS_CLK 42 56 #define IMX7ULP_CLK_FIRC_BUS_CLK 42 57 #define IMX7ULP_CLK_SPLL_BUS_CLK 43 57 #define IMX7ULP_CLK_SPLL_BUS_CLK 43 58 #define IMX7ULP_CLK_HSRUN_SYS_SEL 44 58 #define IMX7ULP_CLK_HSRUN_SYS_SEL 44 59 #define IMX7ULP_CLK_HSRUN_CORE_DIV 45 59 #define IMX7ULP_CLK_HSRUN_CORE_DIV 45 60 60 61 #define IMX7ULP_CLK_CORE 46 !! 61 #define IMX7ULP_CLK_SCG1_END 46 62 #define IMX7ULP_CLK_HSRUN_CORE 47 << 63 << 64 #define IMX7ULP_CLK_SCG1_END 48 << 65 62 66 /* PCC2 */ 63 /* PCC2 */ 67 #define IMX7ULP_CLK_DMA1 0 64 #define IMX7ULP_CLK_DMA1 0 68 #define IMX7ULP_CLK_RGPIO2P1 1 65 #define IMX7ULP_CLK_RGPIO2P1 1 69 #define IMX7ULP_CLK_FLEXBUS 2 66 #define IMX7ULP_CLK_FLEXBUS 2 70 #define IMX7ULP_CLK_SEMA42_1 3 67 #define IMX7ULP_CLK_SEMA42_1 3 71 #define IMX7ULP_CLK_DMA_MUX1 4 68 #define IMX7ULP_CLK_DMA_MUX1 4 72 #define IMX7ULP_CLK_CAAM 6 69 #define IMX7ULP_CLK_CAAM 6 73 #define IMX7ULP_CLK_LPTPM4 7 70 #define IMX7ULP_CLK_LPTPM4 7 74 #define IMX7ULP_CLK_LPTPM5 8 71 #define IMX7ULP_CLK_LPTPM5 8 75 #define IMX7ULP_CLK_LPIT1 9 72 #define IMX7ULP_CLK_LPIT1 9 76 #define IMX7ULP_CLK_LPSPI2 10 73 #define IMX7ULP_CLK_LPSPI2 10 77 #define IMX7ULP_CLK_LPSPI3 11 74 #define IMX7ULP_CLK_LPSPI3 11 78 #define IMX7ULP_CLK_LPI2C4 12 75 #define IMX7ULP_CLK_LPI2C4 12 79 #define IMX7ULP_CLK_LPI2C5 13 76 #define IMX7ULP_CLK_LPI2C5 13 80 #define IMX7ULP_CLK_LPUART4 14 77 #define IMX7ULP_CLK_LPUART4 14 81 #define IMX7ULP_CLK_LPUART5 15 78 #define IMX7ULP_CLK_LPUART5 15 82 #define IMX7ULP_CLK_FLEXIO1 16 79 #define IMX7ULP_CLK_FLEXIO1 16 83 #define IMX7ULP_CLK_USB0 17 80 #define IMX7ULP_CLK_USB0 17 84 #define IMX7ULP_CLK_USB1 18 81 #define IMX7ULP_CLK_USB1 18 85 #define IMX7ULP_CLK_USB_PHY 19 82 #define IMX7ULP_CLK_USB_PHY 19 86 #define IMX7ULP_CLK_USB_PL301 20 83 #define IMX7ULP_CLK_USB_PL301 20 87 #define IMX7ULP_CLK_USDHC0 21 84 #define IMX7ULP_CLK_USDHC0 21 88 #define IMX7ULP_CLK_USDHC1 22 85 #define IMX7ULP_CLK_USDHC1 22 89 #define IMX7ULP_CLK_WDG1 23 86 #define IMX7ULP_CLK_WDG1 23 90 #define IMX7ULP_CLK_WDG2 24 87 #define IMX7ULP_CLK_WDG2 24 91 88 92 #define IMX7ULP_CLK_PCC2_END 25 89 #define IMX7ULP_CLK_PCC2_END 25 93 90 94 /* PCC3 */ 91 /* PCC3 */ 95 #define IMX7ULP_CLK_LPTPM6 0 92 #define IMX7ULP_CLK_LPTPM6 0 96 #define IMX7ULP_CLK_LPTPM7 1 93 #define IMX7ULP_CLK_LPTPM7 1 97 #define IMX7ULP_CLK_LPI2C6 2 94 #define IMX7ULP_CLK_LPI2C6 2 98 #define IMX7ULP_CLK_LPI2C7 3 95 #define IMX7ULP_CLK_LPI2C7 3 99 #define IMX7ULP_CLK_LPUART6 4 96 #define IMX7ULP_CLK_LPUART6 4 100 #define IMX7ULP_CLK_LPUART7 5 97 #define IMX7ULP_CLK_LPUART7 5 101 #define IMX7ULP_CLK_VIU 6 98 #define IMX7ULP_CLK_VIU 6 102 #define IMX7ULP_CLK_DSI 7 99 #define IMX7ULP_CLK_DSI 7 103 #define IMX7ULP_CLK_LCDIF 8 100 #define IMX7ULP_CLK_LCDIF 8 104 #define IMX7ULP_CLK_MMDC 9 101 #define IMX7ULP_CLK_MMDC 9 105 #define IMX7ULP_CLK_PCTLC 10 102 #define IMX7ULP_CLK_PCTLC 10 106 #define IMX7ULP_CLK_PCTLD 11 103 #define IMX7ULP_CLK_PCTLD 11 107 #define IMX7ULP_CLK_PCTLE 12 104 #define IMX7ULP_CLK_PCTLE 12 108 #define IMX7ULP_CLK_PCTLF 13 105 #define IMX7ULP_CLK_PCTLF 13 109 #define IMX7ULP_CLK_GPU3D 14 106 #define IMX7ULP_CLK_GPU3D 14 110 #define IMX7ULP_CLK_GPU2D 15 107 #define IMX7ULP_CLK_GPU2D 15 111 108 112 #define IMX7ULP_CLK_PCC3_END 16 109 #define IMX7ULP_CLK_PCC3_END 16 113 110 114 /* SMC1 */ 111 /* SMC1 */ 115 #define IMX7ULP_CLK_ARM 0 112 #define IMX7ULP_CLK_ARM 0 116 113 117 #define IMX7ULP_CLK_SMC1_END 1 114 #define IMX7ULP_CLK_SMC1_END 1 118 115 119 #endif /* __DT_BINDINGS_CLOCK_IMX7ULP_H */ 116 #endif /* __DT_BINDINGS_CLOCK_IMX7ULP_H */ 120 117
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.