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