From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jacopo Mondi <jacopo@jmondi.org>
Cc: slongerbeam@gmail.com, p.zabel@pengutronix.de,
shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com,
mchehab@kernel.org, hverkuil-cisco@xs4all.nl,
martin.kepplinger@puri.sm, rmfrfs@gmail.com,
xavier.roumegue@oss.nxp.com, alexander.stein@ew.tq-group.com,
dorota.czaplejewicz@puri.sm, kernel@pengutronix.de,
linux-imx@nxp.com, linux-media@vger.kernel.org,
linux-staging@lists.linux.dev,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 6/7] media: imx: imx-mipi-csis: Add BGR888
Date: Sun, 20 Feb 2022 10:29:52 +0200 [thread overview]
Message-ID: <YhH8ACutjvLW9hZo@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20220218183421.583874-7-jacopo@jmondi.org>
Hi Jacopo,
Thank you for the patch.
On Fri, Feb 18, 2022 at 07:34:20PM +0100, Jacopo Mondi wrote:
> Add support for the BGR888_1X24 image formats.
>
> The BGR888 format definition matches how pixel components are sent on
> the wire according to the CSI-2 specification.
A bit more information that you may want to capture, for readers who are
not familiar with this:
No existing media bus codes describe exactly the way data is transferred
on the CSI-2 bus. This is not a new issue, the CSI-2 YUV422 8-bit format
is described by MEDIA_BUS_FMT_UYVY8_1X16 which is an arbitrary
convention and not an exact match. Use the MEDIA_BUS_FMT_BGR888_1X24 to
follow the same convention, based on the order in which bits are
transmitted over the CSI-2 bus.
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
> drivers/media/platform/imx/imx-mipi-csis.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/media/platform/imx/imx-mipi-csis.c b/drivers/media/platform/imx/imx-mipi-csis.c
> index c7a771e3fdf3..fdf133f81c5b 100644
> --- a/drivers/media/platform/imx/imx-mipi-csis.c
> +++ b/drivers/media/platform/imx/imx-mipi-csis.c
> @@ -366,6 +366,11 @@ static const struct csis_pix_format mipi_csis_formats[] = {
> .data_type = MIPI_CSI2_DATA_TYPE_RGB565,
> .width = 16,
> },
> + {
}, {
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> + .code = MEDIA_BUS_FMT_BGR888_1X24,
> + .data_type = MIPI_CSI2_DATA_TYPE_RGB888,
> + .width = 24,
> + },
> /* RAW (Bayer and greyscale) formats. */
> {
> .code = MEDIA_BUS_FMT_SBGGR8_1X8,
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2022-02-20 8:30 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-18 18:34 [PATCH v2 0/7] media: imx: Destage imx7-mipi-csis Jacopo Mondi
2022-02-18 18:34 ` [PATCH v2 1/7] media: imx: De-stage imx7-mipi-csis Jacopo Mondi
2022-02-24 16:49 ` Adam Ford
2022-02-24 18:54 ` Jacopo Mondi
2022-02-18 18:34 ` [PATCH v2 2/7] media: imx: Rename imx7-mipi-csis.c to imx-mipi-csis.c Jacopo Mondi
2022-02-18 18:34 ` [PATCH v2 3/7] media: imx: imx7-media-csi: Use dual sampling for YUV 1X16 Jacopo Mondi
2022-02-20 8:16 ` Laurent Pinchart
2022-02-21 8:43 ` Jacopo Mondi
2022-02-21 8:49 ` Laurent Pinchart
2022-02-21 8:56 ` Jacopo Mondi
2022-02-18 18:34 ` [PATCH v2 4/7] media: imx: imx-mipi-csis: Set PIXEL_MODE for YUV422 Jacopo Mondi
2022-02-20 8:24 ` Laurent Pinchart
2022-02-18 18:34 ` [PATCH v2 5/7] media: imx: imx-mipi-csis: Add RGB565_1X16 Jacopo Mondi
2022-02-18 18:34 ` [PATCH v2 6/7] media: imx: imx-mipi-csis: Add BGR888 Jacopo Mondi
2022-02-20 8:29 ` Laurent Pinchart [this message]
2022-02-18 18:34 ` [PATCH v2 7/7] media: imx: imx-mipi-csis: Add output format Jacopo Mondi
2022-02-20 8:33 ` Laurent Pinchart
2022-02-20 10:06 ` [PATCH v2 0/7] media: imx: Destage imx7-mipi-csis Laurent Pinchart
2022-02-20 18:19 ` Adam Ford
2022-02-20 22:41 ` Laurent Pinchart
2022-02-21 7:58 ` Jacopo Mondi
2022-02-21 8:24 ` Laurent Pinchart
2022-02-21 8:46 ` Jacopo Mondi
2022-02-21 13:36 ` Adam Ford
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=YhH8ACutjvLW9hZo@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=alexander.stein@ew.tq-group.com \
--cc=dorota.czaplejewicz@puri.sm \
--cc=festevam@gmail.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo@jmondi.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=martin.kepplinger@puri.sm \
--cc=mchehab@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=rmfrfs@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=slongerbeam@gmail.com \
--cc=xavier.roumegue@oss.nxp.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