AnsweredAssumed Answered

ov5462 probe successful but reading registers is failing

Question asked by Jamal Mohiuddin on Apr 16, 2018
Latest reply on Apr 16, 2018 by igorpadykov

Hi Guys,


I connected ov5642 to my custom i.MX6Q Board.. Made the following settings in the device tree


ov564x: ov564x@3c {
compatible = "ovti,ov564x";
reg = <0x3c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ipu1_2>;
clocks = <&clks 201>;
clock-names = "csi_mclk";
DOVDD-supply = <&vgen4_reg>;/* 1.8v */
AVDD-supply = <&vgen3_reg>; /* 2.8v, on rev C board is VGEN3,*/
DVDD-supply = <&vgen2_reg>; /* 1.5v*/
pwn-gpios = <&gpio1 19 1>; /* active low: SD1_DAT2 */
rst-gpios = <&gpio1 20 0>; /* active high: SD1_CLK */
csi_id = <0>;
mclk = <24000000>;
mclk_source = <0>;
ipu_id = <0>;


dmesg | grep ov5642 shows probe successful and camera is found but the driver is found, but it fails to apply the settings that is update the registers.


mxc_v4l2_master_attach: ipu0:/csi0 parallel attached ov5642:mxc_v4l2_cap0
ov5642 0-003c: created sysfs entry for reading regs
camera ov5642 is found
ov5642_write_reg:write reg error:reg=3003,val=0 ret=-110
ov5642_apply_settings, write reg 0x3003 failed
ov5642_write_reg:write reg error:reg=3103,val=93 ret=-5
ov5642_apply_settings, write reg 0x3103 failed


How to debug this scenario..