blob: 5a6fa88d5cc3e24ea3d6cf4e8b4595afda5d5948 [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>;
19 intarray = <2 3 4>;
20 byteval = [05];
21 bytearray = [06];
22 longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11];
23 stringval = "message";
24 stringarray = "multi-word", "message";
Simon Glass9c526332018-07-06 10:27:28 -060025 notstring = [20 21 22 10 00];
Simon Glass9d2eb922017-06-18 22:09:06 -060026 };
27
28 spl-test2 {
29 u-boot,dm-pre-reloc;
30 compatible = "sandbox,spl-test";
31 intval = <3>;
32 intarray = <5>;
33 byteval = [08];
34 bytearray = [01 23 34];
35 longbytearray = [09 0a 0b 0c];
36 stringval = "message2";
37 stringarray = "another", "multi-word", "message";
Simon Glass7f5e2262020-07-07 21:32:06 -060038 acpi-name = "\\_SB.GPO0";
Simon Glass9d2eb922017-06-18 22:09:06 -060039 };
40
41 spl-test3 {
42 u-boot,dm-pre-reloc;
43 compatible = "sandbox,spl-test";
44 stringarray = "one";
Simon Glass8034e4d2020-10-03 11:31:27 -060045 longbytearray = [09 0a 0b 0c 0d 0e 0f 10];
Simon Glass43118322021-07-28 19:23:11 -060046 maybe-empty-int = <1>;
Simon Glass9d2eb922017-06-18 22:09:06 -060047 };
48
Simon Glass90e5f0a2017-08-29 14:15:51 -060049 i2c@0 {
Simon Glass32a8d222021-02-03 06:00:57 -070050 compatible = "sandbox,i2c";
Simon Glass90e5f0a2017-08-29 14:15:51 -060051 u-boot,dm-pre-reloc;
52 #address-cells = <1>;
53 #size-cells = <0>;
54 pmic@9 {
Simon Glass32a8d222021-02-03 06:00:57 -070055 compatible = "sandbox,pmic";
Simon Glass90e5f0a2017-08-29 14:15:51 -060056 u-boot,dm-pre-reloc;
57 reg = <9>;
58 low-power;
59 };
60 };
Simon Glass244548f2021-03-21 18:24:37 +130061
62 orig-node {
63 orig = <1 23 4>;
64 };
Simon Glass9d2eb922017-06-18 22:09:06 -060065};