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)>;
125 uint-value = <(-1234)>;
126 int64-value = /bits/ 64 <0x1111222233334444>;
127 int-array = <5678 9123 4567>;
128 str-value = "test string";
129 interrupts-extended = <&irq 3 0>;
135 compatible = "not,compatible";
142 backlight: backlight {
143 compatible = "pwm-backlight";
144 enable-gpios = <&gpio_a 1>;
145 power-supply = <&ldo_1>;
146 pwms = <&pwm 0 1000>;
147 default-brightness-level = <5>;
148 brightness-levels = <0 16 32 64 128 170 202 234 255>;
152 compatible = "simple-bus";
154 compatible = "sandbox,phy";
159 compatible = "simple-bus";
165 compatible = "denx,u-boot-fdt-test";
170 phy_provider0: gen_phy@0 {
171 compatible = "sandbox,phy";
175 phy_provider1: gen_phy@1 {
176 compatible = "sandbox,phy";
181 phy_provider2: gen_phy@2 {
182 compatible = "sandbox,phy";
186 gen_phy_user: gen_phy_user {
187 compatible = "simple-bus";
188 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
189 phy-names = "phy1", "phy2", "phy3";
192 gen_phy_user1: gen_phy_user1 {
193 compatible = "simple-bus";
194 phys = <&phy_provider0 0>, <&phy_provider2>;
195 phy-names = "phy1", "phy2";
199 #address-cells = <1>;
201 compatible = "denx,u-boot-test-bus";
206 compatible = "denx,u-boot-fdt-test";
212 compatible = "denx,u-boot-fdt-test";
218 compatible = "denx,u-boot-fdt-test";
229 compatible = "google,another-fdt-test";
236 compatible = "google,another-fdt-test";
240 compatible = "denx,u-boot-fdt-test";
244 compatible = "denx,u-boot-fdt-test";
248 compatible = "denx,u-boot-fdt-test1";
252 compatible = "mediatek,u-boot-fdt-test";
253 #address-cells = <1>;
270 compatible = "denx,u-boot-devres-test";
273 acpi_test1: acpi-test {
274 compatible = "denx,u-boot-acpi-test";
275 acpi-ssdt-test-data = "ab";
276 acpi-dsdt-test-data = "hi";
278 compatible = "denx,u-boot-acpi-test";
282 acpi_test2: acpi-test2 {
283 compatible = "denx,u-boot-acpi-test";
284 acpi-ssdt-test-data = "cd";
285 acpi-dsdt-test-data = "jk";
289 clk_fixed: clk-fixed {
290 compatible = "fixed-clock";
292 clock-frequency = <1234>;
295 clk_fixed_factor: clk-fixed-factor {
296 compatible = "fixed-factor-clock";
300 clocks = <&clk_fixed>;
304 compatible = "fixed-clock";
306 clock-frequency = <20000000>;
310 clk_sandbox: clk-sbox {
311 compatible = "sandbox,clk";
313 assigned-clocks = <&clk_sandbox 3>;
314 assigned-clock-rates = <321>;
318 compatible = "sandbox,clk-test";
319 clocks = <&clk_fixed>,
324 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
328 compatible = "sandbox,clk-ccf";
332 compatible = "sandbox,eth";
333 reg = <0x10002000 0x1000>;
334 fake-host-hwaddr = [00 00 66 44 22 00];
337 eth_5: eth@10003000 {
338 compatible = "sandbox,eth";
339 reg = <0x10003000 0x1000>;
340 fake-host-hwaddr = [00 00 66 44 22 11];
344 compatible = "sandbox,eth";
345 reg = <0x10005000 0x1000>;
346 fake-host-hwaddr = [00 00 66 44 22 33];
350 compatible = "sandbox,eth";
351 reg = <0x10004000 0x1000>;
352 fake-host-hwaddr = [00 00 66 44 22 22];
356 sandbox_firmware: sandbox-firmware {
357 compatible = "sandbox,firmware";
362 compatible = "sandbox,pinctrl-gpio";
365 compatible = "sandbox,gpio";
368 gpio-bank-name = "a";
369 sandbox,gpio-count = <20>;
370 hog_input_active_low {
373 gpios = <10 GPIO_ACTIVE_LOW>;
375 hog_input_active_high {
378 gpios = <11 GPIO_ACTIVE_HIGH>;
383 gpios = <12 GPIO_ACTIVE_HIGH>;
388 gpios = <13 GPIO_ACTIVE_HIGH>;
392 gpio_b: extra-gpios {
393 compatible = "sandbox,gpio";
396 gpio-bank-name = "b";
397 sandbox,gpio-count = <10>;
400 gpio_c: pinmux-gpios {
401 compatible = "sandbox,gpio";
404 gpio-bank-name = "c";
405 sandbox,gpio-count = <10>;
410 #address-cells = <1>;
413 compatible = "sandbox,i2c";
414 clock-frequency = <100000>;
417 compatible = "i2c-eeprom";
418 sandbox,emul = <&emul_eeprom>;
420 compatible = "fixed-partitions";
421 #address-cells = <1>;
423 bootcount_i2c: bootcount@10 {
431 compatible = "sandbox-rtc";
432 sandbox,emul = <&emul0>;
437 compatible = "sandbox-rtc";
438 sandbox,emul = <&emul1>;
443 compatible = "sandbox,i2c-emul-parent";
444 emul_eeprom: emul-eeprom {
445 compatible = "sandbox,i2c-eeprom";
446 sandbox,filename = "i2c.bin";
447 sandbox,size = <256>;
450 compatible = "sandbox,i2c-rtc";
453 compatible = "sandbox,i2c-rtc";
457 sandbox_pmic: sandbox_pmic {
459 sandbox,emul = <&emul_pmic0>;
464 sandbox,emul = <&emul_pmic1>;
469 compatible = "u-boot,bootcount-rtc";
475 compatible = "u-boot,bootcount-i2c-eeprom";
476 i2c-eeprom = <&bootcount_i2c>;
480 compatible = "sandbox,adc";
481 vdd-supply = <&buck2>;
482 vss-microvolts = <0>;
486 compatible = "sandbox,irq";
487 interrupt-controller;
488 #interrupt-cells = <2>;
493 compatible = "sandbox,lcd-sdl";
499 compatible = "gpio-leds";
502 gpios = <&gpio_a 1 0>;
503 label = "sandbox:red";
507 gpios = <&gpio_a 2 0>;
508 label = "sandbox:green";
512 gpios = <&gpio_a 5 0>;
513 label = "sandbox:default_on";
514 default-state = "on";
518 gpios = <&gpio_a 6 0>;
519 label = "sandbox:default_off";
520 default-state = "off";
525 compatible = "sandbox,mbox";
530 compatible = "sandbox,mbox-test";
531 mboxes = <&mbox 100>, <&mbox 1>;
532 mbox-names = "other", "test";
537 compatible = "sandbox,cpu_sandbox";
542 compatible = "sandbox,cpu_sandbox";
547 compatible = "sandbox,cpu_sandbox";
553 compatible = "sandbox,soc";
557 compatible = "sandbox,i2s";
558 #sound-dai-cells = <1>;
559 sandbox,silent; /* Don't emit sounds while testing */
563 compatible = "sandbox,nop_sandbox1";
565 compatible = "sandbox,nop_sandbox2";
569 compatible = "sandbox,nop_sandbox2";
575 compatible = "sandbox,misc_sandbox";
579 compatible = "sandbox,mmc";
583 compatible = "sandbox,mmc";
587 compatible = "sandbox,mmc";
591 compatible = "sandbox,pch";
595 compatible = "sandbox,pci";
597 bus-range = <0x00 0xff>;
598 #address-cells = <3>;
600 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
601 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
603 compatible = "pci-generic";
604 reg = <0x0000 0 0 0 0>;
605 sandbox,emul = <&swap_case_emul0_0>;
608 compatible = "pci-generic";
609 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
610 reg = <0x02000814 0 0 0 0
612 sandbox,emul = <&swap_case_emul0_1>;
615 compatible = "sandbox,p2sb";
616 reg = <0x02001010 0 0 0 0>;
617 sandbox,emul = <&p2sb_emul>;
620 intel,p2sb-port-id = <3>;
621 compatible = "sandbox,adder";
625 compatible = "sandbox,pmc";
626 reg = <0xf000 0 0 0 0>;
627 sandbox,emul = <&pmc_emul1e>;
629 gpe0-dwx-mask = <0xf>;
630 gpe0-dwx-shift-base = <4>;
636 compatible = "pci-generic";
637 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
638 reg = <0x0100f810 0 0 0 0>;
639 sandbox,emul = <&swap_case_emul0_1f>;
644 compatible = "sandbox,pci-emul-parent";
645 swap_case_emul0_0: emul0@0,0 {
646 compatible = "sandbox,swap-case";
648 swap_case_emul0_1: emul0@1,0 {
649 compatible = "sandbox,swap-case";
652 swap_case_emul0_1f: emul0@1f,0 {
653 compatible = "sandbox,swap-case";
655 p2sb_emul: emul@2,0 {
656 compatible = "sandbox,p2sb-emul";
658 pmc_emul1e: emul@1e,0 {
659 compatible = "sandbox,pmc-emul";
664 compatible = "sandbox,pci";
666 bus-range = <0x00 0xff>;
667 #address-cells = <3>;
669 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
670 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
671 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
672 0x0c 0x00 0x1234 0x5678
673 0x10 0x00 0x1234 0x5678>;
675 reg = <0x8000 0 0 0 0>;
680 compatible = "sandbox,pci";
682 bus-range = <0x00 0xff>;
683 #address-cells = <3>;
685 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
686 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
687 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
689 compatible = "pci-generic";
690 reg = <0xf800 0 0 0 0>;
691 sandbox,emul = <&swap_case_emul2_1f>;
696 compatible = "sandbox,pci-emul-parent";
697 swap_case_emul2_1f: emul2@1f,0 {
698 compatible = "sandbox,swap-case";
703 compatible = "sandbox,pci_ep";
707 compatible = "simple-bus";
709 compatible = "denx,u-boot-probe-test";
713 compatible = "denx,u-boot-probe-test";
717 compatible = "denx,u-boot-probe-test";
721 compatible = "denx,u-boot-probe-test";
722 first-syscon = <&syscon0>;
723 second-sys-ctrl = <&another_system_controller>;
724 third-syscon = <&syscon2>;
728 pwrdom: power-domain {
729 compatible = "sandbox,power-domain";
730 #power-domain-cells = <1>;
734 compatible = "sandbox,power-domain-test";
735 power-domains = <&pwrdom 2>;
739 compatible = "sandbox,pwm";
744 compatible = "sandbox,pwm";
749 compatible = "sandbox,ram";
753 compatible = "sandbox,warm-reset";
757 compatible = "sandbox,reset";
761 compatible = "sandbox,reset-ctl";
766 compatible = "sandbox,reset-ctl-test";
767 resets = <&resetc 100>, <&resetc 2>;
768 reset-names = "other", "test";
772 compatible = "sandbox,sandbox-rng";
776 compatible = "sandbox,test-processor";
777 remoteproc-name = "remoteproc-test-dev1";
781 compatible = "sandbox,test-processor";
782 internal-memory-mapped;
783 remoteproc-name = "remoteproc-test-dev2";
787 compatible = "simple-panel";
788 backlight = <&backlight 0 100>;
792 compatible = "sandbox,smem";
796 compatible = "sandbox,sound";
798 sound-dai = <&i2s 0>;
802 sound-dai = <&audio 0>;
807 #address-cells = <1>;
810 compatible = "sandbox,spi";
811 cs-gpios = <0>, <&gpio_a 0>;
814 compatible = "spansion,m25p16", "jedec,spi-nor";
815 spi-max-frequency = <40000000>;
816 sandbox,filename = "spi.bin";
821 compatible = "sandbox,syscon0";
825 another_system_controller: syscon@1 {
826 compatible = "sandbox,syscon1";
834 compatible = "simple-mfd", "syscon";
842 compatible = "sandbox,timer";
843 clock-frequency = <1000000>;
847 compatible = "sandbox,tpm2";
851 compatible = "sandbox,serial";
856 compatible = "sandbox,usb";
859 compatible = "sandbox,usb-hub";
860 #address-cells = <1>;
864 compatible = "sandbox,usb-flash";
870 compatible = "sandbox,usb";
872 compatible = "usb-hub";
873 usb,device-class = <9>;
874 #address-cells = <1>;
877 compatible = "sandbox,usb-hub";
878 #address-cells = <1>;
882 compatible = "sandbox,usb-flash";
883 sandbox,filepath = "testflash.bin";
888 compatible = "sandbox,usb-flash";
889 sandbox,filepath = "testflash1.bin";
894 compatible = "sandbox,usb-flash";
895 sandbox,filepath = "testflash2.bin";
900 compatible = "sandbox,usb-keyb";
915 compatible = "sandbox,usb";
920 compatible = "sandbox,spmi";
921 #address-cells = <0x1>;
925 compatible = "qcom,spmi-pmic";
927 #address-cells = <0x1>;
931 spmi_gpios: gpios@c000 {
932 compatible = "qcom,pm8916-gpio";
933 reg = <0xc000 0x400>;
937 gpio-bank-name="spmi";
943 compatible = "sandbox,wdt";
947 compatible = "sandbox,axi";
948 #address-cells = <0x1>;
951 compatible = "sandbox,sandbox_store";
957 #address-cells = <1>;
959 setting = "sunrise ohoka";
960 other-node = "/some-bus/c-test@5";
961 int-values = <0x1937 72993>;
962 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
964 compatible = "denx,u-boot-fdt-test";
969 translation-test@8000 {
970 compatible = "simple-bus";
971 reg = <0x8000 0x4000>;
973 #address-cells = <0x2>;
976 ranges = <0 0x0 0x8000 0x1000
977 1 0x100 0x9000 0x1000
978 2 0x200 0xA000 0x1000
979 3 0x300 0xB000 0x1000
982 dma-ranges = <0 0x000 0x10000000 0x1000
983 1 0x100 0x20000000 0x1000
987 compatible = "denx,u-boot-fdt-dummy";
988 reg = <0 0x0 0x1000>;
989 reg-names = "sandbox-dummy-0";
993 compatible = "denx,u-boot-fdt-dummy";
994 reg = <1 0x100 0x1000>;
999 compatible = "denx,u-boot-fdt-dummy";
1000 reg = <2 0x200 0x1000>;
1005 compatible = "simple-bus";
1006 reg = <3 0x300 0x1000>;
1008 #address-cells = <0x1>;
1009 #size-cells = <0x0>;
1012 compatible = "denx,u-boot-fdt-dummy";
1019 compatible = "sandbox,sandbox_osd";
1023 compatible = "sandbox,board_sandbox";
1027 compatible = "sandbox,tee";
1031 compatible = "sandbox,virtio1";
1035 compatible = "sandbox,virtio2";
1039 compatible = "sandbox,pinctrl";
1041 pinctrl-names = "default";
1042 pinctrl-0 = <&gpios>;
1068 compatible = "sandbox,hwspinlock";
1072 compatible = "sandbox,dma";
1075 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1076 dma-names = "m2m", "tx0", "rx0";
1080 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1081 * end of the test. If parent mdio is removed first, clean-up of the
1082 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1083 * active at the end of the test. That it turn doesn't allow the mdio
1084 * class to be destroyed, triggering an error.
1087 compatible = "sandbox,mdio-mux";
1088 #address-cells = <1>;
1090 mdio-parent-bus = <&mdio>;
1101 compatible = "sandbox,mdio";
1105 compatible = "simple-pm-bus";
1106 clocks = <&clk_sandbox 4>;
1107 power-domains = <&pwrdom 1>;
1110 resetc2: syscon-reset {
1111 compatible = "syscon-reset";
1113 regmap = <&syscon0>;
1115 mask = <0x27FFFFFF>;
1120 compatible = "sandbox,misc_sandbox";
1121 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1122 reset-names = "valid", "no_mask", "out_of_range";
1126 #include "sandbox_pmic.dtsi"