[PATCH v6 1/2] usb: provide a device tree node to USB devices
sjg at chromium.org
Sat May 23 01:13:16 CEST 2020
On Fri, 22 May 2020 at 10:38, Michael Walle <michael at walle.cc> wrote:
> 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 at walle.cc>
> Reviewed-by: Marek Vasut <marex at denx.de>
> Changes since v5:
> - added test cases
> This is a new patch in v5:
> Fixes the ethernet0 alias on Raspberry Pis. This has never been
> working, but wasn't a problem until recently. Patch 2/2 changes
> the allocation of the numbers and reserves possible aliases.
> arch/sandbox/dts/test.dts | 9 ++++++++
> drivers/usb/host/usb-uclass.c | 41 ++++++++++++++++++++++++++++++-----
> test/dm/usb.c | 22 +++++++++++++++++++
> 3 files changed, 67 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot