# Custom M.2 Socket 3 Key M Pinout SI Review

## Scope

This review assumes:

- M-keyed M.2 card/socket interconnect with no cable in between
- Single-ended digital signals
- Maximum signal frequency of **16 MHz**
- The real SI limiter is **edge rate**, not the 16 MHz repetition rate
- Both PCBs can provide a continuous reference plane under the connector breakout

## Risk legend

- **Low**: Good local return path and/or low switching activity; unlikely to be the first SI problem
- **Medium**: Acceptable at 16 MHz, but worth routing carefully and possibly damping with small series resistors
- **High**: Most likely place to see crosstalk, ringing, or ground-bounce sensitivity if edge rates are fast

## Overall observations on the current pinout

1. **SYSCLK (54)** is well placed with **GND (53)** adjacent.
2. **DATCK (28)** is also well placed with **GND (27)** adjacent.
3. The largest SI concern is the **wide single-ended address/data field** with limited ground interleaving.
4. The **address reset/strobe area** is less optimal than the main clocks.
5. The lower control cluster is not high speed, so its SI risk is driven more by **asynchronous behavior and shared return current** than by raw bandwidth.

## Pin-by-pin SI risk table for the current assignment

| Pin | Signal | Group | Risk | Why | Suggested handling |
|---:|---|---|---|---|---|
| 75 | TMS | JTAG | Medium | Adjacent to TRST, no immediate ground on the same row | Keep slew rate low; route with TCK separated where possible |
| 74 | TRST | JTAG | Low | Low activity; little timing sensitivity | No special action beyond normal routing |
| 73 | GND | Return | Low | Good return for TCK and nearby signals | Tie solidly into the reference plane |
| 72 | TCK | JTAG | Low | Immediate adjacent ground on pin 73 | Good as assigned; series damping optional |
| 71 | TDO | JTAG | Medium | Adjacent to TDI; no same-row ground | Keep JTAG edge rates modest |
| 70 | TDI | JTAG | Medium | Adjacent to TDO; no same-row ground | Keep routing short and away from clocks |
| 69 | GND | Return | Low | Local return for upper power area | Stitch well to plane near connector |
| 68 | 3V3 | Power | Low | Adjacent ground helps local return | Decouple near connector entry |
| 67 | SYSRST | Control | Medium | Isolated control net with no immediate same-row return | Filter or debounce if needed; avoid fast edges |
| 58 | 3V3 | Power | Low | Part of distributed 3.3 V feed | Decouple close to the connector |
| 57 | GND | Return | Low | Return for nearby power | Stitch to plane with multiple vias |
| 56 | 3V3 | Power | Low | Good power distribution point | Decouple and share current evenly |
| 55 | GND | Return | Low | Return next to SYSCLK region | Excellent place for stitching |
| 54 | SYSCLK | Clock | Low | Immediate adjacent ground on 53; short return path | Keep as assigned; add source series resistor if edges are sharp |
| 53 | GND | Return | Low | Return for SYSCLK and upper address area | Keep solidly referenced |
| 52 | A19 | Address | Low | High-order address bit; adjacent ground on 51 helps | Good candidate for a sensitive control net if reassigned |
| 51 | GND | Return | Low | Return boundary for top of address field | Very useful anchor point |
| 50 | A17 | Address | Medium | Adjacent to A18; limited local shielding | Fine at 16 MHz but route over solid plane |
| 49 | A18 | Address | Medium | Adjacent to A17 | Same as above |
| 48 | A15 | Address | Medium | In a signal-dense part of the address bus | Keep trace lengths consistent |
| 47 | A16 | Address | Medium | Adjacent to A15 | Same as above |
| 46 | A13 | Address | Medium | Surrounded by address activity, no immediate ground | Moderate crosstalk risk if edges are fast |
| 45 | A14 | Address | Medium | Surrounded by address activity | Same as above |
| 44 | A11 | Address | Medium | Mid-bus location, no same-row ground | Moderate simultaneous-switching sensitivity |
| 43 | A12 | Address | Medium | Mid-bus location, adjacent active address line | Same as above |
| 42 | GND | Return | Low | Important return point inside address field | Keep well stitched to plane |
| 41 | A10 | Address | Low | Adjacent ground on 42 reduces coupling | Good location for a timing-sensitive address-side control if needed |
| 40 | A9 | Address | Medium | Neighbors are active address lines | Acceptable with good plane reference |
| 39 | A8 | Address | Medium | Same as A9 | Same as above |
| 38 | A7 | Address | Medium | Same bus-density issue | Same as above |
| 37 | A6 | Address | Medium | Same bus-density issue | Same as above |
| 36 | A5 | Address | Medium | Same bus-density issue | Same as above |
| 35 | A4 | Address | Medium | Same bus-density issue | Same as above |
| 34 | A3 | Address | Low | Close to ground boundary at 33 | Good location for a lower-order address bit |
| 33 | GND | Return | Low | Useful return boundary between address and lower field | Stitch aggressively |
| 32 | A1 | Address | Medium | Next to address activity, no same-row ground | Fine at 16 MHz with solid plane |
| 31 | A2 | Address | Medium | Same as A1 | Same as above |
| 30 | ADRSTB | Address control | High | Timing-sensitive control with no immediate same-row ground | Best candidate to move to a ground-adjacent pin |
| 29 | A0 | Address | Medium | Lower-order bit may toggle often; no same-row ground | Keep short and matched with nearby address lines |
| 28 | DATCK | Data clock | Low | Immediate adjacent ground on 27 | Good as assigned; series damping optional |
| 27 | GND | Return | Low | Return for DATCK and lower data group | Keep solid to plane |
| 26 | DATSTB | Data strobe | Medium | Near DATCK and data cluster, but still coupled to adjacent signal | Acceptable as-is; keep route matched to data |
| 25 | D7 | Data | Medium | Adjacent to DATSTB and D6 | Moderate coupling risk |
| 24 | D6 | Data | Medium | In a dense data cluster | Match routing and keep over a solid plane |
| 23 | D5 | Data | Medium | In a dense data cluster | Same as above |
| 22 | D4 | Data | Medium | Center of data field; no same-row ground | Moderate simultaneous-switching risk |
| 21 | D3 | Data | Medium | Center of data field | Same as above |
| 20 | D2 | Data | Medium | Dense switching neighborhood | Same as above |
| 19 | D1 | Data | Medium | Dense switching neighborhood | Same as above |
| 18 | D0 | Data | Low | Close to ground boundary at 17 | Good location for a frequently used data bit |
| 17 | GND | Return | Low | Return boundary for data/control transition | Stitch to plane close to breakout |
| 16 | ATNRQ6 | Control | Medium | Control cluster with no interleaved grounds | Fine if edge rates are slow |
| 15 | ATNRQ7 | Control | Medium | Same as above | Same as above |
| 14 | ATNRQ4 | Control | Medium | Same as above | Same as above |
| 13 | ATNRQ5 | Control | Medium | Same as above | Same as above |
| 12 | ATNRQ2 | Control | Medium | Same as above | Same as above |
| 11 | ATNRQ3 | Control | Medium | Same as above | Same as above |
| 10 | ATNRQ0 | Control | Medium | Same as above | Same as above |
| 9 | ATNRQ1 | Control | Medium | Same as above | Same as above |
| 8 | BUSAK0 | Control | Medium | Low-rate control but no local return segregation | Keep routing short |
| 7 | BUSAK1 | Control | Medium | Same as above | Same as above |
| 6 | BUSRQ0 | Control | Medium | Same control-cluster issue | Same as above |
| 5 | BUSRQ1 | Control | Medium | Same as above | Same as above |
| 4 | CM2 | Control | Medium | Low-speed but in a dense low-end cluster | No special action if timing is relaxed |
| 3 | TRFERR | Control | Medium | Asynchronous/error line in dense control cluster | Consider filtering at receiver if needed |
| 2 | CM0 | Control | Medium | Low-speed clustered control line | Fine at 16 MHz context |
| 1 | CM1 | Control | Medium | Low-speed clustered control line | Fine at 16 MHz context |

