# MIPI CSI-2

**MIPI CSI-2**（Camera Serial Interface 2，相机串行接口2）是MIPI联盟（MIPI Alliance）定义的高速串行协议，用于将图像传感器的静态图像和视频图像数据传输至应用处理器、SoC等主机处理器。该协议最初于2005年推出，据MIPI联盟介绍，它是部署最广泛的嵌入式相机与成像接口，支持从1080p到4K、8K乃至更高分辨率，以及高分辨率摄影。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次采用 | 2005年；所有版本均向后兼容此前版本<sup>[1](https://www.mipi.org/specifications/csi-2)</sup> |
| 当前版本 | v4.2，2025年12月15日采用<sup>[1](https://www.mipi.org/specifications/csi-2)</sup><sup> • </sup><sup>[2](https://www.mipi.org/current-specifications)</sup> |
| 物理层 | 短距离采用MIPI D-PHY和C-PHY；汽车与工业物联网的长距离应用采用MIPI A-PHY SerDes，最远可达15米<sup>[1](https://www.mipi.org/specifications/csi-2)</sup> |
| 虚拟通道 | v2.0及以后版本在D-PHY上最多16个、在C-PHY上最多32个，v1.x时代为4个<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup> |
| 链路带宽 | v4.x中，典型4通道D-PHY链路达36 Gbps，典型3通道C-PHY链路达53.3 Gbps<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup> |
| 控制接口 | 相机控制接口（CCI），双向，兼容I2C标准，自v2.1起支持I3C<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup><sup> • </sup><sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup> |
| 可获得性 | 规范仅向MIPI联盟成员开放<sup>[1](https://www.mipi.org/specifications/csi-2)</sup> |

## 作用与应用

CSI-2定义了作为外设的相机与主机处理器（通常为基带或应用引擎）之间的数据传输接口和控制接口。<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup>在Linux内核的媒体子系统中，它被视为将图像从相机传输至主机SoC的数据总线，发送端驱动向接收端提供链路频率、像素速率和流控制。<sup>[5](https://kernel.org/doc/html/v5.12/driver-api/media/csi2.html)</sup>

MIPI联盟列出的主要用例包括机器视觉、成像、情境感知、生物识别、监控，以及ADAS（高级驾驶辅助系统）和车载信息娱乐。目标应用领域包括移动设备、增强现实与虚拟现实、无人机、物联网、医疗设备、工业系统、汽车，以及平板电脑、笔记本电脑、一体机等客户端设备。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>其明确的基本设计目标是高性能、低功耗和低电磁干扰（EMI）。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

## 物理层与链路扩展

CSI-2具备通道可扩展性，短距离应用通常基于MIPI D-PHY或MIPI C-PHY实现。对于更长距离，它可以运行于MIPI A-PHY之上——这是一种长距离SerDes接口，传输距离可达15米，用于汽车ADAS、车载信息娱乐和工业物联网。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>设计者可以选择独立C-PHY、独立D-PHY或C/D-PHY组合方案；C-PHY最少只需三根引脚而非四根，并在引脚层面与D-PHY向后兼容。<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup>

CSI-2所用的D-PHY是一种单向差分接口，包含一个2线前向时钟通道和一个或多个2线数据通道。D-PHY v1.2在接收端引入了基于通道的数据偏斜控制，将峰值速率从D-PHY v1.1的每通道1.5 Gbps提升至每通道2.5 Gbps，即4通道下10 Gbps。<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup>版本历史表记录了累计增长：典型4通道D-PHY链路在v1.1下承载6 Gbps，在v4.x下达到36 Gbps；典型3通道C-PHY链路则达到53.3 Gbps。<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup>

## 数据包结构

CSI-2将图像数据打包，通过所选物理层传输。在D-PHY方案下，长数据包由32位包头、应用相关的有效载荷和包含校验和（CRC）的16位包尾组成。包头包含8位数据标识符（由2位虚拟通道字段和6位数据类型字段构成）、16位字计数（告知接收端需读取多少数据字），以及能在包头中实现1位纠错和2位检错的纠错码；虚拟通道扩展字段VCX承载4位虚拟通道标识符的最低两位。<sup>[6](https://foofoodamon.github.io/references/spec/MIPI_CSI-2_specification_v3-0.pdf)</sup>短数据包仅含包头，用于帧起始、帧结束标记及其他控制信息。<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup>

数据类型字段区分各种像素格式，包括YUV、RGB、6至28位深的RAW、与JPEG相关的用户自定义字节数据，以及嵌入数据包。长数据包可按虚拟通道交织，也可在同一虚拟通道内按数据类型交织。<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup>

## 功能演进

**早期版本。** CSI-2 v1.3支持4个虚拟通道、64种数据类型、RGB、YUV、RAW和JPEG格式、嵌入数据以及基于行的传输，设计上强调易于实现、低门数和传感器与链路之间的数据速率匹配。<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup>版本2.0（2017年第一季度）将虚拟通道数提升至D-PHY上16个、C-PHY上32个，并新增RAW16/20支持。<sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup><sup> • </sup><sup>[7](https://www.mipi.org/hubfs/MIPI-DevCon-2020-Why-an-Integrated-MIPI-C-PHY-D-PHY-IP-is-Essential.pdf)</sup>版本3.0（2019年第三季度）新增统一串行链路（USL）、智能感兴趣区域（SROI）和RAW24；USL将控制信令数据与成像像素封装在一起，以减少图像传感器与其配套应用处理器之间的线数。<sup>[7](https://www.mipi.org/hubfs/MIPI-DevCon-2020-Why-an-Integrated-MIPI-C-PHY-D-PHY-IP-is-Essential.pdf)</sup><sup> • </sup><sup>[8](https://www.mipi.org/blog/a-look-under-the-hood-at-mipi-csi-2-and-mipi-dsi-2-in-automotive)</sup>

**版本4.0及以后。** CSI-2 v4.0（2021年第四季度）是首个能够通过两线MIPI I3C/I3C Basic接口传输CSI-2图像帧的版本，该接口成本低、引脚少。其新功能包括：常开哨兵通道（AOSC），允许超低功耗图像传感器与视频信号处理器的组合持续监测周围环境，仅在发生重要事件时唤醒功耗更高的主机CPU；多像素压缩（MPC），针对具有多像素彩色滤光阵列的极高分辨率Tetra-Cell和Nona-Cell传感器优化；以及面向高动态范围汽车图像传感器的RAW28像素编码，将此前RAW24的上限进一步扩展。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

版本4.1（2024年第二季度）新增了与C-PHY v3.0的18线态模式编码选项对齐的支持，通过降低符号速率或通道数减少C-PHY上的能耗，扩展了AOSC支持——允许以普通I3C读命令在I3C高数据速率模式下获取图像帧，并新增高数据位宽PHY协议接口（PPI）示例。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>版本4.2（2025年12月15日采用）纳入了对MPC伪代码的澄清、CSI-2 D-PHY嵌入式时钟模式（ECM）支持的新功能，以及面向事件视觉传感器的标准化协议支持，服务于事件感知与处理（ESP）市场。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

## 相关规范

CSI-2与多项配套规范协同工作。相机控制接口（CCI）为双向接口，兼容I2C标准，其与MIPI I3C/I3C Basic协同工作的能力可满足自动对焦和光学图像稳定等需求。<sup>[4](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)</sup><sup> • </sup><sup>[1](https://www.mipi.org/specifications/csi-2)</sup>MIPI相机服务扩展（CSE）规范在协议层为CSI-2数据流提供安全保障，并包含一份功能安全规范，旨在确保自主系统用于关键任务决策的CSI-2帧的完整性，满足[ISO 26262](https://www.edgepedia.org/zh/iso-26262)要求。<sup>[9](https://www.mipi.org/knowledge-library/webinars/webinar-series-exploring-mipi-specifications-in-automotive-architectures-may-2024)</sup><sup> • </sup><sup>[10](https://www.mipi.org/hubfs/white-papers/MIPI-specifications-enabling-iot-white-paper.pdf)</sup>MIPI A-PHY的CSI-2协议适配层（PAL/CSI-2）通过A-PHY SerDes链路承载CSI-2流量。<sup>[11](https://www.mipi.org/groups/camera)</sup>在软件层面，2022年12月采用的MIPI DisCo for Imaging使系统开发者无需编写硬件专用驱动即可发现并使用通过CSI-2连接的相机。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

CSI-2的其他传输特性包括：延迟降低与传输效率（LRTE），用于减少布线、翻转率和功耗的图像传感器聚合；DPCM压缩，在避免压缩伪影的同时降低带宽；以及长数据包扰码，可降低发射功率谱密度和无线电干扰，并允许更长的通道。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup><sup> • </sup><sup>[3](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)</sup>

## 与其他相机接口的比较

在嵌入式视觉领域，CSI-2是一种板级接口，将传感器直接连接至设备内的处理器、ISP或SoC；而GigE、USB、GMSL和CoaXPress等系统级接口则用于在更长距离上连接独立相机与主机系统。<sup>[12](https://www.baslerweb.com/en-us/learning/interface-embedded/)</sup>Basler的一张对比表列出：MIPI CSI-2带宽为每通道1至4.5 Gbit/s，延迟极低，线缆长度不足30厘米，系统成本极低，线缆对EMC和振动的鲁棒性较低；GMSL2在6 Gbit/s下可达20米，USB 3.0在5 Gbit/s下可达5米，GigE在1 Gbit/s下可达100米。<sup>[12](https://www.baslerweb.com/en-us/learning/interface-embedded/)</sup>GMSL可隧道传输MIPI CSI-2，从而扩展其传输距离，但GMSL是专有接口，没有机器视觉标准。<sup>[12](https://www.baslerweb.com/en-us/learning/interface-embedded/)</sup>在MIPI生态内部，A-PHY从原生层面解决了同样的传输距离问题，可为汽车和工业应用将CSI-2传输至最远15米。<sup>[1](https://www.mipi.org/specifications/csi-2)</sup>

## References

1. [MIPI CSI-2 specification page, MIPI Alliance](https://www.mipi.org/specifications/csi-2)
2. [Current Specifications, MIPI Alliance](https://www.mipi.org/current-specifications)
3. [MIPI CSI-2 Version History Table (March 2026), MIPI Alliance](https://www.mipi.org/hubfs/Specification-Feature-Tables/MIPI-CSI-2-Version-History-Table-March-2026.pdf)
4. [MIPI CSI-2 Specification Brief (technology brief), MIPI Alliance](https://www.mipi.org/sites/default/files/MIPI_CSI-2_Specification_Brief.pdf)
5. [MIPI CSI-2, The Linux Kernel documentation](https://kernel.org/doc/html/v5.12/driver-api/media/csi2.html)
6. [MIPI Alliance Specification for Camera Serial Interface 2 (CSI-2), v3.0](https://foofoodamon.github.io/references/spec/MIPI_CSI-2_specification_v3-0.pdf)
7. [Why an Integrated MIPI C-PHY/D-PHY IP is Essential, MIPI DevCon 2020 presentation](https://www.mipi.org/hubfs/MIPI-DevCon-2020-Why-an-Integrated-MIPI-C-PHY-D-PHY-IP-is-Essential.pdf)
8. [A Look Under the Hood at MIPI CSI-2 and MIPI DSI-2 in Automotive, MIPI blog](https://www.mipi.org/blog/a-look-under-the-hood-at-mipi-csi-2-and-mipi-dsi-2-in-automotive)
9. [MIPI Automotive Webinar Series, MIPI Alliance](https://www.mipi.org/knowledge-library/webinars/webinar-series-exploring-mipi-specifications-in-automotive-architectures-may-2024)
10. [MIPI Specifications Enabling the IoT Opportunity, MIPI white paper](https://www.mipi.org/hubfs/white-papers/MIPI-specifications-enabling-iot-white-paper.pdf)
11. [Camera Working Group, MIPI Alliance](https://www.mipi.org/groups/camera)
12. [Which Interface Is Suitable for My Embedded Vision Application?, Basler](https://www.baslerweb.com/en-us/learning/interface-embedded/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › 移动与手持设备

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mipi-csi-2

English original: https://www.edgepedia.org/mipi-csi-2
