Dear NVIDIA,hello,I tested the driver of the imu BMI088 on Jetson, ran into some issues and wanted help. Thank you.My device tree is as follows:
bmi088_imu: bmi088@68 {
compatible = "bmi,bmi088";
reg = <0x68>;//陀螺仪地址
accel_i2c_addr = <0x18>;//加速计地址
status = "okay";
// accel_irq_gpio = <&tegra_aon_gpio TEGRA194_AON_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
// gyro_irq_gpio = <&tegra_aon_gpio TEGRA194_AON_GPIO(T, 6) GPIO_ACTIVE_HIGH>;
// accel_irq_gpio = <&tegra_aon_gpio TEGRA194_MAIN_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
// gyro_irq_gpio = <&tegra_aon_gpio TEGRA194_MAIN_GPIO(T, 6) GPIO_ACTIVE_HIGH>;
accel_irq_gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
gyro_irq_gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(T, 6) GPIO_ACTIVE_HIGH>;
accel_matrix = [01 00 00 00 01 00 00 00 01];
gyro_matrix = [01 00 00 00 01 00 00 00 01];
accel_reg_0x53 = <0x0A>;
gyro_reg_0x16 = <0x01>;
gyro_reg_0x18 = <0x01>;
};
Install the driver on the board, dmesg is normal:
sudo dmesg|grep bmi
[ 4.286584] bmi088 tegra_hts_get
[ 790.247736] bmi088 imu init
[ 790.353503] bmi088 1-0068: iio accelerometer done
[ 790.353773] bmi088 1-0068: iio gyroscope done
[ 790.358994] bmi088 1-0068: bmi088 i2c addr:68
[ 790.359010] bmi088 1-0068: done
Test reference link:
https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/SD/Kernel/Bmi088ImuIioDriver.html?highlight=bmi088#testing-bmi088-driver
The test results are as follows, how can I fix it.thank you
➜ iio ./iio_generic_buffer -a -c 10 --device-name accelerometer -g
iio device number being used is 0
trigger-less mode selected
Problem reading scan element information
diag /sys/bus/iio/devices/iio:device0