<?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: imx6 TVP5150 Camera in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1363385#M182270</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used compulab TVP5150 driver (with a little change for bug fix ... in attachment) with imx6q capture subsystem (imx_v4l2_capture.c).&lt;/P&gt;&lt;P&gt;I want to use TVP5150AM1 with a &lt;STRONG&gt;NTSC&lt;/STRONG&gt; Camera connected to imx6q IPU0_CSI0. Now, The video goes up as you can see in the attached file. I guess the problem might be with wrong height, But as I double check its size is 720*480 in driver.&lt;/P&gt;&lt;P&gt;I use two other &lt;STRONG&gt;PAL&lt;/STRONG&gt; Cameras, It's ok, but sometimes for a few seconds at first, the video goes up like the NSTC one but then it becomes ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the below Gstreamer command to dispaly camera on screen:&lt;/P&gt;&lt;P&gt;$ gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink framebuffer=/dev/fb0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the DT node:&lt;/P&gt;&lt;P&gt;tvp5150@5c {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "my,tvp5150";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x5c&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ipu1_csi0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clocks = &amp;lt;&amp;amp;clks 201&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock-names = "csi_mclk";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; csi_id = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk = &amp;lt;27000000&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_source = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; What could be the problem with &lt;STRONG&gt;NTSC&lt;/STRONG&gt; and how to solve it?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 15:29:05 GMT</pubDate>
    <dc:creator>akbar123</dc:creator>
    <dc:date>2021-10-28T15:29:05Z</dc:date>
    <item>
      <title>imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349238#M180903</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to use TVP5150 decoder with imx6q.&lt;/P&gt;&lt;P&gt;Here are what I have done till now:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;U&gt;&lt;STRONG&gt;Physical Connection:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;TVP5150 is connected to &lt;STRONG&gt;parallel&lt;/STRONG&gt; port of &lt;STRONG&gt;CSI0&lt;/STRONG&gt; of &lt;STRONG&gt;IPU0&lt;/STRONG&gt;, i.e. IPU1_CSI0_DATA12 to IPU1_CSI0_DATA19 Pins.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;U&gt;&lt;STRONG&gt;Device Tree:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TVP5150 node&lt;/STRONG&gt; is defined under i2c1 as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tvp5150@5c {
	compatible = "ti,tvp5150";
	reg = &amp;lt;0x5c&amp;gt;;
	pdn-gpios = &amp;lt;&amp;amp;gpio7 13 GPIO_ACTIVE_LOW&amp;gt;;
	reset-gpios = &amp;lt;&amp;amp;gpio7 12 GPIO_ACTIVE_LOW&amp;gt;;

	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ipu1_csi0&amp;gt;;
	clocks = &amp;lt;&amp;amp;clks 201&amp;gt;;
	clock-names = "csi_mclk";
	csi_id = &amp;lt;0&amp;gt;;
	mclk = &amp;lt;24000000&amp;gt;;
	mclk_source = &amp;lt;0&amp;gt;;

	port {
	        tvp5150_to_ipu1_csi0_mux: endpoint {
		     remote-endpoint = &amp;lt;&amp;amp;ipu1_csi0_mux_from_parallel_sensor&amp;gt;;
		};
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IPU0 node&lt;/STRONG&gt; is as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ipu1: ipu@2400000 {
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	compatible = "fsl,imx6q-ipu";
	reg = &amp;lt;0x2400000 0x400000&amp;gt;;
	interrupts = &amp;lt;0 6 IRQ_TYPE_LEVEL_HIGH&amp;gt;,
			&amp;lt;0 5 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
	clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_IPU1&amp;gt;,
		&amp;lt;&amp;amp;clks IMX6QDL_CLK_IPU1_DI0&amp;gt;, &amp;lt;&amp;amp;clks IMX6QDL_CLK_IPU1_DI1&amp;gt;,
		&amp;lt;&amp;amp;clks IMX6QDL_CLK_IPU1_DI0_SEL&amp;gt;, &amp;lt;&amp;amp;clks IMX6QDL_CLK_IPU1_DI1_SEL&amp;gt;,
		&amp;lt;&amp;amp;clks IMX6QDL_CLK_LDB_DI0&amp;gt;, &amp;lt;&amp;amp;clks IMX6QDL_CLK_LDB_DI1&amp;gt;;
        clock-names = "bus","di0", "di1","di0_sel", "di1_sel","ldb_di0", "ldb_di1";
	resets = &amp;lt;&amp;amp;src 2&amp;gt;;
	bypass_reset = &amp;lt;0&amp;gt;;

	status = "okay";

	ipu1_csi0: port@0 {
		reg = &amp;lt;0&amp;gt;;
		ipu1_csi0_from_ipu1_csi0_mux: endpoint {
			bus-width = &amp;lt;8&amp;gt;;
	                data-shift = &amp;lt;12&amp;gt;; /* Lines 19:12 used */
	                hsync-active = &amp;lt;1&amp;gt;;
	                vsync-active = &amp;lt;1&amp;gt;;
                        remote-endpoint = &amp;lt;&amp;amp;ipu1_csi0_mux_to_ipu1_csi0&amp;gt;;
		};
	};
         /* Some Other stuffs are here */
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IPU0 Mux node&lt;/STRONG&gt; is as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ipu1_csi0_mux {
         compatible = "video-mux";
         mux-controls = &amp;lt;&amp;amp;mux 0&amp;gt;;
         #address-cells = &amp;lt;1&amp;gt;;
         #size-cells = &amp;lt;0&amp;gt;;

         status = "okay";

         port@0 {
             reg = &amp;lt;0&amp;gt;;

             ipu1_csi0_mux_from_mipi_vc0: endpoint {
                   remote-endpoint = &amp;lt;&amp;amp;mipi_vc0_to_ipu1_csi0_mux&amp;gt;;
              };
         };

          port@1 {
               reg = &amp;lt;1&amp;gt;;

                ipu1_csi0_mux_from_parallel_sensor: endpoint {
                      remote-endpoint = &amp;lt;&amp;amp;tvp5150_to_ipu1_csi0_mux&amp;gt;;
                };
         };

         port@2 {
             reg = &amp;lt;2&amp;gt;;

              ipu1_csi0_mux_to_ipu1_csi0: endpoint {
                   remote-endpoint = &amp;lt;&amp;amp;ipu1_csi0_from_ipu1_csi0_mux&amp;gt;;
               };
         };
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;V4L2 capture node&lt;/STRONG&gt; is as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;v4l2_cap_0 {
    	compatible = "fsl,imx6q-v4l2-capture";
     	ipu_id = &amp;lt;0&amp;gt;;
     	csi_id = &amp;lt;0&amp;gt;;
     	mclk_source = &amp;lt;0&amp;gt;;
     	status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;U&gt;&lt;STRONG&gt;Kernel Configuration:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have built kernel with imx_v7_defconfig and now these modules are loaded at startup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# lsmod 
Module                  Size  Used by    Not tainted
mxc_v4l2_capture       53248  0 
ipu_bg_overlay_sdc     16384  1 mxc_v4l2_capture
ipu_still              16384  1 mxc_v4l2_capture
v4l2_int_device        16384  1 mxc_v4l2_capture
ipu_prp_enc            16384  1 mxc_v4l2_capture
ipu_csi_enc            16384  1 mxc_v4l2_capture
ipu_fg_overlay_sdc     16384  1 mxc_v4l2_capture
imx_vdoa               16384  0 
tvp5150                32768  0 
evbug                  16384  0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;U&gt;&lt;STRONG&gt;Representation:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;TVP5150 is probed successfully with the following message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tvp5150 1-005c: tvp5150 (4.0) chip found @ 0xb8 (21a4000.i2c)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#008080"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tvp5150 1-005c: tvp5150am1 detected.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The /dev/video0 is now available, but in kernel log there is an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#FF0000"&gt;ERROR: v4l2 capture: slave not found!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;U&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Q1- What is wrong with my settings that the /dev/video0 is not opened?&lt;/P&gt;&lt;P&gt;Q2- Does v4l2 capture works as bridge to initialize subdevices such as TVP5150 and create video device representation (/dev/video0)?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any example Kernel Configuration and Device Tree can be helpful&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349238#M180903</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-09-30T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349367#M180919</link>
      <description>&lt;P&gt;Hi Asghar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately TVP5150 is not supported in NXP BSPs, one can look at compulab&lt;/P&gt;
&lt;P&gt;cl-som-imx6-linux (attached are dts files):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mediawiki.compulab.com/w/index.php?title=CM-FX6_Freescale_i.MX6_SW_Resources" target="_blank"&gt;https://mediawiki.compulab.com/w/index.php?title=CM-FX6_Freescale_i.MX6_SW_Resources&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/compulab-yokneam/imx6/blob/master/m6/kernel_imx/0061-ARM-i.MX6-tvp5150-add-tvp5150-video-decoder-support.patch" target="_blank"&gt;https://github.com/compulab-yokneam/imx6/blob/master/m6/kernel_imx/0061-ARM-i.MX6-tvp5150-add-tvp5150-video-decoder-support.patch&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>Fri, 01 Oct 2021 00:31:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349367#M180919</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-01T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349745#M180968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess my question is more related to imx6 than to tvp5150&lt;/P&gt;&lt;P&gt;tvp5150 is probed successfully, but I guess the video chain does not detected it.&lt;/P&gt;&lt;P&gt;Could you please ask NXP engineers to help me with this problem? I searched Internet and came up with some results about this problem BUT &lt;STRONG&gt;NO useful information found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Helping to solve this problem will help others as well in future&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 13:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349745#M180968</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-10-02T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349767#M180975</link>
      <description>&lt;P&gt;for "..video chain does not detected it.."&amp;nbsp; and general understanding how&lt;/P&gt;
&lt;P&gt;video chain works one can look for example on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/De-interlace-Capture-Device/ta-p/1114964" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/De-interlace-Capture-Device/ta-p/1114964&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_v4l2_test?h=lf-5.10.52_2.1.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_v4l2_test?h=lf-5.10.52_2.1.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Chapter 14 Supporting Cameras with CSI&amp;nbsp;&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf" target="_blank" rel="noopener" data-dtmsubaction="i.MX Porting Guide link"&gt;i.MX Porting Guide&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>Sun, 03 Oct 2021 00:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1349767#M180975</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-03T00:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1360334#M181992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The problem is that&lt;STRONG&gt; mxc_v4l2_capture.c&lt;/STRONG&gt; module needs to be aware of its slave by calling&amp;nbsp; &lt;STRONG&gt;v4l2_int_device_register&lt;/STRONG&gt; in the slave driver, i.e. tvp5150.&lt;/P&gt;&lt;P&gt;By inspecting Linux source code, I figured out that there are two drivers fo ov5640, one in &lt;STRONG&gt;driver/media/i2c&lt;/STRONG&gt; and another one in &lt;STRONG&gt;driver/media/platform/mxc/capture&lt;/STRONG&gt;. The one available in the &lt;STRONG&gt;platform/mxc/capture&lt;/STRONG&gt; registers ov5640 in a way that is understandable by&lt;STRONG&gt; mxc_v4l2_capture&lt;/STRONG&gt; (This is what stated in Porting Guide in Camera Sensor Chapter). So I used the same way for TVP5150. Fortunately compulab has done this and used their driver&lt;/P&gt;&lt;P&gt;Now, the problem is that I can't get a good image. Trying some gstreamer commands, I guess that I don't make a proper pipeline to get the image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; &lt;/FONT&gt;How to make a pipeline for streaming frames of a NTSC camera over network? what about the PAL Camera?&lt;/P&gt;&lt;P&gt;Right now, I use the following commands to stream frames on network, But the receive Video Stream has the problem of frames go up. I guess I don't set the frame size right and this causes to get the pixels of previous frame in the next frame which causes the image go up continuously&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;U&gt;&lt;STRONG&gt;imx6 Transmitter:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;$ gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! rtpvrawpay ! udpsink host=10.0.0.2 port=5001 sync=false async=false -v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;U&gt;&lt;STRONG&gt;x86 Receiver:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 udpsrc port=5001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2, depth=(string)8,width=(string)720, height=(string)576, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)155528026, timestamp-offset=(uint)2270520902, seqnum-offset=(uint)27437,a-framerate=(string)30" ! rtpvrawdepay ! videoconvert ! queue ! xvimagesink sync=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 11:33:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1360334#M181992</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-10-23T11:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1360356#M181998</link>
      <description>&lt;P&gt;for streaming on network may be useful to look at&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_blank" rel="noopener" data-dtmsubaction="i.MX Linux User’s Guide​ link"&gt;i.MX Linux User’s Guide​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sect.7.3.10 Web camera, RTP/UDP MPEGTS streaming&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, 23 Oct 2021 23:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1360356#M181998</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-23T23:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1363385#M182270</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used compulab TVP5150 driver (with a little change for bug fix ... in attachment) with imx6q capture subsystem (imx_v4l2_capture.c).&lt;/P&gt;&lt;P&gt;I want to use TVP5150AM1 with a &lt;STRONG&gt;NTSC&lt;/STRONG&gt; Camera connected to imx6q IPU0_CSI0. Now, The video goes up as you can see in the attached file. I guess the problem might be with wrong height, But as I double check its size is 720*480 in driver.&lt;/P&gt;&lt;P&gt;I use two other &lt;STRONG&gt;PAL&lt;/STRONG&gt; Cameras, It's ok, but sometimes for a few seconds at first, the video goes up like the NSTC one but then it becomes ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the below Gstreamer command to dispaly camera on screen:&lt;/P&gt;&lt;P&gt;$ gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink framebuffer=/dev/fb0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the DT node:&lt;/P&gt;&lt;P&gt;tvp5150@5c {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "my,tvp5150";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x5c&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ipu1_csi0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clocks = &amp;lt;&amp;amp;clks 201&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock-names = "csi_mclk";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; csi_id = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk = &amp;lt;27000000&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_source = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; What could be the problem with &lt;STRONG&gt;NTSC&lt;/STRONG&gt; and how to solve it?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 15:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1363385#M182270</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-10-28T15:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1363526#M182284</link>
      <description>&lt;P&gt;for ntsc may be useful to look on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/ADV7180-and-IMX6-does-NTSC-work/m-p/604663" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/ADV7180-and-IMX6-does-NTSC-work/m-p/604663&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>Fri, 29 Oct 2021 00:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1363526#M182284</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-10-29T00:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369087#M182843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After a lot of test, now the NTSC video is stable (does not roll), BUT it's a little shifted right and there are two pictures in it. The same happen to PAL video. I changed the following to get this result (More notably the &lt;STRONG&gt;mclk=27000000&lt;/STRONG&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//In probe function
tvp5150_data.mclk = 27000000;

//In ioctl_g_ifparm function
p-&amp;gt;u.bt656.clock_curr = tvp5150_data.mclk;
pr_debug("   clock_curr=mclk=%d\n", tvp5150_data.mclk);
p-&amp;gt;if_type = V4L2_IF_TYPE_BT656;
p-&amp;gt;u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;
p-&amp;gt;u.bt656.clock_min = TVP5150_XCLK_MIN;
p-&amp;gt;u.bt656.clock_max = TVP5150_XCLK_MAX;
p-&amp;gt;u.bt656.bt_sync_correct = 0;  /* Indicate external vsync */

p-&amp;gt;u.bt656.nobt_hs_inv = 1;
p-&amp;gt;u.bt656.latch_clk_inv = 1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached image is the result by using the following command:&lt;/P&gt;&lt;P&gt;$ gst-launch-1.0 imxv4l2videosrc device=/dev/video0 num-buffers=1 ! imxvpuenc_jpeg ! filesink location=/home/ntscIssue.jpg&lt;/P&gt;&lt;P&gt;I guess there are some wrong configurations such as the above one.&lt;/P&gt;&lt;P&gt;My problem is not with width and height as it's as follow for NTSC:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{   /*! NTSC */
    .v4l2_id = V4L2_STD_NTSC,
    .name = "NTSC",
    .raw_width = 720,		/* SENS_FRM_WIDTH */
    .raw_height = 525,		/* SENS_FRM_HEIGHT */
    .active_width = 720,	/* ACT_FRM_WIDTH */
    .active_height = 480,	/* ACT_FRM_HEIGHT */
    .active_top = 13,
    .active_left = 0,
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question1:&lt;/STRONG&gt; What could be the problem of having a right-shifted with two pictures in a frame?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question2:&lt;/STRONG&gt; How can I get the received frame information, e.g. #lines and #pixels in each line, so that I can confirm whether the configuration is right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 09:50:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369087#M182843</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-11-10T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369362#M182866</link>
      <description>&lt;P&gt;what bsp used in the case, may be recommended to try with latest nxp linux from&lt;/P&gt;
&lt;P&gt;source.codeaurora.org/external/imx/linux-imx repository&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;documentation&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&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>Wed, 10 Nov 2021 14:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369362#M182866</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-11-10T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369692#M182897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the latest version, linux-lf-5.10.52-2.1.0&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369692#M182897</guid>
      <dc:creator>akbar123</dc:creator>
      <dc:date>2021-11-11T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369833#M182906</link>
      <description>&lt;P&gt;unfortunately tvp5150 is not "officially" supported in nxp bsps, sorry.&lt;/P&gt;
&lt;P&gt;For support with integration may be recommended to proceed with help of&amp;nbsp;&amp;nbsp; &lt;A href="https://contact.nxp.com/new-prof-svcs-sw-tech" target="_blank"&gt;https://contact.nxp.com/new-prof-svcs-sw-tech&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, 11 Nov 2021 09:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/1369833#M182906</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-11-11T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 TVP5150 Camera</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/2251285#M242490</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve debugged similar CSI bring-ups on i.MX6 with analog decoders, and the failure mode you are seeing (no frames, CSI idle) is almost always due to BT.656 configuration mismatch.&lt;/P&gt;&lt;P&gt;On i.MX6, the CSI block &lt;EM&gt;expects&lt;/EM&gt; correct embedded sync bytes (0xFF0000FF patterns). If the TVP5150 isn’t configured into BT.656 mode, the CSI driver will report “streaming” but never return valid buffers.&lt;/P&gt;&lt;P&gt;For quick isolation, try,&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;v4l2-ctl --device /dev/video0 --stream-mmap --stream-count=50 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If frame numbers increase but all frames are black → TVP5150 is in 601 mode, not 656.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If frames don’t increment → CSI isn’t detecting valid sync (clock polarity or bus format mismatch).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Double-check DT bindings:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;bus-width = &amp;lt;8&amp;gt;;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;media-bus-format = "UYVY8_2X8";&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Ensure the correct CSI port (CSI0 vs CSI1)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Some boards also require enabling the decoder’s internal PLL explicitly.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For reference, we solved the same issue on another CVBS → CSI pipeline, and the solution involved aligning the BT.656 parsing path in the CSI driver with the decoder output timing.&lt;BR /&gt;If useful, here are a few &lt;STRONG&gt;public&lt;/STRONG&gt; upstream camera driver contributions that show similar data path setups (only as technical examples, not product promotion):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;MIPI sensor upstream example (Linux-next):&lt;BR /&gt;&lt;A href="https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fa9e6df636fb8b3b27570f38c53640c9e2b02f79" target="_new" rel="noopener"&gt;https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fa9e6df636fb8b3b27570f38c53640c9e2b02f79&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Another camera sensor driver (Zephyr):&lt;BR /&gt;&lt;A href="https://github.com/zephyrproject-rtos/zephyr/commit/c784481ca039ccd606a192ee07bc83f6b0117e59" target="_new" rel="noopener"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/c784481ca039ccd606a192ee07bc83f6b0117e59&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Media pipeline update example:&lt;BR /&gt;&lt;A href="https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9d382f6a9978916317b3fb4ef07b5fec684adde0" target="_new" rel="noopener"&gt;https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9d382f6a9978916317b3fb4ef07b5fec684adde0&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And if you’re exploring full camera pipeline design (CSI routing, sensor bring-up, MIPI/parallel bridges), this write-up may help:&lt;BR /&gt;&lt;A href="https://siliconsignals.io/solutions/camera-design-engineering/" target="_new" rel="noopener"&gt;https://siliconsignals.io/blog/v4l2-camera-stack-step-by-step-guide-for-custom-devices/https://siliconsignals.io/solutions/camera-design-engineering/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 14:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-TVP5150-Camera/m-p/2251285#M242490</guid>
      <dc:creator>RutvijTrivedi207</dc:creator>
      <dc:date>2025-11-28T14:22:44Z</dc:date>
    </item>
  </channel>
</rss>

