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 | |||||
Simon Glass | 02e505e | 2023-07-22 21:43:53 -0600 | [diff] [blame] | 40 | second1: second1 { |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 41 | new-prop; |
42 | }; | ||||
43 | |||||
44 | second4 { | ||||
Simon Glass | 02e505e | 2023-07-22 21:43:53 -0600 | [diff] [blame] | 45 | use_second1 = <&second1>; |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 46 | }; |
47 | }; | ||||
48 | }; | ||||
49 | }; | ||||
50 | |||||
Simon Glass | cd97119 | 2023-07-18 07:24:03 -0600 | [diff] [blame] | 51 | base: base { |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 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 { | ||||
Simon Glass | 02e505e | 2023-07-22 21:43:53 -0600 | [diff] [blame] | 69 | second_1_bad: second1 { |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 70 | some-prop; |
71 | }; | ||||
72 | |||||
73 | second2 { | ||||
74 | some-prop; | ||||
Simon Glass | 02e505e | 2023-07-22 21:43:53 -0600 | [diff] [blame] | 75 | use_second1_bad = <&second_1_bad>; |
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 76 | }; |
77 | }; | ||||
78 | }; | ||||
Simon Glass | cd97119 | 2023-07-18 07:24:03 -0600 | [diff] [blame] | 79 | |
80 | another: another { | ||||
81 | new-prop = "hello"; | ||||
82 | earlier { | ||||
83 | wibble = <2>; | ||||
84 | }; | ||||
85 | |||||
86 | later { | ||||
87 | fibble = <3>; | ||||
88 | }; | ||||
89 | }; | ||||
Simon Glass | adf8e05 | 2023-07-18 07:24:02 -0600 | [diff] [blame] | 90 | }; |