OV2640 in IMX6ULL custom board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

OV2640 in IMX6ULL custom board

2,235件の閲覧回数
Et_MM
Contributor II

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

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

2,218件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The correct procedure should be to first make sure that the power-on timing, IO voltage, and clock frequency are normal, and then use i2ctool to scan whether there is a new I2C address. If no i2C address appears, it means that there is a problem with the circuit. First check the circuit problem instead of the device tree problem. also check your PAD since the OV2640 is different to OV5640.

Regards

0 件の賞賛
返信

2,016件の閲覧回数
Et_MM
Contributor II

Hi,

Thank you for your reply. Actually, the OV2640 camera is being detected under I2C, but I am unable to capture images. Can you suggest a solution for this?

root@imx6ul7d:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx6ul7d:~#

i tried all the commands i used for ov5640 with ov2640 but not working. please see the below attachment. hoping for your reply

 
0 件の賞賛
返信