Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2016 Freescale Semiconductor, Inc. |
| 4 | * Copyright 2017 NXP |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __DT_BINDINGS_CLOCK_IMX8MQ_H |
| 8 | #define __DT_BINDINGS_CLOCK_IMX8MQ_H |
| 9 | |
| 10 | #define IMX8MQ_CLK_DUMMY 0 |
| 11 | #define IMX8MQ_CLK_32K 1 |
| 12 | #define IMX8MQ_CLK_25M 2 |
| 13 | #define IMX8MQ_CLK_27M 3 |
| 14 | #define IMX8MQ_CLK_EXT1 4 |
| 15 | #define IMX8MQ_CLK_EXT2 5 |
| 16 | #define IMX8MQ_CLK_EXT3 6 |
| 17 | #define IMX8MQ_CLK_EXT4 7 |
| 18 | |
| 19 | /* ANAMIX PLL clocks */ |
| 20 | /* FRAC PLLs */ |
| 21 | /* ARM PLL */ |
| 22 | #define IMX8MQ_ARM_PLL_REF_SEL 8 |
| 23 | #define IMX8MQ_ARM_PLL_REF_DIV 9 |
| 24 | #define IMX8MQ_ARM_PLL 10 |
| 25 | #define IMX8MQ_ARM_PLL_BYPASS 11 |
| 26 | #define IMX8MQ_ARM_PLL_OUT 12 |
| 27 | |
| 28 | /* GPU PLL */ |
| 29 | #define IMX8MQ_GPU_PLL_REF_SEL 13 |
| 30 | #define IMX8MQ_GPU_PLL_REF_DIV 14 |
| 31 | #define IMX8MQ_GPU_PLL 15 |
| 32 | #define IMX8MQ_GPU_PLL_BYPASS 16 |
| 33 | #define IMX8MQ_GPU_PLL_OUT 17 |
| 34 | |
| 35 | /* VPU PLL */ |
| 36 | #define IMX8MQ_VPU_PLL_REF_SEL 18 |
| 37 | #define IMX8MQ_VPU_PLL_REF_DIV 19 |
| 38 | #define IMX8MQ_VPU_PLL 20 |
| 39 | #define IMX8MQ_VPU_PLL_BYPASS 21 |
| 40 | #define IMX8MQ_VPU_PLL_OUT 22 |
| 41 | |
| 42 | /* AUDIO PLL1 */ |
| 43 | #define IMX8MQ_AUDIO_PLL1_REF_SEL 23 |
| 44 | #define IMX8MQ_AUDIO_PLL1_REF_DIV 24 |
| 45 | #define IMX8MQ_AUDIO_PLL1 25 |
| 46 | #define IMX8MQ_AUDIO_PLL1_BYPASS 26 |
| 47 | #define IMX8MQ_AUDIO_PLL1_OUT 27 |
| 48 | |
| 49 | /* AUDIO PLL2 */ |
| 50 | #define IMX8MQ_AUDIO_PLL2_REF_SEL 28 |
| 51 | #define IMX8MQ_AUDIO_PLL2_REF_DIV 29 |
| 52 | #define IMX8MQ_AUDIO_PLL2 30 |
| 53 | #define IMX8MQ_AUDIO_PLL2_BYPASS 31 |
| 54 | #define IMX8MQ_AUDIO_PLL2_OUT 32 |
| 55 | |
| 56 | /* VIDEO PLL1 */ |
| 57 | #define IMX8MQ_VIDEO_PLL1_REF_SEL 33 |
| 58 | #define IMX8MQ_VIDEO_PLL1_REF_DIV 34 |
| 59 | #define IMX8MQ_VIDEO_PLL1 35 |
| 60 | #define IMX8MQ_VIDEO_PLL1_BYPASS 36 |
| 61 | #define IMX8MQ_VIDEO_PLL1_OUT 37 |
| 62 | |
| 63 | /* SYS1 PLL */ |
| 64 | #define IMX8MQ_SYS1_PLL1_REF_SEL 38 |
| 65 | #define IMX8MQ_SYS1_PLL1_REF_DIV 39 |
| 66 | #define IMX8MQ_SYS1_PLL1 40 |
| 67 | #define IMX8MQ_SYS1_PLL1_OUT 41 |
| 68 | #define IMX8MQ_SYS1_PLL1_OUT_DIV 42 |
| 69 | #define IMX8MQ_SYS1_PLL2 43 |
| 70 | #define IMX8MQ_SYS1_PLL2_DIV 44 |
| 71 | #define IMX8MQ_SYS1_PLL2_OUT 45 |
| 72 | |
| 73 | /* SYS2 PLL */ |
| 74 | #define IMX8MQ_SYS2_PLL1_REF_SEL 46 |
| 75 | #define IMX8MQ_SYS2_PLL1_REF_DIV 47 |
| 76 | #define IMX8MQ_SYS2_PLL1 48 |
| 77 | #define IMX8MQ_SYS2_PLL1_OUT 49 |
| 78 | #define IMX8MQ_SYS2_PLL1_OUT_DIV 50 |
| 79 | #define IMX8MQ_SYS2_PLL2 51 |
| 80 | #define IMX8MQ_SYS2_PLL2_DIV 52 |
| 81 | #define IMX8MQ_SYS2_PLL2_OUT 53 |
| 82 | |
| 83 | /* SYS3 PLL */ |
| 84 | #define IMX8MQ_SYS3_PLL1_REF_SEL 54 |
| 85 | #define IMX8MQ_SYS3_PLL1_REF_DIV 55 |
| 86 | #define IMX8MQ_SYS3_PLL1 56 |
| 87 | #define IMX8MQ_SYS3_PLL1_OUT 57 |
| 88 | #define IMX8MQ_SYS3_PLL1_OUT_DIV 58 |
| 89 | #define IMX8MQ_SYS3_PLL2 59 |
| 90 | #define IMX8MQ_SYS3_PLL2_DIV 60 |
| 91 | #define IMX8MQ_SYS3_PLL2_OUT 61 |
| 92 | |
| 93 | /* DRAM PLL */ |
| 94 | #define IMX8MQ_DRAM_PLL1_REF_SEL 62 |
| 95 | #define IMX8MQ_DRAM_PLL1_REF_DIV 63 |
| 96 | #define IMX8MQ_DRAM_PLL1 64 |
| 97 | #define IMX8MQ_DRAM_PLL1_OUT 65 |
| 98 | #define IMX8MQ_DRAM_PLL1_OUT_DIV 66 |
| 99 | #define IMX8MQ_DRAM_PLL2 67 |
| 100 | #define IMX8MQ_DRAM_PLL2_DIV 68 |
| 101 | #define IMX8MQ_DRAM_PLL2_OUT 69 |
| 102 | |
| 103 | /* SYS PLL DIV */ |
| 104 | #define IMX8MQ_SYS1_PLL_40M 70 |
| 105 | #define IMX8MQ_SYS1_PLL_80M 71 |
| 106 | #define IMX8MQ_SYS1_PLL_100M 72 |
| 107 | #define IMX8MQ_SYS1_PLL_133M 73 |
| 108 | #define IMX8MQ_SYS1_PLL_160M 74 |
| 109 | #define IMX8MQ_SYS1_PLL_200M 75 |
| 110 | #define IMX8MQ_SYS1_PLL_266M 76 |
| 111 | #define IMX8MQ_SYS1_PLL_400M 77 |
| 112 | #define IMX8MQ_SYS1_PLL_800M 78 |
| 113 | |
| 114 | #define IMX8MQ_SYS2_PLL_50M 79 |
| 115 | #define IMX8MQ_SYS2_PLL_100M 80 |
| 116 | #define IMX8MQ_SYS2_PLL_125M 81 |
| 117 | #define IMX8MQ_SYS2_PLL_166M 82 |
| 118 | #define IMX8MQ_SYS2_PLL_200M 83 |
| 119 | #define IMX8MQ_SYS2_PLL_250M 84 |
| 120 | #define IMX8MQ_SYS2_PLL_333M 85 |
| 121 | #define IMX8MQ_SYS2_PLL_500M 86 |
| 122 | #define IMX8MQ_SYS2_PLL_1000M 87 |
| 123 | |
| 124 | /* CCM ROOT clocks */ |
| 125 | /* A53 */ |
| 126 | #define IMX8MQ_CLK_A53_SRC 88 |
| 127 | #define IMX8MQ_CLK_A53_CG 89 |
| 128 | #define IMX8MQ_CLK_A53_DIV 90 |
| 129 | /* M4 */ |
| 130 | #define IMX8MQ_CLK_M4_SRC 91 |
| 131 | #define IMX8MQ_CLK_M4_CG 92 |
| 132 | #define IMX8MQ_CLK_M4_DIV 93 |
| 133 | /* VPU */ |
| 134 | #define IMX8MQ_CLK_VPU_SRC 94 |
| 135 | #define IMX8MQ_CLK_VPU_CG 95 |
| 136 | #define IMX8MQ_CLK_VPU_DIV 96 |
| 137 | /* GPU CORE */ |
| 138 | #define IMX8MQ_CLK_GPU_CORE_SRC 97 |
| 139 | #define IMX8MQ_CLK_GPU_CORE_CG 98 |
| 140 | #define IMX8MQ_CLK_GPU_CORE_DIV 99 |
| 141 | /* GPU SHADER */ |
| 142 | #define IMX8MQ_CLK_GPU_SHADER_SRC 100 |
| 143 | #define IMX8MQ_CLK_GPU_SHADER_CG 101 |
| 144 | #define IMX8MQ_CLK_GPU_SHADER_DIV 102 |
| 145 | |
| 146 | /* BUS TYPE */ |
| 147 | /* MAIN AXI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 148 | #define IMX8MQ_CLK_MAIN_AXI 103 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 149 | /* ENET AXI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 150 | #define IMX8MQ_CLK_ENET_AXI 104 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 151 | /* NAND_USDHC_BUS */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 152 | #define IMX8MQ_CLK_NAND_USDHC_BUS 105 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 153 | /* VPU BUS */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 154 | #define IMX8MQ_CLK_VPU_BUS 106 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 155 | /* DISP_AXI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 156 | #define IMX8MQ_CLK_DISP_AXI 107 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 157 | /* DISP APB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 158 | #define IMX8MQ_CLK_DISP_APB 108 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 159 | /* DISP RTRM */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 160 | #define IMX8MQ_CLK_DISP_RTRM 109 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 161 | /* USB_BUS */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 162 | #define IMX8MQ_CLK_USB_BUS 110 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 163 | /* GPU_AXI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 164 | #define IMX8MQ_CLK_GPU_AXI 111 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 165 | /* GPU_AHB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 166 | #define IMX8MQ_CLK_GPU_AHB 112 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 167 | /* NOC */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 168 | #define IMX8MQ_CLK_NOC 113 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 169 | /* NOC_APB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 170 | #define IMX8MQ_CLK_NOC_APB 115 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 171 | |
| 172 | /* AHB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 173 | #define IMX8MQ_CLK_AHB 116 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 174 | /* AUDIO AHB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 175 | #define IMX8MQ_CLK_AUDIO_AHB 117 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 176 | |
| 177 | /* DRAM_ALT */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 178 | #define IMX8MQ_CLK_DRAM_ALT 118 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 179 | /* DRAM APB */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 180 | #define IMX8MQ_CLK_DRAM_APB 119 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 181 | /* VPU_G1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 182 | #define IMX8MQ_CLK_VPU_G1 120 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 183 | /* VPU_G2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 184 | #define IMX8MQ_CLK_VPU_G2 121 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 185 | /* DISP_DTRC */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 186 | #define IMX8MQ_CLK_DISP_DTRC 122 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 187 | /* DISP_DC8000 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 188 | #define IMX8MQ_CLK_DISP_DC8000 123 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 189 | /* PCIE_CTRL */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 190 | #define IMX8MQ_CLK_PCIE1_CTRL 124 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 191 | /* PCIE_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 192 | #define IMX8MQ_CLK_PCIE1_PHY 125 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 193 | /* PCIE_AUX */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 194 | #define IMX8MQ_CLK_PCIE1_AUX 126 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 195 | /* DC_PIXEL */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 196 | #define IMX8MQ_CLK_DC_PIXEL 127 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 197 | /* LCDIF_PIXEL */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 198 | #define IMX8MQ_CLK_LCDIF_PIXEL 128 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 199 | /* SAI1~6 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 200 | #define IMX8MQ_CLK_SAI1 129 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 201 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 202 | #define IMX8MQ_CLK_SAI2 130 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 203 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 204 | #define IMX8MQ_CLK_SAI3 131 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 205 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 206 | #define IMX8MQ_CLK_SAI4 132 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 207 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 208 | #define IMX8MQ_CLK_SAI5 133 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 209 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 210 | #define IMX8MQ_CLK_SAI6 134 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 211 | /* SPDIF1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 212 | #define IMX8MQ_CLK_SPDIF1 135 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 213 | /* SPDIF2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 214 | #define IMX8MQ_CLK_SPDIF2 136 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 215 | /* ENET_REF */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 216 | #define IMX8MQ_CLK_ENET_REF 137 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 217 | /* ENET_TIMER */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 218 | #define IMX8MQ_CLK_ENET_TIMER 138 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 219 | /* ENET_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 220 | #define IMX8MQ_CLK_ENET_PHY_REF 139 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 221 | /* NAND */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 222 | #define IMX8MQ_CLK_NAND 140 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 223 | /* QSPI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 224 | #define IMX8MQ_CLK_QSPI 141 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 225 | /* USDHC1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 226 | #define IMX8MQ_CLK_USDHC1 142 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 227 | /* USDHC2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 228 | #define IMX8MQ_CLK_USDHC2 143 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 229 | /* I2C1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 230 | #define IMX8MQ_CLK_I2C1 144 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 231 | /* I2C2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 232 | #define IMX8MQ_CLK_I2C2 145 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 233 | /* I2C3 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 234 | #define IMX8MQ_CLK_I2C3 146 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 235 | /* I2C4 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 236 | #define IMX8MQ_CLK_I2C4 147 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 237 | /* UART1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 238 | #define IMX8MQ_CLK_UART1 148 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 239 | /* UART2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 240 | #define IMX8MQ_CLK_UART2 149 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 241 | /* UART3 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 242 | #define IMX8MQ_CLK_UART3 150 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 243 | /* UART4 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 244 | #define IMX8MQ_CLK_UART4 151 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 245 | /* USB_CORE_REF */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 246 | #define IMX8MQ_CLK_USB_CORE_REF 152 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 247 | /* USB_PHY_REF */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 248 | #define IMX8MQ_CLK_USB_PHY_REF 153 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 249 | /* ECSPI1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 250 | #define IMX8MQ_CLK_ECSPI1 154 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 251 | /* ECSPI2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 252 | #define IMX8MQ_CLK_ECSPI2 155 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 253 | /* PWM1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 254 | #define IMX8MQ_CLK_PWM1 156 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 255 | /* PWM2 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 256 | #define IMX8MQ_CLK_PWM2 157 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 257 | /* PWM3 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 258 | #define IMX8MQ_CLK_PWM3 158 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 259 | /* PWM4 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 260 | #define IMX8MQ_CLK_PWM4 159 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 261 | /* GPT1 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 262 | #define IMX8MQ_CLK_GPT1 160 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 263 | /* WDOG */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 264 | #define IMX8MQ_CLK_WDOG 161 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 265 | /* WRCLK */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 266 | #define IMX8MQ_CLK_WRCLK 162 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 267 | /* DSI_CORE */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 268 | #define IMX8MQ_CLK_DSI_CORE 163 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 269 | /* DSI_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 270 | #define IMX8MQ_CLK_DSI_PHY_REF 164 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 271 | /* DSI_DBI */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 272 | #define IMX8MQ_CLK_DSI_DBI 165 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 273 | /*DSI_ESC */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 274 | #define IMX8MQ_CLK_DSI_ESC 166 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 275 | /* CSI1_CORE */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 276 | #define IMX8MQ_CLK_CSI1_CORE 167 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 277 | /* CSI1_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 278 | #define IMX8MQ_CLK_CSI1_PHY_REF 168 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 279 | /* CSI_ESC */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 280 | #define IMX8MQ_CLK_CSI1_ESC 169 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 281 | /* CSI2_CORE */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 282 | #define IMX8MQ_CLK_CSI2_CORE 170 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 283 | /* CSI2_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 284 | #define IMX8MQ_CLK_CSI2_PHY_REF 171 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 285 | /* CSI2_ESC */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 286 | #define IMX8MQ_CLK_CSI2_ESC 172 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 287 | /* PCIE2_CTRL */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 288 | #define IMX8MQ_CLK_PCIE2_CTRL 173 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 289 | /* PCIE2_PHY */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 290 | #define IMX8MQ_CLK_PCIE2_PHY 174 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 291 | /* PCIE2_AUX */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 292 | #define IMX8MQ_CLK_PCIE2_AUX 175 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 293 | /* ECSPI3 */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 294 | #define IMX8MQ_CLK_ECSPI3 176 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 295 | |
| 296 | /* CCGR clocks */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 297 | #define IMX8MQ_CLK_A53_ROOT 177 |
| 298 | #define IMX8MQ_CLK_DRAM_ROOT 178 |
| 299 | #define IMX8MQ_CLK_ECSPI1_ROOT 179 |
| 300 | #define IMX8MQ_CLK_ECSPI2_ROOT 180 |
| 301 | #define IMX8MQ_CLK_ECSPI3_ROOT 181 |
| 302 | #define IMX8MQ_CLK_ENET1_ROOT 182 |
| 303 | #define IMX8MQ_CLK_GPT1_ROOT 183 |
| 304 | #define IMX8MQ_CLK_I2C1_ROOT 184 |
| 305 | #define IMX8MQ_CLK_I2C2_ROOT 185 |
| 306 | #define IMX8MQ_CLK_I2C3_ROOT 186 |
| 307 | #define IMX8MQ_CLK_I2C4_ROOT 187 |
| 308 | #define IMX8MQ_CLK_M4_ROOT 188 |
| 309 | #define IMX8MQ_CLK_PCIE1_ROOT 189 |
| 310 | #define IMX8MQ_CLK_PCIE2_ROOT 190 |
| 311 | #define IMX8MQ_CLK_PWM1_ROOT 191 |
| 312 | #define IMX8MQ_CLK_PWM2_ROOT 192 |
| 313 | #define IMX8MQ_CLK_PWM3_ROOT 193 |
| 314 | #define IMX8MQ_CLK_PWM4_ROOT 194 |
| 315 | #define IMX8MQ_CLK_QSPI_ROOT 195 |
| 316 | #define IMX8MQ_CLK_SAI1_ROOT 196 |
| 317 | #define IMX8MQ_CLK_SAI2_ROOT 197 |
| 318 | #define IMX8MQ_CLK_SAI3_ROOT 198 |
| 319 | #define IMX8MQ_CLK_SAI4_ROOT 199 |
| 320 | #define IMX8MQ_CLK_SAI5_ROOT 200 |
| 321 | #define IMX8MQ_CLK_SAI6_ROOT 201 |
| 322 | #define IMX8MQ_CLK_UART1_ROOT 202 |
| 323 | #define IMX8MQ_CLK_UART2_ROOT 203 |
| 324 | #define IMX8MQ_CLK_UART3_ROOT 204 |
| 325 | #define IMX8MQ_CLK_UART4_ROOT 205 |
| 326 | #define IMX8MQ_CLK_USB1_CTRL_ROOT 206 |
| 327 | #define IMX8MQ_CLK_USB2_CTRL_ROOT 207 |
| 328 | #define IMX8MQ_CLK_USB1_PHY_ROOT 208 |
| 329 | #define IMX8MQ_CLK_USB2_PHY_ROOT 209 |
| 330 | #define IMX8MQ_CLK_USDHC1_ROOT 210 |
| 331 | #define IMX8MQ_CLK_USDHC2_ROOT 211 |
| 332 | #define IMX8MQ_CLK_WDOG1_ROOT 212 |
| 333 | #define IMX8MQ_CLK_WDOG2_ROOT 213 |
| 334 | #define IMX8MQ_CLK_WDOG3_ROOT 214 |
| 335 | #define IMX8MQ_CLK_GPU_ROOT 215 |
| 336 | #define IMX8MQ_CLK_HEVC_ROOT 216 |
| 337 | #define IMX8MQ_CLK_AVC_ROOT 217 |
| 338 | #define IMX8MQ_CLK_VP9_ROOT 218 |
| 339 | #define IMX8MQ_CLK_HEVC_INTER_ROOT 219 |
| 340 | #define IMX8MQ_CLK_DISP_ROOT 220 |
| 341 | #define IMX8MQ_CLK_HDMI_ROOT 221 |
| 342 | #define IMX8MQ_CLK_HDMI_PHY_ROOT 222 |
| 343 | #define IMX8MQ_CLK_VPU_DEC_ROOT 223 |
| 344 | #define IMX8MQ_CLK_CSI1_ROOT 224 |
| 345 | #define IMX8MQ_CLK_CSI2_ROOT 225 |
| 346 | #define IMX8MQ_CLK_RAWNAND_ROOT 226 |
| 347 | #define IMX8MQ_CLK_SDMA1_ROOT 227 |
| 348 | #define IMX8MQ_CLK_SDMA2_ROOT 228 |
| 349 | #define IMX8MQ_CLK_VPU_G1_ROOT 229 |
| 350 | #define IMX8MQ_CLK_VPU_G2_ROOT 230 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 351 | |
| 352 | /* SCCG PLL GATE */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 353 | #define IMX8MQ_SYS1_PLL_OUT 231 |
| 354 | #define IMX8MQ_SYS2_PLL_OUT 232 |
| 355 | #define IMX8MQ_SYS3_PLL_OUT 233 |
| 356 | #define IMX8MQ_DRAM_PLL_OUT 234 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 357 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 358 | #define IMX8MQ_GPT_3M_CLK 235 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 359 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 360 | #define IMX8MQ_CLK_IPG_ROOT 236 |
| 361 | #define IMX8MQ_CLK_IPG_AUDIO_ROOT 237 |
| 362 | #define IMX8MQ_CLK_SAI1_IPG 238 |
| 363 | #define IMX8MQ_CLK_SAI2_IPG 239 |
| 364 | #define IMX8MQ_CLK_SAI3_IPG 240 |
| 365 | #define IMX8MQ_CLK_SAI4_IPG 241 |
| 366 | #define IMX8MQ_CLK_SAI5_IPG 242 |
| 367 | #define IMX8MQ_CLK_SAI6_IPG 243 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 368 | |
| 369 | /* DSI AHB/IPG clocks */ |
| 370 | /* rxesc clock */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 371 | #define IMX8MQ_CLK_DSI_AHB 244 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 372 | /* txesc clock */ |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 373 | #define IMX8MQ_CLK_DSI_IPG_DIV 245 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 374 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 375 | #define IMX8MQ_CLK_TMU_ROOT 246 |
| 376 | |
| 377 | /* Display root clocks */ |
| 378 | #define IMX8MQ_CLK_DISP_AXI_ROOT 247 |
| 379 | #define IMX8MQ_CLK_DISP_APB_ROOT 248 |
| 380 | #define IMX8MQ_CLK_DISP_RTRM_ROOT 249 |
| 381 | |
| 382 | #define IMX8MQ_CLK_OCOTP_ROOT 250 |
| 383 | |
| 384 | #define IMX8MQ_CLK_DRAM_ALT_ROOT 251 |
| 385 | #define IMX8MQ_CLK_DRAM_CORE 252 |
| 386 | |
| 387 | #define IMX8MQ_CLK_MU_ROOT 253 |
| 388 | #define IMX8MQ_VIDEO2_PLL_OUT 254 |
| 389 | |
| 390 | #define IMX8MQ_CLK_CLKO2 255 |
| 391 | |
| 392 | #define IMX8MQ_CLK_NAND_USDHC_BUS_RAWNAND_CLK 256 |
| 393 | |
| 394 | #define IMX8MQ_CLK_CLKO1 257 |
| 395 | #define IMX8MQ_CLK_ARM 258 |
| 396 | |
| 397 | #define IMX8MQ_CLK_GPIO1_ROOT 259 |
| 398 | #define IMX8MQ_CLK_GPIO2_ROOT 260 |
| 399 | #define IMX8MQ_CLK_GPIO3_ROOT 261 |
| 400 | #define IMX8MQ_CLK_GPIO4_ROOT 262 |
| 401 | #define IMX8MQ_CLK_GPIO5_ROOT 263 |
| 402 | |
| 403 | #define IMX8MQ_CLK_SNVS_ROOT 264 |
| 404 | #define IMX8MQ_CLK_GIC 265 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 405 | |
Patrick Wildt | 02548cf | 2019-10-14 13:19:00 +0200 | [diff] [blame] | 406 | #define IMX8MQ_CLK_END 266 |
Peng Fan | d76f3b0 | 2018-01-10 13:20:45 +0800 | [diff] [blame] | 407 | #endif /* __DT_BINDINGS_CLOCK_IMX8MQ_H */ |