TK1 MIPI CSI wait for SOF failed

Hello,

I’m going to develop camera driver with os05a20 image sensor on TK1 platform, with 4-lane configuration.
but an issue was raised:

[ 23.093730] video4linux video0: Wait for SOF failed!
[ 23.098777] video4linux video0: VI STATUS: 0x00000000
[ 23.103863] video4linux video0: PP STATUS: 0x00000000
[ 23.108943] video4linux video0: CILA STATUS: 0x00000000
[ 23.114202] video4linux video0: CILA CIL STATUS: 0x00000000
[ 23.119823] video4linux video0: CILB STATUS: 0x00000000
[ 23.125090] video4linux video0: CILB CIL STATUS: 0x00000000

Can anyone help me on this topic.How to debug this issue?

thanks and regards
Rahul Shah

All of the status were 0, it could be csi/vi didn’t get any validate frame data from MIPI bus.
You may need to probe the signal to make sure the MIPI signal is match the csi spec.

After some modification we have following error.In that status have values.

[ 28.398754] video4linux video0: Wait for write ACK failed!
[ 28.404299] video4linux video0: VI STATUS: 0x00000002
[ 28.409406] video4linux video0: PP STATUS: 0x000001b4
[ 28.414512] video4linux video0: CILA STATUS: 0x00000002
[ 28.419772] video4linux video0: CILA CIL STATUS: 0x00020020
[ 28.425389] video4linux video0: CILB STATUS: 0x00000002
[ 28.430663] video4linux video0: CILB CIL STATUS: 0x00020020

Looks like the sensor output size not as expect.
Have a check the TRM the CSI_CSI_PIXEL_PARSER_A_STATUS_0 show detail information.