2979aede23dd7f3e806adc368474ff375aed17a4
[openwrt/staging/jow.git] /
1 From 8400889a0f241a12353673c35087bf6c38ea09e9 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Mon, 15 Aug 2022 13:34:02 +0200
4 Subject: [PATCH] media: uapi: Add some RGB bus formats for VC4 DPI
5 output
6
7 The VC4 DPI controller can output more RGB formats that aren't described
8 through a media bus format yet, so let's add them.
9
10 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
11 ---
12 include/uapi/linux/media-bus-format.h | 5 ++++-
13 1 file changed, 4 insertions(+), 1 deletion(-)
14
15 --- a/include/uapi/linux/media-bus-format.h
16 +++ b/include/uapi/linux/media-bus-format.h
17 @@ -34,19 +34,22 @@
18
19 #define MEDIA_BUS_FMT_FIXED 0x0001
20
21 -/* RGB - next is 0x1022 */
22 +/* RGB - next is 0x1025 */
23 #define MEDIA_BUS_FMT_RGB444_1X12 0x1016
24 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001
25 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002
26 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE 0x1003
27 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE 0x1004
28 #define MEDIA_BUS_FMT_RGB565_1X16 0x1017
29 +#define MEDIA_BUS_FMT_RGB565_1X24_CPADHI 0x1022
30 #define MEDIA_BUS_FMT_BGR565_2X8_BE 0x1005
31 #define MEDIA_BUS_FMT_BGR565_2X8_LE 0x1006
32 #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007
33 #define MEDIA_BUS_FMT_RGB565_2X8_LE 0x1008
34 +#define MEDIA_BUS_FMT_BGR666_1X18 0x1023
35 #define MEDIA_BUS_FMT_RGB666_1X18 0x1009
36 #define MEDIA_BUS_FMT_RBG888_1X24 0x100e
37 +#define MEDIA_BUS_FMT_BGR666_1X24_CPADHI 0x1024
38 #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI 0x1015
39 #define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG 0x1010
40 #define MEDIA_BUS_FMT_BGR888_1X24 0x1013