<?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: Camera preview corruption on IMX8MP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1834059#M221692</link>
    <description>&lt;P&gt;As your camera already inbuilt ISP, you don't need to use/configure the ISP in i.MX8MP. Then the porting is more simple like the OV5640.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Mar 2024 06:41:09 GMT</pubDate>
    <dc:creator>jimmychan</dc:creator>
    <dc:date>2024-03-24T06:41:09Z</dc:date>
    <item>
      <title>Camera preview corruption on IMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1829180#M221318</link>
      <description>&lt;P&gt;Hi team,&lt;BR /&gt;We are working on bringing up isx031 camera sensor with gmsl serializer-deserializer on IMX8MP evk.&lt;BR /&gt;&lt;BR /&gt;We are able to get sensor output of 1920x1080 30fps YUV422 format(sensor data rate is 462mbps) with a GMSL o/p frequency of 600Mhz.&lt;BR /&gt;The command used is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,width=1920,height=1080,pixelformat=YUYV ! videoconvert ! autovideosink&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the preview is corrupted as shown in the attached image(corrupt_image.jpg). Also attached image of actual scene (actual_image.jpg)and the csi error logs as well.(mipi_debug_log.txt)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Kindly let me know how to debug this issue further.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Below is the dts used for the camera,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;isx031_mipi0: isx031_mipi@42 { 
                compatible = "isx031";
                reg = &amp;lt;0x42&amp;gt;;
                pinctrl-names = "default";
                pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi0&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_IPP_DO_CLKO2&amp;gt;;
                clock-names = "xclk";
                assigned-clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_IPP_DO_CLKO2&amp;gt;;
                assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MP_CLK_24M&amp;gt;;
                assigned-clock-rates = &amp;lt;24000000&amp;gt;;
                csi_id = &amp;lt;0&amp;gt;;

                mclk = &amp;lt;24000000&amp;gt;;//isx031 mclk
                mclk_source = &amp;lt;0&amp;gt;;
                mipi_csi;
                status = "okay";


                port {
                        isx031_mipi_0_ep: endpoint {
                                remote-endpoint = &amp;lt;&amp;amp;mipi_csi0_ep&amp;gt;;
                                data-lanes = &amp;lt;1 2 3 4&amp;gt;;
                                clock-lanes = &amp;lt;0&amp;gt;;
                        };
                };
...           
&amp;amp;mipi_csi_0 {
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;0&amp;gt;;
        status = "okay";


        port@0 {
                reg = &amp;lt;0&amp;gt;;
                mipi_csi0_ep: endpoint {
                        remote-endpoint = &amp;lt;&amp;amp;isx031_mipi_0_ep&amp;gt;;
                        data-lanes = &amp;lt;4&amp;gt;;
                        csis-hs-settle = &amp;lt;13&amp;gt;;
                        csis-clk-settle = &amp;lt;0&amp;gt;;
                        csis-wclk;
                };
        };
};&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you require more information&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Ashik&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 08:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1829180#M221318</guid>
      <dc:creator>p_ashik</dc:creator>
      <dc:date>2024-03-15T08:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Camera preview corruption on IMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1832753#M221583</link>
      <description>&lt;P&gt;FYI, you may follow this guide'&lt;/P&gt;
&lt;H3 class="item-title"&gt;&lt;A id="relatedDocsClickPDF_7" class="dtmcustomrulelink" href="https://www.nxp.com/webapp/Download?colCode=AN13713" target="_blank" rel="noopener" data-dtmaction="Documentation Section - Results Link Click" data-dtmsubaction="ISP New Camera Sensor Porting and Integration Guide for i.MX 8M Plus EVK - NXP - Application Note - English"&gt;&lt;SPAN&gt;ISP New Camera Sensor Porting and Integration Guide for i.MX 8M Plus EVK&lt;/SPAN&gt;&lt;/A&gt;&lt;/H3&gt;</description>
      <pubDate>Thu, 21 Mar 2024 08:24:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1832753#M221583</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-03-21T08:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Camera preview corruption on IMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1832864#M221590</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1422"&gt;@jimmychan&lt;/a&gt; ,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I am currently using the inbuilt ISP of ISX031 and it outputs YUV422 stream(With corruption as in the attached image).&lt;BR /&gt;&lt;BR /&gt;The guide you mentioned is suggesting to use IMX8's ISP. Do i need to add those changes as i am already using camera ISP?&lt;BR /&gt;&lt;BR /&gt;Let me know if my understanding is correct or not.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 10:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1832864#M221590</guid>
      <dc:creator>p_ashik</dc:creator>
      <dc:date>2024-03-21T10:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Camera preview corruption on IMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1834059#M221692</link>
      <description>&lt;P&gt;As your camera already inbuilt ISP, you don't need to use/configure the ISP in i.MX8MP. Then the porting is more simple like the OV5640.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2024 06:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1834059#M221692</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-03-24T06:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Camera preview corruption on IMX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1837257#M221910</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/1422"&gt;@jimmychan&lt;/a&gt; ,&lt;BR /&gt;I suspect the issue is with mipi clock.&lt;BR /&gt;&lt;BR /&gt;When i increase the gmsl serdes clock to 900MHz, the preview is proper.&lt;BR /&gt;But the current issue i am facing is, IMX8MP starts to stream the camera only when the gmsl serdes clock is at 500MHz(in this case camera streams with corruption) and when the gmsl serdes clock is changed to 900MHz the board doesnt give camera stream.&lt;BR /&gt;&lt;BR /&gt;For testing purpose i am starting the stream at 500MHz and then changing the clock to 900MHz using i2c commands.&lt;BR /&gt;&lt;BR /&gt;Am i missing anything related to MIPI clock in the IMX side?&lt;BR /&gt;Also do i need to modify hs-settle clk-settle values in the dts(How are these values calculated?)?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ashik&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 11:25:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Camera-preview-corruption-on-IMX8MP/m-p/1837257#M221910</guid>
      <dc:creator>p_ashik</dc:creator>
      <dc:date>2024-03-28T11:25:11Z</dc:date>
    </item>
  </channel>
</rss>

