media: imx: imx-mipi-csis: Set PIXEL_MODE for YUV422
authorJacopo Mondi <jacopo@jmondi.org>
Mon, 21 Feb 2022 17:47:24 +0000 (18:47 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 23 Feb 2022 07:53:07 +0000 (08:53 +0100)
commit8635b5bc2f6a27da8efca4c4a7bae717398092ed
tree98d8976dd3cfa2a7e39ae92ab58b3760ff32f0b5
parent9babbbaaeb87dee9a9a10dd2923b173902acf7ea
media: imx: imx-mipi-csis: Set PIXEL_MODE for YUV422

Bits 13 and 12 of the ISP_CONFIGn register configure the PIXEL_MODE
which specifies the sampling size, in pixel component units, on the
CSI-2 output data interface when data are transferred to memory.

The register description in the chip manual specifies that DUAL mode
should be used for YUV422 data.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/imx/imx-mipi-csis.c