From 91f05c3eb34eba1c0208ebc35c5a8644e4e3e9b6 Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Wed, 15 May 2024 22:32:09 +0000 Subject: [PATCH] samples: video: capture: add support for SMARTDMA Add support for using the SMARTDMA engine on the FRDM-MCXN947 board with the video capture sample. Signed-off-by: Daniel DeGrasse --- .../video/capture/boards/frdm_mcxn947_cpu0.conf | 5 +++++ .../video/capture/boards/frdm_mcxn947_cpu0.overlay | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.conf create mode 100644 samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.overlay diff --git a/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.conf b/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.conf new file mode 100644 index 000000000000000..4a604bc267ef25b --- /dev/null +++ b/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.conf @@ -0,0 +1,5 @@ +CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=40000 +CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=2 +# Workaround for issue where SDMA driver needs to start before camera, so that +# clock output will be generated for camera device +CONFIG_CHECK_INIT_PRIORITIES=n diff --git a/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.overlay b/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.overlay new file mode 100644 index 000000000000000..db18ee736c4ff29 --- /dev/null +++ b/samples/drivers/video/capture/boards/frdm_mcxn947_cpu0.overlay @@ -0,0 +1,11 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/{ + chosen { + zephyr,camera = &video_sdma; + }; +};