imx6 i2c in uboot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,645件の閲覧回数
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,373件の閲覧回数
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,374件の閲覧回数
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 件の賞賛
返信