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