Specification for
Camera Serial Interface 2 (CSI-2)
Version 1.2
22 January 201
4
MIPI Board Adopted 10 September
2014
This document is subject to further editorial and
technical development.
Copyright © 2005-2014 MIPI Alliance, Inc.
All rights reserved.
Confidential
NOTICE OF DISCLAIMER
The material contained herein is not a license, either expressly or impliedly, 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
Copyright © 2005-2014 MIPI Alliance, Inc.
All rights reserved.
Confidential
ii
Version 1.2 MIPI Alliance Specification for CSI-2
22 Jan-2014
Contents 2
Contents ......................................................................................................................................................... iii
3
Tables ........................................................................................................................................................... xii
4
Release History ............................................................................................................................................ xiii
5
1
Overview ................................................................................................................................................. 1 6
1.1
Scope ............................................................................................................................................... 1 7
1.2
Purpose ............................................................................................................................................ 1 8
2
Terminology ............................................................................................................................................ 2 9
2.1
Definitions ....................................................................................................................................... 2 10
2.2
Abbreviations .................................................................................................................................. 2 11
2.3
Acronyms ........................................................................................................................................ 3 12
3
References ............................................................................................................................................... 5 13
4
Overview of CSI-2 .................................................................................................................................. 6 14
5
CSI-2 Layer Definitions .......................................................................................................................... 7 15
6
Camera Control Interface (CCI) .............................................................................................................. 9 16
6.1
Data Transfer Protocol .................................................................................................................... 9 17
6.1.1
Message Type .......................................................................................................................... 9 18
6.1.2
Read/Write Operations .......................................................................................................... 10 19
6.2
CCI Slave Addresses ..................................................................................................................... 13 20
6.3
CCI Multi-Byte Registers .............................................................................................................. 13 21
6.3.1
Overview ............................................................................................................................... 13 22
6.3.2
The Transmission Byte Order for Multi-byte Register Values .............................................. 15 23
6.3.3
Multi-Byte Register Protocol ................................................................................................. 16 24
6.4
Electrical Specifications and Timing for I/O Stages ..................................................................... 20 25
7
Physical Layer ....................................................................................................................................... 23 26
8
Multi-Lane Distribution and Merging ................................................................................................... 24 27
8.1
Multi-Lane Interoperability ........................................................................................................... 29 28
9
Low Level Protocol ............................................................................................................................... 32 29
9.1
Low Level Protocol Packet Format ............................................................................................... 32 30
9.1.1
Low Level Protocol Long Packet Format .............................................................................. 32 31
9.1.2
Low Level Protocol Short Packet Format .............................................................................. 34 32
9.2
Data Identifier (DI) ........................................................................................................................ 34 33
9.3
Virtual Channel Identifier .............................................................................................................. 34 34
9.4
Data Type (DT) ............................................................................................................................. 35 35
9.5
Packet Header Error Correction Code ........................................................................................... 36 36
9.5.1
General Hamming Code Applied to Packet Header .............................................................. 37 37
Copyright © 2005-2014 MIPI Alliance, Inc.
All rights reserved.
Confidential
iii
Version 1.2 MIPI Alliance Specification for CSI-2
22 Jan-2014
9.5.2
Hamming-Modified Code ...................................................................................................... 37 38
9.5.3
ECC Generation on TX Side ................................................................................................. 40 39
9.5.4
Applying ECC on RX Side .................................................................................................... 41 40
9.6
Checksum Generation ................................................................................................................... 42 41
9.7
Packet Spacing .............................................................................................................................. 44 42
9.8
Synchronization Short Packet Data Type Codes ........................................................................... 45 43
9.8.1
Frame Synchronization Packets ............................................................................................. 45 44
9.8.2
Line Synchronization Packets ................................................................................................ 46 45
9.9
Generic Short Packet Data Type Codes......................................................................................... 46 46
9.10
Packet Spacing Examples .............................................................................................................. 47 47
9.11
Packet Data Payload Size Rules .................................................................................................... 49 48
9.12
Frame Format Examples ................................................................................................................ 50 49
9.13
Data Interleaving ........................................................................................................................... 52 50
9.13.1
Data Type Interleaving .......................................................................................................... 52 51
9.13.2
Virtual Channel Identifier Interleaving .................................................................................. 55 52
10
Color Spaces ...................................................................................................................................... 57 53
10.1
RGB Color Space Definition ......................................................................................................... 57 54
10.2
YUV Color Space Definition ........................................................................................................ 57 55
11
Data Formats ..................................................................................................................................... 58 56
11.1
Generic 8-bit Long Packet Data Types .......................................................................................... 59 57
11.1.1
Null and Blanking Data ......................................................................................................... 59 58
11.1.2
Embedded Information .......................................................................................................... 59 59
11.2
YUV Image Data ........................................................................................................................... 60 60
11.2.1 Legacy YUV420 8-bit ........................................................................................................... 61 61
11.2.2
YUV420 8-bit ........................................................................................................................ 63 62
11.2.3
YUV420 10-bit ...................................................................................................................... 65 63
11.2.4
YUV422 8-bit ........................................................................................................................ 67 64
11.2.5
YUV422 10-bit ...................................................................................................................... 69 65
11.3
RGB Image Data ........................................................................................................................... 70 66
11.3.1
RGB888 ................................................................................................................................. 71 67
11.3.2
RGB666 ................................................................................................................................. 72 68
11.3.3
RGB565 ................................................................................................................................. 73 69
11.3.4
RGB555 ................................................................................................................................. 74 70
11.3.5
RGB444 ................................................................................................................................. 75 71
11.4
RAW Image Data .......................................................................................................................... 75 72
11.4.1
RAW6 .................................................................................................................................... 76 73
11.4.2
RAW7 .................................................................................................................................... 77 74
Copyright © 2005-2014 MIPI Alliance, Inc.
All rights reserved.
Confidential
iv
Version 1.2 MIPI Alliance Specification for CSI-2
22 Jan-2014
11.4.3
RAW8 .................................................................................................................................... 78 75
11.4.4
RAW10 .................................................................................................................................. 79 76
11.4.5
RAW12 .................................................................................................................................. 80 77
11.4.6
RAW14 .................................................................................................................................. 81 78
11.5
User Defined Data Formats ........................................................................................................... 82 79
12
Recommended Memory Storage ....................................................................................................... 84 80
12.1
General/Arbitrary Data Reception ................................................................................................. 84 81
12.2
RGB888 Data Reception ............................................................................................................... 85 82
12.3
RGB666 Data Reception ............................................................................................................... 85 83
12.4
RGB565 Data Reception ............................................................................................................... 86 84
12.5
RGB555 Data Reception ............................................................................................................... 86 85
12.6
RGB444 Data Reception ............................................................................................................... 87 86
12.7
YUV422 8-bit Data Reception ...................................................................................................... 87 87
12.8
YUV422 10-bit Data Reception .................................................................................................... 88 88
12.9
YUV420 8-bit (Legacy) Data Reception ....................................................................................... 88 89
12.10
YUV420 8-bit Data Reception .................................................................................................. 90 90
12.11
YUV420 10-bit Data Reception ................................................................................................ 91 91
12.12
RAW6 Data Reception .............................................................................................................. 92 92
12.13
RAW7 Data Reception .............................................................................................................. 92 93
12.14
RAW8 Data Reception .............................................................................................................. 93 94
12.15
RAW10 Data Reception ............................................................................................................ 93 95
12.16
RAW12 Data Reception ............................................................................................................ 94 96
12.17 RAW14 Data Reception ............................................................................................................ 94 97
Annex A
JPEG8 Data Format (informative) ............................................................................................. 95 98
A.1
Introduction ................................................................................................................................... 95 99
A.2
JPEG Data Definition .................................................................................................................... 96 100
A.3
Image Status Information .............................................................................................................. 97 101
A.4
Embedded Images ......................................................................................................................... 98 102
A.5
JPEG8 Non-standard Markers ....................................................................................................... 99 103
A.6
JPEG8 Data Reception ................................................................................................................ 100 104
Annex B
CSI-2 Implementation Example (informative) ........................................................................ 101 105
B.1
Overview ..................................................................................................................................... 101 106
B.2
CSI-2 Transmitter Detailed Block Diagram ................................................................................ 101 107
B.3
CSI-2 Receiver Detailed Block Diagram .................................................................................... 102 108
B.4
Details on the D-PHY implementation ........................................................................................ 103 109
B.4.1
CSI-2 Clock Lane Transmitter ............................................................................................. 105 110
B.4.2
CSI-2 Clock Lane Receiver ................................................................................................. 106 111
Copyright © 2005-2014 MIPI Alliance, Inc.
All rights reserved.
Confidential
v
评论0