mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	Add some tests of dtoc's functionality to make it easier to expand and enhance the tool. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			49 lines
		
	
	
		
			852 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			852 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*
 | |
|  * Test device tree file for dtoc
 | |
|  *
 | |
|  * Copyright 2017 Google, Inc
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
|  /dts-v1/;
 | |
| 
 | |
| / {
 | |
| 	spl-test {
 | |
| 		u-boot,dm-pre-reloc;
 | |
| 		compatible = "sandbox,spl-test";
 | |
| 		boolval;
 | |
| 		intval = <1>;
 | |
| 		intarray = <2 3 4>;
 | |
| 		byteval = [05];
 | |
| 		bytearray = [06];
 | |
| 		longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
 | |
| 		stringval = "message";
 | |
| 		stringarray = "multi-word", "message";
 | |
| 	};
 | |
| 
 | |
| 	spl-test2 {
 | |
| 		u-boot,dm-pre-reloc;
 | |
| 		compatible = "sandbox,spl-test";
 | |
| 		intval = <3>;
 | |
| 		intarray = <5>;
 | |
| 		byteval = [08];
 | |
| 		bytearray = [01 23 34];
 | |
| 		longbytearray = [09 0a 0b 0c];
 | |
| 		stringval = "message2";
 | |
| 		stringarray = "another", "multi-word", "message";
 | |
| 	};
 | |
| 
 | |
| 	spl-test3 {
 | |
| 		u-boot,dm-pre-reloc;
 | |
| 		compatible = "sandbox,spl-test";
 | |
| 		stringarray = "one";
 | |
| 	};
 | |
| 
 | |
| 	spl-test4 {
 | |
| 		u-boot,dm-pre-reloc;
 | |
| 		compatible = "sandbox,spl-test.2";
 | |
| 	};
 | |
| 
 | |
| };
 |