1/* 2 * Copyright (c) 2016 NextThing Co 3 * Copyright (c) 2016 Free Electrons 4 * Copyright (c) 2016 Konsulko Inc. 5 * 6 * SPDX-License-Identifier: GPL-2.0+ 7 */ 8 9/dts-v1/; 10 11/* Note no /plugin/ tag - we're manually generating the metadata for 12 testing purposes */ 13 14/ { 15 /* Test that we can change an int by another */ 16 fragment@0 { 17 target = <0xffffffff /*&test*/>; 18 19 __overlay__ { 20 test-int-property = <43>; 21 }; 22 }; 23 24 /* Test that we can replace a string by a longer one */ 25 fragment@1 { 26 target = <0xffffffff /*&test*/>; 27 28 __overlay__ { 29 test-str-property = "foobar"; 30 }; 31 }; 32 33 /* Test that we add a new property */ 34 fragment@2 { 35 target = <0xffffffff /*&test*/>; 36 37 __overlay__ { 38 test-str-property-2 = "foobar2"; 39 }; 40 }; 41 42 /* Test that we add a new node (by phandle) */ 43 fragment@3 { 44 target = <0xffffffff /*&test*/>; 45 46 __overlay__ { 47 new-node { 48 new-property; 49 }; 50 }; 51 }; 52 53 fragment@4 { 54 target = <0xffffffff /*&test*/>; 55 56 __overlay__ { 57 local: new-local-node { 58 new-property; 59 }; 60 }; 61 }; 62 63 fragment@5 { 64 target = <0xffffffff /*&test*/>; 65 66 __overlay__ { 67 test-phandle = <0xffffffff /*&test*/>, <&local>; 68 }; 69 }; 70 71 fragment@6 { 72 target = <0xffffffff /*&test*/>; 73 74 __overlay__ { 75 test-several-phandle = <&local>, <&local>; 76 }; 77 }; 78 79 fragment@7 { 80 target = <0xffffffff /*&test*/>; 81 82 __overlay__ { 83 sub-test-node { 84 new-sub-test-property; 85 }; 86 }; 87 }; 88 89 __fixups__ { 90 test = "/fragment@0:target:0", 91 "/fragment@1:target:0", 92 "/fragment@2:target:0", 93 "/fragment@3:target:0", 94 "/fragment@4:target:0", 95 "/fragment@5:target:0", 96 "/fragment@5/__overlay__:test-phandle:0", 97 "/fragment@6:target:0", 98 "/fragment@7:target:0"; 99 }; 100 __local_fixups__ { 101 fragment@5 { 102 __overlay__ { 103 test-phandle = <4>; 104 }; 105 }; 106 fragment@6 { 107 __overlay__ { 108 test-several-phandle = <0 4>; 109 }; 110 }; 111 }; 112}; 113