Skip to content

Commit 0f948fd

Browse files
yishai1999kartben
authored andcommitted
soc: silabs: efr32xg23: add DMA support
Added DMA support to efr32xg23 socs and boards containing them. Signed-off-by: Yishai Jaffe <[email protected]>
1 parent 9d3d67d commit 0f948fd

File tree

8 files changed

+58
-0
lines changed

8 files changed

+58
-0
lines changed

boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ The board configuration supports the following hardware features:
5353
+-----------+------------+-------------------------------------+
5454
| UART | on-chip | serial |
5555
+-----------+------------+-------------------------------------+
56+
| DMA | on-chip | ldma |
57+
+-----------+------------+-------------------------------------+
5658
| I2C | on-chip | i2c |
5759
+-----------+------------+-------------------------------------+
5860
| SPI | on-chip | spi |

boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ supported:
1919
- pinctrl
2020
- spi
2121
- uart
22+
- dma
2223
- watchdog
2324
testing:
2425
ignore_tags:

dts/arm/silabs/efr32xg23.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,15 @@
424424
reg = <0x5003c440 0xbc0>;
425425
};
426426

427+
dma0: dma@50040000{
428+
compatible = "silabs,ldma";
429+
reg = <0x50040000 0x4000>;
430+
interrupts = <22 0>;
431+
#dma-cells = <3>;
432+
dma_channels = <8>;
433+
status = "disabled";
434+
};
435+
427436
wdog0: wdog@5b004000 {
428437
compatible = "silabs,gecko-wdog";
429438
reg = <0x5b004000 0x4000>;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Silicon Laboratories, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma0 {
8+
status = "okay";
9+
};
10+
11+
tst_dma0: &dma0 { };
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Silicon Laboratories, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0
5+
CONFIG_DMA_LOOP_TRANSFER_SIZE=2048
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Silicon Laboratories, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma0 {
8+
status = "okay";
9+
};
10+
11+
tst_dma0: &dma0 { };
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Silicon Laboratories, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DMA_SG_CHANNEL_NR=0
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2024 Silicon Laboratories, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
dma0 = &dma0;
10+
};
11+
};
12+
13+
&dma0 {
14+
status = "okay";
15+
};

0 commit comments

Comments
 (0)