]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: mipi-csis: Emit V4L2_EVENT_FRAME_SYNC events
authorStefan Klug <stefan.klug@ideasonboard.com>
Thu, 14 Mar 2024 09:36:50 +0000 (10:36 +0100)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 19 Apr 2024 10:34:40 +0000 (13:34 +0300)
commit58a5650fdc49bdc66b0bc123f22dbc683982987c
treeb2accc4078e7d49978c0c703bbd1ea2a3eda6b53
parent836e2548524d2dfcb5acaf3be78f203b6b4bde6f
media: mipi-csis: Emit V4L2_EVENT_FRAME_SYNC events

The Samsung CSIS MIPI receiver provides a start-of-frame interrupt and
a framecount register. As the CSI receiver is the hardware unit that lies
closest to the sensor, the frame counter is the best we can get on these
devices. In case of the ISI available on the i.MX8 M Plus it is also the
only native start-of-frame signal available.

This patch exposes the sof interrupt and the framecount as
V4L2_EVENT_FRAME_SYNC event on the subdevice.

It was tested on a Debix-Som-A with a 6.8-rc4 kernel.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Link: https://lore.kernel.org/r/20240314093652.56923-1-stefan.klug@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/platform/nxp/imx-mipi-csis.c