summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-08 23:48:01 -0700
committerSimon Glass <sjg@chromium.org>2015-11-19 20:27:52 -0700
commit431cbd6d8243c2ebae473deabba788666d65c674 (patch)
treef371337d3c7fae6c0df35336b942324f10afa8cd /arch/sandbox
parenteae11bece69a277a25fefe54ea475ba02ede687e (diff)
downloadblackbird-obmc-uboot-431cbd6d8243c2ebae473deabba788666d65c674.tar.gz
blackbird-obmc-uboot-431cbd6d8243c2ebae473deabba788666d65c674.zip
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/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index e2c4971d74..52749c0705 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";
+ };
+
};
};
};
OpenPOWER on IntegriCloud