diff options
author | Simon Glass | 2015-03-25 12:22:42 -0600 |
---|---|---|
committer | Simon Glass | 2015-04-18 11:11:27 -0600 |
commit | 4c3db41ace579d7e9eba7107bb3e74c1dc3f8e5c (patch) | |
tree | 3b729bb24ea1fd8d0dfb5815883d9af35d41c19f /arch | |
parent | dfd840010b83a4fa9789e7f36999cbad239abd91 (diff) |
dm: usb: dts: sandbox: Add some sample USB devices to sandbox
These allow basic testing of the USB functionality within sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sandbox/dts/sandbox.dts | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index 5fa12720039..efa2097b2d6 100644 --- a/arch/sandbox/dts/sandbox.dts +++ b/arch/sandbox/dts/sandbox.dts @@ -1,5 +1,7 @@ /dts-v1/; +#define USB_CLASS_HUB 9 + / { #address-cells = <1>; #size-cells = <1>; @@ -152,6 +154,44 @@ reg = <0x90000000 0x1000>; host-raw-interface = "lo"; }; + + usb@0 { + compatible = "sandbox,usb"; + status = "disabled"; + hub { + compatible = "sandbox,usb-hub"; + #address-cells = <1>; + #size-cells = <0>; + flash-stick { + reg = <0>; + compatible = "sandbox,usb-flash"; + }; + }; + }; + + usb@1 { + compatible = "sandbox,usb"; + hub { + compatible = "usb-hub"; + usb,device-class = <USB_CLASS_HUB>; + hub-emul { + compatible = "sandbox,usb-hub"; + #address-cells = <1>; + #size-cells = <0>; + flash-stick { + reg = <0>; + compatible = "sandbox,usb-flash"; + sandbox,filepath = "flash.bin"; + }; + }; + }; + }; + + usb@2 { + compatible = "sandbox,usb"; + status = "disabled"; + }; + }; #include "cros-ec-keyboard.dtsi" |