1 1.1 jmcneill /* $NetBSD: stm32mp1-clks.h,v 1.1.1.4 2021/11/07 16:49:57 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 4 1.1 jmcneill /* 5 1.1 jmcneill * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 6 1.1 jmcneill * Author: Gabriel Fernandez <gabriel.fernandez (at) st.com> for STMicroelectronics. 7 1.1 jmcneill */ 8 1.1 jmcneill 9 1.1 jmcneill #ifndef _DT_BINDINGS_STM32MP1_CLKS_H_ 10 1.1 jmcneill #define _DT_BINDINGS_STM32MP1_CLKS_H_ 11 1.1 jmcneill 12 1.1 jmcneill /* OSCILLATOR clocks */ 13 1.1 jmcneill #define CK_HSE 0 14 1.1 jmcneill #define CK_CSI 1 15 1.1 jmcneill #define CK_LSI 2 16 1.1 jmcneill #define CK_LSE 3 17 1.1 jmcneill #define CK_HSI 4 18 1.1 jmcneill #define CK_HSE_DIV2 5 19 1.1 jmcneill 20 1.1 jmcneill /* Bus clocks */ 21 1.1 jmcneill #define TIM2 6 22 1.1 jmcneill #define TIM3 7 23 1.1 jmcneill #define TIM4 8 24 1.1 jmcneill #define TIM5 9 25 1.1 jmcneill #define TIM6 10 26 1.1 jmcneill #define TIM7 11 27 1.1 jmcneill #define TIM12 12 28 1.1 jmcneill #define TIM13 13 29 1.1 jmcneill #define TIM14 14 30 1.1 jmcneill #define LPTIM1 15 31 1.1 jmcneill #define SPI2 16 32 1.1 jmcneill #define SPI3 17 33 1.1 jmcneill #define USART2 18 34 1.1 jmcneill #define USART3 19 35 1.1 jmcneill #define UART4 20 36 1.1 jmcneill #define UART5 21 37 1.1 jmcneill #define UART7 22 38 1.1 jmcneill #define UART8 23 39 1.1 jmcneill #define I2C1 24 40 1.1 jmcneill #define I2C2 25 41 1.1 jmcneill #define I2C3 26 42 1.1 jmcneill #define I2C5 27 43 1.1 jmcneill #define SPDIF 28 44 1.1 jmcneill #define CEC 29 45 1.1 jmcneill #define DAC12 30 46 1.1 jmcneill #define MDIO 31 47 1.1 jmcneill #define TIM1 32 48 1.1 jmcneill #define TIM8 33 49 1.1 jmcneill #define TIM15 34 50 1.1 jmcneill #define TIM16 35 51 1.1 jmcneill #define TIM17 36 52 1.1 jmcneill #define SPI1 37 53 1.1 jmcneill #define SPI4 38 54 1.1 jmcneill #define SPI5 39 55 1.1 jmcneill #define USART6 40 56 1.1 jmcneill #define SAI1 41 57 1.1 jmcneill #define SAI2 42 58 1.1 jmcneill #define SAI3 43 59 1.1 jmcneill #define DFSDM 44 60 1.1 jmcneill #define FDCAN 45 61 1.1 jmcneill #define LPTIM2 46 62 1.1 jmcneill #define LPTIM3 47 63 1.1 jmcneill #define LPTIM4 48 64 1.1 jmcneill #define LPTIM5 49 65 1.1 jmcneill #define SAI4 50 66 1.1 jmcneill #define SYSCFG 51 67 1.1 jmcneill #define VREF 52 68 1.1 jmcneill #define TMPSENS 53 69 1.1 jmcneill #define PMBCTRL 54 70 1.1 jmcneill #define HDP 55 71 1.1 jmcneill #define LTDC 56 72 1.1 jmcneill #define DSI 57 73 1.1 jmcneill #define IWDG2 58 74 1.1 jmcneill #define USBPHY 59 75 1.1 jmcneill #define STGENRO 60 76 1.1 jmcneill #define SPI6 61 77 1.1 jmcneill #define I2C4 62 78 1.1 jmcneill #define I2C6 63 79 1.1 jmcneill #define USART1 64 80 1.1 jmcneill #define RTCAPB 65 81 1.1.1.2 jmcneill #define TZC1 66 82 1.1 jmcneill #define TZPC 67 83 1.1 jmcneill #define IWDG1 68 84 1.1 jmcneill #define BSEC 69 85 1.1 jmcneill #define STGEN 70 86 1.1 jmcneill #define DMA1 71 87 1.1 jmcneill #define DMA2 72 88 1.1 jmcneill #define DMAMUX 73 89 1.1 jmcneill #define ADC12 74 90 1.1 jmcneill #define USBO 75 91 1.1 jmcneill #define SDMMC3 76 92 1.1 jmcneill #define DCMI 77 93 1.1 jmcneill #define CRYP2 78 94 1.1 jmcneill #define HASH2 79 95 1.1 jmcneill #define RNG2 80 96 1.1 jmcneill #define CRC2 81 97 1.1 jmcneill #define HSEM 82 98 1.1 jmcneill #define IPCC 83 99 1.1 jmcneill #define GPIOA 84 100 1.1 jmcneill #define GPIOB 85 101 1.1 jmcneill #define GPIOC 86 102 1.1 jmcneill #define GPIOD 87 103 1.1 jmcneill #define GPIOE 88 104 1.1 jmcneill #define GPIOF 89 105 1.1 jmcneill #define GPIOG 90 106 1.1 jmcneill #define GPIOH 91 107 1.1 jmcneill #define GPIOI 92 108 1.1 jmcneill #define GPIOJ 93 109 1.1 jmcneill #define GPIOK 94 110 1.1 jmcneill #define GPIOZ 95 111 1.1 jmcneill #define CRYP1 96 112 1.1 jmcneill #define HASH1 97 113 1.1 jmcneill #define RNG1 98 114 1.1 jmcneill #define BKPSRAM 99 115 1.1 jmcneill #define MDMA 100 116 1.1 jmcneill #define GPU 101 117 1.1 jmcneill #define ETHCK 102 118 1.1 jmcneill #define ETHTX 103 119 1.1 jmcneill #define ETHRX 104 120 1.1 jmcneill #define ETHMAC 105 121 1.1 jmcneill #define FMC 106 122 1.1 jmcneill #define QSPI 107 123 1.1 jmcneill #define SDMMC1 108 124 1.1 jmcneill #define SDMMC2 109 125 1.1 jmcneill #define CRC1 110 126 1.1 jmcneill #define USBH 111 127 1.1 jmcneill #define ETHSTP 112 128 1.1.1.2 jmcneill #define TZC2 113 129 1.1 jmcneill 130 1.1 jmcneill /* Kernel clocks */ 131 1.1 jmcneill #define SDMMC1_K 118 132 1.1 jmcneill #define SDMMC2_K 119 133 1.1 jmcneill #define SDMMC3_K 120 134 1.1 jmcneill #define FMC_K 121 135 1.1 jmcneill #define QSPI_K 122 136 1.1 jmcneill #define ETHCK_K 123 137 1.1 jmcneill #define RNG1_K 124 138 1.1 jmcneill #define RNG2_K 125 139 1.1 jmcneill #define GPU_K 126 140 1.1 jmcneill #define USBPHY_K 127 141 1.1 jmcneill #define STGEN_K 128 142 1.1 jmcneill #define SPDIF_K 129 143 1.1 jmcneill #define SPI1_K 130 144 1.1 jmcneill #define SPI2_K 131 145 1.1 jmcneill #define SPI3_K 132 146 1.1 jmcneill #define SPI4_K 133 147 1.1 jmcneill #define SPI5_K 134 148 1.1 jmcneill #define SPI6_K 135 149 1.1 jmcneill #define CEC_K 136 150 1.1 jmcneill #define I2C1_K 137 151 1.1 jmcneill #define I2C2_K 138 152 1.1 jmcneill #define I2C3_K 139 153 1.1 jmcneill #define I2C4_K 140 154 1.1 jmcneill #define I2C5_K 141 155 1.1 jmcneill #define I2C6_K 142 156 1.1 jmcneill #define LPTIM1_K 143 157 1.1 jmcneill #define LPTIM2_K 144 158 1.1 jmcneill #define LPTIM3_K 145 159 1.1 jmcneill #define LPTIM4_K 146 160 1.1 jmcneill #define LPTIM5_K 147 161 1.1 jmcneill #define USART1_K 148 162 1.1 jmcneill #define USART2_K 149 163 1.1 jmcneill #define USART3_K 150 164 1.1 jmcneill #define UART4_K 151 165 1.1 jmcneill #define UART5_K 152 166 1.1 jmcneill #define USART6_K 153 167 1.1 jmcneill #define UART7_K 154 168 1.1 jmcneill #define UART8_K 155 169 1.1 jmcneill #define DFSDM_K 156 170 1.1 jmcneill #define FDCAN_K 157 171 1.1 jmcneill #define SAI1_K 158 172 1.1 jmcneill #define SAI2_K 159 173 1.1 jmcneill #define SAI3_K 160 174 1.1 jmcneill #define SAI4_K 161 175 1.1 jmcneill #define ADC12_K 162 176 1.1 jmcneill #define DSI_K 163 177 1.1 jmcneill #define DSI_PX 164 178 1.1 jmcneill #define ADFSDM_K 165 179 1.1 jmcneill #define USBO_K 166 180 1.1 jmcneill #define LTDC_PX 167 181 1.1 jmcneill #define DAC12_K 168 182 1.1 jmcneill #define ETHPTP_K 169 183 1.1 jmcneill 184 1.1 jmcneill /* PLL */ 185 1.1 jmcneill #define PLL1 176 186 1.1 jmcneill #define PLL2 177 187 1.1 jmcneill #define PLL3 178 188 1.1 jmcneill #define PLL4 179 189 1.1 jmcneill 190 1.1 jmcneill /* ODF */ 191 1.1 jmcneill #define PLL1_P 180 192 1.1 jmcneill #define PLL1_Q 181 193 1.1 jmcneill #define PLL1_R 182 194 1.1 jmcneill #define PLL2_P 183 195 1.1 jmcneill #define PLL2_Q 184 196 1.1 jmcneill #define PLL2_R 185 197 1.1 jmcneill #define PLL3_P 186 198 1.1 jmcneill #define PLL3_Q 187 199 1.1 jmcneill #define PLL3_R 188 200 1.1 jmcneill #define PLL4_P 189 201 1.1 jmcneill #define PLL4_Q 190 202 1.1 jmcneill #define PLL4_R 191 203 1.1 jmcneill 204 1.1 jmcneill /* AUX */ 205 1.1 jmcneill #define RTC 192 206 1.1 jmcneill 207 1.1 jmcneill /* MCLK */ 208 1.1 jmcneill #define CK_PER 193 209 1.1 jmcneill #define CK_MPU 194 210 1.1 jmcneill #define CK_AXI 195 211 1.1 jmcneill #define CK_MCU 196 212 1.1 jmcneill 213 1.1 jmcneill /* Time base */ 214 1.1 jmcneill #define TIM2_K 197 215 1.1 jmcneill #define TIM3_K 198 216 1.1 jmcneill #define TIM4_K 199 217 1.1 jmcneill #define TIM5_K 200 218 1.1 jmcneill #define TIM6_K 201 219 1.1 jmcneill #define TIM7_K 202 220 1.1 jmcneill #define TIM12_K 203 221 1.1 jmcneill #define TIM13_K 204 222 1.1 jmcneill #define TIM14_K 205 223 1.1 jmcneill #define TIM1_K 206 224 1.1 jmcneill #define TIM8_K 207 225 1.1 jmcneill #define TIM15_K 208 226 1.1 jmcneill #define TIM16_K 209 227 1.1 jmcneill #define TIM17_K 210 228 1.1 jmcneill 229 1.1 jmcneill /* MCO clocks */ 230 1.1 jmcneill #define CK_MCO1 211 231 1.1 jmcneill #define CK_MCO2 212 232 1.1 jmcneill 233 1.1 jmcneill /* TRACE & DEBUG clocks */ 234 1.1 jmcneill #define CK_DBG 214 235 1.1 jmcneill #define CK_TRACE 215 236 1.1 jmcneill 237 1.1 jmcneill /* DDR */ 238 1.1 jmcneill #define DDRC1 220 239 1.1 jmcneill #define DDRC1LP 221 240 1.1 jmcneill #define DDRC2 222 241 1.1 jmcneill #define DDRC2LP 223 242 1.1 jmcneill #define DDRPHYC 224 243 1.1 jmcneill #define DDRPHYCLP 225 244 1.1 jmcneill #define DDRCAPB 226 245 1.1 jmcneill #define DDRCAPBLP 227 246 1.1 jmcneill #define AXIDCG 228 247 1.1 jmcneill #define DDRPHYCAPB 229 248 1.1 jmcneill #define DDRPHYCAPBLP 230 249 1.1 jmcneill #define DDRPERFM 231 250 1.1 jmcneill 251 1.1 jmcneill #define STM32MP1_LAST_CLK 232 252 1.1 jmcneill 253 1.1.1.4 jmcneill /* SCMI clock identifiers */ 254 1.1.1.4 jmcneill #define CK_SCMI0_HSE 0 255 1.1.1.4 jmcneill #define CK_SCMI0_HSI 1 256 1.1.1.4 jmcneill #define CK_SCMI0_CSI 2 257 1.1.1.4 jmcneill #define CK_SCMI0_LSE 3 258 1.1.1.4 jmcneill #define CK_SCMI0_LSI 4 259 1.1.1.4 jmcneill #define CK_SCMI0_PLL2_Q 5 260 1.1.1.4 jmcneill #define CK_SCMI0_PLL2_R 6 261 1.1.1.4 jmcneill #define CK_SCMI0_MPU 7 262 1.1.1.4 jmcneill #define CK_SCMI0_AXI 8 263 1.1.1.4 jmcneill #define CK_SCMI0_BSEC 9 264 1.1.1.4 jmcneill #define CK_SCMI0_CRYP1 10 265 1.1.1.4 jmcneill #define CK_SCMI0_GPIOZ 11 266 1.1.1.4 jmcneill #define CK_SCMI0_HASH1 12 267 1.1.1.4 jmcneill #define CK_SCMI0_I2C4 13 268 1.1.1.4 jmcneill #define CK_SCMI0_I2C6 14 269 1.1.1.4 jmcneill #define CK_SCMI0_IWDG1 15 270 1.1.1.4 jmcneill #define CK_SCMI0_RNG1 16 271 1.1.1.4 jmcneill #define CK_SCMI0_RTC 17 272 1.1.1.4 jmcneill #define CK_SCMI0_RTCAPB 18 273 1.1.1.4 jmcneill #define CK_SCMI0_SPI6 19 274 1.1.1.4 jmcneill #define CK_SCMI0_USART1 20 275 1.1.1.4 jmcneill 276 1.1.1.4 jmcneill #define CK_SCMI1_PLL3_Q 0 277 1.1.1.4 jmcneill #define CK_SCMI1_PLL3_R 1 278 1.1.1.4 jmcneill #define CK_SCMI1_MCU 2 279 1.1.1.4 jmcneill 280 1.1 jmcneill #endif /* _DT_BINDINGS_STM32MP1_CLKS_H_ */ 281