mipi-csi2.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifndef _MEDIA_MIPI_CSI2_H
  8. #define _MEDIA_MIPI_CSI2_H
  9. /* Short packet data types */
  10. #define MIPI_CSI2_DT_FS 0x00
  11. #define MIPI_CSI2_DT_FE 0x01
  12. #define MIPI_CSI2_DT_LS 0x02
  13. #define MIPI_CSI2_DT_LE 0x03
  14. #define MIPI_CSI2_DT_GENERIC_SHORT(n) (0x08 + (n)) /* 0..7 */
  15. /* Long packet data types */
  16. #define MIPI_CSI2_DT_NULL 0x10
  17. #define MIPI_CSI2_DT_BLANKING 0x11
  18. #define MIPI_CSI2_DT_EMBEDDED_8B 0x12
  19. #define MIPI_CSI2_DT_GENERIC_LONG(n) (0x13 + (n) - 1) /* 1..4 */
  20. #define MIPI_CSI2_DT_YUV420_8B 0x18
  21. #define MIPI_CSI2_DT_YUV420_10B 0x19
  22. #define MIPI_CSI2_DT_YUV420_8B_LEGACY 0x1a
  23. #define MIPI_CSI2_DT_YUV420_8B_CS 0x1c
  24. #define MIPI_CSI2_DT_YUV420_10B_CS 0x1d
  25. #define MIPI_CSI2_DT_YUV422_8B 0x1e
  26. #define MIPI_CSI2_DT_YUV422_10B 0x1f
  27. #define MIPI_CSI2_DT_RGB444 0x20
  28. #define MIPI_CSI2_DT_RGB555 0x21
  29. #define MIPI_CSI2_DT_RGB565 0x22
  30. #define MIPI_CSI2_DT_RGB666 0x23
  31. #define MIPI_CSI2_DT_RGB888 0x24
  32. #define MIPI_CSI2_DT_RAW28 0x26
  33. #define MIPI_CSI2_DT_RAW24 0x27
  34. #define MIPI_CSI2_DT_RAW6 0x28
  35. #define MIPI_CSI2_DT_RAW7 0x29
  36. #define MIPI_CSI2_DT_RAW8 0x2a
  37. #define MIPI_CSI2_DT_RAW10 0x2b
  38. #define MIPI_CSI2_DT_RAW12 0x2c
  39. #define MIPI_CSI2_DT_RAW14 0x2d
  40. #define MIPI_CSI2_DT_RAW16 0x2e
  41. #define MIPI_CSI2_DT_RAW20 0x2f
  42. #define MIPI_CSI2_DT_USER_DEFINED(n) (0x30 + (n)) /* 0..7 */
  43. #endif /* _MEDIA_MIPI_CSI2_H */