Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
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/* USART/UART Peripheral */
43#define STM32_CLOCK_PERIPH_USART1 0x77C
44#define STM32_CLOCK_PERIPH_USART2 0x780
45#define STM32_CLOCK_PERIPH_USART3 0x784
46#define STM32_CLOCK_PERIPH_UART4 0x788
47#define STM32_CLOCK_PERIPH_UART5 0x78C
48#define STM32_CLOCK_PERIPH_USART6 0x790
49#define STM32_CLOCK_PERIPH_UART7 0x794
50#define STM32_CLOCK_PERIPH_UART8 0x798
51#define STM32_CLOCK_PERIPH_UART9 0x79C
52
53#define STM32_CLOCK_PERIPH_MIN STM32_CLOCK_PERIPH_GPIOA
54#define STM32_CLOCK_PERIPH_MAX STM32_CLOCK_PERIPH_UART9
55
56#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32MP2_CLOCK_H_ */