ERROR WHILE PROBING I2C BUS

cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR WHILE PROBING I2C BUS

60 Views
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

25 Views
NXP TechSupport
NXP TechSupport

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