summaryrefslogtreecommitdiff
path: root/tests/bad-phandle-cells.dts
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-09-01 13:53:01 -0500
committerDavid Gibson <david@gibson.dropbear.id.au>2017-09-22 21:14:10 +1000
commitb3bbac02d5e320c350c460680fc7644735d01e0b (patch)
treed87dc26467b013e75a3f01661f9dba268f3e5538 /tests/bad-phandle-cells.dts
parentfe50bd1ecc1da273a7627a76dcd38da9d77e496f (diff)
downloaddevice-tree-compiler-b3bbac02d5e320c350c460680fc7644735d01e0b.tar.gz
checks: add phandle with arg property checks
Many common bindings follow the same pattern of client properties containing a phandle and N arg cells where N is defined in the provider with a '#<specifier>-cells' property such as: intc0: interrupt-controller@0 { #interrupt-cells = <3>; }; intc1: interrupt-controller@1 { #interrupt-cells = <2>; }; node { interrupts-extended = <&intc0 1 2 3>, <&intc1 4 5>; }; Add checks for properties following this pattern. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/bad-phandle-cells.dts')
-rw-r--r--tests/bad-phandle-cells.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bad-phandle-cells.dts b/tests/bad-phandle-cells.dts
new file mode 100644
index 0000000..7f7c6a2
--- /dev/null
+++ b/tests/bad-phandle-cells.dts
@@ -0,0 +1,11 @@
+/dts-v1/;
+
+/ {
+ intc: interrupt-controller {
+ #interrupt-cells = <3>;
+ };
+
+ node {
+ interrupts-extended = <&intc>;
+ };
+};