Fix USB hotplug on type-C connectors of Apple Silicon hardware. The USB
authorkettenis <kettenis@openbsd.org>
Mon, 12 Dec 2022 19:18:25 +0000 (19:18 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 12 Dec 2022 19:18:25 +0000 (19:18 +0000)
commitade86d6ed42aae06300c8c2256689504dd5bed38
tree3529d19e755b1584c44a05ebd2d573073bf997ff
parentb8b628d8366fa32425f070b667dbd2f6fcbc1317
Fix USB hotplug on type-C connectors of Apple Silicon hardware.  The USB
controller on these machines does not see connection events.  Instead we
need to rely on the USB PD controllers to notify us of a new connection
and reset the USB controller.  This diff implements this by adding a new
tipd(4) driver and infrastructure to notify xhci(4) of new connections.

ok patrick@
sys/arch/arm64/conf/GENERIC
sys/dev/fdt/files.fdt
sys/dev/fdt/tipd.c [new file with mode: 0644]
sys/dev/fdt/xhci_fdt.c
sys/dev/ofw/ofw_misc.h
sys/dev/usb/xhci.c
sys/dev/usb/xhcivar.h