test: dm: pci: Add tests for mixed static and dynamic devices on the same bus
In the Sandbox test configuration, PCI bus#0 only has static devices while bus#1 only has dynamic devices. Create a bus#2 that has both types of devices and test such. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
mmc1 = "/mmc1";
|
||||
pci0 = &pci0;
|
||||
pci1 = &pci1;
|
||||
pci2 = &pci2;
|
||||
remoteproc1 = &rproc_1;
|
||||
remoteproc2 = &rproc_2;
|
||||
rtc0 = &rtc_0;
|
||||
@@ -330,6 +331,23 @@
|
||||
0x0c 0x00 0x1234 0x5678>;
|
||||
};
|
||||
|
||||
pci2: pci-controller2 {
|
||||
compatible = "sandbox,pci";
|
||||
device_type = "pci";
|
||||
#address-cells = <3>;
|
||||
#size-cells = <2>;
|
||||
ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
|
||||
0x01000000 0 0x60000000 0x60000000 0 0x2000>;
|
||||
sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
|
||||
pci@1f,0 {
|
||||
compatible = "pci-generic";
|
||||
reg = <0xf800 0 0 0 0>;
|
||||
emul@1f,0 {
|
||||
compatible = "sandbox,swap-case";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
probing {
|
||||
compatible = "simple-bus";
|
||||
test1 {
|
||||
|
||||
Reference in New Issue
Block a user