blob: 36faa9b72b56b92568d05dac688edf5def4c02f0 [file] [log] [blame]
Simon Glassadf8e052023-07-18 07:24:02 -06001// 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 Glasscd971192023-07-18 07:24:03 -060014 copy-list = <&another &base>;
Simon Glassadf8e052023-07-18 07:24:02 -060015
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 Glasscd971192023-07-18 07:24:03 -060050 base: base {
Simon Glassadf8e052023-07-18 07:24:02 -060051 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 Glasscd971192023-07-18 07:24:03 -060077
78 another: another {
79 new-prop = "hello";
80 earlier {
81 wibble = <2>;
82 };
83
84 later {
85 fibble = <3>;
86 };
87 };
Simon Glassadf8e052023-07-18 07:24:02 -060088};