M.2 (pronounced "em-dot-two"), formerly known as the Next Generation Form Factor (NGFF), is a specification for internally mounted computer expansion cards and connectors. It was developed to replace the older Mini SATA (mSATA) and Mini PCIe (mPCIe) standards. M.2 supports a variety of module sizes and interface types, offering greater flexibility for modern devices. It is widely used in compact systems such as ultrabooks and tablet computers, particularly for solid-state drives (SSDs), due to its smaller size and higher performance compared to mSATA. The M.2 connector can provide multiple interface options, including up to four lanes of PCI Express, as well as Serial ATA 3.0 and USB 3.0. The supported interfaces vary depending on the device and host implementation. M.2 modules and slots use different "keying" notches to indicate supported interfaces and to prevent incompatible installations. For storage devices, M.2 supports both the older Advanced Host Controller Interface (AHCI) and the newer NVM Express (NVMe) protocols. AHCI provides compatibility with legacy SATA-based systems and operating systems, while NVMe is designed for high-speed SSDs and allows for much faster performance by supporting multiple simultaneous I/O operations.
Features
M.2 modules can integrate multiple functions, including the following device classes: Wi-Fi, Bluetooth, satellite navigation, near-field communication (NFC), digital radio, WiGig, wireless WAN (WWAN), and solid-state drives (SSDs). The SATA revision 3.2 specification, in its gold revision as of August 2013, standardizes M.2 as a new format for storage devices and specifies its hardware layout. Buses exposed through the M.2 connector include PCI Express (PCIe) 3.0 and newer, Serial ATA (SATA) 3.0 and USB 3.0; all these standards are backward compatible. The M.2 specification provides up to four PCI Express lanes and one logical SATA 3.0 (6 Gbit/s) port, and exposes them through the same connector so both PCI Express and SATA storage devices may exist in the form of M.2 modules. Exposed PCI Express lanes provide a pure PCI Express connection between the host and storage device, with no additional layers of bus abstraction. PCI-SIG M.2 specification, in its revision 1.0 as of December 2013, provides detailed M.2 specifications.
Storage interfaces Three options are available for the logical device interfaces and command sets used for interfacing with M.2 storage devices, which may be used depending on the type of M.2 storage device and available operating system support:
Legacy SATA Used for SATA SSDs, and interfaced through the AHCI driver and legacy SATA 3.0 (6 Gbit/s) port exposed through the M.2 connector. PCI Express using AHCI Used for PCI Express SSDs and interfaced through the AHCI driver and provided PCI Express lanes, providing backward compatibility with widespread SATA support in operating systems at the cost of lower performance. AHCI was developed when the purpose of a host bus adapter (HBA) in a system was to connect the CPU/memory subsystem with a much slower storage subsystem based on rotating magnetic media; as a result, AHCI has some inherent inefficiencies when applied to SSD devices, which behave much more like RAM than like spinning media. PCI Express using NVMe Used for PCI Express SSDs and interfaced through the NVMe driver and provided PCI Express lanes, as a high-performance and scalable host controller interface designed and optimized especially for interfacing with PCI Express SSDs. NVMe has been designed from the ground up, capitalizing on the low latency and enhanced parallelism of PCI Express SSDs, and complementing the parallelism of contemporary CPUs, platforms and applications. At a high level, primary advantages of NVMe over AHCI relate to NVMe's ability to exploit parallelism in host hardware and software, based on its design advantages that include data transfers with fewer stages, greater depth of command queues, and more efficient interrupt processing.
Form factors and keying
The M.2 standard is based on the mSATA standard, which uses the existing PCI Express Mini Card (Mini PCIe) form factor and connector. M.2 adds the possibility of larger printed circuit boards (PCBs), allowing longer modules and double-sided component population. Consequently, M.2 SSD modules can provide double the storage capacity within the footprint of an mSATA device. M.2 modules are rectangular, with an edge connector on one side and a semicircular mounting hole at the center of the opposite edge. The edge connector has 75 positions with up to 67 pins, employing a 0.5 mm pitch and offsetting the pins on opposing sides of the PCB from each other. Each pin on the connector is rated for up to 50 V and 0.5 A, while the connector itself is specified to endure 60 mating cycles. M.2 slots provide 3.3 V and 1.8 V power pins, but NSGFF (M.3) slots extend this with 12 V power. M.2 SATA and NVMe SSDs use different connector keying. M.2 SATA SSDs typically use a B-key connector, while M.2 NVMe SSDs typically use an M-key connector. Some SSDs support both SATA and PCIe/NVMe interfaces and use a B+M-key connector. The M.2 standard allows module widths of 12, 16, 22 and 30 mm, and lengths of 16, 26, 30, 38, 42, 60, 80 and 110 mm. Initial line-up of the commercially available M.2 expansion cards is 22 mm wide, with varying lengths of 30, 42, 60, 80 and 110 mm. The codes for the M.2 module sizes contain both the width and length of a particular module; for example, "2242" as a module code means that the module is 22 mm wide and 42 mm long, while "2280" denotes a module 22 mm wide and 80 mm long. An M.2 module is installed into a mating connector provided by the host's circuit board, and a single mounting screw secures the module into place. Components may be mounted on either side of the module, with the actual module type limiting how thick the components can be; the maximum allowable thickness of components is 1.5 mm per side, and the thickness of the PCB is 0.8 mm ± 10%. Different host-side connectors are used for single- and double-sided M.2 modules, providing different amounts of space between the M.2 expansion card and the host's PCB. Circuit boards on the hosts are usually designed to accept multiple lengths of M.2 modules, which means that the sockets capable of accepting longer M.2 modules usually also accept shorter ones by providing different positions for the mounting screw.
… excerpt ends here. Continue reading the full article.



![M.2: High-level software architecture for SATA Express (also used by M.2),[2]: 14 supporting SATA and PCIe devices via AHCI or NVMe.[6]: 4](https://thumb.wikimedia.org/wikipedia/commons/thumb/6/68/SATA_Express_interface.svg/500px-SATA_Express_interface.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)

![M.2: M.2 keying notches in B and M positions, with visible pin offset on each side of the module.[11]](https://thumb.wikimedia.org/wikipedia/commons/thumb/e/ed/M2_Edge_Connector_Keying.svg/500px-M2_Edge_Connector_Keying.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)