Skip to content

Commit 58c07a5

Browse files
Mikkel Jakobsenmbolivar-nordic
authored andcommitted
tests: drivers: build_all: sensor: add icm42670
to ensure driver is built both with and without trigger enabled during CI Signed-off-by: Mikkel Jakobsen <[email protected]>
1 parent 0b0c2e7 commit 58c07a5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

tests/drivers/build_all/sensor/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ CONFIG_HTS221=y
3939
CONFIG_I3G4250D=y
4040
CONFIG_ICM42605=y
4141
CONFIG_ICM42605_TRIGGER_NONE=y
42+
CONFIG_ICM42670=y
4243
CONFIG_IIS2DH=y
4344
CONFIG_IIS2DLPC=y
4445
CONFIG_IIS2ICLX=y

tests/drivers/build_all/sensor/sensors_trigger_own.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
1414
CONFIG_HMC5883L_TRIGGER_OWN_THREAD=y
1515
CONFIG_HTS221_TRIGGER_OWN_THREAD=y
1616
CONFIG_ICM42605_TRIGGER_GLOBAL_THREAD=y
17+
CONFIG_ICM42670_TRIGGER_OWN_THREAD=y
1718
CONFIG_IIS2DH_TRIGGER_OWN_THREAD=y
1819
CONFIG_IIS2DLPC_TRIGGER_OWN_THREAD=y
1920
CONFIG_IIS2ICLX_TRIGGER_OWN_THREAD=y

tests/drivers/build_all/sensor/spi.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,15 @@ test_spi_i3g4250d: i3g4250d@3b {
325325
reg = <0x3b>;
326326
spi-max-frequency = <0>;
327327
};
328+
329+
test_spi_icm42670: icm42670@3c {
330+
compatible = "invensense,icm42670";
331+
label = "ICM42670";
332+
reg = <0x3c>;
333+
spi-max-frequency = <0>;
334+
int-gpios = <&test_gpio 0 0>;
335+
accel-hz = <800>;
336+
accel-fs = <16>;
337+
gyro-hz = <800>;
338+
gyro-fs = <2000>;
339+
};

0 commit comments

Comments
 (0)