3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
8 compatible = "sandbox";
14 eth0 = "/eth@10002000";
25 remoteproc1 = &rproc_1;
26 remoteproc2 = &rproc_2;
31 testbus3 = "/some-bus";
32 testfdt0 = "/some-bus/c-test@0";
33 testfdt1 = "/some-bus/c-test@1";
35 testfdt5 = "/some-bus/c-test@5";
37 fdt-dummy0 = "/translation-test@8000/dev@0,0";
38 fdt-dummy1 = "/translation-test@8000/dev@1,100";
39 fdt-dummy2 = "/translation-test@8000/dev@2,200";
40 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
49 compatible = "sandbox,audio-codec";
50 #sound-dai-cells = <1>;
55 compatible = "google,cros-ec-sandbox";
58 * This describes the flash memory within the EC. Note
59 * that the STM32L flash erases to 0, not 0xff.
62 image-pos = <0x08000000>;
66 /* Information for sandbox */
76 image-pos = <0x10000>;
83 compatible = "sandbox,dsi-host";
88 compatible = "denx,u-boot-fdt-test";
92 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
93 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
95 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
96 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
97 <&gpio_b 7 GPIO_IN 3 2 1>,
98 <&gpio_b 8 GPIO_OUT 3 2 1>,
99 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
101 uint-value = <(-1234)>;
102 int64-value = /bits/ 64 <0x1111222233334444>;
103 int-array = <5678 9123 4567>;
104 interrupts-extended = <&irq 3 0>;
109 compatible = "not,compatible";
116 backlight: backlight {
117 compatible = "pwm-backlight";
118 enable-gpios = <&gpio_a 1>;
119 power-supply = <&ldo_1>;
120 pwms = <&pwm 0 1000>;
121 default-brightness-level = <5>;
122 brightness-levels = <0 16 32 64 128 170 202 234 255>;
127 compatible = "sandbox,phy";
132 compatible = "simple-bus";
138 compatible = "denx,u-boot-fdt-test";
143 phy_provider0: gen_phy@0 {
144 compatible = "sandbox,phy";
148 phy_provider1: gen_phy@1 {
149 compatible = "sandbox,phy";
154 gen_phy_user: gen_phy_user {
155 compatible = "simple-bus";
156 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
157 phy-names = "phy1", "phy2", "phy3";
161 #address-cells = <1>;
163 compatible = "denx,u-boot-test-bus";
168 compatible = "denx,u-boot-fdt-test";
174 compatible = "denx,u-boot-fdt-test";
180 compatible = "denx,u-boot-fdt-test";
191 compatible = "google,another-fdt-test";
198 compatible = "google,another-fdt-test";
202 compatible = "denx,u-boot-fdt-test";
206 compatible = "denx,u-boot-fdt-test";
210 compatible = "denx,u-boot-fdt-test1";
214 compatible = "denx,u-boot-devres-test";
218 compatible = "denx,u-boot-acpi-test";
222 clk_fixed: clk-fixed {
223 compatible = "fixed-clock";
225 clock-frequency = <1234>;
228 clk_fixed_factor: clk-fixed-factor {
229 compatible = "fixed-factor-clock";
233 clocks = <&clk_fixed>;
237 compatible = "fixed-clock";
239 clock-frequency = <20000000>;
243 clk_sandbox: clk-sbox {
244 compatible = "sandbox,clk";
246 assigned-clocks = <&clk_sandbox 3>;
247 assigned-clock-rates = <321>;
251 compatible = "sandbox,clk-test";
252 clocks = <&clk_fixed>,
257 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
261 compatible = "sandbox,clk-ccf";
265 compatible = "sandbox,eth";
266 reg = <0x10002000 0x1000>;
267 fake-host-hwaddr = [00 00 66 44 22 00];
270 eth_5: eth@10003000 {
271 compatible = "sandbox,eth";
272 reg = <0x10003000 0x1000>;
273 fake-host-hwaddr = [00 00 66 44 22 11];
277 compatible = "sandbox,eth";
278 reg = <0x10005000 0x1000>;
279 fake-host-hwaddr = [00 00 66 44 22 33];
283 compatible = "sandbox,eth";
284 reg = <0x10004000 0x1000>;
285 fake-host-hwaddr = [00 00 66 44 22 22];
289 sandbox_firmware: sandbox-firmware {
290 compatible = "sandbox,firmware";
295 compatible = "sandbox,gpio";
298 gpio-bank-name = "a";
299 sandbox,gpio-count = <20>;
302 gpio_b: extra-gpios {
303 compatible = "sandbox,gpio";
306 gpio-bank-name = "b";
307 sandbox,gpio-count = <10>;
311 #address-cells = <1>;
314 compatible = "sandbox,i2c";
315 clock-frequency = <100000>;
318 compatible = "i2c-eeprom";
319 sandbox,emul = <&emul_eeprom>;
324 compatible = "sandbox-rtc";
325 sandbox,emul = <&emul0>;
330 compatible = "sandbox-rtc";
331 sandbox,emul = <&emul1>;
336 compatible = "sandbox,i2c-emul-parent";
337 emul_eeprom: emul-eeprom {
338 compatible = "sandbox,i2c-eeprom";
339 sandbox,filename = "i2c.bin";
340 sandbox,size = <256>;
343 compatible = "sandbox,i2c-rtc";
346 compatible = "sandbox,i2c-rtc";
350 sandbox_pmic: sandbox_pmic {
352 sandbox,emul = <&emul_pmic0>;
357 sandbox,emul = <&emul_pmic1>;
362 compatible = "u-boot,bootcount-rtc";
368 compatible = "sandbox,adc";
369 vdd-supply = <&buck2>;
370 vss-microvolts = <0>;
374 compatible = "sandbox,irq";
375 interrupt-controller;
376 #interrupt-cells = <2>;
381 compatible = "sandbox,lcd-sdl";
387 compatible = "gpio-leds";
390 gpios = <&gpio_a 1 0>;
391 label = "sandbox:red";
395 gpios = <&gpio_a 2 0>;
396 label = "sandbox:green";
400 gpios = <&gpio_a 5 0>;
401 label = "sandbox:default_on";
402 default-state = "on";
406 gpios = <&gpio_a 6 0>;
407 label = "sandbox:default_off";
408 default-state = "off";
413 compatible = "sandbox,mbox";
418 compatible = "sandbox,mbox-test";
419 mboxes = <&mbox 100>, <&mbox 1>;
420 mbox-names = "other", "test";
425 compatible = "sandbox,cpu_sandbox";
430 compatible = "sandbox,cpu_sandbox";
435 compatible = "sandbox,cpu_sandbox";
441 compatible = "sandbox,i2s";
442 #sound-dai-cells = <1>;
443 sandbox,silent; /* Don't emit sounds while testing */
447 compatible = "sandbox,nop_sandbox1";
449 compatible = "sandbox,nop_sandbox2";
453 compatible = "sandbox,nop_sandbox2";
459 compatible = "sandbox,misc_sandbox";
463 compatible = "sandbox,mmc";
467 compatible = "sandbox,mmc";
471 compatible = "sandbox,mmc";
475 compatible = "sandbox,pch";
479 compatible = "sandbox,pci";
481 bus-range = <0x00 0xff>;
482 #address-cells = <3>;
484 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
485 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
487 compatible = "pci-generic";
488 reg = <0x0000 0 0 0 0>;
489 sandbox,emul = <&swap_case_emul0_0>;
492 compatible = "pci-generic";
493 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
494 reg = <0x02000814 0 0 0 0
496 sandbox,emul = <&swap_case_emul0_1>;
499 compatible = "sandbox,p2sb";
500 reg = <0x02001010 0 0 0 0>;
501 sandbox,emul = <&p2sb_emul>;
504 intel,p2sb-port-id = <3>;
505 compatible = "sandbox,adder";
509 compatible = "sandbox,pmc";
510 reg = <0xf000 0 0 0 0>;
511 sandbox,emul = <&pmc_emul1e>;
513 gpe0-dwx-mask = <0xf>;
514 gpe0-dwx-shift-base = <4>;
520 compatible = "pci-generic";
521 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
522 reg = <0x0100f810 0 0 0 0>;
523 sandbox,emul = <&swap_case_emul0_1f>;
528 compatible = "sandbox,pci-emul-parent";
529 swap_case_emul0_0: emul0@0,0 {
530 compatible = "sandbox,swap-case";
532 swap_case_emul0_1: emul0@1,0 {
533 compatible = "sandbox,swap-case";
536 swap_case_emul0_1f: emul0@1f,0 {
537 compatible = "sandbox,swap-case";
539 p2sb_emul: emul@2,0 {
540 compatible = "sandbox,p2sb-emul";
542 pmc_emul1e: emul@1e,0 {
543 compatible = "sandbox,pmc-emul";
548 compatible = "sandbox,pci";
550 bus-range = <0x00 0xff>;
551 #address-cells = <3>;
553 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
554 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
555 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
556 0x0c 0x00 0x1234 0x5678
557 0x10 0x00 0x1234 0x5678>;
559 reg = <0x8000 0 0 0 0>;
564 compatible = "sandbox,pci";
566 bus-range = <0x00 0xff>;
567 #address-cells = <3>;
569 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
570 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
571 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
573 compatible = "pci-generic";
574 reg = <0xf800 0 0 0 0>;
575 sandbox,emul = <&swap_case_emul2_1f>;
580 compatible = "sandbox,pci-emul-parent";
581 swap_case_emul2_1f: emul2@1f,0 {
582 compatible = "sandbox,swap-case";
587 compatible = "sandbox,pci_ep";
591 compatible = "simple-bus";
593 compatible = "denx,u-boot-probe-test";
597 compatible = "denx,u-boot-probe-test";
601 compatible = "denx,u-boot-probe-test";
605 compatible = "denx,u-boot-probe-test";
606 first-syscon = <&syscon0>;
607 second-sys-ctrl = <&another_system_controller>;
608 third-syscon = <&syscon2>;
612 pwrdom: power-domain {
613 compatible = "sandbox,power-domain";
614 #power-domain-cells = <1>;
618 compatible = "sandbox,power-domain-test";
619 power-domains = <&pwrdom 2>;
623 compatible = "sandbox,pwm";
628 compatible = "sandbox,pwm";
633 compatible = "sandbox,ram";
637 compatible = "sandbox,warm-reset";
641 compatible = "sandbox,reset";
645 compatible = "sandbox,reset-ctl";
650 compatible = "sandbox,reset-ctl-test";
651 resets = <&resetc 100>, <&resetc 2>;
652 reset-names = "other", "test";
656 compatible = "sandbox,sandbox-rng";
660 compatible = "sandbox,test-processor";
661 remoteproc-name = "remoteproc-test-dev1";
665 compatible = "sandbox,test-processor";
666 internal-memory-mapped;
667 remoteproc-name = "remoteproc-test-dev2";
671 compatible = "simple-panel";
672 backlight = <&backlight 0 100>;
676 compatible = "sandbox,smem";
680 compatible = "sandbox,sound";
682 sound-dai = <&i2s 0>;
686 sound-dai = <&audio 0>;
691 #address-cells = <1>;
694 compatible = "sandbox,spi";
695 cs-gpios = <0>, <&gpio_a 0>;
698 compatible = "spansion,m25p16", "jedec,spi-nor";
699 spi-max-frequency = <40000000>;
700 sandbox,filename = "spi.bin";
705 compatible = "sandbox,syscon0";
709 another_system_controller: syscon@1 {
710 compatible = "sandbox,syscon1";
718 compatible = "simple-mfd", "syscon";
726 compatible = "sandbox,timer";
727 clock-frequency = <1000000>;
731 compatible = "sandbox,tpm2";
735 compatible = "sandbox,serial";
740 compatible = "sandbox,usb";
743 compatible = "sandbox,usb-hub";
744 #address-cells = <1>;
748 compatible = "sandbox,usb-flash";
754 compatible = "sandbox,usb";
756 compatible = "usb-hub";
757 usb,device-class = <9>;
759 compatible = "sandbox,usb-hub";
760 #address-cells = <1>;
764 compatible = "sandbox,usb-flash";
765 sandbox,filepath = "testflash.bin";
770 compatible = "sandbox,usb-flash";
771 sandbox,filepath = "testflash1.bin";
776 compatible = "sandbox,usb-flash";
777 sandbox,filepath = "testflash2.bin";
782 compatible = "sandbox,usb-keyb";
790 compatible = "sandbox,usb";
795 compatible = "sandbox,spmi";
796 #address-cells = <0x1>;
800 compatible = "qcom,spmi-pmic";
802 #address-cells = <0x1>;
806 spmi_gpios: gpios@c000 {
807 compatible = "qcom,pm8916-gpio";
808 reg = <0xc000 0x400>;
812 gpio-bank-name="spmi";
818 compatible = "sandbox,wdt";
822 compatible = "sandbox,axi";
823 #address-cells = <0x1>;
826 compatible = "sandbox,sandbox_store";
832 #address-cells = <1>;
834 setting = "sunrise ohoka";
835 other-node = "/some-bus/c-test@5";
836 int-values = <0x1937 72993>;
838 compatible = "denx,u-boot-fdt-test";
843 translation-test@8000 {
844 compatible = "simple-bus";
845 reg = <0x8000 0x4000>;
847 #address-cells = <0x2>;
850 ranges = <0 0x0 0x8000 0x1000
851 1 0x100 0x9000 0x1000
852 2 0x200 0xA000 0x1000
853 3 0x300 0xB000 0x1000
856 dma-ranges = <0 0x000 0x10000000 0x1000
857 1 0x100 0x20000000 0x1000
861 compatible = "denx,u-boot-fdt-dummy";
862 reg = <0 0x0 0x1000>;
863 reg-names = "sandbox-dummy-0";
867 compatible = "denx,u-boot-fdt-dummy";
868 reg = <1 0x100 0x1000>;
873 compatible = "denx,u-boot-fdt-dummy";
874 reg = <2 0x200 0x1000>;
879 compatible = "simple-bus";
880 reg = <3 0x300 0x1000>;
882 #address-cells = <0x1>;
886 compatible = "denx,u-boot-fdt-dummy";
893 compatible = "sandbox,sandbox_osd";
897 compatible = "sandbox,board_sandbox";
901 compatible = "sandbox,tee";
905 compatible = "sandbox,virtio1";
909 compatible = "sandbox,virtio2";
913 compatible = "sandbox,pinctrl";
915 pinctrl-names = "default";
916 pinctrl-0 = <&gpios>;
942 compatible = "sandbox,hwspinlock";
946 compatible = "sandbox,dma";
949 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
950 dma-names = "m2m", "tx0", "rx0";
954 * keep mdio-mux ahead of mdio so that the mux is removed first at the
955 * end of the test. If parent mdio is removed first, clean-up of the
956 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
957 * active at the end of the test. That it turn doesn't allow the mdio
958 * class to be destroyed, triggering an error.
961 compatible = "sandbox,mdio-mux";
962 #address-cells = <1>;
964 mdio-parent-bus = <&mdio>;
975 compatible = "sandbox,mdio";
979 #include "sandbox_pmic.dtsi"