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>;
56 compatible = "google,cros-ec-sandbox";
59 * This describes the flash memory within the EC. Note
60 * that the STM32L flash erases to 0, not 0xff.
63 image-pos = <0x08000000>;
67 /* Information for sandbox */
77 image-pos = <0x10000>;
84 compatible = "sandbox,dsi-host";
89 compatible = "denx,u-boot-fdt-test";
93 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
94 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
96 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
97 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
98 <&gpio_b 7 GPIO_IN 3 2 1>,
99 <&gpio_b 8 GPIO_OUT 3 2 1>,
100 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
102 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
103 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
104 <&gpio_c 2 GPIO_OUT>,
105 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
106 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
108 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
109 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
111 uint-value = <(-1234)>;
112 int64-value = /bits/ 64 <0x1111222233334444>;
113 int-array = <5678 9123 4567>;
114 interrupts-extended = <&irq 3 0>;
119 compatible = "not,compatible";
126 backlight: backlight {
127 compatible = "pwm-backlight";
128 enable-gpios = <&gpio_a 1>;
129 power-supply = <&ldo_1>;
130 pwms = <&pwm 0 1000>;
131 default-brightness-level = <5>;
132 brightness-levels = <0 16 32 64 128 170 202 234 255>;
137 compatible = "sandbox,phy";
142 compatible = "simple-bus";
148 compatible = "denx,u-boot-fdt-test";
153 phy_provider0: gen_phy@0 {
154 compatible = "sandbox,phy";
158 phy_provider1: gen_phy@1 {
159 compatible = "sandbox,phy";
164 phy_provider2: gen_phy@2 {
165 compatible = "sandbox,phy";
169 gen_phy_user: gen_phy_user {
170 compatible = "simple-bus";
171 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
172 phy-names = "phy1", "phy2", "phy3";
175 gen_phy_user1: gen_phy_user1 {
176 compatible = "simple-bus";
177 phys = <&phy_provider0 0>, <&phy_provider2>;
178 phy-names = "phy1", "phy2";
182 #address-cells = <1>;
184 compatible = "denx,u-boot-test-bus";
189 compatible = "denx,u-boot-fdt-test";
195 compatible = "denx,u-boot-fdt-test";
201 compatible = "denx,u-boot-fdt-test";
212 compatible = "google,another-fdt-test";
219 compatible = "google,another-fdt-test";
223 compatible = "denx,u-boot-fdt-test";
227 compatible = "denx,u-boot-fdt-test";
231 compatible = "denx,u-boot-fdt-test1";
235 compatible = "mediatek,u-boot-fdt-test";
236 #address-cells = <1>;
253 compatible = "denx,u-boot-devres-test";
257 compatible = "denx,u-boot-acpi-test";
261 compatible = "denx,u-boot-acpi-test";
265 clk_fixed: clk-fixed {
266 compatible = "fixed-clock";
268 clock-frequency = <1234>;
271 clk_fixed_factor: clk-fixed-factor {
272 compatible = "fixed-factor-clock";
276 clocks = <&clk_fixed>;
280 compatible = "fixed-clock";
282 clock-frequency = <20000000>;
286 clk_sandbox: clk-sbox {
287 compatible = "sandbox,clk";
289 assigned-clocks = <&clk_sandbox 3>;
290 assigned-clock-rates = <321>;
294 compatible = "sandbox,clk-test";
295 clocks = <&clk_fixed>,
300 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
304 compatible = "sandbox,clk-ccf";
308 compatible = "sandbox,eth";
309 reg = <0x10002000 0x1000>;
310 fake-host-hwaddr = [00 00 66 44 22 00];
313 eth_5: eth@10003000 {
314 compatible = "sandbox,eth";
315 reg = <0x10003000 0x1000>;
316 fake-host-hwaddr = [00 00 66 44 22 11];
320 compatible = "sandbox,eth";
321 reg = <0x10005000 0x1000>;
322 fake-host-hwaddr = [00 00 66 44 22 33];
326 compatible = "sandbox,eth";
327 reg = <0x10004000 0x1000>;
328 fake-host-hwaddr = [00 00 66 44 22 22];
332 sandbox_firmware: sandbox-firmware {
333 compatible = "sandbox,firmware";
338 compatible = "sandbox,pinctrl-gpio";
341 compatible = "sandbox,gpio";
344 gpio-bank-name = "a";
345 sandbox,gpio-count = <20>;
346 hog_input_active_low {
349 gpios = <0 GPIO_ACTIVE_LOW>;
351 hog_input_active_high {
354 gpios = <1 GPIO_ACTIVE_HIGH>;
359 gpios = <2 GPIO_ACTIVE_HIGH>;
364 gpios = <3 GPIO_ACTIVE_HIGH>;
368 gpio_b: extra-gpios {
369 compatible = "sandbox,gpio";
372 gpio-bank-name = "b";
373 sandbox,gpio-count = <10>;
376 gpio_c: pinmux-gpios {
377 compatible = "sandbox,gpio";
380 gpio-bank-name = "c";
381 sandbox,gpio-count = <10>;
386 #address-cells = <1>;
389 compatible = "sandbox,i2c";
390 clock-frequency = <100000>;
393 compatible = "i2c-eeprom";
394 sandbox,emul = <&emul_eeprom>;
399 compatible = "sandbox-rtc";
400 sandbox,emul = <&emul0>;
405 compatible = "sandbox-rtc";
406 sandbox,emul = <&emul1>;
411 compatible = "sandbox,i2c-emul-parent";
412 emul_eeprom: emul-eeprom {
413 compatible = "sandbox,i2c-eeprom";
414 sandbox,filename = "i2c.bin";
415 sandbox,size = <256>;
418 compatible = "sandbox,i2c-rtc";
421 compatible = "sandbox,i2c-rtc";
425 sandbox_pmic: sandbox_pmic {
427 sandbox,emul = <&emul_pmic0>;
432 sandbox,emul = <&emul_pmic1>;
437 compatible = "u-boot,bootcount-rtc";
443 compatible = "sandbox,adc";
444 vdd-supply = <&buck2>;
445 vss-microvolts = <0>;
449 compatible = "sandbox,irq";
450 interrupt-controller;
451 #interrupt-cells = <2>;
456 compatible = "sandbox,lcd-sdl";
462 compatible = "gpio-leds";
465 gpios = <&gpio_a 1 0>;
466 label = "sandbox:red";
470 gpios = <&gpio_a 2 0>;
471 label = "sandbox:green";
475 gpios = <&gpio_a 5 0>;
476 label = "sandbox:default_on";
477 default-state = "on";
481 gpios = <&gpio_a 6 0>;
482 label = "sandbox:default_off";
483 default-state = "off";
488 compatible = "sandbox,mbox";
493 compatible = "sandbox,mbox-test";
494 mboxes = <&mbox 100>, <&mbox 1>;
495 mbox-names = "other", "test";
500 compatible = "sandbox,cpu_sandbox";
505 compatible = "sandbox,cpu_sandbox";
510 compatible = "sandbox,cpu_sandbox";
516 compatible = "sandbox,i2s";
517 #sound-dai-cells = <1>;
518 sandbox,silent; /* Don't emit sounds while testing */
522 compatible = "sandbox,nop_sandbox1";
524 compatible = "sandbox,nop_sandbox2";
528 compatible = "sandbox,nop_sandbox2";
534 compatible = "sandbox,misc_sandbox";
538 compatible = "sandbox,mmc";
542 compatible = "sandbox,mmc";
546 compatible = "sandbox,mmc";
550 compatible = "sandbox,pch";
554 compatible = "sandbox,pci";
556 bus-range = <0x00 0xff>;
557 #address-cells = <3>;
559 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
560 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
562 compatible = "pci-generic";
563 reg = <0x0000 0 0 0 0>;
564 sandbox,emul = <&swap_case_emul0_0>;
567 compatible = "pci-generic";
568 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
569 reg = <0x02000814 0 0 0 0
571 sandbox,emul = <&swap_case_emul0_1>;
574 compatible = "sandbox,p2sb";
575 reg = <0x02001010 0 0 0 0>;
576 sandbox,emul = <&p2sb_emul>;
579 intel,p2sb-port-id = <3>;
580 compatible = "sandbox,adder";
584 compatible = "sandbox,pmc";
585 reg = <0xf000 0 0 0 0>;
586 sandbox,emul = <&pmc_emul1e>;
588 gpe0-dwx-mask = <0xf>;
589 gpe0-dwx-shift-base = <4>;
595 compatible = "pci-generic";
596 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
597 reg = <0x0100f810 0 0 0 0>;
598 sandbox,emul = <&swap_case_emul0_1f>;
603 compatible = "sandbox,pci-emul-parent";
604 swap_case_emul0_0: emul0@0,0 {
605 compatible = "sandbox,swap-case";
607 swap_case_emul0_1: emul0@1,0 {
608 compatible = "sandbox,swap-case";
611 swap_case_emul0_1f: emul0@1f,0 {
612 compatible = "sandbox,swap-case";
614 p2sb_emul: emul@2,0 {
615 compatible = "sandbox,p2sb-emul";
617 pmc_emul1e: emul@1e,0 {
618 compatible = "sandbox,pmc-emul";
623 compatible = "sandbox,pci";
625 bus-range = <0x00 0xff>;
626 #address-cells = <3>;
628 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
629 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
630 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
631 0x0c 0x00 0x1234 0x5678
632 0x10 0x00 0x1234 0x5678>;
634 reg = <0x8000 0 0 0 0>;
639 compatible = "sandbox,pci";
641 bus-range = <0x00 0xff>;
642 #address-cells = <3>;
644 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
645 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
646 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
648 compatible = "pci-generic";
649 reg = <0xf800 0 0 0 0>;
650 sandbox,emul = <&swap_case_emul2_1f>;
655 compatible = "sandbox,pci-emul-parent";
656 swap_case_emul2_1f: emul2@1f,0 {
657 compatible = "sandbox,swap-case";
662 compatible = "sandbox,pci_ep";
666 compatible = "simple-bus";
668 compatible = "denx,u-boot-probe-test";
672 compatible = "denx,u-boot-probe-test";
676 compatible = "denx,u-boot-probe-test";
680 compatible = "denx,u-boot-probe-test";
681 first-syscon = <&syscon0>;
682 second-sys-ctrl = <&another_system_controller>;
683 third-syscon = <&syscon2>;
687 pwrdom: power-domain {
688 compatible = "sandbox,power-domain";
689 #power-domain-cells = <1>;
693 compatible = "sandbox,power-domain-test";
694 power-domains = <&pwrdom 2>;
698 compatible = "sandbox,pwm";
703 compatible = "sandbox,pwm";
708 compatible = "sandbox,ram";
712 compatible = "sandbox,warm-reset";
716 compatible = "sandbox,reset";
720 compatible = "sandbox,reset-ctl";
725 compatible = "sandbox,reset-ctl-test";
726 resets = <&resetc 100>, <&resetc 2>;
727 reset-names = "other", "test";
731 compatible = "sandbox,sandbox-rng";
735 compatible = "sandbox,test-processor";
736 remoteproc-name = "remoteproc-test-dev1";
740 compatible = "sandbox,test-processor";
741 internal-memory-mapped;
742 remoteproc-name = "remoteproc-test-dev2";
746 compatible = "simple-panel";
747 backlight = <&backlight 0 100>;
751 compatible = "sandbox,smem";
755 compatible = "sandbox,sound";
757 sound-dai = <&i2s 0>;
761 sound-dai = <&audio 0>;
766 #address-cells = <1>;
769 compatible = "sandbox,spi";
770 cs-gpios = <0>, <&gpio_a 0>;
773 compatible = "spansion,m25p16", "jedec,spi-nor";
774 spi-max-frequency = <40000000>;
775 sandbox,filename = "spi.bin";
780 compatible = "sandbox,syscon0";
784 another_system_controller: syscon@1 {
785 compatible = "sandbox,syscon1";
793 compatible = "simple-mfd", "syscon";
801 compatible = "sandbox,timer";
802 clock-frequency = <1000000>;
806 compatible = "sandbox,tpm2";
810 compatible = "sandbox,serial";
815 compatible = "sandbox,usb";
818 compatible = "sandbox,usb-hub";
819 #address-cells = <1>;
823 compatible = "sandbox,usb-flash";
829 compatible = "sandbox,usb";
831 compatible = "usb-hub";
832 usb,device-class = <9>;
833 #address-cells = <1>;
836 compatible = "sandbox,usb-hub";
837 #address-cells = <1>;
841 compatible = "sandbox,usb-flash";
842 sandbox,filepath = "testflash.bin";
847 compatible = "sandbox,usb-flash";
848 sandbox,filepath = "testflash1.bin";
853 compatible = "sandbox,usb-flash";
854 sandbox,filepath = "testflash2.bin";
859 compatible = "sandbox,usb-keyb";
874 compatible = "sandbox,usb";
879 compatible = "sandbox,spmi";
880 #address-cells = <0x1>;
884 compatible = "qcom,spmi-pmic";
886 #address-cells = <0x1>;
890 spmi_gpios: gpios@c000 {
891 compatible = "qcom,pm8916-gpio";
892 reg = <0xc000 0x400>;
896 gpio-bank-name="spmi";
902 compatible = "sandbox,wdt";
906 compatible = "sandbox,axi";
907 #address-cells = <0x1>;
910 compatible = "sandbox,sandbox_store";
916 #address-cells = <1>;
918 setting = "sunrise ohoka";
919 other-node = "/some-bus/c-test@5";
920 int-values = <0x1937 72993>;
922 compatible = "denx,u-boot-fdt-test";
927 translation-test@8000 {
928 compatible = "simple-bus";
929 reg = <0x8000 0x4000>;
931 #address-cells = <0x2>;
934 ranges = <0 0x0 0x8000 0x1000
935 1 0x100 0x9000 0x1000
936 2 0x200 0xA000 0x1000
937 3 0x300 0xB000 0x1000
940 dma-ranges = <0 0x000 0x10000000 0x1000
941 1 0x100 0x20000000 0x1000
945 compatible = "denx,u-boot-fdt-dummy";
946 reg = <0 0x0 0x1000>;
947 reg-names = "sandbox-dummy-0";
951 compatible = "denx,u-boot-fdt-dummy";
952 reg = <1 0x100 0x1000>;
957 compatible = "denx,u-boot-fdt-dummy";
958 reg = <2 0x200 0x1000>;
963 compatible = "simple-bus";
964 reg = <3 0x300 0x1000>;
966 #address-cells = <0x1>;
970 compatible = "denx,u-boot-fdt-dummy";
977 compatible = "sandbox,sandbox_osd";
981 compatible = "sandbox,board_sandbox";
985 compatible = "sandbox,tee";
989 compatible = "sandbox,virtio1";
993 compatible = "sandbox,virtio2";
997 compatible = "sandbox,pinctrl";
999 pinctrl-names = "default";
1000 pinctrl-0 = <&gpios>;
1026 compatible = "sandbox,hwspinlock";
1030 compatible = "sandbox,dma";
1033 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1034 dma-names = "m2m", "tx0", "rx0";
1038 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1039 * end of the test. If parent mdio is removed first, clean-up of the
1040 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1041 * active at the end of the test. That it turn doesn't allow the mdio
1042 * class to be destroyed, triggering an error.
1045 compatible = "sandbox,mdio-mux";
1046 #address-cells = <1>;
1048 mdio-parent-bus = <&mdio>;
1059 compatible = "sandbox,mdio";
1063 compatible = "simple-pm-bus";
1064 clocks = <&clk_sandbox 4>;
1065 power-domains = <&pwrdom 1>;
1068 resetc2: syscon-reset {
1069 compatible = "syscon-reset";
1071 regmap = <&syscon0>;
1073 mask = <0x27FFFFFF>;
1078 compatible = "sandbox,misc_sandbox";
1079 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1080 reset-names = "valid", "no_mask", "out_of_range";
1084 #include "sandbox_pmic.dtsi"