drivers: sensor: icm42670: Add I2C bus support

Add bus interface so the driver can support both
SPI and I2C bus.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
This commit is contained in:
Lucas Tamborrino 2024-06-17 08:57:15 -03:00 committed by Anas Nashif
commit ca31dbc0bc
12 changed files with 270 additions and 108 deletions

View file

@ -1072,3 +1072,13 @@ test_i2c_lsm9ds1: lsm9ds1@91 {
compatible = "st,lsm9ds1";
reg = <0x8e>;
};
test_i2c_icm42670: icm42670@92 {
compatible = "invensense,icm42670";
reg = <0x92>;
int-gpios = <&test_gpio 0 0>;
accel-hz = <800>;
accel-fs = <16>;
gyro-hz = <800>;
gyro-fs = <2000>;
};