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 str-value = "test string";
115 interrupts-extended = <&irq 3 0>;
120 compatible = "not,compatible";
127 backlight: backlight {
128 compatible = "pwm-backlight";
129 enable-gpios = <&gpio_a 1>;
130 power-supply = <&ldo_1>;
131 pwms = <&pwm 0 1000>;
132 default-brightness-level = <5>;
133 brightness-levels = <0 16 32 64 128 170 202 234 255>;
138 compatible = "sandbox,phy";
143 compatible = "simple-bus";
149 compatible = "denx,u-boot-fdt-test";
154 phy_provider0: gen_phy@0 {
155 compatible = "sandbox,phy";
159 phy_provider1: gen_phy@1 {
160 compatible = "sandbox,phy";
165 phy_provider2: gen_phy@2 {
166 compatible = "sandbox,phy";
170 gen_phy_user: gen_phy_user {
171 compatible = "simple-bus";
172 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
173 phy-names = "phy1", "phy2", "phy3";
176 gen_phy_user1: gen_phy_user1 {
177 compatible = "simple-bus";
178 phys = <&phy_provider0 0>, <&phy_provider2>;
179 phy-names = "phy1", "phy2";
183 #address-cells = <1>;
185 compatible = "denx,u-boot-test-bus";
190 compatible = "denx,u-boot-fdt-test";
196 compatible = "denx,u-boot-fdt-test";
202 compatible = "denx,u-boot-fdt-test";
213 compatible = "google,another-fdt-test";
220 compatible = "google,another-fdt-test";
224 compatible = "denx,u-boot-fdt-test";
228 compatible = "denx,u-boot-fdt-test";
232 compatible = "denx,u-boot-fdt-test1";
236 compatible = "mediatek,u-boot-fdt-test";
237 #address-cells = <1>;
254 compatible = "denx,u-boot-devres-test";
258 compatible = "denx,u-boot-acpi-test";
260 compatible = "denx,u-boot-acpi-test";
265 compatible = "denx,u-boot-acpi-test";
269 clk_fixed: clk-fixed {
270 compatible = "fixed-clock";
272 clock-frequency = <1234>;
275 clk_fixed_factor: clk-fixed-factor {
276 compatible = "fixed-factor-clock";
280 clocks = <&clk_fixed>;
284 compatible = "fixed-clock";
286 clock-frequency = <20000000>;
290 clk_sandbox: clk-sbox {
291 compatible = "sandbox,clk";
293 assigned-clocks = <&clk_sandbox 3>;
294 assigned-clock-rates = <321>;
298 compatible = "sandbox,clk-test";
299 clocks = <&clk_fixed>,
304 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
308 compatible = "sandbox,clk-ccf";
312 compatible = "sandbox,eth";
313 reg = <0x10002000 0x1000>;
314 fake-host-hwaddr = [00 00 66 44 22 00];
317 eth_5: eth@10003000 {
318 compatible = "sandbox,eth";
319 reg = <0x10003000 0x1000>;
320 fake-host-hwaddr = [00 00 66 44 22 11];
324 compatible = "sandbox,eth";
325 reg = <0x10005000 0x1000>;
326 fake-host-hwaddr = [00 00 66 44 22 33];
330 compatible = "sandbox,eth";
331 reg = <0x10004000 0x1000>;
332 fake-host-hwaddr = [00 00 66 44 22 22];
336 sandbox_firmware: sandbox-firmware {
337 compatible = "sandbox,firmware";
342 compatible = "sandbox,pinctrl-gpio";
345 compatible = "sandbox,gpio";
348 gpio-bank-name = "a";
349 sandbox,gpio-count = <20>;
350 hog_input_active_low {
353 gpios = <0 GPIO_ACTIVE_LOW>;
355 hog_input_active_high {
358 gpios = <1 GPIO_ACTIVE_HIGH>;
363 gpios = <2 GPIO_ACTIVE_HIGH>;
368 gpios = <3 GPIO_ACTIVE_HIGH>;
372 gpio_b: extra-gpios {
373 compatible = "sandbox,gpio";
376 gpio-bank-name = "b";
377 sandbox,gpio-count = <10>;
380 gpio_c: pinmux-gpios {
381 compatible = "sandbox,gpio";
384 gpio-bank-name = "c";
385 sandbox,gpio-count = <10>;
390 #address-cells = <1>;
393 compatible = "sandbox,i2c";
394 clock-frequency = <100000>;
397 compatible = "i2c-eeprom";
398 sandbox,emul = <&emul_eeprom>;
403 compatible = "sandbox-rtc";
404 sandbox,emul = <&emul0>;
409 compatible = "sandbox-rtc";
410 sandbox,emul = <&emul1>;
415 compatible = "sandbox,i2c-emul-parent";
416 emul_eeprom: emul-eeprom {
417 compatible = "sandbox,i2c-eeprom";
418 sandbox,filename = "i2c.bin";
419 sandbox,size = <256>;
422 compatible = "sandbox,i2c-rtc";
425 compatible = "sandbox,i2c-rtc";
429 sandbox_pmic: sandbox_pmic {
431 sandbox,emul = <&emul_pmic0>;
436 sandbox,emul = <&emul_pmic1>;
441 compatible = "u-boot,bootcount-rtc";
447 compatible = "sandbox,adc";
448 vdd-supply = <&buck2>;
449 vss-microvolts = <0>;
453 compatible = "sandbox,irq";
454 interrupt-controller;
455 #interrupt-cells = <2>;
460 compatible = "sandbox,lcd-sdl";
466 compatible = "gpio-leds";
469 gpios = <&gpio_a 1 0>;
470 label = "sandbox:red";
474 gpios = <&gpio_a 2 0>;
475 label = "sandbox:green";
479 gpios = <&gpio_a 5 0>;
480 label = "sandbox:default_on";
481 default-state = "on";
485 gpios = <&gpio_a 6 0>;
486 label = "sandbox:default_off";
487 default-state = "off";
492 compatible = "sandbox,mbox";
497 compatible = "sandbox,mbox-test";
498 mboxes = <&mbox 100>, <&mbox 1>;
499 mbox-names = "other", "test";
504 compatible = "sandbox,cpu_sandbox";
509 compatible = "sandbox,cpu_sandbox";
514 compatible = "sandbox,cpu_sandbox";
520 compatible = "sandbox,i2s";
521 #sound-dai-cells = <1>;
522 sandbox,silent; /* Don't emit sounds while testing */
526 compatible = "sandbox,nop_sandbox1";
528 compatible = "sandbox,nop_sandbox2";
532 compatible = "sandbox,nop_sandbox2";
538 compatible = "sandbox,misc_sandbox";
542 compatible = "sandbox,mmc";
546 compatible = "sandbox,mmc";
550 compatible = "sandbox,mmc";
554 compatible = "sandbox,pch";
558 compatible = "sandbox,pci";
560 bus-range = <0x00 0xff>;
561 #address-cells = <3>;
563 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
564 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
566 compatible = "pci-generic";
567 reg = <0x0000 0 0 0 0>;
568 sandbox,emul = <&swap_case_emul0_0>;
571 compatible = "pci-generic";
572 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
573 reg = <0x02000814 0 0 0 0
575 sandbox,emul = <&swap_case_emul0_1>;
578 compatible = "sandbox,p2sb";
579 reg = <0x02001010 0 0 0 0>;
580 sandbox,emul = <&p2sb_emul>;
583 intel,p2sb-port-id = <3>;
584 compatible = "sandbox,adder";
588 compatible = "sandbox,pmc";
589 reg = <0xf000 0 0 0 0>;
590 sandbox,emul = <&pmc_emul1e>;
592 gpe0-dwx-mask = <0xf>;
593 gpe0-dwx-shift-base = <4>;
599 compatible = "pci-generic";
600 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
601 reg = <0x0100f810 0 0 0 0>;
602 sandbox,emul = <&swap_case_emul0_1f>;
607 compatible = "sandbox,pci-emul-parent";
608 swap_case_emul0_0: emul0@0,0 {
609 compatible = "sandbox,swap-case";
611 swap_case_emul0_1: emul0@1,0 {
612 compatible = "sandbox,swap-case";
615 swap_case_emul0_1f: emul0@1f,0 {
616 compatible = "sandbox,swap-case";
618 p2sb_emul: emul@2,0 {
619 compatible = "sandbox,p2sb-emul";
621 pmc_emul1e: emul@1e,0 {
622 compatible = "sandbox,pmc-emul";
627 compatible = "sandbox,pci";
629 bus-range = <0x00 0xff>;
630 #address-cells = <3>;
632 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
633 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
634 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
635 0x0c 0x00 0x1234 0x5678
636 0x10 0x00 0x1234 0x5678>;
638 reg = <0x8000 0 0 0 0>;
643 compatible = "sandbox,pci";
645 bus-range = <0x00 0xff>;
646 #address-cells = <3>;
648 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
649 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
650 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
652 compatible = "pci-generic";
653 reg = <0xf800 0 0 0 0>;
654 sandbox,emul = <&swap_case_emul2_1f>;
659 compatible = "sandbox,pci-emul-parent";
660 swap_case_emul2_1f: emul2@1f,0 {
661 compatible = "sandbox,swap-case";
666 compatible = "sandbox,pci_ep";
670 compatible = "simple-bus";
672 compatible = "denx,u-boot-probe-test";
676 compatible = "denx,u-boot-probe-test";
680 compatible = "denx,u-boot-probe-test";
684 compatible = "denx,u-boot-probe-test";
685 first-syscon = <&syscon0>;
686 second-sys-ctrl = <&another_system_controller>;
687 third-syscon = <&syscon2>;
691 pwrdom: power-domain {
692 compatible = "sandbox,power-domain";
693 #power-domain-cells = <1>;
697 compatible = "sandbox,power-domain-test";
698 power-domains = <&pwrdom 2>;
702 compatible = "sandbox,pwm";
707 compatible = "sandbox,pwm";
712 compatible = "sandbox,ram";
716 compatible = "sandbox,warm-reset";
720 compatible = "sandbox,reset";
724 compatible = "sandbox,reset-ctl";
729 compatible = "sandbox,reset-ctl-test";
730 resets = <&resetc 100>, <&resetc 2>;
731 reset-names = "other", "test";
735 compatible = "sandbox,sandbox-rng";
739 compatible = "sandbox,test-processor";
740 remoteproc-name = "remoteproc-test-dev1";
744 compatible = "sandbox,test-processor";
745 internal-memory-mapped;
746 remoteproc-name = "remoteproc-test-dev2";
750 compatible = "simple-panel";
751 backlight = <&backlight 0 100>;
755 compatible = "sandbox,smem";
759 compatible = "sandbox,sound";
761 sound-dai = <&i2s 0>;
765 sound-dai = <&audio 0>;
770 #address-cells = <1>;
773 compatible = "sandbox,spi";
774 cs-gpios = <0>, <&gpio_a 0>;
777 compatible = "spansion,m25p16", "jedec,spi-nor";
778 spi-max-frequency = <40000000>;
779 sandbox,filename = "spi.bin";
784 compatible = "sandbox,syscon0";
788 another_system_controller: syscon@1 {
789 compatible = "sandbox,syscon1";
797 compatible = "simple-mfd", "syscon";
805 compatible = "sandbox,timer";
806 clock-frequency = <1000000>;
810 compatible = "sandbox,tpm2";
814 compatible = "sandbox,serial";
819 compatible = "sandbox,usb";
822 compatible = "sandbox,usb-hub";
823 #address-cells = <1>;
827 compatible = "sandbox,usb-flash";
833 compatible = "sandbox,usb";
835 compatible = "usb-hub";
836 usb,device-class = <9>;
837 #address-cells = <1>;
840 compatible = "sandbox,usb-hub";
841 #address-cells = <1>;
845 compatible = "sandbox,usb-flash";
846 sandbox,filepath = "testflash.bin";
851 compatible = "sandbox,usb-flash";
852 sandbox,filepath = "testflash1.bin";
857 compatible = "sandbox,usb-flash";
858 sandbox,filepath = "testflash2.bin";
863 compatible = "sandbox,usb-keyb";
878 compatible = "sandbox,usb";
883 compatible = "sandbox,spmi";
884 #address-cells = <0x1>;
888 compatible = "qcom,spmi-pmic";
890 #address-cells = <0x1>;
894 spmi_gpios: gpios@c000 {
895 compatible = "qcom,pm8916-gpio";
896 reg = <0xc000 0x400>;
900 gpio-bank-name="spmi";
906 compatible = "sandbox,wdt";
910 compatible = "sandbox,axi";
911 #address-cells = <0x1>;
914 compatible = "sandbox,sandbox_store";
920 #address-cells = <1>;
922 setting = "sunrise ohoka";
923 other-node = "/some-bus/c-test@5";
924 int-values = <0x1937 72993>;
926 compatible = "denx,u-boot-fdt-test";
931 translation-test@8000 {
932 compatible = "simple-bus";
933 reg = <0x8000 0x4000>;
935 #address-cells = <0x2>;
938 ranges = <0 0x0 0x8000 0x1000
939 1 0x100 0x9000 0x1000
940 2 0x200 0xA000 0x1000
941 3 0x300 0xB000 0x1000
944 dma-ranges = <0 0x000 0x10000000 0x1000
945 1 0x100 0x20000000 0x1000
949 compatible = "denx,u-boot-fdt-dummy";
950 reg = <0 0x0 0x1000>;
951 reg-names = "sandbox-dummy-0";
955 compatible = "denx,u-boot-fdt-dummy";
956 reg = <1 0x100 0x1000>;
961 compatible = "denx,u-boot-fdt-dummy";
962 reg = <2 0x200 0x1000>;
967 compatible = "simple-bus";
968 reg = <3 0x300 0x1000>;
970 #address-cells = <0x1>;
974 compatible = "denx,u-boot-fdt-dummy";
981 compatible = "sandbox,sandbox_osd";
985 compatible = "sandbox,board_sandbox";
989 compatible = "sandbox,tee";
993 compatible = "sandbox,virtio1";
997 compatible = "sandbox,virtio2";
1001 compatible = "sandbox,pinctrl";
1003 pinctrl-names = "default";
1004 pinctrl-0 = <&gpios>;
1030 compatible = "sandbox,hwspinlock";
1034 compatible = "sandbox,dma";
1037 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1038 dma-names = "m2m", "tx0", "rx0";
1042 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1043 * end of the test. If parent mdio is removed first, clean-up of the
1044 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1045 * active at the end of the test. That it turn doesn't allow the mdio
1046 * class to be destroyed, triggering an error.
1049 compatible = "sandbox,mdio-mux";
1050 #address-cells = <1>;
1052 mdio-parent-bus = <&mdio>;
1063 compatible = "sandbox,mdio";
1067 compatible = "simple-pm-bus";
1068 clocks = <&clk_sandbox 4>;
1069 power-domains = <&pwrdom 1>;
1072 resetc2: syscon-reset {
1073 compatible = "syscon-reset";
1075 regmap = <&syscon0>;
1077 mask = <0x27FFFFFF>;
1082 compatible = "sandbox,misc_sandbox";
1083 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1084 reset-names = "valid", "no_mask", "out_of_range";
1088 #include "sandbox_pmic.dtsi"