ov7670 camera on imx6ul

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ov7670 camera on imx6ul

1,430 Views
ganesh_k
Contributor III

Hi everyone,

            Greetings of the day...

kernel version: 4.9

         I m interfacing the ov7670 camera on imx6ul. Driver is available and loading without fail. but "video" node is not creating under "/dev". Any other things should i add in kernel level or in rootfs level. Please reply...

devicetree:

&csi {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1>;
status = "okay";

port {
csi_from_ov7670: endpoint {
remote-endpoint = <&ov7670_to_csi>;
};
};
};

i2c1 {

ov7670: camera@21 {
compatible = "ovti,ov7670";
reg = <0x21>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_csi1 &pinctrl_sensor_power &pinctrl_sensor_reset>;
reset-gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
powerdown-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
clocks = <&clks IMX6UL_CLK_CSI>;
clock-names = "xclk";
// csi_id = <0>;
assigned-clock-rates = <25000000>;

ov7670,pclk-hb-disable;
status = "okay";

port {
ov7670_to_csi: endpoint {
remote-endpoint = <&csi_from_ov7670>;
bus-width = <8>;
hsync-active = <1>; /* Active high */
vsync-active = <1>; /* Active high */
data-active = <1>; /* Active high */
pclk-sample = <1>; /* Rising */
};
};
};
};

kernel log:

root@phyboard-segin-imx6ul-2:~# dmesg | grep ov76
ov7670 probe start
ov7670 0-0021: chip found @ 0x42 (21a0000.i2c)
ov7670 probe end
root@phyboard-segin-imx6ul-2:~#

Thanks & Regards

Ganesh.K

0 Kudos
1 Reply

1,274 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ganesh

for testing one can try mx6s_v4l2_capture.c from

pxp_v4l2_test\test - imx-test - i.MX Driver Test Application Software 

Example of usage can be found in

https://community.nxp.com/message/1005481?commentID=1005481#comment-1005481 

ovm7692 mipi driver 

Subdev driver is described in sect.drivers/media/platform/mxc/subdev attached Linux Manual.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos