Iio spi sensor icm20689 not creating device file

on a custom yocto image built for Xavier NX, despite trying all I could think of and checking and re-checking that everything is in place, the 6050 driver simply will not load and/or create the /sys/bus/iio/device entry

device tree contains the right entry, kernel module exists…

Am really looking for constructive suggestions. have scouted the web and could only find kernel config entries suggestions but looking closer these apply to FPGAs which is not helping.

Thanks in advance for your help

Hi Patrick,

I took the liberty of moving your post to the appropriate Jetson forums for better exposure.

Thanks!

Thank you ;-)

Reference to below document to add necessary code to device tree.

…/kernel/kernel-5.10/Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt

Found out that my predecessor on the project used a kernel that knew nothing about that particular chip so I have to back port support for that chip in the kernel

That should sort that out. :-)

Making progress, backport succesful and driver now loading .

Sending 0x98 to the chip and receiving 0x0 which probably means miscommunication on SPI bus

Could be the clk used in device tree

Any suggestion once more welcome…

You may need configure the SPI pins by jetson-io to enable SPI.

Check this.

https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/ConfiguringTheJetsonExpansionHeaders.html?highlight=jetson%20io

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