用户您好,请详细描述您所遇到的问题,详细的描述有助于帮助我们快速定位,解决问题~Thanks♪(・ω・)ノ
1. 硬件获取渠道及型号:
立昇智能科技提供的J5 SOM EDK
2. 系统镜像版本:
root@j5dvb:~# cat /etc/version
mipi@mipi debug 20231219-124328
3. 问题模块:
vpm
4. 问题描述:
我们使用的测试平台是立昇J5 soc 的mipi直接连接sensor的mipi接口,没有serdes。
原来ov x8b的代码中必须要对serdes进行配置,如sensing_max9296_max9295_init_setting。由于我们现在用的平台没有serdes, ov x8b的代码要怎么修改,可以直接出30fps的图像数据呢?
立昇估计是因为这个原因,直接修改了ov x8b的代码,但是只能出6fps图像数据。
另外有个疑问,为什么在sensor的代码中配置serdes 寄存器,而不是在serdes的代码中配置serdes自己的寄存器。这样是不是耦合起来了。如果有其他型号的serdes,还要修改所有sensor驱动的代码,增加其他serdes的配置。
我们修改了HMAX和VMAX的参数(如下),sensor可以输出30fps,但是J5 平台无法正常接收dphy数据。如何修改可以让J5平台正常接收dphy 数据
E/ ( 1599): [197.633987][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x380e value 0x54c
E/ ( 1599): [197.634659][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x380c value 0x3f5
E/ ( 1599): [197.635300][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x384c value 0x1ec
E/ ( 1599): [197.635956][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x388c value 0x1e7
E/ ( 1599): [197.636612][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x3808 value 0xf00
E/ ( 1599): [197.637268][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x380a value 0x870
E/ ( 1599): [197.637817][hb_i2c]:[hb_vin_i2c_read_reg16_data8][184]r16d8 read 1@0x36 0x326 value 0xce
E/ ( 1599): [197.638397][hb_i2c]:[hb_vin_i2c_read_reg16_data8][184]r16d8 read 1@0x36 0x323 value 0x2
E/ ( 1599): [197.639038][hb_i2c]:[hb_vin_i2c_read_reg16_data16][145]r16d16 read 1@0x36 0x324 value 0x195
E/ ( 1599): [197.639603][hb_i2c]:[hb_vin_i2c_read_reg16_data8][184]r16d8 read 1@0x36 0x32a value 0x4
E/ ( 1599): [197.640167][hb_i2c]:[hb_vin_i2c_read_reg16_data8][184]r16d8 read 1@0x36 0x32b value 0x4
I/ ( 1599): [197.640198][ov x8b]:HMAX = 1992, VMAX = 1356, width = 3840, height = 2160, lines_per_second = 40662, xclk = 24, fps = 29.987206
dmesg 错误打印
[ 3184.329203] ioctl sensor0 start 142
[ 3184.329236] vps mipi_host0: start cmd: 0 real
[ 3184.329243] vps mipi_host0: check hs reception
[ 3184.330249] vps mipi_host0: entry hs reception
[ 3184.330255] vps mipi_host0 stl: phychk done
[ 3184.330299] vps mipi_host0 stl: start done
[ 3184.330341] vps mipi_dev0: start cmd: 0 real
[ 3184.330360] vps mipi_dev0 stl: fifo full check done
[ 3184.330382] vps mipi_dev0 stl: start done
[ 3184.356037] vps mipi_host0: irq status 0x4
[ 3184.356048] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.356134] i2c i2c-1: i2c address 0x36 flags 0x0 len 2 reg 0x00
[ 3184.356146] i2c i2c-1:
[ 3184.389405] vps mipi_host0: irq status 0x4
[ 3184.389415] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.422728] vps mipi_host0: irq status 0x4
[ 3184.422736] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.456079] vps mipi_host0: irq status 0x4
[ 3184.456092] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.489402] vps mipi_host0: irq status 0x4
[ 3184.489416] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.522750] vps mipi_host0: irq status 0x4
[ 3184.522763] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.556119] vps mipi_host0: irq status 0x4
[ 3184.556133] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.589465] vps mipi_host0: irq status 0x4
[ 3184.589480] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.622837] vps mipi_host0: irq status 0x4
[ 3184.622850] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.656162] vps mipi_host0: irq status 0x4
[ 3184.656177] vps mipi_host0: bndry_frm_fatal: 0x1
[ 3184.689483] vps mipi_host0: irq status 0x4
[ 3184.689496] vps mipi_host0: bndry_frm_fatal: 0x1


