blob: 65b2f8ecdac037c136cc7f3c70ffe5473f76842e [file] [log] [blame]
Simon Glassb2c1cac2014-02-26 15:59:21 -07001/dts-v1/;
2
3/ {
4 model = "sandbox";
5 compatible = "sandbox";
6 #address-cells = <1>;
Simon Glasscf61f742015-07-06 12:54:36 -06007 #size-cells = <1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -07008
Simon Glassfef72b72014-07-23 06:55:03 -06009 aliases {
10 console = &uart0;
Simon Glass5b968632015-05-22 15:42:15 -060011 eth0 = "/eth@10002000";
Bin Meng04a11cb2015-08-27 22:25:53 -070012 eth3 = &eth_3;
Simon Glass5b968632015-05-22 15:42:15 -060013 eth5 = &eth_5;
Simon Glass0ccb0972015-01-25 08:27:05 -070014 i2c0 = "/i2c@0";
Simon Glasse4fef742017-04-23 20:02:07 -060015 mmc0 = "/mmc0";
16 mmc1 = "/mmc1";
Przemyslaw Marczak3dbb55e2015-05-13 13:38:34 +020017 pci0 = &pci;
Nishanth Menonedf85812015-09-17 15:42:41 -050018 remoteproc1 = &rproc_1;
19 remoteproc2 = &rproc_2;
Simon Glass336b2952015-05-22 15:42:17 -060020 rtc0 = &rtc_0;
21 rtc1 = &rtc_1;
Simon Glass5b968632015-05-22 15:42:15 -060022 spi0 = "/spi@0";
Przemyslaw Marczak3dbb55e2015-05-13 13:38:34 +020023 testfdt6 = "/e-test";
Simon Glass0ccb0972015-01-25 08:27:05 -070024 testbus3 = "/some-bus";
25 testfdt0 = "/some-bus/c-test@0";
26 testfdt1 = "/some-bus/c-test@1";
27 testfdt3 = "/b-test";
28 testfdt5 = "/some-bus/c-test@5";
29 testfdt8 = "/a-test";
Simon Glass31680482015-03-25 12:23:05 -060030 usb0 = &usb_0;
31 usb1 = &usb_1;
32 usb2 = &usb_2;
Simon Glassfef72b72014-07-23 06:55:03 -060033 };
34
Simon Glassb2c1cac2014-02-26 15:59:21 -070035 a-test {
Simon Glasscf61f742015-07-06 12:54:36 -060036 reg = <0 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070037 compatible = "denx,u-boot-fdt-test";
Simon Glassa7bb08a2014-07-23 06:54:57 -060038 ping-expect = <0>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070039 ping-add = <0>;
Simon Glassfef72b72014-07-23 06:55:03 -060040 u-boot,dm-pre-reloc;
Simon Glass16e10402015-01-05 20:05:29 -070041 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
42 <0>, <&gpio_a 12>;
43 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
44 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
45 <&gpio_b 9 0xc 3 2 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070046 };
47
48 junk {
Simon Glasscf61f742015-07-06 12:54:36 -060049 reg = <1 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070050 compatible = "not,compatible";
51 };
52
53 no-compatible {
Simon Glasscf61f742015-07-06 12:54:36 -060054 reg = <2 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070055 };
56
57 b-test {
Simon Glasscf61f742015-07-06 12:54:36 -060058 reg = <3 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070059 compatible = "denx,u-boot-fdt-test";
Simon Glassa7bb08a2014-07-23 06:54:57 -060060 ping-expect = <3>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070061 ping-add = <3>;
62 };
63
Jean-Jacques Hiblot7e9db022017-04-24 11:51:28 +020064 phy_provider0: gen_phy@0 {
65 compatible = "sandbox,phy";
66 #phy-cells = <1>;
67 };
68
69 phy_provider1: gen_phy@1 {
70 compatible = "sandbox,phy";
71 #phy-cells = <0>;
72 broken;
73 };
74
75 gen_phy_user: gen_phy_user {
76 compatible = "simple-bus";
77 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
78 phy-names = "phy1", "phy2", "phy3";
79 };
80
Simon Glassb2c1cac2014-02-26 15:59:21 -070081 some-bus {
82 #address-cells = <1>;
83 #size-cells = <0>;
Simon Glass40717422014-07-23 06:55:18 -060084 compatible = "denx,u-boot-test-bus";
Simon Glasscf61f742015-07-06 12:54:36 -060085 reg = <3 1>;
Simon Glassa7bb08a2014-07-23 06:54:57 -060086 ping-expect = <4>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070087 ping-add = <4>;
Simon Glass40717422014-07-23 06:55:18 -060088 c-test@5 {
Simon Glassb2c1cac2014-02-26 15:59:21 -070089 compatible = "denx,u-boot-fdt-test";
90 reg = <5>;
Simon Glass40717422014-07-23 06:55:18 -060091 ping-expect = <5>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070092 ping-add = <5>;
93 };
Simon Glass40717422014-07-23 06:55:18 -060094 c-test@0 {
95 compatible = "denx,u-boot-fdt-test";
96 reg = <0>;
97 ping-expect = <6>;
98 ping-add = <6>;
99 };
100 c-test@1 {
101 compatible = "denx,u-boot-fdt-test";
102 reg = <1>;
103 ping-expect = <7>;
104 ping-add = <7>;
105 };
Simon Glassb2c1cac2014-02-26 15:59:21 -0700106 };
107
108 d-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600109 reg = <3 1>;
Simon Glassdb6f0202014-07-23 06:55:12 -0600110 ping-expect = <6>;
111 ping-add = <6>;
112 compatible = "google,another-fdt-test";
113 };
114
115 e-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600116 reg = <3 1>;
Simon Glassa7bb08a2014-07-23 06:54:57 -0600117 ping-expect = <6>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700118 ping-add = <6>;
119 compatible = "google,another-fdt-test";
120 };
121
Simon Glass0ccb0972015-01-25 08:27:05 -0700122 f-test {
123 compatible = "denx,u-boot-fdt-test";
124 };
125
126 g-test {
127 compatible = "denx,u-boot-fdt-test";
128 };
129
Stephen Warrena9622432016-06-17 09:44:00 -0600130 clk_fixed: clk-fixed {
131 compatible = "fixed-clock";
132 #clock-cells = <0>;
133 clock-frequency = <1234>;
134 };
135
136 clk_sandbox: clk-sbox {
Simon Glass8cc4d822015-07-06 12:54:24 -0600137 compatible = "sandbox,clk";
Stephen Warrena9622432016-06-17 09:44:00 -0600138 #clock-cells = <1>;
139 };
140
141 clk-test {
142 compatible = "sandbox,clk-test";
143 clocks = <&clk_fixed>,
144 <&clk_sandbox 1>,
145 <&clk_sandbox 0>;
146 clock-names = "fixed", "i2c", "spi";
Simon Glass8cc4d822015-07-06 12:54:24 -0600147 };
148
Simon Glass5b968632015-05-22 15:42:15 -0600149 eth@10002000 {
150 compatible = "sandbox,eth";
151 reg = <0x10002000 0x1000>;
152 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
153 };
154
155 eth_5: eth@10003000 {
156 compatible = "sandbox,eth";
157 reg = <0x10003000 0x1000>;
158 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
159 };
160
Bin Meng04a11cb2015-08-27 22:25:53 -0700161 eth_3: sbe5 {
162 compatible = "sandbox,eth";
163 reg = <0x10005000 0x1000>;
164 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
165 };
166
Simon Glass5b968632015-05-22 15:42:15 -0600167 eth@10004000 {
168 compatible = "sandbox,eth";
169 reg = <0x10004000 0x1000>;
170 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
171 };
172
Simon Glass25348a42014-10-13 23:42:11 -0600173 gpio_a: base-gpios {
Simon Glassb2c1cac2014-02-26 15:59:21 -0700174 compatible = "sandbox,gpio";
Simon Glass16e10402015-01-05 20:05:29 -0700175 gpio-controller;
176 #gpio-cells = <1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700177 gpio-bank-name = "a";
178 num-gpios = <20>;
179 };
180
Simon Glass16e10402015-01-05 20:05:29 -0700181 gpio_b: extra-gpios {
Simon Glassb2c1cac2014-02-26 15:59:21 -0700182 compatible = "sandbox,gpio";
Simon Glass16e10402015-01-05 20:05:29 -0700183 gpio-controller;
184 #gpio-cells = <5>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700185 gpio-bank-name = "b";
186 num-gpios = <10>;
187 };
Simon Glass25348a42014-10-13 23:42:11 -0600188
Simon Glass7df766e2014-12-10 08:55:55 -0700189 i2c@0 {
190 #address-cells = <1>;
191 #size-cells = <0>;
Simon Glasscf61f742015-07-06 12:54:36 -0600192 reg = <0 1>;
Simon Glass7df766e2014-12-10 08:55:55 -0700193 compatible = "sandbox,i2c";
194 clock-frequency = <100000>;
195 eeprom@2c {
196 reg = <0x2c>;
197 compatible = "i2c-eeprom";
198 emul {
199 compatible = "sandbox,i2c-eeprom";
200 sandbox,filename = "i2c.bin";
201 sandbox,size = <256>;
202 };
203 };
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200204
Simon Glass336b2952015-05-22 15:42:17 -0600205 rtc_0: rtc@43 {
206 reg = <0x43>;
207 compatible = "sandbox-rtc";
208 emul {
209 compatible = "sandbox,i2c-rtc";
210 };
211 };
212
213 rtc_1: rtc@61 {
214 reg = <0x61>;
215 compatible = "sandbox-rtc";
216 emul {
217 compatible = "sandbox,i2c-rtc";
218 };
219 };
220
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200221 sandbox_pmic: sandbox_pmic {
222 reg = <0x40>;
223 };
Simon Glass7df766e2014-12-10 08:55:55 -0700224 };
225
Przemyslaw Marczak1bc7f232015-10-27 13:08:06 +0100226 adc@0 {
227 compatible = "sandbox,adc";
228 vdd-supply = <&buck2>;
229 vss-microvolts = <0>;
230 };
231
Simon Glass90b6fef2016-01-18 19:52:26 -0700232 lcd {
233 u-boot,dm-pre-reloc;
234 compatible = "sandbox,lcd-sdl";
235 xres = <1366>;
236 yres = <768>;
237 };
238
Simon Glassd783eb32015-07-06 12:54:34 -0600239 leds {
240 compatible = "gpio-leds";
241
242 iracibble {
243 gpios = <&gpio_a 1 0>;
244 label = "sandbox:red";
245 };
246
247 martinet {
248 gpios = <&gpio_a 2 0>;
249 label = "sandbox:green";
250 };
251 };
252
Stephen Warren62f2c902016-05-16 17:41:37 -0600253 mbox: mbox {
254 compatible = "sandbox,mbox";
255 #mbox-cells = <1>;
256 };
257
258 mbox-test {
259 compatible = "sandbox,mbox-test";
260 mboxes = <&mbox 100>, <&mbox 1>;
261 mbox-names = "other", "test";
262 };
263
Simon Glasse4fef742017-04-23 20:02:07 -0600264 mmc2 {
265 compatible = "sandbox,mmc";
266 };
267
268 mmc1 {
269 compatible = "sandbox,mmc";
270 };
271
272 mmc0 {
Simon Glassd3e58e42015-07-06 12:54:32 -0600273 compatible = "sandbox,mmc";
274 };
275
Simon Glass3a6eae62015-03-05 12:25:34 -0700276 pci: pci-controller {
277 compatible = "sandbox,pci";
278 device_type = "pci";
279 #address-cells = <3>;
280 #size-cells = <2>;
281 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
282 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
283 pci@1f,0 {
284 compatible = "pci-generic";
285 reg = <0xf800 0 0 0 0>;
286 emul@1f,0 {
287 compatible = "sandbox,swap-case";
288 };
289 };
290 };
291
Simon Glass9c433fe2017-04-23 20:10:44 -0600292 probing {
293 compatible = "simple-bus";
294 test1 {
295 compatible = "denx,u-boot-probe-test";
296 };
297
298 test2 {
299 compatible = "denx,u-boot-probe-test";
300 };
301
302 test3 {
303 compatible = "denx,u-boot-probe-test";
304 };
305
306 test4 {
307 compatible = "denx,u-boot-probe-test";
308 };
309 };
310
Stephen Warren92c67fa2016-07-13 13:45:31 -0600311 pwrdom: power-domain {
312 compatible = "sandbox,power-domain";
313 #power-domain-cells = <1>;
314 };
315
316 power-domain-test {
317 compatible = "sandbox,power-domain-test";
318 power-domains = <&pwrdom 2>;
319 };
320
Simon Glasse62f4be2017-04-16 21:01:11 -0600321 pwm {
322 compatible = "sandbox,pwm";
323 };
324
325 pwm2 {
326 compatible = "sandbox,pwm";
327 };
328
Simon Glass3d355e62015-07-06 12:54:31 -0600329 ram {
330 compatible = "sandbox,ram";
331 };
332
Simon Glassd860f222015-07-06 12:54:29 -0600333 reset@0 {
334 compatible = "sandbox,warm-reset";
335 };
336
337 reset@1 {
338 compatible = "sandbox,reset";
339 };
340
Stephen Warren6488e642016-06-17 09:43:59 -0600341 resetc: reset-ctl {
342 compatible = "sandbox,reset-ctl";
343 #reset-cells = <1>;
344 };
345
346 reset-ctl-test {
347 compatible = "sandbox,reset-ctl-test";
348 resets = <&resetc 100>, <&resetc 2>;
349 reset-names = "other", "test";
350 };
351
Nishanth Menonedf85812015-09-17 15:42:41 -0500352 rproc_1: rproc@1 {
353 compatible = "sandbox,test-processor";
354 remoteproc-name = "remoteproc-test-dev1";
355 };
356
357 rproc_2: rproc@2 {
358 compatible = "sandbox,test-processor";
359 internal-memory-mapped;
360 remoteproc-name = "remoteproc-test-dev2";
361 };
362
Simon Glass25348a42014-10-13 23:42:11 -0600363 spi@0 {
364 #address-cells = <1>;
365 #size-cells = <0>;
Simon Glasscf61f742015-07-06 12:54:36 -0600366 reg = <0 1>;
Simon Glass25348a42014-10-13 23:42:11 -0600367 compatible = "sandbox,spi";
368 cs-gpios = <0>, <&gpio_a 0>;
369 spi.bin@0 {
370 reg = <0>;
371 compatible = "spansion,m25p16", "spi-flash";
372 spi-max-frequency = <40000000>;
373 sandbox,filename = "spi.bin";
374 };
375 };
376
Simon Glasscd556522015-07-06 12:54:35 -0600377 syscon@0 {
378 compatible = "sandbox,syscon0";
Simon Glasscf61f742015-07-06 12:54:36 -0600379 reg = <0x10 4>;
Simon Glasscd556522015-07-06 12:54:35 -0600380 };
381
382 syscon@1 {
383 compatible = "sandbox,syscon1";
Simon Glasscf61f742015-07-06 12:54:36 -0600384 reg = <0x20 5
385 0x28 6
386 0x30 7
387 0x38 8>;
Simon Glasscd556522015-07-06 12:54:35 -0600388 };
389
Thomas Chou6f2cfbf2015-12-11 16:27:34 +0800390 timer {
391 compatible = "sandbox,timer";
392 clock-frequency = <1000000>;
393 };
394
Simon Glass5b968632015-05-22 15:42:15 -0600395 uart0: serial {
396 compatible = "sandbox,serial";
397 u-boot,dm-pre-reloc;
Joe Hershberger4c197242015-03-22 17:09:15 -0500398 };
399
Simon Glass31680482015-03-25 12:23:05 -0600400 usb_0: usb@0 {
401 compatible = "sandbox,usb";
402 status = "disabled";
403 hub {
404 compatible = "sandbox,usb-hub";
405 #address-cells = <1>;
406 #size-cells = <0>;
407 flash-stick {
408 reg = <0>;
409 compatible = "sandbox,usb-flash";
410 };
411 };
412 };
413
414 usb_1: usb@1 {
415 compatible = "sandbox,usb";
416 hub {
417 compatible = "usb-hub";
418 usb,device-class = <9>;
419 hub-emul {
420 compatible = "sandbox,usb-hub";
421 #address-cells = <1>;
422 #size-cells = <0>;
Simon Glass4700fe52015-11-08 23:48:01 -0700423 flash-stick@0 {
Simon Glass31680482015-03-25 12:23:05 -0600424 reg = <0>;
425 compatible = "sandbox,usb-flash";
426 sandbox,filepath = "testflash.bin";
427 };
428
Simon Glass4700fe52015-11-08 23:48:01 -0700429 flash-stick@1 {
430 reg = <1>;
431 compatible = "sandbox,usb-flash";
432 sandbox,filepath = "testflash1.bin";
433 };
434
435 flash-stick@2 {
436 reg = <2>;
437 compatible = "sandbox,usb-flash";
438 sandbox,filepath = "testflash2.bin";
439 };
440
Simon Glassc0ccc722015-11-08 23:48:08 -0700441 keyb@3 {
442 reg = <3>;
443 compatible = "sandbox,usb-keyb";
444 };
445
Simon Glass31680482015-03-25 12:23:05 -0600446 };
447 };
448 };
449
450 usb_2: usb@2 {
451 compatible = "sandbox,usb";
452 status = "disabled";
453 };
454
Mateusz Kulikowskic7e4fbb2016-03-31 23:12:28 +0200455 spmi: spmi@0 {
456 compatible = "sandbox,spmi";
457 #address-cells = <0x1>;
458 #size-cells = <0x1>;
459 pm8916@0 {
460 compatible = "qcom,spmi-pmic";
461 reg = <0x0 0x1>;
462 #address-cells = <0x1>;
463 #size-cells = <0x1>;
464
465 spmi_gpios: gpios@c000 {
466 compatible = "qcom,pm8916-gpio";
467 reg = <0xc000 0x400>;
468 gpio-controller;
469 gpio-count = <4>;
470 #gpio-cells = <2>;
471 gpio-bank-name="spmi";
472 };
473 };
474 };
maxims@google.comdaea6d42017-04-17 12:00:21 -0700475
476 wdt0: wdt@0 {
477 compatible = "sandbox,wdt";
478 };
Simon Glassb2c1cac2014-02-26 15:59:21 -0700479};
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200480
481#include "sandbox_pmic.dtsi"