From 9ecc64835fc191f3993c8567b3d5c5e403189699 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Sat, 30 Nov 2024 13:14:22 +0900 Subject: [PATCH] tests: drivers: build_all: sensors: Test handling plural "compatible"s Add device definitions in dt to test drivers that handle multiple "compatible"s by a single driver. Signed-off-by: TOKITA Hiroshi --- tests/drivers/build_all/sensor/i2c.dtsi | 41 +++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/tests/drivers/build_all/sensor/i2c.dtsi b/tests/drivers/build_all/sensor/i2c.dtsi index 0aae04c9e1c..737b980d486 100644 --- a/tests/drivers/build_all/sensor/i2c.dtsi +++ b/tests/drivers/build_all/sensor/i2c.dtsi @@ -1130,11 +1130,11 @@ test_i2c_ilps22qs: ilps22qs@9c { test_i2c_sts4x: sts4x@9d { compatible = "sensirion,sts4x"; - reg = <0x99>; + reg = <0x9d>; repeatability = <2>; }; -test_i2c_scd4x: scd4x@9e { +test_i2c_scd41: scd41@9e { compatible = "sensirion,scd41"; reg = <0x9e>; mode = <0>; @@ -1148,3 +1148,40 @@ test_i2c_npm2100: npm2100@9f { compatible = "nordic,npm2100-vbat"; }; }; + +test_i2c_scd40: scd40@a1 { + compatible = "sensirion,scd40"; + reg = <0xa1>; +}; + +test_i2c_ina236: ina236@a2 { + compatible = "ti,ina236"; + reg = <0xa2>; + current-lsb-microamps = <1000>; + rshunt-micro-ohms = <1000>; + mask = <0>; + alert-limit = <0>; + alert-gpios = <&test_gpio 0 0>; +}; + +test_i2c_as6212: as6212@a3 { + compatible = "ams,as6212"; + reg = <0xa3>; +}; + +test_i2c_p3t1755: p3t1755@a4 { + compatible = "nxp,p3t1755"; + reg = <0xa4>; +}; + +test_i2c_lsm6dso32: lsm6dso32@a5 { + compatible = "st,lsm6dso32"; + reg = <0xa5>; + irq-gpios = <&test_gpio 0 0>; + accel-pm = ; + accel-range = ; + accel-odr = ; + gyro-pm = ; + gyro-range = ; + gyro-odr = ; +};