From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
To: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/3] media: uapi: Add 24-bit bayer media bus formats
Date: Mon, 16 Nov 2026 14:48:42 +0100 [thread overview]
Message-ID: <avsJizTNF2Z-R1fr@zed> (raw)
In-Reply-To: <20260908-v4l2-add-raw-mbus-v1-2-6973bffa5b80@ragnatech.se>
On Tue, Sep 08, 2026 at 10:02:57PM +0200, Niklas Söderlund wrote:
> Prepare for adding Renesas R-Car Gen5 video capture drivers which will
> support 24-bit bayer formats.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> .../userspace-api/media/v4l/subdev-formats.rst | 132 +++++++++++++++++++++
> include/uapi/linux/media-bus-format.h | 6 +-
> 2 files changed, 137 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst
> index 892562ab48de..39396931e726 100644
> --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
> +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
> @@ -4178,6 +4178,138 @@ organization is given as an example for the first pixel only.
> - r\ :sub:`2`
> - r\ :sub:`1`
> - r\ :sub:`0`
> + * .. _MEDIA-BUS-FMT-SBGGR24-1X24:
> +
> + - MEDIA_BUS_FMT_SBGGR24_1X24
> + - 0x3025
> + -
> + -
> + -
> + -
> + -
> + - b\ :sub:`23`
> + - b\ :sub:`22`
> + - b\ :sub:`21`
> + - b\ :sub:`20`
> + - b\ :sub:`19`
> + - b\ :sub:`18`
> + - b\ :sub:`17`
> + - b\ :sub:`16`
> + - b\ :sub:`15`
> + - b\ :sub:`14`
> + - b\ :sub:`13`
> + - b\ :sub:`12`
> + - b\ :sub:`11`
> + - b\ :sub:`10`
> + - b\ :sub:`9`
> + - b\ :sub:`8`
> + - b\ :sub:`7`
> + - b\ :sub:`6`
> + - b\ :sub:`5`
> + - b\ :sub:`4`
> + - b\ :sub:`3`
> + - b\ :sub:`2`
> + - b\ :sub:`1`
> + - b\ :sub:`0`
> + * .. _MEDIA-BUS-FMT-SGBRG24-1X24:
> +
> + - MEDIA_BUS_FMT_SGBRG24_1X24
> + - 0x3026
> + -
> + -
> + -
> + -
> + -
> + - g\ :sub:`23`
> + - g\ :sub:`22`
> + - g\ :sub:`21`
> + - g\ :sub:`20`
> + - g\ :sub:`19`
> + - g\ :sub:`18`
> + - g\ :sub:`17`
> + - g\ :sub:`16`
> + - g\ :sub:`15`
> + - g\ :sub:`14`
> + - g\ :sub:`13`
> + - g\ :sub:`12`
> + - g\ :sub:`11`
> + - g\ :sub:`10`
> + - g\ :sub:`9`
> + - g\ :sub:`8`
> + - g\ :sub:`7`
> + - g\ :sub:`6`
> + - g\ :sub:`5`
> + - g\ :sub:`4`
> + - g\ :sub:`3`
> + - g\ :sub:`2`
> + - g\ :sub:`1`
> + - g\ :sub:`0`
> + * .. _MEDIA-BUS-FMT-SGRBG24-1X24:
> +
> + - MEDIA_BUS_FMT_SGRBG24_1X24
> + - 0x3027
> + -
> + -
> + -
> + -
> + -
> + - g\ :sub:`23`
> + - g\ :sub:`22`
> + - g\ :sub:`21`
> + - g\ :sub:`20`
> + - g\ :sub:`19`
> + - g\ :sub:`18`
> + - g\ :sub:`17`
> + - g\ :sub:`16`
> + - g\ :sub:`15`
> + - g\ :sub:`14`
> + - g\ :sub:`13`
> + - g\ :sub:`12`
> + - g\ :sub:`11`
> + - g\ :sub:`10`
> + - g\ :sub:`9`
> + - g\ :sub:`8`
> + - g\ :sub:`7`
> + - g\ :sub:`6`
> + - g\ :sub:`5`
> + - g\ :sub:`4`
> + - g\ :sub:`3`
> + - g\ :sub:`2`
> + - g\ :sub:`1`
> + - g\ :sub:`0`
> + * .. _MEDIA-BUS-FMT-SRGGB24-1X24:
> +
> + - MEDIA_BUS_FMT_SRGGB24_1X24
> + - 0x3028
> + -
> + -
> + -
> + -
> + -
> + - r\ :sub:`23`
> + - r\ :sub:`22`
> + - r\ :sub:`21`
> + - r\ :sub:`20`
> + - r\ :sub:`19`
> + - r\ :sub:`18`
> + - r\ :sub:`17`
> + - r\ :sub:`16`
> + - r\ :sub:`15`
> + - r\ :sub:`14`
> + - r\ :sub:`13`
> + - r\ :sub:`12`
> + - r\ :sub:`11`
> + - r\ :sub:`10`
> + - r\ :sub:`9`
> + - r\ :sub:`8`
> + - r\ :sub:`7`
> + - r\ :sub:`6`
> + - r\ :sub:`5`
> + - r\ :sub:`4`
> + - r\ :sub:`3`
> + - r\ :sub:`2`
> + - r\ :sub:`1`
> + - r\ :sub:`0`
>
> .. raw:: latex
>
> diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h
> index 6005f033e62c..892b8c0a945e 100644
> --- a/include/uapi/linux/media-bus-format.h
> +++ b/include/uapi/linux/media-bus-format.h
> @@ -124,7 +124,7 @@
> #define MEDIA_BUS_FMT_YUV16_1X48 0x202a
> #define MEDIA_BUS_FMT_UYYVYY16_0_5X48 0x202b
>
> -/* Bayer - next is 0x3025 */
> +/* Bayer - next is 0x3029 */
> #define MEDIA_BUS_FMT_SBGGR8_1X8 0x3001
> #define MEDIA_BUS_FMT_SGBRG8_1X8 0x3013
> #define MEDIA_BUS_FMT_SGRBG8_1X8 0x3002
> @@ -161,6 +161,10 @@
> #define MEDIA_BUS_FMT_SGBRG20_1X20 0x3022
> #define MEDIA_BUS_FMT_SGRBG20_1X20 0x3023
> #define MEDIA_BUS_FMT_SRGGB20_1X20 0x3024
> +#define MEDIA_BUS_FMT_SBGGR24_1X24 0x3025
> +#define MEDIA_BUS_FMT_SGBRG24_1X24 0x3026
> +#define MEDIA_BUS_FMT_SGRBG24_1X24 0x3027
> +#define MEDIA_BUS_FMT_SRGGB24_1X24 0x3028
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
>
> /* JPEG compressed formats - next is 0x4002 */
> #define MEDIA_BUS_FMT_JPEG_1X8 0x4001
>
> --
> 2.55.0
>
>
next prev parent reply other threads:[~2026-11-16 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 20:02 [PATCH 0/3] media: uapi: Add 24- and 28-bit " Niklas Söderlund
2026-09-08 20:02 ` [PATCH 1/3] media: uapi: Extend bayer media bus formats table to 28 bits Niklas Söderlund
2026-11-16 13:49 ` Jacopo Mondi
2026-09-08 20:02 ` [PATCH 2/3] media: uapi: Add 24-bit bayer media bus formats Niklas Söderlund
2026-11-16 13:48 ` Jacopo Mondi [this message]
2026-09-08 20:02 ` [PATCH 3/3] media: uapi: Add 28-bit " Niklas Söderlund
2026-11-16 13:47 ` Jacopo Mondi
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=avsJizTNF2Z-R1fr@zed \
--to=jacopo.mondi@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
/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®