CSI-2 Circuit Design

Design

Hey all,

For a university project I am working on a wearable timelapse camera that features three cameras facing different angles. For this, I am working on a circuit that multiplexes 3 camera's into the single FFC connector on a Raspberry Pi Zero. In this process I've read the basics of MIPI CSI-2 D-PHY but still one thing is unclear to me.

The three camera's I'm trying to multiplex have the following pinout:

  1. CAM_GND
  2. CAM_D0_N
  3. CAM_D0_P
  4. CAM_GND
  5. CAM_D1_N
  6. CAM_D1_P
  7. CAM_GND
  8. CAM_CK_N
  9. CAM_CK_P
  10. CAM_GND
  11. CAM_IO0
  12. CAM_IO1
  13. CAM_SCL
  14. CAM_SDA
  15. CAM_3V3

I am wondering how delay matching with the MIPI CSI-2 works. I understand that the three differential pairs should be length-matched in order to match their respective delays. However, does this also mean that per MIPI connection (i.e. per camera) the D1 lane, D2 lane and clock lane should be length matched?

For example, would it work if for example the length of these connections are:

D0_N: 20 mm

D0_P: 20 mm

D1_N: 25 mm

D1_P: 25 mm

CK_N: 30 mm

CK_P: 30 mm

Or should I strive towards an equal length of all traces:

D1_N: 30 mm

D1_P: 30 mm

D2_N: 30 mm

D2_P: 30 mm

CK_N: 30 mm

CK_P: 30 mm

Thanks for any and all help. I've read up on design guidelines here but found little specific info (I'm still incorporating clearance rules, ground plane integrity etc. in my design). However, the full MIPI CSI-2 specs are a bit above my level to fully understand.

Also in general I'm curious precisely HOW fidgety the delay- and impedance matching is in this situation. As I understand it, the Picam communicates at 2 Gbps; is there a rule of thumb for how this translates to a tolerable length discrepancy of said traces? Or should I not worry about this and could I also first breadboard my design to verify?

The latter (a breadboarded prototype) would be a logical first step I'd usually take but I'm not sure if that would make sense in this scenario.

Posted Jul 12, 2018, 6:16 PM UTC

219
Loading comments…