Hi @Prachi123,
Section "46.3.3 CSI-2 Rx Controller Core Data Types Formatting" of the RT1170 Reference Manual shows the supported data formats by the MIPI-CSI2 module, and RAW image format is not one of them. I'm sorry for the inconvenience this may cause.
A workaround is mentioned on the following post, perhaps you could take a look into it: Solved: Does the i.MX RT1160 MIPI-CSI2 support grayscale and RAW image sensor? - NXP Community
BR,
Edwin.