AnsweredAssumed Answered

video streaming with IMX6UL by CSI

Question asked by riguang peng on Apr 11, 2019
Latest reply on Apr 24, 2019 by riguang peng

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:

 

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:

 

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?

 

Outcomes