diff options
author | Simon Glass <sjg@chromium.org> | 2015-11-08 23:48:01 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:27:52 -0700 |
commit | 431cbd6d8243c2ebae473deabba788666d65c674 (patch) | |
tree | f371337d3c7fae6c0df35336b942324f10afa8cd /arch | |
parent | eae11bece69a277a25fefe54ea475ba02ede687e (diff) | |
download | u-boot-imx-431cbd6d8243c2ebae473deabba788666d65c674.zip u-boot-imx-431cbd6d8243c2ebae473deabba788666d65c674.tar.gz u-boot-imx-431cbd6d8243c2ebae473deabba788666d65c674.tar.bz2 |
dm: test: usb: Add tests for the 'usb tree' command
Add tests that this command produces the right output, even when a rescan
results in a device disappearing from the bus.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/test.dts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index e2c4971..52749c0 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -307,12 +307,24 @@ compatible = "sandbox,usb-hub"; #address-cells = <1>; #size-cells = <0>; - flash-stick { + flash-stick@0 { reg = <0>; compatible = "sandbox,usb-flash"; sandbox,filepath = "testflash.bin"; }; + flash-stick@1 { + reg = <1>; + compatible = "sandbox,usb-flash"; + sandbox,filepath = "testflash1.bin"; + }; + + flash-stick@2 { + reg = <2>; + compatible = "sandbox,usb-flash"; + sandbox,filepath = "testflash2.bin"; + }; + }; }; }; |