Home | History | Annotate | Download | only in tests
      1 /*
      2  * Copyright (c) 2016 NextThing Co
      3  * Copyright (c) 2016 Free Electrons
      4  *
      5  * SPDX-License-Identifier:	GPL-2.0+
      6  */
      7 
      8 /dts-v1/;
      9 
     10 / {
     11 	fragment@0 {
     12 		target-path = "/test-node";
     13 
     14 		__overlay__ {
     15 			test-int-property = <43>;
     16 		};
     17 	};
     18 
     19 	/* Test that we can replace a string by a longer one */
     20 	fragment@1 {
     21 		target-path = "/test-node";
     22 
     23 		__overlay__ {
     24 			test-str-property = "foobar";
     25 		};
     26 	};
     27 
     28 	/* Test that we add a new property */
     29 	fragment@2 {
     30 		target-path = "/test-node";
     31 
     32 		__overlay__ {
     33 			test-str-property-2 = "foobar2";
     34 		};
     35 	};
     36 
     37 	fragment@3 {
     38 		target-path = "/test-node";
     39 
     40 		__overlay__ {
     41 			new-node {
     42 				new-property;
     43 			};
     44 		};
     45 	};
     46 
     47 	fragment@4 {
     48 		target-path = "/";
     49 
     50 		__overlay__ {
     51 			local: new-local-node {
     52 				new-property;
     53 			};
     54 		};
     55 	};
     56 
     57 	fragment@5 {
     58 		target-path = "/";
     59 
     60 		__overlay__ {
     61 			test-several-phandle = <&local>, <&local>;
     62 		};
     63 	};
     64 
     65 	fragment@6 {
     66 		target-path = "/test-node";
     67 
     68 		__overlay__ {
     69 			sub-test-node {
     70 				new-sub-test-property;
     71 			};
     72 		};
     73 	};
     74 
     75 	__local_fixups__ {
     76 		fragment@5 {
     77 			__overlay__ {
     78 				test-several-phandle = <0 4>;
     79 			};
     80 		};
     81 	};
     82 };
     83