<?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: IMX8MQ mipi-csi2 capture timeout in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1274024#M173770</link>
    <description>&lt;P&gt;one can check discussion below in particular&amp;nbsp;HS_SETTLE settings :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/iMX8M-MIPI-CSI-4-lane-configuration/m-p/875755" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/iMX8M-MIPI-CSI-4-lane-configuration/m-p/875755&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 10:27:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-05-08T10:27:47Z</dc:date>
    <item>
      <title>IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1272759#M173656</link>
      <description>&lt;P&gt;Hi, Experts&lt;/P&gt;&lt;P&gt;We are now working on a third-party demo board kit of IMX8MQ, and trying to capture images from MIPI-CSI2 sensor.&lt;/P&gt;&lt;P&gt;We configured both the sensor and MIPI controller to 2 LANES mode, 800Mbps mode, and 8bits raw pixel format.&amp;nbsp; User APP is modified from capture-example.c of V4L2.&lt;/P&gt;&lt;P&gt;The result is always "select timeout".&lt;/P&gt;&lt;P&gt;After stream on, I have checked the clock and data on Lanes, which are all correct, and sensor feedback with no error.&lt;/P&gt;&lt;P&gt;Following is the dumped register from MIPI controller and CSI bridge after hang on:&lt;/P&gt;&lt;P&gt;CSI mipi_controller Register 0x0100 value is 0x00000001.&lt;BR /&gt;CSI mipi_controller Register 0x0104 value is 0x0000000c.&lt;BR /&gt;CSI mipi_controller Register 0x0108 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x010c value is 0x00000008.&lt;BR /&gt;CSI mipi_controller Register 0x0110 value is 0x000001ff.&lt;BR /&gt;CSI mipi_controller Register 0x0114 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0118 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x011c value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0120 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0124 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0128 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x012c value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0130 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0188 value is 0x00000040.&lt;BR /&gt;CSI mipi_controller Register 0x018c value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0190 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0194 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0198 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x00 value is 0x011b0902.&lt;BR /&gt;CSI bridge Register 0x04 value is 0xc0000000.&lt;BR /&gt;CSI bridge Register 0x08 value is 0x000010a0.&lt;BR /&gt;CSI bridge Register 0x0c value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x10 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x14 value is 0x00009600.&lt;BR /&gt;CSI bridge Register 0x18 value is 0x80004000.&lt;BR /&gt;CSI bridge Register 0x1c value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x20 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x24 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x28 value is 0x6a300000.&lt;BR /&gt;CSI bridge Register 0x2c value is 0x6a800000.&lt;BR /&gt;CSI bridge Register 0x30 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x34 value is 0x0a000790.&lt;BR /&gt;CSI bridge Register 0x48 value is 0xd44ad030.&lt;BR /&gt;CSI bridge Register 0x4c value is 0x00000000.&lt;/P&gt;&lt;P&gt;Also no error reported. The&amp;nbsp;CSI_CSIRXCNT (CSI bridge Register 0x14)&amp;nbsp; shows about 0x9600 words has been transferred. But I cannot find any clue from this.&lt;/P&gt;&lt;P&gt;Does anyone have some suggestion on this ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 07:00:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1272759#M173656</guid>
      <dc:creator>Timothy_Jr_BB</dc:creator>
      <dc:date>2021-05-06T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1272950#M173672</link>
      <description>&lt;P&gt;Hi Chenguang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for hanging issue one can look at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/RX-fifo-overflow-on-MIPI-CSI2-i-MX8MQ/m-p/1087697?commentID=1306949#comment-1306949" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/RX-fifo-overflow-on-MIPI-CSI2-i-MX8MQ/m-p/1087697?commentID=1306949#comment-1306949&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 10:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1272950#M173672</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-05-06T10:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1273988#M173762</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unluckily, my problem is not overflow, because CSICR19(0x4C) register is always 0.&lt;/P&gt;&lt;P&gt;Now I have set format to 640x480 instead of 5M pixels, but the result is the same, "select timeout".&lt;/P&gt;&lt;P&gt;Error shows in CSI mipi-controller 0x0118 and 0x011C register, both of them is 0x3, that is ErrSotHS and ErrSotSync_HS. And also 0x108 value is 0x1, means 2 bit ECC error has occured.&lt;/P&gt;&lt;P&gt;Following is register dump:&lt;/P&gt;&lt;P&gt;CSI mipi_controller Register 0x0100 value is 0x00000001.&lt;BR /&gt;CSI mipi_controller Register 0x0104 value is 0x0000000c.&lt;BR /&gt;CSI mipi_controller Register 0x0108 value is 0x00000001.&lt;BR /&gt;CSI mipi_controller Register 0x010c value is 0x0000003c.&lt;BR /&gt;CSI mipi_controller Register 0x0110 value is 0x000001ff.&lt;BR /&gt;CSI mipi_controller Register 0x0114 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0118 value is 0x00000003.&lt;BR /&gt;CSI mipi_controller Register 0x011c value is 0x00000003.&lt;BR /&gt;CSI mipi_controller Register 0x0120 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0124 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0128 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x012c value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0130 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0188 value is 0x00000040.&lt;BR /&gt;CSI mipi_controller Register 0x018c value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0190 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0194 value is 0x00000000.&lt;BR /&gt;CSI mipi_controller Register 0x0198 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x00 value is 0x011b0902.&lt;BR /&gt;CSI bridge Register 0x04 value is 0xc0000000.&lt;BR /&gt;CSI bridge Register 0x08 value is 0x000010a0.&lt;BR /&gt;CSI bridge Register 0x0c value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x10 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x14 value is 0x00009600.&lt;BR /&gt;CSI bridge Register 0x18 value is 0x80004000.&lt;BR /&gt;CSI bridge Register 0x1c value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x20 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x24 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x28 value is 0x6a300000.&lt;BR /&gt;CSI bridge Register 0x2c value is 0x6a380000.&lt;BR /&gt;CSI bridge Register 0x30 value is 0x00000000.&lt;BR /&gt;CSI bridge Register 0x34 value is 0x028001e0.&lt;BR /&gt;CSI bridge Register 0x48 value is 0xd44ad030.&lt;BR /&gt;CSI bridge Register 0x4c value is 0x00000000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 07:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1273988#M173762</guid>
      <dc:creator>Timothy_Jr_BB</dc:creator>
      <dc:date>2021-05-08T07:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1274024#M173770</link>
      <description>&lt;P&gt;one can check discussion below in particular&amp;nbsp;HS_SETTLE settings :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/iMX8M-MIPI-CSI-4-lane-configuration/m-p/875755" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/iMX8M-MIPI-CSI-4-lane-configuration/m-p/875755&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 10:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1274024#M173770</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-05-08T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1274443#M173810</link>
      <description>&lt;P&gt;hi, Igor&lt;/P&gt;&lt;P&gt;I have checked the topic&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-registers/m-p/764265&lt;/A&gt;, and still unclear for me.&lt;/P&gt;&lt;P&gt;According to Qiangli, for IMX8MQ, the HS_SETTLE should be calculated followed table35, &lt;FONT color="#FF0000"&gt;but unclear, how to decide the frequency of RxClkInEsc&lt;/FONT&gt; ? Is that the 'IMX8MQ_CLK_CSI1_ESC' in the device tree ?&lt;/P&gt;&lt;P&gt;And our MIPI is 400MHz, 2 lanes, 8-bit raw format, and &lt;FONT color="#FF0000"&gt;how to set the assigned-clock-rates in following device tree&lt;/FONT&gt; ?&lt;/P&gt;&lt;P&gt;mipi_csi_1: mipi_csi1@30a70000 {&lt;BR /&gt;compatible = "fsl,mxc-mipi-csi2_yav";&lt;BR /&gt;reg = &amp;lt;0x0 0x30a70000 0x0 0x1000&amp;gt;; /* MIPI CSI1 Controller base addr */&lt;BR /&gt;interrupts = &amp;lt;GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_DUMMY&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_CORE&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ESC&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_PHY_REF&amp;gt;;&lt;BR /&gt;clock-names = "clk_apb", "clk_core", "clk_esc", "clk_pxl";&lt;BR /&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_CORE&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_PHY_REF&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ESC&amp;gt;;&lt;BR /&gt;assigned-clock-rates = &amp;lt;&lt;FONT color="#FF0000"&gt;133000000&lt;/FONT&gt;&amp;gt;, &amp;lt;&lt;FONT color="#FF0000"&gt;100000000&lt;/FONT&gt;&amp;gt;, &amp;lt;&lt;FONT color="#FF0000"&gt;66000000&lt;/FONT&gt;&amp;gt;;&lt;BR /&gt;power-domains = &amp;lt;&amp;amp;mipi_csi1_pd&amp;gt;;&lt;BR /&gt;csis-phy-reset = &amp;lt;&amp;amp;src 0x4c 7&amp;gt;;&lt;BR /&gt;phy-gpr = &amp;lt;&amp;amp;gpr 0x88&amp;gt;;&lt;BR /&gt;status = "disabled";&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 11:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1274443#M173810</guid>
      <dc:creator>Timothy_Jr_BB</dc:creator>
      <dc:date>2021-05-10T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1275321#M173900</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I configured the CSI_CSICR18 MASK_OPTION BIT[19:18] to 00 (2'b10 as before), then the select timeout will not happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also , the CSI_RFIFO reg is no longer 0, the&amp;nbsp;&lt;SPAN&gt;FIFO_level register is 0x10 ,which means pixel data have been received in FIFO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But the saved image size is 0 bytes.&lt;/P&gt;&lt;P&gt;Could you explain the function of&amp;nbsp; MASK_OPTION ? That's helpful for further debug.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 04:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1275321#M173900</guid>
      <dc:creator>Timothy_Jr_BB</dc:creator>
      <dc:date>2021-05-12T04:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ mipi-csi2 capture timeout</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1275474#M173912</link>
      <description>&lt;P&gt;Hi, Again&lt;/P&gt;&lt;P&gt;I also have question on&amp;nbsp; &lt;SPAN class="fontstyle0"&gt;CSI_CSIFBUF_PARA&lt;/SPAN&gt;&amp;nbsp; register setting.&lt;/P&gt;&lt;P&gt;To my application, image has no interlaced mode, so the driver (mx6s_capture.c) set to 0.&lt;/P&gt;&lt;P&gt;But according to IM8M RM, this register should be set to show how many double words to skip before starting to write the next row of the image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't know whether it is required to set this , if yes, how to decide the FBUF_STRIDE value. Our image frame is as below figure:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Timothy_Jr_BB_0-1620807115852.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144528i33CE2BBE3383F0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Timothy_Jr_BB_0-1620807115852.png" alt="Timothy_Jr_BB_0-1620807115852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 08:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MQ-mipi-csi2-capture-timeout/m-p/1275474#M173912</guid>
      <dc:creator>Timothy_Jr_BB</dc:creator>
      <dc:date>2021-05-12T08:14:12Z</dc:date>
    </item>
  </channel>
</rss>

