1

media: imx283: Add 3/3 binning mode

IMX283 supports 12-bit 3/3 binning mode with 1824x1216 resolution.
Introduce the mode config for the same.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
Umang Jain 2024-08-13 11:22:00 +05:30 committed by Hans Verkuil
parent 393556c9f5
commit f2b0effa9d

View File

@ -465,6 +465,39 @@ static const struct imx283_mode supported_modes_12bit[] = {
.horizontal_ob = 48, .horizontal_ob = 48,
.vertical_ob = 4, .vertical_ob = 4,
.crop = {
.top = 40,
.left = 108,
.width = 5472,
.height = 3648,
},
},
{
/*
* Readout mode 3 : 3/3 binned mode (1824x1216)
*/
.mode = IMX283_MODE_3,
.bpp = 12,
.width = 1824,
.height = 1216,
.min_hmax = 1894, /* Pixels (284 * 480MHz/72MHz + padding) */
.min_vmax = 4200, /* Lines */
/* 60.00 fps */
.default_hmax = 1900, /* 285 @ 480MHz/72Mhz */
.default_vmax = 4200,
.veff = 1234,
.vst = 0,
.vct = 0,
.hbin_ratio = 3,
.vbin_ratio = 3,
.min_shr = 16,
.horizontal_ob = 32,
.vertical_ob = 4,
.crop = { .crop = {
.top = 40, .top = 40,
.left = 108, .left = 108,