dtoc: Fix widening of int to bytes
[platform/kernel/u-boot.git] / tools / dtoc / dtoc_test_simple.dts
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         spl-test {
14                 u-boot,dm-pre-reloc;
15                 compatible = "sandbox,spl-test";
16                 boolval;
17                 intval = <1>;
18                 intarray = <2 3 4>;
19                 byteval = [05];
20                 bytearray = [06];
21                 longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
22                 stringval = "message";
23                 stringarray = "multi-word", "message";
24                 notstring = [20 21 22 10 00];
25         };
26
27         spl-test2 {
28                 u-boot,dm-pre-reloc;
29                 compatible = "sandbox,spl-test";
30                 intval = <3>;
31                 intarray = <5>;
32                 byteval = [08];
33                 bytearray = [01 23 34];
34                 longbytearray = [09 0a 0b 0c];
35                 stringval = "message2";
36                 stringarray = "another", "multi-word", "message";
37                 acpi-name =  "\\_SB.GPO0";
38         };
39
40         spl-test3 {
41                 u-boot,dm-pre-reloc;
42                 compatible = "sandbox,spl-test";
43                 stringarray = "one";
44                 longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
45         };
46
47         spl-test4 {
48                 u-boot,dm-pre-reloc;
49                 compatible = "sandbox,spl-test.2";
50         };
51
52         i2c@0 {
53                 compatible = "sandbox,i2c-test";
54                 u-boot,dm-pre-reloc;
55                 #address-cells = <1>;
56                 #size-cells = <0>;
57                 pmic@9 {
58                         compatible = "sandbox,pmic-test";
59                         u-boot,dm-pre-reloc;
60                         reg = <9>;
61                         low-power;
62                 };
63         };
64 };