video streaming with IMX6UL by CSI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

video streaming with IMX6UL by CSI

1,563 Views
riguangpeng
Contributor I

We have a project based on CVBS camera. The camera module will provide its output as CVBS(Composite Video) and a decoder IC(TVP5150AM1)is used to convert the analog signal to parallel. 

I have look up i.MX6 IPU TVIN Application Note about how to connetc the TVin Chip to CSI as fallowing:

pastedImage_1.png

The main chip is imx6ul, linux kernel is 4.1.15 downloaded from NXP,  the driver of tvp5150 is  ./drivers/media/i2c/tvp5150.c, the driver of csi capture is ./drivers/media/platform/mxc/subdev/mx6s_capture.c in linux kernel.

 

My dts is as following:

&i2c2 {
      clock_frequency = <100000>;
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_i2c2>;
      status = "okay";

       tvp5150_decoder: tvp5150@5d {
                compatible = "ti,tvp5150";
                reg = <0x5d>;

                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_csi1>;

                       port {
                               tvp5150_ep: endpoint {
                                remote-endpoint = <&csi1_ep>;
                            };
                       };
                };
          };


         &csi {
                       status = "okay";
                       //pinctrl-names = "default";
                        //pinctrl-0 = <&pinctrl_csi1>;
                        port {
                                    csi1_ep: endpoint {
                                     remote-endpoint = <&tvp5150_ep>;
                                   };
                            };
                };

 

The following picture is caputred from linux application:

pastedImage_2.png

 

My question:

1.  how to associate the tvp5150 driver with the csi capture driver?

2. if I want to config the csi in BT656 mode, which registers should be configed?

Labels (3)
0 Kudos
Reply
4 Replies

1,287 Views
igorpadykov
NXP Employee
NXP Employee

Hi riguang

one can try solutions suggested on

IMX6ULL - CSI NTSC Interlaced Capture 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,287 Views
riguangpeng
Contributor I

Hi igorpadykov:

    I look up the RFM of imx6ul about CSI, it said that "According to the CCIR656 specification, the image must be in 625/50 PAL or 525/60 NTSC format.", but my camera is 420 TV Line.  What result is it, if I use this camera?

pastedImage_2.png

0 Kudos
Reply

1,287 Views
riguangpeng
Contributor I

Hi igorpadykov:

I patch the code which you send to me, I can get the output video, but it is not stable, it is scrolling,and the video split two part as below.

pastedImage_1.png

0 Kudos
Reply

1,287 Views
riguangpeng
Contributor I

Hi  igorpadykov

Thank you!

The ticket said "We tried as per the https://community.nxp.com/thread/473846 we even used the patch which was supplied by NXP, however their input was PAL, not NTSC."

Can you give me the link of this patch?

0 Kudos
Reply