Chapter 2 Terminology
Lane: 单向物理传输 lane, 2(D-PHY) or 3(C-PHY) wire interface for clock or data transmission.
Virtual channel: 逻辑层面的概念,每个虚拟通道的数据彼此独立,在 lane 上交错发送,包含标识信息,指明属于哪个外设/通道。
Chapter 7 Physical Layer
有两种 physical layer,D-PHY 和 C-PHY, transmitter 和 receiver 需要一致。
7.1 D-PHY Physical Layer option
D-PHY 由多条单向的 data lanes 和一条 clk lane。
对于 clk lane, transmitter 和 receiver 必须实现 continuous clock,non-continuous clock 是可选的。
continuous clk: 保持在 high-speed mode.
non-continuous clk: 在两笔数据包之间进入 LP-11 state.
7.2 C-PHY Physical Layer option
Chapter 9 Low Level Protocol
Features:
- 8-bit word size
- 一条 link 支持最高 4 条交替的 virtual channels
- frame start, frame end, line start, line end 有特殊的 packet
- type, pixel depth and format 有描述符
- 16-bit checksum
9.1 Low Level Protocol Packet Format
有 short 和 long packet.
都以 SoT(Start of Transmission) 开始和 EoT(End of Transmission) 结束。
9.1.1 Low Level Protocol Long Packet Format
DI: 定义了 virtual channel 和 data type, 长包的 data type 0x10~0x37.
9.1.2 Low Level Protocol Short Packet Format
短包 Data type 0x0~0xf.
9.2 Data Identifier(DI)
高 2bit 表示 virtual channel 号,低 6bit 表示 data type.
9.3 Virtual Channel Identifier
最多支持 4 条 virtual channel.
9.4 Data Type(DT)
所有的 data type 类型:
9.5 Packet Header Error Correction Code
skip
9.6 Checksum Generation
skip
9.7 Packet Spacing
长短包之间必须要有 LPS(Low Power State) 的进出。
9.8 Synchronization Short Packet Data Type Codes
短包的 data type 有:frame start/end, line start/end 短包。
9.8.1 Frame Synchronization Packets
9.8.2 Line Synchronization Packets
9.9 Generic Short Packet Data Type Codes
短包 data type 0x8~0xf 是 generic short packet.
mipi csi 协议层对 generic short packet 的含义没有定义,交给 receiver 来自己处理不同的 data types.
9.10 Packet Spacing Examples
展示了 line blanking 和 frame blanking 的情况。
9.11 Packet Data Payload Size Rules
9.12 Frame Format Examples
Chapter 10 Color Spaces
Chapter 11 Data Formats
11.2 YUV Image Data
11.4 RAW Image Data
有 raw6/7/8/10/12/14.