Hi,
I am working on imx6ull based custom board. In this board OV5640 camera working perfectly. we want ov2640 to work in this same board. Below given the configuration please go through and correct me if anything went wrong.
&csi {
status = "okay";
port {
csi2_ep: endpoint {
remote-endpoint = <&ov2640_ep>;
};
};
};
&i2c1 {
ov2640: ov2640@30 {
compatible = "ovti,ov2640";
reg = <0x30>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1 &pinctrl_camera_clock>;
clocks = <&clks IMX6UL_CLK_CSI>;
clock-names = "csi_mclk";
pwn-gpios = <&gpio_spi 4 1>;
rst-gpios = <&gpio_spi 3 0>;
csi_id = <1>;
mclk = <24000000>;
mclk_source = <0>;
status = "okay";
port {
ov2640_ep: endpoint {
remote-endpoint = <&csi2_ep>;
};
};
};
};
in menuconfig i enabled ov2640 camera sensor. after flashing i am getting some error:
root@imx6ul7d:~# dmesg | grep ov2640
[ 0.124374] platform 21c4000.csi: Fixed dependency cycle(s) with /soc/bus@2100000/i2c@21a0000/ov2640@30
[ 0.204943] platform 21c4000.csi: Fixed dependency cycle(s) with /soc/bus@2100000/i2c@21a0000/ov2640@30
[ 2.594473] ov2640: probe of 0-0030 failed with error -2