usb: provide a device tree node to USB devices
authorMichael Walle <michael@walle.cc>
Mon, 1 Jun 2020 23:47:07 +0000 (01:47 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Jun 2020 02:52:11 +0000 (20:52 -0600)
commitc03b7612ea346ad7454086d1623fb57098faf315
treeda4ebd8231c72e896d0de8dd9b09ea254934fa13
parent77007f9543a0fac8c4f60800de6ddccfacd9af5d
usb: provide a device tree node to USB devices

It is possible to specify a device tree node for an USB device. This is
useful if you have a static USB setup and want to use aliases which
point to these nodes, like on the Raspberry Pi.
The nodes are matched against their hub port number, the compatible
strings are not matched for now.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
drivers/usb/host/usb-uclass.c
test/dm/usb.c