I2C Verdin AM62 MCU

Dear

On the data sheet of Verdin AM62 (Page 19) , I2C_3_HDM_SDA and SCL are described internally as MCU_I2C0, I suppose it comes from M4F core, on the linux view does this I2C port is view like a “normal” I2C port ?

Regards

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

The Verdin AM62 module indeed includes several I2C interfaces, including the one labeled as MCU_I2C0, which is part of the microcontroller subsystem. In the Linux environment, you can access this I2C interface as a standard I2C port, provided it is correctly configured in the device tree.

To achieve this, you need to define the I2C bus in the device tree, ensuring that the necessary drivers are enabled in the kernel configuration. Once configured, the I2C bus should appear as a standard I2C device node (e.g., /dev/i2c-X) in Linux, allowing you to interact with it using standard I2C tools and libraries.

If the I2C bus is not visible, it may be necessary to verify the device tree settings and ensure that the I2C controller is not disabled or reserved for other purposes.

I hope this helps you set up the I2C interface on your Verdin AM62 module.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62.

Hello @quatoria

From a quick look into the datasheet of Verdin AM62, my understanding is that this can be used as a normal I2C in linux. These pins (SODIMM 57 and 59) are part of a reserved interface (in this case, HDMI). Therefore on verdin SOMs that support native HDMI, these pins will be routed to the HDMI DDC. Since the AM62 does not provide HDMI, these are free to be used as normal I2C. Also looking into the i2c devices available in linux on a Verdin AM62, we have:

root@verdin-am62-15136077:~# ls -l /dev/verdin-i2c* 
lrwxrwxrwx 1 root root 5 Feb  3 16:29 /dev/verdin-i2c-on-module -> i2c-0
lrwxrwxrwx 1 root root 5 Feb  3 16:29 /dev/verdin-i2c1 -> i2c-1
lrwxrwxrwx 1 root root 5 Feb  3 16:29 /dev/verdin-i2c2 -> i2c-2
lrwxrwxrwx 1 root root 5 Feb  3 16:29 /dev/verdin-i2c3 -> i2c-4
lrwxrwxrwx 1 root root 5 Feb  3 16:29 /dev/verdin-i2c4 -> i2c-3

This means it is available as /dev/verdin-i2c4 (sym linked to i2c-3) in Linux.