blob: b5c1274bb7c77998248a8f86e9f4a1c1fd095a96 [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;
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";
Simon Glass9c526332018-07-06 10:27:28 -060024 notstring = [20 21 22 10 00];
Simon Glass9d2eb922017-06-18 22:09:06 -060025 };
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";
Simon Glass7f5e2262020-07-07 21:32:06 -060037 acpi-name = "\\_SB.GPO0";
Simon Glass9d2eb922017-06-18 22:09:06 -060038 };
39
40 spl-test3 {
41 u-boot,dm-pre-reloc;
42 compatible = "sandbox,spl-test";
43 stringarray = "one";
Simon Glass8034e4d2020-10-03 11:31:27 -060044 longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
Simon Glass9d2eb922017-06-18 22:09:06 -060045 };
46
Simon Glass90e5f0a2017-08-29 14:15:51 -060047 i2c@0 {
Simon Glass32a8d222021-02-03 06:00:57 -070048 compatible = "sandbox,i2c";
Simon Glass90e5f0a2017-08-29 14:15:51 -060049 u-boot,dm-pre-reloc;
50 #address-cells = <1>;
51 #size-cells = <0>;
52 pmic@9 {
Simon Glass32a8d222021-02-03 06:00:57 -070053 compatible = "sandbox,pmic";
Simon Glass90e5f0a2017-08-29 14:15:51 -060054 u-boot,dm-pre-reloc;
55 reg = <9>;
56 low-power;
57 };
58 };
Simon Glass244548f2021-03-21 18:24:37 +130059
60 orig-node {
61 orig = <1 23 4>;
62 };
Simon Glass9d2eb922017-06-18 22:09:06 -060063};