1、JEDEC STANDARD Universal Flash Storage (UFS) Version 2.1 JESD220C (Revision of JESD220B, September 2013) MARCH 2016 JEDEC SOLID STATE TECHNOLOGY ASSOCIATION NOTICE JEDEC standards and publications contain material that has been prepared, reviewed, and approved through the JEDEC Board of Directors le
2、vel and subsequently reviewed and approved by the JEDEC legal counsel. JEDEC standards and publications are designed to serve the public interest through eliminating misunderstandings between manufacturers and purchasers, facilitating interchangeability and improvement of products, and assisting the
3、 purchaser in selecting and obtaining with minimum delay the proper product for use by those other than JEDEC members, whether the standard is to be used either domestically or internationally. JEDEC standards and publications are adopted without regard to whether or not their adoption may involve p
4、atents or articles, materials, or processes. By such action JEDEC does not assume any liability to any patent owner, nor does it assume any obligation whatever to parties adopting the JEDEC standards or publications. The information included in JEDEC standards and publications represents a sound app
5、roach to product specification and application, principally from the solid state device manufacturer viewpoint. Within the JEDEC organization there are procedures whereby a JEDEC standard or publication may be further processed and ultimately become an ANSI standard. No claims to be in conformance w
6、ith this standard may be made unless all requirements stated in the standard are met. Inquiries, comments, and suggestions relative to the content of this JEDEC standard or publication should be addressed to JEDEC at the address below, or refer to www.jedec.org under Standards and Documents for alte
7、rnative contact information. Published by JEDEC Solid State Technology Association 2016 3103 North 10th Street Suite 240 South Arlington, VA 22201-2107 This document may be downloaded free of charge; however JEDEC retains the copyright on this material. By downloading this file the individual agrees
8、 not to charge for or resell the resulting material. PRICE: Contact JEDEC Printed in the U.S.A. All rights reserved PLEASE! DONT VIOLATE THE LAW! This document is copyrighted by JEDEC and may not be reproduced without permission. For information, contact: JEDEC Solid State Technology Association 310
9、3 North 10th Street Suite 240 South Arlington, VA 22201-2107 or refer to www.jedec.org under Standards-Documents/Copyright Information. JEDEC Standard No. 220C -i- UNIVERSAL FLASH STORAGE (UFS) Contents Page 1 Scope 1 2 Normative Reference 1 3 Terms and Definitions 2 3.1 Acronyms 3 3.2 Conventions 4
10、 3.3 Keywords 5 3.4 Abbreviations 5 4 Introduction 6 4.1 General Features 6 4.2 Interface Features 7 4.3 Functional Features 7 5 UFS Architecture Overview 8 5.1 UFS Top Level Architecture 8 5.2 UFS System Model 11 5.3 System Boot and Enumeration 11 5.4 UFS Interconnect (UIC) Layer 12 5.4.1 UFS Physi
11、cal Layer Signals 12 5.4.2 MIPI UniPro 12 5.4.3 MIPI UniPro Related Attributes 13 5.5 UFS Transport Protocol (UTP) Layer 13 5.5.1 Architectural Model 14 5.6 UFS Application and Command Layer 18 6 UFS Electrical: Clock, Reset, Signals and Supplies 19 6.1 UFS Signals 19 6.2 Reset Signal 21 6.3 Power S
12、upplies 21 6.4 Reference Clock 22 6.4.1 HS Gear Rates 24 6.4.2 Host Controller requirements for reference clock generation 25 6.5 External Charge Pump Capacitors (Optional) 26 6.6 Absolute Maximum DC Ratings 27 7 Reset, Power-up and Power-down 28 7.1 Reset 28 7.1.1 Power-on Reset 28 7.1.2 Hardware R
13、eset 29 7.1.3 EndPointReset 30 7.1.4 Logical Unit Reset 31 7.1.5 Host UniPro Warm Reset 31 7.1.6 Summary of Resets and Device Behavior 32 7.2 Power up ramp 33 7.3 Power off ramp 34 7.4 UFS Device Power Modes and LU Power Condition 35 7.4.1 Device Power Modes 35 7.4.2 Power Management Command: START
14、STOP UNIT 43 7.4.3 Power Mode Control 45 7.4.4 Logical Unit Power Condition 47 JEDEC Standard No. 220C -ii- 8 UFS UIC Layer: MIPI M-PHY 48 8.1 Termination 48 8.2 Drive Levels 48 8.3 PHY State machine 48 8.4 HS Burst 49 8.4.1 HS Prepare Length Control 49 8.4.2 HS Sync Length Control 49 8.5 PWM Burst
15、49 8.5.1 LS Prepare Length Control 49 8.6 UFS PHY Attributes 49 8.7 Electrical characteristics 52 8.7.1 Transmitter Characteristics 52 8.7.2 Receiver Characteristics 52 9 UFS UIC Layer: MIPI Unipro 53 9.1 Overview 53 9.2 Architectural Model 53 9.3 UniPro/UFS Transport Protocol Interface (Data Plane)
16、 54 9.4 UniPro/UFS Control Interface (Control Plane) 55 9.5 UniPro/UFS Transport Protocol Address Mapping 56 9.6 Options and Tunable Parameters of UniPro 57 9.6.1 UniPro PHY Adapter 57 9.6.2 UniPro Data Link Layer 57 9.6.3 UniPro Network Layer 57 9.6.4 UniPro Transport Layer 58 9.6.5 UniPro Device M
17、anagement Entity Transport Layer 58 9.6.6 UniPro Attributes 59 10 UFS Transport Protocol (UTP) Layer 60 10.1 Overview 60 10.2 UTP and UniPro Specific Overview 61 10.2.1 Phases 61 10.2.2 Data Pacing 61 10.2.3 UniPro 61 10.3 UFS Transport Protocol Transactions Overview 62 10.4 Service Delivery Subsyst
18、em 62 10.5 UPIU Transactions 62 10.5 UPIU Transactions (contd) 63 10.6 General UFS Protocol Information Unit Format 64 10.6.1 Overview 65 10.6.2 Basic Header Format 65 10.7 UFS Protocol Information Units 70 10.7.1 COMMAND UPIU 70 10.7.2 RESPONSE UPIU 73 10.7.3 DATA OUT UPIU 82 10.7.4 DATA IN UPIU 85
19、 10.7.5 READY TO TRANSFER UPIU 88 10.7.6 TASK MANAGEMENT REQUEST UPIU 91 10.7.7 TASK MANAGEMENT RESPONSE UPIU 93 10.7.8 QUERY REQUEST UPIU 95 10.7.9 QUERY RESPONSE UPIU 108 10.7.10 REJECT UPIU 120 10.7.11 NOP OUT UPIU 122 JEDEC Standard No. 220C -iii- 10.7.12 NOP IN UPIU 124 10.7.13 Data out transfe
20、r rules 126 10.7.13 Data out transfer rules (contd) 127 10.7.13 Data out transfer rules (contd) 128 10.7.13 Data out transfer rules (contd) 129 10.8 Logical Units 130 10.8.1 UFS SCSI Domain 130 10.8.2 UFS Logical Unit Definition 130 10.8.3 Well Known Logical Unit Definition 131 10.8.4 Logical Unit A
21、ddressing 131 10.8.5 Well Known Logical Unit Defined in UFS 132 10.8.6 Translation of 8-bit UFS LUN to 64-bit SCSI LUN Address 133 10.8.7 SCSI Write Command 134 10.8.8 SCSI Read Command 135 10.9 Application Layer and Device Manager Transport Protocol Services 136 10.9.1 UFS Initiator Port and Target
22、 Port Attributes 136 10.9.2 Execute Command procedure call transport protocol services 137 10.9.3 SCSI Command transport protocol service 138 10.9.4 SCSI Command Received transport protocol 139 10.9.5 Send Command Complete transport protocol service 140 10.9.6 Command Complete Received transport pro
23、tocol service 141 10.9.7 Data transfer SCSI transport protocol services 142 10.9.8 Task Management Function procedure calls 146 10.9.9 Query Function transport protocol services 152 11 UFS Application (UAP) Layer SCSI Commands 155 11.1 Universal Flash Storage Command Layer (UCL) Introduction 155 11.
24、1.1 The Command Descriptor Block (CDB) 155 11.2 Universal Flash Storage Native Commands (UNC) 155 11.3 Universal Flash Storage SCSI Commands 156 11.3.1 General information about SCSI commands in UFS 157 11.3.2 INQUIRY Command 157 11.3.3 MODE SELECT (10) Command 160 11.3.4 MODE SENSE (10) Command 162
25、 11.3.5 READ (6) Command 165 11.3.6 READ (10) Command 166 11.3.7 READ (16) Command 168 11.3.8 READ CAPACITY (10) Command 170 11.3.9 READ CAPACITY (16) Command 172 11.3.10 START STOP UNIT Command 176 11.3.11 TEST UNIT READY Command 177 11.3.12 REPORT LUNS Command 178 11.3.13 VERIFY (10) Command 183 1
26、1.3.14 WRITE (6) Command 185 11.3.15 WRITE (10) Command 187 11.3.16 WRITE (16) Command 190 11.3.17 REQUEST SENSE Command 193 11.3.18 FORMAT UNIT Command 195 11.3.19 PRE-FETCH (10) Command 197 11.3.20 PRE-FETCH (16) Command 200 JEDEC Standard No. 220C -iv- 11.3.21 SECURITY PROTOCOL IN Command 201 11.
27、3.22 SECURITY PROTOCOL OUT Command 202 11.3.23 SEND DIAGNOSTIC Command 204 11.3.24 SYNCHRONIZE CACHE (10) Command 206 11.3.25 SYNCHRONIZE CACHE (16) Command 209 11.3.26 UNMAP Command 210 11.3.27 READ BUFFER Command 213 11.3.28 WRITE BUFFER Command 216 11.4 Mode Pages 220 11.4.1 Mode Page Overview 22
28、0 11.4.2 UFS Supported Pages 225 11.5 Vital product data parameters 232 11.5.1 Overview 232 11.5.2 VPD page format 232 11.5.3 Supported VPD Pages VPD page 233 11.5.4 Mode Page Policy VPD page 234 12 UFS Security 236 12.1 UFS Security Feature Support Requirements 236 12.2 Secure Mode 236 12.2.1 Descr
29、iption 236 12.2.2 Requirements 237 12.2.3 Implementation 238 12.3 Device Data Protection 243 12.3.1 Description and Requirements 243 12.3.2 Implementation 243 12.4 RPMB 244 12.4.1 Introduction 244 12.4.2 RPMB Well Known Logical Unit Description 244 12.4.3 Requirements 245 12.4.4 Implementation 254 1
30、2.4.5 SECURITY PROTOCOL IN/OUT Commands 255 12.4.6 RPMB Operations 260 12.5 Malware Protection 273 12.6 Mechanical 273 13 UFS FUNCTIONAL DESCRIPTIONS 274 13.1 UFS Boot 274 13.1.1 Introduction 274 13.1.2 Boot Configuration 274 13.1.3 Initialization and boot code download process 277 13.1.4 Initializa
31、tion process without boot code download 280 13.1.5 Boot Logical Unit Operations 281 13.1.6 Configurability 281 13.1.7 Security 282 13.2 Logical Unit Management 282 13.2.1 Introduction 282 13.2.2 Logical Unit features 282 13.2.3 Logical Unit Configuration 285 13.3 Logical Block Provisioning 289 13.3.
32、1 Overview 289 13.3.2 Full Provisioning 289 JEDEC Standard No. 220C -v- 13.3.3 Thin Provisioning 289 13.4 Host Device Interaction 290 13.4.1 Overview 290 13.4.2 Applicable Devices 290 13.4.3 Command Queue: Inter-LU Priority 290 13.4.4 Background Operations Mode 291 13.4.5 Power Off Notification 293
33、13.4.6 Dynamic Device Capacity 294 13.4.7 Data Reliability 298 13.4.8 Real-Time Clock Information 299 13.4.9 Context Management 300 13.4.10 System Data Tag Mechanism 303 13.4.11 Exception Events Mechanism 304 13.4.12 Queue Depth Definition 305 13.4.13 Device Life Span Mode 306 13.5 UFS Cache 307 13.
34、6 Production State Awareness (PSA) 308 13.6.1 Introduction 308 13.6.2 PSA flow 308 14 UFS Descriptors, Flags and Attributes 311 14.1 UFS Descriptors 311 14.1.1 Descriptor Types 311 14.1.2 Descriptor Indexing 312 14.1.3 Accessing Descriptors and Device Configuration 312 14.1.4 Descriptor Definitions
35、316 14.2 Flags 346 14.3 Attributes 350 Annex A - DYNAMIC CAPACITY HOST IMPLEMENTATION EXAMPLE (informative) 357 A.1 Overview 357 A.2 Method Outline 357 Annex B (informative) Differences between JESD220C and JESD220B 358 B.1 Changes between JESD220C and its predecessor JESD220B (September 2013) 358 B
36、.1.1 New features or new definitions 358 B.1.2 Changes in section 2 “Normative Reference” 358 B.1.3 Changes in features already defined in UFS 2.0 358 B.2 Changes between JESD220B and its predecessor JESD220A (June 2012) 361 B.2.1 New features or new definitions 361 B.2.2 Changes in section 2 “Norma
37、tive Reference” 361 B.2.3 Changes in features already defined in UFS 1.1 361 Figures Figure 5-1 UFS Top Level Architecture . 8 Figure 5-2 Usage of UDM_SAP . 9 Figure 5-3 Usage of UIO_SAP . 9 Figure 5-4 UFS System Model . 11 Figure 5-5 SCSI Domain Class Diagram 15 Figure 5-6 UFS Domain Class Diagram
38、. 16 Figure 6-1 UFS Device Block Diagram 19 Figure 6-2 Supply voltage power up timings 22 Figure 6-3 Clock input levels, rise time, and fall time 24 Figure 6-4 Test Load Impedance 25 Figure 6-5 Output driver and Input receiver levels . 25 JEDEC Standard No. 220C -vi- Figure 6-6 Clock output levels,
39、rise time and fall time . 26 Figure 7-1 Power-on Reset . 28 Figure 7-2 Hardware Reset . 29 Figure 7-3 Reset AC timings 29 Figure 7-4 EndPointReset . 30 Figure 7-5 Logical Unit Reset 31 Figure 7-6 Power up ramps . 33 Figure 7-7 Power off ramps 34 Figure 7-8 Power Mode State Machine 39 Figure 8-1 Simp
40、lified example for I/O termination 48 Figure 9-1 UniPro internal layering view (a) and UniPro Black Box view (b) 53 Figure 10-1 Data out transfer example . 84 Figure 10-2 Data in transfer example . 87 Figure 10-3 READY TO TRANSFER UPIU sequence example . 90 Figure 10-4 Example for data out transfer
41、rule 1 126 Figure 10-5 Example for Data Transfer Count mismatch . 127 Figure 10-6 Example for data out transfer rule 2 128 Figure 10-7 Example for data out transfer rule 3 129 Figure 10-8 UFS SCSI domain . 130 Figure 10-9 Logical Unit Addressing . 131 Figure 10-10 SCSI Write 134 Figure 10-11 SCSI Re
42、ad . 135 Figure 10-12 Command without Data Phase 137 Figure 10-13 Command + Read Data Phase 1/2 . 143 Figure 10-14 Command + Read Data Phase 2/2 . 143 Figure 10-15 Command + Write Data Phase 145 Figure 10-16 Command + Write Data Phase 2/2 145 Figure 10-17 Task Management Function 149 Figure 10-18 UF
43、S Query Function . 152 Figure 11-1 UFS Command Layer . 155 Figure 12-1 Purge operation state machine 240 Figure 12-2 Authentication Key Programming Flow . 263 Figure 12-3 Read Counter Value Flow . 264 Figure 12-4 Authenticated Data Read Flow . 268 Figure 12-5 Authenticated Secure Write Protect Confi
44、guration Block Write Flow 271 Figure 12-6 Authenticated Secure Write Protect Configuration Block Read Flow 273 Figure 13-1 UFS System Diagram 274 Figure 13-2 Example of UFS Device Memory Organization for Boot . 276 Figure 13-3 Device Initialization and Boot Procedure Sequence Diagram 279 Figure 13-4
45、 Example of UFS Device Memory Organization . 283 Figure 13-5 Physical Memory Resource State Machine . 297 Figure 13-6 Example of data status after a power failure during reliable write operation 298 Figure 13-7 PSA flow . 309 Figure 13-8 PSA state machine 310 Figure 14-1 Descriptor Organization 312
46、Figure 14-2 Read Request Descriptor . 314 Figure 14-3 Write Request Descriptor 315 Tables Table 5-1 UFS Signals 12 Table 5-2 ManufacturerID and DeviceClass Attributes . 13 Table 6-1 Signal Name and Definitions . 20 Table 6-2 Reset Signal Electrical Parameters . 21 Table 6-3 UFS Power Supply Paramete
47、rs 21 Table 6-4 Voltage configurations for UFS . 22 Table 6-5 Reference Clock parameters . 23 JEDEC Standard No. 220C -vii- Table 6-6 HS-BURST Rates . 24 Table 6-7 Host controller reference clock parameters 25 Table 6-8 Charge pump capacitors description 26 Table 6-9 Charge pump related ball names 2
48、7 Table 6-10 Absolute maximum DC ratings 27 Table 7-1 Reset timing parameters . 29 Table 7-2 Reset States 32 Table 7-3 UniPro Attributes, UFS Attributes and UFS Flags reset 32 Table 7-4 Allowed SCSI commands and UPIU for each Power Mode 41 Table 7-5 Device Well Known Logical Unit Responses to SSU co
49、mmand . 42 Table 7-6 Device Well Known Logical Unit Responses to commands other than SSU . 43 Table 7-7 Pollable Sense Data for each Power Modes . 43 Table 7-8 START STOP UNIT command . 43 Table 7-9 START STOP UNIT fields 44 Table 7-10 Attribute for Power Mode Control . 45 Table 7-11 Device Descriptor parameters 45 Table 7-12 Power Parameters Descriptor fields . 46 Table 7-13 Format for Power Parameter element . 46 Table