Appendix · reference

RK3399 TCPHY (USB Type-C / DP)

Combined USB3 + DisplayPort alt-mode PHY behind the USB-C port.

The Type-C PHY is the analog block that sits between the USB-C connector and the digital controllers — DWC3 for USB3 SuperSpeed and the DP transmitter for DisplayPort alt-mode. It also handles the cable orientation flip so the host doesn’t care which way the user plugged the cable in.

Identity

PropertyValue
BlockRK3399 Type-C combo PHY
MMIO base0xff7c0000
ModesUSB3 SuperSpeed, DisplayPort alt-mode
DTS compatiblerockchip,rk3399-typec-phy
Linux driverdrivers/phy/rockchip/phy-rockchip-typec.c

Driver

● working USB3 path; DP alt-mode untested.

src/sys/arm64/rockchip/rk_typec_phy.c — 474 lines. Ported from the Linux Rockchip TCPHY driver; provides the USB3 PHY mode that DWC3 needs to negotiate SuperSpeed, plus a usb2-only mode that proved useful while debugging the surrounding USB stack.

Notable commits:

DP alt-mode programming exists in the Linux source we ported but has never been exercised on this board — there’s no DP-capable display or hub on the bench, and dr_mode = "peripheral" on DWC3 currently parks the PHY in USB-device mode. The Hardware reference lists USB-C DP alt-mode as compiled-but-untested.

Status

QuestionAnswer
Probes?Yes
USB3 mode?Working — DWC3 negotiates SuperSpeed when allowed
DP alt-mode?Untested — no DP sink tried yet
Cable orientation flip?Configured via FUSB302 CC detection

Open work