blob: 4c2c70af222cb08f3a207f2d8534ba4f90440da9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glass9d2eb922017-06-18 22:09:06 -06002/*
3 * Test device tree file for dtoc
4 *
5 * Copyright 2017 Google, Inc
Simon Glass9d2eb922017-06-18 22:09:06 -06006 */
7
8 /dts-v1/;
9
10/ {
Simon Glass90e5f0a2017-08-29 14:15:51 -060011 #address-cells = <1>;
12 #size-cells = <1>;
Simon Glass9d2eb922017-06-18 22:09:06 -060013 spl-test {
14 u-boot,dm-pre-reloc;
15 compatible = "sandbox,spl-test";
16 boolval;
Simon Glass43118322021-07-28 19:23:11 -060017 maybe-empty-int = <>;
Simon Glass9d2eb922017-06-18 22:09:06 -060018 intval = <1>;
Simon Glass3b55e3f2021-11-23 11:03:39 -070019 int64val = /bits/ 64 <0x123456789abcdef0>;
Simon Glass9d2eb922017-06-18 22:09:06 -060020 intarray = <2 3 4>;
21 byteval = [05];
22 bytearray = [06];
23 longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
24 stringval = "message";
25 stringarray = "multi-word", "message";
Simon Glass9c526332018-07-06 10:27:28 -060026 notstring = [20 21 22 10 00];
Simon Glass9d2eb922017-06-18 22:09:06 -060027 };
28
29 spl-test2 {
30 u-boot,dm-pre-reloc;
31 compatible = "sandbox,spl-test";
32 intval = <3>;
33 intarray = <5>;
34 byteval = [08];
35 bytearray = [01 23 34];
36 longbytearray = [09 0a 0b 0c];
37 stringval = "message2";
38 stringarray = "another", "multi-word", "message";
Simon Glass7f5e2262020-07-07 21:32:06 -060039 acpi-name = "\\_SB.GPO0";
Simon Glass9d2eb922017-06-18 22:09:06 -060040 };
41
42 spl-test3 {
43 u-boot,dm-pre-reloc;
44 compatible = "sandbox,spl-test";
45 stringarray = "one";
Simon Glass8034e4d2020-10-03 11:31:27 -060046 longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
Simon Glass43118322021-07-28 19:23:11 -060047 maybe-empty-int = <1>;
Simon Glass9d2eb922017-06-18 22:09:06 -060048 };
49
Simon Glass90e5f0a2017-08-29 14:15:51 -060050 i2c@0 {
Simon Glass32a8d222021-02-03 06:00:57 -070051 compatible = "sandbox,i2c";
Simon Glass90e5f0a2017-08-29 14:15:51 -060052 u-boot,dm-pre-reloc;
53 #address-cells = <1>;
54 #size-cells = <0>;
55 pmic@9 {
Simon Glass32a8d222021-02-03 06:00:57 -070056 compatible = "sandbox,pmic";
Simon Glass90e5f0a2017-08-29 14:15:51 -060057 u-boot,dm-pre-reloc;
58 reg = <9>;
59 low-power;
60 };
61 };
Simon Glass244548f2021-03-21 18:24:37 +130062
63 orig-node {
64 orig = <1 23 4>;
65 };
Simon Glass9d2eb922017-06-18 22:09:06 -060066};