1 // SPDX-License-Identifier: GPL-2.0+
3 * Devicetree file for running sandbox tests
5 * This includes lots of extra devices used by various tests.
7 * Note that SPL use the main sandbox.dts file
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/gpio/sandbox-gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/pinctrl/sandbox-pinmux.h>
16 #include <dt-bindings/mux/mux.h>
20 compatible = "sandbox";
26 ethernet0 = "/eth@10002000";
29 ethernet4 = &dsa_eth0;
31 ethernet6 = "/eth@10004000";
33 ethernet8 = &phy_eth0;
47 remoteproc0 = &rproc_1;
48 remoteproc1 = &rproc_2;
53 testbus3 = "/some-bus";
54 testfdt0 = "/some-bus/c-test@0";
55 testfdt12 = "/some-bus/c-test@1";
57 testfdt5 = "/some-bus/c-test@5";
59 testfdtm1 = &testfdtm1;
60 fdt-dummy0 = "/translation-test@8000/dev@0,0";
61 fdt-dummy1 = "/translation-test@8000/dev@1,100";
62 fdt-dummy2 = "/translation-test@8000/dev@2,200";
63 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
77 testing-str = "testing";
86 compatible = "u-boot,config";
87 bootscr-ram-offset = /bits/ 64 <0x12345678>;
93 compatible = "u-boot,boot-std";
95 filename-prefixes = "/", "/boot/";
96 bootdev-order = "mmc2", "mmc1";
99 compatible = "u-boot,extlinux";
103 compatible = "u-boot,distro-efi";
109 menuitem-gap-y = <1>;
115 menuitem-gap-y = <1>;
119 * This is used for the VBE OS-request tests. A FAT filesystem
120 * created in a partition with the VBE information appearing
121 * before the parititon starts
125 compatible = "fwupd,vbe-simple";
127 skip-offset = <0x200>;
128 area-start = <0x400>;
129 area-size = <0x1000>;
130 state-offset = <0x400>;
132 version-offset = <0x800>;
133 version-size = <0x100>;
137 * This is used for the VBE VPL tests. The MMC device holds the
138 * binman image.bin file. The test progresses through each phase
139 * of U-Boot, loading each in turn from MMC.
141 * Note that the test enables this node (and mmc3) before
147 compatible = "fwupd,vbe-simple";
149 skip-offset = <0x800000>;
151 area-size = <0xe00000>;
152 state-offset = <0xdffc00>;
154 version-offset = <0xdffe00>;
155 version-size = <0x100>;
163 compatible = "sandbox,fuzzing-engine";
167 compatible = "reboot-mode-gpio";
168 gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>;
169 u-boot,env-variable = "bootstatus";
171 mode-download = <0x03>;
174 reboot_mode1: reboot-mode@14 {
175 compatible = "reboot-mode-rtc";
178 u-boot,env-variable = "bootstatus";
180 mode-test = <0x21969147>;
181 mode-download = <0x51939147>;
185 compatible = "sandbox,audio-codec";
186 #sound-dai-cells = <1>;
190 compatible = "gpio-keys";
193 gpios = <&gpio_a 3 0>;
195 linux,code = <BTN_1>;
199 gpios = <&gpio_a 4 0>;
201 linux,code = <BTN_2>;
206 compatible = "adc-keys";
207 io-channels = <&adc 3>;
208 keyup-threshold-microvolt = <3000000>;
212 linux,code = <KEY_F3>;
213 press-threshold-microvolt = <1500000>;
218 linux,code = <KEY_F4>;
219 press-threshold-microvolt = <1000000>;
224 linux,code = <KEY_F5>;
225 press-threshold-microvolt = <500000>;
231 compatible = "google,cros-ec-sandbox";
234 * This describes the flash memory within the EC. Note
235 * that the STM32L flash erases to 0, not 0xff.
238 image-pos = <0x08000000>;
242 /* Information for sandbox */
248 image-pos = <0xf000>;
252 uncomp-size = <0xcf8>;
255 value = [00 01 02 03 04 05 06 07
256 08 09 0a 0b 0c 0d 0e 0f
257 10 11 12 13 14 15 16 17
258 18 19 1a 1b 1c 1d 1e 1f];
262 image-pos = <0x10000>;
267 cros_ec_pwm: cros-ec-pwm {
268 compatible = "google,cros-ec-pwm";
275 compatible = "sandbox,dsi-host";
280 compatible = "denx,u-boot-fdt-test";
284 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
285 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
287 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
288 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
289 <&gpio_b 7 GPIO_IN 3 2 1>,
290 <&gpio_b 8 GPIO_OUT 3 2 1>,
291 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
293 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
294 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
295 <&gpio_c 2 GPIO_OUT>,
296 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
297 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
299 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
300 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
301 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
302 test5-gpios = <&gpio_a 19>;
305 int8-value = /bits/ 8 <0x12>;
306 int16-value = /bits/ 16 <0x1234>;
308 uint-value = <(-1234)>;
309 int64-value = /bits/ 64 <0x1111222233334444>;
310 int-array = <5678 9123 4567>;
311 int64-array = /bits/ 64 <0x1111222233334444 0x4444333322221111>;
312 str-value = "test string";
313 interrupts-extended = <&irq 3 0>;
315 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
317 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
318 <&muxcontroller0 2>, <&muxcontroller0 3>,
320 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
321 mux-syscon = <&syscon3>;
324 clock-frequency = <6500000>;
336 pixelclk-active = <1>;
342 clock-frequency = <9000000>;
354 pixelclk-active = <0>;
357 clock-frequency = <33500000>;
361 hfront-porch = <164>;
369 clock-frequency = <6500000>;
381 pixelclk-active = <1>;
390 compatible = "not,compatible";
397 backlight: backlight {
398 compatible = "pwm-backlight";
399 enable-gpios = <&gpio_a 1>;
400 power-supply = <&ldo_1>;
401 pwms = <&pwm 0 1000>;
402 default-brightness-level = <5>;
403 brightness-levels = <0 16 32 64 128 170 202 234 255>;
407 compatible = "simple-bus";
409 compatible = "sandbox,phy";
414 compatible = "simple-bus";
420 compatible = "denx,u-boot-fdt-test";
424 mux-controls = <&muxcontroller0 0>;
425 mux-control-names = "mux0";
428 phy_provider0: gen_phy@0 {
429 compatible = "sandbox,phy";
433 phy_provider1: gen_phy@1 {
434 compatible = "sandbox,phy";
439 phy_provider2: gen_phy@2 {
440 compatible = "sandbox,phy";
444 phy_provider3: gen_phy@3 {
445 compatible = "sandbox,phy";
449 gen_phy_user: gen_phy_user {
450 compatible = "simple-bus";
451 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
452 phy-names = "phy1", "phy2", "phy3";
455 gen_phy_user1: gen_phy_user1 {
456 compatible = "simple-bus";
457 phys = <&phy_provider0 0>, <&phy_provider2>;
458 phy-names = "phy1", "phy2";
461 gen_phy_user2: gen_phy_user2 {
462 compatible = "simple-bus";
463 phys = <&phy_provider3 0 0>;
468 #address-cells = <1>;
470 compatible = "denx,u-boot-test-bus";
475 compatible = "denx,u-boot-fdt-test";
481 compatible = "denx,u-boot-fdt-test";
487 compatible = "denx,u-boot-fdt-test";
498 compatible = "google,another-fdt-test";
505 compatible = "google,another-fdt-test";
509 compatible = "denx,u-boot-fdt-test";
513 compatible = "denx,u-boot-fdt-test";
517 compatible = "denx,u-boot-fdt-test1";
521 compatible = "mediatek,u-boot-fdt-test";
522 #address-cells = <1>;
539 compatible = "denx,u-boot-devres-test";
544 compatible = "denx,u-boot-fdt-test";
545 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
546 test5-gpios = <&gpio_a 19>;
550 #address-cells = <1>;
552 compatible = "denx,u-boot-test-bus";
553 dma-ranges = <0x10000000 0x00000000 0x00040000>;
556 compatible = "denx,u-boot-fdt-test";
561 #address-cells = <1>;
563 compatible = "denx,u-boot-test-bus";
566 compatible = "denx,u-boot-fdt-test";
570 acpi_test1: acpi-test {
571 compatible = "denx,u-boot-acpi-test";
572 acpi-ssdt-test-data = "ab";
573 acpi-dsdt-test-data = "hi";
575 compatible = "denx,u-boot-acpi-test";
579 acpi_test2: acpi-test2 {
580 compatible = "denx,u-boot-acpi-test";
581 acpi-ssdt-test-data = "cd";
582 acpi-dsdt-test-data = "jk";
586 clk_fixed: clk-fixed {
587 compatible = "fixed-clock";
589 clock-frequency = <1234>;
592 clk_fixed_factor: clk-fixed-factor {
593 compatible = "fixed-factor-clock";
597 clocks = <&clk_fixed>;
601 compatible = "fixed-clock";
603 clock-frequency = <20000000>;
607 clk_sandbox: clk-sbox {
608 compatible = "sandbox,clk";
610 assigned-clocks = <&clk_sandbox 3>;
611 assigned-clock-rates = <321>;
615 compatible = "sandbox,clk-test";
616 clocks = <&clk_fixed>,
621 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
625 compatible = "sandbox,clk-test";
626 assigned-clock-rates = <321>;
630 compatible = "sandbox,clk-test";
631 assigned-clocks = <&clk_sandbox 1>;
635 compatible = "sandbox,clk-test";
636 assigned-clock-rates = <654>, <321>;
637 assigned-clocks = <&clk_sandbox 1>;
641 compatible = "sandbox,clk-ccf";
645 compatible = "sandbox,efi-media";
649 compatible = "sandbox,eth";
650 reg = <0x10002000 0x1000>;
653 eth_5: eth@10003000 {
654 compatible = "sandbox,eth";
655 reg = <0x10003000 0x1000>;
656 nvmem-cells = <ð5_addr>;
657 nvmem-cell-names = "mac-address";
661 compatible = "sandbox,eth";
662 reg = <0x10005000 0x1000>;
663 nvmem-cells = <ð3_addr>;
664 nvmem-cell-names = "mac-address";
668 compatible = "sandbox,eth";
669 reg = <0x10004000 0x1000>;
672 phy_eth0: phy-test-eth {
673 compatible = "sandbox,eth";
674 reg = <0x10007000 0x1000>;
675 mac-address = [ 02 00 11 22 33 49 ];
676 phy-handle = <ðphy1>;
677 phy-mode = "2500base-x";
680 dsa_eth0: dsa-test-eth {
681 compatible = "sandbox,eth";
682 reg = <0x10006000 0x1000>;
683 nvmem-cells = <ð4_addr>;
684 nvmem-cell-names = "mac-address";
688 compatible = "sandbox,dsa";
691 #address-cells = <1>;
696 phy-mode = "rgmii-rxid";
707 phy-mode = "rgmii-txid";
708 fixed-link = <0 1 100 0 0>;
713 ethernet = <&dsa_eth0>;
724 sandbox_firmware: sandbox-firmware {
725 compatible = "sandbox,firmware";
729 compatible = "sandbox,scmi-agent";
730 #address-cells = <1>;
737 clk_scmi: protocol@14 {
742 reset_scmi: protocol@16 {
751 #address-cells = <1>;
756 regulator-name = "sandbox-voltd0";
757 regulator-min-microvolt = <1100000>;
758 regulator-max-microvolt = <3300000>;
762 regulator-name = "sandbox-voltd1";
763 regulator-min-microvolt = <1800000>;
771 compatible = "sandbox,fpga";
775 compatible = "sandbox,pinctrl-gpio";
778 compatible = "sandbox,gpio";
781 gpio-bank-name = "a";
782 sandbox,gpio-count = <20>;
783 hog_input_active_low {
786 gpios = <10 GPIO_ACTIVE_LOW>;
788 hog_input_active_high {
791 gpios = <11 GPIO_ACTIVE_HIGH>;
796 gpios = <12 GPIO_ACTIVE_HIGH>;
801 gpios = <13 GPIO_ACTIVE_HIGH>;
805 gpio_b: extra-gpios {
806 compatible = "sandbox,gpio";
809 gpio-bank-name = "b";
810 sandbox,gpio-count = <10>;
813 gpio_c: pinmux-gpios {
814 compatible = "sandbox,gpio";
817 gpio-bank-name = "c";
818 sandbox,gpio-count = <10>;
823 #address-cells = <1>;
826 compatible = "sandbox,i2c";
827 clock-frequency = <100000>;
828 pinctrl-names = "default";
829 pinctrl-0 = <&pinmux_i2c0_pins>;
832 #address-cells = <1>;
835 compatible = "i2c-eeprom";
836 sandbox,emul = <&emul_eeprom>;
838 compatible = "fixed-partitions";
839 #address-cells = <1>;
841 bootcount_i2c: bootcount@10 {
846 eth3_addr: mac-address@24 {
852 #address-cells = <1>;
855 compatible = "sandbox-rtc";
856 sandbox,emul = <&emul0>;
858 eth4_addr: mac-address@40 {
865 compatible = "sandbox-rtc";
866 sandbox,emul = <&emul1>;
871 compatible = "sandbox,i2c-emul-parent";
872 emul_eeprom: emul-eeprom {
873 compatible = "sandbox,i2c-eeprom";
874 sandbox,filename = "i2c.bin";
875 sandbox,size = <256>;
878 compatible = "sandbox,i2c-rtc-emul";
881 compatible = "sandbox,i2c-rtc-emul";
885 sandbox_pmic: sandbox_pmic {
887 sandbox,emul = <&emul_pmic0>;
892 sandbox,emul = <&emul_pmic1>;
897 compatible = "u-boot,bootcount-rtc";
903 compatible = "u-boot,bootcount-i2c-eeprom";
904 i2c-eeprom = <&bootcount_i2c>;
908 compatible = "u-boot,bootcount-syscon";
910 reg = <0x0 0x04>, <0x0 0x04>;
911 reg-names = "syscon_reg", "offset";
915 compatible = "u-boot,bootcount-syscon";
917 reg = <0x0 0x04>, <0x0 0x02> ;
918 reg-names = "syscon_reg", "offset";
922 compatible = "sandbox,adc";
923 #io-channel-cells = <1>;
924 vdd-supply = <&buck2>;
925 vss-microvolts = <0>;
929 compatible = "sandbox,iommu";
934 compatible = "sandbox,irq";
935 interrupt-controller;
936 #interrupt-cells = <2>;
941 compatible = "sandbox,lcd-sdl";
942 pinctrl-names = "default";
943 pinctrl-0 = <&pinmux_lcd_pins>;
949 compatible = "gpio-leds";
952 gpios = <&gpio_a 1 0>;
953 label = "sandbox:red";
957 gpios = <&gpio_a 2 0>;
958 label = "sandbox:green";
962 gpios = <&gpio_a 5 0>;
963 label = "sandbox:default_on";
964 default-state = "on";
968 gpios = <&gpio_a 6 0>;
969 /* label intentionally omitted */
970 default-state = "off";
975 gpios = <&gpio_a 7 0>;
976 compatible = "linux,wdt-gpio";
977 hw_margin_ms = <100>;
983 gpios = <&gpio_a 7 0>;
984 compatible = "linux,wdt-gpio";
985 hw_margin_ms = <100>;
991 compatible = "sandbox,mbox";
996 compatible = "sandbox,mbox-test";
997 mboxes = <&mbox 100>, <&mbox 1>;
998 mbox-names = "other", "test";
1002 #address-cells = <1>;
1004 timebase-frequency = <2000000>;
1006 device_type = "cpu";
1008 timebase-frequency = <3000000>;
1009 compatible = "sandbox,cpu_sandbox";
1014 device_type = "cpu";
1016 compatible = "sandbox,cpu_sandbox";
1021 device_type = "cpu";
1023 compatible = "sandbox,cpu_sandbox";
1029 compatible = "sandbox,soc";
1033 compatible = "sandbox,i2s";
1034 #sound-dai-cells = <1>;
1035 sandbox,silent; /* Don't emit sounds while testing */
1039 compatible = "sandbox,nop_sandbox1";
1041 compatible = "sandbox,nop_sandbox2";
1045 compatible = "sandbox,nop_sandbox2";
1051 compatible = "sandbox,memory";
1055 #address-cells = <1>;
1057 compatible = "sandbox,misc_sandbox";
1059 eth5_addr: mac-address@10 {
1065 compatible = "sandbox,mmc";
1069 /* This is used for the bootdev tests */
1071 compatible = "sandbox,mmc";
1072 filename = "mmc1.img";
1075 /* This is used for the fastboot tests */
1077 compatible = "sandbox,mmc";
1080 /* This is used for VBE VPL tests */
1082 status = "disabled";
1083 compatible = "sandbox,mmc";
1084 filename = "image.bin";
1088 /* This is used for bootstd bootmenu tests */
1090 status = "disabled";
1091 compatible = "sandbox,mmc";
1092 filename = "mmc4.img";
1095 /* This is used for ChromiumOS tests */
1097 status = "disabled";
1098 compatible = "sandbox,mmc";
1099 filename = "mmc5.img";
1103 compatible = "sandbox,pch";
1107 compatible = "sandbox,pci";
1108 device_type = "pci";
1109 bus-range = <0x00 0xff>;
1110 #address-cells = <3>;
1112 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
1113 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
1114 iommu-map = <0x0010 &iommu 0 1>;
1115 iommu-map-mask = <0xfffffff8>;
1117 compatible = "pci-generic";
1118 reg = <0x0000 0 0 0 0>;
1119 sandbox,emul = <&swap_case_emul0_0>;
1122 compatible = "pci-generic";
1123 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
1124 reg = <0x02000814 0 0 0 0
1125 0x01000810 0 0 0 0>;
1126 sandbox,emul = <&swap_case_emul0_1>;
1129 compatible = "sandbox,p2sb";
1130 reg = <0x02001010 0 0 0 0>;
1131 sandbox,emul = <&p2sb_emul>;
1134 intel,p2sb-port-id = <3>;
1135 compatible = "sandbox,adder";
1139 compatible = "sandbox,pmc";
1140 reg = <0xf000 0 0 0 0>;
1141 sandbox,emul = <&pmc_emul1e>;
1142 acpi-base = <0x400>;
1143 gpe0-dwx-mask = <0xf>;
1144 gpe0-dwx-shift-base = <4>;
1150 compatible = "pci-generic";
1151 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
1152 reg = <0x0100f810 0 0 0 0>;
1153 sandbox,emul = <&swap_case_emul0_1f>;
1158 compatible = "sandbox,pci-emul-parent";
1159 swap_case_emul0_0: emul0@0,0 {
1160 compatible = "sandbox,swap-case";
1162 swap_case_emul0_1: emul0@1,0 {
1163 compatible = "sandbox,swap-case";
1166 swap_case_emul0_1f: emul0@1f,0 {
1167 compatible = "sandbox,swap-case";
1169 p2sb_emul: emul@2,0 {
1170 compatible = "sandbox,p2sb-emul";
1172 pmc_emul1e: emul@1e,0 {
1173 compatible = "sandbox,pmc-emul";
1178 compatible = "sandbox,pci";
1179 device_type = "pci";
1180 bus-range = <0x00 0xff>;
1181 #address-cells = <3>;
1183 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
1184 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1
1185 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
1186 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
1187 0x0c 0x00 0x1234 0x5678
1188 0x10 0x00 0x1234 0x5678>;
1190 reg = <0x8000 0 0 0 0>;
1195 compatible = "sandbox,pci";
1196 device_type = "pci";
1197 bus-range = <0x00 0xff>;
1198 #address-cells = <3>;
1200 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
1201 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
1202 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
1204 compatible = "pci-generic";
1205 reg = <0xf800 0 0 0 0>;
1206 sandbox,emul = <&swap_case_emul2_1f>;
1211 compatible = "sandbox,pci-emul-parent";
1212 swap_case_emul2_1f: emul2@1f,0 {
1213 compatible = "sandbox,swap-case";
1218 compatible = "sandbox,pci_ep";
1222 compatible = "simple-bus";
1224 compatible = "denx,u-boot-probe-test";
1228 compatible = "denx,u-boot-probe-test";
1232 compatible = "denx,u-boot-probe-test";
1236 compatible = "denx,u-boot-probe-test";
1237 first-syscon = <&syscon0>;
1238 second-sys-ctrl = <&another_system_controller>;
1239 third-syscon = <&syscon2>;
1243 pwrdom: power-domain {
1244 compatible = "sandbox,power-domain";
1245 #power-domain-cells = <1>;
1249 compatible = "sandbox,power-domain-test";
1250 power-domains = <&pwrdom 2>;
1254 compatible = "sandbox,pwm";
1256 pinctrl-names = "default";
1257 pinctrl-0 = <&pinmux_pwm_pins>;
1261 compatible = "sandbox,pwm";
1266 compatible = "sandbox,ram";
1270 compatible = "sandbox,warm-reset";
1275 compatible = "sandbox,reset";
1280 compatible = "sandbox,reset-ctl";
1285 compatible = "sandbox,reset-ctl-test";
1286 resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>;
1287 reset-names = "other", "test", "test2", "test3";
1291 compatible = "sandbox,sandbox-rng";
1295 compatible = "sandbox,test-processor";
1296 remoteproc-name = "remoteproc-test-dev1";
1300 compatible = "sandbox,test-processor";
1301 internal-memory-mapped;
1302 remoteproc-name = "remoteproc-test-dev2";
1306 compatible = "simple-panel";
1307 backlight = <&backlight 0 100>;
1311 compatible = "sandbox,scsi";
1312 sandbox,filepath = "scsi.img";
1316 compatible = "sandbox,smem";
1320 compatible = "sandbox,sound";
1322 sound-dai = <&i2s 0>;
1326 sound-dai = <&audio 0>;
1331 #address-cells = <1>;
1334 compatible = "sandbox,spi";
1335 cs-gpios = <0>, <0>, <&gpio_a 0>;
1336 pinctrl-names = "default";
1337 pinctrl-0 = <&pinmux_spi0_pins>;
1341 compatible = "spansion,m25p16", "jedec,spi-nor";
1342 spi-max-frequency = <40000000>;
1343 sandbox,filename = "spi.bin";
1347 compatible = "spansion,m25p16", "jedec,spi-nor";
1348 spi-max-frequency = <50000000>;
1349 sandbox,filename = "spi.bin";
1356 compatible = "sandbox,syscon0";
1360 another_system_controller: syscon@1 {
1361 compatible = "sandbox,syscon1";
1369 compatible = "simple-mfd", "syscon";
1377 compatible = "simple-mfd", "syscon";
1378 reg = <0x000100 0x10>;
1380 muxcontroller0: a-mux-controller {
1381 compatible = "mmio-mux";
1382 #mux-control-cells = <1>;
1384 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1385 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1386 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1387 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1388 u-boot,mux-autoprobe;
1392 muxcontroller1: emul-mux-controller {
1393 compatible = "mux-emul";
1394 #mux-control-cells = <0>;
1395 u-boot,mux-autoprobe;
1396 idle-state = <0xabcd>;
1400 compatible = "denx,u-boot-fdtm-test";
1403 testfdtm1: testfdtm1 {
1404 compatible = "denx,u-boot-fdtm-test";
1408 compatible = "denx,u-boot-fdtm-test";
1412 compatible = "sandbox,timer";
1413 clock-frequency = <1000000>;
1417 compatible = "sandbox,timer";
1418 sandbox,timebase-frequency-fallback;
1422 compatible = "sandbox,tpm2";
1426 compatible = "google,sandbox-tpm";
1430 compatible = "sandbox,serial";
1432 pinctrl-names = "default";
1433 pinctrl-0 = <&pinmux_uart0_pins>;
1437 compatible = "sandbox,usb";
1438 status = "disabled";
1440 compatible = "sandbox,usb-hub";
1441 #address-cells = <1>;
1445 compatible = "sandbox,usb-flash";
1451 compatible = "sandbox,usb";
1454 compatible = "usb-hub";
1455 usb,device-class = <9>;
1456 #address-cells = <1>;
1459 compatible = "sandbox,usb-hub";
1460 #address-cells = <1>;
1464 compatible = "sandbox,usb-flash";
1465 sandbox,filepath = "testflash.bin";
1470 compatible = "sandbox,usb-flash";
1471 sandbox,filepath = "testflash1.bin";
1476 compatible = "sandbox,usb-flash";
1477 sandbox,filepath = "testflash2.bin";
1482 compatible = "sandbox,usb-keyb";
1497 compatible = "sandbox,usb";
1498 status = "disabled";
1502 compatible = "sandbox,spmi";
1503 #address-cells = <0x1>;
1504 #size-cells = <0x1>;
1507 compatible = "qcom,spmi-pmic";
1509 #address-cells = <0x1>;
1510 #size-cells = <0x1>;
1513 spmi_gpios: gpios@c000 {
1514 compatible = "qcom,pm8916-gpio";
1515 reg = <0xc000 0x400>;
1519 gpio-bank-name="spmi";
1525 compatible = "sandbox,wdt";
1526 hw_margin_ms = <200>;
1530 compatible = "sandbox,axi";
1531 #address-cells = <0x1>;
1532 #size-cells = <0x1>;
1534 compatible = "sandbox,sandbox_store";
1540 #address-cells = <1>;
1542 setting = "sunrise ohoka";
1543 other-node = "/some-bus/c-test@5";
1544 int-values = <0x1937 72993>;
1545 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1547 compatible = "denx,u-boot-fdt-test";
1552 translation-test@8000 {
1553 compatible = "simple-bus";
1554 reg = <0x8000 0x4000>;
1556 #address-cells = <0x2>;
1557 #size-cells = <0x1>;
1559 ranges = <0 0x0 0x8000 0x1000
1560 1 0x100 0x9000 0x1000
1561 2 0x200 0xA000 0x1000
1562 3 0x300 0xB000 0x1000
1565 dma-ranges = <0 0x000 0x10000000 0x1000
1566 1 0x100 0x20000000 0x1000
1570 compatible = "denx,u-boot-fdt-dummy";
1571 reg = <0 0x0 0x1000>;
1572 reg-names = "sandbox-dummy-0";
1576 compatible = "denx,u-boot-fdt-dummy";
1577 reg = <1 0x100 0x1000>;
1582 compatible = "denx,u-boot-fdt-dummy";
1583 reg = <2 0x200 0x1000>;
1588 compatible = "simple-bus";
1589 reg = <3 0x300 0x1000>;
1591 #address-cells = <0x1>;
1592 #size-cells = <0x0>;
1595 compatible = "denx,u-boot-fdt-dummy";
1602 compatible = "foreach";
1616 compatible = "sandbox,sandbox_osd";
1620 compatible = "sandbox,tee";
1624 compatible = "sandbox,virtio1";
1625 virtio-type = <4>; /* rng */
1629 compatible = "sandbox,virtio2";
1632 sandbox-virtio-blk {
1633 compatible = "sandbox,virtio1";
1634 virtio-type = <2>; /* block */
1638 compatible = "sandbox,scmi-devices";
1639 clocks = <&clk_scmi 2>, <&clk_scmi 0>;
1640 resets = <&reset_scmi 3>;
1641 regul0-supply = <®ul0_scmi>;
1642 regul1-supply = <®ul1_scmi>;
1646 compatible = "sandbox,pinctrl";
1648 pinctrl-names = "default", "alternate";
1649 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1650 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1652 pinctrl_gpios: gpios {
1666 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1671 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1678 groups = "I2C_UART";
1698 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1699 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1704 pinctrl-single-no-width {
1705 compatible = "pinctrl-single";
1706 reg = <0x0000 0x238>;
1707 #pinctrl-cells = <1>;
1708 pinctrl-single,function-mask = <0x7f>;
1711 pinctrl-single-pins {
1712 compatible = "pinctrl-single";
1713 reg = <0x0000 0x238>;
1714 #pinctrl-cells = <1>;
1715 pinctrl-single,register-width = <32>;
1716 pinctrl-single,function-mask = <0x7f>;
1718 pinmux_pwm_pins: pinmux_pwm_pins {
1719 pinctrl-single,pins = < 0x48 0x06 >;
1722 pinmux_spi0_pins: pinmux_spi0_pins {
1723 pinctrl-single,pins = <
1731 pinmux_uart0_pins: pinmux_uart0_pins {
1732 pinctrl-single,pins = <
1739 pinctrl-single-bits {
1740 compatible = "pinctrl-single";
1741 reg = <0x0000 0x50>;
1742 #pinctrl-cells = <2>;
1743 pinctrl-single,bit-per-mux;
1744 pinctrl-single,register-width = <32>;
1745 pinctrl-single,function-mask = <0xf>;
1747 pinmux_i2c0_pins: pinmux_i2c0_pins {
1748 pinctrl-single,bits = <
1749 0x10 0x00002200 0x0000ff00
1753 pinmux_lcd_pins: pinmux_lcd_pins {
1754 pinctrl-single,bits = <
1755 0x40 0x22222200 0xffffff00
1756 0x44 0x22222222 0xffffffff
1757 0x48 0x00000022 0x000000ff
1758 0x48 0x02000000 0x0f000000
1759 0x4c 0x02000022 0x0f0000ff
1765 compatible = "sandbox,hwspinlock";
1769 compatible = "sandbox,dma";
1772 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1773 dma-names = "m2m", "tx0", "rx0";
1777 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1778 * end of the test. If parent mdio is removed first, clean-up of the
1779 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1780 * active at the end of the test. That it turn doesn't allow the mdio
1781 * class to be destroyed, triggering an error.
1784 compatible = "sandbox,mdio-mux";
1785 #address-cells = <1>;
1787 mdio-parent-bus = <&mdio>;
1798 compatible = "sandbox,mdio";
1799 #address-cells = <1>;
1802 ethphy1: ethernet-phy@1 {
1808 compatible = "simple-pm-bus";
1809 clocks = <&clk_sandbox 4>;
1810 power-domains = <&pwrdom 1>;
1813 resetc2: syscon-reset {
1814 compatible = "syscon-reset";
1816 regmap = <&syscon0>;
1818 mask = <0x27FFFFFF>;
1823 compatible = "sandbox,misc_sandbox";
1824 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1825 reset-names = "valid", "no_mask", "out_of_range";
1829 compatible = "sandbox,sysinfo-sandbox";
1833 compatible = "gpio-sysinfo";
1834 gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>;
1835 revisions = <19>, <5>;
1836 names = "rev_a", "foo";
1839 some_regmapped-bus {
1840 #address-cells = <0x1>;
1841 #size-cells = <0x1>;
1843 ranges = <0x0 0x0 0x10>;
1844 compatible = "simple-bus";
1848 compatible = "sandbox,regmap_test";
1853 compatible = "sandbox,thermal";
1857 compatible = "u-boot,fwu-mdata-gpt";
1858 fwu-mdata-store = <&mmc0>;
1861 nvmxip-qspi1@08000000 {
1862 compatible = "nvmxip,qspi";
1863 reg = <0x08000000 0x00200000>;
1868 nvmxip-qspi2@08200000 {
1869 compatible = "nvmxip,qspi";
1870 reg = <0x08200000 0x00100000>;
1876 compatible = "sandbox,extcon";
1880 compatible = "sandbox,arm-ffa-emul";
1883 compatible = "sandbox,arm-ffa";
1888 #include "sandbox_pmic.dtsi"
1889 #include "cros-ec-keyboard.dtsi"
1891 #ifdef CONFIG_SANDBOX_VPL
1892 #include "sandbox_vpl.dtsi"
1895 #include "cedit.dtsi"