<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: IMX 7 I2C-2 issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998758#M148118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sagar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After removing MPL3115A2 may be recommended to rebuild all image from scratch.&lt;/P&gt;&lt;P&gt;Also one can check i2c signals with oscilloscope to verify that there are no&lt;/P&gt;&lt;P&gt;connected i2c devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2019 10:31:01 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-12-03T10:31:01Z</dc:date>
    <item>
      <title>IMX 7 I2C-2 issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998757#M148117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using IMX7 Dual SABRE Board. I've built the Yocto project and booted through the SD card. The board has booted fine and everything is working as expected.&amp;nbsp;I want to interface an I2C device with a slave address 0x60. I connected SDA, SCL, GND, and VCC (tried both 3.3V and 5V) to mikroBus pins on the IMX7Dual Evaluation board (SCH-28590 REV D1). But I am unable to communicate with the I2C slave device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon analyzing using i2c-tools I found that there is a device showing up on I2C-2 address 0x60 always even when nothing is connected on the mikroBus pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx7dsabresd:~/i2c# ./i2cdetect -y 2&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;/P&gt;&lt;P&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;30: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I2C slave dev board I am connecting has three I2C slave chips (0x50, 0x60 and 0x64). So after connecting it to the mikroBus port I run the i2cdetect again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@imx7dsabresd:~/i2c# ./i2cdetect -y 2&lt;/P&gt;&lt;P&gt;0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;/P&gt;&lt;P&gt;00: -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;30: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;60: 60 -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see slave 0x50 and 0x64 are showing up now. 0x60 was there before connecting itself. I can talk to the slaves at 0x50 and 0x64 successfully but not able to communicate at 0x60. I tried the slave 0x60 on RPi it worked fine. So the problem is on the IMX7 side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon investigation, I found&amp;nbsp;MPL3115A2 (I2C precision pressure sensor) is at 0x60 on I2C-2 Bus. I tried to remove it and recompile the code as well.&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;#&lt;/SPAN&gt;CONFIG_MPL3115=y&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;#&lt;/SPAN&gt;CONFIG_INPUT_MPL3115=y&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Just to be on the safer side I removed below lines from&amp;nbsp;arch/arm/boot/dts/imx7d-sdb.dts as well.&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class="" lang="mosel"&gt;-&lt;SPAN class="" lang="mosel"&gt; &lt;SPAN class=""&gt;mpl3115&lt;/SPAN&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;60&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;-&lt;SPAN class="" lang="mosel"&gt;  &lt;SPAN class=""&gt;compatible&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;"fsl,mpl3115"&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;-&lt;SPAN class="" lang="mosel"&gt;  &lt;SPAN class=""&gt;reg&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;0x70&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;//&lt;/SPAN&gt;&lt;SPAN class=""&gt;0x60&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;used&lt;/SPAN&gt; &lt;SPAN class=""&gt;by&lt;/SPAN&gt; &lt;SPAN class=""&gt;microchip&lt;/SPAN&gt; &lt;SPAN class=""&gt;ECC608&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;/SPAN&gt;-&lt;SPAN class="" lang="mosel"&gt; &lt;SPAN class=""&gt;};

&lt;/SPAN&gt;&lt;/SPAN&gt;Even after recompiling the linux kernel and dts files, I am seeing the i2c device emulated 
at 0x60 on I2C-2 Bus. 

Can somebody please help me resolve the issue?
Are there any I2C device internally connected on the IMX7 Dual Sabre board?

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 06:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998757#M148117</guid>
      <dc:creator>sagar_sakre</dc:creator>
      <dc:date>2019-12-03T06:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 7 I2C-2 issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998758#M148118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sagar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After removing MPL3115A2 may be recommended to rebuild all image from scratch.&lt;/P&gt;&lt;P&gt;Also one can check i2c signals with oscilloscope to verify that there are no&lt;/P&gt;&lt;P&gt;connected i2c devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 10:31:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998758#M148118</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-03T10:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX 7 I2C-2 issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998759#M148119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, Igor. I found the problem. The sensor&amp;nbsp;mpl3115 was connected on the I2C-2 Bus. That's the reason it was responding to i2cdetect even when the driver was actually removed. I could have removed the sensor from the board but instead, I decided to use I2C-3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 09:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX-7-I2C-2-issue/m-p/998759#M148119</guid>
      <dc:creator>sagar_sakre</dc:creator>
      <dc:date>2019-12-10T09:40:49Z</dc:date>
    </item>
  </channel>
</rss>

