<?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: Issue with IMX219 Sensor Integration on Custom IMX8MP Board in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-IMX219-Sensor-Integration-on-Custom-IMX8MP-Board/m-p/2088478#M236768</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Apparently you have to change the clock rate, I don't have your sensor at hand but iMX219 is very used with MX8MP.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2025 14:07:42 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-04-28T14:07:42Z</dc:date>
    <item>
      <title>Issue with IMX219 Sensor Integration on Custom IMX8MP Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-IMX219-Sensor-Integration-on-Custom-IMX8MP-Board/m-p/2088398#M236766</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am currently working on integrating the IMX219 sensor with our custom IMX8MP board, using the ISP configuration.&lt;BR /&gt;We have ported the changes from the following repository into our custom Yocto layer: ( 6.6 sacrthgap KERNEL Version )&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx-support/meta-imx8mp-isp-imx219" target="_new" rel="noopener"&gt;https://github.com/nxp-imx-support/meta-imx8mp-isp-imx219&lt;/A&gt;.&lt;/P&gt;&lt;P class=""&gt;However, when running gst-launch-1.0 or v4l2-ctl commands, we are facing issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;The pipeline captures the first frame with distortion but then gets stuck and does not proceed.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;The image output is not proper.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Below are the details of our setup:&lt;BR /&gt;&lt;BR /&gt;DTS configuration :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;i2c3 {
	status = "okay";
	
	imx219: imx219@10 {
		compatible = "sony,imx219";
		reg = &amp;lt;0x10&amp;gt;;
		pinctrl-names = "default";
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio_hog3&amp;gt;,&amp;lt;&amp;amp;pinctrl_gpio2&amp;gt;;
		clock-names = "xclk";
		clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_IPP_DO_CLKO2&amp;gt;;
		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;;
		mclk = &amp;lt;24000000&amp;gt;;
		mclk_source = &amp;lt;0&amp;gt;;
		csi_id=&amp;lt;0&amp;gt;;

		pwn-gpios = &amp;lt;&amp;amp;gpio1 1 GPIO_ACTIVE_HIGH&amp;gt;;
		
    		port {
		    imx219_to_mipi_csi2: endpoint {
		        remote-endpoint = &amp;lt;&amp;amp;mipi_csi_1_in&amp;gt;;
		        clock-lanes = &amp;lt;0&amp;gt;;
		        data-lanes = &amp;lt;1 2&amp;gt;;
			clock-noncontinuous;
		        link-frequencies = /bits/ 64 &amp;lt;456000000&amp;gt;;
  		    };
	       };
	};
};

&amp;amp;cameradev {
	status = "okay";
};

&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_csi_1_in: endpoint {
			remote-endpoint = &amp;lt;&amp;amp;imx219_to_mipi_csi2&amp;gt;;
			data-lanes = &amp;lt;2&amp;gt;;
			csis-hs-settle = &amp;lt;13&amp;gt;;
			csis-clk-settle = &amp;lt;2&amp;gt;;
			csis-wclk;
		};
	};
};

&amp;amp;isp_0 {
	status = "okay";
};

&amp;amp;isi_0 {
	status = "disabled";
};

&amp;amp;isi_1 {
	status = "disabled";
};

