blob: d0c40be6b0ad69cc641ba3d56477db5eb3eaa09c [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 Glass9cc36a22015-01-25 08:27:05 -070011 i2c0 = "/i2c@0";
Simon Glassfbe07ba2015-04-20 12:37:30 -060012 spi0 = "/spi@0";
Przemyslaw Marczakf64000c2015-05-13 13:38:34 +020013 pci0 = &pci;
14 testfdt6 = "/e-test";
Simon Glass9cc36a22015-01-25 08:27:05 -070015 testbus3 = "/some-bus";
16 testfdt0 = "/some-bus/c-test@0";
17 testfdt1 = "/some-bus/c-test@1";
18 testfdt3 = "/b-test";
19 testfdt5 = "/some-bus/c-test@5";
20 testfdt8 = "/a-test";
Przemyslaw Marczakf64000c2015-05-13 13:38:34 +020021 eth0 = "/eth@10002000";
22 eth5 = &eth_5;
Simon Glasse00cb222015-03-25 12:23:05 -060023 usb0 = &usb_0;
24 usb1 = &usb_1;
25 usb2 = &usb_2;
Simon Glass00606d72014-07-23 06:55:03 -060026 };
27
28 uart0: serial {
29 compatible = "sandbox,serial";
30 u-boot,dm-pre-reloc;
31 };
32
Simon Glass2e7d35d2014-02-26 15:59:21 -070033 a-test {
34 reg = <0>;
35 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060036 ping-expect = <0>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070037 ping-add = <0>;
Simon Glass00606d72014-07-23 06:55:03 -060038 u-boot,dm-pre-reloc;
Simon Glass3669e0e2015-01-05 20:05:29 -070039 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
40 <0>, <&gpio_a 12>;
41 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
42 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
43 <&gpio_b 9 0xc 3 2 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070044 };
45
46 junk {
47 reg = <1>;
48 compatible = "not,compatible";
49 };
50
51 no-compatible {
52 reg = <2>;
53 };
54
55 b-test {
56 reg = <3>;
57 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060058 ping-expect = <3>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070059 ping-add = <3>;
60 };
61
62 some-bus {
63 #address-cells = <1>;
64 #size-cells = <0>;
Simon Glass1ca7e202014-07-23 06:55:18 -060065 compatible = "denx,u-boot-test-bus";
Simon Glass5a66a8f2014-07-23 06:55:12 -060066 reg = <3>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060067 ping-expect = <4>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070068 ping-add = <4>;
Simon Glass1ca7e202014-07-23 06:55:18 -060069 c-test@5 {
Simon Glass2e7d35d2014-02-26 15:59:21 -070070 compatible = "denx,u-boot-fdt-test";
71 reg = <5>;
Simon Glass1ca7e202014-07-23 06:55:18 -060072 ping-expect = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070073 ping-add = <5>;
74 };
Simon Glass1ca7e202014-07-23 06:55:18 -060075 c-test@0 {
76 compatible = "denx,u-boot-fdt-test";
77 reg = <0>;
78 ping-expect = <6>;
79 ping-add = <6>;
80 };
81 c-test@1 {
82 compatible = "denx,u-boot-fdt-test";
83 reg = <1>;
84 ping-expect = <7>;
85 ping-add = <7>;
86 };
Simon Glass2e7d35d2014-02-26 15:59:21 -070087 };
88
89 d-test {
Simon Glass5a66a8f2014-07-23 06:55:12 -060090 reg = <3>;
91 ping-expect = <6>;
92 ping-add = <6>;
93 compatible = "google,another-fdt-test";
94 };
95
96 e-test {
97 reg = <3>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060098 ping-expect = <6>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070099 ping-add = <6>;
100 compatible = "google,another-fdt-test";
101 };
102
Simon Glass9cc36a22015-01-25 08:27:05 -0700103 f-test {
104 compatible = "denx,u-boot-fdt-test";
105 };
106
107 g-test {
108 compatible = "denx,u-boot-fdt-test";
109 };
110
Simon Glass0ae0cb72014-10-13 23:42:11 -0600111 gpio_a: base-gpios {
Simon Glass2e7d35d2014-02-26 15:59:21 -0700112 compatible = "sandbox,gpio";
Simon Glass3669e0e2015-01-05 20:05:29 -0700113 gpio-controller;
114 #gpio-cells = <1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700115 gpio-bank-name = "a";
116 num-gpios = <20>;
117 };
118
Simon Glass3669e0e2015-01-05 20:05:29 -0700119 gpio_b: extra-gpios {
Simon Glass2e7d35d2014-02-26 15:59:21 -0700120 compatible = "sandbox,gpio";
Simon Glass3669e0e2015-01-05 20:05:29 -0700121 gpio-controller;
122 #gpio-cells = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700123 gpio-bank-name = "b";
124 num-gpios = <10>;
125 };
Simon Glass0ae0cb72014-10-13 23:42:11 -0600126
Simon Glassecc2ed52014-12-10 08:55:55 -0700127 i2c@0 {
128 #address-cells = <1>;
129 #size-cells = <0>;
130 reg = <0>;
131 compatible = "sandbox,i2c";
132 clock-frequency = <100000>;
133 eeprom@2c {
134 reg = <0x2c>;
135 compatible = "i2c-eeprom";
136 emul {
137 compatible = "sandbox,i2c-eeprom";
138 sandbox,filename = "i2c.bin";
139 sandbox,size = <256>;
140 };
141 };
142 };
143
Simon Glassd3b7ff12015-03-05 12:25:34 -0700144 pci: pci-controller {
145 compatible = "sandbox,pci";
146 device_type = "pci";
147 #address-cells = <3>;
148 #size-cells = <2>;
149 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
150 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
151 pci@1f,0 {
152 compatible = "pci-generic";
153 reg = <0xf800 0 0 0 0>;
154 emul@1f,0 {
155 compatible = "sandbox,swap-case";
156 };
157 };
158 };
159
Simon Glass0ae0cb72014-10-13 23:42:11 -0600160 spi@0 {
161 #address-cells = <1>;
162 #size-cells = <0>;
163 reg = <0>;
164 compatible = "sandbox,spi";
165 cs-gpios = <0>, <&gpio_a 0>;
166 spi.bin@0 {
167 reg = <0>;
168 compatible = "spansion,m25p16", "spi-flash";
169 spi-max-frequency = <40000000>;
170 sandbox,filename = "spi.bin";
171 };
172 };
173
Joe Hershbergerbfacad72015-03-22 17:09:15 -0500174 eth@10002000 {
175 compatible = "sandbox,eth";
176 reg = <0x10002000 0x1000>;
177 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
178 };
179
Joe Hershbergere58780d2015-03-22 17:09:16 -0500180 eth_5: eth@10003000 {
Joe Hershbergerbfacad72015-03-22 17:09:15 -0500181 compatible = "sandbox,eth";
182 reg = <0x10003000 0x1000>;
183 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
184 };
185
186 eth@10004000 {
187 compatible = "sandbox,eth";
188 reg = <0x10004000 0x1000>;
189 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
190 };
191
Simon Glasse00cb222015-03-25 12:23:05 -0600192 usb_0: usb@0 {
193 compatible = "sandbox,usb";
194 status = "disabled";
195 hub {
196 compatible = "sandbox,usb-hub";
197 #address-cells = <1>;
198 #size-cells = <0>;
199 flash-stick {
200 reg = <0>;
201 compatible = "sandbox,usb-flash";
202 };
203 };
204 };
205
206 usb_1: usb@1 {
207 compatible = "sandbox,usb";
208 hub {
209 compatible = "usb-hub";
210 usb,device-class = <9>;
211 hub-emul {
212 compatible = "sandbox,usb-hub";
213 #address-cells = <1>;
214 #size-cells = <0>;
215 flash-stick {
216 reg = <0>;
217 compatible = "sandbox,usb-flash";
218 sandbox,filepath = "testflash.bin";
219 };
220
221 };
222 };
223 };
224
225 usb_2: usb@2 {
226 compatible = "sandbox,usb";
227 status = "disabled";
228 };
229
Simon Glass2e7d35d2014-02-26 15:59:21 -0700230};