ERROR WHILE PROBING I2C BUS

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

ERROR WHILE PROBING I2C BUS

1,038 Views
devika_ramesh
Contributor I

Hi

I am using  a customized 6ULL board. I'm facing error while trying to probe bus 1 in uboot whereas it shows correct output while doing 'i2cdetect' in kernel. Also bus 0 works fine in both uboot and kernel.Below is the error print that's obtained while trying to probe i2c bus 1 in u-boot

=> i2c dev 0
Setting bus to 0
=> i2c probe
Valid chip addresses: <slave address>
=> i2c dev 1
Setting bus to 1
=> i2c probe
Valid chip addresses:wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x0 retry=0
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x0 retry=1
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x0 retry=2
i2c_init_transfer: give up i2c_regs=0x21a4000
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x1 retry=0
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x1 retry=1
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x1 retry=2
i2c_init_transfer: give up i2c_regs=0x21a4000
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x2 retry=0
wait_for_sr_state: failed sr=81 cr=a0 state=2020
i2c_init_transfer: failed for chip 0x2 retry=1
wait_for_sr_state: failed sr=81 cr=a0 state=2020

...

Could you please let me know what would be the reason for this and please do suggest some corrective measure ?        

Tags (1)
0 Kudos
1 Reply

1,003 Views
igorpadykov
NXP Employee
NXP Employee

Hi devika

one can check if i2c clock is enabled, please look at

sect.18.6.25 CCM Clock Gating Register 2 (CCM_CCGR2)

i.MX 6ULL Applications Processor Reference Manual

For changing uboot may be useful Porting Guide included in

Linux 4.14.98_2.3.0 Documentation

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos