1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Test device tree file for dtoc 4 * 5 * Copyright 2017 Google, Inc 6 */ 7 8/dts-v1/; 9 10/ { 11 #address-cells = <1>; 12 #size-cells = <1>; 13 reference = <&over>; /* nake sure that the 'over' phandle exists */ 14 copy-list = <&another &base>; 15 16 dest { 17 bootph-all; 18 compatible = "sandbox,spl-test"; 19 stringarray = "one"; 20 longbytearray = [09 0a 0b 0c 0d 0e 0f 10]; 21 maybe-empty-int = <1>; 22 23 first@0 { 24 a-prop = <456>; 25 b-prop = <1>; 26 }; 27 28 existing { 29 }; 30 31 base { 32 second { 33 second3 { 34 }; 35 36 second2 { 37 new-prop; 38 }; 39 40 second1: second1 { 41 new-prop; 42 }; 43 44 second4 { 45 use_second1 = <&second1>; 46 }; 47 }; 48 }; 49 }; 50 51 base: base { 52 compatible = "sandbox,i2c"; 53 bootph-all; 54 #address-cells = <1>; 55 #size-cells = <0>; 56 over: over { 57 compatible = "sandbox,pmic"; 58 bootph-all; 59 reg = <9>; 60 low-power; 61 }; 62 63 first@0 { 64 reg = <0>; 65 a-prop = <123>; 66 }; 67 68 second: second { 69 second_1_bad: second1 { 70 some-prop; 71 }; 72 73 second2 { 74 some-prop; 75 use_second1_bad = <&second_1_bad>; 76 }; 77 }; 78 }; 79 80 another: another { 81 new-prop = "hello"; 82 earlier { 83 wibble = <2>; 84 }; 85 86 later { 87 fibble = <3>; 88 }; 89 }; 90}; 91