## Recommended revised assignment

### Design goals for the revision

The revision below tries to improve SI without adding pins or changing connector type:

1. Keep **SYSCLK** and **DATCK** on their current ground-adjacent pins.
2. Move the **address-side timing/control net** onto a ground-adjacent location.
3. Put the **highest-order, lowest-toggle address bit** onto the isolated pin.
4. Keep the **data bus compact** so board-level length matching remains straightforward.
5. Avoid large functional reshuffles in the low-speed control cluster.

### Recommended revised pin map

```text
Socket 3    Key M
74  TRST            TMS      75
72  TCK             GND      73
70  TDI             TDO      71
68  3V3             GND      69
    A19             67

58  3V3             GND      57
56  3V3             GND      55
54  SYSCLK          GND      53
52  SYSRST          GND      51
50  A18             A17      49
48  A16             A15      47
46  A14             A13      45
44  A12             A11      43
42  GND             ADRSTB   41
40  A10             A9       39
38  A8              A7       37
36  A6              A5       35
34  A4              GND      33
32  A3              A2       31
30  A1              A0       29
28  DATCK           GND      27
26  DATSTB          D7       25
24  D6              D5       23
22  D4              D3       21
20  D2              D1       19
18  D0              GND      17
16  ATNRQ6          ATNRQ7   15
14  ATNRQ4          ATNRQ5   13
12  ATNRQ2          ATNRQ3   11
10  ATNRQ0          ATNRQ1   9
8   BUSAK0          BUSAK1   7
6   BUSRQ0          BUSRQ1   5
4   CM2             TRFERR   3
2   CM0             CM1      1
```

