3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
8 compatible = "sandbox";
14 eth0 = "/eth@10002000";
26 remoteproc1 = &rproc_1;
27 remoteproc2 = &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>;
56 compatible = "google,cros-ec-sandbox";
59 * This describes the flash memory within the EC. Note
60 * that the STM32L flash erases to 0, not 0xff.
63 image-pos = <0x08000000>;
67 /* Information for sandbox */
77 image-pos = <0x10000>;
84 compatible = "sandbox,dsi-host";
89 compatible = "denx,u-boot-fdt-test";
93 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
94 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
96 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
97 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
98 <&gpio_b 7 GPIO_IN 3 2 1>,
99 <&gpio_b 8 GPIO_OUT 3 2 1>,
100 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
102 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
103 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
104 <&gpio_c 2 GPIO_OUT>,
105 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
106 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
109 uint-value = <(-1234)>;
110 int64-value = /bits/ 64 <0x1111222233334444>;
111 int-array = <5678 9123 4567>;
112 interrupts-extended = <&irq 3 0>;
117 compatible = "not,compatible";
124 backlight: backlight {
125 compatible = "pwm-backlight";
126 enable-gpios = <&gpio_a 1>;
127 power-supply = <&ldo_1>;
128 pwms = <&pwm 0 1000>;
129 default-brightness-level = <5>;
130 brightness-levels = <0 16 32 64 128 170 202 234 255>;
135 compatible = "sandbox,phy";
140 compatible = "simple-bus";
146 compatible = "denx,u-boot-fdt-test";
151 phy_provider0: gen_phy@0 {
152 compatible = "sandbox,phy";
156 phy_provider1: gen_phy@1 {
157 compatible = "sandbox,phy";
162 gen_phy_user: gen_phy_user {
163 compatible = "simple-bus";
164 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
165 phy-names = "phy1", "phy2", "phy3";
169 #address-cells = <1>;
171 compatible = "denx,u-boot-test-bus";
176 compatible = "denx,u-boot-fdt-test";
182 compatible = "denx,u-boot-fdt-test";
188 compatible = "denx,u-boot-fdt-test";
199 compatible = "google,another-fdt-test";
206 compatible = "google,another-fdt-test";
210 compatible = "denx,u-boot-fdt-test";
214 compatible = "denx,u-boot-fdt-test";
218 compatible = "denx,u-boot-fdt-test1";
222 compatible = "denx,u-boot-devres-test";
226 compatible = "denx,u-boot-acpi-test";
230 clk_fixed: clk-fixed {
231 compatible = "fixed-clock";
233 clock-frequency = <1234>;
236 clk_fixed_factor: clk-fixed-factor {
237 compatible = "fixed-factor-clock";
241 clocks = <&clk_fixed>;
245 compatible = "fixed-clock";
247 clock-frequency = <20000000>;
251 clk_sandbox: clk-sbox {
252 compatible = "sandbox,clk";
254 assigned-clocks = <&clk_sandbox 3>;
255 assigned-clock-rates = <321>;
259 compatible = "sandbox,clk-test";
260 clocks = <&clk_fixed>,
265 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
269 compatible = "sandbox,clk-ccf";
273 compatible = "sandbox,eth";
274 reg = <0x10002000 0x1000>;
275 fake-host-hwaddr = [00 00 66 44 22 00];
278 eth_5: eth@10003000 {
279 compatible = "sandbox,eth";
280 reg = <0x10003000 0x1000>;
281 fake-host-hwaddr = [00 00 66 44 22 11];
285 compatible = "sandbox,eth";
286 reg = <0x10005000 0x1000>;
287 fake-host-hwaddr = [00 00 66 44 22 33];
291 compatible = "sandbox,eth";
292 reg = <0x10004000 0x1000>;
293 fake-host-hwaddr = [00 00 66 44 22 22];
297 sandbox_firmware: sandbox-firmware {
298 compatible = "sandbox,firmware";
303 compatible = "sandbox,pinctrl-gpio";
306 compatible = "sandbox,gpio";
309 gpio-bank-name = "a";
310 sandbox,gpio-count = <20>;
313 gpio_b: extra-gpios {
314 compatible = "sandbox,gpio";
317 gpio-bank-name = "b";
318 sandbox,gpio-count = <10>;
321 gpio_c: pinmux-gpios {
322 compatible = "sandbox,gpio";
325 gpio-bank-name = "c";
326 sandbox,gpio-count = <10>;
331 #address-cells = <1>;
334 compatible = "sandbox,i2c";
335 clock-frequency = <100000>;
338 compatible = "i2c-eeprom";
339 sandbox,emul = <&emul_eeprom>;
344 compatible = "sandbox-rtc";
345 sandbox,emul = <&emul0>;
350 compatible = "sandbox-rtc";
351 sandbox,emul = <&emul1>;
356 compatible = "sandbox,i2c-emul-parent";
357 emul_eeprom: emul-eeprom {
358 compatible = "sandbox,i2c-eeprom";
359 sandbox,filename = "i2c.bin";
360 sandbox,size = <256>;
363 compatible = "sandbox,i2c-rtc";
366 compatible = "sandbox,i2c-rtc";
370 sandbox_pmic: sandbox_pmic {
372 sandbox,emul = <&emul_pmic0>;
377 sandbox,emul = <&emul_pmic1>;
382 compatible = "u-boot,bootcount-rtc";
388 compatible = "sandbox,adc";
389 vdd-supply = <&buck2>;
390 vss-microvolts = <0>;
394 compatible = "sandbox,irq";
395 interrupt-controller;
396 #interrupt-cells = <2>;
401 compatible = "sandbox,lcd-sdl";
407 compatible = "gpio-leds";
410 gpios = <&gpio_a 1 0>;
411 label = "sandbox:red";
415 gpios = <&gpio_a 2 0>;
416 label = "sandbox:green";
420 gpios = <&gpio_a 5 0>;
421 label = "sandbox:default_on";
422 default-state = "on";
426 gpios = <&gpio_a 6 0>;
427 label = "sandbox:default_off";
428 default-state = "off";
433 compatible = "sandbox,mbox";
438 compatible = "sandbox,mbox-test";
439 mboxes = <&mbox 100>, <&mbox 1>;
440 mbox-names = "other", "test";
445 compatible = "sandbox,cpu_sandbox";
450 compatible = "sandbox,cpu_sandbox";
455 compatible = "sandbox,cpu_sandbox";
461 compatible = "sandbox,i2s";
462 #sound-dai-cells = <1>;
463 sandbox,silent; /* Don't emit sounds while testing */
467 compatible = "sandbox,nop_sandbox1";
469 compatible = "sandbox,nop_sandbox2";
473 compatible = "sandbox,nop_sandbox2";
479 compatible = "sandbox,misc_sandbox";
483 compatible = "sandbox,mmc";
487 compatible = "sandbox,mmc";
491 compatible = "sandbox,mmc";
495 compatible = "sandbox,pch";
499 compatible = "sandbox,pci";
501 bus-range = <0x00 0xff>;
502 #address-cells = <3>;
504 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
505 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
507 compatible = "pci-generic";
508 reg = <0x0000 0 0 0 0>;
509 sandbox,emul = <&swap_case_emul0_0>;
512 compatible = "pci-generic";
513 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
514 reg = <0x02000814 0 0 0 0
516 sandbox,emul = <&swap_case_emul0_1>;
519 compatible = "sandbox,p2sb";
520 reg = <0x02001010 0 0 0 0>;
521 sandbox,emul = <&p2sb_emul>;
524 intel,p2sb-port-id = <3>;
525 compatible = "sandbox,adder";
529 compatible = "sandbox,pmc";
530 reg = <0xf000 0 0 0 0>;
531 sandbox,emul = <&pmc_emul1e>;
533 gpe0-dwx-mask = <0xf>;
534 gpe0-dwx-shift-base = <4>;
540 compatible = "pci-generic";
541 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
542 reg = <0x0100f810 0 0 0 0>;
543 sandbox,emul = <&swap_case_emul0_1f>;
548 compatible = "sandbox,pci-emul-parent";
549 swap_case_emul0_0: emul0@0,0 {
550 compatible = "sandbox,swap-case";
552 swap_case_emul0_1: emul0@1,0 {
553 compatible = "sandbox,swap-case";
556 swap_case_emul0_1f: emul0@1f,0 {
557 compatible = "sandbox,swap-case";
559 p2sb_emul: emul@2,0 {
560 compatible = "sandbox,p2sb-emul";
562 pmc_emul1e: emul@1e,0 {
563 compatible = "sandbox,pmc-emul";
568 compatible = "sandbox,pci";
570 bus-range = <0x00 0xff>;
571 #address-cells = <3>;
573 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
574 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
575 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
576 0x0c 0x00 0x1234 0x5678
577 0x10 0x00 0x1234 0x5678>;
579 reg = <0x8000 0 0 0 0>;
584 compatible = "sandbox,pci";
586 bus-range = <0x00 0xff>;
587 #address-cells = <3>;
589 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
590 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
591 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
593 compatible = "pci-generic";
594 reg = <0xf800 0 0 0 0>;
595 sandbox,emul = <&swap_case_emul2_1f>;
600 compatible = "sandbox,pci-emul-parent";
601 swap_case_emul2_1f: emul2@1f,0 {
602 compatible = "sandbox,swap-case";
607 compatible = "sandbox,pci_ep";
611 compatible = "simple-bus";
613 compatible = "denx,u-boot-probe-test";
617 compatible = "denx,u-boot-probe-test";
621 compatible = "denx,u-boot-probe-test";
625 compatible = "denx,u-boot-probe-test";
626 first-syscon = <&syscon0>;
627 second-sys-ctrl = <&another_system_controller>;
628 third-syscon = <&syscon2>;
632 pwrdom: power-domain {
633 compatible = "sandbox,power-domain";
634 #power-domain-cells = <1>;
638 compatible = "sandbox,power-domain-test";
639 power-domains = <&pwrdom 2>;
643 compatible = "sandbox,pwm";
648 compatible = "sandbox,pwm";
653 compatible = "sandbox,ram";
657 compatible = "sandbox,warm-reset";
661 compatible = "sandbox,reset";
665 compatible = "sandbox,reset-ctl";
670 compatible = "sandbox,reset-ctl-test";
671 resets = <&resetc 100>, <&resetc 2>;
672 reset-names = "other", "test";
676 compatible = "sandbox,sandbox-rng";
680 compatible = "sandbox,test-processor";
681 remoteproc-name = "remoteproc-test-dev1";
685 compatible = "sandbox,test-processor";
686 internal-memory-mapped;
687 remoteproc-name = "remoteproc-test-dev2";
691 compatible = "simple-panel";
692 backlight = <&backlight 0 100>;
696 compatible = "sandbox,smem";
700 compatible = "sandbox,sound";
702 sound-dai = <&i2s 0>;
706 sound-dai = <&audio 0>;
711 #address-cells = <1>;
714 compatible = "sandbox,spi";
715 cs-gpios = <0>, <&gpio_a 0>;
718 compatible = "spansion,m25p16", "jedec,spi-nor";
719 spi-max-frequency = <40000000>;
720 sandbox,filename = "spi.bin";
725 compatible = "sandbox,syscon0";
729 another_system_controller: syscon@1 {
730 compatible = "sandbox,syscon1";
738 compatible = "simple-mfd", "syscon";
746 compatible = "sandbox,timer";
747 clock-frequency = <1000000>;
751 compatible = "sandbox,tpm2";
755 compatible = "sandbox,serial";
760 compatible = "sandbox,usb";
763 compatible = "sandbox,usb-hub";
764 #address-cells = <1>;
768 compatible = "sandbox,usb-flash";
774 compatible = "sandbox,usb";
776 compatible = "usb-hub";
777 usb,device-class = <9>;
779 compatible = "sandbox,usb-hub";
780 #address-cells = <1>;
784 compatible = "sandbox,usb-flash";
785 sandbox,filepath = "testflash.bin";
790 compatible = "sandbox,usb-flash";
791 sandbox,filepath = "testflash1.bin";
796 compatible = "sandbox,usb-flash";
797 sandbox,filepath = "testflash2.bin";
802 compatible = "sandbox,usb-keyb";
810 compatible = "sandbox,usb";
815 compatible = "sandbox,spmi";
816 #address-cells = <0x1>;
820 compatible = "qcom,spmi-pmic";
822 #address-cells = <0x1>;
826 spmi_gpios: gpios@c000 {
827 compatible = "qcom,pm8916-gpio";
828 reg = <0xc000 0x400>;
832 gpio-bank-name="spmi";
838 compatible = "sandbox,wdt";
842 compatible = "sandbox,axi";
843 #address-cells = <0x1>;
846 compatible = "sandbox,sandbox_store";
852 #address-cells = <1>;
854 setting = "sunrise ohoka";
855 other-node = "/some-bus/c-test@5";
856 int-values = <0x1937 72993>;
858 compatible = "denx,u-boot-fdt-test";
863 translation-test@8000 {
864 compatible = "simple-bus";
865 reg = <0x8000 0x4000>;
867 #address-cells = <0x2>;
870 ranges = <0 0x0 0x8000 0x1000
871 1 0x100 0x9000 0x1000
872 2 0x200 0xA000 0x1000
873 3 0x300 0xB000 0x1000
876 dma-ranges = <0 0x000 0x10000000 0x1000
877 1 0x100 0x20000000 0x1000
881 compatible = "denx,u-boot-fdt-dummy";
882 reg = <0 0x0 0x1000>;
883 reg-names = "sandbox-dummy-0";
887 compatible = "denx,u-boot-fdt-dummy";
888 reg = <1 0x100 0x1000>;
893 compatible = "denx,u-boot-fdt-dummy";
894 reg = <2 0x200 0x1000>;
899 compatible = "simple-bus";
900 reg = <3 0x300 0x1000>;
902 #address-cells = <0x1>;
906 compatible = "denx,u-boot-fdt-dummy";
913 compatible = "sandbox,sandbox_osd";
917 compatible = "sandbox,board_sandbox";
921 compatible = "sandbox,tee";
925 compatible = "sandbox,virtio1";
929 compatible = "sandbox,virtio2";
933 compatible = "sandbox,pinctrl";
935 pinctrl-names = "default";
936 pinctrl-0 = <&gpios>;
962 compatible = "sandbox,hwspinlock";
966 compatible = "sandbox,dma";
969 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
970 dma-names = "m2m", "tx0", "rx0";
974 * keep mdio-mux ahead of mdio so that the mux is removed first at the
975 * end of the test. If parent mdio is removed first, clean-up of the
976 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
977 * active at the end of the test. That it turn doesn't allow the mdio
978 * class to be destroyed, triggering an error.
981 compatible = "sandbox,mdio-mux";
982 #address-cells = <1>;
984 mdio-parent-bus = <&mdio>;
995 compatible = "sandbox,mdio";
999 #include "sandbox_pmic.dtsi"