AnsweredAssumed Answered

OV5640_ MIPI camera probe failed

Question asked by sindhuja kapuganti on Jul 28, 2016
Latest reply on Jul 31, 2016 by igorpadykov

Hai Everyone,

 

We are using the  BSP-Linux-3.14.28 with i.MX6Solo/Dual lite board and  trying to insert the ov5640_mipi.ko,

 

The following errors is reported.

            ov5640_read_reg:write reg error:reg=300a

            camera ov5640_mipi is not found

 

The  Camera connected to following pins

I2C  Pins

      MX6QDL_PAD_EIM_D17__I2C3_SCL

      MX6QDL_PAD_EIM_D18__I2C3_SDA

Reset and Power Down

           MX6QDL_PAD_CSI0_DAT14__GPIO6_IO00(RST)

           MX6QDL_PAD_CSI0_DAT13__GPIO5_IO31(pwdn)

 

The DTSI  for Camera is ..

 

pinctrl_i2c3: i2c3grp {

            fsl,pins = <

                MX6QDL_PAD_EIM_D18__I2C3_SDA        0x4001b8b1

                MX6QDL_PAD_EIM_D17__I2C3_SCL        0x4001b8b1

   

            >;

        };

&i2c3 {

    clock-frequency = <100000>;

    pinctrl-names = "default";

    pinctrl-0 = <&pinctrl_i2c3>;

    status = "okay";

    /* FOR CAMERA */

    ov5640_mipi@0x3c {

        compatible = "ovti,ov5640_mipi";

        reg = <0x3c>; //<0x78>;

        clocks = <&clks 201>;

        clock-names = "csi_mclk";

        DOVDD-supply = <&sw4_reg>; /* 1.8v */

        AVDD-supply = <&vgen6_reg>;  /* 2.8v, rev C board is VGEN3*/

        pinctrl-0 = <&pinctrl_ipu1_2>;                /*rev B board is VGEN5 */

        DVDD-supply = <&vgen2_reg>;  /* 1.5v*/

        pwn-gpios = <&gpio5 31 1>;   /* active low: CSIO_DAT13 */

        rst-gpios = <&gpio6 00 0>;   /* active high: CSIO_DAT14*/

        ipu_id = <0>;

        csi_id = <1>;

        vc = <0>;

        mclk = <24000000>;

        mclk_source = <0>;

        status="okay";

    };

 

};

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 = <0>;

        csi_id = <1>;

        mclk_source = <0>;

        status = "okay";

    };

 

    v4l2_out {

        compatible = "fsl,mxc_v4l2_output";

        status = "okay";

    };

    mipi_dsi_reset: mipi-dsi-reset {

        compatible = "gpio-reset";

        reset-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;

        reset-delay-us = <50>;

        #reset-cells = <0>;

    };

    /**/

};

&mipi_csi{

    compatible = "fsl,imx6q-mipi-csi2";

    status = "okay";

    ipu_id = <0>;

    csi_id = <1>;

    v_channel = <0>;

    lanes = <2>;

};

 

Thanking you.

Outcomes