summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/tcpci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* arm_intr_establish_fdt() has long been renamed to fdt_intr_establish().patrick2021-02-051-2/+2
|
* Add tcpci(4) to support TCPCI-compliant USB Type-C port controllers.patrick2020-04-271-0/+604
A Type-C controller has multiple tasks. Even though the orientation of the plug doesn't matter for the user, it matters for the hardware. To be able to know how to route the SuperSpeed pins you need to know which way the plug is connected. Also you need to know if you're a sink/source or device/host. To get the first connection, you toggle between the modes until you find a connection. In case you see that a sink is connected, you can turn on USB Vbus to power the sink. This driver explicitly does not implement USB's Type-C state machine, but if we get more and more of these controllers it might be worth doing. Also there's no support for Power Delivery messages yet. "go for it" kettenis@