imx6 i2c in uboot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6 i2c in uboot

跳至解决方案
2,500 次查看
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?

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,228 次查看
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 项奖励
回复
1 回复
1,229 次查看
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 项奖励
回复