Skip to content

Commit

Permalink
tests: drivers: build_all: gpio: make ads1145s0x testcase
Browse files Browse the repository at this point in the history
Limit enabling CONFIG_ADC to this gpio build testcase.

Signed-off-by: Nick Ward <[email protected]>
  • Loading branch information
nixward committed Nov 4, 2023
1 parent 0aefdad commit d3b0f0d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 24 deletions.
3 changes: 3 additions & 0 deletions tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_ADC=y
CONFIG_ADC_ADS114S0X_GPIO=y
CONFIG_ADC_INIT_PRIORITY=80
21 changes: 21 additions & 0 deletions tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
&test_spi {
test_spi_ads114s08: ads114s08@0 {
compatible = "ti,ads114s08";
status = "okay";
spi-max-frequency = <10000000>;
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
reset-gpios = <&test_gpio 0 0>;
drdy-gpios = <&test_gpio 0 0>;
start-sync-gpios = <&test_gpio 0 0>;

test_spi_ads114s08_gpio: ads114s0x_gpio {
compatible = "ti,ads114s0x-gpio";
gpio-controller;
ngpios = <4>;
#gpio-cells = <2>;
};
};
};
20 changes: 0 additions & 20 deletions tests/drivers/build_all/gpio/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -239,26 +239,6 @@
ngpios = <8>;
reset-gpios = <&test_gpio 0 0>;
};

test_spi_ads114s08: ads114s08@0 {
compatible = "ti,ads114s08";
status = "okay";
spi-max-frequency = <10000000>;
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
reset-gpios = <&test_gpio 0 0>;
drdy-gpios = <&test_gpio 0 0>;
start-sync-gpios = <&test_gpio 0 0>;

test_spi_ads114s08_gpio: ads114s0x_gpio {
compatible = "ti,ads114s0x-gpio";
gpio-controller;
ngpios = <4>;
#gpio-cells = <2>;
};
};
};
};
};
4 changes: 0 additions & 4 deletions tests/drivers/build_all/gpio/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ CONFIG_TEST_USERSPACE=y
CONFIG_I2C=y
CONFIG_GPIO_PCA95XX_INTERRUPT=y
CONFIG_SPI=y

CONFIG_ADC=y
CONFIG_ADC_ADS114S0X_GPIO=y
CONFIG_ADC_INIT_PRIORITY=80
11 changes: 11 additions & 0 deletions tests/drivers/build_all/gpio/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ tests:
platform_allow: niosv_m niosv_g
depends_on: gpio
extra_args: DTC_OVERLAY_FILE="altera.overlay"

drivers.gpio.build.adc_ads1145s0x_gpio:
min_ram: 32
platform_allow: m5stack_core2 nrf52840dk_nrf52840
depends_on:
- gpio
- adc
- spi
extra_args:
- DTC_OVERLAY_FILE="app.overlay;adc_ads1145s0x_gpio.overlay"
- CONF_FILE="adc_ads1145s0x_gpio.conf"

0 comments on commit d3b0f0d

Please sign in to comment.