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_GENERIC_LONG(n)	(0x13 + (n) - 1)	/* 1..4 */
23  #define MIPI_CSI2_DT_YUV420_8B		0x18
24  #define MIPI_CSI2_DT_YUV420_10B		0x19
25  #define MIPI_CSI2_DT_YUV420_8B_LEGACY	0x1a
26  #define MIPI_CSI2_DT_YUV420_8B_CS	0x1c
27  #define MIPI_CSI2_DT_YUV420_10B_CS	0x1d
28  #define MIPI_CSI2_DT_YUV422_8B		0x1e
29  #define MIPI_CSI2_DT_YUV422_10B		0x1f
30  #define MIPI_CSI2_DT_RGB444		0x20
31  #define MIPI_CSI2_DT_RGB555		0x21
32  #define MIPI_CSI2_DT_RGB565		0x22
33  #define MIPI_CSI2_DT_RGB666		0x23
34  #define MIPI_CSI2_DT_RGB888		0x24
35  #define MIPI_CSI2_DT_RAW28		0x26
36  #define MIPI_CSI2_DT_RAW24		0x27
37  #define MIPI_CSI2_DT_RAW6		0x28
38  #define MIPI_CSI2_DT_RAW7		0x29
39  #define MIPI_CSI2_DT_RAW8		0x2a
40  #define MIPI_CSI2_DT_RAW10		0x2b
41  #define MIPI_CSI2_DT_RAW12		0x2c
42  #define MIPI_CSI2_DT_RAW14		0x2d
43  #define MIPI_CSI2_DT_RAW16		0x2e
44  #define MIPI_CSI2_DT_RAW20		0x2f
45  #define MIPI_CSI2_DT_USER_DEFINED(n)	(0x30 + (n))	/* 0..7 */
46  
47  #endif /* _MEDIA_MIPI_CSI2_H */
48