162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright 2018-2019 NXP 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __DT_BINDINGS_CLOCK_IMX8MN_H 762306a36Sopenharmony_ci#define __DT_BINDINGS_CLOCK_IMX8MN_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define IMX8MN_CLK_DUMMY 0 1062306a36Sopenharmony_ci#define IMX8MN_CLK_32K 1 1162306a36Sopenharmony_ci#define IMX8MN_CLK_24M 2 1262306a36Sopenharmony_ci#define IMX8MN_OSC_HDMI_CLK 3 1362306a36Sopenharmony_ci#define IMX8MN_CLK_EXT1 4 1462306a36Sopenharmony_ci#define IMX8MN_CLK_EXT2 5 1562306a36Sopenharmony_ci#define IMX8MN_CLK_EXT3 6 1662306a36Sopenharmony_ci#define IMX8MN_CLK_EXT4 7 1762306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL1_REF_SEL 8 1862306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL2_REF_SEL 9 1962306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL_REF_SEL 10 2062306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL1_REF_SEL IMX8MN_VIDEO_PLL_REF_SEL 2162306a36Sopenharmony_ci#define IMX8MN_DRAM_PLL_REF_SEL 11 2262306a36Sopenharmony_ci#define IMX8MN_GPU_PLL_REF_SEL 12 2362306a36Sopenharmony_ci#define IMX8MN_M7_ALT_PLL_REF_SEL 13 2462306a36Sopenharmony_ci#define IMX8MN_VPU_PLL_REF_SEL IMX8MN_M7_ALT_PLL_REF_SEL 2562306a36Sopenharmony_ci#define IMX8MN_ARM_PLL_REF_SEL 14 2662306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_REF_SEL 15 2762306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_REF_SEL 16 2862306a36Sopenharmony_ci#define IMX8MN_SYS_PLL3_REF_SEL 17 2962306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL1 18 3062306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL2 19 3162306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL 20 3262306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL1 IMX8MN_VIDEO_PLL 3362306a36Sopenharmony_ci#define IMX8MN_DRAM_PLL 21 3462306a36Sopenharmony_ci#define IMX8MN_GPU_PLL 22 3562306a36Sopenharmony_ci#define IMX8MN_M7_ALT_PLL 23 3662306a36Sopenharmony_ci#define IMX8MN_VPU_PLL IMX8MN_M7_ALT_PLL 3762306a36Sopenharmony_ci#define IMX8MN_ARM_PLL 24 3862306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1 25 3962306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2 26 4062306a36Sopenharmony_ci#define IMX8MN_SYS_PLL3 27 4162306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL1_BYPASS 28 4262306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL2_BYPASS 29 4362306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL_BYPASS 30 4462306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL1_BYPASS IMX8MN_VIDEO_PLL_BYPASS 4562306a36Sopenharmony_ci#define IMX8MN_DRAM_PLL_BYPASS 31 4662306a36Sopenharmony_ci#define IMX8MN_GPU_PLL_BYPASS 32 4762306a36Sopenharmony_ci#define IMX8MN_M7_ALT_PLL_BYPASS 33 4862306a36Sopenharmony_ci#define IMX8MN_VPU_PLL_BYPASS IMX8MN_M7_ALT_PLL_BYPASS 4962306a36Sopenharmony_ci#define IMX8MN_ARM_PLL_BYPASS 34 5062306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_BYPASS 35 5162306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_BYPASS 36 5262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL3_BYPASS 37 5362306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL1_OUT 38 5462306a36Sopenharmony_ci#define IMX8MN_AUDIO_PLL2_OUT 39 5562306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL_OUT 40 5662306a36Sopenharmony_ci#define IMX8MN_VIDEO_PLL1_OUT IMX8MN_VIDEO_PLL_OUT 5762306a36Sopenharmony_ci#define IMX8MN_DRAM_PLL_OUT 41 5862306a36Sopenharmony_ci#define IMX8MN_GPU_PLL_OUT 42 5962306a36Sopenharmony_ci#define IMX8MN_M7_ALT_PLL_OUT 43 6062306a36Sopenharmony_ci#define IMX8MN_VPU_PLL_OUT IMX8MN_M7_ALT_PLL_OUT 6162306a36Sopenharmony_ci#define IMX8MN_ARM_PLL_OUT 44 6262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_OUT 45 6362306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_OUT 46 6462306a36Sopenharmony_ci#define IMX8MN_SYS_PLL3_OUT 47 6562306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_40M 48 6662306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_80M 49 6762306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_100M 50 6862306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_133M 51 6962306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_160M 52 7062306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_200M 53 7162306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_266M 54 7262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_400M 55 7362306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_800M 56 7462306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_50M 57 7562306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_100M 58 7662306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_125M 59 7762306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_166M 60 7862306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_200M 61 7962306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_250M 62 8062306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_333M 63 8162306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_500M 64 8262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_1000M 65 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci/* CORE CLOCK ROOT */ 8562306a36Sopenharmony_ci#define IMX8MN_CLK_A53_SRC 66 8662306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_CORE_SRC 67 8762306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_SHADER_SRC 68 8862306a36Sopenharmony_ci#define IMX8MN_CLK_A53_CG 69 8962306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_CORE_CG 70 9062306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_SHADER_CG 71 9162306a36Sopenharmony_ci#define IMX8MN_CLK_A53_DIV 72 9262306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_CORE_DIV 73 9362306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_SHADER_DIV 74 9462306a36Sopenharmony_ci 9562306a36Sopenharmony_ci/* BUS CLOCK ROOT */ 9662306a36Sopenharmony_ci#define IMX8MN_CLK_MAIN_AXI 75 9762306a36Sopenharmony_ci#define IMX8MN_CLK_ENET_AXI 76 9862306a36Sopenharmony_ci#define IMX8MN_CLK_NAND_USDHC_BUS 77 9962306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_AXI 78 10062306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_APB 79 10162306a36Sopenharmony_ci#define IMX8MN_CLK_USB_BUS 80 10262306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_AXI 81 10362306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_AHB 82 10462306a36Sopenharmony_ci#define IMX8MN_CLK_NOC 83 10562306a36Sopenharmony_ci#define IMX8MN_CLK_AHB 84 10662306a36Sopenharmony_ci#define IMX8MN_CLK_AUDIO_AHB 85 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ci/* IPG CLOCK ROOT */ 10962306a36Sopenharmony_ci#define IMX8MN_CLK_IPG_ROOT 86 11062306a36Sopenharmony_ci#define IMX8MN_CLK_IPG_AUDIO_ROOT 87 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ci/* IP */ 11362306a36Sopenharmony_ci#define IMX8MN_CLK_DRAM_CORE 88 11462306a36Sopenharmony_ci#define IMX8MN_CLK_DRAM_ALT 89 11562306a36Sopenharmony_ci#define IMX8MN_CLK_DRAM_APB 90 11662306a36Sopenharmony_ci#define IMX8MN_CLK_DRAM_ALT_ROOT 91 11762306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_PIXEL 92 11862306a36Sopenharmony_ci#define IMX8MN_CLK_SAI2 93 11962306a36Sopenharmony_ci#define IMX8MN_CLK_SAI3 94 12062306a36Sopenharmony_ci#define IMX8MN_CLK_SAI5 95 12162306a36Sopenharmony_ci#define IMX8MN_CLK_SAI6 96 12262306a36Sopenharmony_ci#define IMX8MN_CLK_SPDIF1 97 12362306a36Sopenharmony_ci#define IMX8MN_CLK_ENET_REF 98 12462306a36Sopenharmony_ci#define IMX8MN_CLK_ENET_TIMER 99 12562306a36Sopenharmony_ci#define IMX8MN_CLK_ENET_PHY_REF 100 12662306a36Sopenharmony_ci#define IMX8MN_CLK_NAND 101 12762306a36Sopenharmony_ci#define IMX8MN_CLK_QSPI 102 12862306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC1 103 12962306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC2 104 13062306a36Sopenharmony_ci#define IMX8MN_CLK_I2C1 105 13162306a36Sopenharmony_ci#define IMX8MN_CLK_I2C2 106 13262306a36Sopenharmony_ci#define IMX8MN_CLK_I2C3 107 13362306a36Sopenharmony_ci#define IMX8MN_CLK_I2C4 108 13462306a36Sopenharmony_ci#define IMX8MN_CLK_UART1 109 13562306a36Sopenharmony_ci#define IMX8MN_CLK_UART2 110 13662306a36Sopenharmony_ci#define IMX8MN_CLK_UART3 111 13762306a36Sopenharmony_ci#define IMX8MN_CLK_UART4 112 13862306a36Sopenharmony_ci#define IMX8MN_CLK_USB_CORE_REF 113 13962306a36Sopenharmony_ci#define IMX8MN_CLK_USB_PHY_REF 114 14062306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI1 115 14162306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI2 116 14262306a36Sopenharmony_ci#define IMX8MN_CLK_PWM1 117 14362306a36Sopenharmony_ci#define IMX8MN_CLK_PWM2 118 14462306a36Sopenharmony_ci#define IMX8MN_CLK_PWM3 119 14562306a36Sopenharmony_ci#define IMX8MN_CLK_PWM4 120 14662306a36Sopenharmony_ci#define IMX8MN_CLK_WDOG 121 14762306a36Sopenharmony_ci#define IMX8MN_CLK_WRCLK 122 14862306a36Sopenharmony_ci#define IMX8MN_CLK_CLKO1 123 14962306a36Sopenharmony_ci#define IMX8MN_CLK_CLKO2 124 15062306a36Sopenharmony_ci#define IMX8MN_CLK_DSI_CORE 125 15162306a36Sopenharmony_ci#define IMX8MN_CLK_DSI_PHY_REF 126 15262306a36Sopenharmony_ci#define IMX8MN_CLK_DSI_DBI 127 15362306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC3 128 15462306a36Sopenharmony_ci#define IMX8MN_CLK_CAMERA_PIXEL 129 15562306a36Sopenharmony_ci#define IMX8MN_CLK_CSI1_PHY_REF 130 15662306a36Sopenharmony_ci#define IMX8MN_CLK_CSI2_PHY_REF 131 15762306a36Sopenharmony_ci#define IMX8MN_CLK_CSI2_ESC 132 15862306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI3 133 15962306a36Sopenharmony_ci#define IMX8MN_CLK_PDM 134 16062306a36Sopenharmony_ci#define IMX8MN_CLK_SAI7 135 16162306a36Sopenharmony_ci 16262306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI1_ROOT 136 16362306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI2_ROOT 137 16462306a36Sopenharmony_ci#define IMX8MN_CLK_ECSPI3_ROOT 138 16562306a36Sopenharmony_ci#define IMX8MN_CLK_ENET1_ROOT 139 16662306a36Sopenharmony_ci#define IMX8MN_CLK_GPIO1_ROOT 140 16762306a36Sopenharmony_ci#define IMX8MN_CLK_GPIO2_ROOT 141 16862306a36Sopenharmony_ci#define IMX8MN_CLK_GPIO3_ROOT 142 16962306a36Sopenharmony_ci#define IMX8MN_CLK_GPIO4_ROOT 143 17062306a36Sopenharmony_ci#define IMX8MN_CLK_GPIO5_ROOT 144 17162306a36Sopenharmony_ci#define IMX8MN_CLK_I2C1_ROOT 145 17262306a36Sopenharmony_ci#define IMX8MN_CLK_I2C2_ROOT 146 17362306a36Sopenharmony_ci#define IMX8MN_CLK_I2C3_ROOT 147 17462306a36Sopenharmony_ci#define IMX8MN_CLK_I2C4_ROOT 148 17562306a36Sopenharmony_ci#define IMX8MN_CLK_MU_ROOT 149 17662306a36Sopenharmony_ci#define IMX8MN_CLK_OCOTP_ROOT 150 17762306a36Sopenharmony_ci#define IMX8MN_CLK_PWM1_ROOT 151 17862306a36Sopenharmony_ci#define IMX8MN_CLK_PWM2_ROOT 152 17962306a36Sopenharmony_ci#define IMX8MN_CLK_PWM3_ROOT 153 18062306a36Sopenharmony_ci#define IMX8MN_CLK_PWM4_ROOT 154 18162306a36Sopenharmony_ci#define IMX8MN_CLK_QSPI_ROOT 155 18262306a36Sopenharmony_ci#define IMX8MN_CLK_NAND_ROOT 156 18362306a36Sopenharmony_ci#define IMX8MN_CLK_SAI2_ROOT 157 18462306a36Sopenharmony_ci#define IMX8MN_CLK_SAI2_IPG 158 18562306a36Sopenharmony_ci#define IMX8MN_CLK_SAI3_ROOT 159 18662306a36Sopenharmony_ci#define IMX8MN_CLK_SAI3_IPG 160 18762306a36Sopenharmony_ci#define IMX8MN_CLK_SAI5_ROOT 161 18862306a36Sopenharmony_ci#define IMX8MN_CLK_SAI5_IPG 162 18962306a36Sopenharmony_ci#define IMX8MN_CLK_SAI6_ROOT 163 19062306a36Sopenharmony_ci#define IMX8MN_CLK_SAI6_IPG 164 19162306a36Sopenharmony_ci#define IMX8MN_CLK_SAI7_ROOT 165 19262306a36Sopenharmony_ci#define IMX8MN_CLK_SAI7_IPG 166 19362306a36Sopenharmony_ci#define IMX8MN_CLK_SDMA1_ROOT 167 19462306a36Sopenharmony_ci#define IMX8MN_CLK_SDMA2_ROOT 168 19562306a36Sopenharmony_ci#define IMX8MN_CLK_UART1_ROOT 169 19662306a36Sopenharmony_ci#define IMX8MN_CLK_UART2_ROOT 170 19762306a36Sopenharmony_ci#define IMX8MN_CLK_UART3_ROOT 171 19862306a36Sopenharmony_ci#define IMX8MN_CLK_UART4_ROOT 172 19962306a36Sopenharmony_ci#define IMX8MN_CLK_USB1_CTRL_ROOT 173 20062306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC1_ROOT 174 20162306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC2_ROOT 175 20262306a36Sopenharmony_ci#define IMX8MN_CLK_WDOG1_ROOT 176 20362306a36Sopenharmony_ci#define IMX8MN_CLK_WDOG2_ROOT 177 20462306a36Sopenharmony_ci#define IMX8MN_CLK_WDOG3_ROOT 178 20562306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_BUS_ROOT 179 20662306a36Sopenharmony_ci#define IMX8MN_CLK_ASRC_ROOT 180 20762306a36Sopenharmony_ci#define IMX8MN_CLK_GPU3D_ROOT 181 20862306a36Sopenharmony_ci#define IMX8MN_CLK_PDM_ROOT 182 20962306a36Sopenharmony_ci#define IMX8MN_CLK_PDM_IPG 183 21062306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_AXI_ROOT 184 21162306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_APB_ROOT 185 21262306a36Sopenharmony_ci#define IMX8MN_CLK_DISP_PIXEL_ROOT 186 21362306a36Sopenharmony_ci#define IMX8MN_CLK_CAMERA_PIXEL_ROOT 187 21462306a36Sopenharmony_ci#define IMX8MN_CLK_USDHC3_ROOT 188 21562306a36Sopenharmony_ci#define IMX8MN_CLK_SDMA3_ROOT 189 21662306a36Sopenharmony_ci#define IMX8MN_CLK_TMU_ROOT 190 21762306a36Sopenharmony_ci#define IMX8MN_CLK_ARM 191 21862306a36Sopenharmony_ci#define IMX8MN_CLK_NAND_USDHC_BUS_RAWNAND_CLK 192 21962306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_CORE_ROOT 193 22062306a36Sopenharmony_ci#define IMX8MN_CLK_GIC 194 22162306a36Sopenharmony_ci 22262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_40M_CG 195 22362306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_80M_CG 196 22462306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_100M_CG 197 22562306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_133M_CG 198 22662306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_160M_CG 199 22762306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_200M_CG 200 22862306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_266M_CG 201 22962306a36Sopenharmony_ci#define IMX8MN_SYS_PLL1_400M_CG 202 23062306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_50M_CG 203 23162306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_100M_CG 204 23262306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_125M_CG 205 23362306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_166M_CG 206 23462306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_200M_CG 207 23562306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_250M_CG 208 23662306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_333M_CG 209 23762306a36Sopenharmony_ci#define IMX8MN_SYS_PLL2_500M_CG 210 23862306a36Sopenharmony_ci 23962306a36Sopenharmony_ci#define IMX8MN_CLK_SNVS_ROOT 211 24062306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_CORE 212 24162306a36Sopenharmony_ci#define IMX8MN_CLK_GPU_SHADER 213 24262306a36Sopenharmony_ci 24362306a36Sopenharmony_ci#define IMX8MN_CLK_A53_CORE 214 24462306a36Sopenharmony_ci 24562306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT1_SEL 215 24662306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT1_DIV 216 24762306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT1 217 24862306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT2_SEL 218 24962306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT2_DIV 219 25062306a36Sopenharmony_ci#define IMX8MN_CLK_CLKOUT2 220 25162306a36Sopenharmony_ci 25262306a36Sopenharmony_ci#define IMX8MN_CLK_M7_CORE 221 25362306a36Sopenharmony_ci 25462306a36Sopenharmony_ci#define IMX8MN_CLK_GPT_3M 222 25562306a36Sopenharmony_ci#define IMX8MN_CLK_GPT1 223 25662306a36Sopenharmony_ci#define IMX8MN_CLK_GPT1_ROOT 224 25762306a36Sopenharmony_ci#define IMX8MN_CLK_GPT2 225 25862306a36Sopenharmony_ci#define IMX8MN_CLK_GPT2_ROOT 226 25962306a36Sopenharmony_ci#define IMX8MN_CLK_GPT3 227 26062306a36Sopenharmony_ci#define IMX8MN_CLK_GPT3_ROOT 228 26162306a36Sopenharmony_ci#define IMX8MN_CLK_GPT4 229 26262306a36Sopenharmony_ci#define IMX8MN_CLK_GPT4_ROOT 230 26362306a36Sopenharmony_ci#define IMX8MN_CLK_GPT5 231 26462306a36Sopenharmony_ci#define IMX8MN_CLK_GPT5_ROOT 232 26562306a36Sopenharmony_ci#define IMX8MN_CLK_GPT6 233 26662306a36Sopenharmony_ci#define IMX8MN_CLK_GPT6_ROOT 234 26762306a36Sopenharmony_ci 26862306a36Sopenharmony_ci#define IMX8MN_CLK_END 235 26962306a36Sopenharmony_ci 27062306a36Sopenharmony_ci#endif 271