add support for enabling both the usb2 and usb3 phys.
authordlg <dlg@openbsd.org>
Mon, 3 Apr 2023 01:55:00 +0000 (01:55 +0000)
committerdlg <dlg@openbsd.org>
Mon, 3 Apr 2023 01:55:00 +0000 (01:55 +0000)
commite60d52d296ae1265392d54d2e0f5a5deb373bba8
treedd3ab2a422ea72016b53e3594e67ccd92d7a510d
parente3c26e793643b597011f1ba8222e4c4438e99756
add support for enabling both the usb2 and usb3 phys.

the code tried enabling the 0th phy in the usb-phy proplist, which
is the usb2 phy, and if that didn't exist it would try usb3-phy in
the standard phys/phy-names properties. it now tries to enable the
usb2 and usb3 phys independently.

further, support using standard phy drivers registered with the
ofw/fdt code, not just the ones handled inside the xhci driver.

ok kettenis@
sys/dev/fdt/xhci_fdt.c