<?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: MIPI Camera Sony MA130</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673855#M103840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Thank you for the tip, I have found a thread about that : &lt;A _jive_internal="true" href="https://community.nxp.com/thread/356082"&gt;https://community.nxp.com/thread/356082&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Now the register MIPI_CSI_PHY_STATE=0x300 or 0x330, but the ERR1 register is 0x3 now. Did I misconfigured the clock?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Edit :The TEST_CTRL1 register was not correctly set. I have an image now, but it flickers and it's mainly yellow. Any Thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Edit2: Misconfiguration in ipu_capture, I have the imge, but there is a strang behavior: at first start everything is ok, then if a restart the pipeline, I got IPU_INT_STAT_10=0x00000001 and the image is rolling.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;I suspect the IPU_CSI_CLK_MODE_NONGATED_CLK, any thoughts?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Pierre-Olivier&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2017 11:58:47 GMT</pubDate>
    <dc:creator>pierre-olivierh</dc:creator>
    <dc:date>2017-07-19T11:58:47Z</dc:date>
    <item>
      <title>MIPI Camera Sony MA130</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673853#M103838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently trying to connect a MA130 Sony Camera (I suspect it's a imx135 camera module) to an iMX6Q via MIPI.&lt;/P&gt;&lt;P&gt;I based my driver on the ov5640_mipi. The MIPI side seems to works fine but the IPU/CSI don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have some thoughts on my configuration. The camera outputs 1080p30 video, YUV422, 81MHz pixel clock, MIPI on 2 lanes. I'm connected to the Virtual channel 0 (I think, I don't have the confirmation) on&amp;nbsp; IPU1 CSI0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I calculated the MIPI clock (for MIPI_CSI2_PHY_TST_CTRL1), using chapter 3.4 of &lt;A href="http://www.nxp.com/docs/en/application-note/AN5305.pdf"&gt;this document&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;- 1920*1080*30*1cycle/pixel*blanking = 81MHz -&amp;gt; blanking = 1.24 (coherent)&lt;/P&gt;&lt;P&gt;- MIPI data Rate: 81MHz*16bits = 1296Mb/s&lt;/P&gt;&lt;P&gt;- MIPI Clock: 1296/2/2 = 324MHz (like the datasheet)&lt;/P&gt;&lt;P&gt;- MIPI_CSI2_PHY_TST_CTRL1= 324*2=648MHz register = 0x10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start the driver, I got these registers:&lt;/P&gt;&lt;P&gt;MIPI_CSI_PHY_STATE 0x200&lt;/P&gt;&lt;P&gt;MIPI_CSI_ERR1&amp;nbsp; 0x0&lt;/P&gt;&lt;P&gt;MIPI_CSI_ERR2 0x0&lt;/P&gt;&lt;P&gt;Everything seems fine for the MIPI side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the IPU&lt;/P&gt;&lt;P&gt;IPU ID = 0, CSI ID = 0&lt;BR /&gt;IPU_CONF = 0x10000661&lt;/P&gt;&lt;P&gt;-&amp;gt; CSI_SEL to CSI0, CSI0_DATA_SOURCE, CSI0 enabled&lt;BR /&gt;CSI_SENS_CONF = 0x00008A00&amp;nbsp; (// I tested 0x00008A20 with no success : Gated vs bt656)&lt;BR /&gt;CSI_SENS_FRM_SIZE = 0x0437077F //1920*1080&lt;BR /&gt;CSI_ACT_FRM_SIZE = 0x0437077F //1920*1080&lt;BR /&gt;CSI_OUT_FRM_CTRL = 0x00000000&lt;BR /&gt;CSI_TST_CTRL = 0x00000000&lt;BR /&gt;CSI_CCIR_CODE_1 = 0x00040030&lt;BR /&gt;CSI_CCIR_CODE_2 = 0x00000000&lt;BR /&gt;CSI_CCIR_CODE_3 = 0x00FF0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I configured the pixelformat like the OV5640 : V4L2_PIX_FMT_UYVY,&lt;/P&gt;&lt;P&gt;iftype=V4L2_IF_TYPE_BT656&lt;/P&gt;&lt;P&gt;mode=V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start a gstreamer pipeline I still get the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you see any misconfiguration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Pierre-Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673853#M103838</guid>
      <dc:creator>pierre-olivierh</dc:creator>
      <dc:date>2017-07-18T15:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI Camera Sony MA130</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673854#M103839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierre-Olivier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for two lanes correct MIPI_CSI_PHY_STATE is 0x330,&amp;nbsp;&lt;/P&gt;&lt;P&gt;the value is jump between 0x330 and 0x300). May be useful to check&lt;BR /&gt;&lt;A href="https://community.nxp.com/docs/DOC-94312"&gt;Debug steps for customer MIPI sensor.docx&lt;/A&gt;&amp;nbsp;&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, 18 Jul 2017 22:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673854#M103839</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-18T22:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI Camera Sony MA130</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673855#M103840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Thank you for the tip, I have found a thread about that : &lt;A _jive_internal="true" href="https://community.nxp.com/thread/356082"&gt;https://community.nxp.com/thread/356082&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Now the register MIPI_CSI_PHY_STATE=0x300 or 0x330, but the ERR1 register is 0x3 now. Did I misconfigured the clock?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Edit :The TEST_CTRL1 register was not correctly set. I have an image now, but it flickers and it's mainly yellow. Any Thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Edit2: Misconfiguration in ipu_capture, I have the imge, but there is a strang behavior: at first start everything is ok, then if a restart the pipeline, I got IPU_INT_STAT_10=0x00000001 and the image is rolling.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;I suspect the IPU_CSI_CLK_MODE_NONGATED_CLK, any thoughts?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Pierre-Olivier&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:58:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-Camera-Sony-MA130/m-p/673855#M103840</guid>
      <dc:creator>pierre-olivierh</dc:creator>
      <dc:date>2017-07-19T11:58:47Z</dc:date>
    </item>
  </channel>
</rss>

