platform_external_dtc/tests/omit-no-ref.dts
Maxime Ripard 84e414b0b5 tests: Add a test case for the omit-if-no-ref keyword
The newly introduced /omit-if-no-ref/ needs a few test cases, make
sure to test them.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2018-05-04 11:49:18 +10:00

26 lines
305 B
Text

/dts-v1/;
/ {
test-phandle = <&node3>;
test-path = &node4;
/omit-if-no-ref/ node1: node1 {
bar = <0xdeadbeef>;
};
node2: node2 {
foo = <0x42>;
};
node3: node3 {
test = "test";
};
node4: node4 {
test;
};
};
/omit-if-no-ref/ &node2;
/omit-if-no-ref/ &node3;
/omit-if-no-ref/ &node4;