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@5 { 54 target = <0xffffffff /*&test*/>; 55 56 __overlay__ { 57 local: new-local-node { 58 new-property; 59 }; 60 }; 61 }; 62 63 fragment@6 { 64 target = <0xffffffff /*&test*/>; 65 66 __overlay__ { 67 test-phandle = <0xffffffff /*&test*/>, <&local>; 68 }; 69 }; 70 71 fragment@7 { 72 target = <0xffffffff /*&test*/>; 73 74 __overlay__ { 75 test-several-phandle = <&local>, <&local>; 76 }; 77 }; 78 79 fragment@8 { 80 target = <0xffffffff /*&test*/>; 81 82 __overlay__ { 83 sub-test-node { 84 new-sub-test-property; 85 }; 86 }; 87 }; 88 89 __local_fixups__ { 90 fragment@6 { 91 __overlay__ { 92 test-phandle = <4>; 93 }; 94 }; 95 fragment@7 { 96 __overlay__ { 97 test-several-phandle = <0 4>; 98 }; 99 }; 100 }; 101 __fixups__ { 102 test = "/fragment@0:target:0", 103 "/fragment@1:target:0", 104 "/fragment@2:target:0", 105 "/fragment@3:target:0", 106 "/fragment@5:target:0", 107 "/fragment@6:target:0", 108 "/fragment@6/__overlay__:test-phandle:0", 109 "/fragment@7:target:0", 110 "/fragment@8:target:0"; 111 }; 112 }; 113