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