How to get csi video stream from ds90ub964

Hi everyone!
I have a camera board designed by myself.I used a ds90ub964 to deserialize the fpdlink-iii to CSI.I’ve detected the i2c slave device(with i2c address 0x30) with i2c-tools,and i can read and write the ds90ub964’s registers throuth i2cdump and i2cset commands.I have configed ds90ub964 to generate pattern,how can i test the csi stream on Jetson AGX Xavier?

hello sunzhongmeng,

may I know what’s the pixel formats of your bridge device outputting.
suggest you could running the v4l2-ctl application which using V4L2 IOCTL directly for testing.
please refer to [Release 32.1 Development Guide]-> Camera Software Development Solution chapter for details.

Hi,Jerry the pattern is 8 color bars with the format 720p/30/RGB888.
the v4l2 IOCTL example capture from a Bayer sensor with the format 1080p/30/RG10 like this:

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=ov5693.raw

but I don’t have driver ,so I can’t find video* in /dev.I just configured the ds90ub964 through the i2ctools.

hello sunzhongmeng,

DS90UB964 is one of Serializer/Deserializer device.
since it connected to Tegra’s CSI port, from software side still consider it as MIPI signaling.
in general, bridge driver also support test-pattern-generator.
you should enable TPG buffer to confirm the connection is functional, please also contact your bridge vendor to understand the configuration.

yes,ds90ub964 is deserializer device,I have configured it’s regs to generate pattern (according to the datasheet).
I have enableed the TPG:

sudo insmod /lib/modules/4.9.140-tegra/kernel/drivers/media/platform/tegra/tpg/nvhost-vi-tpg-t19x.ko

and then:

gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvoverlaysink -ev

there’s a pattern shows on the monitor.But i don’t think it’s the ds90ub964’s pattern.

hello sunzhongmeng,

that’s right, you had enable tegra-vi test-pattern-generator, which generated from CSI hardware.
please access [Xavier Series (SoC) Technical Reference Manual] from Jetson Download Center,
please refer to [Multimedia Complex]-> [MIPI Camera Serial Interface (CSI)]-> [NVCSI CORE Block Diagram] for the TPG unit.

you should contact with your vendor for the drivers and steps to configure DS90UB964.

I don’t think the TPG unit can test the CSI port of Xavier,

csi data is comming frome NVCSI CIL.
I have asked the vendor,they didn’t have the drivers for ds90ub964.