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>;
348 gpio_b: extra-gpios {
349 compatible = "sandbox,gpio";
352 gpio-bank-name = "b";
353 sandbox,gpio-count = <10>;
356 gpio_c: pinmux-gpios {
357 compatible = "sandbox,gpio";
360 gpio-bank-name = "c";
361 sandbox,gpio-count = <10>;
366 #address-cells = <1>;
369 compatible = "sandbox,i2c";
370 clock-frequency = <100000>;
373 compatible = "i2c-eeprom";
374 sandbox,emul = <&emul_eeprom>;
379 compatible = "sandbox-rtc";
380 sandbox,emul = <&emul0>;
385 compatible = "sandbox-rtc";
386 sandbox,emul = <&emul1>;
391 compatible = "sandbox,i2c-emul-parent";
392 emul_eeprom: emul-eeprom {
393 compatible = "sandbox,i2c-eeprom";
394 sandbox,filename = "i2c.bin";
395 sandbox,size = <256>;
398 compatible = "sandbox,i2c-rtc";
401 compatible = "sandbox,i2c-rtc";
405 sandbox_pmic: sandbox_pmic {
407 sandbox,emul = <&emul_pmic0>;
412 sandbox,emul = <&emul_pmic1>;
417 compatible = "u-boot,bootcount-rtc";
423 compatible = "sandbox,adc";
424 vdd-supply = <&buck2>;
425 vss-microvolts = <0>;
429 compatible = "sandbox,irq";
430 interrupt-controller;
431 #interrupt-cells = <2>;
436 compatible = "sandbox,lcd-sdl";
442 compatible = "gpio-leds";
445 gpios = <&gpio_a 1 0>;
446 label = "sandbox:red";
450 gpios = <&gpio_a 2 0>;
451 label = "sandbox:green";
455 gpios = <&gpio_a 5 0>;
456 label = "sandbox:default_on";
457 default-state = "on";
461 gpios = <&gpio_a 6 0>;
462 label = "sandbox:default_off";
463 default-state = "off";
468 compatible = "sandbox,mbox";
473 compatible = "sandbox,mbox-test";
474 mboxes = <&mbox 100>, <&mbox 1>;
475 mbox-names = "other", "test";
480 compatible = "sandbox,cpu_sandbox";
485 compatible = "sandbox,cpu_sandbox";
490 compatible = "sandbox,cpu_sandbox";
496 compatible = "sandbox,i2s";
497 #sound-dai-cells = <1>;
498 sandbox,silent; /* Don't emit sounds while testing */
502 compatible = "sandbox,nop_sandbox1";
504 compatible = "sandbox,nop_sandbox2";
508 compatible = "sandbox,nop_sandbox2";
514 compatible = "sandbox,misc_sandbox";
518 compatible = "sandbox,mmc";
522 compatible = "sandbox,mmc";
526 compatible = "sandbox,mmc";
530 compatible = "sandbox,pch";
534 compatible = "sandbox,pci";
536 bus-range = <0x00 0xff>;
537 #address-cells = <3>;
539 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
540 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
542 compatible = "pci-generic";
543 reg = <0x0000 0 0 0 0>;
544 sandbox,emul = <&swap_case_emul0_0>;
547 compatible = "pci-generic";
548 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
549 reg = <0x02000814 0 0 0 0
551 sandbox,emul = <&swap_case_emul0_1>;
554 compatible = "sandbox,p2sb";
555 reg = <0x02001010 0 0 0 0>;
556 sandbox,emul = <&p2sb_emul>;
559 intel,p2sb-port-id = <3>;
560 compatible = "sandbox,adder";
564 compatible = "sandbox,pmc";
565 reg = <0xf000 0 0 0 0>;
566 sandbox,emul = <&pmc_emul1e>;
568 gpe0-dwx-mask = <0xf>;
569 gpe0-dwx-shift-base = <4>;
575 compatible = "pci-generic";
576 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
577 reg = <0x0100f810 0 0 0 0>;
578 sandbox,emul = <&swap_case_emul0_1f>;
583 compatible = "sandbox,pci-emul-parent";
584 swap_case_emul0_0: emul0@0,0 {
585 compatible = "sandbox,swap-case";
587 swap_case_emul0_1: emul0@1,0 {
588 compatible = "sandbox,swap-case";
591 swap_case_emul0_1f: emul0@1f,0 {
592 compatible = "sandbox,swap-case";
594 p2sb_emul: emul@2,0 {
595 compatible = "sandbox,p2sb-emul";
597 pmc_emul1e: emul@1e,0 {
598 compatible = "sandbox,pmc-emul";
603 compatible = "sandbox,pci";
605 bus-range = <0x00 0xff>;
606 #address-cells = <3>;
608 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
609 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
610 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
611 0x0c 0x00 0x1234 0x5678
612 0x10 0x00 0x1234 0x5678>;
614 reg = <0x8000 0 0 0 0>;
619 compatible = "sandbox,pci";
621 bus-range = <0x00 0xff>;
622 #address-cells = <3>;
624 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
625 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
626 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
628 compatible = "pci-generic";
629 reg = <0xf800 0 0 0 0>;
630 sandbox,emul = <&swap_case_emul2_1f>;
635 compatible = "sandbox,pci-emul-parent";
636 swap_case_emul2_1f: emul2@1f,0 {
637 compatible = "sandbox,swap-case";
642 compatible = "sandbox,pci_ep";
646 compatible = "simple-bus";
648 compatible = "denx,u-boot-probe-test";
652 compatible = "denx,u-boot-probe-test";
656 compatible = "denx,u-boot-probe-test";
660 compatible = "denx,u-boot-probe-test";
661 first-syscon = <&syscon0>;
662 second-sys-ctrl = <&another_system_controller>;
663 third-syscon = <&syscon2>;
667 pwrdom: power-domain {
668 compatible = "sandbox,power-domain";
669 #power-domain-cells = <1>;
673 compatible = "sandbox,power-domain-test";
674 power-domains = <&pwrdom 2>;
678 compatible = "sandbox,pwm";
683 compatible = "sandbox,pwm";
688 compatible = "sandbox,ram";
692 compatible = "sandbox,warm-reset";
696 compatible = "sandbox,reset";
700 compatible = "sandbox,reset-ctl";
705 compatible = "sandbox,reset-ctl-test";
706 resets = <&resetc 100>, <&resetc 2>;
707 reset-names = "other", "test";
711 compatible = "sandbox,sandbox-rng";
715 compatible = "sandbox,test-processor";
716 remoteproc-name = "remoteproc-test-dev1";
720 compatible = "sandbox,test-processor";
721 internal-memory-mapped;
722 remoteproc-name = "remoteproc-test-dev2";
726 compatible = "simple-panel";
727 backlight = <&backlight 0 100>;
731 compatible = "sandbox,smem";
735 compatible = "sandbox,sound";
737 sound-dai = <&i2s 0>;
741 sound-dai = <&audio 0>;
746 #address-cells = <1>;
749 compatible = "sandbox,spi";
750 cs-gpios = <0>, <&gpio_a 0>;
753 compatible = "spansion,m25p16", "jedec,spi-nor";
754 spi-max-frequency = <40000000>;
755 sandbox,filename = "spi.bin";
760 compatible = "sandbox,syscon0";
764 another_system_controller: syscon@1 {
765 compatible = "sandbox,syscon1";
773 compatible = "simple-mfd", "syscon";
781 compatible = "sandbox,timer";
782 clock-frequency = <1000000>;
786 compatible = "sandbox,tpm2";
790 compatible = "sandbox,serial";
795 compatible = "sandbox,usb";
798 compatible = "sandbox,usb-hub";
799 #address-cells = <1>;
803 compatible = "sandbox,usb-flash";
809 compatible = "sandbox,usb";
811 compatible = "usb-hub";
812 usb,device-class = <9>;
813 #address-cells = <1>;
816 compatible = "sandbox,usb-hub";
817 #address-cells = <1>;
821 compatible = "sandbox,usb-flash";
822 sandbox,filepath = "testflash.bin";
827 compatible = "sandbox,usb-flash";
828 sandbox,filepath = "testflash1.bin";
833 compatible = "sandbox,usb-flash";
834 sandbox,filepath = "testflash2.bin";
839 compatible = "sandbox,usb-keyb";
854 compatible = "sandbox,usb";
859 compatible = "sandbox,spmi";
860 #address-cells = <0x1>;
864 compatible = "qcom,spmi-pmic";
866 #address-cells = <0x1>;
870 spmi_gpios: gpios@c000 {
871 compatible = "qcom,pm8916-gpio";
872 reg = <0xc000 0x400>;
876 gpio-bank-name="spmi";
882 compatible = "sandbox,wdt";
886 compatible = "sandbox,axi";
887 #address-cells = <0x1>;
890 compatible = "sandbox,sandbox_store";
896 #address-cells = <1>;
898 setting = "sunrise ohoka";
899 other-node = "/some-bus/c-test@5";
900 int-values = <0x1937 72993>;
902 compatible = "denx,u-boot-fdt-test";
907 translation-test@8000 {
908 compatible = "simple-bus";
909 reg = <0x8000 0x4000>;
911 #address-cells = <0x2>;
914 ranges = <0 0x0 0x8000 0x1000
915 1 0x100 0x9000 0x1000
916 2 0x200 0xA000 0x1000
917 3 0x300 0xB000 0x1000
920 dma-ranges = <0 0x000 0x10000000 0x1000
921 1 0x100 0x20000000 0x1000
925 compatible = "denx,u-boot-fdt-dummy";
926 reg = <0 0x0 0x1000>;
927 reg-names = "sandbox-dummy-0";
931 compatible = "denx,u-boot-fdt-dummy";
932 reg = <1 0x100 0x1000>;
937 compatible = "denx,u-boot-fdt-dummy";
938 reg = <2 0x200 0x1000>;
943 compatible = "simple-bus";
944 reg = <3 0x300 0x1000>;
946 #address-cells = <0x1>;
950 compatible = "denx,u-boot-fdt-dummy";
957 compatible = "sandbox,sandbox_osd";
961 compatible = "sandbox,board_sandbox";
965 compatible = "sandbox,tee";
969 compatible = "sandbox,virtio1";
973 compatible = "sandbox,virtio2";
977 compatible = "sandbox,pinctrl";
979 pinctrl-names = "default";
980 pinctrl-0 = <&gpios>;
1006 compatible = "sandbox,hwspinlock";
1010 compatible = "sandbox,dma";
1013 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1014 dma-names = "m2m", "tx0", "rx0";
1018 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1019 * end of the test. If parent mdio is removed first, clean-up of the
1020 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1021 * active at the end of the test. That it turn doesn't allow the mdio
1022 * class to be destroyed, triggering an error.
1025 compatible = "sandbox,mdio-mux";
1026 #address-cells = <1>;
1028 mdio-parent-bus = <&mdio>;
1039 compatible = "sandbox,mdio";
1043 #include "sandbox_pmic.dtsi"