Test the BMI088 IMU driver

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

Sorry for the late response, our team will do the investigation and provide suggestions soon. Thanks

Hi,
It looks like the device nodes are absent:

/sys/bus/iio/devices/iio:device0/scan_elements/in_accel_y_en
/sys/bus/iio/devices/iio:device0/scan_elements/in_accel_x_en
/sys/bus/iio/devices/iio:device0/scan_elements/in_timestamp_en
/sys/bus/iio/devices/iio:device0/scan_elements/in_accel_z_en

Please check if you can see the device nodes in your setup.

Hello, thank you very much for your answer. I can see the corresponding node, as follows

➜  ~ ls /sys/bus/iio/devices/iio:device0/scan_elements/             
in_accel_x_en     in_accel_x_type  in_accel_y_index  in_accel_z_en     in_accel_z_type  in_timestamp_index
in_accel_x_index  in_accel_y_en    in_accel_y_type   in_accel_z_index  in_timestamp_en  in_timestamp_type
➜  ~ ls /sys/bus/iio/devices/iio:device1/scan_elements/
in_anglvel_x_en     in_anglvel_x_type  in_anglvel_y_index  in_anglvel_z_en     in_anglvel_z_type  in_timestamp_index
in_anglvel_x_index  in_anglvel_y_en    in_anglvel_y_type   in_anglvel_z_index  in_timestamp_en    in_timestamp_type
➜  ~

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.