Hello:
I know how to configure raw8 at device-tree,but not sure about raw12,can anyone check it for me? thanks.
we have 4 cameras. each camera use 2 lanes. the CSI2 Speed is 375Mbps/lane . Hs Byte clock is 46.875 Mhz.
my sensor is ar0134,we use the monochrome mode,the output is gray(12bits).
I just not sure about vi_peak_byte_per_pixel and isp_peak_byte_per_pixl ,from the mipi alliance specifition for csi2(page 93), if the format is raw12, 2 pixels will translate with 3 byte.
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1280/800
Pixel Format : 'Y12 '
Field : None
Bytes per Line : 2560
Size Image : 2048000
Colorspace : Raw
Transfer Function : Default (maps to None)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_STREAMON: ok
Index : 0
Type : Video Capture
Flags : mapped, done, error
Field : None
Sequence : 0
Length : 2048000
Bytesused: 2048000
Timestamp: 0.000000s (Monotonic, End-of-Frame)
VIDIOC_DQBUF: failed: Input/output error
VIDIOC_STREAMOFF: ok
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1280/800
Pixel Format : 'Y12 '
Field : None
Bytes per Line : 2560
Size Image : 2048000
Colorspace : Raw
Transfer Function : Default (maps to None)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_STREAMON: ok
Index : 0
Type : Video Capture
Flags : mapped, done, error
Field : None
Sequence : 0
Length : 2048000
Bytesused: 2048000
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 1
Type : Video Capture
Flags : mapped, done, error
Field : None
Sequence : 1
Length : 2048000
Bytesused: 2048000
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 2
Type : Video Capture
Flags : mapped, done
Field : None
Sequence : 2
Length : 2048000
Bytesused: 2048000
Timestamp: 0.000000s (Monotonic, End-of-Frame)
VIDIOC_STREAMOFF: ok
I have faced the problem many weeks.
I mean the "PXL_SOF syncpt timeout! err = -11 , status 4". dqbuf failed.
our data process is ar0134--->tc358748a--->tx2.I extended the tx2's code about raw8 and raw12.
the tc358748a has two mode: debug mode and work(normal) mode.
I let tc358748a enter debug mode to output raw8 data (1280*800),I can get the picture successfully from v4l2 interface.but when the tc358748a enter work mode,I just can get 768*800,if the width bigger than 768,I will faced the "status 4, dqbuf failed".
It seems my configuration & extended about raw8 are all right,because I can get the tc358748a's debug mode output(1280*800),but toshiba(tc358748a)'s FAE let me change the csi configuration of tx2's.so I have this question:
The trace show the short line. That could be the data type is incorrect or the output width is less as expect.
Did you modify the VI/CSI driver to support this sensor’s output pixel format?