3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
8 compatible = "sandbox";
14 eth0 = "/eth@10002000";
26 remoteproc1 = &rproc_1;
27 remoteproc2 = &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)>,
109 uint-value = <(-1234)>;
110 int64-value = /bits/ 64 <0x1111222233334444>;
111 int-array = <5678 9123 4567>;
112 interrupts-extended = <&irq 3 0>;
117 compatible = "not,compatible";
124 backlight: backlight {
125 compatible = "pwm-backlight";
126 enable-gpios = <&gpio_a 1>;
127 power-supply = <&ldo_1>;
128 pwms = <&pwm 0 1000>;
129 default-brightness-level = <5>;
130 brightness-levels = <0 16 32 64 128 170 202 234 255>;
135 compatible = "sandbox,phy";
140 compatible = "simple-bus";
146 compatible = "denx,u-boot-fdt-test";
151 phy_provider0: gen_phy@0 {
152 compatible = "sandbox,phy";
156 phy_provider1: gen_phy@1 {
157 compatible = "sandbox,phy";
162 phy_provider2: gen_phy@2 {
163 compatible = "sandbox,phy";
167 gen_phy_user: gen_phy_user {
168 compatible = "simple-bus";
169 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
170 phy-names = "phy1", "phy2", "phy3";
173 gen_phy_user1: gen_phy_user1 {
174 compatible = "simple-bus";
175 phys = <&phy_provider0 0>, <&phy_provider2>;
176 phy-names = "phy1", "phy2";
180 #address-cells = <1>;
182 compatible = "denx,u-boot-test-bus";
187 compatible = "denx,u-boot-fdt-test";
193 compatible = "denx,u-boot-fdt-test";
199 compatible = "denx,u-boot-fdt-test";
210 compatible = "google,another-fdt-test";
217 compatible = "google,another-fdt-test";
221 compatible = "denx,u-boot-fdt-test";
225 compatible = "denx,u-boot-fdt-test";
229 compatible = "denx,u-boot-fdt-test1";
233 compatible = "mediatek,u-boot-fdt-test";
234 #address-cells = <1>;
251 compatible = "denx,u-boot-devres-test";
255 compatible = "denx,u-boot-acpi-test";
259 compatible = "denx,u-boot-acpi-test";
263 clk_fixed: clk-fixed {
264 compatible = "fixed-clock";
266 clock-frequency = <1234>;
269 clk_fixed_factor: clk-fixed-factor {
270 compatible = "fixed-factor-clock";
274 clocks = <&clk_fixed>;
278 compatible = "fixed-clock";
280 clock-frequency = <20000000>;
284 clk_sandbox: clk-sbox {
285 compatible = "sandbox,clk";
287 assigned-clocks = <&clk_sandbox 3>;
288 assigned-clock-rates = <321>;
292 compatible = "sandbox,clk-test";
293 clocks = <&clk_fixed>,
298 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
302 compatible = "sandbox,clk-ccf";
306 compatible = "sandbox,eth";
307 reg = <0x10002000 0x1000>;
308 fake-host-hwaddr = [00 00 66 44 22 00];
311 eth_5: eth@10003000 {
312 compatible = "sandbox,eth";
313 reg = <0x10003000 0x1000>;
314 fake-host-hwaddr = [00 00 66 44 22 11];
318 compatible = "sandbox,eth";
319 reg = <0x10005000 0x1000>;
320 fake-host-hwaddr = [00 00 66 44 22 33];
324 compatible = "sandbox,eth";
325 reg = <0x10004000 0x1000>;
326 fake-host-hwaddr = [00 00 66 44 22 22];
330 sandbox_firmware: sandbox-firmware {
331 compatible = "sandbox,firmware";
336 compatible = "sandbox,pinctrl-gpio";
339 compatible = "sandbox,gpio";
342 gpio-bank-name = "a";
343 sandbox,gpio-count = <20>;
346 gpio_b: extra-gpios {
347 compatible = "sandbox,gpio";
350 gpio-bank-name = "b";
351 sandbox,gpio-count = <10>;
354 gpio_c: pinmux-gpios {
355 compatible = "sandbox,gpio";
358 gpio-bank-name = "c";
359 sandbox,gpio-count = <10>;
364 #address-cells = <1>;
367 compatible = "sandbox,i2c";
368 clock-frequency = <100000>;
371 compatible = "i2c-eeprom";
372 sandbox,emul = <&emul_eeprom>;
377 compatible = "sandbox-rtc";
378 sandbox,emul = <&emul0>;
383 compatible = "sandbox-rtc";
384 sandbox,emul = <&emul1>;
389 compatible = "sandbox,i2c-emul-parent";
390 emul_eeprom: emul-eeprom {
391 compatible = "sandbox,i2c-eeprom";
392 sandbox,filename = "i2c.bin";
393 sandbox,size = <256>;
396 compatible = "sandbox,i2c-rtc";
399 compatible = "sandbox,i2c-rtc";
403 sandbox_pmic: sandbox_pmic {
405 sandbox,emul = <&emul_pmic0>;
410 sandbox,emul = <&emul_pmic1>;
415 compatible = "u-boot,bootcount-rtc";
421 compatible = "sandbox,adc";
422 vdd-supply = <&buck2>;
423 vss-microvolts = <0>;
427 compatible = "sandbox,irq";
428 interrupt-controller;
429 #interrupt-cells = <2>;
434 compatible = "sandbox,lcd-sdl";
440 compatible = "gpio-leds";
443 gpios = <&gpio_a 1 0>;
444 label = "sandbox:red";
448 gpios = <&gpio_a 2 0>;
449 label = "sandbox:green";
453 gpios = <&gpio_a 5 0>;
454 label = "sandbox:default_on";
455 default-state = "on";
459 gpios = <&gpio_a 6 0>;
460 label = "sandbox:default_off";
461 default-state = "off";
466 compatible = "sandbox,mbox";
471 compatible = "sandbox,mbox-test";
472 mboxes = <&mbox 100>, <&mbox 1>;
473 mbox-names = "other", "test";
478 compatible = "sandbox,cpu_sandbox";
483 compatible = "sandbox,cpu_sandbox";
488 compatible = "sandbox,cpu_sandbox";
494 compatible = "sandbox,i2s";
495 #sound-dai-cells = <1>;
496 sandbox,silent; /* Don't emit sounds while testing */
500 compatible = "sandbox,nop_sandbox1";
502 compatible = "sandbox,nop_sandbox2";
506 compatible = "sandbox,nop_sandbox2";
512 compatible = "sandbox,misc_sandbox";
516 compatible = "sandbox,mmc";
520 compatible = "sandbox,mmc";
524 compatible = "sandbox,mmc";
528 compatible = "sandbox,pch";
532 compatible = "sandbox,pci";
534 bus-range = <0x00 0xff>;
535 #address-cells = <3>;
537 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
538 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
540 compatible = "pci-generic";
541 reg = <0x0000 0 0 0 0>;
542 sandbox,emul = <&swap_case_emul0_0>;
545 compatible = "pci-generic";
546 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
547 reg = <0x02000814 0 0 0 0
549 sandbox,emul = <&swap_case_emul0_1>;
552 compatible = "sandbox,p2sb";
553 reg = <0x02001010 0 0 0 0>;
554 sandbox,emul = <&p2sb_emul>;
557 intel,p2sb-port-id = <3>;
558 compatible = "sandbox,adder";
562 compatible = "sandbox,pmc";
563 reg = <0xf000 0 0 0 0>;
564 sandbox,emul = <&pmc_emul1e>;
566 gpe0-dwx-mask = <0xf>;
567 gpe0-dwx-shift-base = <4>;
573 compatible = "pci-generic";
574 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
575 reg = <0x0100f810 0 0 0 0>;
576 sandbox,emul = <&swap_case_emul0_1f>;
581 compatible = "sandbox,pci-emul-parent";
582 swap_case_emul0_0: emul0@0,0 {
583 compatible = "sandbox,swap-case";
585 swap_case_emul0_1: emul0@1,0 {
586 compatible = "sandbox,swap-case";
589 swap_case_emul0_1f: emul0@1f,0 {
590 compatible = "sandbox,swap-case";
592 p2sb_emul: emul@2,0 {
593 compatible = "sandbox,p2sb-emul";
595 pmc_emul1e: emul@1e,0 {
596 compatible = "sandbox,pmc-emul";
601 compatible = "sandbox,pci";
603 bus-range = <0x00 0xff>;
604 #address-cells = <3>;
606 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
607 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
608 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
609 0x0c 0x00 0x1234 0x5678
610 0x10 0x00 0x1234 0x5678>;
612 reg = <0x8000 0 0 0 0>;
617 compatible = "sandbox,pci";
619 bus-range = <0x00 0xff>;
620 #address-cells = <3>;
622 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
623 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
624 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
626 compatible = "pci-generic";
627 reg = <0xf800 0 0 0 0>;
628 sandbox,emul = <&swap_case_emul2_1f>;
633 compatible = "sandbox,pci-emul-parent";
634 swap_case_emul2_1f: emul2@1f,0 {
635 compatible = "sandbox,swap-case";
640 compatible = "sandbox,pci_ep";
644 compatible = "simple-bus";
646 compatible = "denx,u-boot-probe-test";
650 compatible = "denx,u-boot-probe-test";
654 compatible = "denx,u-boot-probe-test";
658 compatible = "denx,u-boot-probe-test";
659 first-syscon = <&syscon0>;
660 second-sys-ctrl = <&another_system_controller>;
661 third-syscon = <&syscon2>;
665 pwrdom: power-domain {
666 compatible = "sandbox,power-domain";
667 #power-domain-cells = <1>;
671 compatible = "sandbox,power-domain-test";
672 power-domains = <&pwrdom 2>;
676 compatible = "sandbox,pwm";
681 compatible = "sandbox,pwm";
686 compatible = "sandbox,ram";
690 compatible = "sandbox,warm-reset";
694 compatible = "sandbox,reset";
698 compatible = "sandbox,reset-ctl";
703 compatible = "sandbox,reset-ctl-test";
704 resets = <&resetc 100>, <&resetc 2>;
705 reset-names = "other", "test";
709 compatible = "sandbox,sandbox-rng";
713 compatible = "sandbox,test-processor";
714 remoteproc-name = "remoteproc-test-dev1";
718 compatible = "sandbox,test-processor";
719 internal-memory-mapped;
720 remoteproc-name = "remoteproc-test-dev2";
724 compatible = "simple-panel";
725 backlight = <&backlight 0 100>;
729 compatible = "sandbox,smem";
733 compatible = "sandbox,sound";
735 sound-dai = <&i2s 0>;
739 sound-dai = <&audio 0>;
744 #address-cells = <1>;
747 compatible = "sandbox,spi";
748 cs-gpios = <0>, <&gpio_a 0>;
751 compatible = "spansion,m25p16", "jedec,spi-nor";
752 spi-max-frequency = <40000000>;
753 sandbox,filename = "spi.bin";
758 compatible = "sandbox,syscon0";
762 another_system_controller: syscon@1 {
763 compatible = "sandbox,syscon1";
771 compatible = "simple-mfd", "syscon";
779 compatible = "sandbox,timer";
780 clock-frequency = <1000000>;
784 compatible = "sandbox,tpm2";
788 compatible = "sandbox,serial";
793 compatible = "sandbox,usb";
796 compatible = "sandbox,usb-hub";
797 #address-cells = <1>;
801 compatible = "sandbox,usb-flash";
807 compatible = "sandbox,usb";
809 compatible = "usb-hub";
810 usb,device-class = <9>;
812 compatible = "sandbox,usb-hub";
813 #address-cells = <1>;
817 compatible = "sandbox,usb-flash";
818 sandbox,filepath = "testflash.bin";
823 compatible = "sandbox,usb-flash";
824 sandbox,filepath = "testflash1.bin";
829 compatible = "sandbox,usb-flash";
830 sandbox,filepath = "testflash2.bin";
835 compatible = "sandbox,usb-keyb";
843 compatible = "sandbox,usb";
848 compatible = "sandbox,spmi";
849 #address-cells = <0x1>;
853 compatible = "qcom,spmi-pmic";
855 #address-cells = <0x1>;
859 spmi_gpios: gpios@c000 {
860 compatible = "qcom,pm8916-gpio";
861 reg = <0xc000 0x400>;
865 gpio-bank-name="spmi";
871 compatible = "sandbox,wdt";
875 compatible = "sandbox,axi";
876 #address-cells = <0x1>;
879 compatible = "sandbox,sandbox_store";
885 #address-cells = <1>;
887 setting = "sunrise ohoka";
888 other-node = "/some-bus/c-test@5";
889 int-values = <0x1937 72993>;
891 compatible = "denx,u-boot-fdt-test";
896 translation-test@8000 {
897 compatible = "simple-bus";
898 reg = <0x8000 0x4000>;
900 #address-cells = <0x2>;
903 ranges = <0 0x0 0x8000 0x1000
904 1 0x100 0x9000 0x1000
905 2 0x200 0xA000 0x1000
906 3 0x300 0xB000 0x1000
909 dma-ranges = <0 0x000 0x10000000 0x1000
910 1 0x100 0x20000000 0x1000
914 compatible = "denx,u-boot-fdt-dummy";
915 reg = <0 0x0 0x1000>;
916 reg-names = "sandbox-dummy-0";
920 compatible = "denx,u-boot-fdt-dummy";
921 reg = <1 0x100 0x1000>;
926 compatible = "denx,u-boot-fdt-dummy";
927 reg = <2 0x200 0x1000>;
932 compatible = "simple-bus";
933 reg = <3 0x300 0x1000>;
935 #address-cells = <0x1>;
939 compatible = "denx,u-boot-fdt-dummy";
946 compatible = "sandbox,sandbox_osd";
950 compatible = "sandbox,board_sandbox";
954 compatible = "sandbox,tee";
958 compatible = "sandbox,virtio1";
962 compatible = "sandbox,virtio2";
966 compatible = "sandbox,pinctrl";
968 pinctrl-names = "default";
969 pinctrl-0 = <&gpios>;
995 compatible = "sandbox,hwspinlock";
999 compatible = "sandbox,dma";
1002 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1003 dma-names = "m2m", "tx0", "rx0";
1007 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1008 * end of the test. If parent mdio is removed first, clean-up of the
1009 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1010 * active at the end of the test. That it turn doesn't allow the mdio
1011 * class to be destroyed, triggering an error.
1014 compatible = "sandbox,mdio-mux";
1015 #address-cells = <1>;
1017 mdio-parent-bus = <&mdio>;
1028 compatible = "sandbox,mdio";
1032 #include "sandbox_pmic.dtsi"