* [PATCH 0/3] media: uapi: Add 24- and 28-bit bayer media bus formats
@ 2026-09-08 20:02 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
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Niklas Söderlund @ 2026-09-08 20:02 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-media, linux-kernel, linux-renesas-soc,
Niklas Söderlund
Hello,
This small series adds the media bus formats and documentation for the
24- and 28-bit Bayer formats. This is done in preparation of work on the
Renesas R-Car video capture pipeline which will support these bus
formats in multiple drivers. For this reason it is posted as a separate
series before the driver work.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
Niklas Söderlund (3):
media: uapi: Extend bayer media bus formats table to 28 bits
media: uapi: Add 24-bit bayer media bus formats
media: uapi: Add 28-bit bayer media bus formats
.../userspace-api/media/v4l/subdev-formats.rst | 596 ++++++++++++++++++++-
include/uapi/linux/media-bus-format.h | 10 +-
2 files changed, 603 insertions(+), 3 deletions(-)
---
base-commit: f9536a8065d9eed0d9114878c56ffc4e5a18bdfc
change-id: 20260908-v4l2-add-raw-mbus-add28038a892
Best regards,
--
Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] media: uapi: Extend bayer media bus formats table to 28 bits
2026-09-08 20:02 [PATCH 0/3] media: uapi: Add 24- and 28-bit bayer media bus formats Niklas Söderlund
@ 2026-09-08 20:02 ` 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-09-08 20:02 ` [PATCH 3/3] media: uapi: Add 28-bit " Niklas Söderlund
2 siblings, 1 reply; 7+ messages in thread
From: Niklas Söderlund @ 2026-09-08 20:02 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-media, linux-kernel, linux-renesas-soc,
Niklas Söderlund
Prepare to describe 24- and 28-bit media bus formats by first extending
the table and existing formats to cover 28-bits.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
.../userspace-api/media/v4l/subdev-formats.rst | 332 ++++++++++++++++++++-
1 file changed, 330 insertions(+), 2 deletions(-)
diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst
index c9999b929773..892562ab48de 100644
--- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
+++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
@@ -2821,7 +2821,7 @@ organization is given as an example for the first pixel only.
\tiny
\setlength{\tabcolsep}{2pt}
-.. tabularcolumns:: |p{6.0cm}|p{0.7cm}|p{0.3cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
+.. tabularcolumns:: |p{6.0cm}|p{0.7cm}|p{0.3cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
.. _v4l2-mbus-pixelcode-bayer:
@@ -2834,10 +2834,18 @@ organization is given as an example for the first pixel only.
* - Identifier
- Code
-
- - :cspan:`19` Data organization
+ - :cspan:`27` Data organization
* -
-
- Bit
+ - 27
+ - 26
+ - 25
+ - 24
+ - 23
+ - 22
+ - 21
+ - 20
- 19
- 18
- 17
@@ -2875,6 +2883,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`7`
- b\ :sub:`6`
- b\ :sub:`5`
@@ -2900,6 +2916,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -2925,6 +2949,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -2950,6 +2982,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`7`
- r\ :sub:`6`
- r\ :sub:`5`
@@ -2975,6 +3015,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`7`
- b\ :sub:`6`
- b\ :sub:`5`
@@ -3000,6 +3048,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -3025,6 +3081,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -3050,6 +3114,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`7`
- r\ :sub:`6`
- r\ :sub:`5`
@@ -3075,6 +3147,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`7`
- b\ :sub:`6`
- b\ :sub:`5`
@@ -3100,6 +3180,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -3125,6 +3213,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`7`
- g\ :sub:`6`
- g\ :sub:`5`
@@ -3150,6 +3246,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`7`
- r\ :sub:`6`
- r\ :sub:`5`
@@ -3175,6 +3279,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- 0
- 0
- 0
@@ -3198,6 +3310,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`7`
- b\ :sub:`6`
- b\ :sub:`5`
@@ -3223,6 +3343,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`7`
- b\ :sub:`6`
- b\ :sub:`5`
@@ -3246,6 +3374,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- 0
- 0
- 0
@@ -3271,6 +3407,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`9`
- b\ :sub:`8`
- b\ :sub:`7`
@@ -3294,6 +3438,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`1`
- b\ :sub:`0`
- 0
@@ -3319,6 +3471,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`1`
- b\ :sub:`0`
- 0
@@ -3342,6 +3502,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`9`
- b\ :sub:`8`
- b\ :sub:`7`
@@ -3365,6 +3533,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`9`
- b\ :sub:`8`
- b\ :sub:`7`
@@ -3390,6 +3566,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`9`
- g\ :sub:`8`
- g\ :sub:`7`
@@ -3415,6 +3599,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`9`
- g\ :sub:`8`
- g\ :sub:`7`
@@ -3440,6 +3632,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`9`
- r\ :sub:`8`
- r\ :sub:`7`
@@ -3463,6 +3663,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`11`
- b\ :sub:`10`
- b\ :sub:`9`
@@ -3488,6 +3696,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`11`
- g\ :sub:`10`
- g\ :sub:`9`
@@ -3513,6 +3729,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`11`
- g\ :sub:`10`
- g\ :sub:`9`
@@ -3538,6 +3762,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`11`
- r\ :sub:`10`
- r\ :sub:`9`
@@ -3561,6 +3793,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`13`
- b\ :sub:`12`
- b\ :sub:`11`
@@ -3586,6 +3826,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`13`
- g\ :sub:`12`
- g\ :sub:`11`
@@ -3611,6 +3859,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`13`
- g\ :sub:`12`
- g\ :sub:`11`
@@ -3636,6 +3892,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`13`
- r\ :sub:`12`
- r\ :sub:`11`
@@ -3659,6 +3923,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`15`
- b\ :sub:`14`
- b\ :sub:`13`
@@ -3684,6 +3956,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`15`
- g\ :sub:`14`
- g\ :sub:`13`
@@ -3709,6 +3989,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`15`
- g\ :sub:`14`
- g\ :sub:`13`
@@ -3734,6 +4022,14 @@ organization is given as an example for the first pixel only.
-
-
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`15`
- r\ :sub:`14`
- r\ :sub:`13`
@@ -3755,6 +4051,14 @@ organization is given as an example for the first pixel only.
- MEDIA_BUS_FMT_SBGGR20_1X20
- 0x3021
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- b\ :sub:`19`
- b\ :sub:`18`
- b\ :sub:`17`
@@ -3780,6 +4084,14 @@ organization is given as an example for the first pixel only.
- MEDIA_BUS_FMT_SGBRG20_1X20
- 0x3022
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`19`
- g\ :sub:`18`
- g\ :sub:`17`
@@ -3805,6 +4117,14 @@ organization is given as an example for the first pixel only.
- MEDIA_BUS_FMT_SGRBG20_1X20
- 0x3023
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- g\ :sub:`19`
- g\ :sub:`18`
- g\ :sub:`17`
@@ -3830,6 +4150,14 @@ organization is given as an example for the first pixel only.
- MEDIA_BUS_FMT_SRGGB20_1X20
- 0x3024
-
+ -
+ -
+ -
+ -
+ -
+ -
+ -
+ -
- r\ :sub:`19`
- r\ :sub:`18`
- r\ :sub:`17`
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] media: uapi: Add 24-bit bayer media bus formats
2026-09-08 20:02 [PATCH 0/3] media: uapi: Add 24- and 28-bit bayer media bus formats 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-09-08 20:02 ` Niklas Söderlund
2026-11-16 13:48 ` Jacopo Mondi
2026-09-08 20:02 ` [PATCH 3/3] media: uapi: Add 28-bit " Niklas Söderlund
2 siblings, 1 reply; 7+ messages in thread
From: Niklas Söderlund @ 2026-09-08 20:02 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-media, linux-kernel, linux-renesas-soc,
Niklas Söderlund
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
/* JPEG compressed formats - next is 0x4002 */
#define MEDIA_BUS_FMT_JPEG_1X8 0x4001
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] media: uapi: Add 28-bit bayer media bus formats
2026-09-08 20:02 [PATCH 0/3] media: uapi: Add 24- and 28-bit bayer media bus formats 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-09-08 20:02 ` [PATCH 2/3] media: uapi: Add 24-bit bayer media bus formats Niklas Söderlund
@ 2026-09-08 20:02 ` Niklas Söderlund
2026-11-16 13:47 ` Jacopo Mondi
2 siblings, 1 reply; 7+ messages in thread
From: Niklas Söderlund @ 2026-09-08 20:02 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-media, linux-kernel, linux-renesas-soc,
Niklas Söderlund
Prepare for adding Renesas R-Car Gen5 video capture drivers which will
support 28-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 39396931e726..d4f35f6236db 100644
--- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
+++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
@@ -4310,6 +4310,138 @@ organization is given as an example for the first pixel only.
- r\ :sub:`2`
- r\ :sub:`1`
- r\ :sub:`0`
+ * .. _MEDIA-BUS-FMT-SBGGR28-1X28:
+
+ - MEDIA_BUS_FMT_SBGGR28_1X28
+ - 0x3029
+ -
+ - b\ :sub:`27`
+ - b\ :sub:`26`
+ - b\ :sub:`25`
+ - b\ :sub:`24`
+ - 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-SGBRG28-1X28:
+
+ - MEDIA_BUS_FMT_SGBRG28_1X28
+ - 0x302a
+ -
+ - g\ :sub:`27`
+ - g\ :sub:`26`
+ - g\ :sub:`25`
+ - g\ :sub:`24`
+ - 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-SGRBG28-1X28:
+
+ - MEDIA_BUS_FMT_SGRBG28_1X28
+ - 0x302b
+ -
+ - g\ :sub:`27`
+ - g\ :sub:`26`
+ - g\ :sub:`25`
+ - g\ :sub:`24`
+ - 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-SRGGB28-1X28:
+
+ - MEDIA_BUS_FMT_SRGGB28_1X28
+ - 0x302c
+ -
+ - r\ :sub:`27`
+ - r\ :sub:`26`
+ - r\ :sub:`25`
+ - r\ :sub:`24`
+ - 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 892b8c0a945e..2b8438d936ad 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 0x3029 */
+/* Bayer - next is 0x302d */
#define MEDIA_BUS_FMT_SBGGR8_1X8 0x3001
#define MEDIA_BUS_FMT_SGBRG8_1X8 0x3013
#define MEDIA_BUS_FMT_SGRBG8_1X8 0x3002
@@ -165,6 +165,10 @@
#define MEDIA_BUS_FMT_SGBRG24_1X24 0x3026
#define MEDIA_BUS_FMT_SGRBG24_1X24 0x3027
#define MEDIA_BUS_FMT_SRGGB24_1X24 0x3028
+#define MEDIA_BUS_FMT_SBGGR28_1X28 0x3029
+#define MEDIA_BUS_FMT_SGBRG28_1X28 0x302a
+#define MEDIA_BUS_FMT_SGRBG28_1X28 0x302b
+#define MEDIA_BUS_FMT_SRGGB28_1X28 0x302c
/* JPEG compressed formats - next is 0x4002 */
#define MEDIA_BUS_FMT_JPEG_1X8 0x4001
--
2.55.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] media: uapi: Add 28-bit bayer media bus formats
2026-09-08 20:02 ` [PATCH 3/3] media: uapi: Add 28-bit " Niklas Söderlund
@ 2026-11-16 13:47 ` Jacopo Mondi
0 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2026-11-16 13:47 UTC (permalink / raw)
To: Niklas Söderlund
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel,
linux-renesas-soc
Hi Niklas
On Tue, Sep 08, 2026 at 10:02:58PM +0200, Niklas Söderlund wrote:
> Prepare for adding Renesas R-Car Gen5 video capture drivers which will
> support 28-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 39396931e726..d4f35f6236db 100644
> --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
> +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
> @@ -4310,6 +4310,138 @@ organization is given as an example for the first pixel only.
> - r\ :sub:`2`
> - r\ :sub:`1`
> - r\ :sub:`0`
> + * .. _MEDIA-BUS-FMT-SBGGR28-1X28:
> +
I wonder what the usefulness of these tables is. Not for this patch,
in general for all Bayer formats listed in subdev-formats.rst.
Data will be sent on the bus with a different organization, listing
here that a 28 bits format uses 28 bits of data doesn't tell anything
useful.
But yes, we would have to copy in the CSI-2 specs if the actuall data
organization on the bus had to be reported.
This general complaint apart, the patch itself is in line with the
existing formats documentation
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> + - MEDIA_BUS_FMT_SBGGR28_1X28
> + - 0x3029
> + -
> + - b\ :sub:`27`
> + - b\ :sub:`26`
> + - b\ :sub:`25`
> + - b\ :sub:`24`
> + - 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-SGBRG28-1X28:
> +
> + - MEDIA_BUS_FMT_SGBRG28_1X28
> + - 0x302a
> + -
> + - g\ :sub:`27`
> + - g\ :sub:`26`
> + - g\ :sub:`25`
> + - g\ :sub:`24`
> + - 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-SGRBG28-1X28:
> +
> + - MEDIA_BUS_FMT_SGRBG28_1X28
> + - 0x302b
> + -
> + - g\ :sub:`27`
> + - g\ :sub:`26`
> + - g\ :sub:`25`
> + - g\ :sub:`24`
> + - 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-SRGGB28-1X28:
> +
> + - MEDIA_BUS_FMT_SRGGB28_1X28
> + - 0x302c
> + -
> + - r\ :sub:`27`
> + - r\ :sub:`26`
> + - r\ :sub:`25`
> + - r\ :sub:`24`
> + - 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 892b8c0a945e..2b8438d936ad 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 0x3029 */
> +/* Bayer - next is 0x302d */
> #define MEDIA_BUS_FMT_SBGGR8_1X8 0x3001
> #define MEDIA_BUS_FMT_SGBRG8_1X8 0x3013
> #define MEDIA_BUS_FMT_SGRBG8_1X8 0x3002
> @@ -165,6 +165,10 @@
> #define MEDIA_BUS_FMT_SGBRG24_1X24 0x3026
> #define MEDIA_BUS_FMT_SGRBG24_1X24 0x3027
> #define MEDIA_BUS_FMT_SRGGB24_1X24 0x3028
> +#define MEDIA_BUS_FMT_SBGGR28_1X28 0x3029
> +#define MEDIA_BUS_FMT_SGBRG28_1X28 0x302a
> +#define MEDIA_BUS_FMT_SGRBG28_1X28 0x302b
> +#define MEDIA_BUS_FMT_SRGGB28_1X28 0x302c
>
> /* JPEG compressed formats - next is 0x4002 */
> #define MEDIA_BUS_FMT_JPEG_1X8 0x4001
>
> --
> 2.55.0
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] media: uapi: Add 24-bit bayer media bus formats
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
0 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2026-11-16 13:48 UTC (permalink / raw)
To: Niklas Söderlund
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel,
linux-renesas-soc
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
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] media: uapi: Extend bayer media bus formats table to 28 bits
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
0 siblings, 0 replies; 7+ messages in thread
From: Jacopo Mondi @ 2026-11-16 13:49 UTC (permalink / raw)
To: Niklas Söderlund
Cc: Mauro Carvalho Chehab, linux-media, linux-kernel,
linux-renesas-soc
Hi Niklas
On Tue, Sep 08, 2026 at 10:02:56PM +0200, Niklas Söderlund wrote:
> Prepare to describe 24- and 28-bit media bus formats by first extending
> the table and existing formats to cover 28-bits.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
> ---
> .../userspace-api/media/v4l/subdev-formats.rst | 332 ++++++++++++++++++++-
> 1 file changed, 330 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst
> index c9999b929773..892562ab48de 100644
> --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
> +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
> @@ -2821,7 +2821,7 @@ organization is given as an example for the first pixel only.
> \tiny
> \setlength{\tabcolsep}{2pt}
>
> -.. tabularcolumns:: |p{6.0cm}|p{0.7cm}|p{0.3cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
> +.. tabularcolumns:: |p{6.0cm}|p{0.7cm}|p{0.3cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|p{0.22cm}|
>
> .. _v4l2-mbus-pixelcode-bayer:
>
> @@ -2834,10 +2834,18 @@ organization is given as an example for the first pixel only.
> * - Identifier
> - Code
> -
> - - :cspan:`19` Data organization
> + - :cspan:`27` Data organization
> * -
> -
> - Bit
> + - 27
> + - 26
> + - 25
> + - 24
> + - 23
> + - 22
> + - 21
> + - 20
> - 19
> - 18
> - 17
> @@ -2875,6 +2883,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`7`
> - b\ :sub:`6`
> - b\ :sub:`5`
> @@ -2900,6 +2916,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -2925,6 +2949,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -2950,6 +2982,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`7`
> - r\ :sub:`6`
> - r\ :sub:`5`
> @@ -2975,6 +3015,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`7`
> - b\ :sub:`6`
> - b\ :sub:`5`
> @@ -3000,6 +3048,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -3025,6 +3081,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -3050,6 +3114,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`7`
> - r\ :sub:`6`
> - r\ :sub:`5`
> @@ -3075,6 +3147,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`7`
> - b\ :sub:`6`
> - b\ :sub:`5`
> @@ -3100,6 +3180,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -3125,6 +3213,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`7`
> - g\ :sub:`6`
> - g\ :sub:`5`
> @@ -3150,6 +3246,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`7`
> - r\ :sub:`6`
> - r\ :sub:`5`
> @@ -3175,6 +3279,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - 0
> - 0
> - 0
> @@ -3198,6 +3310,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`7`
> - b\ :sub:`6`
> - b\ :sub:`5`
> @@ -3223,6 +3343,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`7`
> - b\ :sub:`6`
> - b\ :sub:`5`
> @@ -3246,6 +3374,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - 0
> - 0
> - 0
> @@ -3271,6 +3407,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`9`
> - b\ :sub:`8`
> - b\ :sub:`7`
> @@ -3294,6 +3438,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`1`
> - b\ :sub:`0`
> - 0
> @@ -3319,6 +3471,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`1`
> - b\ :sub:`0`
> - 0
> @@ -3342,6 +3502,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`9`
> - b\ :sub:`8`
> - b\ :sub:`7`
> @@ -3365,6 +3533,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`9`
> - b\ :sub:`8`
> - b\ :sub:`7`
> @@ -3390,6 +3566,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`9`
> - g\ :sub:`8`
> - g\ :sub:`7`
> @@ -3415,6 +3599,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`9`
> - g\ :sub:`8`
> - g\ :sub:`7`
> @@ -3440,6 +3632,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`9`
> - r\ :sub:`8`
> - r\ :sub:`7`
> @@ -3463,6 +3663,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`11`
> - b\ :sub:`10`
> - b\ :sub:`9`
> @@ -3488,6 +3696,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`11`
> - g\ :sub:`10`
> - g\ :sub:`9`
> @@ -3513,6 +3729,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`11`
> - g\ :sub:`10`
> - g\ :sub:`9`
> @@ -3538,6 +3762,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`11`
> - r\ :sub:`10`
> - r\ :sub:`9`
> @@ -3561,6 +3793,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`13`
> - b\ :sub:`12`
> - b\ :sub:`11`
> @@ -3586,6 +3826,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`13`
> - g\ :sub:`12`
> - g\ :sub:`11`
> @@ -3611,6 +3859,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`13`
> - g\ :sub:`12`
> - g\ :sub:`11`
> @@ -3636,6 +3892,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`13`
> - r\ :sub:`12`
> - r\ :sub:`11`
> @@ -3659,6 +3923,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`15`
> - b\ :sub:`14`
> - b\ :sub:`13`
> @@ -3684,6 +3956,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`15`
> - g\ :sub:`14`
> - g\ :sub:`13`
> @@ -3709,6 +3989,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`15`
> - g\ :sub:`14`
> - g\ :sub:`13`
> @@ -3734,6 +4022,14 @@ organization is given as an example for the first pixel only.
> -
> -
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`15`
> - r\ :sub:`14`
> - r\ :sub:`13`
> @@ -3755,6 +4051,14 @@ organization is given as an example for the first pixel only.
> - MEDIA_BUS_FMT_SBGGR20_1X20
> - 0x3021
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - b\ :sub:`19`
> - b\ :sub:`18`
> - b\ :sub:`17`
> @@ -3780,6 +4084,14 @@ organization is given as an example for the first pixel only.
> - MEDIA_BUS_FMT_SGBRG20_1X20
> - 0x3022
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`19`
> - g\ :sub:`18`
> - g\ :sub:`17`
> @@ -3805,6 +4117,14 @@ organization is given as an example for the first pixel only.
> - MEDIA_BUS_FMT_SGRBG20_1X20
> - 0x3023
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - g\ :sub:`19`
> - g\ :sub:`18`
> - g\ :sub:`17`
> @@ -3830,6 +4150,14 @@ organization is given as an example for the first pixel only.
> - MEDIA_BUS_FMT_SRGGB20_1X20
> - 0x3024
> -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> + -
> - r\ :sub:`19`
> - r\ :sub:`18`
> - r\ :sub:`17`
>
> --
> 2.55.0
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-16 13:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 20:02 [PATCH 0/3] media: uapi: Add 24- and 28-bit bayer media bus formats 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
2026-09-08 20:02 ` [PATCH 3/3] media: uapi: Add 28-bit " Niklas Söderlund
2026-11-16 13:47 ` Jacopo Mondi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox