3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
5 #include <dt-bindings/pinctrl/sandbox-pinmux.h>
6 #include <dt-bindings/mux/mux.h>
10 compatible = "sandbox";
16 eth0 = "/eth@10002000";
28 remoteproc0 = &rproc_1;
29 remoteproc1 = &rproc_2;
34 testbus3 = "/some-bus";
35 testfdt0 = "/some-bus/c-test@0";
36 testfdt12 = "/some-bus/c-test@1";
38 testfdt5 = "/some-bus/c-test@5";
40 testfdtm1 = &testfdtm1;
41 fdt-dummy0 = "/translation-test@8000/dev@0,0";
42 fdt-dummy1 = "/translation-test@8000/dev@1,100";
43 fdt-dummy2 = "/translation-test@8000/dev@2,200";
44 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
53 compatible = "sandbox,audio-codec";
54 #sound-dai-cells = <1>;
58 compatible = "gpio-keys";
61 gpios = <&gpio_a 3 0>;
66 gpios = <&gpio_a 4 0>;
73 compatible = "google,cros-ec-sandbox";
76 * This describes the flash memory within the EC. Note
77 * that the STM32L flash erases to 0, not 0xff.
80 image-pos = <0x08000000>;
84 /* Information for sandbox */
94 image-pos = <0x10000>;
101 compatible = "sandbox,dsi-host";
106 compatible = "denx,u-boot-fdt-test";
110 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
111 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
113 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
114 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
115 <&gpio_b 7 GPIO_IN 3 2 1>,
116 <&gpio_b 8 GPIO_OUT 3 2 1>,
117 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
119 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
120 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
121 <&gpio_c 2 GPIO_OUT>,
122 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
123 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
125 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
126 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
127 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
128 test5-gpios = <&gpio_a 19>;
131 uint-value = <(-1234)>;
132 int64-value = /bits/ 64 <0x1111222233334444>;
133 int-array = <5678 9123 4567>;
134 str-value = "test string";
135 interrupts-extended = <&irq 3 0>;
137 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
139 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
140 <&muxcontroller0 2>, <&muxcontroller0 3>,
142 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
143 mux-syscon = <&syscon3>;
148 compatible = "not,compatible";
155 backlight: backlight {
156 compatible = "pwm-backlight";
157 enable-gpios = <&gpio_a 1>;
158 power-supply = <&ldo_1>;
159 pwms = <&pwm 0 1000>;
160 default-brightness-level = <5>;
161 brightness-levels = <0 16 32 64 128 170 202 234 255>;
165 compatible = "simple-bus";
167 compatible = "sandbox,phy";
172 compatible = "simple-bus";
178 compatible = "denx,u-boot-fdt-test";
182 mux-controls = <&muxcontroller0 0>;
183 mux-control-names = "mux0";
186 phy_provider0: gen_phy@0 {
187 compatible = "sandbox,phy";
191 phy_provider1: gen_phy@1 {
192 compatible = "sandbox,phy";
197 phy_provider2: gen_phy@2 {
198 compatible = "sandbox,phy";
202 gen_phy_user: gen_phy_user {
203 compatible = "simple-bus";
204 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
205 phy-names = "phy1", "phy2", "phy3";
208 gen_phy_user1: gen_phy_user1 {
209 compatible = "simple-bus";
210 phys = <&phy_provider0 0>, <&phy_provider2>;
211 phy-names = "phy1", "phy2";
215 #address-cells = <1>;
217 compatible = "denx,u-boot-test-bus";
222 compatible = "denx,u-boot-fdt-test";
228 compatible = "denx,u-boot-fdt-test";
234 compatible = "denx,u-boot-fdt-test";
245 compatible = "google,another-fdt-test";
252 compatible = "google,another-fdt-test";
256 compatible = "denx,u-boot-fdt-test";
260 compatible = "denx,u-boot-fdt-test";
264 compatible = "denx,u-boot-fdt-test1";
268 compatible = "mediatek,u-boot-fdt-test";
269 #address-cells = <1>;
286 compatible = "denx,u-boot-devres-test";
291 compatible = "denx,u-boot-fdt-test";
292 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
293 test5-gpios = <&gpio_a 19>;
296 acpi_test1: acpi-test {
297 compatible = "denx,u-boot-acpi-test";
298 acpi-ssdt-test-data = "ab";
299 acpi-dsdt-test-data = "hi";
301 compatible = "denx,u-boot-acpi-test";
305 acpi_test2: acpi-test2 {
306 compatible = "denx,u-boot-acpi-test";
307 acpi-ssdt-test-data = "cd";
308 acpi-dsdt-test-data = "jk";
312 clk_fixed: clk-fixed {
313 compatible = "fixed-clock";
315 clock-frequency = <1234>;
318 clk_fixed_factor: clk-fixed-factor {
319 compatible = "fixed-factor-clock";
323 clocks = <&clk_fixed>;
327 compatible = "fixed-clock";
329 clock-frequency = <20000000>;
333 clk_sandbox: clk-sbox {
334 compatible = "sandbox,clk";
336 assigned-clocks = <&clk_sandbox 3>;
337 assigned-clock-rates = <321>;
341 compatible = "sandbox,clk-test";
342 clocks = <&clk_fixed>,
347 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
351 compatible = "sandbox,clk-ccf";
355 compatible = "sandbox,eth";
356 reg = <0x10002000 0x1000>;
357 fake-host-hwaddr = [00 00 66 44 22 00];
360 eth_5: eth@10003000 {
361 compatible = "sandbox,eth";
362 reg = <0x10003000 0x1000>;
363 fake-host-hwaddr = [00 00 66 44 22 11];
367 compatible = "sandbox,eth";
368 reg = <0x10005000 0x1000>;
369 fake-host-hwaddr = [00 00 66 44 22 33];
373 compatible = "sandbox,eth";
374 reg = <0x10004000 0x1000>;
375 fake-host-hwaddr = [00 00 66 44 22 22];
379 sandbox_firmware: sandbox-firmware {
380 compatible = "sandbox,firmware";
383 sandbox-scmi-agent@0 {
384 compatible = "sandbox,scmi-agent";
385 #address-cells = <1>;
388 clk_scmi0: protocol@14 {
393 reset_scmi0: protocol@16 {
399 sandbox-scmi-agent@1 {
400 compatible = "sandbox,scmi-agent";
401 #address-cells = <1>;
404 clk_scmi1: protocol@14 {
416 compatible = "sandbox,pinctrl-gpio";
419 compatible = "sandbox,gpio";
422 gpio-bank-name = "a";
423 sandbox,gpio-count = <20>;
424 hog_input_active_low {
427 gpios = <10 GPIO_ACTIVE_LOW>;
429 hog_input_active_high {
432 gpios = <11 GPIO_ACTIVE_HIGH>;
437 gpios = <12 GPIO_ACTIVE_HIGH>;
442 gpios = <13 GPIO_ACTIVE_HIGH>;
446 gpio_b: extra-gpios {
447 compatible = "sandbox,gpio";
450 gpio-bank-name = "b";
451 sandbox,gpio-count = <10>;
454 gpio_c: pinmux-gpios {
455 compatible = "sandbox,gpio";
458 gpio-bank-name = "c";
459 sandbox,gpio-count = <10>;
464 #address-cells = <1>;
467 compatible = "sandbox,i2c";
468 clock-frequency = <100000>;
471 compatible = "i2c-eeprom";
472 sandbox,emul = <&emul_eeprom>;
474 compatible = "fixed-partitions";
475 #address-cells = <1>;
477 bootcount_i2c: bootcount@10 {
485 compatible = "sandbox-rtc";
486 sandbox,emul = <&emul0>;
491 compatible = "sandbox-rtc";
492 sandbox,emul = <&emul1>;
497 compatible = "sandbox,i2c-emul-parent";
498 emul_eeprom: emul-eeprom {
499 compatible = "sandbox,i2c-eeprom";
500 sandbox,filename = "i2c.bin";
501 sandbox,size = <256>;
504 compatible = "sandbox,i2c-rtc";
507 compatible = "sandbox,i2c-rtc";
511 sandbox_pmic: sandbox_pmic {
513 sandbox,emul = <&emul_pmic0>;
518 sandbox,emul = <&emul_pmic1>;
523 compatible = "u-boot,bootcount-rtc";
529 compatible = "u-boot,bootcount-i2c-eeprom";
530 i2c-eeprom = <&bootcount_i2c>;
534 compatible = "sandbox,adc";
535 vdd-supply = <&buck2>;
536 vss-microvolts = <0>;
540 compatible = "sandbox,irq";
541 interrupt-controller;
542 #interrupt-cells = <2>;
547 compatible = "sandbox,lcd-sdl";
553 compatible = "gpio-leds";
556 gpios = <&gpio_a 1 0>;
557 label = "sandbox:red";
561 gpios = <&gpio_a 2 0>;
562 label = "sandbox:green";
566 gpios = <&gpio_a 5 0>;
567 label = "sandbox:default_on";
568 default-state = "on";
572 gpios = <&gpio_a 6 0>;
573 /* label intentionally omitted */
574 default-state = "off";
579 compatible = "sandbox,mbox";
584 compatible = "sandbox,mbox-test";
585 mboxes = <&mbox 100>, <&mbox 1>;
586 mbox-names = "other", "test";
590 timebase-frequency = <2000000>;
592 timebase-frequency = <3000000>;
593 compatible = "sandbox,cpu_sandbox";
598 compatible = "sandbox,cpu_sandbox";
603 compatible = "sandbox,cpu_sandbox";
609 compatible = "sandbox,soc";
613 compatible = "sandbox,i2s";
614 #sound-dai-cells = <1>;
615 sandbox,silent; /* Don't emit sounds while testing */
619 compatible = "sandbox,nop_sandbox1";
621 compatible = "sandbox,nop_sandbox2";
625 compatible = "sandbox,nop_sandbox2";
631 compatible = "sandbox,misc_sandbox";
635 compatible = "sandbox,mmc";
639 compatible = "sandbox,mmc";
643 compatible = "sandbox,mmc";
647 compatible = "sandbox,pch";
651 compatible = "sandbox,pci";
653 bus-range = <0x00 0xff>;
654 #address-cells = <3>;
656 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
657 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
659 compatible = "pci-generic";
660 reg = <0x0000 0 0 0 0>;
661 sandbox,emul = <&swap_case_emul0_0>;
664 compatible = "pci-generic";
665 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
666 reg = <0x02000814 0 0 0 0
668 sandbox,emul = <&swap_case_emul0_1>;
671 compatible = "sandbox,p2sb";
672 reg = <0x02001010 0 0 0 0>;
673 sandbox,emul = <&p2sb_emul>;
676 intel,p2sb-port-id = <3>;
677 compatible = "sandbox,adder";
681 compatible = "sandbox,pmc";
682 reg = <0xf000 0 0 0 0>;
683 sandbox,emul = <&pmc_emul1e>;
685 gpe0-dwx-mask = <0xf>;
686 gpe0-dwx-shift-base = <4>;
692 compatible = "pci-generic";
693 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
694 reg = <0x0100f810 0 0 0 0>;
695 sandbox,emul = <&swap_case_emul0_1f>;
700 compatible = "sandbox,pci-emul-parent";
701 swap_case_emul0_0: emul0@0,0 {
702 compatible = "sandbox,swap-case";
704 swap_case_emul0_1: emul0@1,0 {
705 compatible = "sandbox,swap-case";
708 swap_case_emul0_1f: emul0@1f,0 {
709 compatible = "sandbox,swap-case";
711 p2sb_emul: emul@2,0 {
712 compatible = "sandbox,p2sb-emul";
714 pmc_emul1e: emul@1e,0 {
715 compatible = "sandbox,pmc-emul";
720 compatible = "sandbox,pci";
722 bus-range = <0x00 0xff>;
723 #address-cells = <3>;
725 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
726 0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
727 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
728 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
729 0x0c 0x00 0x1234 0x5678
730 0x10 0x00 0x1234 0x5678>;
732 reg = <0x8000 0 0 0 0>;
737 compatible = "sandbox,pci";
739 bus-range = <0x00 0xff>;
740 #address-cells = <3>;
742 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
743 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
744 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
746 compatible = "pci-generic";
747 reg = <0xf800 0 0 0 0>;
748 sandbox,emul = <&swap_case_emul2_1f>;
753 compatible = "sandbox,pci-emul-parent";
754 swap_case_emul2_1f: emul2@1f,0 {
755 compatible = "sandbox,swap-case";
760 compatible = "sandbox,pci_ep";
764 compatible = "simple-bus";
766 compatible = "denx,u-boot-probe-test";
770 compatible = "denx,u-boot-probe-test";
774 compatible = "denx,u-boot-probe-test";
778 compatible = "denx,u-boot-probe-test";
779 first-syscon = <&syscon0>;
780 second-sys-ctrl = <&another_system_controller>;
781 third-syscon = <&syscon2>;
785 pwrdom: power-domain {
786 compatible = "sandbox,power-domain";
787 #power-domain-cells = <1>;
791 compatible = "sandbox,power-domain-test";
792 power-domains = <&pwrdom 2>;
796 compatible = "sandbox,pwm";
801 compatible = "sandbox,pwm";
806 compatible = "sandbox,ram";
810 compatible = "sandbox,warm-reset";
814 compatible = "sandbox,reset";
818 compatible = "sandbox,reset-ctl";
823 compatible = "sandbox,reset-ctl-test";
824 resets = <&resetc 100>, <&resetc 2>;
825 reset-names = "other", "test";
829 compatible = "sandbox,sandbox-rng";
833 compatible = "sandbox,test-processor";
834 remoteproc-name = "remoteproc-test-dev1";
838 compatible = "sandbox,test-processor";
839 internal-memory-mapped;
840 remoteproc-name = "remoteproc-test-dev2";
844 compatible = "simple-panel";
845 backlight = <&backlight 0 100>;
849 compatible = "sandbox,smem";
853 compatible = "sandbox,sound";
855 sound-dai = <&i2s 0>;
859 sound-dai = <&audio 0>;
864 #address-cells = <1>;
867 compatible = "sandbox,spi";
868 cs-gpios = <0>, <0>, <&gpio_a 0>;
871 compatible = "spansion,m25p16", "jedec,spi-nor";
872 spi-max-frequency = <40000000>;
873 sandbox,filename = "spi.bin";
877 compatible = "spansion,m25p16", "jedec,spi-nor";
878 spi-max-frequency = <50000000>;
879 sandbox,filename = "spi.bin";
886 compatible = "sandbox,syscon0";
890 another_system_controller: syscon@1 {
891 compatible = "sandbox,syscon1";
899 compatible = "simple-mfd", "syscon";
907 compatible = "simple-mfd", "syscon";
908 reg = <0x000100 0x10>;
910 muxcontroller0: a-mux-controller {
911 compatible = "mmio-mux";
912 #mux-control-cells = <1>;
914 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
915 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
916 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
917 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
918 u-boot,mux-autoprobe;
922 muxcontroller1: emul-mux-controller {
923 compatible = "mux-emul";
924 #mux-control-cells = <0>;
925 u-boot,mux-autoprobe;
926 idle-state = <0xabcd>;
930 compatible = "denx,u-boot-fdtm-test";
933 testfdtm1: testfdtm1 {
934 compatible = "denx,u-boot-fdtm-test";
938 compatible = "denx,u-boot-fdtm-test";
942 compatible = "sandbox,timer";
943 clock-frequency = <1000000>;
947 compatible = "sandbox,timer";
948 sandbox,timebase-frequency-fallback;
952 compatible = "sandbox,tpm2";
956 compatible = "sandbox,serial";
961 compatible = "sandbox,usb";
964 compatible = "sandbox,usb-hub";
965 #address-cells = <1>;
969 compatible = "sandbox,usb-flash";
975 compatible = "sandbox,usb";
977 compatible = "usb-hub";
978 usb,device-class = <9>;
979 #address-cells = <1>;
982 compatible = "sandbox,usb-hub";
983 #address-cells = <1>;
987 compatible = "sandbox,usb-flash";
988 sandbox,filepath = "testflash.bin";
993 compatible = "sandbox,usb-flash";
994 sandbox,filepath = "testflash1.bin";
999 compatible = "sandbox,usb-flash";
1000 sandbox,filepath = "testflash2.bin";
1005 compatible = "sandbox,usb-keyb";
1020 compatible = "sandbox,usb";
1021 status = "disabled";
1025 compatible = "sandbox,spmi";
1026 #address-cells = <0x1>;
1027 #size-cells = <0x1>;
1030 compatible = "qcom,spmi-pmic";
1032 #address-cells = <0x1>;
1033 #size-cells = <0x1>;
1036 spmi_gpios: gpios@c000 {
1037 compatible = "qcom,pm8916-gpio";
1038 reg = <0xc000 0x400>;
1042 gpio-bank-name="spmi";
1048 compatible = "sandbox,wdt";
1052 compatible = "sandbox,axi";
1053 #address-cells = <0x1>;
1054 #size-cells = <0x1>;
1056 compatible = "sandbox,sandbox_store";
1062 #address-cells = <1>;
1064 setting = "sunrise ohoka";
1065 other-node = "/some-bus/c-test@5";
1066 int-values = <0x1937 72993>;
1067 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1069 compatible = "denx,u-boot-fdt-test";
1074 translation-test@8000 {
1075 compatible = "simple-bus";
1076 reg = <0x8000 0x4000>;
1078 #address-cells = <0x2>;
1079 #size-cells = <0x1>;
1081 ranges = <0 0x0 0x8000 0x1000
1082 1 0x100 0x9000 0x1000
1083 2 0x200 0xA000 0x1000
1084 3 0x300 0xB000 0x1000
1087 dma-ranges = <0 0x000 0x10000000 0x1000
1088 1 0x100 0x20000000 0x1000
1092 compatible = "denx,u-boot-fdt-dummy";
1093 reg = <0 0x0 0x1000>;
1094 reg-names = "sandbox-dummy-0";
1098 compatible = "denx,u-boot-fdt-dummy";
1099 reg = <1 0x100 0x1000>;
1104 compatible = "denx,u-boot-fdt-dummy";
1105 reg = <2 0x200 0x1000>;
1110 compatible = "simple-bus";
1111 reg = <3 0x300 0x1000>;
1113 #address-cells = <0x1>;
1114 #size-cells = <0x0>;
1117 compatible = "denx,u-boot-fdt-dummy";
1124 compatible = "sandbox,sandbox_osd";
1128 compatible = "sandbox,tee";
1132 compatible = "sandbox,virtio1";
1136 compatible = "sandbox,virtio2";
1140 compatible = "sandbox,scmi-devices";
1141 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1142 resets = <&reset_scmi0 3>;
1146 compatible = "sandbox,pinctrl";
1148 pinctrl-names = "default", "alternate";
1149 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1150 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1152 pinctrl_gpios: gpios {
1166 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1171 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1178 groups = "I2C_UART";
1198 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1199 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1205 compatible = "sandbox,hwspinlock";
1209 compatible = "sandbox,dma";
1212 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1213 dma-names = "m2m", "tx0", "rx0";
1217 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1218 * end of the test. If parent mdio is removed first, clean-up of the
1219 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1220 * active at the end of the test. That it turn doesn't allow the mdio
1221 * class to be destroyed, triggering an error.
1224 compatible = "sandbox,mdio-mux";
1225 #address-cells = <1>;
1227 mdio-parent-bus = <&mdio>;
1238 compatible = "sandbox,mdio";
1242 compatible = "simple-pm-bus";
1243 clocks = <&clk_sandbox 4>;
1244 power-domains = <&pwrdom 1>;
1247 resetc2: syscon-reset {
1248 compatible = "syscon-reset";
1250 regmap = <&syscon0>;
1252 mask = <0x27FFFFFF>;
1257 compatible = "sandbox,misc_sandbox";
1258 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1259 reset-names = "valid", "no_mask", "out_of_range";
1263 compatible = "sandbox,sysinfo-sandbox";
1266 some_regmapped-bus {
1267 #address-cells = <0x1>;
1268 #size-cells = <0x1>;
1270 ranges = <0x0 0x0 0x10>;
1271 compatible = "simple-bus";
1275 compatible = "sandbox,regmap_test";
1280 #include "sandbox_pmic.dtsi"