platform_external_dtc/tests/bad-graph.dts
Rob Herring df536831d0 checks: add graph binding checks
Add checks for DT graph bindings. These checks check node names,
unit-addresses and link connections on ports, port, and endpoint nodes.

The graph nodes are matched by finding nodes named 'endpoint' or with a
'remote-endpoint' property. We can't match on 'ports' or 'port' nodes
because those names are used for non-graph nodes. While the graph nodes
aren't really buses, using the bus pointer to tag matched nodes is
convenient.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-03-07 14:55:39 +11:00

24 lines
277 B
Text

/dts-v1/;
/ {
ports {
#address-cells = <1>;
#size-cells = <0>;
bad_endpoint: port-a@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
endpoint@d0 {
reg = <0>;
remote-endpoint = <0xdeadbeef>;
};
};
port@1 {
reg = <0>;
};
};
};