2020-09-11 03:49:05 +08:00
|
|
|
/* Copyright (c) 2020 Nordic Semiconductor ASA
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
aliases {
|
2020-10-09 02:57:11 +08:00
|
|
|
accel-0 = &bmi_spi;
|
|
|
|
accel-1 = &bmi_i2c;
|
2020-09-11 03:49:05 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
2020-10-09 02:57:11 +08:00
|
|
|
bmi_spi: bmi@3 {
|
2020-09-11 03:49:05 +08:00
|
|
|
compatible = "bosch,bmi160";
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
reg = <3>;
|
2020-10-09 02:57:11 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
bmi_i2c: bmi@68 {
|
|
|
|
compatible = "bosch,bmi160";
|
|
|
|
reg = <0x68>;
|
2020-09-11 03:49:05 +08:00
|
|
|
};
|
|
|
|
};
|