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/plugin/; 10 11/ { 12 /* Test that we can change an int by another */ 13 fragment@0 { 14 target = <&test>; 15 16 __overlay__ { 17 test-int-property = <43>; 18 }; 19 }; 20 21 /* Test that we can replace a string by a longer one */ 22 fragment@1 { 23 target = <&test>; 24 25 __overlay__ { 26 test-str-property = "foobar"; 27 }; 28 }; 29 30 /* Test that we add a new property */ 31 fragment@2 { 32 target = <&test>; 33 34 __overlay__ { 35 test-str-property-2 = "foobar2"; 36 }; 37 }; 38 39 /* Test that we add a new node (by phandle) */ 40 fragment@3 { 41 target = <&test>; 42 43 __overlay__ { 44 new-node { 45 new-property; 46 }; 47 }; 48 }; 49 50 /* Test that we add a new node (by path) */ 51 fragment@4 { 52 target-path = "/"; 53 54 __overlay__ { 55 new-node { 56 new-property; 57 }; 58 }; 59 }; 60 61 fragment@5 { 62 target-path = "/"; 63 64 __overlay__ { 65 local: new-local-node { 66 new-property; 67 }; 68 }; 69 }; 70 71 fragment@6 { 72 target-path = "/"; 73 74 __overlay__ { 75 test-phandle = <&test>, <&local>; 76 }; 77 }; 78 79 fragment@7 { 80 target-path = "/"; 81 82 __overlay__ { 83 test-several-phandle = <&local>, <&local>; 84 }; 85 }; 86 87 fragment@8 { 88 target = <&test>; 89 90 __overlay__ { 91 sub-test-node { 92 new-sub-test-property; 93 }; 94 }; 95 }; 96}; 97