Zephyr Project API
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32mp2_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32MP2_CLOCK_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32MP2_CLOCK_H_
9
10
#include "
stm32_common_clocks.h
"
11
12
/* Undefine the common clocks macro */
13
#undef STM32_CLOCK
14
22
#define STM32_CLOCK(per, bit) (STM32_CLOCK_PERIPH_##per) (1 << bit)
23
24
/* Clock reg */
25
#define STM32_CLK 1U
26
#define STM32_LP_CLK 2U
27
28
/* GPIO Peripheral */
29
#define STM32_CLOCK_PERIPH_GPIOA 0x52C
30
#define STM32_CLOCK_PERIPH_GPIOB 0x530
31
#define STM32_CLOCK_PERIPH_GPIOC 0x534
32
#define STM32_CLOCK_PERIPH_GPIOD 0x538
33
#define STM32_CLOCK_PERIPH_GPIOE 0x53C
34
#define STM32_CLOCK_PERIPH_GPIOF 0x540
35
#define STM32_CLOCK_PERIPH_GPIOG 0x544
36
#define STM32_CLOCK_PERIPH_GPIOH 0x548
37
#define STM32_CLOCK_PERIPH_GPIOI 0x54C
38
#define STM32_CLOCK_PERIPH_GPIOJ 0x550
39
#define STM32_CLOCK_PERIPH_GPIOK 0x554
40
#define STM32_CLOCK_PERIPH_GPIOZ 0x558
41
42
/* SPI Peripheral */
43
#define STM32_CLOCK_PERIPH_SPI1 0x758
44
#define STM32_CLOCK_PERIPH_SPI2 0x75C
45
#define STM32_CLOCK_PERIPH_SPI3 0x760
46
#define STM32_CLOCK_PERIPH_SPI4 0x764
47
#define STM32_CLOCK_PERIPH_SPI5 0x768
48
#define STM32_CLOCK_PERIPH_SPI6 0x76C
49
#define STM32_CLOCK_PERIPH_SPI7 0x770
50
51
/* USART/UART Peripheral */
52
#define STM32_CLOCK_PERIPH_USART1 0x77C
53
#define STM32_CLOCK_PERIPH_USART2 0x780
54
#define STM32_CLOCK_PERIPH_USART3 0x784
55
#define STM32_CLOCK_PERIPH_UART4 0x788
56
#define STM32_CLOCK_PERIPH_UART5 0x78C
57
#define STM32_CLOCK_PERIPH_USART6 0x790
58
#define STM32_CLOCK_PERIPH_UART7 0x794
59
#define STM32_CLOCK_PERIPH_UART8 0x798
60
#define STM32_CLOCK_PERIPH_UART9 0x79C
61
62
/* I2C Peripheral */
63
#define STM32_CLOCK_PERIPH_I2C1 0x7A0
64
#define STM32_CLOCK_PERIPH_I2C2 0x7A8
65
#define STM32_CLOCK_PERIPH_I2C3 0x7AC
66
#define STM32_CLOCK_PERIPH_I2C4 0x7B0
67
#define STM32_CLOCK_PERIPH_I2C5 0x7B4
68
#define STM32_CLOCK_PERIPH_I2C6 0x7B8
69
#define STM32_CLOCK_PERIPH_I2C7 0x7BC
70
#define STM32_CLOCK_PERIPH_I2C8 0x7C0
71
72
#define STM32_CLOCK_PERIPH_MIN STM32_CLOCK_PERIPH_GPIOA
73
#define STM32_CLOCK_PERIPH_MAX STM32_CLOCK_PERIPH_I2C8
74
75
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32MP2_CLOCK_H_ */
stm32_common_clocks.h
include
zephyr
dt-bindings
clock
stm32mp2_clock.h
Generated on Sun Aug 24 2025 06:52:31 for Zephyr Project API by
1.9.8