This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm8127 i2c-3 controller timed out issue

Other Parts Discussed in Thread: TVP7002, TVP5147, PCF8575

Hi,

i am facing i2c-3 controller timed out  issue on my dm8127 custom board when i detect rtc-1338 and lm75 sensors

connected on ball no AE21(i2c sda), AA20 (i2c scl) using i2cdetect.

i've checked pin muxing in uboot and kernel. it is properly

can you please tell what is the cause of this behaviour.

regards,

Akash

  • Hi Akash,

    Can you provide your steps to reproduce this issue? Can you also provide console log?

    Regards,
    Pavel
  • When I boot up DM814x TI EVM and test i2cdetect from user space, it works properly:

    root@dm814x-evm:~# i2cdetect -l  

    i2c-1 i2c       OMAP I2C adapter                 I2C adapter

    i2c-3 i2c       OMAP I2C adapter                 I2C adapter

    root@dm814x-evm:~# i2cdetect -r 3

    WARNING! This program can confuse your I2C bus, cause data loss and worse!

    I will probe file /dev/i2c-3 using read byte commands.

    I will probe address range 0x03-0x77.

    Continue? [Y/n]

        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

    00:          -- -- -- -- -- -- -- -- -- -- -- -- --

    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --

    30: -- -- -- -- -- -- -- -- -- -- -- 3b -- -- -- --

    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    50: -- -- -- -- -- -- -- -- -- -- -- -- 5c 5d -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- --

    On the DM814x TI EVM we have attached the below devices to the I2C2 (i2c-3) bus:

    TVP7002 at addr 0x5D

    TVP5147 at addr 0x5C

    SiI1161 at addr 0x3B

    PCF8575 at addr 0x21

    Regards,
    Pavel

  • Hi pavel,

    i found pin muxing was overwritten in omap2_i2c_mux_pins in i2c.c code
    i changed uart muxing to i2c for bus id 3.
    now it is working properly.

    Regards,
    Akash