|
摄像头使能电压问题
发表于 2016-7-11 14:46:33
浏览:6342
|
回复:1
打印
只看该作者
[复制链接]
楼主
本帖最后由 点缀0001 于 2016-7-12 17:21 编辑
说明:rk3288-reload开发板,在ubuntu上开发,调试摄像头ov5640驱动
设置稳压芯片tt8112-28, tt8112-18的使能引脚,从图中看出来是低电压有效,所以在dtsi文件里面设置
ov5640{
is_front = <0>;
rockchip,power = <&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>; // 低电平有效
pwr_active = <PWR_ACTIVE_LOW>; // 低电平
rockchip,reset = <&gpio3 GPIO_B3 GPIO_ACTIVE_LOW>;
rst_active = <PWR_ACTIVE_LOW>;
rockchip,powerdown = <&gpio3 GPIO_B4 GPIO_ACTIVE_HIGH>;
pwdn_active = <ov5640_PWRDN_ACTIVE>;
mir = <0>;
flash_attach = <1>;
flash_active = <1>;
resolution = <ov5640_FULL_RESOLUTION>;
powerup_sequence = <ov5640_PWRSEQ>;
orientation = <0>;
i2c_add = <ov5640_I2C_ADDR>;
i2c_rata = <100000>;
i2c_chl = <3>;
cif_chl = <0>;
mclk_rate = <24>;
};
};
ov5640驱动是编译进内核的,在内核启动过程中无法读取摄像头ID,出现
rockchip_i2c ff150000.i2c: i2c is not in idle(state = 3)
但是我用示波器测I2C的两个引脚是高电平的,也就是,不是于忙状态的,
究竟是什么原因导致i2c通信不正常呢?请大神解答下,感谢
|
|