Posts: 1
Joined: Wed May 22, 2019 7:23 pm

CS-2 Camera Interface

Wed May 22, 2019 7:35 pm


A question about the MIPI CS-2 camera interface on the Compute Module/ Pi. I know that only 2 sensors are supported out of the box. I also know that the physical connector has the 4 data and 1 clock lane (D-PHY) and separate SDA/SCL I2C lanes. If I have a sensor that does not need configuration via the I2C and that is sending out data (a CS-2 TX with DPHY connection out) do I have a shot at grabbing the pixel data coming on the CS-2 interface. Is there software/driver available that allow capturing CSI-2 data from 1, 2 or 4 lanes and as long as the transmitter is CSI-2 compliant transmitter can I expect to receive the transmitted pixels on the CSI-2 interface?


Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8926
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: CS-2 Camera Interface

Thu May 23, 2019 8:13 am

Two options.
- via MMAL. See viewtopic.php?f=43&t=109137
- use the kernel V4L2 driver - ... rm/bcm2835 and device tree bindings at ... unicam.txt. That does expect to have a sensor subdevice driver to control the source, so you'd need to create a dummy one that did nothing on command. The main thread discussing that is viewtopic.php?f=38&t=120702 for the Toshiba TC358743, but it has ballooned out to 23 pages!
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Compute Module”