Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 36 additions & 16 deletions boards/nxp/vmu_rt1170/vmu_rt1170_mimxrt1176_cm7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -241,41 +241,61 @@
};
};

#include <zephyr/dt-bindings/sensor/icm42688.h>
#include <zephyr/dt-bindings/sensor/icm4268x.h>

&lpspi1 {
status = "okay";
cs-gpios =<&gpio2 11 GPIO_ACTIVE_LOW>;

icm42688_0: icm42688p0@0 {
compatible = "invensense,icm42688";
icm42686: icm42686p@0 {
compatible = "invensense,icm42686";
reg = <0>;
int-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
int1-mode = <ICM4268X_DT_INT1_MODE_LATCHED>;
int1-pol = <ICM4268X_DT_INT1_POLARITY_ACTIVE_LOW>;
fifo-ths-int-clr = <ICM4268X_DT_FIFO_THS_INT_CLR_DATARD>;
fifo-full-int-clr = <ICM4268X_DT_FIFO_FULL_INT_CLR_STSRD>;
fifo-mode = <ICM4268X_DT_FIFO_MODE_STOP_ON_FULL>;
tmst-delta-en;
tmst-regs-en;
tmst-res = <ICM4268X_DT_TMST_RES_RTC>;
spi-max-frequency = <24000000>;
accel-pwr-mode = <ICM42688_DT_ACCEL_LN>;
accel-odr = <ICM42688_DT_ACCEL_ODR_1000>;
accel-fs = <ICM42688_DT_ACCEL_FS_16>;
gyro-pwr-mode = <ICM42688_DT_GYRO_LN>;
gyro-odr = <ICM42688_DT_GYRO_ODR_1000>;
gyro-fs = <ICM42688_DT_GYRO_FS_2000>;
accel-pwr-mode = <ICM4268X_DT_ACCEL_LN>;
accel-odr = <ICM4268X_DT_ACCEL_ODR_8000>;
accel-fs = <ICM42686_DT_ACCEL_FS_16>;
accel-aaf-bw = <ICM4268X_DT_ACCEL_AAF_585HZ>;
gyro-pwr-mode = <ICM4268X_DT_GYRO_LN>;
gyro-odr = <ICM4268X_DT_GYRO_ODR_8000>;
gyro-fs = <ICM42686_DT_GYRO_FS_2000>;
gyro-aaf-bw = <ICM4268X_DT_GYRO_AAF_585HZ>;
};
};

&lpspi2 {
status = "okay";
cs-gpios =<&gpio3 24 GPIO_ACTIVE_LOW>;

icm42688_1: icm42688p1@0 {
icm42688: icm42688p@0 {
compatible = "invensense,icm42688";
reg = <0>;
int-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
int1-mode = <ICM4268X_DT_INT1_MODE_LATCHED>;
int1-pol = <ICM4268X_DT_INT1_POLARITY_ACTIVE_LOW>;
fifo-ths-int-clr = <ICM4268X_DT_FIFO_THS_INT_CLR_DATARD>;
fifo-full-int-clr = <ICM4268X_DT_FIFO_FULL_INT_CLR_STSRD>;
fifo-mode = <ICM4268X_DT_FIFO_MODE_STOP_ON_FULL>;
tmst-delta-en;
tmst-regs-en;
tmst-res = <ICM4268X_DT_TMST_RES_RTC>;
spi-max-frequency = <24000000>;
accel-pwr-mode = <ICM42688_DT_ACCEL_LN>;
accel-odr = <ICM42688_DT_ACCEL_ODR_1000>;
accel-pwr-mode = <ICM4268X_DT_ACCEL_LN>;
accel-odr = <ICM4268X_DT_ACCEL_ODR_8000>;
accel-fs = <ICM42688_DT_ACCEL_FS_16>;
gyro-pwr-mode = <ICM42688_DT_GYRO_LN>;
gyro-odr = <ICM42688_DT_GYRO_ODR_1000>;
accel-aaf-bw = <ICM4268X_DT_ACCEL_AAF_585HZ>;
gyro-pwr-mode = <ICM4268X_DT_GYRO_LN>;
gyro-odr = <ICM4268X_DT_GYRO_ODR_8000>;
gyro-fs = <ICM42688_DT_GYRO_FS_2000>;
gyro-aaf-bw = <ICM4268X_DT_GYRO_AAF_585HZ>;
};
};

Expand Down
12 changes: 7 additions & 5 deletions boards/tdk/robokit1/robokit1-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
};
};

#include <zephyr/dt-bindings/sensor/icm42688.h>
#include <zephyr/dt-bindings/sensor/icm4268x.h>

&spi0 {
pinctrl-0 = <&spi0_default>;
Expand All @@ -105,12 +105,14 @@
reg = <0>;
int-gpios = <&pioc 5 GPIO_ACTIVE_HIGH>;
spi-max-frequency = <24000000>;
accel-pwr-mode = <ICM42688_DT_ACCEL_LN>;
accel-odr = <ICM42688_DT_ACCEL_ODR_2000>;
accel-pwr-mode = <ICM4268X_DT_ACCEL_LN>;
accel-odr = <ICM4268X_DT_ACCEL_ODR_2000>;
accel-fs = <ICM42688_DT_ACCEL_FS_16>;
gyro-pwr-mode = <ICM42688_DT_GYRO_LN>;
gyro-odr = <ICM42688_DT_GYRO_ODR_2000>;
accel-aaf-bw = <ICM4268X_DT_ACCEL_AAF_585HZ>;
gyro-pwr-mode = <ICM4268X_DT_GYRO_LN>;
gyro-odr = <ICM4268X_DT_GYRO_ODR_2000>;
gyro-fs = <ICM42688_DT_GYRO_FS_2000>;
gyro-aaf-bw = <ICM4268X_DT_GYRO_AAF_585HZ>;
};
spi_adc: adc@1 {
compatible = "ti,ads7052";
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ add_subdirectory_ifdef(CONFIG_HP206C hp206c)
add_subdirectory_ifdef(CONFIG_HS300X hs300x)
add_subdirectory_ifdef(CONFIG_ICM42605 tdk/icm42605)
add_subdirectory_ifdef(CONFIG_ICM42670 tdk/icm42670)
add_subdirectory_ifdef(CONFIG_ICM42688 tdk/icm42688)
add_subdirectory_ifdef(CONFIG_ICM4268X tdk/icm4268x)
add_subdirectory_ifdef(CONFIG_ICP10125 tdk/icp10125)
add_subdirectory_ifdef(CONFIG_IST8310 ist8310)
add_subdirectory_ifdef(CONFIG_ISL29035 isl29035)
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ source "drivers/sensor/hp206c/Kconfig"
source "drivers/sensor/hs300x/Kconfig"
source "drivers/sensor/tdk/icm42605/Kconfig"
source "drivers/sensor/tdk/icm42670/Kconfig"
source "drivers/sensor/tdk/icm42688/Kconfig"
source "drivers/sensor/tdk/icm4268x/Kconfig"
source "drivers/sensor/tdk/icp10125/Kconfig"
source "drivers/sensor/isl29035/Kconfig"
source "drivers/sensor/ist8310/Kconfig"
Expand Down
16 changes: 0 additions & 16 deletions drivers/sensor/tdk/icm42688/CMakeLists.txt

This file was deleted.

81 changes: 0 additions & 81 deletions drivers/sensor/tdk/icm42688/Kconfig

This file was deleted.

Loading