logo资料库

mipi_CSI-3_specification_v1-0.pdf

第1页 / 共291页
第2页 / 共291页
第3页 / 共291页
第4页 / 共291页
第5页 / 共291页
第6页 / 共291页
第7页 / 共291页
第8页 / 共291页
资料共291页,剩余部分请下载后查看
Contents
Figures
Tables
Release History
1 Introduction
1.1 Scope
1.2 Purpose
2 Terminology
2.1 Definitions
2.2 Abbreviations
2.3 Acronyms
3 References
4 CSI-3 Architecture (informative)
4.1 Typical Device Connections
4.2 3D Camera and Multi-view Formats
4.3 CSI-3 Protocol Stack
4.3.1 UniPro and M-PHY (UniPort-M) on CSI-3
4.4 Compatibility with CSI-2
4.5 CSI-3 Use Model
4.5.1 Host
4.5.2 Camera
5 Attributes
5.1 Address Map
5.2 CSI-3 Attributes for Device Identification
5.3 Shared Events
5.4 Virtual Channel Attributes
5.4.1 Pixel Transport Channel Attributes
5.4.2 JPEG Transport Channel
5.4.3 CCI Bridge Channel
5.4.4 Notification Channel
5.5 Protocol Implementation Conformance Statement (PICS) Proforma
5.5.1 Abbreviations and Special Symbols
5.5.1.1 Status Symbols
5.5.1.2 Abbreviations
5.5.2 Instructions for Completing the PICS Proforma
5.5.2.1 General Structure of the PICS Proforma
5.5.2.2 Additional Information
5.5.2.3 Exception Information
5.5.2.4 Conditional Items
5.5.3 Identification
5.5.3.1 Implementation Identification
5.5.3.2 Protocol Summary
5.5.3.3 Major Capabilities and Options
5.5.4 PICS Proforma Tables for Attributes
5.5.4.1 Attributes
5.5.4.2 Address Map
5.5.4.3 CSI-3 Attributes for Device Identification
5.5.4.4 Shared Events
5.5.4.5 Virtual Channel Attributes
6 Configuration Protocol for Camera (CPC)
6.1 Transport of CPC PDUs
6.2 Processing Order and Flow Control
6.3 Attribute Packet Encoding
6.4 Examples (informative)
6.5 Protocol Implementation Conformance Statement (PICS) Proforma
6.5.1 Abbreviations and Special Symbols
6.5.1.1 Status Symbols
6.5.1.2 Abbreviations
6.5.2 Instructions for Completing the PICS Proforma
6.5.2.1 General Structure of the PICS Proforma
6.5.2.2 Additional Information
6.5.2.3 Exception Information
6.5.2.4 Conditional Items
6.5.3 Identification
6.5.3.1 Implementation Identification
6.5.3.2 Protocol Summary
6.5.4 Global Statement of Conformance
6.5.5 PICS Proforma Tables for Configuration Protocol for Camera (CPC)
6.5.5.1 Configuration Protocol for Camera (CPC)
6.5.5.2 Supported Operations
6.5.5.3 Transport of CPC PDUs
6.5.5.4 Processing Order and Flow Control
6.5.5.5 Attribute Packet Encoding
7 Data Plane
7.1 Link Between CAL and Transport Layer
7.2 Packet Generation and Structure
7.3 Packet Header
7.3.1 DTYPE Field
7.3.2 TXOVR Field
7.3.3 SYNC Field
7.3.4 FRAME Field
7.3.5 OFST Field
7.3.6 X and Y Position
7.4 End Of Payload
7.5 Interleaving
7.6 Flow Control and Streaming Interface
7.6.1 Camera Application Layer Interaction with the UniPro Stack
7.6.2 UniPro Message Fragment Generation in the Camera
7.6.2.1 CAL TxBuffer Overflow Examples
7.6.3 Controlled Early Termination
7.6.4 UniPro Message Processing in the Receiver
7.7 Protocol Implementation Conformance Statement (PICS) Proforma
7.7.1 Abbreviations and Special Symbols
7.7.1.1 Status Symbols
7.7.1.2 Abbreviations
7.7.2 Instructions for Completing the PICS Proforma
7.7.2.1 General Structure of the PICS Proforma
7.7.2.2 Additional Information
7.7.2.3 Exception Information
7.7.2.4 Conditional Items
7.7.3 Identification
7.7.3.1 Implementation Identification
7.7.3.2 Protocol Summary
7.7.4 Global Statement of Conformance
7.7.5 PICS Proforma Tables for Data Plane
7.7.5.1 Data Plane
7.7.5.2 Link Between CAL and Transport Layer
7.7.5.3 Packet Generation and Structure
7.7.5.4 Packet Header
7.7.5.5 End of Payload (EOP)
7.7.5.6 Interleaving
7.7.5.7 Flow Control and Streaming Interface
7.7.5.8 CPort Safety Valve
8 Transport Abstraction Layer (TAL)
9 UniPro Configuration and Control
9.1 Application Layer (UniPro Layer LA)
9.2 UniPro Device Management Entity (DME)
9.3 DME DDB L1 Attributes
9.4 UniPro Layer 4 Attributes
9.4.1 T_NumCPorts – Number of Available CPorts
9.4.2 T_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Segment (in bytes) for Traffic Class x
9.4.3 T_TrafficClass[n] – Traffic Class of the Connection Established with CPort n
9.4.4 T_ProtocolID[n] – ProtocolID Value of the Connection Established with CPort n
9.4.5 T_CPortFlags[n] – End-to-End Flow Control, CPort Safety Valve, and Controlled Segment Dropping for the Connection Established with CPort n
9.5 UniPro Layer 3 Attributes
9.5.1 N_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Layer 3 Packet (in bytes) for Traffic Class x
9.6 UniPro Layer 2 Attributes
9.6.1 DL_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Frame (in symbols) for Traffic Class x
9.6.2 DL_TCxTxBufferSize – Total Size of Layer 2 Data Buffers Used to Store Transmitted Frames for Traffic Class x
9.6.3 DL_TCxOutAckThreshold – Number of Additional Data Frames That Must be Received Before an Acknowledgment Frame is Sent for Traffic Class x
9.6.4 DL_TCxRxInitCreditVal – Initial Credit Value of Layer 2 Data Buffers Used to Store Received Frames for Traffic Class x
9.6.5 DL_TxPreemptionCap – TX Preemption Capability for Both Traffic Classes
9.6.6 DL_AFCkCreditThreshold – Threshold on unsent credits for RX triggering the transmission of a flow control credits AFC for Traffic Class x
9.6.7 DL_TCxTXFCThreshold and DL_FCxProtectionTimeOutVal – “Remaining credits” threshold and FCk_PROTECTION_TIMER time out value, respectively, for TX triggering a flow control request AFC for Traffic Class x
9.7 UniPro Layer 1.5 Attributes
9.7.1 PA_PHY_Type – PHY Type
9.7.2 PA_AvailTxDataLanes – Number of Supported TX LANEs
9.7.3 PA_AvailRxDataLanes – Number of Supported RX LANEs
9.7.4 PA_TxTrailingClocks – Number of M-PHY Symbol Intervals Forced without Data at End of BURST before Entering SLEEP_STATE
9.8 UniPro Layer 1 (M-PHY) Attributes
9.8.1 TX_PWMGEAR_Capability[n] – PWM GEARs Other than PWM-G0 that are Supported by M-TX n
9.8.2 RX_PWMGEAR_ Capability[n] – PWM GEARs Other than PWM-G0 that are Supported by M-RX n
9.9 Reset and Boot Procedure
9.9.1 Types of Reset
9.9.2 Reset Procedure
9.9.3 Boot Procedure
9.10 Protocol Implementation Conformance Statement (PICS) Proforma
9.10.1 Abbreviations and Special Symbols
9.10.1.1 Status Symbols
9.10.1.2 Abbreviations
9.10.2 Instructions for Completing the PICS Proforma
9.10.2.1 General Structure of the PICS Proforma
9.10.2.2 Additional Information
9.10.2.3 Exception Information
9.10.2.4 Conditional Items
9.10.3 Identification
9.10.3.1 Implementation Identification
9.10.3.2 Protocol Summary
9.10.4 Global Statement of Conformance
9.10.5 PICS Proforma Tables for UniPro Configuration
9.10.5.1 UniPro Configuration
9.10.5.2 Application Layer (UniPro Layer LA)
9.10.5.3 UniPro Device Management Entity (DME)
9.10.5.4 DME DDB L1 Attributes
9.10.5.5 UniPro Layer 4 Attributes
9.10.5.6 UniPro Layer 3 Attributes
9.10.5.7 UniPro Layer 2 Attributes
9.10.5.8 UniPro Layer 1.5 Attributes
9.10.5.9 UniPro Layer 1 (M-PHY) Attributes
9.10.5.10 Reset and Boot Procedure
Annex A Color Spaces and Image Data Formats (normative)
A.1 Color Spaces (informative)
A.1.1 RGB Color Space Definition
A.1.2 YUV Color Space Definition
A.2 Image Data Formats
A.2.1 Null and Blanking Data (DT=0x0110 and DT=0x0111)
A.2.2 Embedded 8-bit Non-image Data (CSI-2 Legacy Embedded Data)
A.2.3 YUV Data
A.2.3.1 Legacy YUV420 8-bit
A.2.3.2 YUV420 8-bit
A.2.3.3 YUV420 10-bit
A.2.3.4 YUV422 8-bit
A.2.3.5 YUV422 10-bit
A.2.4 RGB Image Data
A.2.4.1 RGB888
A.2.4.2 RGB666
A.2.4.3 RGB565
A.2.4.4 RGB555
A.2.4.5 RGB444
A.2.5 Uncompressed RAW Data
A.2.5.1 RAW6
A.2.5.2 RAW7
A.2.5.3 RAW8
A.2.5.4 RAW10
A.2.5.5 RAW12
A.2.5.6 RAW14
A.2.5.7 RAW16
A.2.6 Compressed Image Data
A.2.6.1 Compressed RAW Data
A.2.6.1.1 RAW10 DPCM6
A.2.6.1.2 RAW10 DPCM7
A.2.6.1.3 RAW10 DPCM8
A.2.6.1.4 RAW12 DPCM6
A.2.6.1.5 RAW12 DPCM7
A.2.6.1.6 RAW12 DPCM8
A.2.6.2 Data Compression for RAW Data Types
A.2.6.3 Predictors
A.2.6.3.1 Predictor1
A.2.6.3.2 Predictor2
A.2.6.4 Encoders
A.2.6.4.1 Coder for 10–8–10 Data Compression
A.2.6.4.2 Coder for 10–7–10 Data Compression
A.2.6.4.3 Coder for 10–6–10 Data Compression
A.2.6.4.4 Coder for 12–8–12 Data Compression
A.2.6.4.5 Coder for 12–7–12 Data Compression
A.2.6.4.6 Coder for 12–6–12 Data Compression
A.2.6.5 Decoders
A.2.6.5.1 Decoder for 10–8–10 Data Compression
A.2.6.5.2 Decoder for 10–7–10 Data Compression
A.2.6.5.3 Decoder for 10–6–10 Data Compression
A.2.6.5.4 Decoder for 12–8–12 Data Compression
A.2.6.5.5 Decoder for 12–7–12 Data Compression
A.2.6.5.6 Decoder for 12–6–12 Data Compression
A.2.6.6 JPEG
A.2.6.6.1 Type 1 JPEG Packets (JIF)
A.2.6.6.2 Type 2 JPEG Packets (JFIF)
A.2.6.6.3 Type 3 JPEG Packets (Exif)
A.2.6.6.4 Rules for Outputting JFIF- and Exif-Compatible Data
A.2.6.6.5 JPEG Transport Channel Attributes
A.2.6.6.6 Exif Application Example (informative)
A.2.7 User Defined Data Formats
A.3 Protocol Implementation Conformance Statement (PICS) Proforma
A.3.1 Abbreviations and Special Symbols
A.3.1.1 Status Symbols
A.3.1.2 Abbreviations
A.3.2 Instructions for Completing the PICS Proforma
A.3.2.1 General Structure of the PICS Proforma
A.3.2.2 Additional Information
A.3.2.3 Exception Information
A.3.2.4 Conditional Items
A.3.3 Identification
A.3.3.1 Implementation Identification
A.3.3.2 Protocol Summary
A.3.4 Global Statement of Conformance
A.3.5 PICS Proforma Tables for Color Spaces and Image Data Formats
A.3.5.1 Image Data Formats
Annex B CCI Bridging over UniPort-M (normative)
B.1 System Application Scenarios
B.2 I2C/CCI Feature Support
B.3 CCI Bridging Architecture Overview
B.4 Terminology
B.5 CSI-3 Virtual Channel Attributes for CCI Bridging
B.6 CCI Transaction GET and SET PDU Formats
B.7 CCI GET PDU and SET PDU Preambles
B.7.1 CCI RESPONSE PDU Preamble
B.7.2 CCI SET PDU and RESPONSE PDU Payloads
B.8 Handling of CCI Multi-Byte Registers
B.9 CCI NOTIFY PDU Format
B.10 CCI Transaction Error Codes
B.11 Behavioral Pseudo-Code for CCI Read and Write Transactions
B.11.1 CCI Examples
B.11.1.1 CCI Write Transaction
B.11.1.2 CCI Read Transaction (Three of Four Consecutive Registers)
B.11.1.3 CCI Read Transaction (Read-current Transaction)
B.12 Protocol Implementation Conformance Statement (PICS) Proforma
B.12.1 Abbreviations and Special Symbols
B.12.1.1 Status Symbols
B.12.1.2 Abbreviations
B.12.2 Instructions for Completing the PICS Proforma
B.12.2.1 General Structure of the PICS Proforma
B.12.2.2 Additional Information
B.12.2.3 Exception Information
B.12.2.4 Conditional Items
B.12.3 Identification
B.12.3.1 Implementation Identification
B.12.3.2 Protocol Summary
B.12.4 Global Statement of Conformance
B.12.5 PICS Proforma Tables for CCI Bridging over UniPort-M
B.12.5.1 CCI Bridging over UniPort-M
B.12.5.2 CCI Bridging Architecture Overview
B.12.5.3 CCI Bridging Virtual Channel Attributes
B.12.5.4 CCI Transaction GET and SET PDU Formats
B.12.5.5 CCI Transaction GET and SET PDU Formats
B.12.5.6 Handling of CCI Multi-Byte Registers
B.12.5.7 CCI NOTIFY PDU Format
B.12.5.8 CCI Transaction Error Codes
Annex C Test Patterns for CSI-3 (normative)
C.1 Full Frame Deterministic Test Patterns
C.1.1 Solid Color Mode
C.1.2 100% Color Bars Pattern Mode
C.1.2.1 Pattern Size
C.1.3 “Fade to Grey' Color Bar Mode
C.1.3.1 Pattern Size
C.2 Test Cursors
C.3 Protocol Implementation Conformance Statement (PICS) Proforma
C.3.1 Abbreviations and Special Symbols
C.3.1.1 Status Symbols
C.3.1.2 Abbreviations
C.3.2 Instructions for Completing the PICS Proforma
C.3.2.1 General Structure of the PICS Proforma
C.3.2.2 Additional Information
C.3.2.3 Exception Information
C.3.2.4 Conditional Items
C.3.3 Identification
C.3.3.1 Implementation Identification
C.3.3.2 Protocol Summary
C.3.4 Global Statement of Conformance
C.3.5 PICS Proforma Tables for Test Patterns for CSI-3
C.3.5.1 Test Patterns for CSI-3
C.3.5.2 Full Frame Deterministic Test Patterns
22-Oct-2012 Specification for Camera Serial Interface 3 (CSI-3) Version 1.0 – 7 June 2012 MIPI Board Adopted 11-Oct-2012 * NOTE TO IMPLEMENTERS * This document is a Specification. MIPI member companies’ rights and obligations apply to this Specification as defined in the MIPI Membership Agreement and MIPI Bylaws. Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
Specification for CSI-3 Version 1.0 22-Oct-2012 This page intentionally left blank. 2 Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
Introduction 1 2 Terminology 3 References 4 CSI-3 Architecture (informative) 5 Attributes 6 Configuration Protocol for Camera (CPC) 7 Data Plane 8 Transport Abstraction Layer (TAL) 124 9 UniPro Configuration and Control 125 A Color Spaces and Image Data 149 Formats (normative) B CCI Bridging over UniPort-M (normative) 230 C Test Patterns for CSI-3 (normative) 267 Specification for Camera Serial Interface 3 (CSI-3) 1 2 8 10 18 57 80 Version 1.0 7 June 2012 MIPI Board Adopted 11-Oct-2012 Further technical changes to this document are expected as work continues in the Camera Working Group. Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
Specification for CSI-3 Version 1.0 7-Jun-2012 NOTICE OF DISCLAIMER The material contained herein is not a license, either expressly or implicitly, to any IPR owned or controlled by any of the authors or developers of this material or MIPI®. The material contained herein is provided on an “AS IS” basis and to the maximum extent permitted by applicable law, this material is provided AS IS AND WITH ALL FAULTS, and the authors and developers of this material and MIPI hereby disclaim all other warranties and conditions, either express, implied or statutory, including, but not limited to, any (if any) implied warranties, duties or conditions of merchantability, of fitness for a particular purpose, of accuracy or completeness of responses, of results, of workmanlike effort, of lack of viruses, and of lack of negligence. All materials contained herein are protected by copyright laws, and may not be reproduced, republished, distributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the express prior written permission of MIPI Alliance. MIPI, MIPI Alliance and the dotted rainbow arch and all related trademarks, tradenames, and other intellectual property are the exclusive property of MIPI Alliance and cannot be used without its express prior written permission. ALSO, THERE IS NO WARRANTY OF CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THIS MATERIAL OR THE CONTENTS OF THIS DOCUMENT. IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR THE CONTENTS OF THIS DOCUMENT OR MIPI BE LIABLE TO ANY OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT, SPECIFICATION OR DOCUMENT RELATING TO THIS MATERIAL, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. Without limiting the generality of this Disclaimer stated above, the user of the contents of this Document is further notified that MIPI: (a) does not evaluate, test or verify the accuracy, soundness or credibility of the contents of this Document; (b) does not monitor or enforce compliance with the contents of this Document; and (c) does not certify, test, or in any manner investigate products or services or any claims of compliance with the contents of this Document. The use or implementation of the contents of this Document may involve or require the use of intellectual property rights (“IPR”) including (but not limited to) patents, patent applications, or copyrights owned by one or more parties, whether or not Members of MIPI. MIPI does not make any search or investigation for IPR, nor does MIPI require or request the disclosure of any IPR or claims of IPR as respects the contents of this Document or otherwise. Questions pertaining to this document, or the terms or conditions of its provision, should be addressed to: MIPI Alliance, Inc. c/o IEEE-ISTO 445 Hoes Lane Piscataway, NJ 08854 Attn: Board Secretary ii Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
Version 1.0 7-Jun-2012 Specification for CSI-3 1.1 1.2 2.1 2.2 2.3 4.1 4.2 4.3 4.4 4.5 Contents Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Release History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 CSI-3 Architecture (informative) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Typical Device Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3D Camera and Multi-view Formats. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 CSI-3 Protocol Stack. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3.1 UniPro and M-PHY (UniPort-M) on CSI-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Compatibility with CSI-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 CSI-3 Use Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.5.1 Host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.5.2 Camera. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Address Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 CSI-3 Attributes for Device Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Shared Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Virtual Channel Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Pixel Transport Channel Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.4.1 5.4.2 JPEG Transport Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.4.3 CCI Bridge Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.4.4 Notification Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . . 46 5.5.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.5.2 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 5.5.3 5.5.4 PICS Proforma Tables for Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6 Configuration Protocol for Camera (CPC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Transport of CPC PDUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Processing Order and Flow Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Attribute Packet Encoding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Examples (informative). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . . 67 6.5.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.1 6.2 6.3 6.4 6.5 5.1 5.2 5.3 5.4 5.5 Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential iii
Specification for CSI-3 Version 1.0 7-Jun-2012 7.1 7.2 7.3 7.4 7.5 7.6 7.7 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.5.2 6.5.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.5.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 6.5.5 PICS Proforma Tables for Configuration Protocol for Camera (CPC) . . . . . . . . . . . 70 7 Data Plane. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Link Between CAL and Transport Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Packet Generation and Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Packet Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 7.3.1 DTYPE Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 TXOVR Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 7.3.2 7.3.3 SYNC Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 7.3.4 FRAME Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 7.3.5 OFST Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 7.3.6 X and Y Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 End Of Payload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Interleaving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Flow Control and Streaming Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 7.6.1 Camera Application Layer Interaction with the UniPro Stack . . . . . . . . . . . . . . . . . 96 7.6.2 UniPro Message Fragment Generation in the Camera . . . . . . . . . . . . . . . . . . . . . . . 99 7.6.3 Controlled Early Termination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 7.6.4 UniPro Message Processing in the Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . 109 7.7.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 7.7.2 7.7.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 7.7.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 PICS Proforma Tables for Data Plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 7.7.5 8 Transport Abstraction Layer (TAL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 9 UniPro Configuration and Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Application Layer (UniPro Layer LA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 UniPro Device Management Entity (DME) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 DME DDB L1 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 UniPro Layer 4 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 T_NumCPorts – Number of Available CPorts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 T_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Segment (in bytes) for Traffic Class x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 T_TrafficClass[n] – Traffic Class of the Connection Established with CPort n . . . 127 T_ProtocolID[n] – ProtocolID Value of the Connection Established with CPort n 127 T_CPortFlags[n] – End-to-End Flow Control, CPort Safety Valve, and Controlled Segment Dropping for the Connection Established with CPort n . . . . . . . . . . . . . . 127 UniPro Layer 3 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 9.5.1 N_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Layer 3 Packet (in bytes) for Traffic Class x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 UniPro Layer 2 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 9.6.1 DL_TCxTxMaxSDUSize – Maximum Transmit Payload (SDU) Size per Frame (in symbols) for Traffic Class x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 9.6.2 DL_TCxTxBufferSize – Total Size of Layer 2 Data Buffers Used to Store Transmitted 9.4.3 9.4.4 9.4.5 9.1 9.2 9.3 9.4 9.4.1 9.4.2 9.5 9.6 iv Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
Version 1.0 7-Jun-2012 Specification for CSI-3 Frames for Traffic Class x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 9.6.3 DL_TCxOutAckThreshold – Number of Additional Data Frames That Must be Received Before an Acknowledgment Frame is Sent for Traffic Class x . . . . . . . . 128 9.6.4 DL_TCxRxInitCreditVal – Initial Credit Value of Layer 2 Data Buffers Used to Store Received Frames for Traffic Class x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 9.6.5 DL_TxPreemptionCap – TX Preemption Capability for Both Traffic Classes. . . . 128 9.6.6 DL_AFCkCreditThreshold – Threshold on unsent credits for RX triggering the transmission of a flow control credits AFC for Traffic Class x. . . . . . . . . . . . . . . . 128 9.6.7 DL_TCxTXFCThreshold and DL_FCxProtectionTimeOutVal – “Remaining credits” threshold and FCk_PROTECTION_TIMER time out value, respectively, for TX triggering a flow control request AFC for Traffic Class x. . . . . . . . . . . . . . . . . . . . 129 UniPro Layer 1.5 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 PA_PHY_Type – PHY Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 PA_AvailTxDataLanes – Number of Supported TX LANEs . . . . . . . . . . . . . . . . . 129 PA_AvailRxDataLanes – Number of Supported RX LANEs . . . . . . . . . . . . . . . . . 129 PA_TxTrailingClocks – Number of M-PHY Symbol Intervals Forced without Data at End of BURST before Entering SLEEP_STATE . . . . . . . . . . . . . . . . . . . . . . . . . . 130 UniPro Layer 1 (M-PHY) Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 TX_PWMGEAR_Capability[n] – PWM GEARs Other than PWM-G0 that are Supported by M-TX n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 9.7 9.7.1 9.7.2 9.7.3 9.7.4 9.8 9.8.1 9.9 9.8.2 RX_PWMGEAR_ Capability[n] – PWM GEARs Other than PWM-G0 that are A.1 9.10 Supported by M-RX n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Reset and Boot Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 9.9.1 Types of Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 9.9.2 Reset Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 9.9.3 Boot Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . 133 9.10.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 9.10.2 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 9.10.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 9.10.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 9.10.5 PICS Proforma Tables for UniPro Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Annex A Color Spaces and Image Data Formats (normative) . . . . . . . . . . . . . . . . 149 Color Spaces (informative) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 A.1.1 RGB Color Space Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 A.1.2 YUV Color Space Definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Image Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 A.2.1 Null and Blanking Data (DT=0x0110 and DT=0x0111). . . . . . . . . . . . . . . . . . . . . 154 A.2.2 Embedded 8-bit Non-image Data (CSI-2 Legacy Embedded Data) . . . . . . . . . . . . 154 A.2.3 YUV Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 A.2.4 RGB Image Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 A.2.5 Uncompressed RAW Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 A.2.6 Compressed Image Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 A.2.7 User Defined Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . 217 A.3.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 A.3.2 A.3.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 A.2 A.3 Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential v
Specification for CSI-3 Version 1.0 7-Jun-2012 B.8 B.9 B.10 B.11 B.1 B.2 B.3 B.4 B.5 B.6 B.7 A.3.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 A.3.5 PICS Proforma Tables for Color Spaces and Image Data Formats. . . . . . . . . . . . . 220 Annex B CCI Bridging over UniPort-M (normative) . . . . . . . . . . . . . . . . . . . . . . . 230 System Application Scenarios. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 I2C/CCI Feature Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 CCI Bridging Architecture Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 CSI-3 Virtual Channel Attributes for CCI Bridging . . . . . . . . . . . . . . . . . . . . . . . . . . 233 CCI Transaction GET and SET PDU Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 CCI GET PDU and SET PDU Preambles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 B.7.1 CCI RESPONSE PDU Preamble. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 B.7.2 CCI SET PDU and RESPONSE PDU Payloads . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Handling of CCI Multi-Byte Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 CCI NOTIFY PDU Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 CCI Transaction Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 Behavioral Pseudo-Code for CCI Read and Write Transactions . . . . . . . . . . . . . . . . 244 B.11.1 CCI Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . 250 B.12.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 B.12.2 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 B.12.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 B.12.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 B.12.5 PICS Proforma Tables for CCI Bridging over UniPort-M . . . . . . . . . . . . . . . . . . . 253 Annex C Test Patterns for CSI-3 (normative) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 Full Frame Deterministic Test Patterns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 C.1.1 Solid Color Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267 100% Color Bars Pattern Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 C.1.2 “Fade to Grey' Color Bar Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269 C.1.3 Test Cursors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 Protocol Implementation Conformance Statement (PICS) Proforma . . . . . . . . . . . . . 272 C.3.1 Abbreviations and Special Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 Instructions for Completing the PICS Proforma . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 C.3.2 C.3.3 Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 C.3.4 Global Statement of Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 C.3.5 PICS Proforma Tables for Test Patterns for CSI-3 . . . . . . . . . . . . . . . . . . . . . . . . . 275 B.12 C.1 C.2 C.3 vi Copyright © 2010-2012 MIPI Alliance, Inc. All rights reserved. Confidential
分享到:
收藏