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