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 // MEM0
670 0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
671 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
672 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
673 0x0c 0x00 0x1234 0x5678
674 0x10 0x00 0x1234 0x5678>;
676 reg = <0x8000 0 0 0 0>;
681 compatible = "sandbox,pci";
683 bus-range = <0x00 0xff>;
684 #address-cells = <3>;
686 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
687 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
688 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
690 compatible = "pci-generic";
691 reg = <0xf800 0 0 0 0>;
692 sandbox,emul = <&swap_case_emul2_1f>;
697 compatible = "sandbox,pci-emul-parent";
698 swap_case_emul2_1f: emul2@1f,0 {
699 compatible = "sandbox,swap-case";
704 compatible = "sandbox,pci_ep";
708 compatible = "simple-bus";
710 compatible = "denx,u-boot-probe-test";
714 compatible = "denx,u-boot-probe-test";
718 compatible = "denx,u-boot-probe-test";
722 compatible = "denx,u-boot-probe-test";
723 first-syscon = <&syscon0>;
724 second-sys-ctrl = <&another_system_controller>;
725 third-syscon = <&syscon2>;
729 pwrdom: power-domain {
730 compatible = "sandbox,power-domain";
731 #power-domain-cells = <1>;
735 compatible = "sandbox,power-domain-test";
736 power-domains = <&pwrdom 2>;
740 compatible = "sandbox,pwm";
745 compatible = "sandbox,pwm";
750 compatible = "sandbox,ram";
754 compatible = "sandbox,warm-reset";
758 compatible = "sandbox,reset";
762 compatible = "sandbox,reset-ctl";
767 compatible = "sandbox,reset-ctl-test";
768 resets = <&resetc 100>, <&resetc 2>;
769 reset-names = "other", "test";
773 compatible = "sandbox,sandbox-rng";
777 compatible = "sandbox,test-processor";
778 remoteproc-name = "remoteproc-test-dev1";
782 compatible = "sandbox,test-processor";
783 internal-memory-mapped;
784 remoteproc-name = "remoteproc-test-dev2";
788 compatible = "simple-panel";
789 backlight = <&backlight 0 100>;
793 compatible = "sandbox,smem";
797 compatible = "sandbox,sound";
799 sound-dai = <&i2s 0>;
803 sound-dai = <&audio 0>;
808 #address-cells = <1>;
811 compatible = "sandbox,spi";
812 cs-gpios = <0>, <&gpio_a 0>;
815 compatible = "spansion,m25p16", "jedec,spi-nor";
816 spi-max-frequency = <40000000>;
817 sandbox,filename = "spi.bin";
822 compatible = "sandbox,syscon0";
826 another_system_controller: syscon@1 {
827 compatible = "sandbox,syscon1";
835 compatible = "simple-mfd", "syscon";
843 compatible = "sandbox,timer";
844 clock-frequency = <1000000>;
848 compatible = "sandbox,tpm2";
852 compatible = "sandbox,serial";
857 compatible = "sandbox,usb";
860 compatible = "sandbox,usb-hub";
861 #address-cells = <1>;
865 compatible = "sandbox,usb-flash";
871 compatible = "sandbox,usb";
873 compatible = "usb-hub";
874 usb,device-class = <9>;
875 #address-cells = <1>;
878 compatible = "sandbox,usb-hub";
879 #address-cells = <1>;
883 compatible = "sandbox,usb-flash";
884 sandbox,filepath = "testflash.bin";
889 compatible = "sandbox,usb-flash";
890 sandbox,filepath = "testflash1.bin";
895 compatible = "sandbox,usb-flash";
896 sandbox,filepath = "testflash2.bin";
901 compatible = "sandbox,usb-keyb";
916 compatible = "sandbox,usb";
921 compatible = "sandbox,spmi";
922 #address-cells = <0x1>;
926 compatible = "qcom,spmi-pmic";
928 #address-cells = <0x1>;
932 spmi_gpios: gpios@c000 {
933 compatible = "qcom,pm8916-gpio";
934 reg = <0xc000 0x400>;
938 gpio-bank-name="spmi";
944 compatible = "sandbox,wdt";
948 compatible = "sandbox,axi";
949 #address-cells = <0x1>;
952 compatible = "sandbox,sandbox_store";
958 #address-cells = <1>;
960 setting = "sunrise ohoka";
961 other-node = "/some-bus/c-test@5";
962 int-values = <0x1937 72993>;
963 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
965 compatible = "denx,u-boot-fdt-test";
970 translation-test@8000 {
971 compatible = "simple-bus";
972 reg = <0x8000 0x4000>;
974 #address-cells = <0x2>;
977 ranges = <0 0x0 0x8000 0x1000
978 1 0x100 0x9000 0x1000
979 2 0x200 0xA000 0x1000
980 3 0x300 0xB000 0x1000
983 dma-ranges = <0 0x000 0x10000000 0x1000
984 1 0x100 0x20000000 0x1000
988 compatible = "denx,u-boot-fdt-dummy";
989 reg = <0 0x0 0x1000>;
990 reg-names = "sandbox-dummy-0";
994 compatible = "denx,u-boot-fdt-dummy";
995 reg = <1 0x100 0x1000>;
1000 compatible = "denx,u-boot-fdt-dummy";
1001 reg = <2 0x200 0x1000>;
1006 compatible = "simple-bus";
1007 reg = <3 0x300 0x1000>;
1009 #address-cells = <0x1>;
1010 #size-cells = <0x0>;
1013 compatible = "denx,u-boot-fdt-dummy";
1020 compatible = "sandbox,sandbox_osd";
1024 compatible = "sandbox,board_sandbox";
1028 compatible = "sandbox,tee";
1032 compatible = "sandbox,virtio1";
1036 compatible = "sandbox,virtio2";
1040 compatible = "sandbox,pinctrl";
1042 pinctrl-names = "default";
1043 pinctrl-0 = <&gpios>;
1069 compatible = "sandbox,hwspinlock";
1073 compatible = "sandbox,dma";
1076 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1077 dma-names = "m2m", "tx0", "rx0";
1081 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1082 * end of the test. If parent mdio is removed first, clean-up of the
1083 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1084 * active at the end of the test. That it turn doesn't allow the mdio
1085 * class to be destroyed, triggering an error.
1088 compatible = "sandbox,mdio-mux";
1089 #address-cells = <1>;
1091 mdio-parent-bus = <&mdio>;
1102 compatible = "sandbox,mdio";
1106 compatible = "simple-pm-bus";
1107 clocks = <&clk_sandbox 4>;
1108 power-domains = <&pwrdom 1>;
1111 resetc2: syscon-reset {
1112 compatible = "syscon-reset";
1114 regmap = <&syscon0>;
1116 mask = <0x27FFFFFF>;
1121 compatible = "sandbox,misc_sandbox";
1122 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1123 reset-names = "valid", "no_mask", "out_of_range";
1127 #include "sandbox_pmic.dtsi"