MIPI CSI couldn't support raw data directly, you need to convert the raw data to RGB or YUV by SW, what bayer data you need? we don't have such sample code for cutomer, but you can set the CSI register, for more detailed information, pls refer to the Reference Manual.