GMSL primer · 5
Reference design: camera to SoC
One camera, one coax, one SoC, drawn at the level of the pins you route on the schematic. Every numbered pin below has a note on what it does and what tends to go wrong with it.
Pin names follow ADI's GMSL2 convention and the roles carry over to GMSL3 parts (MAX96793 / MAX96792A) and to multi-link deserializers. Which MFP carries which function, exact supply ranges, strapping tables and pin numbers differ by part, so take those from the datasheet and user guide of the parts you use.
Reference block diagram
Zoom in: imager to serializer
On the camera board the sensor and serializer are a few centimetres apart, often on two stacked boards joined by a board-to-board connector. Beyond the CSI-2 lanes, the serializer gives the sensor everything it needs to run: its clock, its reset, its control bus and its frame trigger.
FunctionSource-synchronous DDR clock: data is sampled on both edges, so the clock runs at half the lane bit rate (1.25 GHz for 2.5 Gb/s lanes). Between bursts it either keeps toggling in HS mode (continuous clock) or drops to LP-11 (non-continuous).
DesignSet the serializer to the clock mode the sensor uses; continuous clock is the safer default on long frames. The clock lane is at a fixed position on the receiver, so it is the pair to route first; only data lanes can be remapped. It is the timing reference for every data lane, so match data-lane lengths to it, not to each other.
FunctionCSI-2 packets striped byte by byte across the active lanes. Each lane switches between HS mode (low-swing differential, 80 Mb/s up to 2.5 Gb/s on D-PHY v1.2) for payload and LP mode (1.2 V single-ended) for start/end of transmission and escape signalling.
DesignLane count and per-lane rate must agree on both ends, and lanes × rate must exceed the sensor's pixel rate plus blanking and packet overhead. Above 1.5 Gb/s per lane the D-PHY spec requires a deskew sequence from the transmitter; enable it in the sensor if the receiver expects it. Use the serializer's lane-mapping and per-lane polarity registers instead of crossing pairs or adding vias. Unused lanes: leave the pins as the datasheet says (usually unconnected) and disable them in registers.
FunctionThe SoC's commands for the sensor cross the link on the reverse channel and come out of the serializer here, which masters the local bus. The module EEPROM (calibration, serial number) usually shares it.
DesignOne set of pull-ups for the bus, to the 1.8 V I/O rail; 2.2–4.7 kΩ suits 400 kHz with a few loads, lower values for 1 MHz. Check address conflicts among sensor, EEPROM and serializer. If the sensor has an address-select pin, strap it; with identical cameras on one deserializer, use serializer address translation so each sensor gets a unique alias on the SoC side.
FunctionReference for the sensor's internal PLL, which in turn sets the pixel clock and the CSI-2 bit rate. The serializer derives it from the link-recovered clock, so the camera needs no crystal and is frequency-locked to the deserializer.
DesignOnly MFP2 or MFP4 can output RCLKOUT on the MAX96717. Program a frequency the sensor accepts (24, 25 or 27 MHz are common) and route it as a clock: short, series resistor at the serializer, ground on both sides, away from the D-PHY pairs. The clock must be running before reset is released.
FunctionHolds the sensor in reset. The SoC drives it remotely: a GPIO on the deserializer side is forwarded across the link to a serializer MFP, or software writes the serializer's GPIO register.
DesignA pull-down keeps the sensor in reset from power-up until software releases it, which keeps the sequence right: rails, then INCK, then XCLR high, then I²C. Set the MFP's default output state so it does not glitch high when the serializer boots.
FunctionStarts an exposure or a frame in slave/trigger mode. The pulse originates at the deserializer or SoC and is forwarded through the reverse channel.
DesignFixed latency matters more than small latency: use the GPIO forwarding mode with constant delay, and configure the same MFP on every camera. Match the polarity and pulse width the sensor wants and put the sensor in the matching slave mode.
FunctionSafety-rated automotive sensors flag internal faults (register CRC, temperature, embedded-data checks) on a pin. A serializer MFP set as input forwards it to the deserializer and on to the SoC.
DesignRoute it if the sensor has one and the system has a safety goal for the camera: it reaches the SoC much faster than polling I²C. Mind the pin's drive type (open drain needs a pull-up) and polarity.
FunctionThe sensor typically needs an analog rail (around 2.8 V), a digital core rail (around 1.1–1.2 V) and a 1.8 V interface rail; the serializer needs core, 1.8 V and VDDIO. All come from the PoC-fed buck and LDOs.
DesignSensor OVDD and serializer VDDIO must be the same voltage, since the I²C, clock, reset and sync signals connect directly. Follow the sensor's power-up order (often analog and I/O before core, or as its datasheet states) and keep the sensor's analog rail on a quiet LDO, because ripple shows up as image noise. Solid ground plane under both parts; the D-PHY pairs reference it end to end.
Settings that must agree: sensor and serializer
| Setting | Sensor | Serializer | If they disagree |
|---|---|---|---|
| Lane count | CSI-2 output lanes | Active RX lanes | No or corrupted packets |
| Per-lane bit rate | Set by sensor PLL from INCK | Within RX range (≤ 2.5 Gb/s on MAX96717) | Receiver cannot lock |
| Clock mode | Continuous or non-continuous | Configured to match | Intermittent frame loss |
| Data type and bit depth | RAW10 / RAW12 / YUV422 … | Pipe bpp and data-type filter | Frames dropped or mis-packed |
| Virtual channel | VC ID in packet header | Passed or remapped per pipe | Streams collide downstream |
| Lane order and polarity | Fixed by sensor pinout | Lane map and polarity registers | ECC/CRC errors on every packet |
| Deskew (> 1.5 Gb/s) | Deskew burst enabled | Deskew calibration enabled | Errors that grow with rate or temperature |
| I/O voltage | OVDD | VDDIO | Logic levels out of spec, leakage |
Zoom in: deserializer to SoC
On the compute board the deserializer acts as a CSI-2 camera with several virtual channels. The SoC sees one CSI-2 port, one I²C device behind which all remote devices sit, and a few GPIOs that report link state and carry sync.
FunctionThe deserializer's own D-PHY transmitter now sources the clock. Its rate is set by the deserializer's MIPI PLL, independent of the camera-side rate.
DesignChoose a rate the SoC receiver supports and that carries every camera on the port. Many SoC drivers expect continuous clock; set it to match. On SoCs that build a 4-lane port from two 2-lane blocks (Jetson CSI, for example), the clock goes to the lane position the SoC defines for that port. Check the pin-mux and device-tree port assignment against the schematic.
FunctionCarries the merged video of every linked camera; each stream keeps its own CSI-2 virtual channel (and data type) so the SoC can separate them.
DesignSize the lanes for the sum: cameras × (pixel rate + blanking) + overhead, with margin. Above 1.5 Gb/s per lane, enable the deskew sequence only if the SoC receiver supports it. This route is usually longer than the camera-side one and may cross a board-to-board connector, so check insertion loss and skew against the SoC layout guide. Map lanes and polarity in the deserializer or the SoC, whichever supports it, rather than crossing pairs.
FunctionThe SoC programs the deserializer here and reaches every serializer, sensor and EEPROM through it.
DesignPull-ups to the SoC's I/O rail, which the deserializer VDDIO must equal. Give each deserializer a unique address (CFG pins) if several share a bus, or put them on separate buses. Remote transactions are slower because they cross the link, so set driver timeouts accordingly and keep the bus at a rate the remote side can also run.
FunctionPower-down and reset of the deserializer. Its rising edge also latches the CFG strapping.
DesignPull-down so the deserializer stays off while the SoC boots and its GPIOs are undefined; release only after the deserializer rails are stable. Toggling it is the cleanest way to recover the whole camera chain.
FunctionHigh when the GMSL link has locked and is passing data.
DesignPull-up to the 1.8 V I/O rail, plus a test point or LED. Software reads it before touching remote devices; if it is low, the fault is on the link side (strapping, channel, PoC), not in the CSI-2 path.
FunctionFlags link errors (decode, CRC, loss of lock) and forwarded remote faults.
DesignPull-up, routed to an interrupt-capable input. Several deserializers can wire-OR onto one line. Software reads the error registers in the handler; these counters are also the tool for margin testing during cable flex and EMC.
FunctionExternal frame-sync source, forwarded to every serializer (A6). The deserializer can also generate it internally.
DesignDrive it from a hardware timer or a PTP-disciplined PPS so exposures line up with the vehicle time base. Keep it a clean, low-skew digital route; jitter here becomes exposure-time jitter on every camera.
FunctionNot a deserializer pin, but part of the same interface: the SoC turns each camera's power on and off and reads back faults.
DesignOne enable per port lets software power-cycle a single camera. Fault (open drain) and, if available, current monitor (to an ADC) let it tell open, short and overload apart. Default the enable off until the SoC is ready, so cameras are not powered into a deserializer held in reset.
FunctionCore, 1.8 V analog/PHY and VDDIO.
DesignVDDIO equals the SoC's I/O voltage. Avoid back-powering: if the SoC can drive I²C or GPIO while the deserializer is unpowered (or the reverse), current flows through the ESD diodes; keep both on rails that come up together, or add isolation. Solid reference plane under the CSI-2 route from deserializer to SoC.
Settings that must agree: deserializer and SoC
| Setting | Deserializer | SoC | If they disagree |
|---|---|---|---|
| Lane count | CSI-2 TX lanes per port | Port width in pin-mux / device tree | No capture |
| Per-lane bit rate | MIPI PLL setting | Receiver range and its settle-time setting | Receiver errors, no lock |
| Aggregate bandwidth | Sum of all linked cameras | Port and ISP throughput | Back-pressure, dropped frames |
| Clock mode | Continuous or non-continuous | What the driver expects | Intermittent capture failure |
| Virtual channels | VC assigned per camera | VC → capture channel mapping | Wrong camera on wrong stream |
| Data type | Passed through or remapped | Capture format | Corrupt images |
| Lane order and polarity | Lane map / polarity registers | Lane swap support, if any | ECC/CRC errors |
| Control I/O | I²C address, VDDIO | Bus, pull-up rail, GPIO numbers | Driver probe fails |
D-PHY rules that apply to both links
| Property | Value (D-PHY v1.2) | What it means for the board |
|---|---|---|
| HS differential swing | 140–270 mV | Small signal: keep aggressors and switching nodes away |
| HS common mode | 150–250 mV | DC-coupled only; no series AC capacitors |
| LP levels | 0 / 1.2 V single-ended | Each wire also needs a controlled single-ended impedance |
| HS termination | 100 Ω on-die, switched in only in HS | No external termination resistors |
| Lane rate | 80 Mb/s – 2.5 Gb/s | Deskew required above 1.5 Gb/s |
| Reach | Board-level, tens of cm | Use GMSL, not longer D-PHY, to leave the board |
- Impedance: 100 Ω differential (±10%) for every pair, with each trace also near 50 Ω to ground for LP mode.
- Matching: tight within a pair (typical target ≤ 0.1 mm), and each data lane to the clock lane within the receiver's skew budget (at 2.5 Gb/s a UI is 400 ps; a target of about 1 mm of mismatch keeps skew under 10 ps).
- Uniformity: all lanes of a port on the same layer with the same number of vias; ground stitching vias next to every signal via.
- Reference: continuous ground under the whole route, no plane splits or slots; through a board-to-board connector, interleave ground pins (G-S-S-G) and keep the pair on adjacent pins.
- No stubs: no test-point branches or unused footprints on the pairs; if probing is needed, use small pads directly on the trace.
- Separation: keep pairs at least three trace widths from each other and further from INCK/RCLKOUT, switching regulators and inductors.
- Protection: internal on-board links normally carry no ESD parts; if a connector exposes them, use parts rated for multi-Gb/s with sub-picofarad capacitance.
Pin by pin
Sensor to serializer
On the camera board, inches apart. These five connections are what the serializer needs from, and gives to, the sensor.
FunctionMIPI D-PHY receiver: one clock lane and one to four data lanes carrying CSI-2 packets. On the MAX96717 each lane runs up to 2.5 Gb/s.
DesignRoute as 100 Ω differential pairs with tight P/N matching and lane-to-clock skew inside the D-PHY budget; no stubs, test points or vias that can be avoided. Use the serializer's lane-swap and polarity-swap registers to untangle routing instead of crossing pairs. Check that the sensor's output rate fits the link payload (about 6 Gb/s minus packet overhead on GMSL2). Every connection on this side is detailed in Zoom in: imager to serializer.
FunctionThe serializer's I²C port. I²C transactions the SoC sends to the deserializer for remote addresses come out here, with the serializer acting as master to the sensor and module EEPROM. The same pins carry UART when strapping selects it, hence the names.
DesignPull-ups to the same VDDIO as the sensor's I/O (usually 1.8 V); size them for the bus capacitance and the chosen I²C speed. The sensor's 7-bit address must not collide with the serializer's. With several identical cameras on one deserializer, set address translation in each serializer so the SoC sees unique addresses.
FunctionReference clock for the sensor PLL. The serializer has no crystal: its clock is recovered from the link (reference over reverse), so the sensor ends up frequency-locked to the deserializer's crystal. Only MFP2 and MFP4 can be RCLKOUT on the MAX96717.
DesignTreat it as a clock: short trace, series resistor at the source, away from the CSI-2 pairs. Confirm the frequency the RCLKOUT divider can produce matches one the sensor PLL accepts. Because every camera is locked to one crystal, this pin is half of multi-camera synchronization.
FunctionSensor reset, driven by a GPIO the SoC controls across the link.
DesignAdd a pull-down at the sensor so it stays in reset until the link is up and software releases it. Follow the sensor's own order: rails, then clock, then reset release. Decide the GPIO's default state at power-up, before any register writes reach it.
FunctionFrame-sync pulse that came down the reverse channel from the deserializer. It starts the sensor's exposure in slave or trigger mode.
DesignConfigure the GPIO for low-latency forwarding so the delay is fixed and equal on every camera; fixed matters more than small. Check the sensor's trigger polarity and mode. Pick an MFP with no other function you need.
Serializer: link, strapping, power
The pins that face the cable and the ones that decide how the part wakes up.
FunctionThe link pin. Forward video leaves here and the 187.5 Mb/s reverse channel arrives here, full duplex, through a series AC-coupling capacitor to the coax center conductor.
DesignThis trace is the channel: 50 Ω from pin to connector, as short as possible, no stubs. Put the AC-coupling capacitor close to the pin and the PoC tap on the connector side of it, so DC never reaches the IC. Use a small, high-self-resonance capacitor of the value ADI's channel specification gives, and void the reference plane under the capacitor and connector pads to cut their excess capacitance. Return loss of this short section is a large share of the link budget.
FunctionIn coax mode, the unused half of the differential driver. It is AC-coupled to ground through 49.9 Ω close to the pin. In STP mode it is the second wire of the 100 Ω pair.
DesignNever float it or short it straight to ground. Lay it out as the mirror of SIOP (same capacitor, same pad geometry) so the driver sees a balanced load and common-mode noise stays low.
FunctionEach pin reads the ratio of a resistor divider at power-up and decodes it into settings: I²C or UART control, device address, coax or STP, and link rate.
DesignUse 1% resistors from the datasheet table and the supply the datasheet names. The value is sampled once, so the rail must be settled when PWDNB rises. Wrong strapping is a common reason a new board never locks: a 3 Gb/s serializer will not talk to a deserializer expecting 6 Gb/s.
FunctionLow holds the part in power-down and reset; rising edge starts it, including the CFG sampling.
DesignOn a camera module there is usually no host GPIO, so pull it up with an RC delay that releases it after the regulators are stable. Never leave it floating.
FunctionCore, 1.8 V analog/PHY and I/O rails. VDDIO sets the logic level of the I²C and MFP pins.
DesignOn the camera these come from a buck and LDOs fed by PoC, so PoC ripple and load steps reach the link PLL if filtering is thin. Decouple every pin as the datasheet shows, keep the 1.8 V PHY rail quiet, follow the stated sequencing, and stitch the exposed pad to ground with a via array for both return current and heat.
Cable, connector and power over coax
Not IC pins, but they sit directly on pins 6 and 11 and decide whether those pins see a clean 50 Ω channel.
FunctionInductor chain and ferrite that pass DC to the camera while looking like an open circuit to the link signals.
DesignHigh impedance from the lowest reverse-channel frequency (a few MHz) to the top of the forward channel (GHz), which needs several parts in series. It must not saturate at camera current including inrush. Place it right at the connector so the tap adds no stub to the signal path.
FunctionProtected switch (eFuse or high-side driver with current sense) feeding the camera through the same kind of inductor network.
DesignCurrent sense and limit detect open, short-to-ground and short-to-battery per camera port, and the switch lets software power-cycle a camera. Soft-start to handle the camera's input capacitance. Same filter rules as C1.
FunctionFAKRA or HMTD 50 Ω connectors and the coax itself; ESD protection at each connector.
DesignInsertion and return loss of the whole path must meet ADI's channel specification at the link rate. ESD parts must add very little capacitance (sub-picofarad) at GHz; ST AN6331 covers selection. Ground the shield at the connector to the chassis or reference ground the way the EMC plan says.
Deserializer: link and clock
The ECU end of the cable, and the one crystal every camera follows.
FunctionReceives forward video and transmits the reverse channel, full duplex, through an AC-coupling capacitor and the ECU PoC tap.
DesignSame rules as pin 6. On dual and quad deserializers (MAX96716A, MAX96712) give every port the same topology and length so one set of equalizer settings works for all, and keep ports away from each other to limit crosstalk.
FunctionCoax mode: AC-coupled 49.9 Ω termination to ground. STP mode: second wire of the pair.
DesignSame as pin 7, mirrored on every port.
FunctionCrystal oscillator pins. This crystal is the clock root for the deserializer, every serializer behind it and, through RCLKOUT, every sensor.
DesignLoad capacitors per the crystal and datasheet, short traces, ground guard, nothing routed underneath. Budget its ppm tolerance and aging against the link. To share timing across several deserializers, drive X1 from one 25 MHz oscillator instead.
Deserializer to SoC
On the compute board, where the camera stops being a GMSL problem and becomes a CSI-2 and I²C one.
FunctionMIPI D-PHY transmitter, one clock and up to four data lanes, carrying the video of every linked camera as CSI-2 virtual channels.
DesignSame D-PHY routing rules as pin 1, often over a longer path to the SoC, so check loss and skew. Set lane count and rate to carry the sum of all cameras plus blanking. Map to the right SoC CSI port and lane order, and match the SoC's clock-mode requirement (continuous or non-continuous). Every connection on this side is detailed in Zoom in: deserializer to SoC.
FunctionThe SoC programs the deserializer here, and reaches each serializer and sensor through it.
DesignPull-ups to the SoC's I/O voltage, which VDDIO must match. Remote accesses take longer than local ones because they cross the reverse channel, so driver timeouts and clock stretching need to allow for it. Give each deserializer on a shared bus a unique address with CFG.
FunctionActive-low power-down and reset for the deserializer and its links.
DesignLet the SoC hold it low until rails are up, then release it; a pull-down keeps the part off during SoC boot. Toggling it is the cleanest full reset of the camera chain.
FunctionHigh when the link has locked and is passing data.
DesignPull-up to VDDIO, route to a SoC input and to a test point or LED. It is the first thing to check when a camera is dark: no lock means a channel, strapping or power problem, not software.
FunctionActive-low error flag: decoding or CRC errors, link loss, remote faults.
DesignPull-up to VDDIO; several deserializers can share one wire-ORed line. Wire it to an interrupt and have software read the error counters, which also make the best margin test during cable flex and EMC runs.
FunctionExternal frame-sync source. The deserializer forwards it to every serializer as a reverse-channel GPIO (pin 5).
DesignDrive it from a timer or a PTP-disciplined pulse so camera exposures line up with the rest of the vehicle's time base. The deserializer can also generate FSYNC itself if no external source is needed.
Deserializer: strapping and power
FunctionResistor dividers read at power-up: control interface, I²C address, cable type and link rate.
DesignSame rules as pin 8. The strapped rate must match every serializer on that deserializer, and the address must be unique on the SoC's I²C bus.
FunctionCore, 1.8 V analog/PHY and I/O rails from the ECU's regulators.
DesignKeep the 1.8 V PHY rail quiet and separate from noisy loads; decouple per the datasheet. A multi-link deserializer dissipates noticeably more than a serializer, so the exposed pad needs a real thermal path into the board.
Bring-up order
- Power. PoC switch on, camera input current within the expected range; camera rails up. ECU deserializer rails up, crystal running.
- Release PWDNB on the deserializer (the camera releases itself through its RC). Both parts sample CFG at this moment.
- LOCK. If it stays low: check strapping (rate and cable type match on both ends), the AC caps and SION terminations, PoC filter, and the channel.
- Control path. Read the deserializer, then the serializer across the link, then the sensor's ID register. A failure at the last step points at pin 2 pull-ups, address, or the sensor still in reset (pin 4) or without clock (pin 3).
- Video. Start the sensor stream, then the deserializer CSI-2 output. Check CSI-2 errors on the SoC side and the GMSL error counters (ERRB) while flexing the cable.
- Sync. Enable FSYNC forwarding and confirm all cameras expose together, for example by imaging the same LED blink.
Schematic review checklist
- AC-coupling capacitor on every SIOP and SION, PoC tap on the cable side of it.
- SION terminated through a capacitor and 49.9 Ω in coax mode, on both ends.
- CFG dividers match the intended rate, cable type and addresses on both ends.
- VDDIO on each part matches the logic it talks to: sensor on the camera, SoC on the ECU.
- I²C pull-ups present on both buses; no address collisions after translation.
- RCLKOUT on a pin that supports it, at a frequency the sensor accepts.
- Sensor reset pulled to its safe state by default.
- LOCK and ERRB pulled up and wired to the SoC, with test points.
- PoC: current limit and diagnostics per port, inductor current rating above worst-case camera load.
- Low-capacitance ESD at every connector; 50 Ω footprint with plane voids under pads.
Questions to practice
Why does the camera module have no crystal?
The serializer recovers its reference from the reverse channel and passes it to the sensor through RCLKOUT. That saves a part, and it means every camera on the deserializer runs from the same 25 MHz crystal, which frame sync needs.
Where does the AC-coupling capacitor go relative to the PoC inductor?
Between the IC pin and the PoC tap. The cable side carries DC; the IC side must not. Put the other way round, the PoC voltage would sit on the link pin.
The new board powers up but never locks. What do you check first?
That CFG strapping on both ends agrees on rate and cable type, then the AC caps and SION terminations, then PoC voltage at the camera, then the channel's return loss.
The link locks but the sensor never answers on I²C.
Check the sensor is out of reset and has its clock (RCLKOUT enabled, right frequency), then pull-ups and voltage on the camera-side I²C bus, then address collisions or missing address translation.