Open-source CSI-2 receiver for Xilinx UltraScale parts
Right now, this only supports the Sony IMX219 (aka the Raspberry Pi camera). In the Raspberry Pi configuration, it supports 2 data lanes and 10-bit RAW output.
This code is released under the GNU LGPL 3.0. That means you're welcome to use it however you want, but if you publish/sell a design based on a modified version of the code, then you need to share your changes to this code (but not the rest of your system).
Several others have created similar CSI-2 receivers: