Packing 16 GMSL2 cameras into a single Z7-P development board and stitching them into a 4×4 image output over DisplayPort—the hard part isn't capture, it's aligning the data flow with the control flow: four deserializers, 16 VDMAs, and one Linux application. Any misconfiguration in any link and the image will be misaligned or black.
The experimental platform is an ALINX Z7-P with an FH9712 FMC expansion board, using four MAX96712 GMSL2 deserializers, each connected to four cameras, for 16 channels total. Each deserializer maps four video streams onto one MIPI CSI-2 link, distinguished by Virtual Channel. On the FPGA side, four MIPI CSI-2 RX Subsystems receive the streams, which are then split by virtual channel into 16 independent data streams and adapted to AXI-Stream format via stream_router and axis_subset_converter. This structure demonstrates one thing: the bottleneck for multi-channel GMSL input isn't SerDes bandwidth, but whether the multiplexing and demultiplexing of the CSI-2 lanes between the deserializer and the FPGA is clean.
For a 4×4 layout at 1920×1080, each camera occupies 480×270. The Video Cutter's horizontal count unit is the AXI-Stream beat; in this project each beat contains four pixels, so 480 pixels corresponds to 120 beats. Without understanding this detail, the crop window will be off. The 16 processed streams each go into one of 16 AXI VDMAs, each corresponding to a position in the layout, writing to the same DDR display buffer via different destination address offsets. VDMA0 corresponds to row 1, column 1; VDMA4 to row 2, column 1—the mapping is fixed.
PetaLinux provides the device tree, kernel drivers, rootfs, and cross-compilation environment; the Linux application opens /dev/dri/card0 via DRM/KMS, creates a 32-bit Dumb Buffer and sets it as the DisplayPort framebuffer, then retrieves the DMA address from DRM state information to configure the VDMAs. On the I2C side there's an address conversion: the register table uses the 8-bit write address 0x52, while the Linux I2C interface uses 7-bit addresses, requiring a right shift by one to 0x29; the I2C MUX handles switching between the four deserializers' channels to avoid address conflicts. Before running, the desktop display service must be stopped, otherwise the DisplayPort resource is occupied and the application cannot set the output. The program's startup parameter 584 is the GPIO base address for zynqmp_gpio on the current platform; this must be reconfirmed when changing boards.
This demo has direct reference value for engineers in China building multi-channel video boards: GMSL2 deserialization plus CSI-2 splitting is a common path in current automotive and robotics vision, and the MAX96712 register configuration, I2C address right-shift, and VDMA address offsets are all reusable engineering details. But it is not a product-grade solution—the bandwidth and latency pressure of 16 VDMAs writing to DDR simultaneously, whether serializer configuration needs supplementation when the camera combination changes, and the GPIO base address varying by platform all need re-verification on one's own board. The toolchain remains Vivado plus PetaLinux with no new dependencies introduced, so there's little motivation to switch approaches; what really deserves attention is deserializer supply and matching the camera module initialization tables.
Daily Briefing · Weekly Digest · Monthly Deep Dive