Hi,
I'm debugging our OV5640 camera module on our new i.MX93 board with BSP version LF-6.1.22-2.0.0, it works fine on our some other boards based on i.MX8MN, i.MX8MM, i.MX8MQ, i.MX8ULP.
Refer to this post About settings to operate ov5640 camera on i.MX93EVK, it works on resolutions 1920x1080, 640x480, 320x240..., but can not work on 2592x1944, 1280x720, 1024x768, 720x480. Attachment is the capture images with those resolutions.
root@maaxboardosm93:~# v4l2-ctl -d0 --list-framesizes YUYV
ioctl: VIDIOC_ENUM_FRAMESIZES
Size: Discrete 160x120
Size: Discrete 176x144
Size: Discrete 320x240
Size: Discrete 640x480
Size: Discrete 720x480
Size: Discrete 720x576
Size: Discrete 1024x768
Size: Discrete 1280x720
Size: Discrete 1920x1080
Size: Discrete 2592x1944
Below is our DTS configuration for MIPI-CSI and image sensor.
/ {
... ...
/* It's a 25MHz crystal oscillator on OV5640 camera board */
cam_xtal: cam-xtal {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <25000000>;
clock-output-names = "cam_xtal";
};
... ...
};
&lpi2c5 {
... ...
ov5640_mipi: ov5640_mipi@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
clocks = <&cam_xtal>;
clock-names = "xclk";
powerdown-gpios = <&ioexpander1 6 GPIO_ACTIVE_LOW>;
reset-gpios = <&ioexpander1 7 GPIO_ACTIVE_LOW>;
status = "okay";
port {
ov5640_mipi_ep: endpoint {
remote-endpoint = <&mipi_csi_ep>;
data-lanes = <2>;
cfg-clk-range = <28>;
hs-clk-range = <0x16>;
};
};
};
};
&epxp {
status = "okay";
};
&media_blk_ctrl {
status = "okay";
};
&cameradev {
status = "okay";
};
&isi_0 {
status = "okay";
cap_device {
status = "okay";
};
};
&mipi_csi {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi_ep: endpoint {
remote-endpoint = <&ov5640_mipi_ep>;
data-lanes = <2>;
cfg-clk-range = <28>;
hs-clk-range = <0x16>;
bus-type = <4>;
};
};
};
Can anyone give us some guide to support all those resolutions ? Thanks in advanced!