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 fdt-dummy0 = "/translation-test@8000/dev@0,0";
41 fdt-dummy1 = "/translation-test@8000/dev@1,100";
42 fdt-dummy2 = "/translation-test@8000/dev@2,200";
43 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
52 compatible = "sandbox,audio-codec";
53 #sound-dai-cells = <1>;
57 compatible = "gpio-keys";
60 gpios = <&gpio_a 3 0>;
65 gpios = <&gpio_a 4 0>;
72 compatible = "google,cros-ec-sandbox";
75 * This describes the flash memory within the EC. Note
76 * that the STM32L flash erases to 0, not 0xff.
79 image-pos = <0x08000000>;
83 /* Information for sandbox */
93 image-pos = <0x10000>;
100 compatible = "sandbox,dsi-host";
105 compatible = "denx,u-boot-fdt-test";
109 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
110 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
112 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
113 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
114 <&gpio_b 7 GPIO_IN 3 2 1>,
115 <&gpio_b 8 GPIO_OUT 3 2 1>,
116 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
118 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
119 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
120 <&gpio_c 2 GPIO_OUT>,
121 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
122 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
124 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
125 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
126 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
127 test5-gpios = <&gpio_a 19>;
130 uint-value = <(-1234)>;
131 int64-value = /bits/ 64 <0x1111222233334444>;
132 int-array = <5678 9123 4567>;
133 str-value = "test string";
134 interrupts-extended = <&irq 3 0>;
136 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
138 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
139 <&muxcontroller0 2>, <&muxcontroller0 3>,
141 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
142 mux-syscon = <&syscon3>;
147 compatible = "not,compatible";
154 backlight: backlight {
155 compatible = "pwm-backlight";
156 enable-gpios = <&gpio_a 1>;
157 power-supply = <&ldo_1>;
158 pwms = <&pwm 0 1000>;
159 default-brightness-level = <5>;
160 brightness-levels = <0 16 32 64 128 170 202 234 255>;
164 compatible = "simple-bus";
166 compatible = "sandbox,phy";
171 compatible = "simple-bus";
177 compatible = "denx,u-boot-fdt-test";
181 mux-controls = <&muxcontroller0 0>;
182 mux-control-names = "mux0";
185 phy_provider0: gen_phy@0 {
186 compatible = "sandbox,phy";
190 phy_provider1: gen_phy@1 {
191 compatible = "sandbox,phy";
196 phy_provider2: gen_phy@2 {
197 compatible = "sandbox,phy";
201 gen_phy_user: gen_phy_user {
202 compatible = "simple-bus";
203 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
204 phy-names = "phy1", "phy2", "phy3";
207 gen_phy_user1: gen_phy_user1 {
208 compatible = "simple-bus";
209 phys = <&phy_provider0 0>, <&phy_provider2>;
210 phy-names = "phy1", "phy2";
214 #address-cells = <1>;
216 compatible = "denx,u-boot-test-bus";
221 compatible = "denx,u-boot-fdt-test";
227 compatible = "denx,u-boot-fdt-test";
233 compatible = "denx,u-boot-fdt-test";
244 compatible = "google,another-fdt-test";
251 compatible = "google,another-fdt-test";
255 compatible = "denx,u-boot-fdt-test";
259 compatible = "denx,u-boot-fdt-test";
263 compatible = "denx,u-boot-fdt-test1";
267 compatible = "mediatek,u-boot-fdt-test";
268 #address-cells = <1>;
285 compatible = "denx,u-boot-devres-test";
290 compatible = "denx,u-boot-fdt-test";
291 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
292 test5-gpios = <&gpio_a 19>;
295 acpi_test1: acpi-test {
296 compatible = "denx,u-boot-acpi-test";
297 acpi-ssdt-test-data = "ab";
298 acpi-dsdt-test-data = "hi";
300 compatible = "denx,u-boot-acpi-test";
304 acpi_test2: acpi-test2 {
305 compatible = "denx,u-boot-acpi-test";
306 acpi-ssdt-test-data = "cd";
307 acpi-dsdt-test-data = "jk";
311 clk_fixed: clk-fixed {
312 compatible = "fixed-clock";
314 clock-frequency = <1234>;
317 clk_fixed_factor: clk-fixed-factor {
318 compatible = "fixed-factor-clock";
322 clocks = <&clk_fixed>;
326 compatible = "fixed-clock";
328 clock-frequency = <20000000>;
332 clk_sandbox: clk-sbox {
333 compatible = "sandbox,clk";
335 assigned-clocks = <&clk_sandbox 3>;
336 assigned-clock-rates = <321>;
340 compatible = "sandbox,clk-test";
341 clocks = <&clk_fixed>,
346 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
350 compatible = "sandbox,clk-ccf";
354 compatible = "sandbox,eth";
355 reg = <0x10002000 0x1000>;
356 fake-host-hwaddr = [00 00 66 44 22 00];
359 eth_5: eth@10003000 {
360 compatible = "sandbox,eth";
361 reg = <0x10003000 0x1000>;
362 fake-host-hwaddr = [00 00 66 44 22 11];
366 compatible = "sandbox,eth";
367 reg = <0x10005000 0x1000>;
368 fake-host-hwaddr = [00 00 66 44 22 33];
372 compatible = "sandbox,eth";
373 reg = <0x10004000 0x1000>;
374 fake-host-hwaddr = [00 00 66 44 22 22];
378 sandbox_firmware: sandbox-firmware {
379 compatible = "sandbox,firmware";
382 sandbox-scmi-agent@0 {
383 compatible = "sandbox,scmi-agent";
384 #address-cells = <1>;
387 clk_scmi0: protocol@14 {
392 reset_scmi0: protocol@16 {
398 sandbox-scmi-agent@1 {
399 compatible = "sandbox,scmi-agent";
400 #address-cells = <1>;
403 clk_scmi1: protocol@14 {
415 compatible = "sandbox,pinctrl-gpio";
418 compatible = "sandbox,gpio";
421 gpio-bank-name = "a";
422 sandbox,gpio-count = <20>;
423 hog_input_active_low {
426 gpios = <10 GPIO_ACTIVE_LOW>;
428 hog_input_active_high {
431 gpios = <11 GPIO_ACTIVE_HIGH>;
436 gpios = <12 GPIO_ACTIVE_HIGH>;
441 gpios = <13 GPIO_ACTIVE_HIGH>;
445 gpio_b: extra-gpios {
446 compatible = "sandbox,gpio";
449 gpio-bank-name = "b";
450 sandbox,gpio-count = <10>;
453 gpio_c: pinmux-gpios {
454 compatible = "sandbox,gpio";
457 gpio-bank-name = "c";
458 sandbox,gpio-count = <10>;
463 #address-cells = <1>;
466 compatible = "sandbox,i2c";
467 clock-frequency = <100000>;
470 compatible = "i2c-eeprom";
471 sandbox,emul = <&emul_eeprom>;
473 compatible = "fixed-partitions";
474 #address-cells = <1>;
476 bootcount_i2c: bootcount@10 {
484 compatible = "sandbox-rtc";
485 sandbox,emul = <&emul0>;
490 compatible = "sandbox-rtc";
491 sandbox,emul = <&emul1>;
496 compatible = "sandbox,i2c-emul-parent";
497 emul_eeprom: emul-eeprom {
498 compatible = "sandbox,i2c-eeprom";
499 sandbox,filename = "i2c.bin";
500 sandbox,size = <256>;
503 compatible = "sandbox,i2c-rtc";
506 compatible = "sandbox,i2c-rtc";
510 sandbox_pmic: sandbox_pmic {
512 sandbox,emul = <&emul_pmic0>;
517 sandbox,emul = <&emul_pmic1>;
522 compatible = "u-boot,bootcount-rtc";
528 compatible = "u-boot,bootcount-i2c-eeprom";
529 i2c-eeprom = <&bootcount_i2c>;
533 compatible = "sandbox,adc";
534 vdd-supply = <&buck2>;
535 vss-microvolts = <0>;
539 compatible = "sandbox,irq";
540 interrupt-controller;
541 #interrupt-cells = <2>;
546 compatible = "sandbox,lcd-sdl";
552 compatible = "gpio-leds";
555 gpios = <&gpio_a 1 0>;
556 label = "sandbox:red";
560 gpios = <&gpio_a 2 0>;
561 label = "sandbox:green";
565 gpios = <&gpio_a 5 0>;
566 label = "sandbox:default_on";
567 default-state = "on";
571 gpios = <&gpio_a 6 0>;
572 /* label intentionally omitted */
573 default-state = "off";
578 compatible = "sandbox,mbox";
583 compatible = "sandbox,mbox-test";
584 mboxes = <&mbox 100>, <&mbox 1>;
585 mbox-names = "other", "test";
589 timebase-frequency = <2000000>;
591 timebase-frequency = <3000000>;
592 compatible = "sandbox,cpu_sandbox";
597 compatible = "sandbox,cpu_sandbox";
602 compatible = "sandbox,cpu_sandbox";
608 compatible = "sandbox,soc";
612 compatible = "sandbox,i2s";
613 #sound-dai-cells = <1>;
614 sandbox,silent; /* Don't emit sounds while testing */
618 compatible = "sandbox,nop_sandbox1";
620 compatible = "sandbox,nop_sandbox2";
624 compatible = "sandbox,nop_sandbox2";
630 compatible = "sandbox,misc_sandbox";
634 compatible = "sandbox,mmc";
638 compatible = "sandbox,mmc";
642 compatible = "sandbox,mmc";
646 compatible = "sandbox,pch";
650 compatible = "sandbox,pci";
652 bus-range = <0x00 0xff>;
653 #address-cells = <3>;
655 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
656 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
658 compatible = "pci-generic";
659 reg = <0x0000 0 0 0 0>;
660 sandbox,emul = <&swap_case_emul0_0>;
663 compatible = "pci-generic";
664 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
665 reg = <0x02000814 0 0 0 0
667 sandbox,emul = <&swap_case_emul0_1>;
670 compatible = "sandbox,p2sb";
671 reg = <0x02001010 0 0 0 0>;
672 sandbox,emul = <&p2sb_emul>;
675 intel,p2sb-port-id = <3>;
676 compatible = "sandbox,adder";
680 compatible = "sandbox,pmc";
681 reg = <0xf000 0 0 0 0>;
682 sandbox,emul = <&pmc_emul1e>;
684 gpe0-dwx-mask = <0xf>;
685 gpe0-dwx-shift-base = <4>;
691 compatible = "pci-generic";
692 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
693 reg = <0x0100f810 0 0 0 0>;
694 sandbox,emul = <&swap_case_emul0_1f>;
699 compatible = "sandbox,pci-emul-parent";
700 swap_case_emul0_0: emul0@0,0 {
701 compatible = "sandbox,swap-case";
703 swap_case_emul0_1: emul0@1,0 {
704 compatible = "sandbox,swap-case";
707 swap_case_emul0_1f: emul0@1f,0 {
708 compatible = "sandbox,swap-case";
710 p2sb_emul: emul@2,0 {
711 compatible = "sandbox,p2sb-emul";
713 pmc_emul1e: emul@1e,0 {
714 compatible = "sandbox,pmc-emul";
719 compatible = "sandbox,pci";
721 bus-range = <0x00 0xff>;
722 #address-cells = <3>;
724 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
725 0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
726 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
727 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
728 0x0c 0x00 0x1234 0x5678
729 0x10 0x00 0x1234 0x5678>;
731 reg = <0x8000 0 0 0 0>;
736 compatible = "sandbox,pci";
738 bus-range = <0x00 0xff>;
739 #address-cells = <3>;
741 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
742 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
743 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
745 compatible = "pci-generic";
746 reg = <0xf800 0 0 0 0>;
747 sandbox,emul = <&swap_case_emul2_1f>;
752 compatible = "sandbox,pci-emul-parent";
753 swap_case_emul2_1f: emul2@1f,0 {
754 compatible = "sandbox,swap-case";
759 compatible = "sandbox,pci_ep";
763 compatible = "simple-bus";
765 compatible = "denx,u-boot-probe-test";
769 compatible = "denx,u-boot-probe-test";
773 compatible = "denx,u-boot-probe-test";
777 compatible = "denx,u-boot-probe-test";
778 first-syscon = <&syscon0>;
779 second-sys-ctrl = <&another_system_controller>;
780 third-syscon = <&syscon2>;
784 pwrdom: power-domain {
785 compatible = "sandbox,power-domain";
786 #power-domain-cells = <1>;
790 compatible = "sandbox,power-domain-test";
791 power-domains = <&pwrdom 2>;
795 compatible = "sandbox,pwm";
800 compatible = "sandbox,pwm";
805 compatible = "sandbox,ram";
809 compatible = "sandbox,warm-reset";
813 compatible = "sandbox,reset";
817 compatible = "sandbox,reset-ctl";
822 compatible = "sandbox,reset-ctl-test";
823 resets = <&resetc 100>, <&resetc 2>;
824 reset-names = "other", "test";
828 compatible = "sandbox,sandbox-rng";
832 compatible = "sandbox,test-processor";
833 remoteproc-name = "remoteproc-test-dev1";
837 compatible = "sandbox,test-processor";
838 internal-memory-mapped;
839 remoteproc-name = "remoteproc-test-dev2";
843 compatible = "simple-panel";
844 backlight = <&backlight 0 100>;
848 compatible = "sandbox,smem";
852 compatible = "sandbox,sound";
854 sound-dai = <&i2s 0>;
858 sound-dai = <&audio 0>;
863 #address-cells = <1>;
866 compatible = "sandbox,spi";
867 cs-gpios = <0>, <&gpio_a 0>;
870 compatible = "spansion,m25p16", "jedec,spi-nor";
871 spi-max-frequency = <40000000>;
872 sandbox,filename = "spi.bin";
877 compatible = "sandbox,syscon0";
881 another_system_controller: syscon@1 {
882 compatible = "sandbox,syscon1";
890 compatible = "simple-mfd", "syscon";
898 compatible = "simple-mfd", "syscon";
899 reg = <0x000100 0x10>;
901 muxcontroller0: a-mux-controller {
902 compatible = "mmio-mux";
903 #mux-control-cells = <1>;
905 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
906 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
907 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
908 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
909 u-boot,mux-autoprobe;
913 muxcontroller1: emul-mux-controller {
914 compatible = "mux-emul";
915 #mux-control-cells = <0>;
916 u-boot,mux-autoprobe;
917 idle-state = <0xabcd>;
921 compatible = "sandbox,timer";
922 clock-frequency = <1000000>;
926 compatible = "sandbox,timer";
927 sandbox,timebase-frequency-fallback;
931 compatible = "sandbox,tpm2";
935 compatible = "sandbox,serial";
940 compatible = "sandbox,usb";
943 compatible = "sandbox,usb-hub";
944 #address-cells = <1>;
948 compatible = "sandbox,usb-flash";
954 compatible = "sandbox,usb";
956 compatible = "usb-hub";
957 usb,device-class = <9>;
958 #address-cells = <1>;
961 compatible = "sandbox,usb-hub";
962 #address-cells = <1>;
966 compatible = "sandbox,usb-flash";
967 sandbox,filepath = "testflash.bin";
972 compatible = "sandbox,usb-flash";
973 sandbox,filepath = "testflash1.bin";
978 compatible = "sandbox,usb-flash";
979 sandbox,filepath = "testflash2.bin";
984 compatible = "sandbox,usb-keyb";
999 compatible = "sandbox,usb";
1000 status = "disabled";
1004 compatible = "sandbox,spmi";
1005 #address-cells = <0x1>;
1006 #size-cells = <0x1>;
1009 compatible = "qcom,spmi-pmic";
1011 #address-cells = <0x1>;
1012 #size-cells = <0x1>;
1015 spmi_gpios: gpios@c000 {
1016 compatible = "qcom,pm8916-gpio";
1017 reg = <0xc000 0x400>;
1021 gpio-bank-name="spmi";
1027 compatible = "sandbox,wdt";
1031 compatible = "sandbox,axi";
1032 #address-cells = <0x1>;
1033 #size-cells = <0x1>;
1035 compatible = "sandbox,sandbox_store";
1041 #address-cells = <1>;
1043 setting = "sunrise ohoka";
1044 other-node = "/some-bus/c-test@5";
1045 int-values = <0x1937 72993>;
1046 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1048 compatible = "denx,u-boot-fdt-test";
1053 translation-test@8000 {
1054 compatible = "simple-bus";
1055 reg = <0x8000 0x4000>;
1057 #address-cells = <0x2>;
1058 #size-cells = <0x1>;
1060 ranges = <0 0x0 0x8000 0x1000
1061 1 0x100 0x9000 0x1000
1062 2 0x200 0xA000 0x1000
1063 3 0x300 0xB000 0x1000
1066 dma-ranges = <0 0x000 0x10000000 0x1000
1067 1 0x100 0x20000000 0x1000
1071 compatible = "denx,u-boot-fdt-dummy";
1072 reg = <0 0x0 0x1000>;
1073 reg-names = "sandbox-dummy-0";
1077 compatible = "denx,u-boot-fdt-dummy";
1078 reg = <1 0x100 0x1000>;
1083 compatible = "denx,u-boot-fdt-dummy";
1084 reg = <2 0x200 0x1000>;
1089 compatible = "simple-bus";
1090 reg = <3 0x300 0x1000>;
1092 #address-cells = <0x1>;
1093 #size-cells = <0x0>;
1096 compatible = "denx,u-boot-fdt-dummy";
1103 compatible = "sandbox,sandbox_osd";
1107 compatible = "sandbox,tee";
1111 compatible = "sandbox,virtio1";
1115 compatible = "sandbox,virtio2";
1119 compatible = "sandbox,scmi-devices";
1120 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1121 resets = <&reset_scmi0 3>;
1125 compatible = "sandbox,pinctrl";
1127 pinctrl-names = "default", "alternate";
1128 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1129 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1131 pinctrl_gpios: gpios {
1145 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1150 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1157 groups = "I2C_UART";
1177 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1178 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1184 compatible = "sandbox,hwspinlock";
1188 compatible = "sandbox,dma";
1191 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1192 dma-names = "m2m", "tx0", "rx0";
1196 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1197 * end of the test. If parent mdio is removed first, clean-up of the
1198 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1199 * active at the end of the test. That it turn doesn't allow the mdio
1200 * class to be destroyed, triggering an error.
1203 compatible = "sandbox,mdio-mux";
1204 #address-cells = <1>;
1206 mdio-parent-bus = <&mdio>;
1217 compatible = "sandbox,mdio";
1221 compatible = "simple-pm-bus";
1222 clocks = <&clk_sandbox 4>;
1223 power-domains = <&pwrdom 1>;
1226 resetc2: syscon-reset {
1227 compatible = "syscon-reset";
1229 regmap = <&syscon0>;
1231 mask = <0x27FFFFFF>;
1236 compatible = "sandbox,misc_sandbox";
1237 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1238 reset-names = "valid", "no_mask", "out_of_range";
1242 compatible = "sandbox,sysinfo-sandbox";
1245 some_regmapped-bus {
1246 #address-cells = <0x1>;
1247 #size-cells = <0x1>;
1249 ranges = <0x0 0x0 0x10>;
1250 compatible = "simple-bus";
1254 compatible = "sandbox,regmap_test";
1259 #include "sandbox_pmic.dtsi"