Skip to content

Commit

Permalink
tests: drivers: build_all: sensor: add TLE9104
Browse files Browse the repository at this point in the history
Add an instance of the output diagnostics sensor for the
power train switch TLE9104 to the build all tests.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
  • Loading branch information
benediktibk committed Mar 20, 2024
1 parent c254e75 commit 98e9bed
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
CONFIG_ADC=y
CONFIG_ADC_ADS114S0X_GPIO=y
CONFIG_ADC_INIT_PRIORITY=81
CONFIG_MFD=y
CONFIG_MFD_INIT_PRIORITY=79
CONFIG_ADC_INIT_PRIORITY=80
CONFIG_GPIO_TLE9104_INIT_PRIORITY=81
CONFIG_GPIO_BD8LB600FS_INIT_PRIORITY=81
2 changes: 2 additions & 0 deletions tests/drivers/build_all/gpio/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ CONFIG_MFD=y
CONFIG_MFD_INIT_PRIORITY=80
CONFIG_GPIO_TLE9104_INIT_PRIORITY=81
CONFIG_GPIO_BD8LB600FS_INIT_PRIORITY=81
CONFIG_GPIO_AXP192_INIT_PRIORITY=81
CONFIG_REGULATOR_FIXED_INIT_PRIORITY=82
3 changes: 2 additions & 1 deletion tests/drivers/build_all/sensor/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
<&test_gpio 0 0>, /* 0x28 */
<&test_gpio 0 0>, /* 0x29 */
<&test_gpio 0 0>, /* 0x2A */
<&test_gpio 0 0>; /* 0x2B */
<&test_gpio 0 0>, /* 0x2B */
<&test_gpio 0 0>; /* 0x2C */

#include "spi.dtsi"
};
Expand Down
1 change: 1 addition & 0 deletions tests/drivers/build_all/sensor/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CONFIG_I2C=y
CONFIG_I3C=y
CONFIG_SERIAL=y
CONFIG_SPI=y
CONFIG_MFD=y
CONFIG_W1=y
CONFIG_SENSOR=y
CONFIG_ICM42605_TRIGGER_NONE=y
13 changes: 13 additions & 0 deletions tests/drivers/build_all/sensor/spi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,16 @@ test_spi_bd8lb600fs: bd8lb600fs@2b {
#sensor-cells = <0>;
};
};

test_spi_tle9104: tle9104@2c {
compatible = "infineon,tle9104";
reg = <0x2c>;
spi-max-frequency = <0>;
status = "okay";

tle9104_diagnostics: tle9104_diagnostics {
compatible = "infineon,tle9104-diagnostics";
status = "okay";
#sensor-cells = <0>;
};
};

0 comments on commit 98e9bed

Please sign in to comment.