Add qemu 2.4.0
[kvmfornfv.git] / qemu / dtc / tests / references.dts
1 /dts-v1/;
2
3 / {
4         /* Explicit phandles */
5         n1: node1 {
6                 linux,phandle = <0x2000>;
7                 ref = <&{/node2}>; /* reference precedes target */
8                 lref = <&n2>;
9         };
10         n2: node2 {
11                 phandle = <0x1>;
12                 ref = <&{/node1}>; /* reference after target */
13                 lref = <&n1>;
14         };
15
16         /* Implicit phandles */
17         n3: node3 {
18                 ref = <&{/node4}>;
19                 lref = <&n4>;
20         };
21         n4: node4 {
22         };
23
24         /* Explicit phandle with implicit value */
25         /* This self-reference is the standard way to tag a node as requiring
26          * a phandle (perhaps for reference by nodes that will be dynamically
27          * added) without explicitly allocating it a phandle.
28          * The self-reference requires some special internal handling, though
29          * so check it actually works */
30         n5: node5 {
31                 linux,phandle = <&n5>;
32                 phandle = <&n5>;
33         };
34 };