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)>;
124 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
125 test5-gpios = <&gpio_a 19>;
128 uint-value = <(-1234)>;
129 int64-value = /bits/ 64 <0x1111222233334444>;
130 int-array = <5678 9123 4567>;
131 str-value = "test string";
132 interrupts-extended = <&irq 3 0>;
134 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
139 compatible = "not,compatible";
146 backlight: backlight {
147 compatible = "pwm-backlight";
148 enable-gpios = <&gpio_a 1>;
149 power-supply = <&ldo_1>;
150 pwms = <&pwm 0 1000>;
151 default-brightness-level = <5>;
152 brightness-levels = <0 16 32 64 128 170 202 234 255>;
156 compatible = "simple-bus";
158 compatible = "sandbox,phy";
163 compatible = "simple-bus";
169 compatible = "denx,u-boot-fdt-test";
174 phy_provider0: gen_phy@0 {
175 compatible = "sandbox,phy";
179 phy_provider1: gen_phy@1 {
180 compatible = "sandbox,phy";
185 phy_provider2: gen_phy@2 {
186 compatible = "sandbox,phy";
190 gen_phy_user: gen_phy_user {
191 compatible = "simple-bus";
192 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
193 phy-names = "phy1", "phy2", "phy3";
196 gen_phy_user1: gen_phy_user1 {
197 compatible = "simple-bus";
198 phys = <&phy_provider0 0>, <&phy_provider2>;
199 phy-names = "phy1", "phy2";
203 #address-cells = <1>;
205 compatible = "denx,u-boot-test-bus";
210 compatible = "denx,u-boot-fdt-test";
216 compatible = "denx,u-boot-fdt-test";
222 compatible = "denx,u-boot-fdt-test";
233 compatible = "google,another-fdt-test";
240 compatible = "google,another-fdt-test";
244 compatible = "denx,u-boot-fdt-test";
248 compatible = "denx,u-boot-fdt-test";
252 compatible = "denx,u-boot-fdt-test1";
256 compatible = "mediatek,u-boot-fdt-test";
257 #address-cells = <1>;
274 compatible = "denx,u-boot-devres-test";
279 compatible = "denx,u-boot-fdt-test";
280 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
281 test5-gpios = <&gpio_a 19>;
284 acpi_test1: acpi-test {
285 compatible = "denx,u-boot-acpi-test";
286 acpi-ssdt-test-data = "ab";
287 acpi-dsdt-test-data = "hi";
289 compatible = "denx,u-boot-acpi-test";
293 acpi_test2: acpi-test2 {
294 compatible = "denx,u-boot-acpi-test";
295 acpi-ssdt-test-data = "cd";
296 acpi-dsdt-test-data = "jk";
300 clk_fixed: clk-fixed {
301 compatible = "fixed-clock";
303 clock-frequency = <1234>;
306 clk_fixed_factor: clk-fixed-factor {
307 compatible = "fixed-factor-clock";
311 clocks = <&clk_fixed>;
315 compatible = "fixed-clock";
317 clock-frequency = <20000000>;
321 clk_sandbox: clk-sbox {
322 compatible = "sandbox,clk";
324 assigned-clocks = <&clk_sandbox 3>;
325 assigned-clock-rates = <321>;
329 compatible = "sandbox,clk-test";
330 clocks = <&clk_fixed>,
335 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
339 compatible = "sandbox,clk-ccf";
343 compatible = "sandbox,eth";
344 reg = <0x10002000 0x1000>;
345 fake-host-hwaddr = [00 00 66 44 22 00];
348 eth_5: eth@10003000 {
349 compatible = "sandbox,eth";
350 reg = <0x10003000 0x1000>;
351 fake-host-hwaddr = [00 00 66 44 22 11];
355 compatible = "sandbox,eth";
356 reg = <0x10005000 0x1000>;
357 fake-host-hwaddr = [00 00 66 44 22 33];
361 compatible = "sandbox,eth";
362 reg = <0x10004000 0x1000>;
363 fake-host-hwaddr = [00 00 66 44 22 22];
367 sandbox_firmware: sandbox-firmware {
368 compatible = "sandbox,firmware";
371 sandbox-scmi-agent@0 {
372 compatible = "sandbox,scmi-agent";
373 #address-cells = <1>;
376 clk_scmi0: protocol@14 {
381 reset_scmi0: protocol@16 {
387 sandbox-scmi-agent@1 {
388 compatible = "sandbox,scmi-agent";
389 #address-cells = <1>;
392 clk_scmi1: protocol@14 {
404 compatible = "sandbox,pinctrl-gpio";
407 compatible = "sandbox,gpio";
410 gpio-bank-name = "a";
411 sandbox,gpio-count = <20>;
412 hog_input_active_low {
415 gpios = <10 GPIO_ACTIVE_LOW>;
417 hog_input_active_high {
420 gpios = <11 GPIO_ACTIVE_HIGH>;
425 gpios = <12 GPIO_ACTIVE_HIGH>;
430 gpios = <13 GPIO_ACTIVE_HIGH>;
434 gpio_b: extra-gpios {
435 compatible = "sandbox,gpio";
438 gpio-bank-name = "b";
439 sandbox,gpio-count = <10>;
442 gpio_c: pinmux-gpios {
443 compatible = "sandbox,gpio";
446 gpio-bank-name = "c";
447 sandbox,gpio-count = <10>;
452 #address-cells = <1>;
455 compatible = "sandbox,i2c";
456 clock-frequency = <100000>;
459 compatible = "i2c-eeprom";
460 sandbox,emul = <&emul_eeprom>;
462 compatible = "fixed-partitions";
463 #address-cells = <1>;
465 bootcount_i2c: bootcount@10 {
473 compatible = "sandbox-rtc";
474 sandbox,emul = <&emul0>;
479 compatible = "sandbox-rtc";
480 sandbox,emul = <&emul1>;
485 compatible = "sandbox,i2c-emul-parent";
486 emul_eeprom: emul-eeprom {
487 compatible = "sandbox,i2c-eeprom";
488 sandbox,filename = "i2c.bin";
489 sandbox,size = <256>;
492 compatible = "sandbox,i2c-rtc";
495 compatible = "sandbox,i2c-rtc";
499 sandbox_pmic: sandbox_pmic {
501 sandbox,emul = <&emul_pmic0>;
506 sandbox,emul = <&emul_pmic1>;
511 compatible = "u-boot,bootcount-rtc";
517 compatible = "u-boot,bootcount-i2c-eeprom";
518 i2c-eeprom = <&bootcount_i2c>;
522 compatible = "sandbox,adc";
523 vdd-supply = <&buck2>;
524 vss-microvolts = <0>;
528 compatible = "sandbox,irq";
529 interrupt-controller;
530 #interrupt-cells = <2>;
535 compatible = "sandbox,lcd-sdl";
541 compatible = "gpio-leds";
544 gpios = <&gpio_a 1 0>;
545 label = "sandbox:red";
549 gpios = <&gpio_a 2 0>;
550 label = "sandbox:green";
554 gpios = <&gpio_a 5 0>;
555 label = "sandbox:default_on";
556 default-state = "on";
560 gpios = <&gpio_a 6 0>;
561 label = "sandbox:default_off";
562 default-state = "off";
567 compatible = "sandbox,mbox";
572 compatible = "sandbox,mbox-test";
573 mboxes = <&mbox 100>, <&mbox 1>;
574 mbox-names = "other", "test";
578 timebase-frequency = <2000000>;
580 timebase-frequency = <3000000>;
581 compatible = "sandbox,cpu_sandbox";
586 compatible = "sandbox,cpu_sandbox";
591 compatible = "sandbox,cpu_sandbox";
597 compatible = "sandbox,soc";
601 compatible = "sandbox,i2s";
602 #sound-dai-cells = <1>;
603 sandbox,silent; /* Don't emit sounds while testing */
607 compatible = "sandbox,nop_sandbox1";
609 compatible = "sandbox,nop_sandbox2";
613 compatible = "sandbox,nop_sandbox2";
619 compatible = "sandbox,misc_sandbox";
623 compatible = "sandbox,mmc";
627 compatible = "sandbox,mmc";
631 compatible = "sandbox,mmc";
635 compatible = "sandbox,pch";
639 compatible = "sandbox,pci";
641 bus-range = <0x00 0xff>;
642 #address-cells = <3>;
644 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
645 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
647 compatible = "pci-generic";
648 reg = <0x0000 0 0 0 0>;
649 sandbox,emul = <&swap_case_emul0_0>;
652 compatible = "pci-generic";
653 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
654 reg = <0x02000814 0 0 0 0
656 sandbox,emul = <&swap_case_emul0_1>;
659 compatible = "sandbox,p2sb";
660 reg = <0x02001010 0 0 0 0>;
661 sandbox,emul = <&p2sb_emul>;
664 intel,p2sb-port-id = <3>;
665 compatible = "sandbox,adder";
669 compatible = "sandbox,pmc";
670 reg = <0xf000 0 0 0 0>;
671 sandbox,emul = <&pmc_emul1e>;
673 gpe0-dwx-mask = <0xf>;
674 gpe0-dwx-shift-base = <4>;
680 compatible = "pci-generic";
681 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
682 reg = <0x0100f810 0 0 0 0>;
683 sandbox,emul = <&swap_case_emul0_1f>;
688 compatible = "sandbox,pci-emul-parent";
689 swap_case_emul0_0: emul0@0,0 {
690 compatible = "sandbox,swap-case";
692 swap_case_emul0_1: emul0@1,0 {
693 compatible = "sandbox,swap-case";
696 swap_case_emul0_1f: emul0@1f,0 {
697 compatible = "sandbox,swap-case";
699 p2sb_emul: emul@2,0 {
700 compatible = "sandbox,p2sb-emul";
702 pmc_emul1e: emul@1e,0 {
703 compatible = "sandbox,pmc-emul";
708 compatible = "sandbox,pci";
710 bus-range = <0x00 0xff>;
711 #address-cells = <3>;
713 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
714 0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
715 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
716 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
717 0x0c 0x00 0x1234 0x5678
718 0x10 0x00 0x1234 0x5678>;
720 reg = <0x8000 0 0 0 0>;
725 compatible = "sandbox,pci";
727 bus-range = <0x00 0xff>;
728 #address-cells = <3>;
730 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
731 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
732 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
734 compatible = "pci-generic";
735 reg = <0xf800 0 0 0 0>;
736 sandbox,emul = <&swap_case_emul2_1f>;
741 compatible = "sandbox,pci-emul-parent";
742 swap_case_emul2_1f: emul2@1f,0 {
743 compatible = "sandbox,swap-case";
748 compatible = "sandbox,pci_ep";
752 compatible = "simple-bus";
754 compatible = "denx,u-boot-probe-test";
758 compatible = "denx,u-boot-probe-test";
762 compatible = "denx,u-boot-probe-test";
766 compatible = "denx,u-boot-probe-test";
767 first-syscon = <&syscon0>;
768 second-sys-ctrl = <&another_system_controller>;
769 third-syscon = <&syscon2>;
773 pwrdom: power-domain {
774 compatible = "sandbox,power-domain";
775 #power-domain-cells = <1>;
779 compatible = "sandbox,power-domain-test";
780 power-domains = <&pwrdom 2>;
784 compatible = "sandbox,pwm";
789 compatible = "sandbox,pwm";
794 compatible = "sandbox,ram";
798 compatible = "sandbox,warm-reset";
802 compatible = "sandbox,reset";
806 compatible = "sandbox,reset-ctl";
811 compatible = "sandbox,reset-ctl-test";
812 resets = <&resetc 100>, <&resetc 2>;
813 reset-names = "other", "test";
817 compatible = "sandbox,sandbox-rng";
821 compatible = "sandbox,test-processor";
822 remoteproc-name = "remoteproc-test-dev1";
826 compatible = "sandbox,test-processor";
827 internal-memory-mapped;
828 remoteproc-name = "remoteproc-test-dev2";
832 compatible = "simple-panel";
833 backlight = <&backlight 0 100>;
837 compatible = "sandbox,smem";
841 compatible = "sandbox,sound";
843 sound-dai = <&i2s 0>;
847 sound-dai = <&audio 0>;
852 #address-cells = <1>;
855 compatible = "sandbox,spi";
856 cs-gpios = <0>, <&gpio_a 0>;
859 compatible = "spansion,m25p16", "jedec,spi-nor";
860 spi-max-frequency = <40000000>;
861 sandbox,filename = "spi.bin";
866 compatible = "sandbox,syscon0";
870 another_system_controller: syscon@1 {
871 compatible = "sandbox,syscon1";
879 compatible = "simple-mfd", "syscon";
887 compatible = "sandbox,timer";
888 clock-frequency = <1000000>;
892 compatible = "sandbox,timer";
893 sandbox,timebase-frequency-fallback;
897 compatible = "sandbox,tpm2";
901 compatible = "sandbox,serial";
906 compatible = "sandbox,usb";
909 compatible = "sandbox,usb-hub";
910 #address-cells = <1>;
914 compatible = "sandbox,usb-flash";
920 compatible = "sandbox,usb";
922 compatible = "usb-hub";
923 usb,device-class = <9>;
924 #address-cells = <1>;
927 compatible = "sandbox,usb-hub";
928 #address-cells = <1>;
932 compatible = "sandbox,usb-flash";
933 sandbox,filepath = "testflash.bin";
938 compatible = "sandbox,usb-flash";
939 sandbox,filepath = "testflash1.bin";
944 compatible = "sandbox,usb-flash";
945 sandbox,filepath = "testflash2.bin";
950 compatible = "sandbox,usb-keyb";
965 compatible = "sandbox,usb";
970 compatible = "sandbox,spmi";
971 #address-cells = <0x1>;
975 compatible = "qcom,spmi-pmic";
977 #address-cells = <0x1>;
981 spmi_gpios: gpios@c000 {
982 compatible = "qcom,pm8916-gpio";
983 reg = <0xc000 0x400>;
987 gpio-bank-name="spmi";
993 compatible = "sandbox,wdt";
997 compatible = "sandbox,axi";
998 #address-cells = <0x1>;
1001 compatible = "sandbox,sandbox_store";
1007 #address-cells = <1>;
1009 setting = "sunrise ohoka";
1010 other-node = "/some-bus/c-test@5";
1011 int-values = <0x1937 72993>;
1012 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1014 compatible = "denx,u-boot-fdt-test";
1019 translation-test@8000 {
1020 compatible = "simple-bus";
1021 reg = <0x8000 0x4000>;
1023 #address-cells = <0x2>;
1024 #size-cells = <0x1>;
1026 ranges = <0 0x0 0x8000 0x1000
1027 1 0x100 0x9000 0x1000
1028 2 0x200 0xA000 0x1000
1029 3 0x300 0xB000 0x1000
1032 dma-ranges = <0 0x000 0x10000000 0x1000
1033 1 0x100 0x20000000 0x1000
1037 compatible = "denx,u-boot-fdt-dummy";
1038 reg = <0 0x0 0x1000>;
1039 reg-names = "sandbox-dummy-0";
1043 compatible = "denx,u-boot-fdt-dummy";
1044 reg = <1 0x100 0x1000>;
1049 compatible = "denx,u-boot-fdt-dummy";
1050 reg = <2 0x200 0x1000>;
1055 compatible = "simple-bus";
1056 reg = <3 0x300 0x1000>;
1058 #address-cells = <0x1>;
1059 #size-cells = <0x0>;
1062 compatible = "denx,u-boot-fdt-dummy";
1069 compatible = "sandbox,sandbox_osd";
1073 compatible = "sandbox,board_sandbox";
1077 compatible = "sandbox,tee";
1081 compatible = "sandbox,virtio1";
1085 compatible = "sandbox,virtio2";
1089 compatible = "sandbox,scmi-devices";
1090 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1091 resets = <&reset_scmi0 3>;
1095 compatible = "sandbox,pinctrl";
1097 pinctrl-names = "default";
1098 pinctrl-0 = <&gpios>;
1124 compatible = "sandbox,hwspinlock";
1128 compatible = "sandbox,dma";
1131 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1132 dma-names = "m2m", "tx0", "rx0";
1136 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1137 * end of the test. If parent mdio is removed first, clean-up of the
1138 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1139 * active at the end of the test. That it turn doesn't allow the mdio
1140 * class to be destroyed, triggering an error.
1143 compatible = "sandbox,mdio-mux";
1144 #address-cells = <1>;
1146 mdio-parent-bus = <&mdio>;
1157 compatible = "sandbox,mdio";
1161 compatible = "simple-pm-bus";
1162 clocks = <&clk_sandbox 4>;
1163 power-domains = <&pwrdom 1>;
1166 resetc2: syscon-reset {
1167 compatible = "syscon-reset";
1169 regmap = <&syscon0>;
1171 mask = <0x27FFFFFF>;
1176 compatible = "sandbox,misc_sandbox";
1177 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1178 reset-names = "valid", "no_mask", "out_of_range";
1181 some_regmapped-bus {
1182 #address-cells = <0x1>;
1183 #size-cells = <0x1>;
1185 ranges = <0x0 0x0 0x10>;
1186 compatible = "simple-bus";
1190 compatible = "sandbox,regmap_test";
1195 #include "sandbox_pmic.dtsi"