From b7badee6aa3d568b83c8083d162e431aaab9d717 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Sat, 28 Sep 2024 15:16:55 +0900 Subject: [PATCH] tests: drivers: build_all: audio: Add config for `st,mpxxdtyy` Add configuration to add `st,mpxxdtyy` to build test. Signed-off-by: TOKITA Hiroshi --- .../build_all/audio/i2s_devices.overlay | 24 +++++++++++++++++++ tests/drivers/build_all/audio/prj.conf | 1 + tests/drivers/build_all/audio/testcase.yaml | 8 +++++++ 3 files changed, 33 insertions(+) create mode 100644 tests/drivers/build_all/audio/i2s_devices.overlay diff --git a/tests/drivers/build_all/audio/i2s_devices.overlay b/tests/drivers/build_all/audio/i2s_devices.overlay new file mode 100644 index 00000000000..7734fdfb4b0 --- /dev/null +++ b/tests/drivers/build_all/audio/i2s_devices.overlay @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024 TOKITA Hiroshi + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + test { + #address-cells = <1>; + #size-cells = <1>; + + test_i2s: i2s@11112222 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "vnd,i2s"; + reg = <0x11112222 0x1000>; + status = "okay"; + + test_i2s_mpxxdtyy: mpxxdtyy@0 { + compatible = "st,mpxxdtyy"; + reg = <0>; + }; + }; + }; +}; diff --git a/tests/drivers/build_all/audio/prj.conf b/tests/drivers/build_all/audio/prj.conf index af78549f14c..79e5fc87159 100644 --- a/tests/drivers/build_all/audio/prj.conf +++ b/tests/drivers/build_all/audio/prj.conf @@ -2,3 +2,4 @@ CONFIG_TEST=y CONFIG_GPIO=y CONFIG_AUDIO=y CONFIG_AUDIO_CODEC=y +CONFIG_AUDIO_DMIC=y diff --git a/tests/drivers/build_all/audio/testcase.yaml b/tests/drivers/build_all/audio/testcase.yaml index 34181596d68..11627f51ed0 100644 --- a/tests/drivers/build_all/audio/testcase.yaml +++ b/tests/drivers/build_all/audio/testcase.yaml @@ -11,3 +11,11 @@ tests: platform_allow: - native_sim - native_sim/native/64 + + drivers.audio.build.i2s: + extra_args: DTC_OVERLAY_FILE="i2s_devices.overlay" + extra_configs: + - CONFIG_I2S=y + platform_allow: + - native_sim + - native_sim/native/64