Hi Igor,
Thanks for the reply.
I have dumped the MIPI registers here,
I have created the V4L2 application and attached the log, driver didn't call the "camera_callback" function to proceed "QBUF"
MIPI_CSI2_VERSION 3130302a
MIPI_CSI2_N_LANES 1
MIPI_CSI2_PHY_SHUTDOWNZ 1
MIPI_CSI2_DPHY_RSTZ 1
MIPI_CSI2_CSI2_RESETN 1
MIPI_CSI2_PHY_STATE 210
MIPI_CSI2_DATA_IDS_1 0
MIPI_CSI2_DATA_IDS_2 0
MIPI_CSI2_ERR1 0
MIPI_CSI2_ERR2 0
MIPI_CSI2_MASK1 0
MIPI_CSI2_MASK2 0
MIPI_CSI2_PHY_TST_CTRL0 0
MIPI_CSI2_PHY_TST_CTRL1 4444
MIPI_CSI2_SFT_RESET 0
Device tree changes:
custom_mipi: custom_mipi@ac {
compatible = "ov,custom_mipi";
reg = <0xac>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2_ov5640_mipi>;
clocks = <&clks IMX6QDL_CLK_PWM3>;
clock-names = "csi_mclk";
DOVDD-supply = <®_1p8v>;
AVDD-supply = <®_2p5v>;
DVDD-supply = <®_1p8v>;
pwn-gpios = GP_OV5640_MIPI_POWER_DOWN;
rst-gpios = GP_OV5640_MIPI_RESET;
ipu_id = <1>;// ipu_id = <1>;
csi_id = <0>;// csi_id = <0>;
mclk = <188000000>;//Titus//22000000
mclk_source = <0>;
pwms = <&pwm3 0 45>;
};
&custom_mipi {
ipu_id = <1>;
csi_id = <0>;
};
drivers/mxc/mipi/mxc_mipi_csi2.c
// mipi_csi2_write(info, 0x00000014, MIPI_CSI2_PHY_TST_CTRL1);//Default OV5640_mipi camera
mipi_csi2_write(info, 0x00000044, MIPI_CSI2_PHY_TST_CTRL1); //180MHz to 200MHz
Can you please tell me what could be the problem for not getting/receiving the interrupt ?
What are the things need to change the camera driver.
PS: I have used ov5640_mipi.c driver.
Customized Camera details:
We don't want to configure the sensor, default it will generate the frame at 800x600 45fps in YUV420 8bit format (data type is 18)
Camera sensor bit clock is 48MHz
Camera MIPI TX is configured for 1.5Gbps
Byte clock is 187.5MHz
1 Lane
8bit parallel data
Thanks for the support.
Please let me know if you need further information.
Regards,
Titus S.