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