blob: fb0272a59cd25472b4e733afbe832a35c607d1d8 [file] [log] [blame]
Simon Glass2e7d35d2014-02-26 15:59:21 -07001/dts-v1/;
2
3/ {
4 model = "sandbox";
5 compatible = "sandbox";
6 #address-cells = <1>;
7 #size-cells = <0>;
8
Simon Glass00606d72014-07-23 06:55:03 -06009 aliases {
10 console = &uart0;
Simon Glass5a66a8f2014-07-23 06:55:12 -060011 testfdt6 = "/e-test";
Simon Glass00606d72014-07-23 06:55:03 -060012 };
13
14 uart0: serial {
15 compatible = "sandbox,serial";
16 u-boot,dm-pre-reloc;
17 };
18
Simon Glass2e7d35d2014-02-26 15:59:21 -070019 a-test {
20 reg = <0>;
21 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060022 ping-expect = <0>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070023 ping-add = <0>;
Simon Glass00606d72014-07-23 06:55:03 -060024 u-boot,dm-pre-reloc;
Simon Glass2e7d35d2014-02-26 15:59:21 -070025 };
26
27 junk {
28 reg = <1>;
29 compatible = "not,compatible";
30 };
31
32 no-compatible {
33 reg = <2>;
34 };
35
36 b-test {
37 reg = <3>;
38 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060039 ping-expect = <3>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070040 ping-add = <3>;
41 };
42
43 some-bus {
44 #address-cells = <1>;
45 #size-cells = <0>;
Simon Glass1ca7e202014-07-23 06:55:18 -060046 compatible = "denx,u-boot-test-bus";
Simon Glass5a66a8f2014-07-23 06:55:12 -060047 reg = <3>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060048 ping-expect = <4>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070049 ping-add = <4>;
Simon Glass1ca7e202014-07-23 06:55:18 -060050 c-test@5 {
Simon Glass2e7d35d2014-02-26 15:59:21 -070051 compatible = "denx,u-boot-fdt-test";
52 reg = <5>;
Simon Glass1ca7e202014-07-23 06:55:18 -060053 ping-expect = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070054 ping-add = <5>;
55 };
Simon Glass1ca7e202014-07-23 06:55:18 -060056 c-test@0 {
57 compatible = "denx,u-boot-fdt-test";
58 reg = <0>;
59 ping-expect = <6>;
60 ping-add = <6>;
61 };
62 c-test@1 {
63 compatible = "denx,u-boot-fdt-test";
64 reg = <1>;
65 ping-expect = <7>;
66 ping-add = <7>;
67 };
Simon Glass2e7d35d2014-02-26 15:59:21 -070068 };
69
70 d-test {
Simon Glass5a66a8f2014-07-23 06:55:12 -060071 reg = <3>;
72 ping-expect = <6>;
73 ping-add = <6>;
74 compatible = "google,another-fdt-test";
75 };
76
77 e-test {
78 reg = <3>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060079 ping-expect = <6>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070080 ping-add = <6>;
81 compatible = "google,another-fdt-test";
82 };
83
Simon Glass0ae0cb72014-10-13 23:42:11 -060084 gpio_a: base-gpios {
Simon Glass2e7d35d2014-02-26 15:59:21 -070085 compatible = "sandbox,gpio";
86 gpio-bank-name = "a";
87 num-gpios = <20>;
88 };
89
90 extra-gpios {
91 compatible = "sandbox,gpio";
92 gpio-bank-name = "b";
93 num-gpios = <10>;
94 };
Simon Glass0ae0cb72014-10-13 23:42:11 -060095
Simon Glassecc2ed52014-12-10 08:55:55 -070096 i2c@0 {
97 #address-cells = <1>;
98 #size-cells = <0>;
99 reg = <0>;
100 compatible = "sandbox,i2c";
101 clock-frequency = <100000>;
102 eeprom@2c {
103 reg = <0x2c>;
104 compatible = "i2c-eeprom";
105 emul {
106 compatible = "sandbox,i2c-eeprom";
107 sandbox,filename = "i2c.bin";
108 sandbox,size = <256>;
109 };
110 };
111 };
112
Simon Glass0ae0cb72014-10-13 23:42:11 -0600113 spi@0 {
114 #address-cells = <1>;
115 #size-cells = <0>;
116 reg = <0>;
117 compatible = "sandbox,spi";
118 cs-gpios = <0>, <&gpio_a 0>;
119 spi.bin@0 {
120 reg = <0>;
121 compatible = "spansion,m25p16", "spi-flash";
122 spi-max-frequency = <40000000>;
123 sandbox,filename = "spi.bin";
124 };
125 };
126
Simon Glass2e7d35d2014-02-26 15:59:21 -0700127};