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
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/gpio/sandbox-gpio.h>
15 #include <dt-bindings/input/input.h>
16 #include <dt-bindings/pinctrl/sandbox-pinmux.h>
17 #include <dt-bindings/mux/mux.h>
21 compatible = "sandbox";
27 ethernet0 = "/eth@10002000";
30 ethernet4 = &dsa_eth0;
32 ethernet6 = "/eth@10004000";
34 ethernet8 = &phy_eth0;
49 remoteproc0 = &rproc_1;
50 remoteproc1 = &rproc_2;
55 testbus3 = "/some-bus";
56 testfdt0 = "/some-bus/c-test@0";
57 testfdt12 = "/some-bus/c-test@1";
59 testfdt5 = "/some-bus/c-test@5";
61 testfdtm1 = &testfdtm1;
62 fdt-dummy0 = "/translation-test@8000/dev@0,0";
63 fdt-dummy1 = "/translation-test@8000/dev@1,100";
64 fdt-dummy2 = "/translation-test@8000/dev@2,200";
65 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
78 event_log: tcg_event_log {
80 reg = <(CFG_SYS_SDRAM_SIZE - 0x2000) 0x2000>;
90 testing-str = "testing";
99 compatible = "u-boot,config";
100 bootscr-ram-offset = /bits/ 64 <0x12345678>;
101 bootscr-flash-offset = /bits/ 64 <0>;
102 bootscr-flash-size = /bits/ 64 <0x2000>;
108 compatible = "u-boot,boot-std";
110 filename-prefixes = "/", "/boot/";
111 bootdev-order = "mmc2", "mmc1";
114 compatible = "u-boot,extlinux";
118 compatible = "u-boot,distro-efi";
124 menuitem-gap-y = <1>;
130 menuitem-gap-y = <1>;
134 * This is used for the VBE OS-request tests. A FAT filesystem
135 * created in a partition with the VBE information appearing
136 * before the partition starts
140 compatible = "fwupd,vbe-simple";
142 skip-offset = <0x200>;
143 area-start = <0x400>;
144 area-size = <0x1000>;
145 state-offset = <0x400>;
147 version-offset = <0x800>;
148 version-size = <0x100>;
152 * This is used for the VBE VPL tests. The MMC device holds the
153 * binman image.bin file. The test progresses through each phase
154 * of U-Boot, loading each in turn from MMC.
156 * Note that the test enables this node (and mmc3) before
162 compatible = "fwupd,vbe-simple";
164 skip-offset = <0x800000>;
166 area-size = <0xe00000>;
167 state-offset = <0xdffc00>;
169 version-offset = <0xdffe00>;
170 version-size = <0x100>;
178 compatible = "sandbox,fuzzing-engine";
182 compatible = "reboot-mode-gpio";
183 gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>;
184 u-boot,env-variable = "bootstatus";
186 mode-download = <0x03>;
189 reboot_mode1: reboot-mode@14 {
190 compatible = "reboot-mode-rtc";
193 u-boot,env-variable = "bootstatus";
195 mode-test = <0x21969147>;
196 mode-download = <0x51939147>;
200 compatible = "sandbox,audio-codec";
201 #sound-dai-cells = <1>;
205 compatible = "gpio-keys";
208 gpios = <&gpio_a 3 0>;
210 linux,code = <BTN_1>;
214 gpios = <&gpio_a 4 0>;
216 linux,code = <BTN_2>;
221 compatible = "adc-keys";
222 io-channels = <&adc 3>;
223 keyup-threshold-microvolt = <3000000>;
227 linux,code = <KEY_F3>;
228 press-threshold-microvolt = <1500000>;
233 linux,code = <KEY_F4>;
234 press-threshold-microvolt = <1000000>;
239 linux,code = <KEY_F5>;
240 press-threshold-microvolt = <500000>;
246 compatible = "google,cros-ec-sandbox";
249 * This describes the flash memory within the EC. Note
250 * that the STM32L flash erases to 0, not 0xff.
253 image-pos = <0x08000000>;
257 /* Information for sandbox */
263 image-pos = <0xf000>;
267 uncomp-size = <0xcf8>;
270 value = [00 01 02 03 04 05 06 07
271 08 09 0a 0b 0c 0d 0e 0f
272 10 11 12 13 14 15 16 17
273 18 19 1a 1b 1c 1d 1e 1f];
277 image-pos = <0x10000>;
282 cros_ec_pwm: cros-ec-pwm {
283 compatible = "google,cros-ec-pwm";
290 compatible = "sandbox,dsi-host";
295 compatible = "denx,u-boot-fdt-test";
299 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
300 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
302 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
303 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
304 <&gpio_b 7 GPIO_IN 3 2 1>,
305 <&gpio_b 8 GPIO_OUT 3 2 1>,
306 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
308 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
309 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
310 <&gpio_c 2 GPIO_OUT>,
311 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
312 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
314 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
315 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
316 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
317 test5-gpios = <&gpio_a 19>;
320 int8-value = /bits/ 8 <0x12>;
321 int16-value = /bits/ 16 <0x1234>;
323 uint-value = <(-1234)>;
324 int64-value = /bits/ 64 <0x1111222233334444>;
325 int-array = <5678 9123 4567>;
326 int64-array = /bits/ 64 <0x1111222233334444 0x4444333322221111>;
327 str-value = "test string";
328 interrupts-extended = <&irq 3 0>;
330 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
332 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
333 <&muxcontroller0 2>, <&muxcontroller0 3>,
335 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
336 mux-syscon = <&syscon3>;
339 clock-frequency = <6500000>;
351 pixelclk-active = <1>;
357 clock-frequency = <9000000>;
369 pixelclk-active = <0>;
372 clock-frequency = <33500000>;
376 hfront-porch = <164>;
384 clock-frequency = <6500000>;
396 pixelclk-active = <1>;
405 compatible = "not,compatible";
412 backlight: backlight {
413 compatible = "pwm-backlight";
414 enable-gpios = <&gpio_a 1>;
415 power-supply = <&ldo_1>;
416 pwms = <&pwm 0 1000>;
417 default-brightness-level = <5>;
418 brightness-levels = <0 16 32 64 128 170 202 234 255>;
422 compatible = "simple-bus";
424 compatible = "sandbox,phy";
429 compatible = "simple-bus";
435 compatible = "denx,u-boot-fdt-test";
439 mux-controls = <&muxcontroller0 0>;
440 mux-control-names = "mux0";
443 phy_provider0: gen_phy@0 {
444 compatible = "sandbox,phy";
448 phy_provider1: gen_phy@1 {
449 compatible = "sandbox,phy";
454 phy_provider2: gen_phy@2 {
455 compatible = "sandbox,phy";
459 phy_provider3: gen_phy@3 {
460 compatible = "sandbox,phy";
464 gen_phy_user: gen_phy_user {
465 compatible = "simple-bus";
466 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
467 phy-names = "phy1", "phy2", "phy3";
470 gen_phy_user1: gen_phy_user1 {
471 compatible = "simple-bus";
472 phys = <&phy_provider0 0>, <&phy_provider2>;
473 phy-names = "phy1", "phy2";
476 gen_phy_user2: gen_phy_user2 {
477 compatible = "simple-bus";
478 phys = <&phy_provider3 0 0>;
483 #address-cells = <1>;
485 compatible = "denx,u-boot-test-bus";
490 compatible = "denx,u-boot-fdt-test";
496 compatible = "denx,u-boot-fdt-test";
502 compatible = "denx,u-boot-fdt-test";
513 compatible = "google,another-fdt-test";
520 compatible = "google,another-fdt-test";
524 compatible = "denx,u-boot-fdt-test";
528 compatible = "denx,u-boot-fdt-test";
532 compatible = "denx,u-boot-fdt-test1";
536 compatible = "mediatek,u-boot-fdt-test";
537 #address-cells = <1>;
554 compatible = "denx,u-boot-devres-test";
559 compatible = "denx,u-boot-fdt-test";
560 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
561 test5-gpios = <&gpio_a 19>;
565 #address-cells = <1>;
567 compatible = "denx,u-boot-test-bus";
568 dma-ranges = <0x10000000 0x00000000 0x00040000>;
571 compatible = "denx,u-boot-fdt-test";
576 #address-cells = <1>;
578 compatible = "denx,u-boot-test-bus";
581 compatible = "denx,u-boot-fdt-test";
585 acpi_test1: acpi-test {
586 compatible = "denx,u-boot-acpi-test";
587 acpi-ssdt-test-data = "ab";
588 acpi-dsdt-test-data = "hi";
590 compatible = "denx,u-boot-acpi-test";
594 acpi_test2: acpi-test2 {
595 compatible = "denx,u-boot-acpi-test";
596 acpi-ssdt-test-data = "cd";
597 acpi-dsdt-test-data = "jk";
601 clk_fixed: clk-fixed {
602 compatible = "fixed-clock";
604 clock-frequency = <1234>;
607 clk_fixed_factor: clk-fixed-factor {
608 compatible = "fixed-factor-clock";
612 clocks = <&clk_fixed>;
616 compatible = "fixed-clock";
618 clock-frequency = <20000000>;
622 clk_sandbox: clk-sbox {
623 compatible = "sandbox,clk";
625 assigned-clocks = <&clk_sandbox 3>;
626 assigned-clock-rates = <321>;
630 compatible = "sandbox,clk-test";
631 clocks = <&clk_fixed>,
637 clock-names = "fixed", "i2c", "spi", "i2c_root", "uart2", "uart1";
641 compatible = "sandbox,clk-test";
642 assigned-clock-rates = <321>;
646 compatible = "sandbox,clk-test";
647 assigned-clocks = <&clk_sandbox 1>;
651 compatible = "sandbox,clk-test";
652 assigned-clock-rates = <654>, <321>;
653 assigned-clocks = <&clk_sandbox 1>;
657 compatible = "sandbox,clk-ccf";
662 compatible = "sandbox,efi-media";
666 compatible = "sandbox,eth";
667 reg = <0x10002000 0x1000>;
670 eth_5: eth@10003000 {
671 compatible = "sandbox,eth";
672 reg = <0x10003000 0x1000>;
673 nvmem-cells = <ð5_addr>;
674 nvmem-cell-names = "mac-address";
678 compatible = "sandbox,eth";
679 reg = <0x10005000 0x1000>;
680 nvmem-cells = <ð3_addr>;
681 nvmem-cell-names = "mac-address";
685 compatible = "sandbox,eth";
686 reg = <0x10004000 0x1000>;
689 phy_eth0: phy-test-eth {
690 compatible = "sandbox,eth";
691 reg = <0x10007000 0x1000>;
692 mac-address = [ 02 00 11 22 33 49 ];
693 phy-handle = <ðphy1>;
694 phy-mode = "2500base-x";
697 dsa_eth0: dsa-test-eth {
698 compatible = "sandbox,eth";
699 reg = <0x10006000 0x1000>;
700 nvmem-cells = <ð4_addr>;
701 nvmem-cell-names = "mac-address";
705 compatible = "sandbox,dsa";
708 #address-cells = <1>;
713 phy-mode = "rgmii-rxid";
724 phy-mode = "rgmii-txid";
725 fixed-link = <0 1 100 0 0>;
730 ethernet = <&dsa_eth0>;
741 sandbox_firmware: sandbox-firmware {
742 compatible = "sandbox,firmware";
746 compatible = "sandbox,scmi-agent";
747 #address-cells = <1>;
750 pwrdom_scmi: protocol@11 {
752 #power-domain-cells = <1>;
755 clk_scmi: protocol@14 {
758 linaro,sandbox-channel-id = <0x14>;
761 reset_scmi: protocol@16 {
770 #address-cells = <1>;
775 regulator-name = "sandbox-voltd0";
776 regulator-min-microvolt = <1100000>;
777 regulator-max-microvolt = <3300000>;
781 regulator-name = "sandbox-voltd1";
782 regulator-min-microvolt = <1800000>;
789 compatible = "sandbox,sm";
794 compatible = "sandbox,fpga";
798 compatible = "sandbox,pinctrl-gpio";
801 compatible = "sandbox,gpio";
804 gpio-bank-name = "a";
805 sandbox,gpio-count = <20>;
806 hog_input_active_low {
809 gpios = <10 GPIO_ACTIVE_LOW>;
811 hog_input_active_high {
814 gpios = <11 GPIO_ACTIVE_HIGH>;
819 gpios = <12 GPIO_ACTIVE_HIGH>;
824 gpios = <13 GPIO_ACTIVE_HIGH>;
828 gpio_b: extra-gpios {
829 compatible = "sandbox,gpio";
832 gpio-bank-name = "b";
833 sandbox,gpio-count = <10>;
836 gpio_c: pinmux-gpios {
837 compatible = "sandbox,gpio";
840 gpio-bank-name = "c";
841 sandbox,gpio-count = <10>;
846 #address-cells = <1>;
849 compatible = "sandbox,i2c";
850 clock-frequency = <100000>;
851 pinctrl-names = "default";
852 pinctrl-0 = <&pinmux_i2c0_pins>;
855 #address-cells = <1>;
858 compatible = "i2c-eeprom";
859 sandbox,emul = <&emul_eeprom>;
861 compatible = "fixed-partitions";
862 #address-cells = <1>;
864 bootcount_i2c: bootcount@10 {
869 eth3_addr: mac-address@24 {
875 #address-cells = <1>;
878 compatible = "sandbox-rtc";
879 sandbox,emul = <&emul0>;
881 eth4_addr: mac-address@40 {
888 compatible = "sandbox-rtc";
889 sandbox,emul = <&emul1>;
894 compatible = "sandbox,i2c-emul-parent";
895 emul_eeprom: emul-eeprom {
896 compatible = "sandbox,i2c-eeprom";
897 sandbox,filename = "i2c.bin";
898 sandbox,size = <256>;
901 compatible = "sandbox,i2c-rtc-emul";
904 compatible = "sandbox,i2c-rtc-emul";
908 sandbox_pmic: sandbox_pmic {
910 sandbox,emul = <&emul_pmic0>;
915 sandbox,emul = <&emul_pmic1>;
920 compatible = "u-boot,bootcount-rtc";
926 compatible = "u-boot,bootcount-i2c-eeprom";
927 i2c-eeprom = <&bootcount_i2c>;
931 compatible = "u-boot,bootcount-syscon";
933 reg = <0x0 0x04>, <0x0 0x04>;
934 reg-names = "syscon_reg", "offset";
938 compatible = "u-boot,bootcount-syscon";
940 reg = <0x0 0x04>, <0x0 0x02> ;
941 reg-names = "syscon_reg", "offset";
945 compatible = "sandbox,adc";
946 #io-channel-cells = <1>;
947 vdd-supply = <&buck2>;
948 vss-microvolts = <0>;
952 compatible = "sandbox,iommu";
957 compatible = "sandbox,irq";
958 interrupt-controller;
959 #interrupt-cells = <2>;
964 compatible = "sandbox,lcd-sdl";
965 pinctrl-names = "default";
966 pinctrl-0 = <&pinmux_lcd_pins>;
972 compatible = "gpio-leds";
975 gpios = <&gpio_a 1 0>;
976 label = "sandbox:red";
980 gpios = <&gpio_a 2 0>;
981 label = "sandbox:green";
985 gpios = <&gpio_a 5 0>;
986 label = "sandbox:default_on";
987 default-state = "on";
991 gpios = <&gpio_a 6 0>;
992 /* label intentionally omitted */
993 default-state = "off";
998 gpios = <&gpio_a 8 0>;
999 compatible = "linux,wdt-gpio";
1000 hw_margin_ms = <100>;
1006 gpios = <&gpio_a 7 0>;
1007 compatible = "linux,wdt-gpio";
1008 hw_margin_ms = <100>;
1014 compatible = "sandbox,mbox";
1019 compatible = "sandbox,mbox-test";
1020 mboxes = <&mbox 100>, <&mbox 1>;
1021 mbox-names = "other", "test";
1025 #address-cells = <1>;
1027 timebase-frequency = <2000000>;
1029 device_type = "cpu";
1031 timebase-frequency = <3000000>;
1032 compatible = "sandbox,cpu_sandbox";
1037 device_type = "cpu";
1039 compatible = "sandbox,cpu_sandbox";
1044 device_type = "cpu";
1046 compatible = "sandbox,cpu_sandbox";
1052 compatible = "sandbox,soc";
1056 compatible = "sandbox,i2s";
1057 #sound-dai-cells = <1>;
1058 sandbox,silent; /* Don't emit sounds while testing */
1062 compatible = "sandbox,nop_sandbox1";
1064 compatible = "sandbox,nop_sandbox2";
1068 compatible = "sandbox,nop_sandbox2";
1074 compatible = "sandbox,memory";
1078 #address-cells = <1>;
1080 compatible = "sandbox,misc_sandbox";
1082 eth5_addr: mac-address@10 {
1088 compatible = "sandbox,mmc";
1092 /* This is used for the bootdev tests */
1094 compatible = "sandbox,mmc";
1095 filename = "mmc1.img";
1098 /* This is used for the fastboot tests */
1100 compatible = "sandbox,mmc";
1103 /* This is used for VBE VPL tests */
1105 status = "disabled";
1106 compatible = "sandbox,mmc";
1107 filename = "image.bin";
1111 /* This is used for bootstd bootmenu tests */
1113 status = "disabled";
1114 compatible = "sandbox,mmc";
1115 filename = "mmc4.img";
1118 /* This is used for ChromiumOS tests */
1120 status = "disabled";
1121 compatible = "sandbox,mmc";
1122 filename = "mmc5.img";
1125 /* This is used for mbr tests */
1127 status = "disabled";
1128 compatible = "sandbox,mmc";
1129 filename = "mmc6.img";
1133 compatible = "sandbox,pch";
1137 compatible = "sandbox,pci";
1138 device_type = "pci";
1139 bus-range = <0x00 0xff>;
1140 #address-cells = <3>;
1142 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
1143 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
1144 iommu-map = <0x0010 &iommu 0 1>;
1145 iommu-map-mask = <0xfffffff8>;
1147 compatible = "pci-generic";
1148 reg = <0x0000 0 0 0 0>;
1149 sandbox,emul = <&swap_case_emul0_0>;
1152 compatible = "pci-generic";
1153 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
1154 reg = <0x02000814 0 0 0x80 0
1155 0x01000810 0 0 0xc0 0>;
1156 sandbox,emul = <&swap_case_emul0_1>;
1159 compatible = "sandbox,p2sb";
1160 reg = <0x02001010 0 0 0 0>;
1161 sandbox,emul = <&p2sb_emul>;
1164 intel,p2sb-port-id = <3>;
1165 compatible = "sandbox,adder";
1169 compatible = "sandbox,pmc";
1170 reg = <0xf000 0 0 0 0>;
1171 sandbox,emul = <&pmc_emul1e>;
1172 acpi-base = <0x400>;
1173 gpe0-dwx-mask = <0xf>;
1174 gpe0-dwx-shift-base = <4>;
1180 compatible = "pci-generic";
1181 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
1182 reg = <0x0100f810 0 0 0x100 0>;
1183 sandbox,emul = <&swap_case_emul0_1f>;
1188 compatible = "sandbox,pci-emul-parent";
1189 swap_case_emul0_0: emul0@0,0 {
1190 compatible = "sandbox,swap-case";
1192 swap_case_emul0_1: emul0@1,0 {
1193 compatible = "sandbox,swap-case";
1196 swap_case_emul0_1f: emul0@1f,0 {
1197 compatible = "sandbox,swap-case";
1199 p2sb_emul: emul@2,0 {
1200 compatible = "sandbox,p2sb-emul";
1202 pmc_emul1e: emul@1e,0 {
1203 compatible = "sandbox,pmc-emul";
1208 compatible = "sandbox,pci";
1209 device_type = "pci";
1210 bus-range = <0x00 0xff>;
1211 #address-cells = <3>;
1213 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
1214 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1
1215 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
1216 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
1217 0x0c 0x00 0x1234 0x5678
1218 0x10 0x00 0x1234 0x5678>;
1220 reg = <0x8000 0 0 0 0>;
1225 compatible = "sandbox,pci";
1226 device_type = "pci";
1227 bus-range = <0x00 0xff>;
1228 #address-cells = <3>;
1230 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
1231 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
1232 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
1234 compatible = "pci-generic";
1235 reg = <0xf800 0 0 0 0>;
1236 sandbox,emul = <&swap_case_emul2_1f>;
1241 compatible = "sandbox,pci-emul-parent";
1242 swap_case_emul2_1f: emul2@1f,0 {
1243 compatible = "sandbox,swap-case";
1248 compatible = "sandbox,pci_ep";
1252 compatible = "simple-bus";
1254 compatible = "denx,u-boot-probe-test";
1258 compatible = "denx,u-boot-probe-test";
1262 compatible = "denx,u-boot-probe-test";
1266 compatible = "denx,u-boot-probe-test";
1267 first-syscon = <&syscon0>;
1268 second-sys-ctrl = <&another_system_controller>;
1269 third-syscon = <&syscon2>;
1273 pwrdom: power-domain {
1274 compatible = "sandbox,power-domain";
1275 #power-domain-cells = <1>;
1279 compatible = "sandbox,power-domain-test";
1280 power-domains = <&pwrdom 2>;
1284 compatible = "sandbox,pwm";
1286 pinctrl-names = "default";
1287 pinctrl-0 = <&pinmux_pwm_pins>;
1291 compatible = "sandbox,pwm";
1296 compatible = "sandbox,ram";
1300 compatible = "sandbox,warm-reset";
1305 compatible = "sandbox,reset";
1310 compatible = "sandbox,reset-ctl";
1315 compatible = "sandbox,reset-ctl-test";
1316 resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>;
1317 reset-names = "other", "test", "test2", "test3";
1321 compatible = "sandbox,sandbox-rng";
1325 compatible = "sandbox,test-processor";
1326 remoteproc-name = "remoteproc-test-dev1";
1330 compatible = "sandbox,test-processor";
1331 internal-memory-mapped;
1332 remoteproc-name = "remoteproc-test-dev2";
1336 compatible = "simple-panel";
1337 backlight = <&backlight 0 100>;
1341 compatible = "sandbox,scsi";
1342 sandbox,filepath = "scsi.img";
1346 compatible = "sandbox,smem";
1350 compatible = "sandbox,sound";
1352 sound-dai = <&i2s 0>;
1356 sound-dai = <&audio 0>;
1361 #address-cells = <1>;
1364 compatible = "sandbox,spi";
1365 cs-gpios = <0>, <0>, <&gpio_a 0>;
1366 pinctrl-names = "default";
1367 pinctrl-0 = <&pinmux_spi0_pins>;
1371 compatible = "spansion,m25p16", "jedec,spi-nor";
1372 spi-max-frequency = <40000000>;
1373 sandbox,filename = "spi.bin";
1377 compatible = "spansion,m25p16", "jedec,spi-nor";
1378 spi-max-frequency = <50000000>;
1379 sandbox,filename = "spi.bin";
1386 compatible = "sandbox,syscon0";
1390 another_system_controller: syscon@1 {
1391 compatible = "sandbox,syscon1";
1399 compatible = "simple-mfd", "syscon";
1407 compatible = "simple-mfd", "syscon";
1408 reg = <0x000100 0x10>;
1410 muxcontroller0: a-mux-controller {
1411 compatible = "mmio-mux";
1412 #mux-control-cells = <1>;
1414 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1415 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1416 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1417 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1418 u-boot,mux-autoprobe;
1422 muxcontroller1: emul-mux-controller {
1423 compatible = "mux-emul";
1424 #mux-control-cells = <0>;
1425 u-boot,mux-autoprobe;
1426 idle-state = <0xabcd>;
1430 compatible = "denx,u-boot-fdtm-test";
1433 testfdtm1: testfdtm1 {
1434 compatible = "denx,u-boot-fdtm-test";
1438 compatible = "denx,u-boot-fdtm-test";
1442 compatible = "sandbox,timer";
1443 clock-frequency = <1000000>;
1447 compatible = "sandbox,timer";
1448 sandbox,timebase-frequency-fallback;
1452 compatible = "sandbox,tpm2";
1453 memory-region = <&event_log>;
1457 compatible = "google,sandbox-tpm";
1461 compatible = "sandbox,serial";
1463 pinctrl-names = "default";
1464 pinctrl-0 = <&pinmux_uart0_pins>;
1468 compatible = "sandbox,usb";
1469 status = "disabled";
1471 compatible = "sandbox,usb-hub";
1472 #address-cells = <1>;
1476 compatible = "sandbox,usb-flash";
1482 compatible = "sandbox,usb";
1485 compatible = "usb-hub";
1486 usb,device-class = <9>;
1487 #address-cells = <1>;
1490 compatible = "sandbox,usb-hub";
1491 #address-cells = <1>;
1495 compatible = "sandbox,usb-flash";
1496 sandbox,filepath = "testflash.bin";
1501 compatible = "sandbox,usb-flash";
1502 sandbox,filepath = "testflash1.bin";
1507 compatible = "sandbox,usb-flash";
1508 sandbox,filepath = "testflash2.bin";
1513 compatible = "sandbox,usb-keyb";
1528 compatible = "sandbox,usb";
1529 status = "disabled";
1533 compatible = "sandbox,spmi";
1534 #address-cells = <0x1>;
1535 #size-cells = <0x1>;
1538 compatible = "qcom,spmi-pmic";
1540 #address-cells = <0x1>;
1541 #size-cells = <0x1>;
1544 spmi_gpios: gpios@c000 {
1545 compatible = "qcom,pm8916-gpio";
1546 reg = <0xc000 0x400>;
1550 gpio-bank-name="spmi";
1556 compatible = "sandbox,wdt";
1557 hw_margin_ms = <200>;
1561 compatible = "sandbox,axi";
1562 #address-cells = <0x1>;
1563 #size-cells = <0x1>;
1565 compatible = "sandbox,sandbox_store";
1571 #address-cells = <1>;
1573 setting = "sunrise ohoka";
1574 other-node = "/some-bus/c-test@5";
1575 int-values = <0x1937 72993>;
1576 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1577 stdout-path = "serial0:115200n8";
1579 compatible = "denx,u-boot-fdt-test";
1584 translation-test@8000 {
1585 compatible = "simple-bus";
1586 reg = <0x8000 0x4000>;
1588 #address-cells = <0x2>;
1589 #size-cells = <0x1>;
1591 ranges = <0 0x0 0x8000 0x1000
1592 1 0x100 0x9000 0x1000
1593 2 0x200 0xA000 0x1000
1594 3 0x300 0xB000 0x1000
1597 dma-ranges = <0 0x000 0x10000000 0x1000
1598 1 0x100 0x20000000 0x1000
1602 compatible = "denx,u-boot-fdt-dummy";
1603 reg = <0 0x0 0x1000>;
1604 reg-names = "sandbox-dummy-0";
1608 compatible = "denx,u-boot-fdt-dummy";
1609 reg = <1 0x100 0x1000>;
1614 compatible = "denx,u-boot-fdt-dummy";
1615 reg = <2 0x200 0x1000>;
1620 compatible = "simple-bus";
1621 reg = <3 0x300 0x1000>;
1623 #address-cells = <0x1>;
1624 #size-cells = <0x0>;
1627 compatible = "denx,u-boot-fdt-dummy";
1634 compatible = "foreach";
1648 compatible = "sandbox,sandbox_osd";
1652 compatible = "sandbox,tee";
1656 compatible = "sandbox,virtio1";
1657 virtio-type = <4>; /* rng */
1661 compatible = "sandbox,virtio2";
1664 sandbox-virtio-blk {
1665 compatible = "sandbox,virtio1";
1666 virtio-type = <2>; /* block */
1670 compatible = "sandbox,scmi-devices";
1671 power-domains = <&pwrdom_scmi 2>;
1672 clocks = <&clk_scmi 2>, <&clk_scmi 0>;
1673 resets = <&reset_scmi 3>;
1674 regul0-supply = <®ul0_scmi>;
1675 regul1-supply = <®ul1_scmi>;
1679 compatible = "sandbox,pinctrl";
1681 pinctrl-names = "default", "alternate";
1682 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1683 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1685 pinctrl_gpios: gpios {
1699 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1704 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1711 groups = "I2C_UART";
1731 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1732 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1737 pinctrl-single-no-width {
1738 compatible = "pinctrl-single";
1739 reg = <0x0000 0x238>;
1740 #pinctrl-cells = <1>;
1741 pinctrl-single,function-mask = <0x7f>;
1744 pinctrl-single-pins {
1745 compatible = "pinctrl-single";
1746 reg = <0x0000 0x238>;
1747 #pinctrl-cells = <1>;
1748 pinctrl-single,register-width = <32>;
1749 pinctrl-single,function-mask = <0x7f>;
1751 pinmux_pwm_pins: pinmux_pwm_pins {
1752 pinctrl-single,pins = < 0x48 0x06 >;
1755 pinmux_spi0_pins: pinmux_spi0_pins {
1756 pinctrl-single,pins = <
1764 pinmux_uart0_pins: pinmux_uart0_pins {
1765 pinctrl-single,pins = <
1772 pinctrl-single-bits {
1773 compatible = "pinctrl-single";
1774 reg = <0x0000 0x50>;
1775 #pinctrl-cells = <2>;
1776 pinctrl-single,bit-per-mux;
1777 pinctrl-single,register-width = <32>;
1778 pinctrl-single,function-mask = <0xf>;
1780 pinmux_i2c0_pins: pinmux_i2c0_pins {
1781 pinctrl-single,bits = <
1782 0x10 0x00002200 0x0000ff00
1786 pinmux_lcd_pins: pinmux_lcd_pins {
1787 pinctrl-single,bits = <
1788 0x40 0x22222200 0xffffff00
1789 0x44 0x22222222 0xffffffff
1790 0x48 0x00000022 0x000000ff
1791 0x48 0x02000000 0x0f000000
1792 0x4c 0x02000022 0x0f0000ff
1798 compatible = "sandbox,hwspinlock";
1802 compatible = "sandbox,dma";
1805 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1806 dma-names = "m2m", "tx0", "rx0";
1810 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1811 * end of the test. If parent mdio is removed first, clean-up of the
1812 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1813 * active at the end of the test. That it turn doesn't allow the mdio
1814 * class to be destroyed, triggering an error.
1817 compatible = "sandbox,mdio-mux";
1818 #address-cells = <1>;
1820 mdio-parent-bus = <&mdio>;
1831 compatible = "sandbox,mdio";
1832 #address-cells = <1>;
1835 ethphy1: ethernet-phy@1 {
1841 compatible = "simple-pm-bus";
1842 clocks = <&clk_sandbox 4>;
1843 power-domains = <&pwrdom 1>;
1846 resetc2: syscon-reset {
1847 compatible = "syscon-reset";
1849 regmap = <&syscon0>;
1851 mask = <0x27FFFFFF>;
1856 compatible = "sandbox,misc_sandbox";
1857 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1858 reset-names = "valid", "no_mask", "out_of_range";
1862 compatible = "sandbox,sysinfo-sandbox";
1866 compatible = "gpio-sysinfo";
1867 gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>;
1868 revisions = <19>, <5>;
1869 names = "rev_a", "foo";
1872 some_regmapped-bus {
1873 #address-cells = <0x1>;
1874 #size-cells = <0x1>;
1876 ranges = <0x0 0x0 0x10>;
1877 compatible = "simple-bus";
1881 compatible = "sandbox,regmap_test";
1886 compatible = "sandbox,thermal";
1890 compatible = "u-boot,fwu-mdata-gpt";
1891 fwu-mdata-store = <&mmc0>;
1894 nvmxip-qspi1@08000000 {
1895 compatible = "nvmxip,qspi";
1896 reg = <0x08000000 0x00200000>;
1901 nvmxip-qspi2@08200000 {
1902 compatible = "nvmxip,qspi";
1903 reg = <0x08200000 0x00100000>;
1909 compatible = "sandbox,extcon";
1913 compatible = "sandbox,arm-ffa-emul";
1916 compatible = "sandbox,arm-ffa";
1921 #address-cells = <1>;
1923 compatible = "sandbox,nand";
1927 nand-ecc-mode = "soft";
1928 sandbox,id = [00 e3];
1929 sandbox,erasesize = <(8 * 1024)>;
1930 sandbox,oobsize = <16>;
1931 sandbox,pagesize = <512>;
1932 sandbox,pages = <0x2000>;
1933 sandbox,err-count = <1>;
1934 sandbox,err-step-size = <512>;
1937 /* MT29F64G08AKABA */
1940 nand-ecc-mode = "soft_bch";
1941 sandbox,id = [2C 48 00 26 89 00 00 00];
1943 4f 4e 46 49 0e 00 5a 00
1944 ff 01 00 00 00 00 03 00
1945 00 00 00 00 00 00 00 00
1946 00 00 00 00 00 00 00 00
1947 4d 49 43 52 4f 4e 20 20
1948 20 20 20 20 4d 54 32 39
1949 46 36 34 47 30 38 41 4b
1950 41 42 41 43 35 20 20 20
1951 2c 00 00 00 00 00 00 00
1952 00 00 00 00 00 00 00 00
1953 00 10 00 00 e0 00 00 02
1954 00 00 1c 00 80 00 00 00
1955 00 10 00 00 02 23 01 50
1956 00 01 05 01 00 00 04 00
1957 04 01 1e 00 00 00 00 00
1958 00 00 00 00 00 00 00 00
1959 0e 1f 00 1f 00 f4 01 ac
1960 0d 19 00 c8 00 00 00 00
1961 00 00 00 00 00 00 0a 07
1962 19 00 00 00 00 00 00 00
1963 00 00 00 00 01 00 01 00
1964 00 00 04 10 01 81 04 02
1965 02 01 1e 90 00 00 00 00
1966 00 00 00 00 00 00 00 00
1967 00 00 00 00 00 00 00 00
1968 00 00 00 00 00 00 00 00
1969 00 00 00 00 00 00 00 00
1970 00 00 00 00 00 00 00 00
1971 00 00 00 00 00 00 00 00
1972 00 00 00 00 00 00 00 00
1973 00 00 00 00 00 00 00 00
1974 00 00 00 00 00 03 20 7d
1976 sandbox,erasesize = <(512 * 1024)>;
1977 sandbox,oobsize = <224>;
1978 sandbox,pagesize = <4096>;
1979 sandbox,pages = <0x200000>;
1980 sandbox,err-count = <3>;
1981 sandbox,err-step-size = <512>;
1986 #include "sandbox_pmic.dtsi"
1987 #include "cros-ec-keyboard.dtsi"
1989 #ifdef CONFIG_SANDBOX_VPL
1990 #include "sandbox_vpl.dtsi"
1993 #include "cedit.dtsi"