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>;
153 compatible = "sandbox,phy";
158 compatible = "simple-bus";
164 compatible = "denx,u-boot-fdt-test";
169 phy_provider0: gen_phy@0 {
170 compatible = "sandbox,phy";
174 phy_provider1: gen_phy@1 {
175 compatible = "sandbox,phy";
180 phy_provider2: gen_phy@2 {
181 compatible = "sandbox,phy";
185 gen_phy_user: gen_phy_user {
186 compatible = "simple-bus";
187 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
188 phy-names = "phy1", "phy2", "phy3";
191 gen_phy_user1: gen_phy_user1 {
192 compatible = "simple-bus";
193 phys = <&phy_provider0 0>, <&phy_provider2>;
194 phy-names = "phy1", "phy2";
198 #address-cells = <1>;
200 compatible = "denx,u-boot-test-bus";
205 compatible = "denx,u-boot-fdt-test";
211 compatible = "denx,u-boot-fdt-test";
217 compatible = "denx,u-boot-fdt-test";
228 compatible = "google,another-fdt-test";
235 compatible = "google,another-fdt-test";
239 compatible = "denx,u-boot-fdt-test";
243 compatible = "denx,u-boot-fdt-test";
247 compatible = "denx,u-boot-fdt-test1";
251 compatible = "mediatek,u-boot-fdt-test";
252 #address-cells = <1>;
269 compatible = "denx,u-boot-devres-test";
272 acpi_test1: acpi-test {
273 compatible = "denx,u-boot-acpi-test";
274 acpi-ssdt-test-data = "ab";
275 acpi-dsdt-test-data = "hi";
277 compatible = "denx,u-boot-acpi-test";
281 acpi_test2: acpi-test2 {
282 compatible = "denx,u-boot-acpi-test";
283 acpi-ssdt-test-data = "cd";
284 acpi-dsdt-test-data = "jk";
288 clk_fixed: clk-fixed {
289 compatible = "fixed-clock";
291 clock-frequency = <1234>;
294 clk_fixed_factor: clk-fixed-factor {
295 compatible = "fixed-factor-clock";
299 clocks = <&clk_fixed>;
303 compatible = "fixed-clock";
305 clock-frequency = <20000000>;
309 clk_sandbox: clk-sbox {
310 compatible = "sandbox,clk";
312 assigned-clocks = <&clk_sandbox 3>;
313 assigned-clock-rates = <321>;
317 compatible = "sandbox,clk-test";
318 clocks = <&clk_fixed>,
323 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
327 compatible = "sandbox,clk-ccf";
331 compatible = "sandbox,eth";
332 reg = <0x10002000 0x1000>;
333 fake-host-hwaddr = [00 00 66 44 22 00];
336 eth_5: eth@10003000 {
337 compatible = "sandbox,eth";
338 reg = <0x10003000 0x1000>;
339 fake-host-hwaddr = [00 00 66 44 22 11];
343 compatible = "sandbox,eth";
344 reg = <0x10005000 0x1000>;
345 fake-host-hwaddr = [00 00 66 44 22 33];
349 compatible = "sandbox,eth";
350 reg = <0x10004000 0x1000>;
351 fake-host-hwaddr = [00 00 66 44 22 22];
355 sandbox_firmware: sandbox-firmware {
356 compatible = "sandbox,firmware";
361 compatible = "sandbox,pinctrl-gpio";
364 compatible = "sandbox,gpio";
367 gpio-bank-name = "a";
368 sandbox,gpio-count = <20>;
369 hog_input_active_low {
372 gpios = <10 GPIO_ACTIVE_LOW>;
374 hog_input_active_high {
377 gpios = <11 GPIO_ACTIVE_HIGH>;
382 gpios = <12 GPIO_ACTIVE_HIGH>;
387 gpios = <13 GPIO_ACTIVE_HIGH>;
391 gpio_b: extra-gpios {
392 compatible = "sandbox,gpio";
395 gpio-bank-name = "b";
396 sandbox,gpio-count = <10>;
399 gpio_c: pinmux-gpios {
400 compatible = "sandbox,gpio";
403 gpio-bank-name = "c";
404 sandbox,gpio-count = <10>;
409 #address-cells = <1>;
412 compatible = "sandbox,i2c";
413 clock-frequency = <100000>;
416 compatible = "i2c-eeprom";
417 sandbox,emul = <&emul_eeprom>;
422 compatible = "sandbox-rtc";
423 sandbox,emul = <&emul0>;
428 compatible = "sandbox-rtc";
429 sandbox,emul = <&emul1>;
434 compatible = "sandbox,i2c-emul-parent";
435 emul_eeprom: emul-eeprom {
436 compatible = "sandbox,i2c-eeprom";
437 sandbox,filename = "i2c.bin";
438 sandbox,size = <256>;
441 compatible = "sandbox,i2c-rtc";
444 compatible = "sandbox,i2c-rtc";
448 sandbox_pmic: sandbox_pmic {
450 sandbox,emul = <&emul_pmic0>;
455 sandbox,emul = <&emul_pmic1>;
460 compatible = "u-boot,bootcount-rtc";
466 compatible = "sandbox,adc";
467 vdd-supply = <&buck2>;
468 vss-microvolts = <0>;
472 compatible = "sandbox,irq";
473 interrupt-controller;
474 #interrupt-cells = <2>;
479 compatible = "sandbox,lcd-sdl";
485 compatible = "gpio-leds";
488 gpios = <&gpio_a 1 0>;
489 label = "sandbox:red";
493 gpios = <&gpio_a 2 0>;
494 label = "sandbox:green";
498 gpios = <&gpio_a 5 0>;
499 label = "sandbox:default_on";
500 default-state = "on";
504 gpios = <&gpio_a 6 0>;
505 label = "sandbox:default_off";
506 default-state = "off";
511 compatible = "sandbox,mbox";
516 compatible = "sandbox,mbox-test";
517 mboxes = <&mbox 100>, <&mbox 1>;
518 mbox-names = "other", "test";
523 compatible = "sandbox,cpu_sandbox";
528 compatible = "sandbox,cpu_sandbox";
533 compatible = "sandbox,cpu_sandbox";
539 compatible = "sandbox,soc";
543 compatible = "sandbox,i2s";
544 #sound-dai-cells = <1>;
545 sandbox,silent; /* Don't emit sounds while testing */
549 compatible = "sandbox,nop_sandbox1";
551 compatible = "sandbox,nop_sandbox2";
555 compatible = "sandbox,nop_sandbox2";
561 compatible = "sandbox,misc_sandbox";
565 compatible = "sandbox,mmc";
569 compatible = "sandbox,mmc";
573 compatible = "sandbox,mmc";
577 compatible = "sandbox,pch";
581 compatible = "sandbox,pci";
583 bus-range = <0x00 0xff>;
584 #address-cells = <3>;
586 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
587 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
589 compatible = "pci-generic";
590 reg = <0x0000 0 0 0 0>;
591 sandbox,emul = <&swap_case_emul0_0>;
594 compatible = "pci-generic";
595 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
596 reg = <0x02000814 0 0 0 0
598 sandbox,emul = <&swap_case_emul0_1>;
601 compatible = "sandbox,p2sb";
602 reg = <0x02001010 0 0 0 0>;
603 sandbox,emul = <&p2sb_emul>;
606 intel,p2sb-port-id = <3>;
607 compatible = "sandbox,adder";
611 compatible = "sandbox,pmc";
612 reg = <0xf000 0 0 0 0>;
613 sandbox,emul = <&pmc_emul1e>;
615 gpe0-dwx-mask = <0xf>;
616 gpe0-dwx-shift-base = <4>;
622 compatible = "pci-generic";
623 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
624 reg = <0x0100f810 0 0 0 0>;
625 sandbox,emul = <&swap_case_emul0_1f>;
630 compatible = "sandbox,pci-emul-parent";
631 swap_case_emul0_0: emul0@0,0 {
632 compatible = "sandbox,swap-case";
634 swap_case_emul0_1: emul0@1,0 {
635 compatible = "sandbox,swap-case";
638 swap_case_emul0_1f: emul0@1f,0 {
639 compatible = "sandbox,swap-case";
641 p2sb_emul: emul@2,0 {
642 compatible = "sandbox,p2sb-emul";
644 pmc_emul1e: emul@1e,0 {
645 compatible = "sandbox,pmc-emul";
650 compatible = "sandbox,pci";
652 bus-range = <0x00 0xff>;
653 #address-cells = <3>;
655 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
656 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
657 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
658 0x0c 0x00 0x1234 0x5678
659 0x10 0x00 0x1234 0x5678>;
661 reg = <0x8000 0 0 0 0>;
666 compatible = "sandbox,pci";
668 bus-range = <0x00 0xff>;
669 #address-cells = <3>;
671 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
672 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
673 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
675 compatible = "pci-generic";
676 reg = <0xf800 0 0 0 0>;
677 sandbox,emul = <&swap_case_emul2_1f>;
682 compatible = "sandbox,pci-emul-parent";
683 swap_case_emul2_1f: emul2@1f,0 {
684 compatible = "sandbox,swap-case";
689 compatible = "sandbox,pci_ep";
693 compatible = "simple-bus";
695 compatible = "denx,u-boot-probe-test";
699 compatible = "denx,u-boot-probe-test";
703 compatible = "denx,u-boot-probe-test";
707 compatible = "denx,u-boot-probe-test";
708 first-syscon = <&syscon0>;
709 second-sys-ctrl = <&another_system_controller>;
710 third-syscon = <&syscon2>;
714 pwrdom: power-domain {
715 compatible = "sandbox,power-domain";
716 #power-domain-cells = <1>;
720 compatible = "sandbox,power-domain-test";
721 power-domains = <&pwrdom 2>;
725 compatible = "sandbox,pwm";
730 compatible = "sandbox,pwm";
735 compatible = "sandbox,ram";
739 compatible = "sandbox,warm-reset";
743 compatible = "sandbox,reset";
747 compatible = "sandbox,reset-ctl";
752 compatible = "sandbox,reset-ctl-test";
753 resets = <&resetc 100>, <&resetc 2>;
754 reset-names = "other", "test";
758 compatible = "sandbox,sandbox-rng";
762 compatible = "sandbox,test-processor";
763 remoteproc-name = "remoteproc-test-dev1";
767 compatible = "sandbox,test-processor";
768 internal-memory-mapped;
769 remoteproc-name = "remoteproc-test-dev2";
773 compatible = "simple-panel";
774 backlight = <&backlight 0 100>;
778 compatible = "sandbox,smem";
782 compatible = "sandbox,sound";
784 sound-dai = <&i2s 0>;
788 sound-dai = <&audio 0>;
793 #address-cells = <1>;
796 compatible = "sandbox,spi";
797 cs-gpios = <0>, <&gpio_a 0>;
800 compatible = "spansion,m25p16", "jedec,spi-nor";
801 spi-max-frequency = <40000000>;
802 sandbox,filename = "spi.bin";
807 compatible = "sandbox,syscon0";
811 another_system_controller: syscon@1 {
812 compatible = "sandbox,syscon1";
820 compatible = "simple-mfd", "syscon";
828 compatible = "sandbox,timer";
829 clock-frequency = <1000000>;
833 compatible = "sandbox,tpm2";
837 compatible = "sandbox,serial";
842 compatible = "sandbox,usb";
845 compatible = "sandbox,usb-hub";
846 #address-cells = <1>;
850 compatible = "sandbox,usb-flash";
856 compatible = "sandbox,usb";
858 compatible = "usb-hub";
859 usb,device-class = <9>;
860 #address-cells = <1>;
863 compatible = "sandbox,usb-hub";
864 #address-cells = <1>;
868 compatible = "sandbox,usb-flash";
869 sandbox,filepath = "testflash.bin";
874 compatible = "sandbox,usb-flash";
875 sandbox,filepath = "testflash1.bin";
880 compatible = "sandbox,usb-flash";
881 sandbox,filepath = "testflash2.bin";
886 compatible = "sandbox,usb-keyb";
901 compatible = "sandbox,usb";
906 compatible = "sandbox,spmi";
907 #address-cells = <0x1>;
911 compatible = "qcom,spmi-pmic";
913 #address-cells = <0x1>;
917 spmi_gpios: gpios@c000 {
918 compatible = "qcom,pm8916-gpio";
919 reg = <0xc000 0x400>;
923 gpio-bank-name="spmi";
929 compatible = "sandbox,wdt";
933 compatible = "sandbox,axi";
934 #address-cells = <0x1>;
937 compatible = "sandbox,sandbox_store";
943 #address-cells = <1>;
945 setting = "sunrise ohoka";
946 other-node = "/some-bus/c-test@5";
947 int-values = <0x1937 72993>;
948 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
950 compatible = "denx,u-boot-fdt-test";
955 translation-test@8000 {
956 compatible = "simple-bus";
957 reg = <0x8000 0x4000>;
959 #address-cells = <0x2>;
962 ranges = <0 0x0 0x8000 0x1000
963 1 0x100 0x9000 0x1000
964 2 0x200 0xA000 0x1000
965 3 0x300 0xB000 0x1000
968 dma-ranges = <0 0x000 0x10000000 0x1000
969 1 0x100 0x20000000 0x1000
973 compatible = "denx,u-boot-fdt-dummy";
974 reg = <0 0x0 0x1000>;
975 reg-names = "sandbox-dummy-0";
979 compatible = "denx,u-boot-fdt-dummy";
980 reg = <1 0x100 0x1000>;
985 compatible = "denx,u-boot-fdt-dummy";
986 reg = <2 0x200 0x1000>;
991 compatible = "simple-bus";
992 reg = <3 0x300 0x1000>;
994 #address-cells = <0x1>;
998 compatible = "denx,u-boot-fdt-dummy";
1005 compatible = "sandbox,sandbox_osd";
1009 compatible = "sandbox,board_sandbox";
1013 compatible = "sandbox,tee";
1017 compatible = "sandbox,virtio1";
1021 compatible = "sandbox,virtio2";
1025 compatible = "sandbox,pinctrl";
1027 pinctrl-names = "default";
1028 pinctrl-0 = <&gpios>;
1054 compatible = "sandbox,hwspinlock";
1058 compatible = "sandbox,dma";
1061 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1062 dma-names = "m2m", "tx0", "rx0";
1066 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1067 * end of the test. If parent mdio is removed first, clean-up of the
1068 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1069 * active at the end of the test. That it turn doesn't allow the mdio
1070 * class to be destroyed, triggering an error.
1073 compatible = "sandbox,mdio-mux";
1074 #address-cells = <1>;
1076 mdio-parent-bus = <&mdio>;
1087 compatible = "sandbox,mdio";
1091 compatible = "simple-pm-bus";
1092 clocks = <&clk_sandbox 4>;
1093 power-domains = <&pwrdom 1>;
1096 resetc2: syscon-reset {
1097 compatible = "syscon-reset";
1099 regmap = <&syscon0>;
1101 mask = <0x27FFFFFF>;
1106 compatible = "sandbox,misc_sandbox";
1107 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1108 reset-names = "valid", "no_mask", "out_of_range";
1112 #include "sandbox_pmic.dtsi"