tests: drivers: build_all: sensor: add TLE9104

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>
This commit is contained in:
Benedikt Schmidt 2024-02-15 11:43:51 +01:00 committed by Carles Cufí
commit abf32ced74
5 changed files with 22 additions and 2 deletions

View file

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

View file

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

View file

@ -128,7 +128,8 @@
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>;
<&test_gpio 0 0>,
<&test_gpio 0 0>; /* 0x2e */
#include "spi.dtsi"
};

View file

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

View file

@ -370,3 +370,16 @@ test_spi_lis2dux12: lis2dux12@2d {
int2-gpios = <&test_gpio 0 0>;
status = "okay";
};
test_spi_tle9104: tle9104@2e {
compatible = "infineon,tle9104";
reg = <0x2e>;
spi-max-frequency = <0>;
status = "okay";
tle9104_diagnostics: tle9104_diagnostics {
compatible = "infineon,tle9104-diagnostics";
status = "okay";
#sensor-cells = <0>;
};
};