1/dts-v1/; 2 3/ { 4 model = "sandbox"; 5 compatible = "sandbox"; 6 #address-cells = <1>; 7 #size-cells = <1>; 8 9 aliases { 10 console = &uart0; 11 eth0 = "/eth@10002000"; 12 eth3 = ð_3; 13 eth5 = ð_5; 14 gpio1 = &gpio_a; 15 gpio2 = &gpio_b; 16 i2c0 = "/i2c@0"; 17 mmc0 = "/mmc0"; 18 mmc1 = "/mmc1"; 19 pci0 = &pci0; 20 pci1 = &pci1; 21 pci2 = &pci2; 22 remoteproc1 = &rproc_1; 23 remoteproc2 = &rproc_2; 24 rtc0 = &rtc_0; 25 rtc1 = &rtc_1; 26 spi0 = "/spi@0"; 27 testfdt6 = "/e-test"; 28 testbus3 = "/some-bus"; 29 testfdt0 = "/some-bus/c-test@0"; 30 testfdt1 = "/some-bus/c-test@1"; 31 testfdt3 = "/b-test"; 32 testfdt5 = "/some-bus/c-test@5"; 33 testfdt8 = "/a-test"; 34 fdt-dummy0 = "/translation-test@8000/dev@0,0"; 35 fdt-dummy1 = "/translation-test@8000/dev@1,100"; 36 fdt-dummy2 = "/translation-test@8000/dev@2,200"; 37 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42"; 38 usb0 = &usb_0; 39 usb1 = &usb_1; 40 usb2 = &usb_2; 41 axi0 = &axi; 42 osd0 = "/osd"; 43 }; 44 45 audio: audio-codec { 46 compatible = "sandbox,audio-codec"; 47 #sound-dai-cells = <1>; 48 }; 49 50 cros_ec: cros-ec { 51 reg = <0 0>; 52 compatible = "google,cros-ec-sandbox"; 53 54 /* 55 * This describes the flash memory within the EC. Note 56 * that the STM32L flash erases to 0, not 0xff. 57 */ 58 flash { 59 image-pos = <0x08000000>; 60 size = <0x20000>; 61 erase-value = <0>; 62 63 /* Information for sandbox */ 64 ro { 65 image-pos = <0>; 66 size = <0xf000>; 67 }; 68 wp-ro { 69 image-pos = <0xf000>; 70 size = <0x1000>; 71 }; 72 rw { 73 image-pos = <0x10000>; 74 size = <0x10000>; 75 }; 76 }; 77 }; 78 79 a-test { 80 reg = <0 1>; 81 compatible = "denx,u-boot-fdt-test"; 82 ping-expect = <0>; 83 ping-add = <0>; 84 u-boot,dm-pre-reloc; 85 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, 86 <0>, <&gpio_a 12>; 87 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>, 88 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>, 89 <&gpio_b 9 0xc 3 2 1>; 90 int-value = <1234>; 91 uint-value = <(-1234)>; 92 }; 93 94 junk { 95 reg = <1 1>; 96 compatible = "not,compatible"; 97 }; 98 99 no-compatible { 100 reg = <2 1>; 101 }; 102 103 backlight: backlight { 104 compatible = "pwm-backlight"; 105 enable-gpios = <&gpio_a 1>; 106 power-supply = <&ldo_1>; 107 pwms = <&pwm 0 1000>; 108 default-brightness-level = <5>; 109 brightness-levels = <0 16 32 64 128 170 202 234 255>; 110 }; 111 112 bind-test { 113 bind-test-child1 { 114 compatible = "sandbox,phy"; 115 #phy-cells = <1>; 116 }; 117 118 bind-test-child2 { 119 compatible = "simple-bus"; 120 }; 121 }; 122 123 b-test { 124 reg = <3 1>; 125 compatible = "denx,u-boot-fdt-test"; 126 ping-expect = <3>; 127 ping-add = <3>; 128 }; 129 130 phy_provider0: gen_phy@0 { 131 compatible = "sandbox,phy"; 132 #phy-cells = <1>; 133 }; 134 135 phy_provider1: gen_phy@1 { 136 compatible = "sandbox,phy"; 137 #phy-cells = <0>; 138 broken; 139 }; 140 141 gen_phy_user: gen_phy_user { 142 compatible = "simple-bus"; 143 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>; 144 phy-names = "phy1", "phy2", "phy3"; 145 }; 146 147 some-bus { 148 #address-cells = <1>; 149 #size-cells = <0>; 150 compatible = "denx,u-boot-test-bus"; 151 reg = <3 1>; 152 ping-expect = <4>; 153 ping-add = <4>; 154 c-test@5 { 155 compatible = "denx,u-boot-fdt-test"; 156 reg = <5>; 157 ping-expect = <5>; 158 ping-add = <5>; 159 }; 160 c-test@0 { 161 compatible = "denx,u-boot-fdt-test"; 162 reg = <0>; 163 ping-expect = <6>; 164 ping-add = <6>; 165 }; 166 c-test@1 { 167 compatible = "denx,u-boot-fdt-test"; 168 reg = <1>; 169 ping-expect = <7>; 170 ping-add = <7>; 171 }; 172 }; 173 174 d-test { 175 reg = <3 1>; 176 ping-expect = <6>; 177 ping-add = <6>; 178 compatible = "google,another-fdt-test"; 179 }; 180 181 e-test { 182 reg = <3 1>; 183 ping-expect = <6>; 184 ping-add = <6>; 185 compatible = "google,another-fdt-test"; 186 }; 187 188 f-test { 189 compatible = "denx,u-boot-fdt-test"; 190 }; 191 192 g-test { 193 compatible = "denx,u-boot-fdt-test"; 194 }; 195 196 h-test { 197 compatible = "denx,u-boot-fdt-test1"; 198 }; 199 200 clocks { 201 clk_fixed: clk-fixed { 202 compatible = "fixed-clock"; 203 #clock-cells = <0>; 204 clock-frequency = <1234>; 205 }; 206 }; 207 208 clk_sandbox: clk-sbox { 209 compatible = "sandbox,clk"; 210 #clock-cells = <1>; 211 }; 212 213 clk-test { 214 compatible = "sandbox,clk-test"; 215 clocks = <&clk_fixed>, 216 <&clk_sandbox 1>, 217 <&clk_sandbox 0>; 218 clock-names = "fixed", "i2c", "spi"; 219 }; 220 221 eth@10002000 { 222 compatible = "sandbox,eth"; 223 reg = <0x10002000 0x1000>; 224 fake-host-hwaddr = [00 00 66 44 22 00]; 225 }; 226 227 eth_5: eth@10003000 { 228 compatible = "sandbox,eth"; 229 reg = <0x10003000 0x1000>; 230 fake-host-hwaddr = [00 00 66 44 22 11]; 231 }; 232 233 eth_3: sbe5 { 234 compatible = "sandbox,eth"; 235 reg = <0x10005000 0x1000>; 236 fake-host-hwaddr = [00 00 66 44 22 33]; 237 }; 238 239 eth@10004000 { 240 compatible = "sandbox,eth"; 241 reg = <0x10004000 0x1000>; 242 fake-host-hwaddr = [00 00 66 44 22 22]; 243 }; 244 245 firmware { 246 sandbox_firmware: sandbox-firmware { 247 compatible = "sandbox,firmware"; 248 }; 249 }; 250 251 gpio_a: base-gpios { 252 compatible = "sandbox,gpio"; 253 gpio-controller; 254 #gpio-cells = <1>; 255 gpio-bank-name = "a"; 256 sandbox,gpio-count = <20>; 257 }; 258 259 gpio_b: extra-gpios { 260 compatible = "sandbox,gpio"; 261 gpio-controller; 262 #gpio-cells = <5>; 263 gpio-bank-name = "b"; 264 sandbox,gpio-count = <10>; 265 }; 266 267 i2c@0 { 268 #address-cells = <1>; 269 #size-cells = <0>; 270 reg = <0 1>; 271 compatible = "sandbox,i2c"; 272 clock-frequency = <100000>; 273 eeprom@2c { 274 reg = <0x2c>; 275 compatible = "i2c-eeprom"; 276 sandbox,emul = <&emul_eeprom>; 277 }; 278 279 rtc_0: rtc@43 { 280 reg = <0x43>; 281 compatible = "sandbox-rtc"; 282 sandbox,emul = <&emul0>; 283 }; 284 285 rtc_1: rtc@61 { 286 reg = <0x61>; 287 compatible = "sandbox-rtc"; 288 sandbox,emul = <&emul1>; 289 }; 290 291 i2c_emul: emul { 292 reg = <0xff>; 293 compatible = "sandbox,i2c-emul-parent"; 294 emul_eeprom: emul-eeprom { 295 compatible = "sandbox,i2c-eeprom"; 296 sandbox,filename = "i2c.bin"; 297 sandbox,size = <256>; 298 }; 299 emul0: emul0 { 300 compatible = "sandbox,i2c-rtc"; 301 }; 302 emul1: emull { 303 compatible = "sandbox,i2c-rtc"; 304 }; 305 }; 306 307 sandbox_pmic: sandbox_pmic { 308 reg = <0x40>; 309 sandbox,emul = <&emul_pmic0>; 310 }; 311 312 mc34708: pmic@41 { 313 reg = <0x41>; 314 sandbox,emul = <&emul_pmic1>; 315 }; 316 }; 317 318 bootcount@0 { 319 compatible = "u-boot,bootcount-rtc"; 320 rtc = <&rtc_1>; 321 offset = <0x13>; 322 }; 323 324 adc@0 { 325 compatible = "sandbox,adc"; 326 vdd-supply = <&buck2>; 327 vss-microvolts = <0>; 328 }; 329 330 lcd { 331 u-boot,dm-pre-reloc; 332 compatible = "sandbox,lcd-sdl"; 333 xres = <1366>; 334 yres = <768>; 335 }; 336 337 leds { 338 compatible = "gpio-leds"; 339 340 iracibble { 341 gpios = <&gpio_a 1 0>; 342 label = "sandbox:red"; 343 }; 344 345 martinet { 346 gpios = <&gpio_a 2 0>; 347 label = "sandbox:green"; 348 }; 349 350 default_on { 351 gpios = <&gpio_a 5 0>; 352 label = "sandbox:default_on"; 353 default-state = "on"; 354 }; 355 356 default_off { 357 gpios = <&gpio_a 6 0>; 358 label = "sandbox:default_off"; 359 default-state = "off"; 360 }; 361 }; 362 363 mbox: mbox { 364 compatible = "sandbox,mbox"; 365 #mbox-cells = <1>; 366 }; 367 368 mbox-test { 369 compatible = "sandbox,mbox-test"; 370 mboxes = <&mbox 100>, <&mbox 1>; 371 mbox-names = "other", "test"; 372 }; 373 374 cpu-test1 { 375 compatible = "sandbox,cpu_sandbox"; 376 u-boot,dm-pre-reloc; 377 }; 378 379 cpu-test2 { 380 compatible = "sandbox,cpu_sandbox"; 381 u-boot,dm-pre-reloc; 382 }; 383 384 cpu-test3 { 385 compatible = "sandbox,cpu_sandbox"; 386 u-boot,dm-pre-reloc; 387 }; 388 389 i2s: i2s { 390 compatible = "sandbox,i2s"; 391 #sound-dai-cells = <1>; 392 }; 393 394 misc-test { 395 compatible = "sandbox,misc_sandbox"; 396 }; 397 398 mmc2 { 399 compatible = "sandbox,mmc"; 400 }; 401 402 mmc1 { 403 compatible = "sandbox,mmc"; 404 }; 405 406 mmc0 { 407 compatible = "sandbox,mmc"; 408 }; 409 410 pch { 411 compatible = "sandbox,pch"; 412 }; 413 414 pci0: pci-controller0 { 415 compatible = "sandbox,pci"; 416 device_type = "pci"; 417 #address-cells = <3>; 418 #size-cells = <2>; 419 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 420 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 421 pci@0,0 { 422 compatible = "pci-generic"; 423 reg = <0x0000 0 0 0 0>; 424 emul@0,0 { 425 compatible = "sandbox,swap-case"; 426 }; 427 }; 428 pci@1f,0 { 429 compatible = "pci-generic"; 430 reg = <0xf800 0 0 0 0>; 431 emul@1f,0 { 432 compatible = "sandbox,swap-case"; 433 }; 434 }; 435 }; 436 437 pci1: pci-controller1 { 438 compatible = "sandbox,pci"; 439 device_type = "pci"; 440 #address-cells = <3>; 441 #size-cells = <2>; 442 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 443 0x01000000 0 0x40000000 0x40000000 0 0x2000>; 444 sandbox,dev-info = <0x08 0x00 0x1234 0x5678 445 0x0c 0x00 0x1234 0x5678 446 0x10 0x00 0x1234 0x5678>; 447 pci@10,0 { 448 reg = <0x8000 0 0 0 0>; 449 }; 450 }; 451 452 pci2: pci-controller2 { 453 compatible = "sandbox,pci"; 454 device_type = "pci"; 455 #address-cells = <3>; 456 #size-cells = <2>; 457 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000 458 0x01000000 0 0x60000000 0x60000000 0 0x2000>; 459 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>; 460 pci@1f,0 { 461 compatible = "pci-generic"; 462 reg = <0xf800 0 0 0 0>; 463 emul@1f,0 { 464 compatible = "sandbox,swap-case"; 465 }; 466 }; 467 }; 468 469 probing { 470 compatible = "simple-bus"; 471 test1 { 472 compatible = "denx,u-boot-probe-test"; 473 }; 474 475 test2 { 476 compatible = "denx,u-boot-probe-test"; 477 }; 478 479 test3 { 480 compatible = "denx,u-boot-probe-test"; 481 }; 482 483 test4 { 484 compatible = "denx,u-boot-probe-test"; 485 first-syscon = <&syscon0>; 486 second-sys-ctrl = <&another_system_controller>; 487 }; 488 }; 489 490 pwrdom: power-domain { 491 compatible = "sandbox,power-domain"; 492 #power-domain-cells = <1>; 493 }; 494 495 power-domain-test { 496 compatible = "sandbox,power-domain-test"; 497 power-domains = <&pwrdom 2>; 498 }; 499 500 pwm: pwm { 501 compatible = "sandbox,pwm"; 502 #pwm-cells = <2>; 503 }; 504 505 pwm2 { 506 compatible = "sandbox,pwm"; 507 #pwm-cells = <2>; 508 }; 509 510 ram { 511 compatible = "sandbox,ram"; 512 }; 513 514 reset@0 { 515 compatible = "sandbox,warm-reset"; 516 }; 517 518 reset@1 { 519 compatible = "sandbox,reset"; 520 }; 521 522 resetc: reset-ctl { 523 compatible = "sandbox,reset-ctl"; 524 #reset-cells = <1>; 525 }; 526 527 reset-ctl-test { 528 compatible = "sandbox,reset-ctl-test"; 529 resets = <&resetc 100>, <&resetc 2>; 530 reset-names = "other", "test"; 531 }; 532 533 rproc_1: rproc@1 { 534 compatible = "sandbox,test-processor"; 535 remoteproc-name = "remoteproc-test-dev1"; 536 }; 537 538 rproc_2: rproc@2 { 539 compatible = "sandbox,test-processor"; 540 internal-memory-mapped; 541 remoteproc-name = "remoteproc-test-dev2"; 542 }; 543 544 panel { 545 compatible = "simple-panel"; 546 backlight = <&backlight 0 100>; 547 }; 548 549 smem@0 { 550 compatible = "sandbox,smem"; 551 }; 552 553 sound { 554 compatible = "sandbox,sound"; 555 cpu { 556 sound-dai = <&i2s 0>; 557 }; 558 559 codec { 560 sound-dai = <&audio 0>; 561 }; 562 }; 563 564 spi@0 { 565 #address-cells = <1>; 566 #size-cells = <0>; 567 reg = <0 1>; 568 compatible = "sandbox,spi"; 569 cs-gpios = <0>, <&gpio_a 0>; 570 spi.bin@0 { 571 reg = <0>; 572 compatible = "spansion,m25p16", "spi-flash"; 573 spi-max-frequency = <40000000>; 574 sandbox,filename = "spi.bin"; 575 }; 576 }; 577 578 syscon0: syscon@0 { 579 compatible = "sandbox,syscon0"; 580 reg = <0x10 16>; 581 }; 582 583 another_system_controller: syscon@1 { 584 compatible = "sandbox,syscon1"; 585 reg = <0x20 5 586 0x28 6 587 0x30 7 588 0x38 8>; 589 }; 590 591 syscon@2 { 592 compatible = "simple-mfd", "syscon"; 593 reg = <0x40 5 594 0x48 6 595 0x50 7 596 0x58 8>; 597 }; 598 599 timer { 600 compatible = "sandbox,timer"; 601 clock-frequency = <1000000>; 602 }; 603 604 tpm2 { 605 compatible = "sandbox,tpm2"; 606 }; 607 608 uart0: serial { 609 compatible = "sandbox,serial"; 610 u-boot,dm-pre-reloc; 611 }; 612 613 usb_0: usb@0 { 614 compatible = "sandbox,usb"; 615 status = "disabled"; 616 hub { 617 compatible = "sandbox,usb-hub"; 618 #address-cells = <1>; 619 #size-cells = <0>; 620 flash-stick { 621 reg = <0>; 622 compatible = "sandbox,usb-flash"; 623 }; 624 }; 625 }; 626 627 usb_1: usb@1 { 628 compatible = "sandbox,usb"; 629 hub { 630 compatible = "usb-hub"; 631 usb,device-class = <9>; 632 hub-emul { 633 compatible = "sandbox,usb-hub"; 634 #address-cells = <1>; 635 #size-cells = <0>; 636 flash-stick@0 { 637 reg = <0>; 638 compatible = "sandbox,usb-flash"; 639 sandbox,filepath = "testflash.bin"; 640 }; 641 642 flash-stick@1 { 643 reg = <1>; 644 compatible = "sandbox,usb-flash"; 645 sandbox,filepath = "testflash1.bin"; 646 }; 647 648 flash-stick@2 { 649 reg = <2>; 650 compatible = "sandbox,usb-flash"; 651 sandbox,filepath = "testflash2.bin"; 652 }; 653 654 keyb@3 { 655 reg = <3>; 656 compatible = "sandbox,usb-keyb"; 657 }; 658 659 }; 660 }; 661 }; 662 663 usb_2: usb@2 { 664 compatible = "sandbox,usb"; 665 status = "disabled"; 666 }; 667 668 spmi: spmi@0 { 669 compatible = "sandbox,spmi"; 670 #address-cells = <0x1>; 671 #size-cells = <0x1>; 672 pm8916@0 { 673 compatible = "qcom,spmi-pmic"; 674 reg = <0x0 0x1>; 675 #address-cells = <0x1>; 676 #size-cells = <0x1>; 677 678 spmi_gpios: gpios@c000 { 679 compatible = "qcom,pm8916-gpio"; 680 reg = <0xc000 0x400>; 681 gpio-controller; 682 gpio-count = <4>; 683 #gpio-cells = <2>; 684 gpio-bank-name="spmi"; 685 }; 686 }; 687 }; 688 689 wdt0: wdt@0 { 690 compatible = "sandbox,wdt"; 691 }; 692 693 axi: axi@0 { 694 compatible = "sandbox,axi"; 695 #address-cells = <0x1>; 696 #size-cells = <0x1>; 697 store@0 { 698 compatible = "sandbox,sandbox_store"; 699 reg = <0x0 0x400>; 700 }; 701 }; 702 703 chosen { 704 #address-cells = <1>; 705 #size-cells = <1>; 706 chosen-test { 707 compatible = "denx,u-boot-fdt-test"; 708 reg = <9 1>; 709 }; 710 }; 711 712 translation-test@8000 { 713 compatible = "simple-bus"; 714 reg = <0x8000 0x4000>; 715 716 #address-cells = <0x2>; 717 #size-cells = <0x1>; 718 719 ranges = <0 0x0 0x8000 0x1000 720 1 0x100 0x9000 0x1000 721 2 0x200 0xA000 0x1000 722 3 0x300 0xB000 0x1000 723 >; 724 725 dev@0,0 { 726 compatible = "denx,u-boot-fdt-dummy"; 727 reg = <0 0x0 0x1000>; 728 reg-names = "sandbox-dummy-0"; 729 }; 730 731 dev@1,100 { 732 compatible = "denx,u-boot-fdt-dummy"; 733 reg = <1 0x100 0x1000>; 734 735 }; 736 737 dev@2,200 { 738 compatible = "denx,u-boot-fdt-dummy"; 739 reg = <2 0x200 0x1000>; 740 }; 741 742 743 noxlatebus@3,300 { 744 compatible = "simple-bus"; 745 reg = <3 0x300 0x1000>; 746 747 #address-cells = <0x1>; 748 #size-cells = <0x0>; 749 750 dev@42 { 751 compatible = "denx,u-boot-fdt-dummy"; 752 reg = <0x42>; 753 }; 754 }; 755 }; 756 757 osd { 758 compatible = "sandbox,sandbox_osd"; 759 }; 760 761 board { 762 compatible = "sandbox,board_sandbox"; 763 }; 764 765 sandbox_tee { 766 compatible = "sandbox,tee"; 767 }; 768 769 sandbox_virtio1 { 770 compatible = "sandbox,virtio1"; 771 }; 772 773 sandbox_virtio2 { 774 compatible = "sandbox,virtio2"; 775 }; 776 777 pinctrl { 778 compatible = "sandbox,pinctrl"; 779 }; 780 781 hwspinlock@0 { 782 compatible = "sandbox,hwspinlock"; 783 }; 784 785 dma: dma { 786 compatible = "sandbox,dma"; 787 #dma-cells = <1>; 788 789 dmas = <&dma 0>, <&dma 1>, <&dma 2>; 790 dma-names = "m2m", "tx0", "rx0"; 791 }; 792}; 793 794#include "sandbox_pmic.dtsi" 795