BBAI-64 I2C-1 and I2C-5 not working

Hello BB community!

I have two imx293 cameras connected to CSI port 0 and 1 on my BBAI-64. From the schematic, I see that on this ports, we have I2C5 and I2C1 of the processor on those ports. The problem is that when I try using i2ctools on those buses, I am not able to comunicate with any slave on that bus and when I try i2cdetect, I do see on the serial debuger that the controller timed out: Please see the and example of the log here:
– [ 132.214088] omap_i2c 40b10000.i2c: controller timed out
– [ 133.238129] omap_i2c 40b10000.i2c: controller timed out
– [ 134.294092] omap_i2c 40b10000.i2c: controller timed out
– [ 135.350094] omap_i2c 40b10000.i2c: controller timed out

I am wondering if this two buses are somehow disabled at boot. I am not doing any overlay at all. How can I enable this communication?

Thanks!!

Hi @LuisRivera sorry, been working on these…

These 3 i2c bus pairs are now active:

https://elinux.org/Beagleboard:BeagleBone_cape_interface_spec#I2C

Since there are 10 i2c bu’s on this chip, we have a helper…

debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ dmesg | grep i2c
[    1.491519] i2c /dev entries driver
[    1.730529] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
[    1.736701] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
[    1.777961] omap_i2c 42120000.i2c: bus 2 rev0.12 at 400 kHz
[    1.784228] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
[    1.791251] omap_i2c 2010000.i2c: bus 4 rev0.12 at 400 kHz
[    1.797579] omap_i2c 2020000.i2c: bus 5 rev0.12 at 100 kHz
[    1.803734] omap_i2c 2030000.i2c: bus 6 rev0.12 at 400 kHz
[    1.809993] omap_i2c 2040000.i2c: bus 7 rev0.12 at 100 kHz
[    1.816632] omap_i2c 2050000.i2c: bus 8 rev0.12 at 400 kHz
[    1.822962] omap_i2c 2060000.i2c: bus 9 rev0.12 at 100 kHz
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ ls -l /dev/bone/i2c/
total 0
lrwxrwxrwx 1 root root 11 Mar 20 19:55 1 -> ../../i2c-9
lrwxrwxrwx 1 root root 11 Mar 20 19:55 2 -> ../../i2c-5
lrwxrwxrwx 1 root root 11 Mar 20 19:55 3 -> ../../i2c-7
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ sudo i2cdetect -y -r 9
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ sudo i2cdetect -y -r 7
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

These will be part of 5.10.120-ti-arm64-r55 later tongith…

But to use today, just:

debian@BeagleBone:~$ cd /opt/source/dtb-5.10-ti-arm64/
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ git pull
Already up to date.
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ make
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ sudo make install

Then add:

fdtoverlays /overlays/BONE-I2C1.dtbo /overlays/BONE-I2C2.dtbo /overlays/BONE-I2C3.dtbo

or which bus you want to /boot/firmware/extlinux/extlinux.conf

and reboot…

debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ sudo reboot

Regards,

2 Likes

Luis, do you have these cameras working on the Ai-64? If so can you tell me more about them, I can’t seem to find anything about the IMX293 but would like to get a IMX219 or similar working.

Hello, I do not have this working yet. Still figuring out. I will let you know if I make something work