Home | History | Annotate | Download | only in tests
      1 /dts-v1/;
      2 
      3 m1: mq: /memreserve/ 0 0x1000;
      4 
      5 / {
      6 	p0: pw: prop = "foo";
      7 
      8 	rref = <&{/}>;
      9 
     10 	/* Explicit phandles */
     11 	n1: nx: node1 {
     12 		linux,phandle = <0x2000>;
     13 		ref = <&{/node2}>; /* reference precedes target */
     14 		p1: px: lref = <&ny>;
     15 	};
     16 	ny: n2: node2 {
     17 		p2: py: phandle = <0x1>;
     18 		ref = <&{/node1}>; /* reference after target */
     19 		lref = <&nx>;
     20 	};
     21 
     22 	/* Implicit phandles */
     23 	n3: node3 {
     24 		p3: ref = <&{/node4}>;
     25 		lref = <&n4>;
     26 	};
     27 	n4: node4 {
     28 		p4: prop;
     29 	};
     30 
     31 	/* Explicit phandle with implicit value */
     32 	/* This self-reference is the standard way to tag a node as requiring
     33 	 * a phandle (perhaps for reference by nodes that will be dynamically
     34 	 * added) without explicitly allocating it a phandle.
     35 	 * The self-reference requires some special internal handling, though
     36 	 * so check it actually works */
     37 	n5: nz: node5 {
     38 		linux,phandle = <&n5>;
     39 		phandle = <&nz>;
     40 		n1 = &n1;
     41 		n2 = &n2;
     42 		n3 = &n3;
     43 	};
     44 };
     45