AnsweredAssumed Answered

ov5640 works differently on different MIPI channels

Question asked by Igor Korolev on Jan 30, 2019
Latest reply on Jan 30, 2019 by igorpadykov

Hello!  I connect OV5640 camera to custom imx6S board, and after resolving issues with i2C and other setting in DTS make it work. But it work right only on mipi0 channel, when I change setting to mipi1 channel I can also see capture video, but  picture seems as it is not in right resolution and repeated in four rectangles, also in wrong colors . The only changes I made - settings in DTS and GPR13.

DTS   for MIPI0

    v4l2_cap_0 {
        compatible = "fsl,imx6q-v4l2-capture";
        ipu_id = <0>;
        csi_id = <0>;
        mclk_source = <0>;
        status = "okay";
    };

&i2c2 {
    clock-frequency = <100000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c2_sodimm>;
    status = "okay";

 

 

    ov564x_mipi: ov564x_mipi@3c { /* i2c2 driver */
        compatible = "ovti,ov564x_mipi";
        reg = <0x3c>;
        clocks = <&clks 201>;
        clock-names = "csi_mclk";
//        DOVDD-supply = <&vgen4_reg>; /* 1.8v */
//        AVDD-supply = <&vgen3_reg>;  /* 2.8v, rev C board is VGEN3
//                        rev B board is VGEN5 */
//        DVDD-supply = <&vgen2_reg>;  /* 1.5v*/
        pwn-gpios = <&gpio1 19 1>;   /* active low: SD1_CLK */
        rst-gpios = <&gpio1 20 0>;   /* active high: SD1_DAT2 */
        csi_id = <0>;
        mclk = <24000000>;
        mclk_source = <0>;
    };

 

&mipi_csi {
    status = "okay";
    ipu_id = <0>;
    csi_id = <0>;
    v_channel = <0>;
    lanes = <2>;
};

 

And for mipi1  I have  changed  in all section  to   csi_id=<1>  and v_channel =<1>    and settings in GPR13

Picture attached.

 

Some ideas? Whats wrong?

Attachments

Outcomes