I have an ov5640 and an imx8mp board in my hand. I wonder if there are any corresponding methods and tools to tuning ISP.
There is ov5640_mipi_v2.c for the i.MX8 series, here you need make the camera proper hardware connection to your board first.
Can I get ov5640_mipi_v2.c in imx8mp BSP image?
Yes, you can get it, ./drivers/media/platform/mxc/capture/ov5640_mipi_v2.c.