Merge git://git.denx.de/u-boot-usb
[platform/kernel/u-boot.git] / arch / sandbox / dts / test.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
5
6 / {
7         model = "sandbox";
8         compatible = "sandbox";
9         #address-cells = <1>;
10         #size-cells = <1>;
11
12         aliases {
13                 console = &uart0;
14                 eth0 = "/eth@10002000";
15                 eth3 = &eth_3;
16                 eth5 = &eth_5;
17                 gpio1 = &gpio_a;
18                 gpio2 = &gpio_b;
19                 gpio3 = &gpio_c;
20                 i2c0 = "/i2c@0";
21                 mmc0 = "/mmc0";
22                 mmc1 = "/mmc1";
23                 pci0 = &pci0;
24                 pci1 = &pci1;
25                 pci2 = &pci2;
26                 remoteproc1 = &rproc_1;
27                 remoteproc2 = &rproc_2;
28                 rtc0 = &rtc_0;
29                 rtc1 = &rtc_1;
30                 spi0 = "/spi@0";
31                 testfdt6 = "/e-test";
32                 testbus3 = "/some-bus";
33                 testfdt0 = "/some-bus/c-test@0";
34                 testfdt1 = "/some-bus/c-test@1";
35                 testfdt3 = "/b-test";
36                 testfdt5 = "/some-bus/c-test@5";
37                 testfdt8 = "/a-test";
38                 fdt-dummy0 = "/translation-test@8000/dev@0,0";
39                 fdt-dummy1 = "/translation-test@8000/dev@1,100";
40                 fdt-dummy2 = "/translation-test@8000/dev@2,200";
41                 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
42                 usb0 = &usb_0;
43                 usb1 = &usb_1;
44                 usb2 = &usb_2;
45                 axi0 = &axi;
46                 osd0 = "/osd";
47         };
48
49         audio: audio-codec {
50                 compatible = "sandbox,audio-codec";
51                 #sound-dai-cells = <1>;
52         };
53
54         cros_ec: cros-ec {
55                 reg = <0 0>;
56                 compatible = "google,cros-ec-sandbox";
57
58                 /*
59                  * This describes the flash memory within the EC. Note
60                  * that the STM32L flash erases to 0, not 0xff.
61                  */
62                 flash {
63                         image-pos = <0x08000000>;
64                         size = <0x20000>;
65                         erase-value = <0>;
66
67                         /* Information for sandbox */
68                         ro {
69                                 image-pos = <0>;
70                                 size = <0xf000>;
71                         };
72                         wp-ro {
73                                 image-pos = <0xf000>;
74                                 size = <0x1000>;
75                         };
76                         rw {
77                                 image-pos = <0x10000>;
78                                 size = <0x10000>;
79                         };
80                 };
81         };
82
83         dsi_host: dsi_host {
84                 compatible = "sandbox,dsi-host";
85         };
86
87         a-test {
88                 reg = <0 1>;
89                 compatible = "denx,u-boot-fdt-test";
90                 ping-expect = <0>;
91                 ping-add = <0>;
92                 u-boot,dm-pre-reloc;
93                 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
94                         <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
95                         <0>, <&gpio_a 12>;
96                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
97                         <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
98                         <&gpio_b 7 GPIO_IN 3 2 1>,
99                         <&gpio_b 8 GPIO_OUT 3 2 1>,
100                         <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
101                 test3-gpios =
102                         <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
103                         <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
104                         <&gpio_c 2 GPIO_OUT>,
105                         <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
106                         <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
107                         <&gpio_c 5 GPIO_IN>;
108                 int-value = <1234>;
109                 uint-value = <(-1234)>;
110                 int64-value = /bits/ 64 <0x1111222233334444>;
111                 int-array = <5678 9123 4567>;
112                 interrupts-extended = <&irq 3 0>;
113         };
114
115         junk {
116                 reg = <1 1>;
117                 compatible = "not,compatible";
118         };
119
120         no-compatible {
121                 reg = <2 1>;
122         };
123
124         backlight: backlight {
125                 compatible = "pwm-backlight";
126                 enable-gpios = <&gpio_a 1>;
127                 power-supply = <&ldo_1>;
128                 pwms = <&pwm 0 1000>;
129                 default-brightness-level = <5>;
130                 brightness-levels = <0 16 32 64 128 170 202 234 255>;
131         };
132
133         bind-test {
134                 bind-test-child1 {
135                         compatible = "sandbox,phy";
136                         #phy-cells = <1>;
137                 };
138
139                 bind-test-child2 {
140                         compatible = "simple-bus";
141                 };
142         };
143
144         b-test {
145                 reg = <3 1>;
146                 compatible = "denx,u-boot-fdt-test";
147                 ping-expect = <3>;
148                 ping-add = <3>;
149         };
150
151         phy_provider0: gen_phy@0 {
152                 compatible = "sandbox,phy";
153                 #phy-cells = <1>;
154         };
155
156         phy_provider1: gen_phy@1 {
157                 compatible = "sandbox,phy";
158                 #phy-cells = <0>;
159                 broken;
160         };
161
162         phy_provider2: gen_phy@2 {
163                 compatible = "sandbox,phy";
164                 #phy-cells = <0>;
165         };
166
167         gen_phy_user: gen_phy_user {
168                 compatible = "simple-bus";
169                 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
170                 phy-names = "phy1", "phy2", "phy3";
171         };
172
173         gen_phy_user1: gen_phy_user1 {
174                 compatible = "simple-bus";
175                 phys = <&phy_provider0 0>, <&phy_provider2>;
176                 phy-names = "phy1", "phy2";
177         };
178
179         some-bus {
180                 #address-cells = <1>;
181                 #size-cells = <0>;
182                 compatible = "denx,u-boot-test-bus";
183                 reg = <3 1>;
184                 ping-expect = <4>;
185                 ping-add = <4>;
186                 c-test@5 {
187                         compatible = "denx,u-boot-fdt-test";
188                         reg = <5>;
189                         ping-expect = <5>;
190                         ping-add = <5>;
191                 };
192                 c-test@0 {
193                         compatible = "denx,u-boot-fdt-test";
194                         reg = <0>;
195                         ping-expect = <6>;
196                         ping-add = <6>;
197                 };
198                 c-test@1 {
199                         compatible = "denx,u-boot-fdt-test";
200                         reg = <1>;
201                         ping-expect = <7>;
202                         ping-add = <7>;
203                 };
204         };
205
206         d-test {
207                 reg = <3 1>;
208                 ping-expect = <6>;
209                 ping-add = <6>;
210                 compatible = "google,another-fdt-test";
211         };
212
213         e-test {
214                 reg = <3 1>;
215                 ping-expect = <6>;
216                 ping-add = <6>;
217                 compatible = "google,another-fdt-test";
218         };
219
220         f-test {
221                 compatible = "denx,u-boot-fdt-test";
222         };
223
224         g-test {
225                 compatible = "denx,u-boot-fdt-test";
226         };
227
228         h-test {
229                 compatible = "denx,u-boot-fdt-test1";
230         };
231
232         i-test {
233                 compatible = "mediatek,u-boot-fdt-test";
234                 #address-cells = <1>;
235                 #size-cells = <0>;
236
237                 subnode@0 {
238                         reg = <0>;
239                 };
240
241                 subnode@1 {
242                         reg = <1>;
243                 };
244
245                 subnode@2 {
246                         reg = <2>;
247                 };
248         };
249
250         devres-test {
251                 compatible = "denx,u-boot-devres-test";
252         };
253
254         acpi-test {
255                 compatible = "denx,u-boot-acpi-test";
256         };
257
258         acpi-test2 {
259                 compatible = "denx,u-boot-acpi-test";
260         };
261
262         clocks {
263                 clk_fixed: clk-fixed {
264                         compatible = "fixed-clock";
265                         #clock-cells = <0>;
266                         clock-frequency = <1234>;
267                 };
268
269                 clk_fixed_factor: clk-fixed-factor {
270                         compatible = "fixed-factor-clock";
271                         #clock-cells = <0>;
272                         clock-div = <3>;
273                         clock-mult = <2>;
274                         clocks = <&clk_fixed>;
275                 };
276
277                 osc {
278                         compatible = "fixed-clock";
279                         #clock-cells = <0>;
280                         clock-frequency = <20000000>;
281                 };
282         };
283
284         clk_sandbox: clk-sbox {
285                 compatible = "sandbox,clk";
286                 #clock-cells = <1>;
287                 assigned-clocks = <&clk_sandbox 3>;
288                 assigned-clock-rates = <321>;
289         };
290
291         clk-test {
292                 compatible = "sandbox,clk-test";
293                 clocks = <&clk_fixed>,
294                          <&clk_sandbox 1>,
295                          <&clk_sandbox 0>,
296                          <&clk_sandbox 3>,
297                          <&clk_sandbox 2>;
298                 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
299         };
300
301         ccf: clk-ccf {
302                 compatible = "sandbox,clk-ccf";
303         };
304
305         eth@10002000 {
306                 compatible = "sandbox,eth";
307                 reg = <0x10002000 0x1000>;
308                 fake-host-hwaddr = [00 00 66 44 22 00];
309         };
310
311         eth_5: eth@10003000 {
312                 compatible = "sandbox,eth";
313                 reg = <0x10003000 0x1000>;
314                 fake-host-hwaddr = [00 00 66 44 22 11];
315         };
316
317         eth_3: sbe5 {
318                 compatible = "sandbox,eth";
319                 reg = <0x10005000 0x1000>;
320                 fake-host-hwaddr = [00 00 66 44 22 33];
321         };
322
323         eth@10004000 {
324                 compatible = "sandbox,eth";
325                 reg = <0x10004000 0x1000>;
326                 fake-host-hwaddr = [00 00 66 44 22 22];
327         };
328
329         firmware {
330                 sandbox_firmware: sandbox-firmware {
331                         compatible = "sandbox,firmware";
332                 };
333         };
334
335         pinctrl-gpio {
336                 compatible = "sandbox,pinctrl-gpio";
337
338                 gpio_a: base-gpios {
339                         compatible = "sandbox,gpio";
340                         gpio-controller;
341                         #gpio-cells = <1>;
342                         gpio-bank-name = "a";
343                         sandbox,gpio-count = <20>;
344                 };
345
346                 gpio_b: extra-gpios {
347                         compatible = "sandbox,gpio";
348                         gpio-controller;
349                         #gpio-cells = <5>;
350                         gpio-bank-name = "b";
351                         sandbox,gpio-count = <10>;
352                 };
353
354                 gpio_c: pinmux-gpios {
355                         compatible = "sandbox,gpio";
356                         gpio-controller;
357                         #gpio-cells = <2>;
358                         gpio-bank-name = "c";
359                         sandbox,gpio-count = <10>;
360                 };
361         };
362
363         i2c@0 {
364                 #address-cells = <1>;
365                 #size-cells = <0>;
366                 reg = <0 1>;
367                 compatible = "sandbox,i2c";
368                 clock-frequency = <100000>;
369                 eeprom@2c {
370                         reg = <0x2c>;
371                         compatible = "i2c-eeprom";
372                         sandbox,emul = <&emul_eeprom>;
373                 };
374
375                 rtc_0: rtc@43 {
376                         reg = <0x43>;
377                         compatible = "sandbox-rtc";
378                         sandbox,emul = <&emul0>;
379                 };
380
381                 rtc_1: rtc@61 {
382                         reg = <0x61>;
383                         compatible = "sandbox-rtc";
384                         sandbox,emul = <&emul1>;
385                 };
386
387                 i2c_emul: emul {
388                         reg = <0xff>;
389                         compatible = "sandbox,i2c-emul-parent";
390                         emul_eeprom: emul-eeprom {
391                                 compatible = "sandbox,i2c-eeprom";
392                                 sandbox,filename = "i2c.bin";
393                                 sandbox,size = <256>;
394                         };
395                         emul0: emul0 {
396                                 compatible = "sandbox,i2c-rtc";
397                         };
398                         emul1: emull {
399                                 compatible = "sandbox,i2c-rtc";
400                         };
401                 };
402
403                 sandbox_pmic: sandbox_pmic {
404                         reg = <0x40>;
405                         sandbox,emul = <&emul_pmic0>;
406                 };
407
408                 mc34708: pmic@41 {
409                         reg = <0x41>;
410                         sandbox,emul = <&emul_pmic1>;
411                 };
412         };
413
414         bootcount@0 {
415                 compatible = "u-boot,bootcount-rtc";
416                 rtc = <&rtc_1>;
417                 offset = <0x13>;
418         };
419
420         adc@0 {
421                 compatible = "sandbox,adc";
422                 vdd-supply = <&buck2>;
423                 vss-microvolts = <0>;
424         };
425
426         irq: irq {
427                 compatible = "sandbox,irq";
428                 interrupt-controller;
429                 #interrupt-cells = <2>;
430         };
431
432         lcd {
433                 u-boot,dm-pre-reloc;
434                 compatible = "sandbox,lcd-sdl";
435                 xres = <1366>;
436                 yres = <768>;
437         };
438
439         leds {
440                 compatible = "gpio-leds";
441
442                 iracibble {
443                         gpios = <&gpio_a 1 0>;
444                         label = "sandbox:red";
445                 };
446
447                 martinet {
448                         gpios = <&gpio_a 2 0>;
449                         label = "sandbox:green";
450                 };
451
452                 default_on {
453                         gpios = <&gpio_a 5 0>;
454                         label = "sandbox:default_on";
455                         default-state = "on";
456                 };
457
458                 default_off {
459                         gpios = <&gpio_a 6 0>;
460                         label = "sandbox:default_off";
461                         default-state = "off";
462                 };
463         };
464
465         mbox: mbox {
466                 compatible = "sandbox,mbox";
467                 #mbox-cells = <1>;
468         };
469
470         mbox-test {
471                 compatible = "sandbox,mbox-test";
472                 mboxes = <&mbox 100>, <&mbox 1>;
473                 mbox-names = "other", "test";
474         };
475
476         cpus {
477                 cpu-test1 {
478                         compatible = "sandbox,cpu_sandbox";
479                         u-boot,dm-pre-reloc;
480                 };
481
482                 cpu-test2 {
483                         compatible = "sandbox,cpu_sandbox";
484                         u-boot,dm-pre-reloc;
485                 };
486
487                 cpu-test3 {
488                         compatible = "sandbox,cpu_sandbox";
489                         u-boot,dm-pre-reloc;
490                 };
491         };
492
493         i2s: i2s {
494                 compatible = "sandbox,i2s";
495                 #sound-dai-cells = <1>;
496                 sandbox,silent; /* Don't emit sounds while testing */
497         };
498
499         nop-test_0 {
500                 compatible = "sandbox,nop_sandbox1";
501                 nop-test_1 {
502                         compatible = "sandbox,nop_sandbox2";
503                         bind = "True";
504                 };
505                 nop-test_2 {
506                         compatible = "sandbox,nop_sandbox2";
507                         bind = "False";
508                 };
509         };
510
511         misc-test {
512                 compatible = "sandbox,misc_sandbox";
513         };
514
515         mmc2 {
516                 compatible = "sandbox,mmc";
517         };
518
519         mmc1 {
520                 compatible = "sandbox,mmc";
521         };
522
523         mmc0 {
524                 compatible = "sandbox,mmc";
525         };
526
527         pch {
528                 compatible = "sandbox,pch";
529         };
530
531         pci0: pci@0 {
532                 compatible = "sandbox,pci";
533                 device_type = "pci";
534                 bus-range = <0x00 0xff>;
535                 #address-cells = <3>;
536                 #size-cells = <2>;
537                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
538                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
539                 pci@0,0 {
540                         compatible = "pci-generic";
541                         reg = <0x0000 0 0 0 0>;
542                         sandbox,emul = <&swap_case_emul0_0>;
543                 };
544                 pci@1,0 {
545                         compatible = "pci-generic";
546                         /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
547                         reg = <0x02000814 0 0 0 0
548                                0x01000810 0 0 0 0>;
549                         sandbox,emul = <&swap_case_emul0_1>;
550                 };
551                 p2sb-pci@2,0 {
552                         compatible = "sandbox,p2sb";
553                         reg = <0x02001010 0 0 0 0>;
554                         sandbox,emul = <&p2sb_emul>;
555
556                         adder {
557                                 intel,p2sb-port-id = <3>;
558                                 compatible = "sandbox,adder";
559                         };
560                 };
561                 pci@1e,0 {
562                         compatible = "sandbox,pmc";
563                         reg = <0xf000 0 0 0 0>;
564                         sandbox,emul = <&pmc_emul1e>;
565                         acpi-base = <0x400>;
566                         gpe0-dwx-mask = <0xf>;
567                         gpe0-dwx-shift-base = <4>;
568                         gpe0-dw = <6 7 9>;
569                         gpe0-sts = <0x20>;
570                         gpe0-en = <0x30>;
571                 };
572                 pci@1f,0 {
573                         compatible = "pci-generic";
574                         /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
575                         reg = <0x0100f810 0 0 0 0>;
576                         sandbox,emul = <&swap_case_emul0_1f>;
577                 };
578         };
579
580         pci-emul0 {
581                 compatible = "sandbox,pci-emul-parent";
582                 swap_case_emul0_0: emul0@0,0 {
583                         compatible = "sandbox,swap-case";
584                 };
585                 swap_case_emul0_1: emul0@1,0 {
586                         compatible = "sandbox,swap-case";
587                         use-ea;
588                 };
589                 swap_case_emul0_1f: emul0@1f,0 {
590                         compatible = "sandbox,swap-case";
591                 };
592                 p2sb_emul: emul@2,0 {
593                         compatible = "sandbox,p2sb-emul";
594                 };
595                 pmc_emul1e: emul@1e,0 {
596                         compatible = "sandbox,pmc-emul";
597                 };
598         };
599
600         pci1: pci@1 {
601                 compatible = "sandbox,pci";
602                 device_type = "pci";
603                 bus-range = <0x00 0xff>;
604                 #address-cells = <3>;
605                 #size-cells = <2>;
606                 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
607                                 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
608                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
609                                     0x0c 0x00 0x1234 0x5678
610                                     0x10 0x00 0x1234 0x5678>;
611                 pci@10,0 {
612                         reg = <0x8000 0 0 0 0>;
613                 };
614         };
615
616         pci2: pci@2 {
617                 compatible = "sandbox,pci";
618                 device_type = "pci";
619                 bus-range = <0x00 0xff>;
620                 #address-cells = <3>;
621                 #size-cells = <2>;
622                 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
623                                 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
624                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
625                 pci@1f,0 {
626                         compatible = "pci-generic";
627                         reg = <0xf800 0 0 0 0>;
628                         sandbox,emul = <&swap_case_emul2_1f>;
629                 };
630         };
631
632         pci-emul2 {
633                 compatible = "sandbox,pci-emul-parent";
634                 swap_case_emul2_1f: emul2@1f,0 {
635                         compatible = "sandbox,swap-case";
636                 };
637         };
638
639         pci_ep: pci_ep {
640                 compatible = "sandbox,pci_ep";
641         };
642
643         probing {
644                 compatible = "simple-bus";
645                 test1 {
646                         compatible = "denx,u-boot-probe-test";
647                 };
648
649                 test2 {
650                         compatible = "denx,u-boot-probe-test";
651                 };
652
653                 test3 {
654                         compatible = "denx,u-boot-probe-test";
655                 };
656
657                 test4 {
658                         compatible = "denx,u-boot-probe-test";
659                         first-syscon = <&syscon0>;
660                         second-sys-ctrl = <&another_system_controller>;
661                         third-syscon = <&syscon2>;
662                 };
663         };
664
665         pwrdom: power-domain {
666                 compatible = "sandbox,power-domain";
667                 #power-domain-cells = <1>;
668         };
669
670         power-domain-test {
671                 compatible = "sandbox,power-domain-test";
672                 power-domains = <&pwrdom 2>;
673         };
674
675         pwm: pwm {
676                 compatible = "sandbox,pwm";
677                 #pwm-cells = <2>;
678         };
679
680         pwm2 {
681                 compatible = "sandbox,pwm";
682                 #pwm-cells = <2>;
683         };
684
685         ram {
686                 compatible = "sandbox,ram";
687         };
688
689         reset@0 {
690                 compatible = "sandbox,warm-reset";
691         };
692
693         reset@1 {
694                 compatible = "sandbox,reset";
695         };
696
697         resetc: reset-ctl {
698                 compatible = "sandbox,reset-ctl";
699                 #reset-cells = <1>;
700         };
701
702         reset-ctl-test {
703                 compatible = "sandbox,reset-ctl-test";
704                 resets = <&resetc 100>, <&resetc 2>;
705                 reset-names = "other", "test";
706         };
707
708         rng {
709                 compatible = "sandbox,sandbox-rng";
710         };
711
712         rproc_1: rproc@1 {
713                 compatible = "sandbox,test-processor";
714                 remoteproc-name = "remoteproc-test-dev1";
715         };
716
717         rproc_2: rproc@2 {
718                 compatible = "sandbox,test-processor";
719                 internal-memory-mapped;
720                 remoteproc-name = "remoteproc-test-dev2";
721         };
722
723         panel {
724                 compatible = "simple-panel";
725                 backlight = <&backlight 0 100>;
726         };
727
728         smem@0 {
729                 compatible = "sandbox,smem";
730         };
731
732         sound {
733                 compatible = "sandbox,sound";
734                 cpu {
735                         sound-dai = <&i2s 0>;
736                 };
737
738                 codec {
739                         sound-dai = <&audio 0>;
740                 };
741         };
742
743         spi@0 {
744                 #address-cells = <1>;
745                 #size-cells = <0>;
746                 reg = <0 1>;
747                 compatible = "sandbox,spi";
748                 cs-gpios = <0>, <&gpio_a 0>;
749                 spi.bin@0 {
750                         reg = <0>;
751                         compatible = "spansion,m25p16", "jedec,spi-nor";
752                         spi-max-frequency = <40000000>;
753                         sandbox,filename = "spi.bin";
754                 };
755         };
756
757         syscon0: syscon@0 {
758                 compatible = "sandbox,syscon0";
759                 reg = <0x10 16>;
760         };
761
762         another_system_controller: syscon@1 {
763                 compatible = "sandbox,syscon1";
764                 reg = <0x20 5
765                         0x28 6
766                         0x30 7
767                         0x38 8>;
768         };
769
770         syscon2: syscon@2 {
771                 compatible = "simple-mfd", "syscon";
772                 reg = <0x40 5
773                         0x48 6
774                         0x50 7
775                         0x58 8>;
776         };
777
778         timer {
779                 compatible = "sandbox,timer";
780                 clock-frequency = <1000000>;
781         };
782
783         tpm2 {
784                 compatible = "sandbox,tpm2";
785         };
786
787         uart0: serial {
788                 compatible = "sandbox,serial";
789                 u-boot,dm-pre-reloc;
790         };
791
792         usb_0: usb@0 {
793                 compatible = "sandbox,usb";
794                 status = "disabled";
795                 hub {
796                         compatible = "sandbox,usb-hub";
797                         #address-cells = <1>;
798                         #size-cells = <0>;
799                         flash-stick {
800                                 reg = <0>;
801                                 compatible = "sandbox,usb-flash";
802                         };
803                 };
804         };
805
806         usb_1: usb@1 {
807                 compatible = "sandbox,usb";
808                 hub {
809                         compatible = "usb-hub";
810                         usb,device-class = <9>;
811                         hub-emul {
812                                 compatible = "sandbox,usb-hub";
813                                 #address-cells = <1>;
814                                 #size-cells = <0>;
815                                 flash-stick@0 {
816                                         reg = <0>;
817                                         compatible = "sandbox,usb-flash";
818                                         sandbox,filepath = "testflash.bin";
819                                 };
820
821                                 flash-stick@1 {
822                                         reg = <1>;
823                                         compatible = "sandbox,usb-flash";
824                                         sandbox,filepath = "testflash1.bin";
825                                 };
826
827                                 flash-stick@2 {
828                                         reg = <2>;
829                                         compatible = "sandbox,usb-flash";
830                                         sandbox,filepath = "testflash2.bin";
831                                 };
832
833                                 keyb@3 {
834                                         reg = <3>;
835                                         compatible = "sandbox,usb-keyb";
836                                 };
837
838                         };
839                 };
840         };
841
842         usb_2: usb@2 {
843                 compatible = "sandbox,usb";
844                 status = "disabled";
845         };
846
847         spmi: spmi@0 {
848                 compatible = "sandbox,spmi";
849                 #address-cells = <0x1>;
850                 #size-cells = <0x1>;
851                 ranges;
852                 pm8916@0 {
853                         compatible = "qcom,spmi-pmic";
854                         reg = <0x0 0x1>;
855                         #address-cells = <0x1>;
856                         #size-cells = <0x1>;
857                         ranges;
858
859                         spmi_gpios: gpios@c000 {
860                                 compatible = "qcom,pm8916-gpio";
861                                 reg = <0xc000 0x400>;
862                                 gpio-controller;
863                                 gpio-count = <4>;
864                                 #gpio-cells = <2>;
865                                 gpio-bank-name="spmi";
866                         };
867                 };
868         };
869
870         wdt0: wdt@0 {
871                 compatible = "sandbox,wdt";
872         };
873
874         axi: axi@0 {
875                 compatible = "sandbox,axi";
876                 #address-cells = <0x1>;
877                 #size-cells = <0x1>;
878                 store@0 {
879                         compatible = "sandbox,sandbox_store";
880                         reg = <0x0 0x400>;
881                 };
882         };
883
884         chosen {
885                 #address-cells = <1>;
886                 #size-cells = <1>;
887                 setting = "sunrise ohoka";
888                 other-node = "/some-bus/c-test@5";
889                 int-values = <0x1937 72993>;
890                 chosen-test {
891                         compatible = "denx,u-boot-fdt-test";
892                         reg = <9 1>;
893                 };
894         };
895
896         translation-test@8000 {
897                 compatible = "simple-bus";
898                 reg = <0x8000 0x4000>;
899
900                 #address-cells = <0x2>;
901                 #size-cells = <0x1>;
902
903                 ranges = <0 0x0 0x8000 0x1000
904                           1 0x100 0x9000 0x1000
905                           2 0x200 0xA000 0x1000
906                           3 0x300 0xB000 0x1000
907                          >;
908
909                 dma-ranges = <0 0x000 0x10000000 0x1000
910                               1 0x100 0x20000000 0x1000
911                              >;
912
913                 dev@0,0 {
914                         compatible = "denx,u-boot-fdt-dummy";
915                         reg = <0 0x0 0x1000>;
916                         reg-names = "sandbox-dummy-0";
917                 };
918
919                 dev@1,100 {
920                         compatible = "denx,u-boot-fdt-dummy";
921                         reg = <1 0x100 0x1000>;
922
923                 };
924
925                 dev@2,200 {
926                         compatible = "denx,u-boot-fdt-dummy";
927                         reg = <2 0x200 0x1000>;
928                 };
929
930
931                 noxlatebus@3,300 {
932                         compatible = "simple-bus";
933                         reg = <3 0x300 0x1000>;
934
935                         #address-cells = <0x1>;
936                         #size-cells = <0x0>;
937
938                         dev@42 {
939                                 compatible = "denx,u-boot-fdt-dummy";
940                                 reg = <0x42>;
941                         };
942                 };
943         };
944
945         osd {
946                 compatible = "sandbox,sandbox_osd";
947         };
948
949         board {
950                 compatible = "sandbox,board_sandbox";
951         };
952
953         sandbox_tee {
954                 compatible = "sandbox,tee";
955         };
956
957         sandbox_virtio1 {
958                 compatible = "sandbox,virtio1";
959         };
960
961         sandbox_virtio2 {
962                 compatible = "sandbox,virtio2";
963         };
964
965         pinctrl {
966                 compatible = "sandbox,pinctrl";
967
968                 pinctrl-names = "default";
969                 pinctrl-0 = <&gpios>;
970
971                 gpios: gpios {
972                         gpio0 {
973                                 pins = "GPIO0";
974                                 bias-pull-up;
975                                 input-disable;
976                         };
977                         gpio1 {
978                                 pins = "GPIO1";
979                                 output-high;
980                                 drive-open-drain;
981                         };
982                         gpio2 {
983                                 pins = "GPIO2";
984                                 bias-pull-down;
985                                 input-enable;
986                         };
987                         gpio3 {
988                                 pins = "GPIO3";
989                                 bias-disable;
990                         };
991                 };
992         };
993
994         hwspinlock@0 {
995                 compatible = "sandbox,hwspinlock";
996         };
997
998         dma: dma {
999                 compatible = "sandbox,dma";
1000                 #dma-cells = <1>;
1001
1002                 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1003                 dma-names = "m2m", "tx0", "rx0";
1004         };
1005
1006         /*
1007          * keep mdio-mux ahead of mdio so that the mux is removed first at the
1008          * end of the test.  If parent mdio is removed first, clean-up of the
1009          * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1010          * active at the end of the test.  That it turn doesn't allow the mdio
1011          * class to be destroyed, triggering an error.
1012          */
1013         mdio-mux-test {
1014                 compatible = "sandbox,mdio-mux";
1015                 #address-cells = <1>;
1016                 #size-cells = <0>;
1017                 mdio-parent-bus = <&mdio>;
1018
1019                 mdio-ch-test@0 {
1020                         reg = <0>;
1021                 };
1022                 mdio-ch-test@1 {
1023                         reg = <1>;
1024                 };
1025         };
1026
1027         mdio: mdio-test {
1028                 compatible = "sandbox,mdio";
1029         };
1030 };
1031
1032 #include "sandbox_pmic.dtsi"