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