&amp;amp;dewarp {
	status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logs :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mp-evk:~# dmesg | grep -E "csi| imx219"
[    0.046934] /soc@0/bus@30800000/i2c@30a40000/imx219@10: Fixed dependency cycle(s) with /soc@0/bus@32c00000/camera/csi@32e40000
[    0.047689] /soc@0/bus@32c00000/camera/csi@32e40000: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/imx219@10
[    0.056059] /soc@0/bus@30800000/i2c@30a40000/imx219@10: Fixed dependency cycle(s) with /soc@0/bus@32c00000/camera/csi@32e40000
[    0.059422] /soc@0/bus@30800000/i2c@30a40000/imx219@10: Fixed dependency cycle(s) with /soc@0/bus@32c00000/camera/csi@32e40000
[    0.062583] /soc@0/bus@32c00000/camera/csi@32e40000: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/imx219@10
[    0.065077] /soc@0/bus@32c00000/camera/csi@32e40000: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/imx219@10
[    0.065745] /soc@0/bus@30800000/i2c@30a40000/imx219@10: Fixed dependency cycle(s) with /soc@0/bus@32c00000/camera/csi@32e40000
[    0.065843] /soc@0/bus@32c00000/camera/csi@32e40000: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/imx219@10
[    1.930556] /soc@0/bus@32c00000/camera/csi@32e40000: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a40000/imx219@10
[    1.942193] /soc@0/bus@30800000/i2c@30a40000/imx219@10: Fixed dependency cycle(s) with /soc@0/bus@32c00000/camera/csi@32e40000
[    5.841069] enter imx219_probe
[    5.869886] imx219 2-0010: No sensor reset pin available
[    5.871180] imx219_probe camera mipi imx219, is found
[    6.011700] mxc-md 32c00000.bus:camera: deferring csi device registration
[    6.062131] imx8_mipi_csi2_sam: module is from the staging directory, the quality is unknown, you have been warned.
[    6.085889] mxc-mipi-csi2-sam 32e40000.csi: supply mipi-phy not found, using dummy regulator
[    6.101666] : mipi_csis_imx8mp_phy_reset, No remote pad found!
[    6.107667] mxc-mipi-csi2-sam 32e40000.csi: lanes: 2, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 500000000
[    6.577912] mx8-img-md: Registered sensor subdevice: imx219 2-0010 (1)
[    6.577925] mx8-img-md: created link [imx219 2-0010] =&amp;gt; [mxc-mipi-csi2.0]
[    7.899921] scsi host0: usb-storage 1-1.2:1.0
[    8.938510] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    9.205826] enter imx219_remove
[    9.438847] enter imx219_probe
[    9.445992] imx219 2-0010: No sensor reset pin available
[    9.455332] imx219_probe camera mipi imx219, is found
[    9.527424] mx8-img-md: Registered sensor subdevice: imx219 2-0010 (1)
[    9.536151] mx8-img-md: created link [imx219 2-0010] =&amp;gt; [mxc-mipi-csi2.0]
[   10.501160] scsi host0: usb-storage 1-1.2:1.0
[   11.527747] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pipeline Behavior and Logs During Capture&lt;STRONG&gt;:&lt;/STRONG&gt; Command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mp-evk:~# gst-launch-1.0 v4l2src device=/dev/video2 ! videoconvert ! autovideosink sync=false                                                                      
[  239.695562] enter isp_mi_stop
[  239.891296] enter isp_mi_stop
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  240.400653] enter isp_mi_stop
[  240.451547] enter isp_s_comp
[  240.454467] enter isp_s_comp
[  240.457462] enter isp_s_comp
[  240.480579] enter wdr3_hw_init
[  240.483684] wdr3 res: 1920 1080 
[  240.487183] enter isp_s_comp
[  240.539054] enter isp_set_stream 1
[  240.554111] enter isp_mi_start
Redistribute latency...
0:00:10.8 / 99:99:99.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shared image.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/335252i37AB36C57D5BC4D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="shared image.jpeg" alt="shared image.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Media Ouput :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mp-evk:~# media-ctl -p
Media controller API version 6.6.74

Media device information
------------------------
driver          mxc-md
model           FSL Capture Media Device
serial          
bus info        platform:32c00000.bus:camera
hw revision     0x0
driver version  6.6.74

Device topology
- entity 1: mxc-mipi-csi2.0 (8 pads, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                &amp;lt;- "imx219 2-0010":0 [ENABLED,IMMUTABLE]
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Source
        pad5: Source
        pad6: Source
        pad7: Source

- entity 10: imx219 2-0010 (1 pad, 1 link, 0 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev1
        pad0: Source
                [stream:0 fmt:SRGGB10_1X10/1920x1080 field:none]
                -&amp;gt; "mxc-mipi-csi2.0":0 [ENABLED,IMMUTABLE]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any assistance or suggestions on how to resolve this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Hardik&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-IMX219-Sensor-Integration-on-Custom-IMX8MP-Board/m-p/2088398#M236766</guid>
      <dc:creator>Hardik_Prajapati</dc:creator>
      <dc:date>2025-04-28T12:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with IMX219 Sensor Integration on Custom IMX8MP Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-IMX219-Sensor-Integration-on-Custom-IMX8MP-Board/m-p/2088478#M236768</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Apparently you have to change the clock rate, I don't have your sensor at hand but iMX219 is very used with MX8MP.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 14:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-IMX219-Sensor-Integration-on-Custom-IMX8MP-Board/m-p/2088478#M236768</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-04-28T14:07:42Z</dc:date>
    </item>
  </channel>
</rss>

