Skip to content

Add reset and UART VDM support to tipd#399

Closed
martinyrm wants to merge 3151 commits into
AsahiLinux:asahifrom
martinyrm:asahi
Closed

Add reset and UART VDM support to tipd#399
martinyrm wants to merge 3151 commits into
AsahiLinux:asahifrom
martinyrm:asahi

Conversation

@martinyrm
Copy link
Copy Markdown

This patch adds macvdmtool-like functionality to tipd, supporting target reboot and target+local UART over USB-C (SBU mux)

Two new sysfs entries are created: /sys/class/typec/portX/device/cd321x_vdm/reboot and /sys/class/typec/portX/device/cd321x_vdm/serial

Writing to reboot sends a VDM that resets the connected device (tested by myself on M1 MBA J313AP)

Writing to serial first sends a VDM that causes the target device to enter UART mode and then puts the local CD321x device into UART mode - enabling serial communication between two M1 machines
(many thanks to chaos_princess who tested this successfully with a M1 Pro J314s as the host machine).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.