<?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>topic Re: Enable 4 Lane MIPI Camera fail in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829661#M127472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jimmy Chen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The issue should be related to the MIPI Clock setting, customer's log "mipi csi2 can not reveive data correctly!", means data not correct, that is data has been received, but not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So my advice is try to modify the clock root of MIPI CSI2 module.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; On the link, &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="307065" data-objecttype="1" href="https://community.nxp.com/thread/307065#328301"&gt;https://community.nxp.com/thread/307065#328301&lt;/A&gt;&lt;SPAN&gt; , you can see &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="201454" data-username="GaoJianzhong" href="https://community.nxp.com/people/GaoJianzhong"&gt;Gao Jianzhong&lt;/A&gt;&lt;/SPAN&gt;'s experience :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74207i305F506D0F847F10/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So suggest you'd better try to modify MIPI CSI2's clock ROOT.&amp;nbsp; you can find source code of&amp;nbsp; i.MX6Q's clock tree at path "arch/arm/machimx/" or "drivers/clk/..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;NXP TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 03:15:52 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2018-10-09T03:15:52Z</dc:date>
    <item>
      <title>Enable 4 Lane MIPI Camera fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829659#M127470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;In SabreSD board, ov5640_mipi have 2 lane and connected to MIPI CSI port.&lt;/P&gt;&lt;P&gt;In Customer board and test a custom mipi camera with two modes:&lt;/P&gt;&lt;P&gt;1. 1280x720@30fps 2lanes&lt;/P&gt;&lt;P&gt;2. 1920x1080@30fps 4lanes&lt;/P&gt;&lt;P&gt;Customer setting MIPI DPHY clock to match camera sensor clock.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Customer set lane=4 can get below log:&lt;/P&gt;&lt;P&gt;mipi csi2 can not reveive data correctly!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;According the AN5305 doc, setting the MIPI DPHY clock (CSI2_PHY_TST_CTRL1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;ex: &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="307065" data-objecttype="1" href="https://community.nxp.com/thread/307065#328301"&gt;https://community.nxp.com/thread/307065#328301&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- mipi_csi2_write(info, 0x00000014, CSI2_PHY_TST_CTRL1);&lt;BR /&gt;+ mipi_csi2_write(info, 0x00000008, CSI2_PHY_TST_CTRL1);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dtsi:&lt;/P&gt;&lt;P&gt;&amp;amp;mipi_csi {&lt;BR /&gt; status = "okay";&lt;BR /&gt; ipu_id = &amp;lt;0&amp;gt;;&lt;BR /&gt; csi_id = &amp;lt;1&amp;gt;;&lt;BR /&gt; v_channel = &amp;lt;0&amp;gt;;&lt;BR /&gt; lanes = &amp;lt;2&amp;gt;; -&amp;gt; change to 4&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas about this? Thank you very Much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 07:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829659#M127470</guid>
      <dc:creator>weikeng-jimmy</dc:creator>
      <dc:date>2018-10-05T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enable 4 Lane MIPI Camera fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829660#M127471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir:&lt;/P&gt;&lt;P&gt;I try to porting the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;tc358743 module&lt;/SPAN&gt;&amp;nbsp;(HDMI to MIPI)&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;i.MX6Q&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; with Android&amp;nbsp;6.0.1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit;"&gt;In current, The mode&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;1280x720@60fps 2lanes are ready,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;but fail to enable&amp;nbsp;&lt;SPAN&gt;1920x1080@60fps 4lanes mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;&amp;nbsp;I set the&amp;nbsp;lanes = &amp;lt;4&amp;gt; and the&amp;nbsp;CSI2_PHY_TST_CTRL1 =0x30 but still get error log:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;mipi csi2 can not reveive data correctly!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;The registers status are below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;MIPI_CSI_PHY_STATE : 0x300 or 0x330&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;MIPI_CSI_ERR1 :&amp;nbsp;10000010&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;SPAN&gt;&lt;BR /&gt;Do you have any ideas about this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 06:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829660#M127471</guid>
      <dc:creator>yuming_lin</dc:creator>
      <dc:date>2018-10-08T06:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enable 4 Lane MIPI Camera fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829661#M127472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jimmy Chen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The issue should be related to the MIPI Clock setting, customer's log "mipi csi2 can not reveive data correctly!", means data not correct, that is data has been received, but not correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So my advice is try to modify the clock root of MIPI CSI2 module.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; On the link, &lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="307065" data-objecttype="1" href="https://community.nxp.com/thread/307065#328301"&gt;https://community.nxp.com/thread/307065#328301&lt;/A&gt;&lt;SPAN&gt; , you can see &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="201454" data-username="GaoJianzhong" href="https://community.nxp.com/people/GaoJianzhong"&gt;Gao Jianzhong&lt;/A&gt;&lt;/SPAN&gt;'s experience :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74207i305F506D0F847F10/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So suggest you'd better try to modify MIPI CSI2's clock ROOT.&amp;nbsp; you can find source code of&amp;nbsp; i.MX6Q's clock tree at path "arch/arm/machimx/" or "drivers/clk/..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;NXP TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 03:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829661#M127472</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-10-09T03:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enable 4 Lane MIPI Camera fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829662#M127473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Hi Wigros Sun,&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;We modify axi_clk rate from 264M to 528M as below setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;imx_clk_set_rate(clk[IMX6QDL_CLK_AXI], 528000000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;It's can read AXI_PODF field set to divide by 1 (original setting is 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;root@dmsst17_6dq:/data # ./memtool -32 0x20C4014 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;0x020C4014:&amp;nbsp; 000&lt;/SPAN&gt;&lt;STRONG style="color: red;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="color: #1f497d;"&gt;8D00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But the mipi camera still not worked and get error log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 06:09:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enable-4-Lane-MIPI-Camera-fail/m-p/829662#M127473</guid>
      <dc:creator>weikeng-jimmy</dc:creator>
      <dc:date>2018-10-09T06:09:56Z</dc:date>
    </item>
  </channel>
</rss>

