AnsweredAssumed Answered

ov7670 camera on imx6ul

Question asked by Ganesh Koda on Feb 21, 2020
Latest reply on Feb 21, 2020 by igorpadykov

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

Outcomes