Firefly开源社区

标题: firePrime ov2659 camera sensor 启动失败 [打印本页]

作者: lamish    时间: 2018-3-16 09:57
标题: firePrime ov2659 camera sensor 启动失败
开发板带的s5k4ec没问题,换ov2659失败。


失败kernel 打印:
<3>[    2.229257] ov2659_back_4(rk_cam_sensor:169): write reg(0x103, val:0x1) failed, try to write again!
<3>[    2.230601] ov2659_back_4(rk_cam_sensor:169): write reg(0x103, val:0x1) failed, try to write again!
<3>[    2.231916] ov2659_back_4(rk_cam_sensor:169): write reg(0x103, val:0x1) failed, try to write again!
<3>[    2.231976] ov2659_back_4(rk_cam_sensor:387): write array failed!
<3>[    2.232021] ov2659_back_4(rk_cam_sensor:671): soft reset failed

DTS按代码默认的:

ov2659{
   is_front = <0>;
   rockchip,powerdown = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>;
   pwdn_active = <ov2659_PWRDN_ACTIVE>;
   #rockchip,power = <>;
   pwr_active = <PWR_ACTIVE_HIGH>;
   #rockchip,reset = <>;
   #rst_active = <>;
   #rockchip,flash = <>;
   #rockchip,af = <>;
   mir = <0>;
   flash_attach = <0>;
   resolution = <ov2659_FULL_RESOLUTION>;
   powerup_sequence = <ov2659_PWRSEQ>;
   orientation = <0>;
   i2c_add = <ov2659_I2C_ADDR>;
   i2c_rata = <100000>;
   i2c_chl = <0>;
   cif_chl = <0>;
   mclk_rate = <24>;
  };



作者: leung先森    时间: 2018-3-16 10:11
pwr,rst等需要参照时序去配置
作者: lamish    时间: 2018-3-16 11:31
leung先森 发表于 2018-3-16 10:11
pwr,rst等需要参照时序去配置

你好!有相关指导文档吗?
作者: leung先森    时间: 2018-3-16 11:49
lamish 发表于 2018-3-16 11:31
你好!有相关指导文档吗?

arch/arm/boot/dts/rk3128-cif-sensor.dtsi
参考这个文件的配置方法,去找你对应模组的datatsheet,对着时序去上电。
作者: lamish    时间: 2018-3-16 14:23
leung先森 发表于 2018-3-16 11:49
arch/arm/boot/dts/rk3128-cif-sensor.dtsi
参考这个文件的配置方法,去找你对应模组的datatsheet,对着 ...

谢谢!




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1