From: Kieran Bingham <kieran.bingham@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Umang Jain <umang.jain@ideasonboard.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
Umang Jain <umang.jain@ideasonboard.com>
Subject: Re: [PATCH] media: imx283: Add 3/3 binning mode
Date: Thu, 15 Aug 2024 11:50:21 +0100 [thread overview]
Message-ID: <172371902103.129190.2742499360622510193@ping.linuxembedded.co.uk> (raw)
In-Reply-To: <20240813-imx335-binned-mode-v1-1-edbb3718ab0f@ideasonboard.com>
Quoting Umang Jain (2024-08-13 06:52:00)
> 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>
> ---
> Patch to introduce 3/3 binning mode - 1824x1216 12-bit output.
> ---
> drivers/media/i2c/imx283.c | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/drivers/media/i2c/imx283.c b/drivers/media/i2c/imx283.c
> index 8490618c5071..94276f4f2d83 100644
> --- a/drivers/media/i2c/imx283.c
> +++ b/drivers/media/i2c/imx283.c
> @@ -465,6 +465,39 @@ static const struct imx283_mode supported_modes_12bit[] = {
> .horizontal_ob = 48,
> .vertical_ob = 4,
>
> + .crop = {
I still wonder if these crops for full resolution mode can be set as:
.crop = imx283_active_area,
But that's a separate patch/discussion.
> + .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,
> +
Everything there matches my expectations and the datasheet:
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> .crop = {
> .top = 40,
> .left = 108,
>
> ---
> base-commit: 68a72104cbcf38ad16500216e213fa4eb21c4be2
> change-id: 20240813-imx335-binned-mode-98b2b7ee5ba0
>
> Best regards,
> --
> Umang Jain <umang.jain@ideasonboard.com>
>
prev parent reply other threads:[~2024-08-15 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 5:52 Umang Jain
2024-08-15 10:50 ` Kieran Bingham [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=172371902103.129190.2742499360622510193@ping.linuxembedded.co.uk \
--to=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=umang.jain@ideasonboard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®