## What changed and why

| Change | Reason | Expected effect |
|---|---|---|
| **A19 moved from pin 52 to pin 67** | A19 is the lowest-toggle address bit and tolerates the isolated position best | Reduces pressure on the better SI locations inside the address field |
| **SYSRST moved from pin 67 to pin 52** | Reset is important but low toggle; pin 52 has adjacent ground on 51 and nearby ground on 53 | Cleaner reset reference and less sensitivity to noise pickup |
| **ADRSTB moved from pin 30 to pin 41** | Pin 41 sits next to **GND 42**, making it a much better location for a timing-sensitive address-side control | Lower crosstalk and better return path for the address-side strobe/reset |
| **Address lines re-packed so A0-A18 occupy the main address field cleanly** | Keeps the bus visually and electrically grouped while reserving a better SI location for ADRSTB | Easier PCB routing and more consistent address-bus timing |

## Why I did not move DATSTB

Although **DATSTB** is a timing-sensitive net, it is already relatively well placed because:

- it remains inside the **data cluster**
- it is close to **DATCK**
- it is near the **GND boundary at pin 27**

Moving it farther up the connector would improve local shielding only slightly, but would usually make **board-level matching to D[7:0] harder**.

## Practical routing guidance for either pinout

1. Route all connector breakouts over a **continuous reference plane**.
2. Add **source series resistors** first on:
   - SYSCLK
   - DATCK
   - ADRSTB
   - DATSTB
   - TCK
3. Use the **lowest practical drive strength / slowest acceptable slew rate**.
4. Keep the **data group and its strobe/clock tightly length-controlled** on the PCB, even though the connector itself is short.
5. Put **several stitching vias** near the connector ground pins, especially at 17, 27, 33, 42, 51, 53, 55, 57, 69, and 73.
6. Place **local decoupling** near the connector entry for the 3.3 V pins.

## Priority list if you only make two changes

1. **Move ADRSTB to pin 41 and use GND 42 as its local return reference.**
2. **Move A19 to pin 67 and free pin 52 for SYSRST.**

That gives the biggest SI improvement with the least disruption to the rest of the bus grouping.
