<?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: Parallel CSI not working (as expected) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359802#M50532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davide,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to also get video from an FPGA via the parallel CSI0 port on the iMX6 Quad. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you removed all the I2C related code what did you do with the read's?&amp;nbsp;&amp;nbsp; Did you spoof the values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else did you besides remove I2C code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would greatly be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ozzy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 02:03:09 GMT</pubDate>
    <dc:creator>ozzyromero</dc:creator>
    <dc:date>2015-01-21T02:03:09Z</dc:date>
    <item>
      <title>Parallel CSI not working (as expected)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359798#M50528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a driver for a custom FPGA based frame grabber, connected to an i.MX6D (IPU1 CSI0) with an 8 (16) bit parallel interface. The kernel is Linux-3.10.17-1.0.1.&lt;/P&gt;&lt;P&gt;The interface comprises the 16 MSB, HSYNC, VSYNC, PIXCLK. DATA_EN is not connected to the FPGA, but it is accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pin muxing seems ok (checked with a JTAG debugger), the pins are connected (I can see them moving on GPIO5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the driver code, I have modified the OV5640 driver, removing all the i2c stuff, and keeping only the v4l related code.&lt;/P&gt;&lt;P&gt;The kernel module gets loaded, everything works as expected in terms of ioctls, but when I try to display the data coming from the interface I get a "ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0"...&lt;/P&gt;&lt;P&gt;If I turn on the pattern generator, I can see the IDMA channel 0 EOF and NFACK Interrupts moving, I can even see the checkerboard (the colors are not quite right, but I will investigate this problem later). If I turn it off, nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pulled DATA_EN high, and have tried both the "gated" and "non gated" modes, either with a short or long (all frame long) VSYNC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside the setup and hold times, specified in the datasheets, are there any other timing constraints to consider?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;There was a problem with the IDMAC buffers, that where configured for a YUV420 stream, but the FPGA is producing a RGB888 stream. I was not able to correct the problem at camera driver level, so I overrode the pixelformat in mxc_v4l2_s_fmt, and now it seems ok (640x480 - 1920 stride).&lt;/P&gt;&lt;P&gt;But I still get the timeout error, and the EOF/NFACK interrupts keep cleared all the time.&lt;/P&gt;&lt;P&gt;I am reasonably sure the FPGA is producing the correct waveforms (non gated mode), according to the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea and/or suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008000;"&gt;SOLVED!!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IOMUXC_GPR1.MIPI_IPU1_MUX was the problem. It was 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359798#M50528</guid>
      <dc:creator>davider</dc:creator>
      <dc:date>2014-11-21T12:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel CSI not working (as expected)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359799#M50529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an update: is the MCLK (output) really needed? Can the sensor use it's own clock?&lt;/P&gt;&lt;P&gt;Is there an implementation of a Test Pattern Generator driver I can use as a reference to check that my own implementation is ok?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:31:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359799#M50529</guid>
      <dc:creator>davider</dc:creator>
      <dc:date>2014-11-24T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel CSI not working (as expected)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359800#M50530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set SION filed to ZERO in IOMUX of CSI0_DATA_EN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reverse the polarity of CSI0_DATA_EN_POL filed of IPUx_CSI0_SENS_CONF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 05:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359800#M50530</guid>
      <dc:creator>satheshkumarman</dc:creator>
      <dc:date>2014-11-25T05:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel CSI not working (as expected)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359801#M50531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already tried it, and I'm really sorry to say that it does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple more questions.&lt;/P&gt;&lt;P&gt;What does exactly do the Test Gen Mode in TST_CTRL do?&lt;/P&gt;&lt;P&gt;Must the NFACK move on every new frame (VSYNC)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:39:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359801#M50531</guid>
      <dc:creator>davider</dc:creator>
      <dc:date>2014-11-26T12:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel CSI not working (as expected)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359802#M50532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davide,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to also get video from an FPGA via the parallel CSI0 port on the iMX6 Quad. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you removed all the I2C related code what did you do with the read's?&amp;nbsp;&amp;nbsp; Did you spoof the values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else did you besides remove I2C code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would greatly be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ozzy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 02:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Parallel-CSI-not-working-as-expected/m-p/359802#M50532</guid>
      <dc:creator>ozzyromero</dc:creator>
      <dc:date>2015-01-21T02:03:09Z</dc:date>
    </item>
  </channel>
</rss>

