mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 15:11:33 +00:00
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>
This commit is contained in:
parent
dfd840010b
commit
4c3db41ace
1 changed files with 40 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
|
#define USB_CLASS_HUB 9
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
@ -152,6 +154,44 @@
|
||||||
reg = <0x90000000 0x1000>;
|
reg = <0x90000000 0x1000>;
|
||||||
host-raw-interface = "lo";
|
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"
|
#include "cros-ec-keyboard.dtsi"
|
||||||
|
|
Loading…
Add table
Reference in a new issue