zephyr/tests/drivers/sensor/accel/boards/native_posix.overlay
Simon Glass f28a98be8c tests: drivers: sensor: Test both I2C and SPI accelerometer
Now that we have a BMI160 driver and emulator pair that support both
I2C and SPI, add a test that runs over both buses.

Signed-off-by: Simon Glass <sjg@chromium.org>
2020-10-27 16:41:30 +01:00

28 lines
397 B
Plaintext

/* Copyright (c) 2020 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
accel-0 = &bmi_spi;
accel-1 = &bmi_i2c;
};
};
&spi0 {
bmi_spi: bmi@3 {
compatible = "bosch,bmi160";
spi-max-frequency = <50000000>;
reg = <3>;
label = "accel-spi";
};
};
&i2c0 {
bmi_i2c: bmi@68 {
compatible = "bosch,bmi160";
reg = <0x68>;
label = "accel-i2c";
};
};