15cadbd89SLaurent Pinchart /* SPDX-License-Identifier: GPL-2.0-only */ 25cadbd89SLaurent Pinchart /* 35cadbd89SLaurent Pinchart * MIPI CSI-2 Data Types 45cadbd89SLaurent Pinchart * 55cadbd89SLaurent Pinchart * Copyright (C) 2022 Laurent Pinchart <laurent.pinchart@ideasonboard.com> 65cadbd89SLaurent Pinchart */ 75cadbd89SLaurent Pinchart 85cadbd89SLaurent Pinchart #ifndef _MEDIA_MIPI_CSI2_H 95cadbd89SLaurent Pinchart #define _MEDIA_MIPI_CSI2_H 105cadbd89SLaurent Pinchart 115cadbd89SLaurent Pinchart /* Short packet data types */ 125cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_FS 0x00 135cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_FE 0x01 145cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_LS 0x02 155cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_LE 0x03 165cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_GENERIC_SHORT(n) (0x08 + (n)) /* 0..7 */ 175cadbd89SLaurent Pinchart 185cadbd89SLaurent Pinchart /* Long packet data types */ 195cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_NULL 0x10 205cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_BLANKING 0x11 215cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_EMBEDDED_8B 0x12 22*2d21fef5SSakari Ailus #define MIPI_CSI2_DT_GENERIC_LONG(n) (0x13 + (n) - 1) /* 1..4 */ 235cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV420_8B 0x18 245cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV420_10B 0x19 255cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV420_8B_LEGACY 0x1a 265cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV420_8B_CS 0x1c 275cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV420_10B_CS 0x1d 285cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV422_8B 0x1e 295cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_YUV422_10B 0x1f 305cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RGB444 0x20 315cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RGB555 0x21 325cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RGB565 0x22 335cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RGB666 0x23 345cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RGB888 0x24 35e74e4768SSakari Ailus #define MIPI_CSI2_DT_RAW28 0x26 365cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW24 0x27 375cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW6 0x28 385cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW7 0x29 395cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW8 0x2a 405cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW10 0x2b 415cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW12 0x2c 425cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW14 0x2d 435cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW16 0x2e 445cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_RAW20 0x2f 455cadbd89SLaurent Pinchart #define MIPI_CSI2_DT_USER_DEFINED(n) (0x30 + (n)) /* 0..7 */ 465cadbd89SLaurent Pinchart 475cadbd89SLaurent Pinchart #endif /* _MEDIA_MIPI_CSI2_H */ 48