I2C does't working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C does't working

1,769 Views
PramodKumar
Contributor IV

Hii

currently i am working on imx233 board and i use kernel version 2.6.35 by ltib.. i2c-mxs.object is proper created but my problem is that when i am using i2c .it is not working , i used bank 1 ,23 and 24 pin for i2c device but is not responding..

can anyone help me

Thanks&Regard

pramod kumar

Labels (4)
0 Kudos
9 Replies

1,185 Views
BiyongSUN
NXP Employee
NXP Employee

if you are using the uboot you can issue i2c probe command to see if it can find device on the i2c bus.

also you can check the i2c wave on the oscilloscope.

0 Kudos

1,185 Views
PramodKumar
Contributor IV

Hii

Biyong Sun

i am not working u-boot level ..i m working on kernel level in kernel version 2.6.35.3

0 Kudos

1,185 Views
BiyongSUN
NXP Employee
NXP Employee

kernel layer.

in the linux rootfs, you can find i2cdetect

How's the i2c wave on the oscilloscope. Did you measure that?

i2cdetect -l

i2c-0   i2c             21a0000.i2c                             I2C adapter

i2c-1   i2c             21a4000.i2c                             I2C adapter

i2c-2   i2c             21a8000.i2c                             I2C adapter

0 Kudos

1,185 Views
PramodKumar
Contributor IV

Hii

Biyong Sun

i have cheked both of i2c pin using oscilloscope. its proper genreate the singal

and when i run i2cdetect -l command its show this messege

i2cdetect -l

i2c-0   i2c             MXS I2C adapter                         I2C adapter

please tell me what i can do ?

0 Kudos

1,185 Views
BiyongSUN
NXP Employee
NXP Employee

Please make sure the iomux is correct.

then check the i2c wave on the oscilloscope.

0 Kudos

1,185 Views
PramodKumar
Contributor IV

i have checked already i2c wave its proper generate signal ....can you tell me how to change the iomux confugration in ltib kernel varsion 2.6.35

this time i am using scl (1 ,23),sda(1,24) ....and i am currently working on imx233

like this

#define PINID_I2C_SCL   MXS_PIN_ENCODE(1, 23)
#define PINID_I2C_SDA   MXS_PIN_ENCODE(1, 24)

#if defined(CONFIG_I2C_MXS) || \

    defined(CONFIG_I2C_MXS_MODULE)

    {

     .name = "I2C_SCL",

     .id = PINID_I2C_SCL,

     .fun = PIN_FUN2,

     .strength = PAD_4MA,

     .voltage = PAD_3_3V,

     .drive    = 1,

     },

    {

     .name = "I2C_SDA",

     .id = PINID_I2C_SDA,

     .fun = PIN_FUN2,

     .strength = PAD_4MA,

     .voltage = PAD_3_3V,

     .drive    = 1,

     },

0 Kudos

1,185 Views
BiyongSUN
NXP Employee
NXP Employee

If the wave can be captured, you can check each of the i2c start/read/write/stop form to see what's the i2c is doing that time.

0 Kudos

1,185 Views
PramodKumar
Contributor IV

i have already checked  open  read and write by using i2c application  open is proper work but  and read  write failed also  read internal rtc but it is producing same .....

0 Kudos

1,185 Views
BiyongSUN
NXP Employee
NXP Employee

Where is the wave  on the oscilloscope.

You can read the wave to check what's the issue.

0 Kudos