tests: build_all: dac: Add a test to build each DAC driver
Add a tests that builds each DAC driver just once. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
903198dcdc
commit
a6c7569733
4 changed files with 65 additions and 7 deletions
|
@ -24,6 +24,37 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
test_i2c: i2c@11112222 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "vnd,i2c";
|
||||
reg = <0x11112222 0x1000>;
|
||||
label = "TEST_I2C_CTLR";
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
test_i2c_dac43608: dac43608@1 {
|
||||
compatible = "ti,dac43608";
|
||||
reg = <0x1>;
|
||||
label = "DAC43608";
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
|
||||
test_i2c_dac53608: dac53608@2 {
|
||||
compatible = "ti,dac53608";
|
||||
reg = <0x2>;
|
||||
label = "DAC53608";
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
|
||||
test_i2c_mcp4725: mcp4725@60 {
|
||||
compatible = "microchip,mcp4725";
|
||||
reg = <0x60>;
|
||||
label = "MCP4725";
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
9
tests/drivers/build_all/dac/boards/atsamd21_xpro.overlay
Normal file
9
tests/drivers/build_all/dac/boards/atsamd21_xpro.overlay
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&dac0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -1,5 +1,3 @@
|
|||
CONFIG_TEST=y
|
||||
CONFIG_TEST_USERSPACE=y
|
||||
CONFIG_DAC=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_DAC_DACX0508=y
|
||||
|
|
|
@ -1,8 +1,28 @@
|
|||
common:
|
||||
build_only: true
|
||||
tags: drivers
|
||||
tags: drivers dac
|
||||
tests:
|
||||
drivers.dac.build:
|
||||
min_ram: 32
|
||||
depends_on: dac spi
|
||||
platform_exclude: serpente
|
||||
drivers.dac.spi.build:
|
||||
platform_allow: native_posix
|
||||
tags: dac_dacx0508
|
||||
extra_args: "CONFIG_SPI=y CONFIG_DAC_DACX0508=y"
|
||||
drivers.dac.i2c.build:
|
||||
platform_allow: native_posix
|
||||
tags: dac_dacx3608 dac_mcp4725
|
||||
extra_args: "CONFIG_I2C=y CONFIG_DAC_DACX3608=y CONFIG_DAC_MCP4725=y"
|
||||
drivers.dac.mcux.build:
|
||||
platform_allow: frdm_k22f
|
||||
tags: dac_mcux
|
||||
extra_args: "CONFIG_DAC_MCUX_DAC=y"
|
||||
drivers.dac.mcux32.build:
|
||||
platform_allow: twr_ke18f
|
||||
tags: dac_mcux32
|
||||
extra_args: "CONFIG_DAC_MCUX_DAC32=y"
|
||||
drivers.dac.sam0.build:
|
||||
platform_allow: atsamd21_xpro
|
||||
tags: dac_sam0
|
||||
extra_args: "CONFIG_DAC_SAM0=y"
|
||||
drivers.dac.stm32.build:
|
||||
platform_allow: nucleo_f091rc
|
||||
tags: dac_stm32
|
||||
extra_args: "CONFIG_DAC_STM32=y"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue