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 i2c0 = "/i2c@0"; 15 mmc0 = "/mmc0"; 16 mmc1 = "/mmc1"; 17 pci0 = &pci; 18 remoteproc1 = &rproc_1; 19 remoteproc2 = &rproc_2; 20 rtc0 = &rtc_0; 21 rtc1 = &rtc_1; 22 spi0 = "/spi@0"; 23 testfdt6 = "/e-test"; 24 testbus3 = "/some-bus"; 25 testfdt0 = "/some-bus/c-test@0"; 26 testfdt1 = "/some-bus/c-test@1"; 27 testfdt3 = "/b-test"; 28 testfdt5 = "/some-bus/c-test@5"; 29 testfdt8 = "/a-test"; 30 usb0 = &usb_0; 31 usb1 = &usb_1; 32 usb2 = &usb_2; 33 }; 34 35 a-test { 36 reg = <0 1>; 37 compatible = "denx,u-boot-fdt-test"; 38 ping-expect = <0>; 39 ping-add = <0>; 40 u-boot,dm-pre-reloc; 41 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, 42 <0>, <&gpio_a 12>; 43 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>, 44 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>, 45 <&gpio_b 9 0xc 3 2 1>; 46 }; 47 48 junk { 49 reg = <1 1>; 50 compatible = "not,compatible"; 51 }; 52 53 no-compatible { 54 reg = <2 1>; 55 }; 56 57 b-test { 58 reg = <3 1>; 59 compatible = "denx,u-boot-fdt-test"; 60 ping-expect = <3>; 61 ping-add = <3>; 62 }; 63 64 phy_provider0: gen_phy@0 { 65 compatible = "sandbox,phy"; 66 #phy-cells = <1>; 67 }; 68 69 phy_provider1: gen_phy@1 { 70 compatible = "sandbox,phy"; 71 #phy-cells = <0>; 72 broken; 73 }; 74 75 gen_phy_user: gen_phy_user { 76 compatible = "simple-bus"; 77 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>; 78 phy-names = "phy1", "phy2", "phy3"; 79 }; 80 81 some-bus { 82 #address-cells = <1>; 83 #size-cells = <0>; 84 compatible = "denx,u-boot-test-bus"; 85 reg = <3 1>; 86 ping-expect = <4>; 87 ping-add = <4>; 88 c-test@5 { 89 compatible = "denx,u-boot-fdt-test"; 90 reg = <5>; 91 ping-expect = <5>; 92 ping-add = <5>; 93 }; 94 c-test@0 { 95 compatible = "denx,u-boot-fdt-test"; 96 reg = <0>; 97 ping-expect = <6>; 98 ping-add = <6>; 99 }; 100 c-test@1 { 101 compatible = "denx,u-boot-fdt-test"; 102 reg = <1>; 103 ping-expect = <7>; 104 ping-add = <7>; 105 }; 106 }; 107 108 d-test { 109 reg = <3 1>; 110 ping-expect = <6>; 111 ping-add = <6>; 112 compatible = "google,another-fdt-test"; 113 }; 114 115 e-test { 116 reg = <3 1>; 117 ping-expect = <6>; 118 ping-add = <6>; 119 compatible = "google,another-fdt-test"; 120 }; 121 122 f-test { 123 compatible = "denx,u-boot-fdt-test"; 124 }; 125 126 g-test { 127 compatible = "denx,u-boot-fdt-test"; 128 }; 129 130 clocks { 131 clk_fixed: clk-fixed { 132 compatible = "fixed-clock"; 133 #clock-cells = <0>; 134 clock-frequency = <1234>; 135 }; 136 }; 137 138 clk_sandbox: clk-sbox { 139 compatible = "sandbox,clk"; 140 #clock-cells = <1>; 141 }; 142 143 clk-test { 144 compatible = "sandbox,clk-test"; 145 clocks = <&clk_fixed>, 146 <&clk_sandbox 1>, 147 <&clk_sandbox 0>; 148 clock-names = "fixed", "i2c", "spi"; 149 }; 150 151 eth@10002000 { 152 compatible = "sandbox,eth"; 153 reg = <0x10002000 0x1000>; 154 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>; 155 }; 156 157 eth_5: eth@10003000 { 158 compatible = "sandbox,eth"; 159 reg = <0x10003000 0x1000>; 160 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>; 161 }; 162 163 eth_3: sbe5 { 164 compatible = "sandbox,eth"; 165 reg = <0x10005000 0x1000>; 166 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>; 167 }; 168 169 eth@10004000 { 170 compatible = "sandbox,eth"; 171 reg = <0x10004000 0x1000>; 172 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; 173 }; 174 175 firmware { 176 sandbox_firmware: sandbox-firmware { 177 compatible = "sandbox,firmware"; 178 }; 179 180 sandbox-scmi-agent@0 { 181 compatible = "sandbox,scmi-agent"; 182 #address-cells = <1>; 183 #size-cells = <0>; 184 }; 185 186 sandbox-scmi-agent@1 { 187 compatible = "sandbox,scmi-agent"; 188 #address-cells = <1>; 189 #size-cells = <0>; 190 191 protocol@10 { 192 reg = <0x10>; 193 }; 194 }; 195 }; 196 197 gpio_a: base-gpios { 198 compatible = "sandbox,gpio"; 199 gpio-controller; 200 #gpio-cells = <1>; 201 gpio-bank-name = "a"; 202 num-gpios = <20>; 203 }; 204 205 gpio_b: extra-gpios { 206 compatible = "sandbox,gpio"; 207 gpio-controller; 208 #gpio-cells = <5>; 209 gpio-bank-name = "b"; 210 num-gpios = <10>; 211 }; 212 213 i2c@0 { 214 #address-cells = <1>; 215 #size-cells = <0>; 216 reg = <0 1>; 217 compatible = "sandbox,i2c"; 218 clock-frequency = <100000>; 219 eeprom@2c { 220 reg = <0x2c>; 221 compatible = "i2c-eeprom"; 222 emul { 223 compatible = "sandbox,i2c-eeprom"; 224 sandbox,filename = "i2c.bin"; 225 sandbox,size = <256>; 226 }; 227 }; 228 229 rtc_0: rtc@43 { 230 reg = <0x43>; 231 compatible = "sandbox-rtc"; 232 emul { 233 compatible = "sandbox,i2c-rtc"; 234 }; 235 }; 236 237 rtc_1: rtc@61 { 238 reg = <0x61>; 239 compatible = "sandbox-rtc"; 240 emul { 241 compatible = "sandbox,i2c-rtc"; 242 }; 243 }; 244 245 sandbox_pmic: sandbox_pmic { 246 reg = <0x40>; 247 }; 248 }; 249 250 adc@0 { 251 compatible = "sandbox,adc"; 252 vdd-supply = <&buck2>; 253 vss-microvolts = <0>; 254 }; 255 256 lcd { 257 u-boot,dm-pre-reloc; 258 compatible = "sandbox,lcd-sdl"; 259 xres = <1366>; 260 yres = <768>; 261 }; 262 263 leds { 264 compatible = "gpio-leds"; 265 266 iracibble { 267 gpios = <&gpio_a 1 0>; 268 label = "sandbox:red"; 269 }; 270 271 martinet { 272 gpios = <&gpio_a 2 0>; 273 label = "sandbox:green"; 274 }; 275 }; 276 277 mbox: mbox { 278 compatible = "sandbox,mbox"; 279 #mbox-cells = <1>; 280 }; 281 282 mbox-test { 283 compatible = "sandbox,mbox-test"; 284 mboxes = <&mbox 100>, <&mbox 1>; 285 mbox-names = "other", "test"; 286 }; 287 288 mmc2 { 289 compatible = "sandbox,mmc"; 290 }; 291 292 mmc1 { 293 compatible = "sandbox,mmc"; 294 }; 295 296 mmc0 { 297 compatible = "sandbox,mmc"; 298 }; 299 300 nop-test_0 { 301 compatible = "sandbox,nop_sandbox1"; 302 nop-test_1 { 303 compatible = "sandbox,nop_sandbox2"; 304 bind = "True"; 305 }; 306 nop-test_2 { 307 compatible = "sandbox,nop_sandbox2"; 308 bind = "False"; 309 }; 310 }; 311 312 pci: pci-controller { 313 compatible = "sandbox,pci"; 314 device_type = "pci"; 315 #address-cells = <3>; 316 #size-cells = <2>; 317 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 318 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 319 pci@1f,0 { 320 compatible = "pci-generic"; 321 reg = <0xf800 0 0 0 0>; 322 emul@1f,0 { 323 compatible = "sandbox,swap-case"; 324 }; 325 }; 326 }; 327 328 probing { 329 compatible = "simple-bus"; 330 test1 { 331 compatible = "denx,u-boot-probe-test"; 332 }; 333 334 test2 { 335 compatible = "denx,u-boot-probe-test"; 336 }; 337 338 test3 { 339 compatible = "denx,u-boot-probe-test"; 340 }; 341 342 test4 { 343 compatible = "denx,u-boot-probe-test"; 344 first-syscon = <&syscon0>; 345 second-sys-ctrl = <&another_system_controller>; 346 }; 347 }; 348 349 pwrdom: power-domain { 350 compatible = "sandbox,power-domain"; 351 #power-domain-cells = <1>; 352 }; 353 354 power-domain-test { 355 compatible = "sandbox,power-domain-test"; 356 power-domains = <&pwrdom 2>; 357 }; 358 359 pwm { 360 compatible = "sandbox,pwm"; 361 }; 362 363 pwm2 { 364 compatible = "sandbox,pwm"; 365 }; 366 367 ram { 368 compatible = "sandbox,ram"; 369 }; 370 371 reset@0 { 372 compatible = "sandbox,warm-reset"; 373 }; 374 375 reset@1 { 376 compatible = "sandbox,reset"; 377 }; 378 379 resetc: reset-ctl { 380 compatible = "sandbox,reset-ctl"; 381 #reset-cells = <1>; 382 }; 383 384 reset-ctl-test { 385 compatible = "sandbox,reset-ctl-test"; 386 resets = <&resetc 100>, <&resetc 2>; 387 reset-names = "other", "test"; 388 }; 389 390 rproc_1: rproc@1 { 391 compatible = "sandbox,test-processor"; 392 remoteproc-name = "remoteproc-test-dev1"; 393 }; 394 395 rproc_2: rproc@2 { 396 compatible = "sandbox,test-processor"; 397 internal-memory-mapped; 398 remoteproc-name = "remoteproc-test-dev2"; 399 }; 400 401 spi@0 { 402 #address-cells = <1>; 403 #size-cells = <0>; 404 reg = <0 1>; 405 compatible = "sandbox,spi"; 406 cs-gpios = <0>, <&gpio_a 0>; 407 spi.bin@0 { 408 reg = <0>; 409 compatible = "spansion,m25p16", "spi-flash"; 410 spi-max-frequency = <40000000>; 411 sandbox,filename = "spi.bin"; 412 }; 413 }; 414 415 syscon0: syscon@0 { 416 compatible = "sandbox,syscon0"; 417 reg = <0x10 4>; 418 }; 419 420 another_system_controller: syscon@1 { 421 compatible = "sandbox,syscon1"; 422 reg = <0x20 5 423 0x28 6 424 0x30 7 425 0x38 8>; 426 }; 427 428 timer { 429 compatible = "sandbox,timer"; 430 clock-frequency = <1000000>; 431 }; 432 433 uart0: serial { 434 compatible = "sandbox,serial"; 435 u-boot,dm-pre-reloc; 436 }; 437 438 usb_0: usb@0 { 439 compatible = "sandbox,usb"; 440 status = "disabled"; 441 hub { 442 compatible = "sandbox,usb-hub"; 443 #address-cells = <1>; 444 #size-cells = <0>; 445 flash-stick { 446 reg = <0>; 447 compatible = "sandbox,usb-flash"; 448 }; 449 }; 450 }; 451 452 usb_1: usb@1 { 453 compatible = "sandbox,usb"; 454 hub { 455 compatible = "usb-hub"; 456 usb,device-class = <9>; 457 hub-emul { 458 compatible = "sandbox,usb-hub"; 459 #address-cells = <1>; 460 #size-cells = <0>; 461 flash-stick@0 { 462 reg = <0>; 463 compatible = "sandbox,usb-flash"; 464 sandbox,filepath = "testflash.bin"; 465 }; 466 467 flash-stick@1 { 468 reg = <1>; 469 compatible = "sandbox,usb-flash"; 470 sandbox,filepath = "testflash1.bin"; 471 }; 472 473 flash-stick@2 { 474 reg = <2>; 475 compatible = "sandbox,usb-flash"; 476 sandbox,filepath = "testflash2.bin"; 477 }; 478 479 keyb@3 { 480 reg = <3>; 481 compatible = "sandbox,usb-keyb"; 482 }; 483 484 }; 485 }; 486 }; 487 488 usb_2: usb@2 { 489 compatible = "sandbox,usb"; 490 status = "disabled"; 491 }; 492 493 spmi: spmi@0 { 494 compatible = "sandbox,spmi"; 495 #address-cells = <0x1>; 496 #size-cells = <0x1>; 497 pm8916@0 { 498 compatible = "qcom,spmi-pmic"; 499 reg = <0x0 0x1>; 500 #address-cells = <0x1>; 501 #size-cells = <0x1>; 502 503 spmi_gpios: gpios@c000 { 504 compatible = "qcom,pm8916-gpio"; 505 reg = <0xc000 0x400>; 506 gpio-controller; 507 gpio-count = <4>; 508 #gpio-cells = <2>; 509 gpio-bank-name="spmi"; 510 }; 511 }; 512 }; 513 514 wdt0: wdt@0 { 515 compatible = "sandbox,wdt"; 516 }; 517}; 518 519#include "sandbox_pmic.dtsi" 520