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.

DM385 -> "omap_i2c omap_i2c.2: controller timed out" ?

Other Parts Discussed in Thread: DM385

Hi Guys,


+++++++++++Custom DM385 Board + IPNC RDK3.5 + Kernel 2.6.37 ++++++++++++++++++


I have been working on board, i came across one issue where i2c bus is not detecting any slave device on bus and i'm getting i2c bus probe failed.

In uboot:

DM385_IPNC#md 0x48140c18 1  //I2C0_SCL
48140c18: 000e0001    ....

DM385_IPNC#md 0x48140c1c 1 //I2C0_SDA
48140c1c: 000e0001    ....

DM385_IPNC#md 0x48140934 1 //I2C1_SCL
48140934: 000e0001    ....

DM385_IPNC#md 0x48140938 1 //I2C1_SDA
48140938: 000e0001    ....


For I2C0_SCL/SDA i checked pincntl value in datasheet.

default value is 0x000C0000 + with mode 0x01 -> so output should be 0x000C0001 but i'm getting 0x000e0001

Edit 1 -> TI814X_PULL_UP -> it changed c to e as it is setting 17th bit.

i tried to check in kernel pin muxing:

root@DM385_IPNC:~# cat /sys/kernel/debug/omap_mux/i2c0_scl
name: i2c0_scl.i2c0_scl (0x48140c18/0xc18 = 0xe0001), b NA, t NA
mode: TI814X_PIN_INPUT_PULL_UP | TI81XX_MUX_MODE0
signals: i2c0_scl | NA | NA | NA | NA | NA | NA | NA

root@DM385_IPNC:~# cat /sys/kernel/debug/omap_mux/i2c0_sda
name: i2c0_sda.i2c0_sda (0x48140c1c/0xc1c = 0xe0001), b NA, t NA
mode: TI814X_PIN_INPUT_PULL_UP | TI81XX_MUX_MODE0
signals: i2c0_sda | NA | NA | NA | NA | NA | NA | NA

root@DM385_IPNC:~# cat /sys/kernel/debug/omap_mux/i2c1_sda
name: i2c1_sda.hdmi_ddc_sda_mux0 (0x48140938/0x938 = 0xe0002), b NA, t NA
mode: TI814X_PIN_INPUT_PULL_UP | TI81XX_MUX_MODE1
signals: i2c1_sda | hdmi_ddc_sda_mux0 | NA | NA | NA | NA | NA | NA

root@DM385_IPNC:~# cat /sys/kernel/debug/omap_mux/i2c1_scl
name: i2c1_scl.hdmi_ddc_scl_mux0 (0x48140934/0x934 = 0xe0002), b NA, t NA
mode: TI814X_PIN_INPUT_PULL_UP | TI81XX_MUX_MODE1
signals: i2c1_scl | hdmi_ddc_scl_mux0 | NA | NA | NA | NA | NA | NA

Kernel log:

bma250: probe of 1-0019 failed with error 1
omap_i2c omap_i2c.1: controller timed out
bq32k: probe of 1-0068 failed with error -5
i2c /dev entries driver

when i perform i2cdetect -r 1:

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          omap_i2c omap_i2c.1: controller timed out
-- -- -- omap_i2c omap_i2c.1: controller timed out
-- omap_i2c omap_i2c.1: controller timed out
-- -- -- -- -- -- -- -- omap_i2c omap_i2c.1: Arbitration lost
--
10: -- -- omap_i2c omap_i2c.1: controller timed out
-- -- -- -- -- -- UU 19 omap_i2c omap_i2c.1: Arbitration lost
-- -- -- -- omap_i2c omap_i2c.1: controller timed out
-- omap_i2c omap_i2c.1: controller timed out
-- omap_i2c omap_i2c.1: Arbitration lost

Can anybody tell these issues are coming?

thanks & regards,

Ganesh