blob: 8e50c756592833e31a3c3e2b931a3d9f7c0c40a9 [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
Simon Glass02e505e2023-07-22 21:43:53 -060040 second1: second1 {
Simon Glassadf8e052023-07-18 07:24:02 -060041 new-prop;
42 };
43
44 second4 {
Simon Glass02e505e2023-07-22 21:43:53 -060045 use_second1 = <&second1>;
Simon Glassadf8e052023-07-18 07:24:02 -060046 };
47 };
48 };
49 };
50
Simon Glasscd971192023-07-18 07:24:03 -060051 base: base {
Simon Glassadf8e052023-07-18 07:24:02 -060052 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 Glass02e505e2023-07-22 21:43:53 -060069 second_1_bad: second1 {
Simon Glassadf8e052023-07-18 07:24:02 -060070 some-prop;
71 };
72
73 second2 {
74 some-prop;
Simon Glass02e505e2023-07-22 21:43:53 -060075 use_second1_bad = <&second_1_bad>;
Simon Glassadf8e052023-07-18 07:24:02 -060076 };
77 };
78 };
Simon Glasscd971192023-07-18 07:24:03 -060079
80 another: another {
81 new-prop = "hello";
82 earlier {
83 wibble = <2>;
84 };
85
86 later {
87 fibble = <3>;
88 };
89 };
Simon Glassadf8e052023-07-18 07:24:02 -060090};