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