18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 48c2ecf20Sopenharmony_ci * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for STMicroelectronics. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_STM32MP1_CLKS_H_ 88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_STM32MP1_CLKS_H_ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* OSCILLATOR clocks */ 118c2ecf20Sopenharmony_ci#define CK_HSE 0 128c2ecf20Sopenharmony_ci#define CK_CSI 1 138c2ecf20Sopenharmony_ci#define CK_LSI 2 148c2ecf20Sopenharmony_ci#define CK_LSE 3 158c2ecf20Sopenharmony_ci#define CK_HSI 4 168c2ecf20Sopenharmony_ci#define CK_HSE_DIV2 5 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* Bus clocks */ 198c2ecf20Sopenharmony_ci#define TIM2 6 208c2ecf20Sopenharmony_ci#define TIM3 7 218c2ecf20Sopenharmony_ci#define TIM4 8 228c2ecf20Sopenharmony_ci#define TIM5 9 238c2ecf20Sopenharmony_ci#define TIM6 10 248c2ecf20Sopenharmony_ci#define TIM7 11 258c2ecf20Sopenharmony_ci#define TIM12 12 268c2ecf20Sopenharmony_ci#define TIM13 13 278c2ecf20Sopenharmony_ci#define TIM14 14 288c2ecf20Sopenharmony_ci#define LPTIM1 15 298c2ecf20Sopenharmony_ci#define SPI2 16 308c2ecf20Sopenharmony_ci#define SPI3 17 318c2ecf20Sopenharmony_ci#define USART2 18 328c2ecf20Sopenharmony_ci#define USART3 19 338c2ecf20Sopenharmony_ci#define UART4 20 348c2ecf20Sopenharmony_ci#define UART5 21 358c2ecf20Sopenharmony_ci#define UART7 22 368c2ecf20Sopenharmony_ci#define UART8 23 378c2ecf20Sopenharmony_ci#define I2C1 24 388c2ecf20Sopenharmony_ci#define I2C2 25 398c2ecf20Sopenharmony_ci#define I2C3 26 408c2ecf20Sopenharmony_ci#define I2C5 27 418c2ecf20Sopenharmony_ci#define SPDIF 28 428c2ecf20Sopenharmony_ci#define CEC 29 438c2ecf20Sopenharmony_ci#define DAC12 30 448c2ecf20Sopenharmony_ci#define MDIO 31 458c2ecf20Sopenharmony_ci#define TIM1 32 468c2ecf20Sopenharmony_ci#define TIM8 33 478c2ecf20Sopenharmony_ci#define TIM15 34 488c2ecf20Sopenharmony_ci#define TIM16 35 498c2ecf20Sopenharmony_ci#define TIM17 36 508c2ecf20Sopenharmony_ci#define SPI1 37 518c2ecf20Sopenharmony_ci#define SPI4 38 528c2ecf20Sopenharmony_ci#define SPI5 39 538c2ecf20Sopenharmony_ci#define USART6 40 548c2ecf20Sopenharmony_ci#define SAI1 41 558c2ecf20Sopenharmony_ci#define SAI2 42 568c2ecf20Sopenharmony_ci#define SAI3 43 578c2ecf20Sopenharmony_ci#define DFSDM 44 588c2ecf20Sopenharmony_ci#define FDCAN 45 598c2ecf20Sopenharmony_ci#define LPTIM2 46 608c2ecf20Sopenharmony_ci#define LPTIM3 47 618c2ecf20Sopenharmony_ci#define LPTIM4 48 628c2ecf20Sopenharmony_ci#define LPTIM5 49 638c2ecf20Sopenharmony_ci#define SAI4 50 648c2ecf20Sopenharmony_ci#define SYSCFG 51 658c2ecf20Sopenharmony_ci#define VREF 52 668c2ecf20Sopenharmony_ci#define TMPSENS 53 678c2ecf20Sopenharmony_ci#define PMBCTRL 54 688c2ecf20Sopenharmony_ci#define HDP 55 698c2ecf20Sopenharmony_ci#define LTDC 56 708c2ecf20Sopenharmony_ci#define DSI 57 718c2ecf20Sopenharmony_ci#define IWDG2 58 728c2ecf20Sopenharmony_ci#define USBPHY 59 738c2ecf20Sopenharmony_ci#define STGENRO 60 748c2ecf20Sopenharmony_ci#define SPI6 61 758c2ecf20Sopenharmony_ci#define I2C4 62 768c2ecf20Sopenharmony_ci#define I2C6 63 778c2ecf20Sopenharmony_ci#define USART1 64 788c2ecf20Sopenharmony_ci#define RTCAPB 65 798c2ecf20Sopenharmony_ci#define TZC1 66 808c2ecf20Sopenharmony_ci#define TZPC 67 818c2ecf20Sopenharmony_ci#define IWDG1 68 828c2ecf20Sopenharmony_ci#define BSEC 69 838c2ecf20Sopenharmony_ci#define STGEN 70 848c2ecf20Sopenharmony_ci#define DMA1 71 858c2ecf20Sopenharmony_ci#define DMA2 72 868c2ecf20Sopenharmony_ci#define DMAMUX 73 878c2ecf20Sopenharmony_ci#define ADC12 74 888c2ecf20Sopenharmony_ci#define USBO 75 898c2ecf20Sopenharmony_ci#define SDMMC3 76 908c2ecf20Sopenharmony_ci#define DCMI 77 918c2ecf20Sopenharmony_ci#define CRYP2 78 928c2ecf20Sopenharmony_ci#define HASH2 79 938c2ecf20Sopenharmony_ci#define RNG2 80 948c2ecf20Sopenharmony_ci#define CRC2 81 958c2ecf20Sopenharmony_ci#define HSEM 82 968c2ecf20Sopenharmony_ci#define IPCC 83 978c2ecf20Sopenharmony_ci#define GPIOA 84 988c2ecf20Sopenharmony_ci#define GPIOB 85 998c2ecf20Sopenharmony_ci#define GPIOC 86 1008c2ecf20Sopenharmony_ci#define GPIOD 87 1018c2ecf20Sopenharmony_ci#define GPIOE 88 1028c2ecf20Sopenharmony_ci#define GPIOF 89 1038c2ecf20Sopenharmony_ci#define GPIOG 90 1048c2ecf20Sopenharmony_ci#define GPIOH 91 1058c2ecf20Sopenharmony_ci#define GPIOI 92 1068c2ecf20Sopenharmony_ci#define GPIOJ 93 1078c2ecf20Sopenharmony_ci#define GPIOK 94 1088c2ecf20Sopenharmony_ci#define GPIOZ 95 1098c2ecf20Sopenharmony_ci#define CRYP1 96 1108c2ecf20Sopenharmony_ci#define HASH1 97 1118c2ecf20Sopenharmony_ci#define RNG1 98 1128c2ecf20Sopenharmony_ci#define BKPSRAM 99 1138c2ecf20Sopenharmony_ci#define MDMA 100 1148c2ecf20Sopenharmony_ci#define GPU 101 1158c2ecf20Sopenharmony_ci#define ETHCK 102 1168c2ecf20Sopenharmony_ci#define ETHTX 103 1178c2ecf20Sopenharmony_ci#define ETHRX 104 1188c2ecf20Sopenharmony_ci#define ETHMAC 105 1198c2ecf20Sopenharmony_ci#define FMC 106 1208c2ecf20Sopenharmony_ci#define QSPI 107 1218c2ecf20Sopenharmony_ci#define SDMMC1 108 1228c2ecf20Sopenharmony_ci#define SDMMC2 109 1238c2ecf20Sopenharmony_ci#define CRC1 110 1248c2ecf20Sopenharmony_ci#define USBH 111 1258c2ecf20Sopenharmony_ci#define ETHSTP 112 1268c2ecf20Sopenharmony_ci#define TZC2 113 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ci/* Kernel clocks */ 1298c2ecf20Sopenharmony_ci#define SDMMC1_K 118 1308c2ecf20Sopenharmony_ci#define SDMMC2_K 119 1318c2ecf20Sopenharmony_ci#define SDMMC3_K 120 1328c2ecf20Sopenharmony_ci#define FMC_K 121 1338c2ecf20Sopenharmony_ci#define QSPI_K 122 1348c2ecf20Sopenharmony_ci#define ETHCK_K 123 1358c2ecf20Sopenharmony_ci#define RNG1_K 124 1368c2ecf20Sopenharmony_ci#define RNG2_K 125 1378c2ecf20Sopenharmony_ci#define GPU_K 126 1388c2ecf20Sopenharmony_ci#define USBPHY_K 127 1398c2ecf20Sopenharmony_ci#define STGEN_K 128 1408c2ecf20Sopenharmony_ci#define SPDIF_K 129 1418c2ecf20Sopenharmony_ci#define SPI1_K 130 1428c2ecf20Sopenharmony_ci#define SPI2_K 131 1438c2ecf20Sopenharmony_ci#define SPI3_K 132 1448c2ecf20Sopenharmony_ci#define SPI4_K 133 1458c2ecf20Sopenharmony_ci#define SPI5_K 134 1468c2ecf20Sopenharmony_ci#define SPI6_K 135 1478c2ecf20Sopenharmony_ci#define CEC_K 136 1488c2ecf20Sopenharmony_ci#define I2C1_K 137 1498c2ecf20Sopenharmony_ci#define I2C2_K 138 1508c2ecf20Sopenharmony_ci#define I2C3_K 139 1518c2ecf20Sopenharmony_ci#define I2C4_K 140 1528c2ecf20Sopenharmony_ci#define I2C5_K 141 1538c2ecf20Sopenharmony_ci#define I2C6_K 142 1548c2ecf20Sopenharmony_ci#define LPTIM1_K 143 1558c2ecf20Sopenharmony_ci#define LPTIM2_K 144 1568c2ecf20Sopenharmony_ci#define LPTIM3_K 145 1578c2ecf20Sopenharmony_ci#define LPTIM4_K 146 1588c2ecf20Sopenharmony_ci#define LPTIM5_K 147 1598c2ecf20Sopenharmony_ci#define USART1_K 148 1608c2ecf20Sopenharmony_ci#define USART2_K 149 1618c2ecf20Sopenharmony_ci#define USART3_K 150 1628c2ecf20Sopenharmony_ci#define UART4_K 151 1638c2ecf20Sopenharmony_ci#define UART5_K 152 1648c2ecf20Sopenharmony_ci#define USART6_K 153 1658c2ecf20Sopenharmony_ci#define UART7_K 154 1668c2ecf20Sopenharmony_ci#define UART8_K 155 1678c2ecf20Sopenharmony_ci#define DFSDM_K 156 1688c2ecf20Sopenharmony_ci#define FDCAN_K 157 1698c2ecf20Sopenharmony_ci#define SAI1_K 158 1708c2ecf20Sopenharmony_ci#define SAI2_K 159 1718c2ecf20Sopenharmony_ci#define SAI3_K 160 1728c2ecf20Sopenharmony_ci#define SAI4_K 161 1738c2ecf20Sopenharmony_ci#define ADC12_K 162 1748c2ecf20Sopenharmony_ci#define DSI_K 163 1758c2ecf20Sopenharmony_ci#define DSI_PX 164 1768c2ecf20Sopenharmony_ci#define ADFSDM_K 165 1778c2ecf20Sopenharmony_ci#define USBO_K 166 1788c2ecf20Sopenharmony_ci#define LTDC_PX 167 1798c2ecf20Sopenharmony_ci#define DAC12_K 168 1808c2ecf20Sopenharmony_ci#define ETHPTP_K 169 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ci/* PLL */ 1838c2ecf20Sopenharmony_ci#define PLL1 176 1848c2ecf20Sopenharmony_ci#define PLL2 177 1858c2ecf20Sopenharmony_ci#define PLL3 178 1868c2ecf20Sopenharmony_ci#define PLL4 179 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci/* ODF */ 1898c2ecf20Sopenharmony_ci#define PLL1_P 180 1908c2ecf20Sopenharmony_ci#define PLL1_Q 181 1918c2ecf20Sopenharmony_ci#define PLL1_R 182 1928c2ecf20Sopenharmony_ci#define PLL2_P 183 1938c2ecf20Sopenharmony_ci#define PLL2_Q 184 1948c2ecf20Sopenharmony_ci#define PLL2_R 185 1958c2ecf20Sopenharmony_ci#define PLL3_P 186 1968c2ecf20Sopenharmony_ci#define PLL3_Q 187 1978c2ecf20Sopenharmony_ci#define PLL3_R 188 1988c2ecf20Sopenharmony_ci#define PLL4_P 189 1998c2ecf20Sopenharmony_ci#define PLL4_Q 190 2008c2ecf20Sopenharmony_ci#define PLL4_R 191 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci/* AUX */ 2038c2ecf20Sopenharmony_ci#define RTC 192 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_ci/* MCLK */ 2068c2ecf20Sopenharmony_ci#define CK_PER 193 2078c2ecf20Sopenharmony_ci#define CK_MPU 194 2088c2ecf20Sopenharmony_ci#define CK_AXI 195 2098c2ecf20Sopenharmony_ci#define CK_MCU 196 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci/* Time base */ 2128c2ecf20Sopenharmony_ci#define TIM2_K 197 2138c2ecf20Sopenharmony_ci#define TIM3_K 198 2148c2ecf20Sopenharmony_ci#define TIM4_K 199 2158c2ecf20Sopenharmony_ci#define TIM5_K 200 2168c2ecf20Sopenharmony_ci#define TIM6_K 201 2178c2ecf20Sopenharmony_ci#define TIM7_K 202 2188c2ecf20Sopenharmony_ci#define TIM12_K 203 2198c2ecf20Sopenharmony_ci#define TIM13_K 204 2208c2ecf20Sopenharmony_ci#define TIM14_K 205 2218c2ecf20Sopenharmony_ci#define TIM1_K 206 2228c2ecf20Sopenharmony_ci#define TIM8_K 207 2238c2ecf20Sopenharmony_ci#define TIM15_K 208 2248c2ecf20Sopenharmony_ci#define TIM16_K 209 2258c2ecf20Sopenharmony_ci#define TIM17_K 210 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci/* MCO clocks */ 2288c2ecf20Sopenharmony_ci#define CK_MCO1 211 2298c2ecf20Sopenharmony_ci#define CK_MCO2 212 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci/* TRACE & DEBUG clocks */ 2328c2ecf20Sopenharmony_ci#define CK_DBG 214 2338c2ecf20Sopenharmony_ci#define CK_TRACE 215 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ci/* DDR */ 2368c2ecf20Sopenharmony_ci#define DDRC1 220 2378c2ecf20Sopenharmony_ci#define DDRC1LP 221 2388c2ecf20Sopenharmony_ci#define DDRC2 222 2398c2ecf20Sopenharmony_ci#define DDRC2LP 223 2408c2ecf20Sopenharmony_ci#define DDRPHYC 224 2418c2ecf20Sopenharmony_ci#define DDRPHYCLP 225 2428c2ecf20Sopenharmony_ci#define DDRCAPB 226 2438c2ecf20Sopenharmony_ci#define DDRCAPBLP 227 2448c2ecf20Sopenharmony_ci#define AXIDCG 228 2458c2ecf20Sopenharmony_ci#define DDRPHYCAPB 229 2468c2ecf20Sopenharmony_ci#define DDRPHYCAPBLP 230 2478c2ecf20Sopenharmony_ci#define DDRPERFM 231 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ci#define STM32MP1_LAST_CLK 232 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_STM32MP1_CLKS_H_ */ 252