diff --git a/tests/drivers/dma/chan_blen_transfer/boards/native_posix.conf b/tests/drivers/dma/chan_blen_transfer/boards/native_posix.conf new file mode 100644 index 000000000000..399c0de78db8 --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/native_posix.conf @@ -0,0 +1 @@ +CONFIG_DMA_EMUL=y diff --git a/tests/drivers/dma/chan_blen_transfer/boards/native_posix.overlay b/tests/drivers/dma/chan_blen_transfer/boards/native_posix.overlay new file mode 100644 index 000000000000..a93d99236278 --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/native_posix.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.conf b/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.conf new file mode 100644 index 000000000000..d76c9f7b918b --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.conf @@ -0,0 +1,2 @@ +CONFIG_DMA_EMUL=y +CONFIG_DMA_64BIT=y diff --git a/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.overlay b/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.overlay new file mode 100644 index 000000000000..a93d99236278 --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/native_posix_64.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/chan_blen_transfer/testcase.yaml b/tests/drivers/dma/chan_blen_transfer/testcase.yaml index b87f7bb9d340..374ae8e6d48c 100644 --- a/tests/drivers/dma/chan_blen_transfer/testcase.yaml +++ b/tests/drivers/dma/chan_blen_transfer/testcase.yaml @@ -5,6 +5,9 @@ tests: - dma tags: - dma + integration_platforms: + - native_posix + - native_posix_64 filter: dt_nodelabel_enabled("test_dma0") drivers.dma.chan_blen_transfer.low_footprint: tags: diff --git a/tests/drivers/dma/chan_link_transfer/boards/native_posix.conf b/tests/drivers/dma/chan_link_transfer/boards/native_posix.conf new file mode 100644 index 000000000000..399c0de78db8 --- /dev/null +++ b/tests/drivers/dma/chan_link_transfer/boards/native_posix.conf @@ -0,0 +1 @@ +CONFIG_DMA_EMUL=y diff --git a/tests/drivers/dma/chan_link_transfer/boards/native_posix.overlay b/tests/drivers/dma/chan_link_transfer/boards/native_posix.overlay new file mode 100644 index 000000000000..082fc972cabc --- /dev/null +++ b/tests/drivers/dma/chan_link_transfer/boards/native_posix.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +dma0: &dma { }; diff --git a/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.conf b/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.conf new file mode 100644 index 000000000000..d76c9f7b918b --- /dev/null +++ b/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.conf @@ -0,0 +1,2 @@ +CONFIG_DMA_EMUL=y +CONFIG_DMA_64BIT=y diff --git a/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.overlay b/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.overlay new file mode 100644 index 000000000000..082fc972cabc --- /dev/null +++ b/tests/drivers/dma/chan_link_transfer/boards/native_posix_64.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +dma0: &dma { }; diff --git a/tests/drivers/dma/chan_link_transfer/testcase.yaml b/tests/drivers/dma/chan_link_transfer/testcase.yaml index ea35f8c95330..930ab1067ebc 100644 --- a/tests/drivers/dma/chan_link_transfer/testcase.yaml +++ b/tests/drivers/dma/chan_link_transfer/testcase.yaml @@ -16,5 +16,9 @@ tests: - mimxrt1024_evk - lpcxpresso55s69_cpu0 - lpcxpresso55s36 + - native_posix + - native_posix_64 integration_platforms: - frdm_k64f + - native_posix + - native_posix_64 diff --git a/tests/drivers/dma/loop_transfer/boards/native_posix.conf b/tests/drivers/dma/loop_transfer/boards/native_posix.conf new file mode 100644 index 000000000000..399c0de78db8 --- /dev/null +++ b/tests/drivers/dma/loop_transfer/boards/native_posix.conf @@ -0,0 +1 @@ +CONFIG_DMA_EMUL=y diff --git a/tests/drivers/dma/loop_transfer/boards/native_posix.overlay b/tests/drivers/dma/loop_transfer/boards/native_posix.overlay new file mode 100644 index 000000000000..a93d99236278 --- /dev/null +++ b/tests/drivers/dma/loop_transfer/boards/native_posix.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/loop_transfer/boards/native_posix_64.conf b/tests/drivers/dma/loop_transfer/boards/native_posix_64.conf new file mode 100644 index 000000000000..d76c9f7b918b --- /dev/null +++ b/tests/drivers/dma/loop_transfer/boards/native_posix_64.conf @@ -0,0 +1,2 @@ +CONFIG_DMA_EMUL=y +CONFIG_DMA_64BIT=y diff --git a/tests/drivers/dma/loop_transfer/boards/native_posix_64.overlay b/tests/drivers/dma/loop_transfer/boards/native_posix_64.overlay new file mode 100644 index 000000000000..a93d99236278 --- /dev/null +++ b/tests/drivers/dma/loop_transfer/boards/native_posix_64.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/loop_transfer/testcase.yaml b/tests/drivers/dma/loop_transfer/testcase.yaml index 53d13d8943f4..9bb8ed2f7eaf 100644 --- a/tests/drivers/dma/loop_transfer/testcase.yaml +++ b/tests/drivers/dma/loop_transfer/testcase.yaml @@ -4,4 +4,7 @@ tests: tags: - drivers - dma + integration_platforms: + - native_posix + - native_posix_64 filter: dt_nodelabel_enabled("test_dma0") diff --git a/tests/drivers/dma/scatter_gather/boards/native_posix.conf b/tests/drivers/dma/scatter_gather/boards/native_posix.conf new file mode 100644 index 000000000000..399c0de78db8 --- /dev/null +++ b/tests/drivers/dma/scatter_gather/boards/native_posix.conf @@ -0,0 +1 @@ +CONFIG_DMA_EMUL=y diff --git a/tests/drivers/dma/scatter_gather/boards/native_posix.overlay b/tests/drivers/dma/scatter_gather/boards/native_posix.overlay new file mode 100644 index 000000000000..8afb0753c106 --- /dev/null +++ b/tests/drivers/dma/scatter_gather/boards/native_posix.overlay @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + dma-requests = <4>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/scatter_gather/boards/native_posix_64.conf b/tests/drivers/dma/scatter_gather/boards/native_posix_64.conf new file mode 100644 index 000000000000..d76c9f7b918b --- /dev/null +++ b/tests/drivers/dma/scatter_gather/boards/native_posix_64.conf @@ -0,0 +1,2 @@ +CONFIG_DMA_EMUL=y +CONFIG_DMA_64BIT=y diff --git a/tests/drivers/dma/scatter_gather/boards/native_posix_64.overlay b/tests/drivers/dma/scatter_gather/boards/native_posix_64.overlay new file mode 100644 index 000000000000..8afb0753c106 --- /dev/null +++ b/tests/drivers/dma/scatter_gather/boards/native_posix_64.overlay @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2023 Meta + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&dma { + dma-channels = <2>; + dma-requests = <4>; + status = "okay"; +}; + +test_dma0: &dma { }; diff --git a/tests/drivers/dma/scatter_gather/testcase.yaml b/tests/drivers/dma/scatter_gather/testcase.yaml index 880f09267b75..6b05448a96ca 100644 --- a/tests/drivers/dma/scatter_gather/testcase.yaml +++ b/tests/drivers/dma/scatter_gather/testcase.yaml @@ -9,6 +9,10 @@ tests: - frdm_k64f - mimxrt1060_evk - lpcxpresso55s36 + - native_posix + - native_posix_64 filter: dt_alias_exists("dma0") integration_platforms: - intel_adsp_cavs25 + - native_posix + - native_posix_64