Sven Peter
svenpeter.dev
Sven Peter
@svenpeter.dev
forward/reverse engineer • porting Linux to Apple Silicon (AsahiLinux) • former console hacker (Homebrew Channel, BootMii, WiiU and PS3) • part of fail0verflow • he/him
Like last time this does NOT contain Thunderbolt or DP-AltMode support yet.
It's last big piece of code I wrote that's only been in our downstream trees though. Once this is upstream, I can finally focus on new features :-)
October 26, 2025 at 1:55 PM
Like last time this does NOT enable DisplayPort or Thunderbolt, it's just the very first step towards that.
September 14, 2025 at 2:58 PM
On Apple Silicon the entire type-c stack is a bit cursed and requires tearing down dwc3 for each mode change. We thus added debouncing here and made sure to call the usb-role-switch and typec-mux functions in just the right order.
September 14, 2025 at 2:58 PM
The PD controller on these machines negotiates the correct mode (usb, displayport, thunderbolt) with the other end and then is responsible for propagating this to other subsystems.
September 14, 2025 at 2:58 PM
This also includes some initial work for DisplayPort-altmode and USB4/Thunderbolt but both will require much more work after this is upstream, so don't get your hopes up just yet.
August 21, 2025 at 5:40 PM
RFC because the entire Type-C machinery spans multiple subsystems and has quite a few quirks which makes the entire thing rather annoying to deal with and I'm not 100% convinced about the current approach.
August 21, 2025 at 5:40 PM
next up are two minor smc drivers (HID, RTC) and then atcphy.

haven't seen that yet, thanks.
August 3, 2025 at 9:25 AM