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:
parent
5a69cc03cf
commit
ca31dbc0bc
12 changed files with 270 additions and 108 deletions
|
@ -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>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue