Something I should have tried out sooner, making use of the USB 3.0 parts of the luna USB stack on the ButterStick FPGA board.
Spun up a simple breakout with a PD controller and data lanes connected to a Type-C.
The LUNA SS code has some bitrot for ECP5 support, but did manage to get it enumerating over the weekend! 😍
All accomplished using the ECP5's built-in 5Gbps serdes blocks and fantastic opensource tools: nextpnr+Yosys, amaranth and LUNA gateware. 🥳🙌🌺



