Designing custom hardware dongles, automated flashing fixtures, and diagnostic tools often requires inserting a microcontroller into an existing high-speed connection. For instance, when designing an inline fixture to automate Apple Mac DFU (Device Firmware Update) recovery, the hardware needs to hold down hardware buttons and send USB control packets while allowing the target machine to transfer bulk disk images at full SuperSpeed rates.
Hardware engineers traditionally solve this by placing a full USB 3.x hub controller on the board. However, multi-gigabit USB 3 hubs require multi-layer high-frequency PCB stackups, external crystal oscillators, power management ICs, and expensive silicon that easily adds 5 to 10 dollars to the bill of materials (BOM).
As demonstrated by engineer Frank Chiarulli Jr. during the development of Dongle-Pro v2, there is an elegant electrical alternative: because the USB-C specification isolates legacy USB 2.0 differential pairs from high-speed SuperSpeed lanes, you can split USB 2.0 with a sub-dollar hub chip while letting USB 3 pass straight through over passive analog multiplexers.
The High Cost of Inline USB 3 Hub Controllers
When a hardware designer needs an onboard microcontroller (MCU) to communicate with a host computer alongside a high-speed peripheral, the textbook solution is an active USB 3 hub:
[Host Port] ---> [USB 3 Hub IC ($5-$8)] +---> [SuperSpeed Peripheral]
+---> [Onboard MCU (Control Channel)]
While functional, this approach introduces substantial engineering penalties:
- Silicon Cost: Production-grade USB 3.2 Gen 1/Gen 2 hub controllers (such as the Microchip USB5734 or Realtek RTS5411) cost between 3.50 and 8.00 dollars in modest volumes.
- PCB Routing Complexity: Routing high-speed differential pairs (5 Gbps to 10 Gbps) into and out of a 64-pin or 76-pin QFN hub chip requires controlled 90-ohm differential impedance, length matching, and at least a 4-layer or 6-layer PCB stackup.
- Thermal and Power Overhead: Full USB 3 hub controllers dissipate significant idle power, necessitating dedicated low-dropout regulators (LDOs) and thermal copper pours.
If the onboard MCU only transmits low-bandwidth control commands or status telemetry at a few hundred kilobits per second, paying the cost and routing penalties of a full USB 3 hub controller is wasteful.
Understanding the Physical Pinout: The Isolated USB 2 and USB 3 Buses
The physical architecture of the 24-pin USB-C receptacle makes a hybrid design possible. Contrary to popular belief, USB 3 does not transmit over the legacy USB 2 data lines. Instead, the USB-C connector houses two entirely separate physical buses:
Top Row: [GND] [TX1+] [TX1-] [VBUS] [CC1] [D+] [D-] [SBU1] [VBUS] [RX2-] [RX2+] [GND]
Bottom Row: [GND] [RX1+] [RX1-] [VBUS] [SBU2] [D-] [D+] [CC2] [VBUS] [TX2-] [TX2+] [GND]
| Bus Architecture | Physical Pins | Signal Type | Theoretical Speed |
|---|---|---|---|
| Legacy USB 2.0 | A6/A7 (D+/D-) & B6/B7 (D+/D-) | Bi-directional single differential pair | 480 Mbps (High Speed) |
| SuperSpeed USB 3.x | TX1+/TX1-, RX1+/RX1-, TX2+/TX2-, RX2+/RX2- | Dual-simplex high-speed differential pairs | 5 Gbps to 20 Gbps |
| Sideband & Config | CC1, CC2, SBU1, SBU2 | Low-frequency configuration and auxiliary | Analog / DC levels |
Because the xHCI (Extensible Host Controller Interface) on modern host computers maintains distinct root hub controllers for USB 2.0 and USB 3.x, an engineer can route the two buses along entirely separate physical topologies on the same circuit board.
The Hybrid Architecture: Cheap Hub for USB 2, Mux Passthrough for USB 3
Rather than routing all signals through an expensive multi-gigabit hub, the hybrid architecture splits the buses according to their bandwidth requirements:
+----------------------------+
| USB-C Host Receptacle |
+--------------+-------------+
|
+----------------------+----------------------+
| |
USB 2.0 (D+/D-) USB 3.x (TX/RX pairs)
| |
v v
+--------------------+ +-----------------------+
| Low-Cost USB 2 Hub | | 2:1 Analog Mux |
| (WCH CH334P, ~$0.30) | (e.g., HD3SS3212) |
+---------+----------+ +-----------+-----------+
| |
+--------+--------+ | Passthrough
| | | (Zero Hub Delay)
v v v
[Onboard MCU] [USB 2 Downstream] [USB 3 Downstream]
(DFU/Control) (Fallback Port) (Target Mac / Storage)
1. Splitting USB 2.0 via Low-Cost Hub Silicon
The D+ and D- signals from the host connector route into an ultra-low-cost USB 2.0 hub controller, such as the WCH CH334P (which costs approximately 0.25 to 0.40 dollars). The CH334P exposes two downstream ports:
- Port 1: Wired directly to the onboard microcontroller’s USB peripheral (such as an RP2040 or STM32) for serial telemetry, flashing triggers, and control.
- Port 2: Routed to the downstream USB-C receptacle for legacy USB 2.0 device compatibility.
2. Passing USB 3.x Through Passive Analog Multiplexers
The high-speed SuperSpeed differential pairs (TX and RX) never touch a hub controller. Instead, they pass directly from the host receptacle to the downstream receptacle through high-speed 2:1 passive multiplexers (such as the Texas Instruments HD3SS3212 or ON Semi equivalents).
These multiplexers do not decode packets, establish USB link layers, or require firmware. They act as electronically controlled analog RF switches, routing the differential pairs according to cable orientation.
How Operating Systems Perceive Dual-Bus Ports
A natural question for system architects is whether host operating systems handle this asymmetrical topology without throwing driver errors or disconnecting devices.
Both Linux and macOS natively track USB 2.0 and USB 3.x root ports as complementary pairs:
Linux sysfs Companion Tracking
Under Linux, the kernel exposes the USB topology under /sys/bus/usb/devices/. Each USB 3 root hub port is linked to its corresponding USB 2 root hub port via a peer symlink:
ls -l /sys/bus/usb/devices/usb1/1-1/peer
# Points to /sys/bus/usb/devices/usb2/2-1
When a device connects, the host kernel checks both the USB 2 and USB 3 lines. If a high-speed peripheral connects downstream, the host enumerates the USB 3 SuperSpeed device on Bus 02 while simultaneously enumerating the onboard CH334P hub and MCU on Bus 01. The kernel handles both devices concurrently without conflict.
macOS IORegistry Companion Mapping
Under macOS, the I/O Kit registry maintains a property named UsbProtocolCompanion on each physical port personality. The xHCI driver recognizes that physical connector “Port 1” is simultaneously serving a HighSpeed (USB 2) tree and a SuperSpeed (USB 3) tree. The operating system treats them as independent devices operating over a shared physical socket.
Power Delivery, CC Negotiation, and Orientation Detection
Because USB-C cables can be plugged in either orientation, routing signals directly requires handling the Configuration Channel (CC) pins properly:
| Component | Responsibility | Implementation Details |
|---|---|---|
| CC Logic / Orientation Controller | Detects plug flip and cable presence | FUSB302 or discrete comparator circuit |
| 2:1 High-Speed Mux | Swaps TX/RX pairs based on CC polarity | Controlled by the orientation output of the CC logic |
| VBUS Power Switch | Manages 5V to 20V power distribution | High-side P-channel MOSFET or dedicated load switch |
The CC controller determines whether CC1 or CC2 is pulled down by the cable’s Rd resistor. Once orientation is resolved, a single GPIO pin toggles the select pin of the high-speed multiplexer, ensuring that SuperSpeed differential pairs connect to the correct pins on the downstream receptacle.
Design Tradeoffs and BOM Comparison
| Design Metric | Traditional USB 3.2 Hub (e.g., USB5734) | Hybrid Split Design (CH334P + Analog Mux) |
|---|---|---|
| Bill of Materials Cost | $6.50 to $9.00 | $1.20 to $1.80 |
| Required PCB Layers | 4 to 6 layers (impedance controlled) | 4 layers (simpler high-speed routing) |
| Standby Power Draw | 250 mW to 500 mW | < 40 mW |
| Firmware Complexity | Requires EEPROM configuration | Zero firmware for hub/mux; plug and play |
| USB 3 Data Latency | Added packet buffer/hub traversal latency | Near-zero analog switch latency |
Practical Takeaways for Embedded Hardware Designers
- Leverage Inherent Dual-Bus Architecture: USB-C is physically two independent buses. If your embedded MCU only requires USB 2.0 speeds, never pay for a full USB 3 hub.
- Keep High-Speed Lines Analog: Routing SuperSpeed lanes through passive 2:1 analog multiplexers preserves signal integrity, minimizes board space, and avoids complex hub firmware.
- Operating Systems Support Split Topologies: Both Linux and macOS are designed to handle simultaneous USB 2 and USB 3 enumerations across companion ports without driver modification.
- Prioritize Proper CC Orientation: Ensure that the multiplexer select pin is hardwired to a reliable CC orientation detection IC to prevent differential pair crossing when cables are flipped.