xref: /openbmc/linux/include/media/mipi-csi2.h (revision 11696c5e)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * MIPI CSI-2 Data Types
4  *
5  * Copyright (C) 2022 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6  */
7 
8 #ifndef _MEDIA_MIPI_CSI2_H
9 #define _MEDIA_MIPI_CSI2_H
10 
11 /* Short packet data types */
12 #define MIPI_CSI2_DT_FS			0x00
13 #define MIPI_CSI2_DT_FE			0x01
14 #define MIPI_CSI2_DT_LS			0x02
15 #define MIPI_CSI2_DT_LE			0x03
16 #define MIPI_CSI2_DT_GENERIC_SHORT(n)	(0x08 + (n))	/* 0..7 */
17 
18 /* Long packet data types */
19 #define MIPI_CSI2_DT_NULL		0x10
20 #define MIPI_CSI2_DT_BLANKING		0x11
21 #define MIPI_CSI2_DT_EMBEDDED_8B	0x12
22 #define MIPI_CSI2_DT_YUV420_8B		0x18
23 #define MIPI_CSI2_DT_YUV420_10B		0x19
24 #define MIPI_CSI2_DT_YUV420_8B_LEGACY	0x1a
25 #define MIPI_CSI2_DT_YUV420_8B_CS	0x1c
26 #define MIPI_CSI2_DT_YUV420_10B_CS	0x1d
27 #define MIPI_CSI2_DT_YUV422_8B		0x1e
28 #define MIPI_CSI2_DT_YUV422_10B		0x1f
29 #define MIPI_CSI2_DT_RGB444		0x20
30 #define MIPI_CSI2_DT_RGB555		0x21
31 #define MIPI_CSI2_DT_RGB565		0x22
32 #define MIPI_CSI2_DT_RGB666		0x23
33 #define MIPI_CSI2_DT_RGB888		0x24
34 #define MIPI_CSI2_DT_RAW28		0x26
35 #define MIPI_CSI2_DT_RAW24		0x27
36 #define MIPI_CSI2_DT_RAW6		0x28
37 #define MIPI_CSI2_DT_RAW7		0x29
38 #define MIPI_CSI2_DT_RAW8		0x2a
39 #define MIPI_CSI2_DT_RAW10		0x2b
40 #define MIPI_CSI2_DT_RAW12		0x2c
41 #define MIPI_CSI2_DT_RAW14		0x2d
42 #define MIPI_CSI2_DT_RAW16		0x2e
43 #define MIPI_CSI2_DT_RAW20		0x2f
44 #define MIPI_CSI2_DT_USER_DEFINED(n)	(0x30 + (n))	/* 0..7 */
45 
46 #endif /* _MEDIA_MIPI_CSI2_H */
47