PDAF functionality on TX2 VI

I am attempting to retrieve PDAF information parsed out of an embedded line in a camera sensor. However, I have not been able to find any examples or support documents detailing how to go about this. It appears that it should be present in a similar format to EBD data and could be parsed accordingly.

The vi4_fops driver does not appear to have any support for PDAF data though. This is being done with an IMX298 sensor, and using the v4l2 bypass for streaming data. Any help here is much appreciated!

hello ezaro,

to be honest, we don’t have reference drivers to include AutoFocus functions.
if your sensor complete phase detection and report the lens position to the register. you may have your own implementation in the sensor drivers to complete the functionality.
you may also refer to V4L2 CIDs for AutoFocus controls: /public_release/kernel_src/kernel/kernel-4.4/include/uapi/linux/v4l2-controls.h