test: Add PCI device entry without compat string and with DT node
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 10 Oct 2018 19:27:08 +0000 (21:27 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 20 Oct 2018 19:23:38 +0000 (15:23 -0400)
Add PCI entry without compatible string and with a DT node only with
reg = <...> property into the DT. This is needed for the tests to
verify whether such a setup creates an U-Boot PCI device with the
DT node associated with it in udevice.node.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/dts/test.dts

index 420b72f..57e0dd7 100644 (file)
                ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
                                0x01000000 0 0x40000000 0x40000000 0 0x2000>;
                sandbox,dev-info = <0x08 0x00 0x1234 0x5678
-                                   0x0c 0x00 0x1234 0x5678>;
+                                   0x0c 0x00 0x1234 0x5678
+                                   0x10 0x00 0x1234 0x5678>;
+               pci@10,0 {
+                       reg = <0x8000 0 0 0 0>;
+               };
        };
 
        pci2: pci-controller2 {