We have tested OV5640 on OrangePi2 but this was module without auto focus so I can not tell you whether autofocus works or not.
We have only modules without autofocus.
Resolution changing works ok, you can take pictutes in all supported by OV5640 resolutions including full 5MP photos.(This is the maximum supported resolution by both OV5640 and the CSI bus on OrangePi2)
See my first post to check how to connect OV5640 to OrangePi2.