]> Git Repo - J-u-boot.git/blob - arch/sandbox/dts/test.dts
dm: core: ofnode: Add ofnode_read_bootscript_address()
[J-u-boot.git] / arch / sandbox / dts / test.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Devicetree file for running sandbox tests
4  *
5  * This includes lots of extra devices used by various tests.
6  *
7  * Note that SPL use the main sandbox.dts file
8  */
9
10 /dts-v1/;
11
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/gpio/sandbox-gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/pinctrl/sandbox-pinmux.h>
16 #include <dt-bindings/mux/mux.h>
17
18 / {
19         model = "sandbox";
20         compatible = "sandbox";
21         #address-cells = <1>;
22         #size-cells = <1>;
23
24         aliases {
25                 console = &uart0;
26                 ethernet0 = "/eth@10002000";
27                 ethernet2 = &swp_0;
28                 ethernet3 = &eth_3;
29                 ethernet4 = &dsa_eth0;
30                 ethernet5 = &eth_5;
31                 ethernet6 = "/eth@10004000";
32                 ethernet7 = &swp_1;
33                 ethernet8 = &phy_eth0;
34                 gpio1 = &gpio_a;
35                 gpio2 = &gpio_b;
36                 gpio3 = &gpio_c;
37                 i2c0 = "/i2c@0";
38                 mmc0 = "/mmc0";
39                 mmc1 = "/mmc1";
40                 mmc2 = "/mmc2";
41                 mmc3 = "/mmc3";
42                 mmc4 = "/mmc4";
43                 mmc5 = "/mmc5";
44                 pci0 = &pci0;
45                 pci1 = &pci1;
46                 pci2 = &pci2;
47                 remoteproc0 = &rproc_1;
48                 remoteproc1 = &rproc_2;
49                 rtc0 = &rtc_0;
50                 rtc1 = &rtc_1;
51                 spi0 = "/spi@0";
52                 testfdt6 = "/e-test";
53                 testbus3 = "/some-bus";
54                 testfdt0 = "/some-bus/c-test@0";
55                 testfdt12 = "/some-bus/c-test@1";
56                 testfdt3 = "/b-test";
57                 testfdt5 = "/some-bus/c-test@5";
58                 testfdt8 = "/a-test";
59                 testfdtm1 = &testfdtm1;
60                 fdt-dummy0 = "/translation-test@8000/dev@0,0";
61                 fdt-dummy1 = "/translation-test@8000/dev@1,100";
62                 fdt-dummy2 = "/translation-test@8000/dev@2,200";
63                 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
64                 usb0 = &usb_0;
65                 usb1 = &usb_1;
66                 usb2 = &usb_2;
67                 axi0 = &axi;
68                 osd0 = "/osd";
69         };
70
71         binman: binman {
72         };
73
74         config {
75                 testing-bool;
76                 testing-int = <123>;
77                 testing-str = "testing";
78                 environment {
79                         from_fdt = "yes";
80                         fdt_env_path = "";
81                 };
82         };
83
84         options {
85                 u-boot {
86                         compatible = "u-boot,config";
87                         bootscr-ram-offset = /bits/ 64 <0x12345678>;
88                 };
89         };
90
91         bootstd {
92                 bootph-verify;
93                 compatible = "u-boot,boot-std";
94
95                 filename-prefixes = "/", "/boot/";
96                 bootdev-order = "mmc2", "mmc1";
97
98                 extlinux {
99                         compatible = "u-boot,extlinux";
100                 };
101
102                 efi {
103                         compatible = "u-boot,distro-efi";
104                 };
105
106                 theme {
107                         font-size = <30>;
108                         menu-inset = <3>;
109                         menuitem-gap-y = <1>;
110                 };
111
112                 cedit-theme {
113                         font-size = <30>;
114                         menu-inset = <3>;
115                         menuitem-gap-y = <1>;
116                 };
117
118                 /*
119                  * This is used for the VBE OS-request tests. A FAT filesystem
120                  * created in a partition with the VBE information appearing
121                  * before the parititon starts
122                  */
123                 firmware0 {
124                         bootph-verify;
125                         compatible = "fwupd,vbe-simple";
126                         storage = "mmc1";
127                         skip-offset = <0x200>;
128                         area-start = <0x400>;
129                         area-size = <0x1000>;
130                         state-offset = <0x400>;
131                         state-size = <0x40>;
132                         version-offset = <0x800>;
133                         version-size = <0x100>;
134                 };
135
136                 /*
137                  * This is used for the VBE VPL tests. The MMC device holds the
138                  * binman image.bin file. The test progresses through each phase
139                  * of U-Boot, loading each in turn from MMC.
140                  *
141                  * Note that the test enables this node (and mmc3) before
142                  * running U-Boot
143                  */
144                 firmware1 {
145                         bootph-verify;
146                         status = "disabled";
147                         compatible = "fwupd,vbe-simple";
148                         storage = "mmc3";
149                         skip-offset = <0x800000>;
150                         area-start = <0>;
151                         area-size = <0xe00000>;
152                         state-offset = <0xdffc00>;
153                         state-size = <0x40>;
154                         version-offset = <0xdffe00>;
155                         version-size = <0x100>;
156                 };
157         };
158
159         cedit: cedit {
160         };
161
162         fuzzing-engine {
163                 compatible = "sandbox,fuzzing-engine";
164         };
165
166         reboot-mode0 {
167                 compatible = "reboot-mode-gpio";
168                 gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>;
169                 u-boot,env-variable = "bootstatus";
170                 mode-test = <0x01>;
171                 mode-download = <0x03>;
172         };
173
174         reboot_mode1: reboot-mode@14 {
175                 compatible = "reboot-mode-rtc";
176                 rtc = <&rtc_0>;
177                 reg = <0x30 4>;
178                 u-boot,env-variable = "bootstatus";
179                 big-endian;
180                 mode-test = <0x21969147>;
181                 mode-download = <0x51939147>;
182         };
183
184         audio: audio-codec {
185                 compatible = "sandbox,audio-codec";
186                 #sound-dai-cells = <1>;
187         };
188
189         buttons {
190                 compatible = "gpio-keys";
191
192                 btn1 {
193                         gpios = <&gpio_a 3 0>;
194                         label = "button1";
195                         linux,code = <BTN_1>;
196                 };
197
198                 btn2 {
199                         gpios = <&gpio_a 4 0>;
200                         label = "button2";
201                         linux,code = <BTN_2>;
202                 };
203         };
204
205         buttons2 {
206                 compatible = "adc-keys";
207                 io-channels = <&adc 3>;
208                 keyup-threshold-microvolt = <3000000>;
209
210                 button-up {
211                         label = "button3";
212                         linux,code = <KEY_F3>;
213                         press-threshold-microvolt = <1500000>;
214                 };
215
216                 button-down {
217                         label = "button4";
218                         linux,code = <KEY_F4>;
219                         press-threshold-microvolt = <1000000>;
220                 };
221
222                 button-enter {
223                         label = "button5";
224                         linux,code = <KEY_F5>;
225                         press-threshold-microvolt = <500000>;
226                 };
227         };
228
229         cros_ec: cros-ec {
230                 reg = <0 0>;
231                 compatible = "google,cros-ec-sandbox";
232
233                 /*
234                  * This describes the flash memory within the EC. Note
235                  * that the STM32L flash erases to 0, not 0xff.
236                  */
237                 flash {
238                         image-pos = <0x08000000>;
239                         size = <0x20000>;
240                         erase-value = <0>;
241
242                         /* Information for sandbox */
243                         ro {
244                                 image-pos = <0>;
245                                 size = <0xf000>;
246                         };
247                         wp-ro {
248                                 image-pos = <0xf000>;
249                                 size = <0x1000>;
250                                 used = <0x884>;
251                                 compress = "lz4";
252                                 uncomp-size = <0xcf8>;
253                                 hash {
254                                         algo = "sha256";
255                                         value = [00 01 02 03 04 05 06 07
256                                                 08 09 0a 0b 0c 0d 0e 0f
257                                                 10 11 12 13 14 15 16 17
258                                                 18 19 1a 1b 1c 1d 1e 1f];
259                                 };
260                         };
261                         rw {
262                                 image-pos = <0x10000>;
263                                 size = <0x10000>;
264                         };
265                 };
266
267                 cros_ec_pwm: cros-ec-pwm {
268                         compatible = "google,cros-ec-pwm";
269                         #pwm-cells = <1>;
270                 };
271
272         };
273
274         dsi_host: dsi_host {
275                 compatible = "sandbox,dsi-host";
276         };
277
278         a-test {
279                 reg = <0 1>;
280                 compatible = "denx,u-boot-fdt-test";
281                 ping-expect = <0>;
282                 ping-add = <0>;
283                 bootph-all;
284                 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
285                         <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
286                         <0>, <&gpio_a 12>;
287                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
288                         <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
289                         <&gpio_b 7 GPIO_IN 3 2 1>,
290                         <&gpio_b 8 GPIO_OUT 3 2 1>,
291                         <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
292                 test3-gpios =
293                         <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
294                         <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
295                         <&gpio_c 2 GPIO_OUT>,
296                         <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
297                         <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
298                         <&gpio_c 5 GPIO_IN>,
299                         <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
300                         <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
301                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
302                 test5-gpios = <&gpio_a 19>;
303
304                 bool-value;
305                 int8-value = /bits/ 8 <0x12>;
306                 int16-value = /bits/ 16 <0x1234>;
307                 int-value = <1234>;
308                 uint-value = <(-1234)>;
309                 int64-value = /bits/ 64 <0x1111222233334444>;
310                 int-array = <5678 9123 4567>;
311                 int64-array = /bits/ 64 <0x1111222233334444 0x4444333322221111>;
312                 str-value = "test string";
313                 interrupts-extended = <&irq 3 0>;
314                 acpi,name = "GHIJ";
315                 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
316
317                 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
318                                <&muxcontroller0 2>, <&muxcontroller0 3>,
319                                <&muxcontroller1>;
320                 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
321                 mux-syscon = <&syscon3>;
322                 display-timings {
323                         timing0: 240x320 {
324                                 clock-frequency = <6500000>;
325                                 hactive = <240>;
326                                 vactive = <320>;
327                                 hfront-porch = <6>;
328                                 hback-porch = <7>;
329                                 hsync-len = <1>;
330                                 vback-porch = <5>;
331                                 vfront-porch = <8>;
332                                 vsync-len = <2>;
333                                 hsync-active = <1>;
334                                 vsync-active = <0>;
335                                 de-active = <1>;
336                                 pixelclk-active = <1>;
337                                 interlaced;
338                                 doublescan;
339                                 doubleclk;
340                         };
341                         timing1: 480x800 {
342                                 clock-frequency = <9000000>;
343                                 hactive = <480>;
344                                 vactive = <800>;
345                                 hfront-porch = <10>;
346                                 hback-porch = <59>;
347                                 hsync-len = <12>;
348                                 vback-porch = <15>;
349                                 vfront-porch = <17>;
350                                 vsync-len = <16>;
351                                 hsync-active = <0>;
352                                 vsync-active = <1>;
353                                 de-active = <0>;
354                                 pixelclk-active = <0>;
355                         };
356                         timing2: 800x480 {
357                                 clock-frequency = <33500000>;
358                                 hactive = <800>;
359                                 vactive = <480>;
360                                 hback-porch = <89>;
361                                 hfront-porch = <164>;
362                                 vback-porch = <23>;
363                                 vfront-porch = <10>;
364                                 hsync-len = <11>;
365                                 vsync-len = <13>;
366                         };
367                 };
368                 panel-timing {
369                         clock-frequency = <6500000>;
370                         hactive = <240>;
371                         vactive = <320>;
372                         hfront-porch = <6>;
373                         hback-porch = <7>;
374                         hsync-len = <1>;
375                         vback-porch = <5>;
376                         vfront-porch = <8>;
377                         vsync-len = <2>;
378                         hsync-active = <1>;
379                         vsync-active = <0>;
380                         de-active = <1>;
381                         pixelclk-active = <1>;
382                         interlaced;
383                         doublescan;
384                         doubleclk;
385                 };
386         };
387
388         junk {
389                 reg = <1 1>;
390                 compatible = "not,compatible";
391         };
392
393         no-compatible {
394                 reg = <2 1>;
395         };
396
397         backlight: backlight {
398                 compatible = "pwm-backlight";
399                 enable-gpios = <&gpio_a 1>;
400                 power-supply = <&ldo_1>;
401                 pwms = <&pwm 0 1000>;
402                 default-brightness-level = <5>;
403                 brightness-levels = <0 16 32 64 128 170 202 234 255>;
404         };
405
406         bind-test {
407                 compatible = "simple-bus";
408                 bind-test-child1 {
409                         compatible = "sandbox,phy";
410                         #phy-cells = <1>;
411                 };
412
413                 bind-test-child2 {
414                         compatible = "simple-bus";
415                 };
416         };
417
418         b-test {
419                 reg = <3 1>;
420                 compatible = "denx,u-boot-fdt-test";
421                 ping-expect = <3>;
422                 ping-add = <3>;
423
424                 mux-controls = <&muxcontroller0 0>;
425                 mux-control-names = "mux0";
426         };
427
428         phy_provider0: gen_phy@0 {
429                 compatible = "sandbox,phy";
430                 #phy-cells = <1>;
431         };
432
433         phy_provider1: gen_phy@1 {
434                 compatible = "sandbox,phy";
435                 #phy-cells = <0>;
436                 broken;
437         };
438
439         phy_provider2: gen_phy@2 {
440                 compatible = "sandbox,phy";
441                 #phy-cells = <0>;
442         };
443
444         phy_provider3: gen_phy@3 {
445                 compatible = "sandbox,phy";
446                 #phy-cells = <2>;
447         };
448
449         gen_phy_user: gen_phy_user {
450                 compatible = "simple-bus";
451                 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
452                 phy-names = "phy1", "phy2", "phy3";
453         };
454
455         gen_phy_user1: gen_phy_user1 {
456                 compatible = "simple-bus";
457                 phys = <&phy_provider0 0>, <&phy_provider2>;
458                 phy-names = "phy1", "phy2";
459         };
460
461         gen_phy_user2: gen_phy_user2 {
462                 compatible = "simple-bus";
463                 phys = <&phy_provider3 0 0>;
464                 phy-names = "phy1";
465         };
466
467         some-bus {
468                 #address-cells = <1>;
469                 #size-cells = <0>;
470                 compatible = "denx,u-boot-test-bus";
471                 reg = <3 1>;
472                 ping-expect = <4>;
473                 ping-add = <4>;
474                 c-test@5 {
475                         compatible = "denx,u-boot-fdt-test";
476                         reg = <5>;
477                         ping-expect = <5>;
478                         ping-add = <5>;
479                 };
480                 c-test@0 {
481                         compatible = "denx,u-boot-fdt-test";
482                         reg = <0>;
483                         ping-expect = <6>;
484                         ping-add = <6>;
485                 };
486                 c-test@1 {
487                         compatible = "denx,u-boot-fdt-test";
488                         reg = <1>;
489                         ping-expect = <7>;
490                         ping-add = <7>;
491                 };
492         };
493
494         d-test {
495                 reg = <3 1>;
496                 ping-expect = <6>;
497                 ping-add = <6>;
498                 compatible = "google,another-fdt-test";
499         };
500
501         e-test {
502                 reg = <3 1>;
503                 ping-expect = <6>;
504                 ping-add = <6>;
505                 compatible = "google,another-fdt-test";
506         };
507
508         f-test {
509                 compatible = "denx,u-boot-fdt-test";
510         };
511
512         g-test {
513                 compatible = "denx,u-boot-fdt-test";
514         };
515
516         h-test {
517                 compatible = "denx,u-boot-fdt-test1";
518         };
519
520         i-test {
521                 compatible = "mediatek,u-boot-fdt-test";
522                 #address-cells = <1>;
523                 #size-cells = <0>;
524
525                 subnode@0 {
526                         reg = <0>;
527                 };
528
529                 subnode@1 {
530                         reg = <1>;
531                 };
532
533                 subnode@2 {
534                         reg = <2>;
535                 };
536         };
537
538         devres-test {
539                 compatible = "denx,u-boot-devres-test";
540         };
541
542         another-test {
543                 reg = <0 2>;
544                 compatible = "denx,u-boot-fdt-test";
545                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
546                 test5-gpios = <&gpio_a 19>;
547         };
548
549         mmio-bus@0 {
550                 #address-cells = <1>;
551                 #size-cells = <1>;
552                 compatible = "denx,u-boot-test-bus";
553                 dma-ranges = <0x10000000 0x00000000 0x00040000>;
554
555                 subnode@0 {
556                         compatible = "denx,u-boot-fdt-test";
557                 };
558         };
559
560         mmio-bus@1 {
561                 #address-cells = <1>;
562                 #size-cells = <1>;
563                 compatible = "denx,u-boot-test-bus";
564
565                 subnode@0 {
566                         compatible = "denx,u-boot-fdt-test";
567                 };
568         };
569
570         acpi_test1: acpi-test {
571                 compatible = "denx,u-boot-acpi-test";
572                 acpi-ssdt-test-data = "ab";
573                 acpi-dsdt-test-data = "hi";
574                 child {
575                         compatible = "denx,u-boot-acpi-test";
576                 };
577         };
578
579         acpi_test2: acpi-test2 {
580                 compatible = "denx,u-boot-acpi-test";
581                 acpi-ssdt-test-data = "cd";
582                 acpi-dsdt-test-data = "jk";
583         };
584
585         clocks {
586                 clk_fixed: clk-fixed {
587                         compatible = "fixed-clock";
588                         #clock-cells = <0>;
589                         clock-frequency = <1234>;
590                 };
591
592                 clk_fixed_factor: clk-fixed-factor {
593                         compatible = "fixed-factor-clock";
594                         #clock-cells = <0>;
595                         clock-div = <3>;
596                         clock-mult = <2>;
597                         clocks = <&clk_fixed>;
598                 };
599
600                 osc {
601                         compatible = "fixed-clock";
602                         #clock-cells = <0>;
603                         clock-frequency = <20000000>;
604                 };
605         };
606
607         clk_sandbox: clk-sbox {
608                 compatible = "sandbox,clk";
609                 #clock-cells = <1>;
610                 assigned-clocks = <&clk_sandbox 3>;
611                 assigned-clock-rates = <321>;
612         };
613
614         clk-test {
615                 compatible = "sandbox,clk-test";
616                 clocks = <&clk_fixed>,
617                          <&clk_sandbox 1>,
618                          <&clk_sandbox 0>,
619                          <&clk_sandbox 3>,
620                          <&clk_sandbox 2>;
621                 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
622         };
623
624         clk-test2 {
625                 compatible = "sandbox,clk-test";
626                 assigned-clock-rates = <321>;
627         };
628
629         clk-test3 {
630                 compatible = "sandbox,clk-test";
631                 assigned-clocks = <&clk_sandbox 1>;
632         };
633
634         clk-test4 {
635                 compatible = "sandbox,clk-test";
636                 assigned-clock-rates = <654>, <321>;
637                 assigned-clocks = <&clk_sandbox 1>;
638         };
639
640         ccf: clk-ccf {
641                 compatible = "sandbox,clk-ccf";
642         };
643
644         efi-media {
645                 compatible = "sandbox,efi-media";
646         };
647
648         eth@10002000 {
649                 compatible = "sandbox,eth";
650                 reg = <0x10002000 0x1000>;
651         };
652
653         eth_5: eth@10003000 {
654                 compatible = "sandbox,eth";
655                 reg = <0x10003000 0x1000>;
656                 nvmem-cells = <&eth5_addr>;
657                 nvmem-cell-names = "mac-address";
658         };
659
660         eth_3: sbe5 {
661                 compatible = "sandbox,eth";
662                 reg = <0x10005000 0x1000>;
663                 nvmem-cells = <&eth3_addr>;
664                 nvmem-cell-names = "mac-address";
665         };
666
667         eth@10004000 {
668                 compatible = "sandbox,eth";
669                 reg = <0x10004000 0x1000>;
670         };
671
672         phy_eth0: phy-test-eth {
673                 compatible = "sandbox,eth";
674                 reg = <0x10007000 0x1000>;
675                 mac-address = [ 02 00 11 22 33 49 ];
676                 phy-handle = <&ethphy1>;
677                 phy-mode = "2500base-x";
678         };
679
680         dsa_eth0: dsa-test-eth {
681                 compatible = "sandbox,eth";
682                 reg = <0x10006000 0x1000>;
683                 nvmem-cells = <&eth4_addr>;
684                 nvmem-cell-names = "mac-address";
685         };
686
687         dsa-test {
688                 compatible = "sandbox,dsa";
689
690                 ports {
691                         #address-cells = <1>;
692                         #size-cells = <0>;
693                         swp_0: port@0 {
694                                 reg = <0>;
695                                 label = "lan0";
696                                 phy-mode = "rgmii-rxid";
697
698                                 fixed-link {
699                                         speed = <100>;
700                                         full-duplex;
701                                 };
702                         };
703
704                         swp_1: port@1 {
705                                 reg = <1>;
706                                 label = "lan1";
707                                 phy-mode = "rgmii-txid";
708                                 fixed-link = <0 1 100 0 0>;
709                         };
710
711                         port@2 {
712                                 reg = <2>;
713                                 ethernet = <&dsa_eth0>;
714
715                                 fixed-link {
716                                         speed = <1000>;
717                                         full-duplex;
718                                 };
719                         };
720                 };
721         };
722
723         firmware {
724                 sandbox_firmware: sandbox-firmware {
725                         compatible = "sandbox,firmware";
726                 };
727
728                 scmi {
729                         compatible = "sandbox,scmi-agent";
730                         #address-cells = <1>;
731                         #size-cells = <0>;
732
733                         protocol@10 {
734                                 reg = <0x10>;
735                         };
736
737                         clk_scmi: protocol@14 {
738                                 reg = <0x14>;
739                                 #clock-cells = <1>;
740                         };
741
742                         reset_scmi: protocol@16 {
743                                 reg = <0x16>;
744                                 #reset-cells = <1>;
745                         };
746
747                         protocol@17 {
748                                 reg = <0x17>;
749
750                                 regulators {
751                                         #address-cells = <1>;
752                                         #size-cells = <0>;
753
754                                         regul0_scmi: reg@0 {
755                                                 reg = <0>;
756                                                 regulator-name = "sandbox-voltd0";
757                                                 regulator-min-microvolt = <1100000>;
758                                                 regulator-max-microvolt = <3300000>;
759                                         };
760                                         regul1_scmi: reg@1 {
761                                                 reg = <0x1>;
762                                                 regulator-name = "sandbox-voltd1";
763                                                 regulator-min-microvolt = <1800000>;
764                                         };
765                                 };
766                         };
767                 };
768         };
769
770         fpga {
771                 compatible = "sandbox,fpga";
772         };
773
774         pinctrl-gpio {
775                 compatible = "sandbox,pinctrl-gpio";
776
777                 gpio_a: base-gpios {
778                         compatible = "sandbox,gpio";
779                         gpio-controller;
780                         #gpio-cells = <1>;
781                         gpio-bank-name = "a";
782                         sandbox,gpio-count = <20>;
783                         hog_input_active_low {
784                                 gpio-hog;
785                                 input;
786                                 gpios = <10 GPIO_ACTIVE_LOW>;
787                         };
788                         hog_input_active_high {
789                                 gpio-hog;
790                                 input;
791                                 gpios = <11 GPIO_ACTIVE_HIGH>;
792                         };
793                         hog_output_low {
794                                 gpio-hog;
795                                 output-low;
796                                 gpios = <12 GPIO_ACTIVE_HIGH>;
797                         };
798                         hog_output_high {
799                                 gpio-hog;
800                                 output-high;
801                                 gpios = <13 GPIO_ACTIVE_HIGH>;
802                         };
803                 };
804
805                 gpio_b: extra-gpios {
806                         compatible = "sandbox,gpio";
807                         gpio-controller;
808                         #gpio-cells = <5>;
809                         gpio-bank-name = "b";
810                         sandbox,gpio-count = <10>;
811                 };
812
813                 gpio_c: pinmux-gpios {
814                         compatible = "sandbox,gpio";
815                         gpio-controller;
816                         #gpio-cells = <2>;
817                         gpio-bank-name = "c";
818                         sandbox,gpio-count = <10>;
819                 };
820         };
821
822         i2c@0 {
823                 #address-cells = <1>;
824                 #size-cells = <0>;
825                 reg = <0 1>;
826                 compatible = "sandbox,i2c";
827                 clock-frequency = <100000>;
828                 pinctrl-names = "default";
829                 pinctrl-0 = <&pinmux_i2c0_pins>;
830
831                 eeprom@2c {
832                         #address-cells = <1>;
833                         #size-cells = <1>;
834                         reg = <0x2c>;
835                         compatible = "i2c-eeprom";
836                         sandbox,emul = <&emul_eeprom>;
837                         partitions {
838                                 compatible = "fixed-partitions";
839                                 #address-cells = <1>;
840                                 #size-cells = <1>;
841                                 bootcount_i2c: bootcount@10 {
842                                         reg = <10 2>;
843                                 };
844                         };
845
846                         eth3_addr: mac-address@24 {
847                                 reg = <24 6>;
848                         };
849                 };
850
851                 rtc_0: rtc@43 {
852                         #address-cells = <1>;
853                         #size-cells = <1>;
854                         reg = <0x43>;
855                         compatible = "sandbox-rtc";
856                         sandbox,emul = <&emul0>;
857
858                         eth4_addr: mac-address@40 {
859                                 reg = <0x40 6>;
860                         };
861                 };
862
863                 rtc_1: rtc@61 {
864                         reg = <0x61>;
865                         compatible = "sandbox-rtc";
866                         sandbox,emul = <&emul1>;
867                 };
868
869                 i2c_emul: emul {
870                         reg = <0xff>;
871                         compatible = "sandbox,i2c-emul-parent";
872                         emul_eeprom: emul-eeprom {
873                                 compatible = "sandbox,i2c-eeprom";
874                                 sandbox,filename = "i2c.bin";
875                                 sandbox,size = <256>;
876                         };
877                         emul0: emul0 {
878                                 compatible = "sandbox,i2c-rtc-emul";
879                         };
880                         emul1: emull {
881                                 compatible = "sandbox,i2c-rtc-emul";
882                         };
883                 };
884
885                 sandbox_pmic: sandbox_pmic {
886                         reg = <0x40>;
887                         sandbox,emul = <&emul_pmic0>;
888                 };
889
890                 mc34708: pmic@41 {
891                         reg = <0x41>;
892                         sandbox,emul = <&emul_pmic1>;
893                 };
894         };
895
896         bootcount@0 {
897                 compatible = "u-boot,bootcount-rtc";
898                 rtc = <&rtc_1>;
899                 offset = <0x13>;
900         };
901
902         bootcount {
903                 compatible = "u-boot,bootcount-i2c-eeprom";
904                 i2c-eeprom = <&bootcount_i2c>;
905         };
906
907         bootcount_4@0 {
908                 compatible = "u-boot,bootcount-syscon";
909                 syscon = <&syscon0>;
910                 reg = <0x0 0x04>, <0x0 0x04>;
911                 reg-names = "syscon_reg", "offset";
912         };
913
914         bootcount_2@0 {
915                 compatible = "u-boot,bootcount-syscon";
916                 syscon = <&syscon0>;
917                 reg = <0x0 0x04>, <0x0 0x02> ;
918                 reg-names = "syscon_reg", "offset";
919         };
920
921         adc: adc@0 {
922                 compatible = "sandbox,adc";
923                 #io-channel-cells = <1>;
924                 vdd-supply = <&buck2>;
925                 vss-microvolts = <0>;
926         };
927
928         iommu: iommu@0 {
929                 compatible = "sandbox,iommu";
930                 #iommu-cells = <0>;
931         };
932
933         irq: irq {
934                 compatible = "sandbox,irq";
935                 interrupt-controller;
936                 #interrupt-cells = <2>;
937         };
938
939         lcd {
940                 bootph-all;
941                 compatible = "sandbox,lcd-sdl";
942                 pinctrl-names = "default";
943                 pinctrl-0 = <&pinmux_lcd_pins>;
944                 xres = <1366>;
945                 yres = <768>;
946         };
947
948         leds {
949                 compatible = "gpio-leds";
950
951                 iracibble {
952                         gpios = <&gpio_a 1 0>;
953                         label = "sandbox:red";
954                 };
955
956                 martinet {
957                         gpios = <&gpio_a 2 0>;
958                         label = "sandbox:green";
959                 };
960
961                 default_on {
962                         gpios = <&gpio_a 5 0>;
963                         label = "sandbox:default_on";
964                         default-state = "on";
965                 };
966
967                 default_off {
968                         gpios = <&gpio_a 6 0>;
969                         /* label intentionally omitted */
970                         default-state = "off";
971                 };
972         };
973
974         wdt-gpio-toggle {
975                 gpios = <&gpio_a 7 0>;
976                 compatible = "linux,wdt-gpio";
977                 hw_margin_ms = <100>;
978                 hw_algo = "toggle";
979                 always-running;
980         };
981
982         wdt-gpio-level {
983                 gpios = <&gpio_a 7 0>;
984                 compatible = "linux,wdt-gpio";
985                 hw_margin_ms = <100>;
986                 hw_algo = "level";
987                 always-running;
988         };
989
990         mbox: mbox {
991                 compatible = "sandbox,mbox";
992                 #mbox-cells = <1>;
993         };
994
995         mbox-test {
996                 compatible = "sandbox,mbox-test";
997                 mboxes = <&mbox 100>, <&mbox 1>;
998                 mbox-names = "other", "test";
999         };
1000
1001         cpus {
1002                 #address-cells = <1>;
1003                 #size-cells = <0>;
1004                 timebase-frequency = <2000000>;
1005                 cpu1: cpu@1 {
1006                         device_type = "cpu";
1007                         reg = <0x1>;
1008                         timebase-frequency = <3000000>;
1009                         compatible = "sandbox,cpu_sandbox";
1010                         bootph-all;
1011                 };
1012
1013                 cpu2: cpu@2 {
1014                         device_type = "cpu";
1015                         reg = <0x2>;
1016                         compatible = "sandbox,cpu_sandbox";
1017                         bootph-all;
1018                 };
1019
1020                 cpu3: cpu@3 {
1021                         device_type = "cpu";
1022                         reg = <0x3>;
1023                         compatible = "sandbox,cpu_sandbox";
1024                         bootph-all;
1025                 };
1026         };
1027
1028         chipid: chipid {
1029                 compatible = "sandbox,soc";
1030         };
1031
1032         i2s: i2s {
1033                 compatible = "sandbox,i2s";
1034                 #sound-dai-cells = <1>;
1035                 sandbox,silent; /* Don't emit sounds while testing */
1036         };
1037
1038         nop-test_0 {
1039                 compatible = "sandbox,nop_sandbox1";
1040                 nop-test_1 {
1041                         compatible = "sandbox,nop_sandbox2";
1042                         bind = "True";
1043                 };
1044                 nop-test_2 {
1045                         compatible = "sandbox,nop_sandbox2";
1046                         bind = "False";
1047                 };
1048         };
1049
1050         memory-controller {
1051                 compatible = "sandbox,memory";
1052         };
1053
1054         misc-test {
1055                 #address-cells = <1>;
1056                 #size-cells = <1>;
1057                 compatible = "sandbox,misc_sandbox";
1058
1059                 eth5_addr: mac-address@10 {
1060                         reg = <0x10 6>;
1061                 };
1062         };
1063
1064         mmc2 {
1065                 compatible = "sandbox,mmc";
1066                 non-removable;
1067         };
1068
1069         /* This is used for the bootdev tests */
1070         mmc1 {
1071                 compatible = "sandbox,mmc";
1072                 filename = "mmc1.img";
1073         };
1074
1075         /* This is used for the fastboot tests */
1076         mmc0: mmc0 {
1077                 compatible = "sandbox,mmc";
1078         };
1079
1080         /* This is used for VBE VPL tests */
1081         mmc3 {
1082                 status = "disabled";
1083                 compatible = "sandbox,mmc";
1084                 filename = "image.bin";
1085                 non-removable;
1086         };
1087
1088         /* This is used for bootstd bootmenu tests */
1089         mmc4 {
1090                 status = "disabled";
1091                 compatible = "sandbox,mmc";
1092                 filename = "mmc4.img";
1093         };
1094
1095         /* This is used for ChromiumOS tests */
1096         mmc5 {
1097                 status = "disabled";
1098                 compatible = "sandbox,mmc";
1099                 filename = "mmc5.img";
1100         };
1101
1102         pch {
1103                 compatible = "sandbox,pch";
1104         };
1105
1106         pci0: pci@0 {
1107                 compatible = "sandbox,pci";
1108                 device_type = "pci";
1109                 bus-range = <0x00 0xff>;
1110                 #address-cells = <3>;
1111                 #size-cells = <2>;
1112                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
1113                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
1114                 iommu-map = <0x0010 &iommu 0 1>;
1115                 iommu-map-mask = <0xfffffff8>;
1116                 pci@0,0 {
1117                         compatible = "pci-generic";
1118                         reg = <0x0000 0 0 0 0>;
1119                         sandbox,emul = <&swap_case_emul0_0>;
1120                 };
1121                 pci@1,0 {
1122                         compatible = "pci-generic";
1123                         /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
1124                         reg = <0x02000814 0 0 0 0
1125                                0x01000810 0 0 0 0>;
1126                         sandbox,emul = <&swap_case_emul0_1>;
1127                 };
1128                 p2sb-pci@2,0 {
1129                         compatible = "sandbox,p2sb";
1130                         reg = <0x02001010 0 0 0 0>;
1131                         sandbox,emul = <&p2sb_emul>;
1132
1133                         adder {
1134                                 intel,p2sb-port-id = <3>;
1135                                 compatible = "sandbox,adder";
1136                         };
1137                 };
1138                 pci@1e,0 {
1139                         compatible = "sandbox,pmc";
1140                         reg = <0xf000 0 0 0 0>;
1141                         sandbox,emul = <&pmc_emul1e>;
1142                         acpi-base = <0x400>;
1143                         gpe0-dwx-mask = <0xf>;
1144                         gpe0-dwx-shift-base = <4>;
1145                         gpe0-dw = <6 7 9>;
1146                         gpe0-sts = <0x20>;
1147                         gpe0-en = <0x30>;
1148                 };
1149                 pci@1f,0 {
1150                         compatible = "pci-generic";
1151                         /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
1152                         reg = <0x0100f810 0 0 0 0>;
1153                         sandbox,emul = <&swap_case_emul0_1f>;
1154                 };
1155         };
1156
1157         pci-emul0 {
1158                 compatible = "sandbox,pci-emul-parent";
1159                 swap_case_emul0_0: emul0@0,0 {
1160                         compatible = "sandbox,swap-case";
1161                 };
1162                 swap_case_emul0_1: emul0@1,0 {
1163                         compatible = "sandbox,swap-case";
1164                         use-ea;
1165                 };
1166                 swap_case_emul0_1f: emul0@1f,0 {
1167                         compatible = "sandbox,swap-case";
1168                 };
1169                 p2sb_emul: emul@2,0 {
1170                         compatible = "sandbox,p2sb-emul";
1171                 };
1172                 pmc_emul1e: emul@1e,0 {
1173                         compatible = "sandbox,pmc-emul";
1174                 };
1175         };
1176
1177         pci1: pci@1 {
1178                 compatible = "sandbox,pci";
1179                 device_type = "pci";
1180                 bus-range = <0x00 0xff>;
1181                 #address-cells = <3>;
1182                 #size-cells = <2>;
1183                 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
1184                           0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1
1185                           0x01000000 0 0x40000000 0x40000000 0 0x2000>;
1186                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
1187                                     0x0c 0x00 0x1234 0x5678
1188                                     0x10 0x00 0x1234 0x5678>;
1189                 pci@10,0 {
1190                         reg = <0x8000 0 0 0 0>;
1191                 };
1192         };
1193
1194         pci2: pci@2 {
1195                 compatible = "sandbox,pci";
1196                 device_type = "pci";
1197                 bus-range = <0x00 0xff>;
1198                 #address-cells = <3>;
1199                 #size-cells = <2>;
1200                 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
1201                                 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
1202                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
1203                 pci@1f,0 {
1204                         compatible = "pci-generic";
1205                         reg = <0xf800 0 0 0 0>;
1206                         sandbox,emul = <&swap_case_emul2_1f>;
1207                 };
1208         };
1209
1210         pci-emul2 {
1211                 compatible = "sandbox,pci-emul-parent";
1212                 swap_case_emul2_1f: emul2@1f,0 {
1213                         compatible = "sandbox,swap-case";
1214                 };
1215         };
1216
1217         pci_ep: pci_ep {
1218                 compatible = "sandbox,pci_ep";
1219         };
1220
1221         probing {
1222                 compatible = "simple-bus";
1223                 test1 {
1224                         compatible = "denx,u-boot-probe-test";
1225                 };
1226
1227                 test2 {
1228                         compatible = "denx,u-boot-probe-test";
1229                 };
1230
1231                 test3 {
1232                         compatible = "denx,u-boot-probe-test";
1233                 };
1234
1235                 test4 {
1236                         compatible = "denx,u-boot-probe-test";
1237                         first-syscon = <&syscon0>;
1238                         second-sys-ctrl = <&another_system_controller>;
1239                         third-syscon = <&syscon2>;
1240                 };
1241         };
1242
1243         pwrdom: power-domain {
1244                 compatible = "sandbox,power-domain";
1245                 #power-domain-cells = <1>;
1246         };
1247
1248         power-domain-test {
1249                 compatible = "sandbox,power-domain-test";
1250                 power-domains = <&pwrdom 2>;
1251         };
1252
1253         pwm: pwm {
1254                 compatible = "sandbox,pwm";
1255                 #pwm-cells = <2>;
1256                 pinctrl-names = "default";
1257                 pinctrl-0 = <&pinmux_pwm_pins>;
1258         };
1259
1260         pwm2 {
1261                 compatible = "sandbox,pwm";
1262                 #pwm-cells = <2>;
1263         };
1264
1265         ram {
1266                 compatible = "sandbox,ram";
1267         };
1268
1269         reset@0 {
1270                 compatible = "sandbox,warm-reset";
1271                 bootph-some-ram;
1272         };
1273
1274         reset@1 {
1275                 compatible = "sandbox,reset";
1276                 bootph-some-ram;
1277         };
1278
1279         resetc: reset-ctl {
1280                 compatible = "sandbox,reset-ctl";
1281                 #reset-cells = <1>;
1282         };
1283
1284         reset-ctl-test {
1285                 compatible = "sandbox,reset-ctl-test";
1286                 resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>;
1287                 reset-names = "other", "test", "test2", "test3";
1288         };
1289
1290         rng {
1291                 compatible = "sandbox,sandbox-rng";
1292         };
1293
1294         rproc_1: rproc@1 {
1295                 compatible = "sandbox,test-processor";
1296                 remoteproc-name = "remoteproc-test-dev1";
1297         };
1298
1299         rproc_2: rproc@2 {
1300                 compatible = "sandbox,test-processor";
1301                 internal-memory-mapped;
1302                 remoteproc-name = "remoteproc-test-dev2";
1303         };
1304
1305         panel {
1306                 compatible = "simple-panel";
1307                 backlight = <&backlight 0 100>;
1308         };
1309
1310         scsi {
1311                 compatible = "sandbox,scsi";
1312                 sandbox,filepath = "scsi.img";
1313         };
1314
1315         smem@0 {
1316                 compatible = "sandbox,smem";
1317         };
1318
1319         sound {
1320                 compatible = "sandbox,sound";
1321                 cpu {
1322                         sound-dai = <&i2s 0>;
1323                 };
1324
1325                 codec {
1326                         sound-dai = <&audio 0>;
1327                 };
1328         };
1329
1330         spi@0 {
1331                 #address-cells = <1>;
1332                 #size-cells = <0>;
1333                 reg = <0 1>;
1334                 compatible = "sandbox,spi";
1335                 cs-gpios = <0>, <0>, <&gpio_a 0>;
1336                 pinctrl-names = "default";
1337                 pinctrl-0 = <&pinmux_spi0_pins>;
1338
1339                 spi.bin@0 {
1340                         reg = <0>;
1341                         compatible = "spansion,m25p16", "jedec,spi-nor";
1342                         spi-max-frequency = <40000000>;
1343                         sandbox,filename = "spi.bin";
1344                 };
1345                 spi.bin@1 {
1346                         reg = <1>;
1347                         compatible = "spansion,m25p16", "jedec,spi-nor";
1348                         spi-max-frequency = <50000000>;
1349                         sandbox,filename = "spi.bin";
1350                         spi-cpol;
1351                         spi-cpha;
1352                 };
1353         };
1354
1355         syscon0: syscon@0 {
1356                 compatible = "sandbox,syscon0";
1357                 reg = <0x10 16>;
1358         };
1359
1360         another_system_controller: syscon@1 {
1361                 compatible = "sandbox,syscon1";
1362                 reg = <0x20 5
1363                         0x28 6
1364                         0x30 7
1365                         0x38 8>;
1366         };
1367
1368         syscon2: syscon@2 {
1369                 compatible = "simple-mfd", "syscon";
1370                 reg = <0x40 5
1371                         0x48 6
1372                         0x50 7
1373                         0x58 8>;
1374         };
1375
1376         syscon3: syscon@3 {
1377                 compatible = "simple-mfd", "syscon";
1378                 reg = <0x000100 0x10>;
1379
1380                 muxcontroller0: a-mux-controller {
1381                         compatible = "mmio-mux";
1382                         #mux-control-cells = <1>;
1383
1384                         mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1385                                         <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1386                                         <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1387                         idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1388                         u-boot,mux-autoprobe;
1389                 };
1390         };
1391
1392         muxcontroller1: emul-mux-controller {
1393                 compatible = "mux-emul";
1394                 #mux-control-cells = <0>;
1395                 u-boot,mux-autoprobe;
1396                 idle-state = <0xabcd>;
1397         };
1398
1399         testfdtm0 {
1400                 compatible = "denx,u-boot-fdtm-test";
1401         };
1402
1403         testfdtm1: testfdtm1 {
1404                 compatible = "denx,u-boot-fdtm-test";
1405         };
1406
1407         testfdtm2 {
1408                 compatible = "denx,u-boot-fdtm-test";
1409         };
1410
1411         timer@0 {
1412                 compatible = "sandbox,timer";
1413                 clock-frequency = <1000000>;
1414         };
1415
1416         timer@1 {
1417                 compatible = "sandbox,timer";
1418                 sandbox,timebase-frequency-fallback;
1419         };
1420
1421         tpm2 {
1422                 compatible = "sandbox,tpm2";
1423         };
1424
1425         tpm {
1426                 compatible = "google,sandbox-tpm";
1427         };
1428
1429         uart0: serial {
1430                 compatible = "sandbox,serial";
1431                 bootph-all;
1432                 pinctrl-names = "default";
1433                 pinctrl-0 = <&pinmux_uart0_pins>;
1434         };
1435
1436         usb_0: usb@0 {
1437                 compatible = "sandbox,usb";
1438                 status = "disabled";
1439                 hub {
1440                         compatible = "sandbox,usb-hub";
1441                         #address-cells = <1>;
1442                         #size-cells = <0>;
1443                         flash-stick {
1444                                 reg = <0>;
1445                                 compatible = "sandbox,usb-flash";
1446                         };
1447                 };
1448         };
1449
1450         usb_1: usb@1 {
1451                 compatible = "sandbox,usb";
1452                 iommus = <&iommu>;
1453                 hub {
1454                         compatible = "usb-hub";
1455                         usb,device-class = <9>;
1456                         #address-cells = <1>;
1457                         #size-cells = <0>;
1458                         hub-emul {
1459                                 compatible = "sandbox,usb-hub";
1460                                 #address-cells = <1>;
1461                                 #size-cells = <0>;
1462                                 flash-stick@0 {
1463                                         reg = <0>;
1464                                         compatible = "sandbox,usb-flash";
1465                                         sandbox,filepath = "testflash.bin";
1466                                 };
1467
1468                                 flash-stick@1 {
1469                                         reg = <1>;
1470                                         compatible = "sandbox,usb-flash";
1471                                         sandbox,filepath = "testflash1.bin";
1472                                 };
1473
1474                                 flash-stick@2 {
1475                                         reg = <2>;
1476                                         compatible = "sandbox,usb-flash";
1477                                         sandbox,filepath = "testflash2.bin";
1478                                 };
1479
1480                                 keyb@3 {
1481                                         reg = <3>;
1482                                         compatible = "sandbox,usb-keyb";
1483                                 };
1484
1485                         };
1486
1487                         usbstor@1 {
1488                                 reg = <1>;
1489                         };
1490                         usbstor@3 {
1491                                 reg = <3>;
1492                         };
1493                 };
1494         };
1495
1496         usb_2: usb@2 {
1497                 compatible = "sandbox,usb";
1498                 status = "disabled";
1499         };
1500
1501         spmi: spmi@0 {
1502                 compatible = "sandbox,spmi";
1503                 #address-cells = <0x1>;
1504                 #size-cells = <0x1>;
1505                 ranges;
1506                 pm8916@0 {
1507                         compatible = "qcom,spmi-pmic";
1508                         reg = <0x0 0x1>;
1509                         #address-cells = <0x1>;
1510                         #size-cells = <0x1>;
1511                         ranges;
1512
1513                         spmi_gpios: gpios@c000 {
1514                                 compatible = "qcom,pm8916-gpio";
1515                                 reg = <0xc000 0x400>;
1516                                 gpio-controller;
1517                                 gpio-count = <4>;
1518                                 #gpio-cells = <2>;
1519                                 gpio-bank-name="spmi";
1520                         };
1521                 };
1522         };
1523
1524         wdt0: wdt@0 {
1525                 compatible = "sandbox,wdt";
1526                 hw_margin_ms = <200>;
1527         };
1528
1529         axi: axi@0 {
1530                 compatible = "sandbox,axi";
1531                 #address-cells = <0x1>;
1532                 #size-cells = <0x1>;
1533                 store@0 {
1534                         compatible = "sandbox,sandbox_store";
1535                         reg = <0x0 0x400>;
1536                 };
1537         };
1538
1539         chosen {
1540                 #address-cells = <1>;
1541                 #size-cells = <1>;
1542                 setting = "sunrise ohoka";
1543                 other-node = "/some-bus/c-test@5";
1544                 int-values = <0x1937 72993>;
1545                 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1546                 chosen-test {
1547                         compatible = "denx,u-boot-fdt-test";
1548                         reg = <9 1>;
1549                 };
1550         };
1551
1552         translation-test@8000 {
1553                 compatible = "simple-bus";
1554                 reg = <0x8000 0x4000>;
1555
1556                 #address-cells = <0x2>;
1557                 #size-cells = <0x1>;
1558
1559                 ranges = <0 0x0 0x8000 0x1000
1560                           1 0x100 0x9000 0x1000
1561                           2 0x200 0xA000 0x1000
1562                           3 0x300 0xB000 0x1000
1563                          >;
1564
1565                 dma-ranges = <0 0x000 0x10000000 0x1000
1566                               1 0x100 0x20000000 0x1000
1567                              >;
1568
1569                 dev@0,0 {
1570                         compatible = "denx,u-boot-fdt-dummy";
1571                         reg = <0 0x0 0x1000>;
1572                         reg-names = "sandbox-dummy-0";
1573                 };
1574
1575                 dev@1,100 {
1576                         compatible = "denx,u-boot-fdt-dummy";
1577                         reg = <1 0x100 0x1000>;
1578
1579                 };
1580
1581                 dev@2,200 {
1582                         compatible = "denx,u-boot-fdt-dummy";
1583                         reg = <2 0x200 0x1000>;
1584                 };
1585
1586
1587                 noxlatebus@3,300 {
1588                         compatible = "simple-bus";
1589                         reg = <3 0x300 0x1000>;
1590
1591                         #address-cells = <0x1>;
1592                         #size-cells = <0x0>;
1593
1594                         dev@42 {
1595                                 compatible = "denx,u-boot-fdt-dummy";
1596                                 reg = <0x42>;
1597                         };
1598                 };
1599         };
1600
1601         ofnode-foreach {
1602                 compatible = "foreach";
1603
1604                 first {
1605                         prop1 = <1>;
1606                         prop2 = <2>;
1607                 };
1608
1609                 second {
1610                         prop1 = <1>;
1611                         prop2 = <2>;
1612                 };
1613         };
1614
1615         osd {
1616                 compatible = "sandbox,sandbox_osd";
1617         };
1618
1619         sandbox_tee {
1620                 compatible = "sandbox,tee";
1621         };
1622
1623         sandbox_virtio1 {
1624                 compatible = "sandbox,virtio1";
1625                 virtio-type = <4>;      /* rng */
1626         };
1627
1628         sandbox_virtio2 {
1629                 compatible = "sandbox,virtio2";
1630         };
1631
1632         sandbox-virtio-blk {
1633                 compatible = "sandbox,virtio1";
1634                 virtio-type = <2>;      /* block */
1635         };
1636
1637         sandbox_scmi {
1638                 compatible = "sandbox,scmi-devices";
1639                 clocks = <&clk_scmi 2>, <&clk_scmi 0>;
1640                 resets = <&reset_scmi 3>;
1641                 regul0-supply = <&regul0_scmi>;
1642                 regul1-supply = <&regul1_scmi>;
1643         };
1644
1645         pinctrl {
1646                 compatible = "sandbox,pinctrl";
1647
1648                 pinctrl-names = "default", "alternate";
1649                 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1650                 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1651
1652                 pinctrl_gpios: gpios {
1653                         gpio0 {
1654                                 pins = "P5";
1655                                 function = "GPIO";
1656                                 bias-pull-up;
1657                                 input-disable;
1658                         };
1659                         gpio1 {
1660                                 pins = "P6";
1661                                 function = "GPIO";
1662                                 output-high;
1663                                 drive-open-drain;
1664                         };
1665                         gpio2 {
1666                                 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1667                                 bias-pull-down;
1668                                 input-enable;
1669                         };
1670                         gpio3 {
1671                                 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1672                                 bias-disable;
1673                         };
1674                 };
1675
1676                 pinctrl_i2c: i2c {
1677                         groups {
1678                                 groups = "I2C_UART";
1679                                 function = "I2C";
1680                         };
1681
1682                         pins {
1683                                 pins = "P0", "P1";
1684                                 drive-open-drain;
1685                         };
1686                 };
1687
1688                 pinctrl_i2s: i2s {
1689                         groups = "SPI_I2S";
1690                         function = "I2S";
1691                 };
1692
1693                 pinctrl_spi: spi {
1694                         groups = "SPI_I2S";
1695                         function = "SPI";
1696
1697                         cs {
1698                                 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1699                                          <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1700                         };
1701                 };
1702         };
1703
1704         pinctrl-single-no-width {
1705                 compatible = "pinctrl-single";
1706                 reg = <0x0000 0x238>;
1707                 #pinctrl-cells = <1>;
1708                 pinctrl-single,function-mask = <0x7f>;
1709         };
1710
1711         pinctrl-single-pins {
1712                 compatible = "pinctrl-single";
1713                 reg = <0x0000 0x238>;
1714                 #pinctrl-cells = <1>;
1715                 pinctrl-single,register-width = <32>;
1716                 pinctrl-single,function-mask = <0x7f>;
1717
1718                 pinmux_pwm_pins: pinmux_pwm_pins {
1719                         pinctrl-single,pins = < 0x48 0x06 >;
1720                 };
1721
1722                 pinmux_spi0_pins: pinmux_spi0_pins {
1723                         pinctrl-single,pins = <
1724                                 0x190 0x0c
1725                                 0x194 0x0c
1726                                 0x198 0x23
1727                                 0x19c 0x0c
1728                         >;
1729                 };
1730
1731                 pinmux_uart0_pins: pinmux_uart0_pins {
1732                         pinctrl-single,pins = <
1733                                 0x70 0x30
1734                                 0x74 0x00
1735                         >;
1736                 };
1737         };
1738
1739         pinctrl-single-bits {
1740                 compatible = "pinctrl-single";
1741                 reg = <0x0000 0x50>;
1742                 #pinctrl-cells = <2>;
1743                 pinctrl-single,bit-per-mux;
1744                 pinctrl-single,register-width = <32>;
1745                 pinctrl-single,function-mask = <0xf>;
1746
1747                 pinmux_i2c0_pins: pinmux_i2c0_pins {
1748                         pinctrl-single,bits = <
1749                                 0x10 0x00002200 0x0000ff00
1750                         >;
1751                 };
1752
1753                 pinmux_lcd_pins: pinmux_lcd_pins {
1754                         pinctrl-single,bits = <
1755                                 0x40 0x22222200 0xffffff00
1756                                 0x44 0x22222222 0xffffffff
1757                                 0x48 0x00000022 0x000000ff
1758                                 0x48 0x02000000 0x0f000000
1759                                 0x4c 0x02000022 0x0f0000ff
1760                         >;
1761                 };
1762         };
1763
1764         hwspinlock@0 {
1765                 compatible = "sandbox,hwspinlock";
1766         };
1767
1768         dma: dma {
1769                 compatible = "sandbox,dma";
1770                 #dma-cells = <1>;
1771
1772                 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1773                 dma-names = "m2m", "tx0", "rx0";
1774         };
1775
1776         /*
1777          * keep mdio-mux ahead of mdio so that the mux is removed first at the
1778          * end of the test.  If parent mdio is removed first, clean-up of the
1779          * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1780          * active at the end of the test.  That it turn doesn't allow the mdio
1781          * class to be destroyed, triggering an error.
1782          */
1783         mdio-mux-test {
1784                 compatible = "sandbox,mdio-mux";
1785                 #address-cells = <1>;
1786                 #size-cells = <0>;
1787                 mdio-parent-bus = <&mdio>;
1788
1789                 mdio-ch-test@0 {
1790                         reg = <0>;
1791                 };
1792                 mdio-ch-test@1 {
1793                         reg = <1>;
1794                 };
1795         };
1796
1797         mdio: mdio-test {
1798                 compatible = "sandbox,mdio";
1799                 #address-cells = <1>;
1800                 #size-cells = <0>;
1801
1802                 ethphy1: ethernet-phy@1 {
1803                         reg = <1>;
1804                 };
1805         };
1806
1807         pm-bus-test {
1808                 compatible = "simple-pm-bus";
1809                 clocks = <&clk_sandbox 4>;
1810                 power-domains = <&pwrdom 1>;
1811         };
1812
1813         resetc2: syscon-reset {
1814                 compatible = "syscon-reset";
1815                 #reset-cells = <1>;
1816                 regmap = <&syscon0>;
1817                 offset = <1>;
1818                 mask = <0x27FFFFFF>;
1819                 assert-high = <0>;
1820         };
1821
1822         syscon-reset-test {
1823                 compatible = "sandbox,misc_sandbox";
1824                 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1825                 reset-names = "valid", "no_mask", "out_of_range";
1826         };
1827
1828         sysinfo {
1829                 compatible = "sandbox,sysinfo-sandbox";
1830         };
1831
1832         sysinfo-gpio {
1833                 compatible = "gpio-sysinfo";
1834                 gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>;
1835                 revisions = <19>, <5>;
1836                 names = "rev_a", "foo";
1837         };
1838
1839         some_regmapped-bus {
1840                 #address-cells = <0x1>;
1841                 #size-cells = <0x1>;
1842
1843                 ranges = <0x0 0x0 0x10>;
1844                 compatible = "simple-bus";
1845
1846                 regmap-test_0 {
1847                         reg = <0 0x10>;
1848                         compatible = "sandbox,regmap_test";
1849                 };
1850         };
1851
1852         thermal {
1853                 compatible = "sandbox,thermal";
1854         };
1855
1856         fwu-mdata {
1857                 compatible = "u-boot,fwu-mdata-gpt";
1858                 fwu-mdata-store = <&mmc0>;
1859         };
1860
1861         nvmxip-qspi1@08000000 {
1862                 compatible = "nvmxip,qspi";
1863                 reg = <0x08000000 0x00200000>;
1864                 lba_shift = <9>;
1865                 lba = <4096>;
1866         };
1867
1868         nvmxip-qspi2@08200000 {
1869                 compatible = "nvmxip,qspi";
1870                 reg = <0x08200000 0x00100000>;
1871                 lba_shift = <9>;
1872                 lba = <2048>;
1873         };
1874
1875         extcon {
1876                 compatible = "sandbox,extcon";
1877         };
1878
1879         arm-ffa-emul {
1880                 compatible = "sandbox,arm-ffa-emul";
1881
1882                 sandbox-arm-ffa {
1883                                 compatible = "sandbox,arm-ffa";
1884                 };
1885         };
1886 };
1887
1888 #include "sandbox_pmic.dtsi"
1889 #include "cros-ec-keyboard.dtsi"
1890
1891 #ifdef CONFIG_SANDBOX_VPL
1892 #include "sandbox_vpl.dtsi"
1893 #endif
1894
1895 #include "cedit.dtsi"
This page took 0.143729 seconds and 4 git commands to generate.