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:
Henrik Brix Andersen 2020-08-06 15:35:51 +02:00 committed by Maureen Helm
parent 768482cb6a
commit f7cfa7c38e
4 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,4 @@
CONFIG_ADC=y
CONFIG_SPI=y
CONFIG_ADC_MCP320X=y
CONFIG_TEST_USERSPACE=y

View file

@ -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"

View file

@ -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>;
};

View file

@ -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