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