From abf32ced7451c1bc8938b631c4fd5fd6bd5a8dcf Mon Sep 17 00:00:00 2001 From: Benedikt Schmidt Date: Thu, 15 Feb 2024 11:43:51 +0100 Subject: [PATCH] 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 --- .../drivers/build_all/gpio/adc_ads1145s0x_gpio.conf | 5 ++++- tests/drivers/build_all/gpio/prj.conf | 2 ++ tests/drivers/build_all/sensor/app.overlay | 3 ++- tests/drivers/build_all/sensor/prj.conf | 1 + tests/drivers/build_all/sensor/spi.dtsi | 13 +++++++++++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf b/tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf index 826107aabc4..623fc79cd08 100644 --- a/tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf +++ b/tests/drivers/build_all/gpio/adc_ads1145s0x_gpio.conf @@ -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 diff --git a/tests/drivers/build_all/gpio/prj.conf b/tests/drivers/build_all/gpio/prj.conf index 10602c9b8f1..cd3185f6845 100644 --- a/tests/drivers/build_all/gpio/prj.conf +++ b/tests/drivers/build_all/gpio/prj.conf @@ -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 diff --git a/tests/drivers/build_all/sensor/app.overlay b/tests/drivers/build_all/sensor/app.overlay index 161949bdd7b..aec784c2688 100644 --- a/tests/drivers/build_all/sensor/app.overlay +++ b/tests/drivers/build_all/sensor/app.overlay @@ -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" }; diff --git a/tests/drivers/build_all/sensor/prj.conf b/tests/drivers/build_all/sensor/prj.conf index 67172951b7d..fe677345578 100644 --- a/tests/drivers/build_all/sensor/prj.conf +++ b/tests/drivers/build_all/sensor/prj.conf @@ -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 diff --git a/tests/drivers/build_all/sensor/spi.dtsi b/tests/drivers/build_all/sensor/spi.dtsi index d781f170066..708b2f6a607 100644 --- a/tests/drivers/build_all/sensor/spi.dtsi +++ b/tests/drivers/build_all/sensor/spi.dtsi @@ -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>; + }; +};