Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 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 */ |
Simon Glass | cd97119 | 2023-07-18 07:24:03 -0600 | [diff] [blame^] | 14 | copy-list = <&another &base>; |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 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 { |
| 41 | new-prop; |
| 42 | }; |
| 43 | |
| 44 | second4 { |
| 45 | }; |
| 46 | }; |
| 47 | }; |
| 48 | }; |
| 49 | |
Simon Glass | cd97119 | 2023-07-18 07:24:03 -0600 | [diff] [blame^] | 50 | base: base { |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 51 | compatible = "sandbox,i2c"; |
| 52 | bootph-all; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
| 55 | over: over { |
| 56 | compatible = "sandbox,pmic"; |
| 57 | bootph-all; |
| 58 | reg = <9>; |
| 59 | low-power; |
| 60 | }; |
| 61 | |
| 62 | first@0 { |
| 63 | reg = <0>; |
| 64 | a-prop = <123>; |
| 65 | }; |
| 66 | |
| 67 | second: second { |
| 68 | second1 { |
| 69 | some-prop; |
| 70 | }; |
| 71 | |
| 72 | second2 { |
| 73 | some-prop; |
| 74 | }; |
| 75 | }; |
| 76 | }; |
Simon Glass | cd97119 | 2023-07-18 07:24:03 -0600 | [diff] [blame^] | 77 | |
| 78 | another: another { |
| 79 | new-prop = "hello"; |
| 80 | earlier { |
| 81 | wibble = <2>; |
| 82 | }; |
| 83 | |
| 84 | later { |
| 85 | fibble = <3>; |
| 86 | }; |
| 87 | }; |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 88 | }; |