HS-2 Lane or bit swap: check that both ends support it¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | mid, depends on NET-7, NET-10 |
Looks at. Lane and polarity pin roles on both ends, the part's swap features (library).
What it catches. A link whose lanes arrive in a different order than they left (lane 0 on lane 3), or a pair whose P and N, or D+ and D-, are exchanged, where the swap is allowed only if one of the parts can undo it.
Why it matters. Swaps are a routing convenience that some parts support and others do not, and support is often a strap or a register the firmware must set. PCIe link training handles lane reversal and polarity inversion: TI's guide treats lane assignment and polarity as free for its PCIe ports (SPRACP4 §3.3.1.1-3.3.1.2), but check the other end's datasheet; USB 3 allows polarity inversion on SSTX and SSRX, USB 2.0 and HDMI allow none, DisplayPort has no built-in support (SLLA414 §2.1-2.4). Redrivers and hubs add their own: a TMDS181 swaps its receive lanes with SWAP/POL low and inverts their polarity with it high (retimer mode only); a TDP158 has a SWAP strap; a USB251xB hub swaps D+/D- per port. The netlist cannot tell whether the strap or register is set, so the check warns instead of failing.
Example. On B153A hub ports 2 and 4 are wired with D+ and D- crossed: the plug's D+ reaches USBDM_DN2. The USB2514B can undo this in its Port Swap register (FAh, bit 2 for port 2, bit 4 for port 4), but only once the MCU has written it over SMBus. Before that a reMarkable 2 on port 2 showed up as "new low-speed USB device" with error -32: its full-speed pull-up on D+ looked like a low-speed pull-up on D-.
How to check. Compare lane numbers and polarity of each pair at both ends (NET-10 through caps, resistors and connectors); for every difference look up whether either part can swap or invert (library data), and say which pin or register has to do it.
Fix. Route straight where the parts cannot swap; where they can, write down the strap level or the register value in the schematic and in the firmware's board support, and add a test that the link trains at full speed.
References. SPRACP4 §3.3.1.1-3.3.1.2; SLLA414 §2.1-2.4; USB251xB §5.1.29 (Port Swap); TI TMDS181 datasheet, SLASE75D, §5 pin functions (SWAP/POL), ti.com/lit/ds/symlink/tmds181; TI TDP158 Schematic Checklist, SLLA452 (2019), ti.com/lit/pdf/slla452.