tests: drivers: build_all: add mcp320x adc driver
Add the MCP320x ADC driver to the build_all drivers build test. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
768482cb6a
commit
f7cfa7c38e
4
tests/drivers/build_all/adc.conf
Normal file
4
tests/drivers/build_all/adc.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
CONFIG_ADC=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_ADC_MCP320X=y
|
||||
CONFIG_TEST_USERSPACE=y
|
|
@ -93,7 +93,9 @@
|
|||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>, /* 0x30 */
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
|
||||
#include "spi.dtsi"
|
||||
|
|
|
@ -490,3 +490,11 @@ test_spi_iis2dh: iis2dh@31 {
|
|||
spi-max-frequency = <0>;
|
||||
drdy-gpios = <&test_gpio 0 0>;
|
||||
};
|
||||
|
||||
test_spi_mcp3204: mcp3204@32 {
|
||||
compatible = "microchip,mcp3204";
|
||||
reg = <0x32>;
|
||||
spi-max-frequency = <0>;
|
||||
label = "MCP3204";
|
||||
#io-channel-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -71,3 +71,8 @@ tests:
|
|||
extra_args: CONF_FILE=eeprom.conf
|
||||
min_ram: 32
|
||||
depends_on: gpio i2c spi
|
||||
drivers.adc.build:
|
||||
build_only: true
|
||||
extra_args: CONF_FILE=adc.conf
|
||||
min_ram: 32
|
||||
depends_on: adc spi
|
||||
|
|
Loading…
Reference in a new issue