Skip to content

Commit 79f5575

Browse files
javlandskartben
authored andcommitted
tests: drivers: build_all: audio: add pcm1681 to tests
Add an spi overlay for the audio build_all tests. Add the pcm1681 to both i2c and spi overlays. Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
1 parent 219770d commit 79f5575

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

tests/drivers/build_all/audio/i2c_devices.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
reg = <0x1>;
3737
reset-gpios = <&test_gpio 0 0>;
3838
};
39+
40+
test_i2c_pcm1681: pcm1681@2 {
41+
compatible = "ti,pcm1681";
42+
status = "okay";
43+
reg = <0x2>;
44+
};
3945
};
4046
};
4147
};
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Basalte bv
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
test {
8+
#address-cells = <1>;
9+
#size-cells = <1>;
10+
11+
test_spi: spi@11112222 {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
compatible = "vnd,spi";
15+
reg = <0x11112222 0x1000>;
16+
status = "okay";
17+
18+
test_spi_pcm1681: pcm1681@0 {
19+
compatible = "ti,pcm1681";
20+
status = "okay";
21+
reg = <0x0>;
22+
spi-max-frequency = <100000>;
23+
};
24+
};
25+
};
26+
};

tests/drivers/build_all/audio/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ tests:
1919
platform_allow:
2020
- native_sim
2121
- native_sim/native/64
22+
23+
drivers.audio.build.spi:
24+
extra_args: DTC_OVERLAY_FILE="spi_devices.overlay"
25+
extra_configs:
26+
- CONFIG_SPI=y
27+
platform_allow:
28+
- native_sim
29+
- native_sim/native/64

0 commit comments

Comments
 (0)