imx6 i2c in uboot

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

imx6 i2c in uboot

Jump to solution
2,307 Views
chrisroed
Contributor IV

Hello,

I have an imx6 based on the wandboard single core with u-boot 2015.07.  I need enable i2c probes to test my board version and I'm having some software issues.  I modified wandboard.c/h according to the patch posted here -> [U-Boot] [PATCH v3] mx6sabred: Add PFUZE100 PMIC support , changing the specific values to enable i2c0, and ignoring the pfuze specific code.

I can now run I2C commands from u-boot, however I don't see the pins toggling on the board and I'm getting some odd errors. 

=> i2c probe 0x21

Valid chip addresses:wait_for_sr_state: failed sr=81 cr=a0 state=2020

i2c_init_transfer: failed for chip 0x21 retry=0

wait_for_sr_state: failed sr=81 cr=a0 state=2020

i2c_init_transfer: failed for chip 0x21 retry=1

wait_for_sr_state: failed sr=81 cr=a0 state=2020

i2c_init_transfer: failed for chip 0x21 retry=2

i2c_init_transfer: give up i2c_regs=0x21a0000

Any suggestions to fix this?

Labels (2)
Tags (2)
0 Kudos
1 Solution
1,035 Views
chrisroed
Contributor IV

Solved my own problem

I have the Solo processor which corresponds to the imx6dl.  In wandboard.c I changed the i2c_pads_info from MX6Q_PAD_  to  MX6DL_PAD_EIM_D21__I2C1_SCL.  That seems to work so far.

View solution in original post

0 Kudos
1 Reply
1,036 Views
chrisroed
Contributor IV

Solved my own problem

I have the Solo processor which corresponds to the imx6dl.  In wandboard.c I changed the i2c_pads_info from MX6Q_PAD_  to  MX6DL_PAD_EIM_D21__I2C1_SCL.  That seems to work so far.

0 Kudos