IMX8MP: I2C clock strange behavior

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

IMX8MP: I2C clock strange behavior

704 Views
Chantale
Contributor I

I'm having a strange issue on IMX8MP with the I2C bus. 

  • I2C used is I2C5 (muxed out from HDMI)
  • The bus uses a TXS0102 1.8 to 3.3 shifter 
  • 10k pullups on the 3.3 side (+ internal 10k pullups on both that are bypssed by one-shot)
  • Linux FSLC kernel
  • 100 kHz clock (although the scope would lead me to believe it's 200 kHz?)

I've been having random bus glitches particularly with multple devices connected so I isolated the situation to a single slave connected with a short ~5 cm cable. The slave reacts correctly to enumeration, but after the 9th clock cycle the clock goes low and stays low for a while (I've seen values from less than 50 µs to 600+ µs). There's also a repeatable glitch on SDA during the low phase of the 8th clock cycle which may or may not be related to anything. Scope session probed at the 3.3v side:

Chantale_0-1777738826958.png

After a while SDA is pulled low again (by who?), SCL is released high and eventually SDA is relesed too. Checked this with:

  • Two different slaves
  • Addressing a non-existing slave
  • No slaves bus (just an empty connector)

I'll study it further, but if anyone knows what's up with this out of their head, would be greatly appreciated.

0 Kudos
Reply
2 Replies

594 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Chantale 

I hope you are doing very well.

 

Could you please share your device tree?

Also, if possible, the schematic related to the I2C5.

 

Best regards,

Salas.

0 Kudos
Reply

627 Views
Chantale
Contributor I

FET-shifted I²C behaves similarly too (CSI bus):

Chantale_0-1777826241253.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2359824%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MP%3A%20I2C%20clock%20strange%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359824%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20having%20a%20strange%20issue%20on%20IMX8MP%20with%20the%20I2C%20bus.%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EI2C%20used%20is%20I2C5%20(muxed%20out%20from%20HDMI)%3C%2FLI%3E%3CLI%3EThe%20bus%20uses%20a%20TXS0102%201.8%20to%203.3%20shifter%26nbsp%3B%3C%2FLI%3E%3CLI%3E10k%20pullups%20on%20the%203.3%20side%20(%2B%20internal%2010k%20pullups%20on%20both%20that%20are%20bypssed%20by%20one-shot)%3C%2FLI%3E%3CLI%3ELinux%20FSLC%20kernel%3C%2FLI%3E%3CLI%3E100%20kHz%20clock%20(although%20the%20scope%20would%20lead%20me%20to%20believe%20it's%20200%20kHz%3F)%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI've%20been%20having%20random%20bus%20glitches%20particularly%20with%20multple%20devices%20connected%20so%20I%20isolated%20the%20situation%20to%20a%20single%20slave%20connected%20with%20a%20short%20~5%20cm%20cable.%20The%20slave%20reacts%20correctly%20to%20enumeration%2C%20but%20after%20the%209th%20clock%20cycle%20the%20clock%20goes%20low%20and%20stays%20low%20for%20a%20while%20(I've%20seen%20values%20from%20less%20than%2050%20%C2%B5s%20to%20600%2B%20%C2%B5s).%20There's%20also%20a%20repeatable%20glitch%20on%20SDA%20during%20the%20low%20phase%20of%20the%208th%20clock%20cycle%20which%20may%20or%20may%20not%20be%20related%20to%20anything.%20Scope%20session%20probed%20at%20the%203.3v%20side%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chantale_0-1777738826958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chantale_0-1777738826958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chantale_0-1777738826958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chantale_0-1777738826958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384228iB5D3740AA79500D8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chantale_0-1777738826958.png%22%20alt%3D%22Chantale_0-1777738826958.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAfter%20a%20while%20SDA%20is%20pulled%20low%20again%20(by%20who%3F)%2C%20SCL%20is%20released%20high%20and%20eventually%20SDA%20is%20relesed%20too.%20Checked%20this%20with%3A%3C%2FP%3E%3CUL%3E%3CLI%3ETwo%20different%20slaves%3C%2FLI%3E%3CLI%3EAddressing%20a%20non-existing%20slave%3C%2FLI%3E%3CLI%3ENo%20slaves%20bus%20(just%20an%20empty%20connector)%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI'll%20study%20it%20further%2C%20but%20if%20anyone%20knows%20what's%20up%20with%20this%20out%20of%20their%20head%2C%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2359878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%3A%20I2C%20clock%20strange%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFET-shifted%20I%C2%B2C%20behaves%20similarly%20too%20(CSI%20bus)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chantale_0-1777826241253.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chantale_0-1777826241253.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chantale_0-1777826241253.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384231i642A03FC29C22645%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chantale_0-1777826241253.png%22%20alt%3D%22Chantale_0-1777826241253.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360181%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%3A%20I2C%20clock%20strange%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360181%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259683%22%20target%3D%22_blank%22%3E%40Chantale%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20you%20are%20doing%20very%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20please%20share%20your%20device%20tree%3F%3C%2FP%3E%0A%3CP%3EAlso%2C%20if%20possible%2C%20the%20schematic%20related%20to%20the%20I2C5.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E