mirror of
				https://github.com/dgibson/dtc.git
				synced 2025-10-26 23:36:17 -04:00 
			
		
		
		
	ePAPR 1.1 section 2.2.1.1 "Node Name Requirements" specifies that any node that has a reg property must include a unit address in its name with value matching the first entry in its reg property. Conversely, if a node does not have a reg property, the node name must not include a unit address. Adjust all the dtc test-cases to conform to this rule. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
		
			
				
	
	
		
			49 lines
		
	
	
	
		
			788 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
	
		
			788 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| /dts-v1/;
 | |
| 
 | |
| /memreserve/ 0xdeadbeef00000000 0x100000;
 | |
| /memreserve/ 123456789 010000;
 | |
| 
 | |
| / {
 | |
| 	compatible = "test_tree1";
 | |
| 	prop-int = <0xdeadbeef>;
 | |
| 	prop-int64 = /bits/ 64 <0xdeadbeef01abcdef>;
 | |
| 	prop-str = "hello world";
 | |
| 	#address-cells = <1>;
 | |
| 	#size-cells = <0>;
 | |
| 
 | |
| 	subnode@1 {
 | |
| 		compatible = "subnode1";
 | |
| 		reg = <1>;
 | |
| 		prop-int = [deadbeef];
 | |
| 
 | |
| 		subsubnode {
 | |
| 			compatible = "subsubnode1", "subsubnode";
 | |
| 			prop-int = <0xdeadbeef>;
 | |
| 		};
 | |
| 
 | |
| 		ss1 {
 | |
| 		};
 | |
| 	};
 | |
| 
 | |
| 	subnode@2 {
 | |
| 		reg = <2>;
 | |
| 		linux,phandle = <0x2000>;
 | |
| 		prop-int = <123456789>;
 | |
| 		#address-cells = <1>;
 | |
| 		#size-cells = <0>;
 | |
| 
 | |
| 		ssn0: subsubnode@0 {
 | |
| 			reg = <0>;
 | |
| 			phandle = <0x2001>;
 | |
| 			prop-int = <0xbad>;
 | |
| 		};
 | |
| 
 | |
| 		ss2 {
 | |
| 		};
 | |
| 	};
 | |
| };
 | |
| 
 | |
| &{/subnode@2/subsubnode@0} {
 | |
| 	compatible = "subsubnode2", "subsubnode";
 | |
| 	prop-int = <0726746425>;
 | |
| };
 |