3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
8 compatible = "sandbox";
14 eth0 = "/eth@10002000";
26 remoteproc0 = &rproc_1;
27 remoteproc1 = &rproc_2;
32 testbus3 = "/some-bus";
33 testfdt0 = "/some-bus/c-test@0";
34 testfdt1 = "/some-bus/c-test@1";
36 testfdt5 = "/some-bus/c-test@5";
38 fdt-dummy0 = "/translation-test@8000/dev@0,0";
39 fdt-dummy1 = "/translation-test@8000/dev@1,100";
40 fdt-dummy2 = "/translation-test@8000/dev@2,200";
41 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
50 compatible = "sandbox,audio-codec";
51 #sound-dai-cells = <1>;
55 compatible = "gpio-keys";
58 gpios = <&gpio_a 3 0>;
63 gpios = <&gpio_a 4 0>;
70 compatible = "google,cros-ec-sandbox";
73 * This describes the flash memory within the EC. Note
74 * that the STM32L flash erases to 0, not 0xff.
77 image-pos = <0x08000000>;
81 /* Information for sandbox */
91 image-pos = <0x10000>;
98 compatible = "sandbox,dsi-host";
103 compatible = "denx,u-boot-fdt-test";
107 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
108 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
110 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
111 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
112 <&gpio_b 7 GPIO_IN 3 2 1>,
113 <&gpio_b 8 GPIO_OUT 3 2 1>,
114 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
116 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
117 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
118 <&gpio_c 2 GPIO_OUT>,
119 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
120 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
122 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
123 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
124 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
125 test5-gpios = <&gpio_a 19>;
128 uint-value = <(-1234)>;
129 int64-value = /bits/ 64 <0x1111222233334444>;
130 int-array = <5678 9123 4567>;
131 str-value = "test string";
132 interrupts-extended = <&irq 3 0>;
138 compatible = "not,compatible";
145 backlight: backlight {
146 compatible = "pwm-backlight";
147 enable-gpios = <&gpio_a 1>;
148 power-supply = <&ldo_1>;
149 pwms = <&pwm 0 1000>;
150 default-brightness-level = <5>;
151 brightness-levels = <0 16 32 64 128 170 202 234 255>;
155 compatible = "simple-bus";
157 compatible = "sandbox,phy";
162 compatible = "simple-bus";
168 compatible = "denx,u-boot-fdt-test";
173 phy_provider0: gen_phy@0 {
174 compatible = "sandbox,phy";
178 phy_provider1: gen_phy@1 {
179 compatible = "sandbox,phy";
184 phy_provider2: gen_phy@2 {
185 compatible = "sandbox,phy";
189 gen_phy_user: gen_phy_user {
190 compatible = "simple-bus";
191 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
192 phy-names = "phy1", "phy2", "phy3";
195 gen_phy_user1: gen_phy_user1 {
196 compatible = "simple-bus";
197 phys = <&phy_provider0 0>, <&phy_provider2>;
198 phy-names = "phy1", "phy2";
202 #address-cells = <1>;
204 compatible = "denx,u-boot-test-bus";
209 compatible = "denx,u-boot-fdt-test";
215 compatible = "denx,u-boot-fdt-test";
221 compatible = "denx,u-boot-fdt-test";
232 compatible = "google,another-fdt-test";
239 compatible = "google,another-fdt-test";
243 compatible = "denx,u-boot-fdt-test";
247 compatible = "denx,u-boot-fdt-test";
251 compatible = "denx,u-boot-fdt-test1";
255 compatible = "mediatek,u-boot-fdt-test";
256 #address-cells = <1>;
273 compatible = "denx,u-boot-devres-test";
278 compatible = "denx,u-boot-fdt-test";
279 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
280 test5-gpios = <&gpio_a 19>;
283 acpi_test1: acpi-test {
284 compatible = "denx,u-boot-acpi-test";
285 acpi-ssdt-test-data = "ab";
286 acpi-dsdt-test-data = "hi";
288 compatible = "denx,u-boot-acpi-test";
292 acpi_test2: acpi-test2 {
293 compatible = "denx,u-boot-acpi-test";
294 acpi-ssdt-test-data = "cd";
295 acpi-dsdt-test-data = "jk";
299 clk_fixed: clk-fixed {
300 compatible = "fixed-clock";
302 clock-frequency = <1234>;
305 clk_fixed_factor: clk-fixed-factor {
306 compatible = "fixed-factor-clock";
310 clocks = <&clk_fixed>;
314 compatible = "fixed-clock";
316 clock-frequency = <20000000>;
320 clk_sandbox: clk-sbox {
321 compatible = "sandbox,clk";
323 assigned-clocks = <&clk_sandbox 3>;
324 assigned-clock-rates = <321>;
328 compatible = "sandbox,clk-test";
329 clocks = <&clk_fixed>,
334 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
338 compatible = "sandbox,clk-ccf";
342 compatible = "sandbox,eth";
343 reg = <0x10002000 0x1000>;
344 fake-host-hwaddr = [00 00 66 44 22 00];
347 eth_5: eth@10003000 {
348 compatible = "sandbox,eth";
349 reg = <0x10003000 0x1000>;
350 fake-host-hwaddr = [00 00 66 44 22 11];
354 compatible = "sandbox,eth";
355 reg = <0x10005000 0x1000>;
356 fake-host-hwaddr = [00 00 66 44 22 33];
360 compatible = "sandbox,eth";
361 reg = <0x10004000 0x1000>;
362 fake-host-hwaddr = [00 00 66 44 22 22];
366 sandbox_firmware: sandbox-firmware {
367 compatible = "sandbox,firmware";
370 sandbox-scmi-agent@0 {
371 compatible = "sandbox,scmi-agent";
372 #address-cells = <1>;
375 clk_scmi0: protocol@14 {
381 sandbox-scmi-agent@1 {
382 compatible = "sandbox,scmi-agent";
383 #address-cells = <1>;
386 clk_scmi1: protocol@14 {
398 compatible = "sandbox,pinctrl-gpio";
401 compatible = "sandbox,gpio";
404 gpio-bank-name = "a";
405 sandbox,gpio-count = <20>;
406 hog_input_active_low {
409 gpios = <10 GPIO_ACTIVE_LOW>;
411 hog_input_active_high {
414 gpios = <11 GPIO_ACTIVE_HIGH>;
419 gpios = <12 GPIO_ACTIVE_HIGH>;
424 gpios = <13 GPIO_ACTIVE_HIGH>;
428 gpio_b: extra-gpios {
429 compatible = "sandbox,gpio";
432 gpio-bank-name = "b";
433 sandbox,gpio-count = <10>;
436 gpio_c: pinmux-gpios {
437 compatible = "sandbox,gpio";
440 gpio-bank-name = "c";
441 sandbox,gpio-count = <10>;
446 #address-cells = <1>;
449 compatible = "sandbox,i2c";
450 clock-frequency = <100000>;
453 compatible = "i2c-eeprom";
454 sandbox,emul = <&emul_eeprom>;
456 compatible = "fixed-partitions";
457 #address-cells = <1>;
459 bootcount_i2c: bootcount@10 {
467 compatible = "sandbox-rtc";
468 sandbox,emul = <&emul0>;
473 compatible = "sandbox-rtc";
474 sandbox,emul = <&emul1>;
479 compatible = "sandbox,i2c-emul-parent";
480 emul_eeprom: emul-eeprom {
481 compatible = "sandbox,i2c-eeprom";
482 sandbox,filename = "i2c.bin";
483 sandbox,size = <256>;
486 compatible = "sandbox,i2c-rtc";
489 compatible = "sandbox,i2c-rtc";
493 sandbox_pmic: sandbox_pmic {
495 sandbox,emul = <&emul_pmic0>;
500 sandbox,emul = <&emul_pmic1>;
505 compatible = "u-boot,bootcount-rtc";
511 compatible = "u-boot,bootcount-i2c-eeprom";
512 i2c-eeprom = <&bootcount_i2c>;
516 compatible = "sandbox,adc";
517 vdd-supply = <&buck2>;
518 vss-microvolts = <0>;
522 compatible = "sandbox,irq";
523 interrupt-controller;
524 #interrupt-cells = <2>;
529 compatible = "sandbox,lcd-sdl";
535 compatible = "gpio-leds";
538 gpios = <&gpio_a 1 0>;
539 label = "sandbox:red";
543 gpios = <&gpio_a 2 0>;
544 label = "sandbox:green";
548 gpios = <&gpio_a 5 0>;
549 label = "sandbox:default_on";
550 default-state = "on";
554 gpios = <&gpio_a 6 0>;
555 label = "sandbox:default_off";
556 default-state = "off";
561 compatible = "sandbox,mbox";
566 compatible = "sandbox,mbox-test";
567 mboxes = <&mbox 100>, <&mbox 1>;
568 mbox-names = "other", "test";
572 timebase-frequency = <2000000>;
574 timebase-frequency = <3000000>;
575 compatible = "sandbox,cpu_sandbox";
580 compatible = "sandbox,cpu_sandbox";
585 compatible = "sandbox,cpu_sandbox";
591 compatible = "sandbox,soc";
595 compatible = "sandbox,i2s";
596 #sound-dai-cells = <1>;
597 sandbox,silent; /* Don't emit sounds while testing */
601 compatible = "sandbox,nop_sandbox1";
603 compatible = "sandbox,nop_sandbox2";
607 compatible = "sandbox,nop_sandbox2";
613 compatible = "sandbox,misc_sandbox";
617 compatible = "sandbox,mmc";
621 compatible = "sandbox,mmc";
625 compatible = "sandbox,mmc";
629 compatible = "sandbox,pch";
633 compatible = "sandbox,pci";
635 bus-range = <0x00 0xff>;
636 #address-cells = <3>;
638 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
639 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
641 compatible = "pci-generic";
642 reg = <0x0000 0 0 0 0>;
643 sandbox,emul = <&swap_case_emul0_0>;
646 compatible = "pci-generic";
647 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
648 reg = <0x02000814 0 0 0 0
650 sandbox,emul = <&swap_case_emul0_1>;
653 compatible = "sandbox,p2sb";
654 reg = <0x02001010 0 0 0 0>;
655 sandbox,emul = <&p2sb_emul>;
658 intel,p2sb-port-id = <3>;
659 compatible = "sandbox,adder";
663 compatible = "sandbox,pmc";
664 reg = <0xf000 0 0 0 0>;
665 sandbox,emul = <&pmc_emul1e>;
667 gpe0-dwx-mask = <0xf>;
668 gpe0-dwx-shift-base = <4>;
674 compatible = "pci-generic";
675 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
676 reg = <0x0100f810 0 0 0 0>;
677 sandbox,emul = <&swap_case_emul0_1f>;
682 compatible = "sandbox,pci-emul-parent";
683 swap_case_emul0_0: emul0@0,0 {
684 compatible = "sandbox,swap-case";
686 swap_case_emul0_1: emul0@1,0 {
687 compatible = "sandbox,swap-case";
690 swap_case_emul0_1f: emul0@1f,0 {
691 compatible = "sandbox,swap-case";
693 p2sb_emul: emul@2,0 {
694 compatible = "sandbox,p2sb-emul";
696 pmc_emul1e: emul@1e,0 {
697 compatible = "sandbox,pmc-emul";
702 compatible = "sandbox,pci";
704 bus-range = <0x00 0xff>;
705 #address-cells = <3>;
707 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
708 0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
709 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
710 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
711 0x0c 0x00 0x1234 0x5678
712 0x10 0x00 0x1234 0x5678>;
714 reg = <0x8000 0 0 0 0>;
719 compatible = "sandbox,pci";
721 bus-range = <0x00 0xff>;
722 #address-cells = <3>;
724 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
725 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
726 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
728 compatible = "pci-generic";
729 reg = <0xf800 0 0 0 0>;
730 sandbox,emul = <&swap_case_emul2_1f>;
735 compatible = "sandbox,pci-emul-parent";
736 swap_case_emul2_1f: emul2@1f,0 {
737 compatible = "sandbox,swap-case";
742 compatible = "sandbox,pci_ep";
746 compatible = "simple-bus";
748 compatible = "denx,u-boot-probe-test";
752 compatible = "denx,u-boot-probe-test";
756 compatible = "denx,u-boot-probe-test";
760 compatible = "denx,u-boot-probe-test";
761 first-syscon = <&syscon0>;
762 second-sys-ctrl = <&another_system_controller>;
763 third-syscon = <&syscon2>;
767 pwrdom: power-domain {
768 compatible = "sandbox,power-domain";
769 #power-domain-cells = <1>;
773 compatible = "sandbox,power-domain-test";
774 power-domains = <&pwrdom 2>;
778 compatible = "sandbox,pwm";
783 compatible = "sandbox,pwm";
788 compatible = "sandbox,ram";
792 compatible = "sandbox,warm-reset";
796 compatible = "sandbox,reset";
800 compatible = "sandbox,reset-ctl";
805 compatible = "sandbox,reset-ctl-test";
806 resets = <&resetc 100>, <&resetc 2>;
807 reset-names = "other", "test";
811 compatible = "sandbox,sandbox-rng";
815 compatible = "sandbox,test-processor";
816 remoteproc-name = "remoteproc-test-dev1";
820 compatible = "sandbox,test-processor";
821 internal-memory-mapped;
822 remoteproc-name = "remoteproc-test-dev2";
826 compatible = "simple-panel";
827 backlight = <&backlight 0 100>;
831 compatible = "sandbox,smem";
835 compatible = "sandbox,sound";
837 sound-dai = <&i2s 0>;
841 sound-dai = <&audio 0>;
846 #address-cells = <1>;
849 compatible = "sandbox,spi";
850 cs-gpios = <0>, <&gpio_a 0>;
853 compatible = "spansion,m25p16", "jedec,spi-nor";
854 spi-max-frequency = <40000000>;
855 sandbox,filename = "spi.bin";
860 compatible = "sandbox,syscon0";
864 another_system_controller: syscon@1 {
865 compatible = "sandbox,syscon1";
873 compatible = "simple-mfd", "syscon";
881 compatible = "sandbox,timer";
882 clock-frequency = <1000000>;
886 compatible = "sandbox,timer";
887 sandbox,timebase-frequency-fallback;
891 compatible = "sandbox,tpm2";
895 compatible = "sandbox,serial";
900 compatible = "sandbox,usb";
903 compatible = "sandbox,usb-hub";
904 #address-cells = <1>;
908 compatible = "sandbox,usb-flash";
914 compatible = "sandbox,usb";
916 compatible = "usb-hub";
917 usb,device-class = <9>;
918 #address-cells = <1>;
921 compatible = "sandbox,usb-hub";
922 #address-cells = <1>;
926 compatible = "sandbox,usb-flash";
927 sandbox,filepath = "testflash.bin";
932 compatible = "sandbox,usb-flash";
933 sandbox,filepath = "testflash1.bin";
938 compatible = "sandbox,usb-flash";
939 sandbox,filepath = "testflash2.bin";
944 compatible = "sandbox,usb-keyb";
959 compatible = "sandbox,usb";
964 compatible = "sandbox,spmi";
965 #address-cells = <0x1>;
969 compatible = "qcom,spmi-pmic";
971 #address-cells = <0x1>;
975 spmi_gpios: gpios@c000 {
976 compatible = "qcom,pm8916-gpio";
977 reg = <0xc000 0x400>;
981 gpio-bank-name="spmi";
987 compatible = "sandbox,wdt";
991 compatible = "sandbox,axi";
992 #address-cells = <0x1>;
995 compatible = "sandbox,sandbox_store";
1001 #address-cells = <1>;
1003 setting = "sunrise ohoka";
1004 other-node = "/some-bus/c-test@5";
1005 int-values = <0x1937 72993>;
1006 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1008 compatible = "denx,u-boot-fdt-test";
1013 translation-test@8000 {
1014 compatible = "simple-bus";
1015 reg = <0x8000 0x4000>;
1017 #address-cells = <0x2>;
1018 #size-cells = <0x1>;
1020 ranges = <0 0x0 0x8000 0x1000
1021 1 0x100 0x9000 0x1000
1022 2 0x200 0xA000 0x1000
1023 3 0x300 0xB000 0x1000
1026 dma-ranges = <0 0x000 0x10000000 0x1000
1027 1 0x100 0x20000000 0x1000
1031 compatible = "denx,u-boot-fdt-dummy";
1032 reg = <0 0x0 0x1000>;
1033 reg-names = "sandbox-dummy-0";
1037 compatible = "denx,u-boot-fdt-dummy";
1038 reg = <1 0x100 0x1000>;
1043 compatible = "denx,u-boot-fdt-dummy";
1044 reg = <2 0x200 0x1000>;
1049 compatible = "simple-bus";
1050 reg = <3 0x300 0x1000>;
1052 #address-cells = <0x1>;
1053 #size-cells = <0x0>;
1056 compatible = "denx,u-boot-fdt-dummy";
1063 compatible = "sandbox,sandbox_osd";
1067 compatible = "sandbox,board_sandbox";
1071 compatible = "sandbox,tee";
1075 compatible = "sandbox,virtio1";
1079 compatible = "sandbox,virtio2";
1083 compatible = "sandbox,scmi-devices";
1084 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1088 compatible = "sandbox,pinctrl";
1090 pinctrl-names = "default";
1091 pinctrl-0 = <&gpios>;
1117 compatible = "sandbox,hwspinlock";
1121 compatible = "sandbox,dma";
1124 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1125 dma-names = "m2m", "tx0", "rx0";
1129 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1130 * end of the test. If parent mdio is removed first, clean-up of the
1131 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1132 * active at the end of the test. That it turn doesn't allow the mdio
1133 * class to be destroyed, triggering an error.
1136 compatible = "sandbox,mdio-mux";
1137 #address-cells = <1>;
1139 mdio-parent-bus = <&mdio>;
1150 compatible = "sandbox,mdio";
1154 compatible = "simple-pm-bus";
1155 clocks = <&clk_sandbox 4>;
1156 power-domains = <&pwrdom 1>;
1159 resetc2: syscon-reset {
1160 compatible = "syscon-reset";
1162 regmap = <&syscon0>;
1164 mask = <0x27FFFFFF>;
1169 compatible = "sandbox,misc_sandbox";
1170 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1171 reset-names = "valid", "no_mask", "out_of_range";
1174 some_regmapped-bus {
1175 #address-cells = <0x1>;
1176 #size-cells = <0x1>;
1178 ranges = <0x0 0x0 0x10>;
1179 compatible = "simple-bus";
1183 compatible = "sandbox,regmap_test";
1188 #include "sandbox_pmic.dtsi"