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

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