Hi,
We are using i.MX8M Plus based SoC, with yocto. Following are the specifications of our project
OS: Yocto Linux
Kernel-Version: 5.4.70
Processor: i.MX8M Plus
Camera Sensor: OV5648
Interface: MIPI-CSI2
We had interfaced OV5648 camera sensor with our board. Initially, the kernel driver for OV5648 is not available in kernel version 5.4.70. so we downloaded from the latest kernel version and ported it to our version and compiled it successfully. created device tree nodes for OV5648 camera sensors and loaded the image. Captured the images using the v4l2 APIs. below are the capture format details
H: 720
W: 1280
FMT: V4L2_PIX_FMT_SBGGR8
Frame Rate: 30 frames/sec
Issue: colors on the captured image are mismatched as per the actual scene even the test pattern images are also not as expected colors
Device tree config:
&i2c2 {
ov5648_0: camera@36 {
reg = <0x36>;
clocks = <&cam_clk>;
assigned-clocks = <&cam_clk>;
csi_id = <0>;
assigned-clock-rates = <24000000>;
clock-names = "ext";
compatible = "ovti,ov5648";
mipi_csi;
status = "disabled";
port {
ov5648_0_mipi_ep: endpoint {
data-lanes = <1 2>;
clock-lanes = <0>;
bus-type = <4>;
link-frequencies = /bits/ 64 <210000000 168000000>;
remote-endpoint = <&mipi_csi0_ep>;
};
};
};
};
&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov5648_0_mipi_ep>;
data-lanes = <2>;
csis-hs-settle = <13>;
csis-clk-settle = <2>;
csis-wclk;
};
};
};
&isi_0 {
status = "okay";
cap_device {
status = "okay";
};
};
&ov5648_0 {
status = "okay";
};
Attached are the files for OV5648 driver, captured images
Looking forward to get a resolution sooner
Thanks,
Pavan M.