soc: silabs: efr32xg23: add DMA support

Added DMA support to efr32xg23 socs and boards containing them.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
This commit is contained in:
Yishai Jaffe 2024-12-25 12:52:56 +02:00 committed by Benjamin Cabé
parent 9d3d67d3d1
commit 0f948fdb1c
8 changed files with 58 additions and 0 deletions

View file

@ -53,6 +53,8 @@ The board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| UART | on-chip | serial | | UART | on-chip | serial |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| DMA | on-chip | ldma |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c | | I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| SPI | on-chip | spi | | SPI | on-chip | spi |

View file

@ -19,6 +19,7 @@ supported:
- pinctrl - pinctrl
- spi - spi
- uart - uart
- dma
- watchdog - watchdog
testing: testing:
ignore_tags: ignore_tags:

View file

@ -424,6 +424,15 @@
reg = <0x5003c440 0xbc0>; reg = <0x5003c440 0xbc0>;
}; };
dma0: dma@50040000{
compatible = "silabs,ldma";
reg = <0x50040000 0x4000>;
interrupts = <22 0>;
#dma-cells = <3>;
dma_channels = <8>;
status = "disabled";
};
wdog0: wdog@5b004000 { wdog0: wdog@5b004000 {
compatible = "silabs,gecko-wdog"; compatible = "silabs,gecko-wdog";
reg = <0x5b004000 0x4000>; reg = <0x5b004000 0x4000>;

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2024 Silicon Laboratories, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma0 {
status = "okay";
};
tst_dma0: &dma0 { };

View file

@ -0,0 +1,5 @@
# Copyright (c) 2024 Silicon Laboratories, Inc.
# SPDX-License-Identifier: Apache-2.0
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0
CONFIG_DMA_LOOP_TRANSFER_SIZE=2048

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2024 Silicon Laboratories, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma0 {
status = "okay";
};
tst_dma0: &dma0 { };

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Silicon Laboratories, Inc.
# SPDX-License-Identifier: Apache-2.0
CONFIG_DMA_SG_CHANNEL_NR=0

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 Silicon Laboratories, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
dma0 = &dma0;
};
};
&dma0 {
status = "okay";
};