-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards/tests: dma: enable dma for S32Z270
Enable dma boards/test for S32Z270. The non-cacheable memory used for DMA tests (chan_blen_transfer and loop_transfer) is split from the system SRAM. Signed-off-by: Ha Duong Quang <[email protected]>
- Loading branch information
1 parent
ecced51
commit 9158449
Showing
19 changed files
with
195 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ supported: | |
- counter | ||
- adc | ||
- i2c | ||
- dma | ||
vendor: nxp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ supported: | |
- counter | ||
- adc | ||
- i2c | ||
- dma | ||
vendor: nxp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ supported: | |
- counter | ||
- adc | ||
- i2c | ||
- dma | ||
vendor: nxp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ supported: | |
- counter | ||
- adc | ||
- i2c | ||
- dma | ||
vendor: nxp |
4 changes: 4 additions & 0 deletions
4
tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=0 | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=16 | ||
CONFIG_CODE_DATA_RELOCATION=y | ||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE" |
29 changes: 29 additions & 0 deletions
29
tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
soc { | ||
sram_nocache: memory@31870000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x31870000 DT_SIZE_K(64)>; | ||
zephyr,memory-region = "SRAMNOCACHE"; | ||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>; | ||
}; | ||
}; | ||
}; | ||
|
||
&sram0 { | ||
compatible = "mmio-sram"; | ||
reg = <0x31780000 DT_SIZE_K(960)>; | ||
}; | ||
|
||
&edma0 { | ||
status = "okay"; | ||
}; | ||
|
||
tst_dma0: &edma0 { }; |
4 changes: 4 additions & 0 deletions
4
tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=0 | ||
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=15 | ||
CONFIG_CODE_DATA_RELOCATION=y | ||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE" |
29 changes: 29 additions & 0 deletions
29
tests/drivers/dma/chan_blen_transfer/boards/s32z2xxdc2_s32z270_rtu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
soc { | ||
sram_nocache: memory@35870000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x35870000 DT_SIZE_K(64)>; | ||
zephyr,memory-region = "SRAMNOCACHE"; | ||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>; | ||
}; | ||
}; | ||
}; | ||
|
||
&sram1 { | ||
compatible = "mmio-sram"; | ||
reg = <0x35780000 DT_SIZE_K(960)>; | ||
}; | ||
|
||
&edma5 { | ||
status = "okay"; | ||
}; | ||
|
||
tst_dma0: &edma5 { }; |
11 changes: 11 additions & 0 deletions
11
tests/drivers/dma/chan_link_transfer/boards/s32z2xxdc2_s32z270_rtu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&edma0 { | ||
status = "okay"; | ||
}; | ||
|
||
dma0: &edma0 { }; |
11 changes: 11 additions & 0 deletions
11
tests/drivers/dma/chan_link_transfer/boards/s32z2xxdc2_s32z270_rtu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&edma5 { | ||
status = "okay"; | ||
}; | ||
|
||
dma0: &edma5 { }; |
2 changes: 2 additions & 0 deletions
2
tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_CODE_DATA_RELOCATION=y | ||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE" |
29 changes: 29 additions & 0 deletions
29
tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
soc { | ||
sram_nocache: memory@31870000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x31870000 DT_SIZE_K(64)>; | ||
zephyr,memory-region = "SRAMNOCACHE"; | ||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>; | ||
}; | ||
}; | ||
}; | ||
|
||
&sram0 { | ||
compatible = "mmio-sram"; | ||
reg = <0x31780000 DT_SIZE_K(960)>; | ||
}; | ||
|
||
&edma0 { | ||
status = "okay"; | ||
}; | ||
|
||
tst_dma0: &edma0 { }; |
2 changes: 2 additions & 0 deletions
2
tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_CODE_DATA_RELOCATION=y | ||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE" |
30 changes: 30 additions & 0 deletions
30
tests/drivers/dma/loop_transfer/boards/s32z2xxdc2_s32z270_rtu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> | ||
|
||
/ { | ||
soc { | ||
sram_nocache: memory@35870000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0x35870000 DT_SIZE_K(64)>; | ||
zephyr,memory-region = "SRAMNOCACHE"; | ||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>; | ||
}; | ||
}; | ||
}; | ||
|
||
&sram1 { | ||
compatible = "mmio-sram"; | ||
reg = <0x35780000 DT_SIZE_K(960)>; | ||
}; | ||
|
||
|
||
&edma5 { | ||
status = "okay"; | ||
}; | ||
|
||
tst_dma0: &edma5 { }; |
1 change: 1 addition & 0 deletions
1
tests/drivers/dma/scatter_gather/boards/s32z2xxdc2_s32z270_rtu0.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DMA_TCD_QUEUE_SIZE=4 |
15 changes: 15 additions & 0 deletions
15
tests/drivers/dma/scatter_gather/boards/s32z2xxdc2_s32z270_rtu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
dma0 = &edma0; | ||
}; | ||
}; | ||
|
||
&edma0 { | ||
status = "okay"; | ||
}; |
1 change: 1 addition & 0 deletions
1
tests/drivers/dma/scatter_gather/boards/s32z2xxdc2_s32z270_rtu1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DMA_TCD_QUEUE_SIZE=4 |
15 changes: 15 additions & 0 deletions
15
tests/drivers/dma/scatter_gather/boards/s32z2xxdc2_s32z270_rtu1.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
dma0 = &edma5; | ||
}; | ||
}; | ||
|
||
&edma5 { | ||
status = "okay"; | ||
}; |