aboutsummaryrefslogtreecommitdiff
path: root/tests/pci-bridge-bad2.dts
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-11-11 17:52:50 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-11-11 19:42:15 +1100
commitfe667e382bac9326eaea304da2ade5ecb10997d3 (patch)
tree5e15cde15a402f6c3de3ec3fc60d39f382247b89 /tests/pci-bridge-bad2.dts
parent7975f6422260af4ac7ae2fcdff0ef2a6e391ab71 (diff)
downloaddtc-fe667e382bac9326eaea304da2ade5ecb10997d3.zip
dtc-fe667e382bac9326eaea304da2ade5ecb10997d3.tar.gz
dtc-fe667e382bac9326eaea304da2ade5ecb10997d3.tar.bz2
tests: Add some basic tests for the pci_bridge checks
This adds some simple tests for the checks of correctly formatted PCI bridge nodes. Doesn't test all that much, but it's a start. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/pci-bridge-bad2.dts')
-rw-r--r--tests/pci-bridge-bad2.dts16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pci-bridge-bad2.dts b/tests/pci-bridge-bad2.dts
new file mode 100644
index 0000000..a7e5c05
--- /dev/null
+++ b/tests/pci-bridge-bad2.dts
@@ -0,0 +1,16 @@
+/dts-v1/;
+
+/ {
+ compatible = "example,pci-bridge-ok";
+ #address-cells = < 2 >;
+ #size-cells = < 2 >;
+ p@0 {
+ device_type = "pci";
+ compatible = "example,pci-bridge";
+ #address-cells = < 3 >;
+ #size-cells = < 2 >;
+ reg = <0 0 0 0x1000>;
+ bus-range = <0 0xff>;
+ ranges = <0 0 0 0 0 0 0x10000>;
+ };
+};