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 str-value = "test string";
115 interrupts-extended = <&irq 3 0>;
120 compatible = "not,compatible";
127 backlight: backlight {
128 compatible = "pwm-backlight";
129 enable-gpios = <&gpio_a 1>;
130 power-supply = <&ldo_1>;
131 pwms = <&pwm 0 1000>;
132 default-brightness-level = <5>;
133 brightness-levels = <0 16 32 64 128 170 202 234 255>;
138 compatible = "sandbox,phy";
143 compatible = "simple-bus";
149 compatible = "denx,u-boot-fdt-test";
154 phy_provider0: gen_phy@0 {
155 compatible = "sandbox,phy";
159 phy_provider1: gen_phy@1 {
160 compatible = "sandbox,phy";
165 phy_provider2: gen_phy@2 {
166 compatible = "sandbox,phy";
170 gen_phy_user: gen_phy_user {
171 compatible = "simple-bus";
172 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
173 phy-names = "phy1", "phy2", "phy3";
176 gen_phy_user1: gen_phy_user1 {
177 compatible = "simple-bus";
178 phys = <&phy_provider0 0>, <&phy_provider2>;
179 phy-names = "phy1", "phy2";
183 #address-cells = <1>;
185 compatible = "denx,u-boot-test-bus";
190 compatible = "denx,u-boot-fdt-test";
196 compatible = "denx,u-boot-fdt-test";
202 compatible = "denx,u-boot-fdt-test";
213 compatible = "google,another-fdt-test";
220 compatible = "google,another-fdt-test";
224 compatible = "denx,u-boot-fdt-test";
228 compatible = "denx,u-boot-fdt-test";
232 compatible = "denx,u-boot-fdt-test1";
236 compatible = "mediatek,u-boot-fdt-test";
237 #address-cells = <1>;
254 compatible = "denx,u-boot-devres-test";
258 compatible = "denx,u-boot-acpi-test";
259 acpi-ssdt-test-data = "ab";
261 compatible = "denx,u-boot-acpi-test";
266 compatible = "denx,u-boot-acpi-test";
267 acpi-ssdt-test-data = "cd";
271 clk_fixed: clk-fixed {
272 compatible = "fixed-clock";
274 clock-frequency = <1234>;
277 clk_fixed_factor: clk-fixed-factor {
278 compatible = "fixed-factor-clock";
282 clocks = <&clk_fixed>;
286 compatible = "fixed-clock";
288 clock-frequency = <20000000>;
292 clk_sandbox: clk-sbox {
293 compatible = "sandbox,clk";
295 assigned-clocks = <&clk_sandbox 3>;
296 assigned-clock-rates = <321>;
300 compatible = "sandbox,clk-test";
301 clocks = <&clk_fixed>,
306 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
310 compatible = "sandbox,clk-ccf";
314 compatible = "sandbox,eth";
315 reg = <0x10002000 0x1000>;
316 fake-host-hwaddr = [00 00 66 44 22 00];
319 eth_5: eth@10003000 {
320 compatible = "sandbox,eth";
321 reg = <0x10003000 0x1000>;
322 fake-host-hwaddr = [00 00 66 44 22 11];
326 compatible = "sandbox,eth";
327 reg = <0x10005000 0x1000>;
328 fake-host-hwaddr = [00 00 66 44 22 33];
332 compatible = "sandbox,eth";
333 reg = <0x10004000 0x1000>;
334 fake-host-hwaddr = [00 00 66 44 22 22];
338 sandbox_firmware: sandbox-firmware {
339 compatible = "sandbox,firmware";
344 compatible = "sandbox,pinctrl-gpio";
347 compatible = "sandbox,gpio";
350 gpio-bank-name = "a";
351 sandbox,gpio-count = <20>;
352 hog_input_active_low {
355 gpios = <0 GPIO_ACTIVE_LOW>;
357 hog_input_active_high {
360 gpios = <1 GPIO_ACTIVE_HIGH>;
365 gpios = <2 GPIO_ACTIVE_HIGH>;
370 gpios = <3 GPIO_ACTIVE_HIGH>;
374 gpio_b: extra-gpios {
375 compatible = "sandbox,gpio";
378 gpio-bank-name = "b";
379 sandbox,gpio-count = <10>;
382 gpio_c: pinmux-gpios {
383 compatible = "sandbox,gpio";
386 gpio-bank-name = "c";
387 sandbox,gpio-count = <10>;
392 #address-cells = <1>;
395 compatible = "sandbox,i2c";
396 clock-frequency = <100000>;
399 compatible = "i2c-eeprom";
400 sandbox,emul = <&emul_eeprom>;
405 compatible = "sandbox-rtc";
406 sandbox,emul = <&emul0>;
411 compatible = "sandbox-rtc";
412 sandbox,emul = <&emul1>;
417 compatible = "sandbox,i2c-emul-parent";
418 emul_eeprom: emul-eeprom {
419 compatible = "sandbox,i2c-eeprom";
420 sandbox,filename = "i2c.bin";
421 sandbox,size = <256>;
424 compatible = "sandbox,i2c-rtc";
427 compatible = "sandbox,i2c-rtc";
431 sandbox_pmic: sandbox_pmic {
433 sandbox,emul = <&emul_pmic0>;
438 sandbox,emul = <&emul_pmic1>;
443 compatible = "u-boot,bootcount-rtc";
449 compatible = "sandbox,adc";
450 vdd-supply = <&buck2>;
451 vss-microvolts = <0>;
455 compatible = "sandbox,irq";
456 interrupt-controller;
457 #interrupt-cells = <2>;
462 compatible = "sandbox,lcd-sdl";
468 compatible = "gpio-leds";
471 gpios = <&gpio_a 1 0>;
472 label = "sandbox:red";
476 gpios = <&gpio_a 2 0>;
477 label = "sandbox:green";
481 gpios = <&gpio_a 5 0>;
482 label = "sandbox:default_on";
483 default-state = "on";
487 gpios = <&gpio_a 6 0>;
488 label = "sandbox:default_off";
489 default-state = "off";
494 compatible = "sandbox,mbox";
499 compatible = "sandbox,mbox-test";
500 mboxes = <&mbox 100>, <&mbox 1>;
501 mbox-names = "other", "test";
506 compatible = "sandbox,cpu_sandbox";
511 compatible = "sandbox,cpu_sandbox";
516 compatible = "sandbox,cpu_sandbox";
522 compatible = "sandbox,i2s";
523 #sound-dai-cells = <1>;
524 sandbox,silent; /* Don't emit sounds while testing */
528 compatible = "sandbox,nop_sandbox1";
530 compatible = "sandbox,nop_sandbox2";
534 compatible = "sandbox,nop_sandbox2";
540 compatible = "sandbox,misc_sandbox";
544 compatible = "sandbox,mmc";
548 compatible = "sandbox,mmc";
552 compatible = "sandbox,mmc";
556 compatible = "sandbox,pch";
560 compatible = "sandbox,pci";
562 bus-range = <0x00 0xff>;
563 #address-cells = <3>;
565 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
566 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
568 compatible = "pci-generic";
569 reg = <0x0000 0 0 0 0>;
570 sandbox,emul = <&swap_case_emul0_0>;
573 compatible = "pci-generic";
574 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
575 reg = <0x02000814 0 0 0 0
577 sandbox,emul = <&swap_case_emul0_1>;
580 compatible = "sandbox,p2sb";
581 reg = <0x02001010 0 0 0 0>;
582 sandbox,emul = <&p2sb_emul>;
585 intel,p2sb-port-id = <3>;
586 compatible = "sandbox,adder";
590 compatible = "sandbox,pmc";
591 reg = <0xf000 0 0 0 0>;
592 sandbox,emul = <&pmc_emul1e>;
594 gpe0-dwx-mask = <0xf>;
595 gpe0-dwx-shift-base = <4>;
601 compatible = "pci-generic";
602 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
603 reg = <0x0100f810 0 0 0 0>;
604 sandbox,emul = <&swap_case_emul0_1f>;
609 compatible = "sandbox,pci-emul-parent";
610 swap_case_emul0_0: emul0@0,0 {
611 compatible = "sandbox,swap-case";
613 swap_case_emul0_1: emul0@1,0 {
614 compatible = "sandbox,swap-case";
617 swap_case_emul0_1f: emul0@1f,0 {
618 compatible = "sandbox,swap-case";
620 p2sb_emul: emul@2,0 {
621 compatible = "sandbox,p2sb-emul";
623 pmc_emul1e: emul@1e,0 {
624 compatible = "sandbox,pmc-emul";
629 compatible = "sandbox,pci";
631 bus-range = <0x00 0xff>;
632 #address-cells = <3>;
634 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
635 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
636 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
637 0x0c 0x00 0x1234 0x5678
638 0x10 0x00 0x1234 0x5678>;
640 reg = <0x8000 0 0 0 0>;
645 compatible = "sandbox,pci";
647 bus-range = <0x00 0xff>;
648 #address-cells = <3>;
650 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
651 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
652 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
654 compatible = "pci-generic";
655 reg = <0xf800 0 0 0 0>;
656 sandbox,emul = <&swap_case_emul2_1f>;
661 compatible = "sandbox,pci-emul-parent";
662 swap_case_emul2_1f: emul2@1f,0 {
663 compatible = "sandbox,swap-case";
668 compatible = "sandbox,pci_ep";
672 compatible = "simple-bus";
674 compatible = "denx,u-boot-probe-test";
678 compatible = "denx,u-boot-probe-test";
682 compatible = "denx,u-boot-probe-test";
686 compatible = "denx,u-boot-probe-test";
687 first-syscon = <&syscon0>;
688 second-sys-ctrl = <&another_system_controller>;
689 third-syscon = <&syscon2>;
693 pwrdom: power-domain {
694 compatible = "sandbox,power-domain";
695 #power-domain-cells = <1>;
699 compatible = "sandbox,power-domain-test";
700 power-domains = <&pwrdom 2>;
704 compatible = "sandbox,pwm";
709 compatible = "sandbox,pwm";
714 compatible = "sandbox,ram";
718 compatible = "sandbox,warm-reset";
722 compatible = "sandbox,reset";
726 compatible = "sandbox,reset-ctl";
731 compatible = "sandbox,reset-ctl-test";
732 resets = <&resetc 100>, <&resetc 2>;
733 reset-names = "other", "test";
737 compatible = "sandbox,sandbox-rng";
741 compatible = "sandbox,test-processor";
742 remoteproc-name = "remoteproc-test-dev1";
746 compatible = "sandbox,test-processor";
747 internal-memory-mapped;
748 remoteproc-name = "remoteproc-test-dev2";
752 compatible = "simple-panel";
753 backlight = <&backlight 0 100>;
757 compatible = "sandbox,smem";
761 compatible = "sandbox,sound";
763 sound-dai = <&i2s 0>;
767 sound-dai = <&audio 0>;
772 #address-cells = <1>;
775 compatible = "sandbox,spi";
776 cs-gpios = <0>, <&gpio_a 0>;
779 compatible = "spansion,m25p16", "jedec,spi-nor";
780 spi-max-frequency = <40000000>;
781 sandbox,filename = "spi.bin";
786 compatible = "sandbox,syscon0";
790 another_system_controller: syscon@1 {
791 compatible = "sandbox,syscon1";
799 compatible = "simple-mfd", "syscon";
807 compatible = "sandbox,timer";
808 clock-frequency = <1000000>;
812 compatible = "sandbox,tpm2";
816 compatible = "sandbox,serial";
821 compatible = "sandbox,usb";
824 compatible = "sandbox,usb-hub";
825 #address-cells = <1>;
829 compatible = "sandbox,usb-flash";
835 compatible = "sandbox,usb";
837 compatible = "usb-hub";
838 usb,device-class = <9>;
839 #address-cells = <1>;
842 compatible = "sandbox,usb-hub";
843 #address-cells = <1>;
847 compatible = "sandbox,usb-flash";
848 sandbox,filepath = "testflash.bin";
853 compatible = "sandbox,usb-flash";
854 sandbox,filepath = "testflash1.bin";
859 compatible = "sandbox,usb-flash";
860 sandbox,filepath = "testflash2.bin";
865 compatible = "sandbox,usb-keyb";
880 compatible = "sandbox,usb";
885 compatible = "sandbox,spmi";
886 #address-cells = <0x1>;
890 compatible = "qcom,spmi-pmic";
892 #address-cells = <0x1>;
896 spmi_gpios: gpios@c000 {
897 compatible = "qcom,pm8916-gpio";
898 reg = <0xc000 0x400>;
902 gpio-bank-name="spmi";
908 compatible = "sandbox,wdt";
912 compatible = "sandbox,axi";
913 #address-cells = <0x1>;
916 compatible = "sandbox,sandbox_store";
922 #address-cells = <1>;
924 setting = "sunrise ohoka";
925 other-node = "/some-bus/c-test@5";
926 int-values = <0x1937 72993>;
928 compatible = "denx,u-boot-fdt-test";
933 translation-test@8000 {
934 compatible = "simple-bus";
935 reg = <0x8000 0x4000>;
937 #address-cells = <0x2>;
940 ranges = <0 0x0 0x8000 0x1000
941 1 0x100 0x9000 0x1000
942 2 0x200 0xA000 0x1000
943 3 0x300 0xB000 0x1000
946 dma-ranges = <0 0x000 0x10000000 0x1000
947 1 0x100 0x20000000 0x1000
951 compatible = "denx,u-boot-fdt-dummy";
952 reg = <0 0x0 0x1000>;
953 reg-names = "sandbox-dummy-0";
957 compatible = "denx,u-boot-fdt-dummy";
958 reg = <1 0x100 0x1000>;
963 compatible = "denx,u-boot-fdt-dummy";
964 reg = <2 0x200 0x1000>;
969 compatible = "simple-bus";
970 reg = <3 0x300 0x1000>;
972 #address-cells = <0x1>;
976 compatible = "denx,u-boot-fdt-dummy";
983 compatible = "sandbox,sandbox_osd";
987 compatible = "sandbox,board_sandbox";
991 compatible = "sandbox,tee";
995 compatible = "sandbox,virtio1";
999 compatible = "sandbox,virtio2";
1003 compatible = "sandbox,pinctrl";
1005 pinctrl-names = "default";
1006 pinctrl-0 = <&gpios>;
1032 compatible = "sandbox,hwspinlock";
1036 compatible = "sandbox,dma";
1039 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1040 dma-names = "m2m", "tx0", "rx0";
1044 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1045 * end of the test. If parent mdio is removed first, clean-up of the
1046 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1047 * active at the end of the test. That it turn doesn't allow the mdio
1048 * class to be destroyed, triggering an error.
1051 compatible = "sandbox,mdio-mux";
1052 #address-cells = <1>;
1054 mdio-parent-bus = <&mdio>;
1065 compatible = "sandbox,mdio";
1069 compatible = "simple-pm-bus";
1070 clocks = <&clk_sandbox 4>;
1071 power-domains = <&pwrdom 1>;
1074 resetc2: syscon-reset {
1075 compatible = "syscon-reset";
1077 regmap = <&syscon0>;
1079 mask = <0x27FFFFFF>;
1084 compatible = "sandbox,misc_sandbox";
1085 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1086 reset-names = "valid", "no_mask", "out_of_range";
1090 #include "sandbox_pmic.dtsi"