AnsweredAssumed Answered

How do I use two cameras?

Question asked by k ms on Oct 25, 2018
Latest reply on Oct 25, 2018 by igorpadykov

i used imx6qdl-sabreauto.dtsi

kernel 4.9.11

 

I connected a parallel camera to ipu1_csi0 and ipu2_csi1.

ipu1_csi0 camera is perfect run.

but ipu2_csi1 camera does not run the same way.

 

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

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

    v4l2_out {
        compatible = "fsl,mxc_v4l2_output";
        status = "okay";
    };

 

 

ov5642: ov5642@21 {
        compatible = "daycam,ov5642";
        reg = <0x21>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ipu1_1>;
        clocks = <&clks IMX6QDL_CLK_CKO>;
        clock-names = "csi_mclk";
        DOVDD-supply = <&reg_3p3v>; /* 3.3v, enabled via 2.8 VGEN6 */
        AVDD-supply = <&reg_3p3v>;  /* 1.8v */
        DVDD-supply = <&reg_3p3v>;  /* 1.8v */
        PVDD-supply = <&reg_3p3v>;  /* 1.8v */
        //pwn-gpios = <&max7310_b 2 0>;
        csi_id = <0>;
        mclk = <24000000>;
        mclk_source = <0>;
        cvbs = <1>;
    };

    ov5642A: ov5642A@22 {
        compatible = "ncam,ov5642A";
        reg = <0x22>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ipu2_1>;
        clocks = <&clks IMX6QDL_CLK_CKO>;
        clock-names = "csi_mclk";
        DOVDD-supply = <&reg_3p3v>; /* 3.3v, enabled via 2.8 VGEN6 */
        AVDD-supply = <&reg_3p3v>;  /* 1.8v */
        DVDD-supply = <&reg_3p3v>;  /* 1.8v */
        PVDD-supply = <&reg_3p3v>;  /* 1.8v */
        //pwn-gpios = <&max7310_b 2 0>;
        csi_id = <1>;
        mclk = <24000000>;
        mclk_source = <0>;
        cvbs = <1>;
    };

 

The ov5462~ driver is used for ioctl purposes only.

It is not used for IC control purposes.

 

1. Is the device tree configured incorrectly?

2. Do I need to patch the ipu3 or v4l2 driver?

Outcomes