<?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: iMX7 CSI MIPI : BT.656</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840007#M128861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got this information from expert team for imx6q, but you can find the register settings according imx7 RM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the adv7280 should be enabled after mipi_csi2_reset().&lt;/P&gt;&lt;P&gt;2. For MIPI CSI input, the clock mode in IPU_CSI_SENS_CONF must be gated clock mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;u.bt656.clock_curr = 1;&lt;/P&gt;&lt;P&gt;3. For interlaced input, IDMAC 0 should be set to interlaced mode: "params.csi_mem.interlaced = true;"&lt;/P&gt;&lt;P&gt;case IPU_CSI_CLK_MODE_GATED_CLK: in file drivers\media\video\mxc\capture\ipu_csi_enc.c, function csi_enc_setup().&lt;/P&gt;&lt;P&gt;4. For device type:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adv7280_data.sen.pix.priv = 1;&amp;nbsp; /* 1 is used to indicate TV in */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 06:21:13 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2018-07-24T06:21:13Z</dc:date>
    <item>
      <title>iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840005#M128859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; text-decoration: underline;"&gt;&lt;STRONG&gt;iMX7 : ADV7280M : SUBDEV framework (mx6s_capture.c)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In my on-going battle to get an AD7280M (csi-mipi) working on an i.MX7 I can now capture an image from a PAL camera feed. Stable picture, correct colors, picture is clear....BUT.... I have 2 copies of the image, one on top of the other.&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 am guessing that this is due to the ADV7280M sending INTERLACED picture, and I am not set-up for this.&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 patching parts of &lt;EM&gt;&lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to enable CCIR656 mode, enable Interlaced mode and enable de-interlace output, but when I try this everything stops - I get no ouput, and no&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;mx6s_csi_irq_handler&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; interrupts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Various parts of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;mx6s_capture.c&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;don't look correct for the IMX7. For instance it tries to set &lt;STRONG&gt;bit1&amp;nbsp;&lt;/STRONG&gt;os CSI control reg 18 (which it thinks is TVDECODER_IN_EN), but according to the iMX7 h/w manual this bit is RESERVED and should NOT be set!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anybody got any experience in getting the CCIR656 mode (BT.656) / Interlaced input working with the &lt;STRONG&gt;iMX7&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;[Please note the &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;iMX7&lt;/STRONG&gt;&lt;/SPAN&gt;. For other CSI MIPI posts, on the (very) rare occasions I've had a reply from NXP-support-staff, they have quoted advice only relevant to the iMX6 with an IPU which uses a completely different driver framework].&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840005#M128859</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-02T14:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840006#M128860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that when using the MIPI, the MIPI CSI-2 sorts out the EAV/SAV coding. See Analogue Devices post&amp;nbsp;&lt;A class="link-titled" href="https://ez.analog.com/thread/50046" title="https://ez.analog.com/thread/50046"&gt;Cannot capture from ADV7281-M with i.MX6Q | EngineerZone&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The ADV7281-M outputs MIPI CSI-2 with Frame Start/ Frame End packets and Line Start/End packets. This takes the place of the EAV/SAV codes that were used in the BT656 specification.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This implies that I should &lt;STRONG&gt;not&lt;/STRONG&gt; enable CCIR mode within the iMX7 as this will enable the CSI to look for the EAV/SAV codes, which won't be present. I think this explains why I can't capture anything when CCIR was enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think I can safely ignore the CCIR feature and proceed with trying to de-interlace my image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody confirm my understanding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 09:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840006#M128860</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-04T09:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840007#M128861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got this information from expert team for imx6q, but you can find the register settings according imx7 RM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the adv7280 should be enabled after mipi_csi2_reset().&lt;/P&gt;&lt;P&gt;2. For MIPI CSI input, the clock mode in IPU_CSI_SENS_CONF must be gated clock mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;u.bt656.clock_curr = 1;&lt;/P&gt;&lt;P&gt;3. For interlaced input, IDMAC 0 should be set to interlaced mode: "params.csi_mem.interlaced = true;"&lt;/P&gt;&lt;P&gt;case IPU_CSI_CLK_MODE_GATED_CLK: in file drivers\media\video\mxc\capture\ipu_csi_enc.c, function csi_enc_setup().&lt;/P&gt;&lt;P&gt;4. For device type:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adv7280_data.sen.pix.priv = 1;&amp;nbsp; /* 1 is used to indicate TV in */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 06:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840007#M128861</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2018-07-24T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840008#M128862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joan Xie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The iMX.&lt;STRONG&gt;7&lt;/STRONG&gt;&amp;nbsp;does &lt;STRONG&gt;not&lt;/STRONG&gt; have an IPU and hence does &lt;STRONG&gt;not&lt;/STRONG&gt;&amp;nbsp;use the &lt;STRONG&gt;capture&lt;/STRONG&gt;&amp;nbsp;framework driver as referenced by your reply. The recommended driver framework for the iMX.&lt;STRONG&gt;7&lt;/STRONG&gt; (as per NXP documentation) is to use the &lt;STRONG&gt;subdev&lt;/STRONG&gt;&amp;nbsp;driver framework.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP seem to have real difficulty in understanding the differences between the i.MX6 family and the i.MX7, and the implications to the Linux drivers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 06:39:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840008#M128862</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-24T06:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840009#M128863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since my original post I can now successfully capture PAL PROGRESSIVE and PAL INTERLACED using the ADV7280M and i.MX&lt;STRONG&gt;7.&amp;nbsp;&lt;/STRONG&gt;It seems that I do &lt;STRONG&gt;not&lt;/STRONG&gt; need to configure anything regarding BT.656 as the MIPI CSI2 (PHY) sorts out the SAV/EAV timing before passing to the MIPI CSI block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am however struggling to get anything stable with an &lt;STRONG&gt;NTSC&lt;/STRONG&gt; camera feed. See my post&amp;nbsp;&lt;A href="https://community.nxp.com/thread/480516"&gt;https://community.nxp.com/thread/480516&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840009#M128863</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-24T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7 CSI MIPI : BT.656</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840010#M128864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently experimenting to capture interlaced video with ADV7281 decoder and iMX8Mini using the same capture driver as mentioned in this post &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;EM&gt;&lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I experienced the same issue described in this post, where PAL interlaced video stream can only be captured successfully when CSI module is not configured for CCIR656 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm that the source cause of this behavior comes from no compatibility between the 2 following statements:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ADV7281 outputs MIPI CSI-2 with Frame Start/ Frame End packets and Line Start/End packets instead of EAV/SAV codes&lt;/LI&gt;&lt;LI&gt;iMX8Mini CSI interface is expecting EAV/SAV codes when CSI is configured for CCIR656 mode&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the source cause, a workaround should be implemented in appropriate driver (ADV7180 or CSI) and should make sure to respect the followings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;user applications should get from V4L the information for interlaced mode&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Céline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7-CSI-MIPI-BT-656/m-p/840010#M128864</guid>
      <dc:creator>celinelaurencin</dc:creator>
      <dc:date>2019-07-10T10:32:31Z</dc:date>
    </item>
  </channel>
</rss>

