You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by mi...@apache.org on 2026/10/17 10:02:52 UTC
(nuttx) branch master updated (1f261d5991d -> 9f0842e7fe3)
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 1f261d5991d Documentation/rtl8730e: document the watchdog
new ccab492bfbf arch/arm/stm32u5: Use the common GPDMA driver
new b07ea9a8e08 arch/arm/stm32u3: Use the common GPDMA driver
new b5ef8069085 arch/arm/stm32c5: Use the common GPDMA driver
new 3827e7dc354 arch/arm/stm32u5: Fix GPDMA1 clock enable after DMA rename
new 64e733a5a7b arch/arm/stm32: Remove unused STM32_GPADMA1 Kconfig symbols
new 39e48cb95bf arch/arm/stm32: Remove unused STM32_LPDMA1 Kconfig symbols
new 9f0842e7fe3 Documentation: Update STM32 GPDMA driver status
The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Documentation/guides/chip-specific/stm32_ports.rst | 19 +--
arch/arm/src/common/stm32/Kconfig.have | 6 -
arch/arm/src/common/stm32/Kconfig.periph | 10 --
arch/arm/src/stm32c5/Kconfig | 3 +
arch/arm/src/stm32c5/chip.h | 9 ++
arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h | 137 +++++++++++++++++
arch/arm/src/stm32c5/stm32c5xx_rcc.c | 7 +
arch/arm/src/stm32u3/Kconfig | 2 +
arch/arm/src/stm32u3/chip.h | 5 +
arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h | 146 ++++++++++++++++++
arch/arm/src/stm32u3/stm32u3xx_rcc.c | 4 +
arch/arm/src/stm32u5/Kconfig | 4 +-
arch/arm/src/stm32u5/chip.h | 7 +
arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h | 170 +++++++++++++++++++++
arch/arm/src/stm32u5/stm32u5xx_rcc.c | 4 +-
15 files changed, 504 insertions(+), 29 deletions(-)
create mode 100644 arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h
create mode 100644 arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h
create mode 100644 arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h
(nuttx) 04/07: arch/arm/stm32u5: Fix GPDMA1 clock enable after DMA rename
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3827e7dc3546b44acb4391a208add95e69a64c5a
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 14:54:05 2026 +0200
arch/arm/stm32u5: Fix GPDMA1 clock enable after DMA rename
The AHB1 clock gate still tested CONFIG_STM32_GPDMA1, which no longer
exists after the rename to CONFIG_STM32_DMA1, so the GPDMA1 clock was
never enabled.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/stm32u5/stm32u5xx_rcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32u5/stm32u5xx_rcc.c b/arch/arm/src/stm32u5/stm32u5xx_rcc.c
index d696cd02a5d..7fc868febd0 100644
--- a/arch/arm/src/stm32u5/stm32u5xx_rcc.c
+++ b/arch/arm/src/stm32u5/stm32u5xx_rcc.c
@@ -92,7 +92,7 @@ static inline void rcc_enableahb1(void)
regval = getreg32(STM32_RCC_AHB1ENR);
-#ifdef CONFIG_STM32_GPDMA1
+#ifdef CONFIG_STM32_DMA1
regval |= RCC_AHB1ENR_GPDMA1EN;
#endif
(nuttx) 07/07: Documentation: Update STM32 GPDMA driver status
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 9f0842e7fe3a0b2c2e2a3e6c09c90a2e6d397d5b
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 15:55:38 2026 +0200
Documentation: Update STM32 GPDMA driver status
Mark GPDMA and LPDMA as served by the common driver on H5, U5, U3 and
C5 in the STM32 ports guide and list STM32_HAVE_IP_DMA_GPDMA among the
M33 IP symbols.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
Documentation/guides/chip-specific/stm32_ports.rst | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/Documentation/guides/chip-specific/stm32_ports.rst b/Documentation/guides/chip-specific/stm32_ports.rst
index e51c52283b1..6d5a6d8d1c0 100644
--- a/Documentation/guides/chip-specific/stm32_ports.rst
+++ b/Documentation/guides/chip-specific/stm32_ports.rst
@@ -292,7 +292,7 @@ I2C to be done not supported
I3C to be done not supported
ICACHE to be done not supported
IWDG to be done not supported
-LPDMA to be done not supported
+LPDMA GPDMA arch/arm/src/common/stm32/stm32_dma_gpdma.c
LPTIM to be done not supported
LPUART M33 v3 arch/arm/src/common/stm32/stm32_serial_m33_v3.c
PWR to be done not supported
@@ -610,7 +610,7 @@ ETH to be done arch/arm/src/stm32h5/stm32_ethernet.c
EXTI to be done arch/arm/src/stm32h5/stm32_exti_gpio.c
FLASH to be done arch/arm/src/stm32h5/stm32_flash.c
GPIO to be done arch/arm/src/stm32h5/stm32_gpio.c
-GPDMA to be done arch/arm/src/stm32h5/stm32_dma.c
+GPDMA GPDMA arch/arm/src/common/stm32/stm32_dma_gpdma.c
I2C to be done arch/arm/src/stm32h5/stm32_i2c.c
IWDG v1 arch/arm/src/stm32h5/stm32_iwdg.c
ICACHE to be done arch/arm/src/stm32h5/stm32_icache.c
@@ -828,7 +828,7 @@ DLYB to be done not supported
EXTI M33 v1 arch/arm/src/common/stm32/stm32_exti_gpio_m33_v1.c
FDCAN to be done not supported
FLASH to be done not supported
-GPDMA to be done not supported
+GPDMA GPDMA arch/arm/src/common/stm32/stm32_dma_gpdma.c
GPIO M33 v1 arch/arm/src/common/stm32/stm32_gpio_m33_v1.c
GTZC to be done not supported
HASH to be done not supported
@@ -864,16 +864,16 @@ WWDG to be done not supported
STM32U5
-------
-============ ============ ======================================
+============ ============ ===========================================
Peripheral Core version Driver
-============ ============ ======================================
+============ ============ ===========================================
ADC to be done not supported
DAC to be done not supported
DCACHE to be done not supported
EXTI to be done arch/arm/src/stm32u5/stm32_exti_gpio.c
FLASH to be done arch/arm/src/stm32u5/stm32_flash.c
GPIO to be done arch/arm/src/stm32u5/stm32_gpio.c
-GPDMA to be done not supported
+GPDMA GPDMA arch/arm/src/common/stm32/stm32_dma_gpdma.c
HASH to be done not supported
I2C to be done arch/arm/src/stm32u5/stm32_i2c.c
ICACHE to be done not supported
@@ -889,7 +889,7 @@ TAMP to be done not supported
TIM/LPTIM v3 arch/arm/src/common/stm32/stm32_tim.c
USART/LPUART v3 arch/arm/src/stm32u5/stm32_serial.c
USB device not supported
-============ ============ ======================================
+============ ============ ===========================================
STM32WB
-------
@@ -1037,8 +1037,9 @@ of a peripheral on a given core is ``V1``.
- M3/M4: ``CONFIG_STM32_HAVE_IP_GPIO_M3M4_V1``,
``CONFIG_STM32_HAVE_IP_ADC_M3M4_V1``, ``CONFIG_STM32_HAVE_IP_ADC_M3M4_V2``
- M33: ``CONFIG_STM32_HAVE_IP_GPIO_M33_V1``,
- ``CONFIG_STM32_HAVE_IP_EXTI_M33_V1``, and
- ``CONFIG_STM32_HAVE_IP_USART_M33_V3``
+ ``CONFIG_STM32_HAVE_IP_EXTI_M33_V1``,
+ ``CONFIG_STM32_HAVE_IP_USART_M33_V3``, and
+ ``CONFIG_STM32_HAVE_IP_DMA_GPDMA``
- No core prefix (used by several core classes):
``CONFIG_STM32_HAVE_IP_TIMERS_V1``, ``CONFIG_STM32_HAVE_IP_TIMERS_V2``,
``CONFIG_STM32_HAVE_IP_TIMERS_V3``
(nuttx) 02/07: arch/arm/stm32u3: Use the common GPDMA driver
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b07ea9a8e08b26806bedbb2ea0d61fbd5ed8948c
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 12:52:24 2026 +0200
arch/arm/stm32u3: Use the common GPDMA driver
Select STM32_HAVE_IP_DMA_GPDMA and STM32_HAVE_DMA1, enable the GPDMA1
clock, and provide the GPDMA instance parameters, the request signal
map taken from RM0487, and the USART RX DMA request numbers.
DMA1 is the 12-channel GPDMA1 instance.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/stm32u3/Kconfig | 2 +
arch/arm/src/stm32u3/chip.h | 5 +
arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h | 146 ++++++++++++++++++++++++
arch/arm/src/stm32u3/stm32u3xx_rcc.c | 4 +
4 files changed, 157 insertions(+)
diff --git a/arch/arm/src/stm32u3/Kconfig b/arch/arm/src/stm32u3/Kconfig
index 83d130ece77..c6cb7333373 100644
--- a/arch/arm/src/stm32u3/Kconfig
+++ b/arch/arm/src/stm32u3/Kconfig
@@ -10,6 +10,8 @@ comment "STM32U3 Configuration Options"
config STM32_U3_PERIPHERALS
bool
default y
+ select STM32_HAVE_DMA1
+ select STM32_HAVE_IP_DMA_GPDMA
select STM32_HAVE_IP_EXTI_M33_V1
select STM32_HAVE_IP_GPIO_M33_V1
select STM32_HAVE_IP_TIMERS_V3
diff --git a/arch/arm/src/stm32u3/chip.h b/arch/arm/src/stm32u3/chip.h
index 94d48d411a5..b7834980cb0 100644
--- a/arch/arm/src/stm32u3/chip.h
+++ b/arch/arm/src/stm32u3/chip.h
@@ -50,4 +50,9 @@
#define ARMV8M_PERIPHERAL_INTERRUPTS STM32_IRQ_NEXTINTS
+/* GPDMA instance parameters. DMA1 is the GPDMA1 instance. */
+
+#define STM32_DMA1_NCHAN 12
+#define STM32_DMA1_IRQ_FIRST STM32_IRQ_GPDMA1_CH0
+
#endif /* __ARCH_ARM_SRC_STM32U3_CHIP_H */
diff --git a/arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h b/arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h
new file mode 100644
index 00000000000..bcdce58300d
--- /dev/null
+++ b/arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h
@@ -0,0 +1,146 @@
+/****************************************************************************
+ * arch/arm/src/stm32u3/hardware/stm32_dmasigmap.h
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+#ifndef __ARCH_ARM_SRC_STM32U3_HARDWARE_STM32_DMASIGMAP_H
+#define __ARCH_ARM_SRC_STM32U3_HARDWARE_STM32_DMASIGMAP_H
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* GPDMA1 request signals */
+
+#define GPDMA_REQ_ADC1 (0)
+#define GPDMA_REQ_ADC2 (1)
+#define GPDMA_REQ_DAC1_CH1 (2)
+#define GPDMA_REQ_DAC1_CH2 (3)
+#define GPDMA_REQ_TIM6_UP (4)
+#define GPDMA_REQ_TIM7_UP (5)
+#define GPDMA_REQ_SPI1_RX (6)
+#define GPDMA_REQ_SPI1_TX (7)
+#define GPDMA_REQ_SPI2_RX (8)
+#define GPDMA_REQ_SPI2_TX (9)
+#define GPDMA_REQ_SPI3_RX (10)
+#define GPDMA_REQ_SPI3_TX (11)
+#define GPDMA_REQ_I2C1_RX (12)
+#define GPDMA_REQ_I2C1_TX (13)
+#define GPDMA_REQ_I2C1_EVC (14)
+#define GPDMA_REQ_I2C2_RX (15)
+#define GPDMA_REQ_I2C2_TX (16)
+#define GPDMA_REQ_I2C2_EVC (17)
+#define GPDMA_REQ_I2C3_RX (18)
+#define GPDMA_REQ_I2C3_TX (19)
+#define GPDMA_REQ_I2C3_EVC (20)
+#define GPDMA_REQ_I2C4_RX (21)
+#define GPDMA_REQ_I2C4_TX (22)
+#define GPDMA_REQ_I2C4_EVC (23)
+#define GPDMA_REQ_USART1_RX (24)
+#define GPDMA_REQ_USART1_TX (25)
+#define GPDMA_REQ_USART2_RX (26)
+#define GPDMA_REQ_USART2_TX (27)
+#define GPDMA_REQ_USART3_RX (28)
+#define GPDMA_REQ_USART3_TX (29)
+#define GPDMA_REQ_UART4_RX (30)
+#define GPDMA_REQ_UART4_TX (31)
+#define GPDMA_REQ_UART5_RX (32)
+#define GPDMA_REQ_UART5_TX (33)
+#define GPDMA_REQ_LPUART1_RX (34)
+#define GPDMA_REQ_LPUART1_TX (35)
+#define GPDMA_REQ_SAI1_A (36)
+#define GPDMA_REQ_SAI1_B (37)
+#define GPDMA_REQ_OCTOSPI1 (40)
+#define GPDMA_REQ_TIM1_CH1 (42)
+#define GPDMA_REQ_TIM1_CH2 (43)
+#define GPDMA_REQ_TIM1_CH3 (44)
+#define GPDMA_REQ_TIM1_CH4 (45)
+#define GPDMA_REQ_TIM1_UP (46)
+#define GPDMA_REQ_TIM1_TRIG (47)
+#define GPDMA_REQ_TIM1_COM (48)
+#define GPDMA_REQ_I3C1_RX (49)
+#define GPDMA_REQ_I3C1_TX (50)
+#define GPDMA_REQ_I3C1_TC (51)
+#define GPDMA_REQ_I3C1_RS (52)
+#define GPDMA_REQ_GFXPAND_IN (53)
+#define GPDMA_REQ_GFXPAND_OUT (54)
+#define GPDMA_REQ_TIM2_CH1 (56)
+#define GPDMA_REQ_TIM2_CH2 (57)
+#define GPDMA_REQ_TIM2_CH3 (58)
+#define GPDMA_REQ_TIM2_CH4 (59)
+#define GPDMA_REQ_TIM2_UP (60)
+#define GPDMA_REQ_TIM3_CH1 (61)
+#define GPDMA_REQ_TIM3_CH2 (62)
+#define GPDMA_REQ_TIM3_CH3 (63)
+#define GPDMA_REQ_TIM3_CH4 (64)
+#define GPDMA_REQ_TIM3_UP (65)
+#define GPDMA_REQ_TIM3_TRIG (66)
+#define GPDMA_REQ_TIM4_CH1 (67)
+#define GPDMA_REQ_TIM4_CH2 (68)
+#define GPDMA_REQ_TIM4_CH3 (69)
+#define GPDMA_REQ_TIM4_CH4 (70)
+#define GPDMA_REQ_TIM4_UP (71)
+#define GPDMA_REQ_I3C2_RX (72)
+#define GPDMA_REQ_I3C2_TX (73)
+#define GPDMA_REQ_I3C2_TC (74)
+#define GPDMA_REQ_I3C2_RS (75)
+#define GPDMA_REQ_SPI4_RX (76)
+#define GPDMA_REQ_SPI4_TX (77)
+#define GPDMA_REQ_TIM15_CH1 (78)
+#define GPDMA_REQ_TIM15_UP (79)
+#define GPDMA_REQ_TIM15_TRIG (80)
+#define GPDMA_REQ_TIM15_COM (81)
+#define GPDMA_REQ_TIM16_CH1 (82)
+#define GPDMA_REQ_TIM16_UP (83)
+#define GPDMA_REQ_TIM17_CH1 (84)
+#define GPDMA_REQ_TIM17_UP (85)
+#define GPDMA_REQ_AES_IN (87)
+#define GPDMA_REQ_AES_OUT (88)
+#define GPDMA_REQ_HASH_IN (89)
+#define GPDMA_REQ_TIM8_CH1 (91)
+#define GPDMA_REQ_TIM8_CH2 (92)
+#define GPDMA_REQ_TIM8_CH3 (93)
+#define GPDMA_REQ_TIM8_CH4 (94)
+#define GPDMA_REQ_TIM8_UP (95)
+#define GPDMA_REQ_TIM8_TRIG (96)
+#define GPDMA_REQ_TIM8_COM (97)
+#define GPDMA_REQ_ADF1_FLT0 (98)
+#define GPDMA_REQ_SAES_IN (103)
+#define GPDMA_REQ_SAES_OUT (104)
+#define GPDMA_REQ_LPTIM1_IC1 (105)
+#define GPDMA_REQ_LPTIM1_IC2 (106)
+#define GPDMA_REQ_LPTIM1_UE (107)
+#define GPDMA_REQ_LPTIM2_IC1 (108)
+#define GPDMA_REQ_LPTIM2_IC2 (109)
+#define GPDMA_REQ_LPTIM2_UE (110)
+#define GPDMA_REQ_LPTIM3_IC1 (111)
+#define GPDMA_REQ_LPTIM3_IC2 (112)
+#define GPDMA_REQ_LPTIM3_UE (113)
+
+/* USART RX DMA request numbers */
+
+#define STM32_LPUART1_RXDMA_REQ GPDMA_REQ_LPUART1_RX
+#define STM32_USART1_RXDMA_REQ GPDMA_REQ_USART1_RX
+#define STM32_USART2_RXDMA_REQ GPDMA_REQ_USART2_RX
+#define STM32_USART3_RXDMA_REQ GPDMA_REQ_USART3_RX
+#define STM32_UART4_RXDMA_REQ GPDMA_REQ_UART4_RX
+#define STM32_UART5_RXDMA_REQ GPDMA_REQ_UART5_RX
+
+#endif /* __ARCH_ARM_SRC_STM32U3_HARDWARE_STM32_DMASIGMAP_H */
diff --git a/arch/arm/src/stm32u3/stm32u3xx_rcc.c b/arch/arm/src/stm32u3/stm32u3xx_rcc.c
index 213d3eb5b60..628c97bab0b 100644
--- a/arch/arm/src/stm32u3/stm32u3xx_rcc.c
+++ b/arch/arm/src/stm32u3/stm32u3xx_rcc.c
@@ -197,6 +197,10 @@ void stm32_rcc_enableperipherals(void)
{
uint32_t regval;
+#ifdef CONFIG_STM32_DMA1
+ modifyreg32(STM32_RCC_AHB1ENR1, 0, RCC_AHB1ENR1_GPDMA1EN);
+#endif
+
/* Enable all GPIO ports implemented by STM32U3C5. */
regval = RCC_AHB2ENR1_GPIOAEN | RCC_AHB2ENR1_GPIOBEN |
(nuttx) 06/07: arch/arm/stm32: Remove unused STM32_LPDMA1 Kconfig symbols
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 39e48cb95bfbae73de004a49a235fe8ac3d5b417
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 15:52:16 2026 +0200
arch/arm/stm32: Remove unused STM32_LPDMA1 Kconfig symbols
STM32U5 LPDMA1 is not supported by the common GPDMA driver. Remove the
dead STM32_LPDMA1 and STM32_HAVE_LPDMA1 symbols. The U5 LPDMA1 clock
gate follows the unified instance naming and is now controlled by
STM32_DMA2.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/common/stm32/Kconfig.have | 3 ---
arch/arm/src/common/stm32/Kconfig.periph | 5 -----
arch/arm/src/stm32u5/Kconfig | 1 -
arch/arm/src/stm32u5/stm32u5xx_rcc.c | 2 +-
4 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/arch/arm/src/common/stm32/Kconfig.have b/arch/arm/src/common/stm32/Kconfig.have
index 4a15643c194..80b4e183772 100644
--- a/arch/arm/src/common/stm32/Kconfig.have
+++ b/arch/arm/src/common/stm32/Kconfig.have
@@ -287,9 +287,6 @@ config STM32_HAVE_MDMA
config STM32_HAVE_BDMA
bool
-config STM32_HAVE_LPDMA1
- bool
-
config STM32_HAVE_DMA1
bool
diff --git a/arch/arm/src/common/stm32/Kconfig.periph b/arch/arm/src/common/stm32/Kconfig.periph
index 2f314613c6d..f840e0731bd 100644
--- a/arch/arm/src/common/stm32/Kconfig.periph
+++ b/arch/arm/src/common/stm32/Kconfig.periph
@@ -101,11 +101,6 @@ config STM32_BDMA
select STM32_DMA
select ARCH_DMA
-config STM32_LPDMA1
- depends on STM32_HAVE_LPDMA1
- bool "LPDMA1"
- default n
-
config STM32_DMA1
bool "DMA1"
depends on STM32_HAVE_DMA1
diff --git a/arch/arm/src/stm32u5/Kconfig b/arch/arm/src/stm32u5/Kconfig
index dc70099dba0..747a7a3beb5 100644
--- a/arch/arm/src/stm32u5/Kconfig
+++ b/arch/arm/src/stm32u5/Kconfig
@@ -66,7 +66,6 @@ config STM32_U5_PERIPHERALS
select STM32_HAVE_OCTOSPI1
select STM32_HAVE_OCTOSPI2
select STM32_HAVE_LPGPIO1
- select STM32_HAVE_LPDMA1
select STM32_HAVE_ADF1
select STM32_HAVE_UCPD1
select STM32_HAVE_VREF
diff --git a/arch/arm/src/stm32u5/stm32u5xx_rcc.c b/arch/arm/src/stm32u5/stm32u5xx_rcc.c
index 7fc868febd0..f54fbb952a9 100644
--- a/arch/arm/src/stm32u5/stm32u5xx_rcc.c
+++ b/arch/arm/src/stm32u5/stm32u5xx_rcc.c
@@ -315,7 +315,7 @@ static inline void rcc_enableahb3(void)
regval |= RCC_AHB3ENR_DAC1EN;
#endif
-#ifdef CONFIG_STM32_LPDMA1
+#ifdef CONFIG_STM32_DMA2
regval |= RCC_AHB3ENR_LPDMA1EN;
#endif
(nuttx) 05/07: arch/arm/stm32: Remove unused STM32_GPADMA1 Kconfig symbols
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 64e733a5a7bd1c9c616f84d3264a53f21eb4caf7
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 15:43:21 2026 +0200
arch/arm/stm32: Remove unused STM32_GPADMA1 Kconfig symbols
STM32_GPADMA1 and STM32_HAVE_GPADMA1 were superseded by STM32_DMA1 and
STM32_HAVE_DMA1. Nothing references them anymore.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/common/stm32/Kconfig.have | 3 ---
arch/arm/src/common/stm32/Kconfig.periph | 5 -----
arch/arm/src/stm32u5/Kconfig | 1 -
3 files changed, 9 deletions(-)
diff --git a/arch/arm/src/common/stm32/Kconfig.have b/arch/arm/src/common/stm32/Kconfig.have
index 9f04121b0c8..4a15643c194 100644
--- a/arch/arm/src/common/stm32/Kconfig.have
+++ b/arch/arm/src/common/stm32/Kconfig.have
@@ -287,9 +287,6 @@ config STM32_HAVE_MDMA
config STM32_HAVE_BDMA
bool
-config STM32_HAVE_GPADMA1
- bool
-
config STM32_HAVE_LPDMA1
bool
diff --git a/arch/arm/src/common/stm32/Kconfig.periph b/arch/arm/src/common/stm32/Kconfig.periph
index 7d035e11e68..2f314613c6d 100644
--- a/arch/arm/src/common/stm32/Kconfig.periph
+++ b/arch/arm/src/common/stm32/Kconfig.periph
@@ -101,11 +101,6 @@ config STM32_BDMA
select STM32_DMA
select ARCH_DMA
-config STM32_GPADMA1
- depends on STM32_HAVE_GPADMA1
- bool "GPADMA1"
- default n
-
config STM32_LPDMA1
depends on STM32_HAVE_LPDMA1
bool "LPDMA1"
diff --git a/arch/arm/src/stm32u5/Kconfig b/arch/arm/src/stm32u5/Kconfig
index 5a99b0d4a76..dc70099dba0 100644
--- a/arch/arm/src/stm32u5/Kconfig
+++ b/arch/arm/src/stm32u5/Kconfig
@@ -47,7 +47,6 @@ config STM32_U5_PERIPHERALS
select STM32_HAVE_USART1
select STM32_HAVE_USART2
select STM32_HAVE_USART3
- select STM32_HAVE_GPADMA1
select STM32_HAVE_MDF1
select STM32_HAVE_FLASH
select STM32_HAVE_RAMCFG
(nuttx) 01/07: arch/arm/stm32u5: Use the common GPDMA driver
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ccab492bfbfaadf032428d91710a1fca83b7a001
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 12:49:33 2026 +0200
arch/arm/stm32u5: Use the common GPDMA driver
Select STM32_HAVE_IP_DMA_GPDMA and STM32_HAVE_DMA1 and provide the
GPDMA instance parameters, the GPDMA1 request signal map taken from
RM0456, and the USART RX DMA request numbers.
DMA1 is the 16-channel GPDMA1 instance. The LPDMA1 instance uses a
separate request numbering and is not supported yet.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/stm32u5/Kconfig | 2 +
arch/arm/src/stm32u5/chip.h | 7 +
arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h | 170 ++++++++++++++++++++++++
3 files changed, 179 insertions(+)
diff --git a/arch/arm/src/stm32u5/Kconfig b/arch/arm/src/stm32u5/Kconfig
index bf8a4560bd3..5a99b0d4a76 100644
--- a/arch/arm/src/stm32u5/Kconfig
+++ b/arch/arm/src/stm32u5/Kconfig
@@ -10,6 +10,8 @@ comment "STM32U5 Configuration Options"
config STM32_U5_PERIPHERALS
bool
default y
+ select STM32_HAVE_DMA1
+ select STM32_HAVE_IP_DMA_GPDMA
select STM32_HAVE_IP_EXTI_M33_V1
select STM32_HAVE_IP_GPIO_M33_V1
select STM32_HAVE_IP_TIMERS_V3
diff --git a/arch/arm/src/stm32u5/chip.h b/arch/arm/src/stm32u5/chip.h
index 95117db4fdc..772ca5aadc8 100644
--- a/arch/arm/src/stm32u5/chip.h
+++ b/arch/arm/src/stm32u5/chip.h
@@ -50,4 +50,11 @@
#define ARMV8M_PERIPHERAL_INTERRUPTS STM32_IRQ_NEXTINTS
+/* GPDMA instance parameters. DMA1 is the GPDMA1 instance; the LPDMA1
+ * instance is not supported yet.
+ */
+
+#define STM32_DMA1_NCHAN 16
+#define STM32_DMA1_IRQ_FIRST STM32_IRQ_GPDMA1_CH0
+
#endif /* __ARCH_ARM_SRC_STM32U5_CHIP_H */
diff --git a/arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h b/arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h
new file mode 100644
index 00000000000..112d400d493
--- /dev/null
+++ b/arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h
@@ -0,0 +1,170 @@
+/****************************************************************************
+ * arch/arm/src/stm32u5/hardware/stm32_dmasigmap.h
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+#ifndef __ARCH_ARM_SRC_STM32U5_HARDWARE_STM32_DMASIGMAP_H
+#define __ARCH_ARM_SRC_STM32U5_HARDWARE_STM32_DMASIGMAP_H
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* GPDMA1 request signals. The LPDMA1 instance uses a separate request
+ * numbering and is not supported yet.
+ */
+
+#define GPDMA_REQ_ADC1 (0)
+#define GPDMA_REQ_ADC4 (1)
+#define GPDMA_REQ_DAC1_CH1 (2)
+#define GPDMA_REQ_DAC1_CH2 (3)
+#define GPDMA_REQ_TIM6_UP (4)
+#define GPDMA_REQ_TIM7_UP (5)
+#define GPDMA_REQ_SPI1_RX (6)
+#define GPDMA_REQ_SPI1_TX (7)
+#define GPDMA_REQ_SPI2_RX (8)
+#define GPDMA_REQ_SPI2_TX (9)
+#define GPDMA_REQ_SPI3_RX (10)
+#define GPDMA_REQ_SPI3_TX (11)
+#define GPDMA_REQ_I2C1_RX (12)
+#define GPDMA_REQ_I2C1_TX (13)
+#define GPDMA_REQ_I2C1_EVC (14)
+#define GPDMA_REQ_I2C2_RX (15)
+#define GPDMA_REQ_I2C2_TX (16)
+#define GPDMA_REQ_I2C2_EVC (17)
+#define GPDMA_REQ_I2C3_RX (18)
+#define GPDMA_REQ_I2C3_TX (19)
+#define GPDMA_REQ_I2C3_EVC (20)
+#define GPDMA_REQ_I2C4_RX (21)
+#define GPDMA_REQ_I2C4_TX (22)
+#define GPDMA_REQ_I2C4_EVC (23)
+#define GPDMA_REQ_USART1_RX (24)
+#define GPDMA_REQ_USART1_TX (25)
+#define GPDMA_REQ_USART2_RX (26)
+#define GPDMA_REQ_USART2_TX (27)
+#define GPDMA_REQ_USART3_RX (28)
+#define GPDMA_REQ_USART3_TX (29)
+#define GPDMA_REQ_UART4_RX (30)
+#define GPDMA_REQ_UART4_TX (31)
+#define GPDMA_REQ_UART5_RX (32)
+#define GPDMA_REQ_UART5_TX (33)
+#define GPDMA_REQ_LPUART1_RX (34)
+#define GPDMA_REQ_LPUART1_TX (35)
+#define GPDMA_REQ_SAI1_A (36)
+#define GPDMA_REQ_SAI1_B (37)
+#define GPDMA_REQ_SAI2_A (38)
+#define GPDMA_REQ_SAI2_B (39)
+#define GPDMA_REQ_OCTOSPI1 (40)
+#define GPDMA_REQ_OCTOSPI2 (41)
+#define GPDMA_REQ_TIM1_CH1 (42)
+#define GPDMA_REQ_TIM1_CH2 (43)
+#define GPDMA_REQ_TIM1_CH3 (44)
+#define GPDMA_REQ_TIM1_CH4 (45)
+#define GPDMA_REQ_TIM1_UP (46)
+#define GPDMA_REQ_TIM1_TRIG (47)
+#define GPDMA_REQ_TIM1_COM (48)
+#define GPDMA_REQ_TIM8_CH1 (49)
+#define GPDMA_REQ_TIM8_CH2 (50)
+#define GPDMA_REQ_TIM8_CH3 (51)
+#define GPDMA_REQ_TIM8_CH4 (52)
+#define GPDMA_REQ_TIM8_UP (53)
+#define GPDMA_REQ_TIM8_TRIG (54)
+#define GPDMA_REQ_TIM8_COM (55)
+#define GPDMA_REQ_TIM2_CH1 (56)
+#define GPDMA_REQ_TIM2_CH2 (57)
+#define GPDMA_REQ_TIM2_CH3 (58)
+#define GPDMA_REQ_TIM2_CH4 (59)
+#define GPDMA_REQ_TIM2_UP (60)
+#define GPDMA_REQ_TIM3_CH1 (61)
+#define GPDMA_REQ_TIM3_CH2 (62)
+#define GPDMA_REQ_TIM3_CH3 (63)
+#define GPDMA_REQ_TIM3_CH4 (64)
+#define GPDMA_REQ_TIM3_UP (65)
+#define GPDMA_REQ_TIM3_TRIG (66)
+#define GPDMA_REQ_TIM4_CH1 (67)
+#define GPDMA_REQ_TIM4_CH2 (68)
+#define GPDMA_REQ_TIM4_CH3 (69)
+#define GPDMA_REQ_TIM4_CH4 (70)
+#define GPDMA_REQ_TIM4_UP (71)
+#define GPDMA_REQ_TIM5_CH1 (72)
+#define GPDMA_REQ_TIM5_CH2 (73)
+#define GPDMA_REQ_TIM5_CH3 (74)
+#define GPDMA_REQ_TIM5_CH4 (75)
+#define GPDMA_REQ_TIM5_UP (76)
+#define GPDMA_REQ_TIM5_TRIG (77)
+#define GPDMA_REQ_TIM15_CH1 (78)
+#define GPDMA_REQ_TIM15_UP (79)
+#define GPDMA_REQ_TIM15_TRIG (80)
+#define GPDMA_REQ_TIM15_COM (81)
+#define GPDMA_REQ_TIM16_CH1 (82)
+#define GPDMA_REQ_TIM16_UP (83)
+#define GPDMA_REQ_TIM17_CH1 (84)
+#define GPDMA_REQ_TIM17_UP (85)
+#define GPDMA_REQ_DCMI_PSSI (86)
+#define GPDMA_REQ_AES_IN (87)
+#define GPDMA_REQ_AES_OUT (88)
+#define GPDMA_REQ_HASH_IN (89)
+#define GPDMA_REQ_UCPD1_TX (90)
+#define GPDMA_REQ_UCPD1_RX (91)
+#define GPDMA_REQ_MDF1_FLT0 (92)
+#define GPDMA_REQ_MDF1_FLT1 (93)
+#define GPDMA_REQ_MDF1_FLT2 (94)
+#define GPDMA_REQ_MDF1_FLT3 (95)
+#define GPDMA_REQ_MDF1_FLT4 (96)
+#define GPDMA_REQ_MDF1_FLT5 (97)
+#define GPDMA_REQ_ADF1_FLT0 (98)
+#define GPDMA_REQ_FMAC_READ (99)
+#define GPDMA_REQ_FMAC_WRITE (100)
+#define GPDMA_REQ_CORDIC_READ (101)
+#define GPDMA_REQ_CORDIC_WRITE (102)
+#define GPDMA_REQ_SAES_IN (103)
+#define GPDMA_REQ_SAES_OUT (104)
+#define GPDMA_REQ_LPTIM1_IC1 (105)
+#define GPDMA_REQ_LPTIM1_IC2 (106)
+#define GPDMA_REQ_LPTIM1_UE (107)
+#define GPDMA_REQ_LPTIM2_IC1 (108)
+#define GPDMA_REQ_LPTIM2_IC2 (109)
+#define GPDMA_REQ_LPTIM2_UE (110)
+#define GPDMA_REQ_LPTIM3_IC1 (111)
+#define GPDMA_REQ_LPTIM3_IC2 (112)
+#define GPDMA_REQ_LPTIM3_UE (113)
+#define GPDMA_REQ_HSPI1 (114)
+#define GPDMA_REQ_I2C5_RX (115)
+#define GPDMA_REQ_I2C5_TX (116)
+#define GPDMA_REQ_I2C5_EVC (117)
+#define GPDMA_REQ_I2C6_RX (118)
+#define GPDMA_REQ_I2C6_TX (119)
+#define GPDMA_REQ_I2C6_EVC (120)
+#define GPDMA_REQ_USART6_RX (121)
+#define GPDMA_REQ_USART6_TX (122)
+#define GPDMA_REQ_ADC2 (123)
+#define GPDMA_REQ_JPEG_RX (124)
+#define GPDMA_REQ_JPEG_TX (125)
+
+/* USART RX DMA request numbers */
+
+#define STM32_LPUART1_RXDMA_REQ GPDMA_REQ_LPUART1_RX
+#define STM32_USART1_RXDMA_REQ GPDMA_REQ_USART1_RX
+#define STM32_USART2_RXDMA_REQ GPDMA_REQ_USART2_RX
+#define STM32_USART3_RXDMA_REQ GPDMA_REQ_USART3_RX
+#define STM32_UART4_RXDMA_REQ GPDMA_REQ_UART4_RX
+#define STM32_UART5_RXDMA_REQ GPDMA_REQ_UART5_RX
+
+#endif /* __ARCH_ARM_SRC_STM32U5_HARDWARE_STM32_DMASIGMAP_H */
(nuttx) 03/07: arch/arm/stm32c5: Use the common GPDMA driver
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b5ef80690857e905e3b61441ccfc7dc830da1f50
Author: raiden00pl <ra...@railab.me>
AuthorDate: Wed Aug 26 12:54:54 2026 +0200
arch/arm/stm32c5: Use the common GPDMA driver
Select STM32_HAVE_IP_DMA_GPDMA with STM32_HAVE_DMA1 and
STM32_HAVE_DMA2, enable the LPDMA clocks, and provide the DMA instance
parameters, the LPDMA request signal map, and the USART RX DMA request
numbers. The request numbering is common to both LPDMA instances.
Signed-off-by: raiden00pl <ra...@railab.me>
Assisted-by: Claude Code
---
arch/arm/src/stm32c5/Kconfig | 3 +
arch/arm/src/stm32c5/chip.h | 9 ++
arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h | 137 ++++++++++++++++++++++++
arch/arm/src/stm32c5/stm32c5xx_rcc.c | 7 ++
4 files changed, 156 insertions(+)
diff --git a/arch/arm/src/stm32c5/Kconfig b/arch/arm/src/stm32c5/Kconfig
index a13f8e23408..190dceed017 100644
--- a/arch/arm/src/stm32c5/Kconfig
+++ b/arch/arm/src/stm32c5/Kconfig
@@ -11,6 +11,9 @@ config STM32_C5_PERIPHERALS
bool
default y
select ARCH_HAVE_FPU
+ select STM32_HAVE_DMA1
+ select STM32_HAVE_DMA2
+ select STM32_HAVE_IP_DMA_GPDMA
select STM32_HAVE_IP_EXTI_M33_V1
select STM32_HAVE_IP_GPIO_M33_V1
select STM32_HAVE_IP_TIMERS_V3
diff --git a/arch/arm/src/stm32c5/chip.h b/arch/arm/src/stm32c5/chip.h
index 4b83ecaeb9a..026378d7400 100644
--- a/arch/arm/src/stm32c5/chip.h
+++ b/arch/arm/src/stm32c5/chip.h
@@ -50,4 +50,13 @@
#define ARMV8M_PERIPHERAL_INTERRUPTS STM32_IRQ_NEXTINTS
+/* DMA instance parameters. DMA1 and DMA2 are the LPDMA1 and LPDMA2
+ * instances.
+ */
+
+#define STM32_DMA1_NCHAN 8
+#define STM32_DMA1_IRQ_FIRST STM32_IRQ_LPDMA1_CH0
+#define STM32_DMA2_NCHAN 4
+#define STM32_DMA2_IRQ_FIRST STM32_IRQ_LPDMA2_CH0
+
#endif /* __ARCH_ARM_SRC_STM32C5_CHIP_H */
diff --git a/arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h b/arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h
new file mode 100644
index 00000000000..34942cb087e
--- /dev/null
+++ b/arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h
@@ -0,0 +1,137 @@
+/****************************************************************************
+ * arch/arm/src/stm32c5/hardware/stm32_dmasigmap.h
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+#ifndef __ARCH_ARM_SRC_STM32C5_HARDWARE_STM32_DMASIGMAP_H
+#define __ARCH_ARM_SRC_STM32C5_HARDWARE_STM32_DMASIGMAP_H
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/* LPDMA request signals, common to the LPDMA1 and LPDMA2 instances */
+
+#define LPDMA_REQ_ADC1 (0)
+#define LPDMA_REQ_ADC2 (1)
+#define LPDMA_REQ_TIM6_UPD (2)
+#define LPDMA_REQ_TIM7_UPD (3)
+#define LPDMA_REQ_SPI1_RX (4)
+#define LPDMA_REQ_SPI1_TX (5)
+#define LPDMA_REQ_SPI2_RX (6)
+#define LPDMA_REQ_SPI2_TX (7)
+#define LPDMA_REQ_SPI3_RX (8)
+#define LPDMA_REQ_SPI3_TX (9)
+#define LPDMA_REQ_I2C1_RX (10)
+#define LPDMA_REQ_I2C1_TX (11)
+#define LPDMA_REQ_USART1_RX (12)
+#define LPDMA_REQ_USART1_TX (13)
+#define LPDMA_REQ_USART2_RX (14)
+#define LPDMA_REQ_USART2_TX (15)
+#define LPDMA_REQ_USART3_RX (16)
+#define LPDMA_REQ_USART3_TX (17)
+#define LPDMA_REQ_UART4_RX (18)
+#define LPDMA_REQ_UART4_TX (19)
+#define LPDMA_REQ_UART5_RX (20)
+#define LPDMA_REQ_UART5_TX (21)
+#define LPDMA_REQ_LPUART1_RX (22)
+#define LPDMA_REQ_LPUART1_TX (23)
+#define LPDMA_REQ_TIM1_CC1 (24)
+#define LPDMA_REQ_TIM1_CC2 (25)
+#define LPDMA_REQ_TIM1_CC3 (26)
+#define LPDMA_REQ_TIM1_CC4 (27)
+#define LPDMA_REQ_TIM1_UPD (28)
+#define LPDMA_REQ_TIM1_TRGI (29)
+#define LPDMA_REQ_TIM1_COM (30)
+#define LPDMA_REQ_TIM2_CC1 (31)
+#define LPDMA_REQ_TIM2_CC2 (32)
+#define LPDMA_REQ_TIM2_CC3 (33)
+#define LPDMA_REQ_TIM2_CC4 (34)
+#define LPDMA_REQ_TIM2_UPD (35)
+#define LPDMA_REQ_TIM2_TRGI (36)
+#define LPDMA_REQ_TIM5_CC1 (37)
+#define LPDMA_REQ_TIM5_CC2 (38)
+#define LPDMA_REQ_TIM5_CC3 (39)
+#define LPDMA_REQ_TIM5_CC4 (40)
+#define LPDMA_REQ_TIM5_UPD (41)
+#define LPDMA_REQ_TIM5_TRGI (42)
+#define LPDMA_REQ_TIM15_CC1 (43)
+#define LPDMA_REQ_TIM15_CC2 (44)
+#define LPDMA_REQ_TIM15_UPD (45)
+#define LPDMA_REQ_TIM15_TRGI (46)
+#define LPDMA_REQ_TIM15_COM (47)
+#define LPDMA_REQ_TIM16_CC1 (48)
+#define LPDMA_REQ_TIM16_UPD (49)
+#define LPDMA_REQ_TIM17_CC1 (50)
+#define LPDMA_REQ_TIM17_UPD (51)
+#define LPDMA_REQ_LPTIM1_IC1 (52)
+#define LPDMA_REQ_LPTIM1_IC2 (53)
+#define LPDMA_REQ_LPTIM1_UE (54)
+#define LPDMA_REQ_CORDIC_RD (55)
+#define LPDMA_REQ_CORDIC_WR (56)
+#define LPDMA_REQ_I3C1_RX (57)
+#define LPDMA_REQ_I3C1_TX (58)
+#define LPDMA_REQ_I3C1_TC (59)
+#define LPDMA_REQ_I3C1_RS (60)
+#define LPDMA_REQ_AES_OUT (61)
+#define LPDMA_REQ_AES_IN (62)
+#define LPDMA_REQ_HASH_IN (63)
+#define LPDMA_REQ_I2C2_RX (64)
+#define LPDMA_REQ_I2C2_TX (65)
+#define LPDMA_REQ_TIM8_CC1 (66)
+#define LPDMA_REQ_TIM8_CC2 (67)
+#define LPDMA_REQ_TIM8_CC3 (68)
+#define LPDMA_REQ_TIM8_CC4 (69)
+#define LPDMA_REQ_TIM8_UPD (70)
+#define LPDMA_REQ_TIM8_TRGI (71)
+#define LPDMA_REQ_TIM8_COM (72)
+#define LPDMA_REQ_DAC1_CH1 (73)
+#define LPDMA_REQ_DAC1_CH2 (74)
+#define LPDMA_REQ_USART6_RX (75)
+#define LPDMA_REQ_USART6_TX (76)
+#define LPDMA_REQ_UART7_TX (77)
+#define LPDMA_REQ_UART7_RX (78)
+#define LPDMA_REQ_ADC3 (79)
+#define LPDMA_REQ_TIM3_CC1 (80)
+#define LPDMA_REQ_TIM3_CC2 (81)
+#define LPDMA_REQ_TIM3_CC3 (82)
+#define LPDMA_REQ_TIM3_CC4 (83)
+#define LPDMA_REQ_TIM3_UPD (84)
+#define LPDMA_REQ_TIM3_TRGI (85)
+#define LPDMA_REQ_TIM4_CC1 (86)
+#define LPDMA_REQ_TIM4_CC2 (87)
+#define LPDMA_REQ_TIM4_CC3 (88)
+#define LPDMA_REQ_TIM4_CC4 (89)
+#define LPDMA_REQ_TIM4_UPD (90)
+#define LPDMA_REQ_TIM4_TRGI (91)
+#define LPDMA_REQ_SAES_OUT (92)
+#define LPDMA_REQ_SAES_IN (93)
+#define LPDMA_REQ_XSPI1 (94)
+
+/* USART RX DMA request numbers */
+
+#define STM32_LPUART1_RXDMA_REQ LPDMA_REQ_LPUART1_RX
+#define STM32_USART1_RXDMA_REQ LPDMA_REQ_USART1_RX
+#define STM32_USART2_RXDMA_REQ LPDMA_REQ_USART2_RX
+#define STM32_USART3_RXDMA_REQ LPDMA_REQ_USART3_RX
+#define STM32_UART4_RXDMA_REQ LPDMA_REQ_UART4_RX
+#define STM32_UART5_RXDMA_REQ LPDMA_REQ_UART5_RX
+
+#endif /* __ARCH_ARM_SRC_STM32C5_HARDWARE_STM32_DMASIGMAP_H */
diff --git a/arch/arm/src/stm32c5/stm32c5xx_rcc.c b/arch/arm/src/stm32c5/stm32c5xx_rcc.c
index 269738a19b3..b0ca2adbe56 100644
--- a/arch/arm/src/stm32c5/stm32c5xx_rcc.c
+++ b/arch/arm/src/stm32c5/stm32c5xx_rcc.c
@@ -173,6 +173,13 @@ void stm32_rcc_enableperipherals(void)
/* Enable the GPIO ports implemented by STM32C5. */
+#ifdef CONFIG_STM32_DMA1
+ modifyreg32(STM32_RCC_AHB1ENR, 0, RCC_AHB1ENR_LPDMA1EN);
+#endif
+#ifdef CONFIG_STM32_DMA2
+ modifyreg32(STM32_RCC_AHB1ENR, 0, RCC_AHB1ENR_LPDMA2EN);
+#endif
+
regval = RCC_AHB2ENR_GPIOAEN | RCC_AHB2ENR_GPIOBEN |
RCC_AHB2ENR_GPIOCEN | RCC_AHB2ENR_GPIODEN |
RCC_AHB2ENR_GPIOEEN | RCC_AHB2ENR_GPIOHEN;