<?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のトピックiMX7D : CSI MIPI configuration</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789792#M122411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;&lt;STRONG&gt;Linux Kernel: v4.9.11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am now successfully capturing PROGRESSIVE video using a PAL camera via an ADV7820M. The image is clear and stable. According to the ADV7820M the PAL output should be at &lt;STRONG&gt;50 fps&lt;/STRONG&gt;...BUT...I am measuring &lt;STRONG&gt;40 fps&lt;/STRONG&gt; ??? [I am using &lt;STRONG&gt;gstreamer-1.0&lt;/STRONG&gt;&amp;nbsp;with its &lt;STRONG&gt;fpsdisplaysink&lt;/STRONG&gt;&amp;nbsp;plug-in to capture the video and measure the received video's fps.]&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This difference of 40 fps instead of 50 fps lends me to think that something may not be setup correctly within CSI-MIPI of the &lt;STRONG&gt;iMX7&lt;/STRONG&gt;??&amp;nbsp;The documentation for the iMX7 CSI-MIPI seems very sparse. This leads to a number of questions:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;MIPI-CSI device tree has an entry for &lt;STRONG&gt;clock-frequency&lt;/STRONG&gt;&amp;nbsp;but where does this value come from and what's its purpose?&lt;/LI&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;MIPI-CSI device tree has an entry for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;csis-wclk.&amp;nbsp;&lt;/STRONG&gt;The documentation states this enables use of the WRAP_CLK&amp;nbsp;but what exactly is it and should I be enabling it?&lt;/LI&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;iMX&lt;STRONG&gt;6&lt;/STRONG&gt;&amp;nbsp;application notes talk of configuring the MIPI-CSI PHY clock rate to be within range of the sensor's differential clock (216 MHz in my case), but I can see nothing that states this for the iMX&lt;STRONG&gt;7&lt;/STRONG&gt;, or any code that attempts to do this. Should the MIPI-CSI PHY clock be related to the sensor clock?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 17:16:15 GMT</pubDate>
    <dc:creator>dh29</dc:creator>
    <dc:date>2018-07-06T17:16:15Z</dc:date>
    <item>
      <title>iMX7D : CSI MIPI configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789792#M122411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;&lt;STRONG&gt;Linux Kernel: v4.9.11&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am now successfully capturing PROGRESSIVE video using a PAL camera via an ADV7820M. The image is clear and stable. According to the ADV7820M the PAL output should be at &lt;STRONG&gt;50 fps&lt;/STRONG&gt;...BUT...I am measuring &lt;STRONG&gt;40 fps&lt;/STRONG&gt; ??? [I am using &lt;STRONG&gt;gstreamer-1.0&lt;/STRONG&gt;&amp;nbsp;with its &lt;STRONG&gt;fpsdisplaysink&lt;/STRONG&gt;&amp;nbsp;plug-in to capture the video and measure the received video's fps.]&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;This difference of 40 fps instead of 50 fps lends me to think that something may not be setup correctly within CSI-MIPI of the &lt;STRONG&gt;iMX7&lt;/STRONG&gt;??&amp;nbsp;The documentation for the iMX7 CSI-MIPI seems very sparse. This leads to a number of questions:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;MIPI-CSI device tree has an entry for &lt;STRONG&gt;clock-frequency&lt;/STRONG&gt;&amp;nbsp;but where does this value come from and what's its purpose?&lt;/LI&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;MIPI-CSI device tree has an entry for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;csis-wclk.&amp;nbsp;&lt;/STRONG&gt;The documentation states this enables use of the WRAP_CLK&amp;nbsp;but what exactly is it and should I be enabling it?&lt;/LI&gt;&lt;LI style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;iMX&lt;STRONG&gt;6&lt;/STRONG&gt;&amp;nbsp;application notes talk of configuring the MIPI-CSI PHY clock rate to be within range of the sensor's differential clock (216 MHz in my case), but I can see nothing that states this for the iMX&lt;STRONG&gt;7&lt;/STRONG&gt;, or any code that attempts to do this. Should the MIPI-CSI PHY clock be related to the sensor clock?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 17:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789792#M122411</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-06T17:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7D : CSI MIPI configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789793#M122412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is your capture IC &lt;STRONG&gt;ADV7820M&lt;/STRONG&gt; or &lt;STRONG&gt;ADV7280M&lt;/STRONG&gt;?&amp;nbsp; let me assume it is ADV7280M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The speed of MIPI CSI-2 is up to 1.5Gbps, so hardware is no problem for capturing video stream of ADV7280M. MIPI CSI-2 Clock on CPU side is input, it means the clock is from ADV7280M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so I feel you don't need to check if settings in BSP is correct, and I suggest you should test it by mxc_v4l2_tvin, then meansure fps, and check if it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;TIC weidong sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 23:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789793#M122412</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2018-07-10T23:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7D : CSI MIPI configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789794#M122413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the ADV&lt;STRONG&gt;7280&lt;/STRONG&gt;M.&amp;nbsp; I have typed it incorrectly in my original post, but I can't seem to correct the typo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MIPI-CSI device tree has an entry for clock-frequency but there's nothing in the i.MX7 hardware manual that explains where this value comes from and what's its purpose? The default &lt;STRONG&gt;mxc_mipi_csi.c&lt;/STRONG&gt; driver sets it to &lt;STRONG&gt;166MHz&lt;/STRONG&gt;. I was concerned that perhaps this value should somehow be related to my differential MIPI clock of &lt;STRONG&gt;416MHz&lt;/STRONG&gt; ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try your suggestion of using &lt;STRONG&gt;mxc_v4l2_tvin&lt;/STRONG&gt;&amp;nbsp;application and post back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 08:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789794#M122413</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-11T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7D : CSI MIPI configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789795#M122414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="201499" data-objecttype="3" href="https://community.nxp.com/people/weidong.sun" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Wigros Sun&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have tried your suggestion of&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;mxc_v4l2_tvin&lt;/STRONG&gt;. Using the recommended YOCTO image and imx-test utility package, I have re-compiled the application to support the video devices for the iMX7. Namely &lt;STRONG&gt;/dev/video1&lt;/STRONG&gt; is my capture device and &lt;STRONG&gt;/dev/video0&lt;/STRONG&gt; is my output device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;However when running the application I get a &lt;STRONG&gt;VIDIO_DBG_G_CHIP_IDENT&lt;/STRONG&gt; failed error. I have already posted a question on this but without any useful answers (see&amp;nbsp;&lt;A href="https://community.nxp.com/thread/478182"&gt;VIDIOC_DBG_G_CHIP_IDENT failed&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I feel that&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;mxc_v4l2_tvin&lt;/STRONG&gt; is not the correct application to use with the iMX&lt;STRONG&gt;7&lt;/STRONG&gt; ??&amp;nbsp; Shouldn't I be using &lt;STRONG&gt;mx6s_v4l2_capture&lt;/STRONG&gt;&amp;nbsp;for the iMX7 as it doesn't have an IPU, and hence I am using the &lt;STRONG&gt;subdev&lt;/STRONG&gt;&amp;nbsp;framework for my video capture (ADV7280M) driver ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have tried&amp;nbsp;&lt;STRONG&gt;mx6s_v4l2_capture&lt;/STRONG&gt;&lt;STRONG&gt; (&lt;/STRONG&gt;again rebuilt to target&amp;nbsp;&lt;STRONG&gt;/dev/video1&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;for&lt;/SPAN&gt;&amp;nbsp;my capture device and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;/dev/video0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;a&lt;/SPAN&gt;s my output device). But I get a &lt;STRONG&gt;Unsupport format in software_csc&lt;/STRONG&gt; error, when outputting to&amp;nbsp;&lt;STRONG&gt;/dev/video0&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Again using&amp;nbsp;&lt;STRONG&gt;mx6s_v4l2_capture i&lt;/STRONG&gt;f I output to a file (in RAM) then the capture works, &lt;STRONG&gt;BUT&lt;/STRONG&gt;&amp;nbsp;the file contents indicate a frame rate of &lt;STRONG&gt;30 fps.&lt;/STRONG&gt; Also it appears to saturate one core in the iMX7 with &lt;STRONG&gt;TOP&lt;/STRONG&gt; showing 50% CPU usage!!&amp;nbsp; This could explain the lower fps value?? I know that the iMX7 doesn't have an IPU, but I'm still surprised by this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:53:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7D-CSI-MIPI-configuration/m-p/789795#M122414</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-11T14:53:44Z</dc:date>
    </item>
  </channel>
</rss>

