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 pci0 = &pci; 16 remoteproc1 = &rproc_1; 17 remoteproc2 = &rproc_2; 18 rtc0 = &rtc_0; 19 rtc1 = &rtc_1; 20 spi0 = "/spi@0"; 21 testfdt6 = "/e-test"; 22 testbus3 = "/some-bus"; 23 testfdt0 = "/some-bus/c-test@0"; 24 testfdt1 = "/some-bus/c-test@1"; 25 testfdt3 = "/b-test"; 26 testfdt5 = "/some-bus/c-test@5"; 27 testfdt8 = "/a-test"; 28 usb0 = &usb_0; 29 usb1 = &usb_1; 30 usb2 = &usb_2; 31 }; 32 33 a-test { 34 reg = <0 1>; 35 compatible = "denx,u-boot-fdt-test"; 36 ping-expect = <0>; 37 ping-add = <0>; 38 u-boot,dm-pre-reloc; 39 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, 40 <0>, <&gpio_a 12>; 41 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>, 42 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>, 43 <&gpio_b 9 0xc 3 2 1>; 44 }; 45 46 junk { 47 reg = <1 1>; 48 compatible = "not,compatible"; 49 }; 50 51 no-compatible { 52 reg = <2 1>; 53 }; 54 55 b-test { 56 reg = <3 1>; 57 compatible = "denx,u-boot-fdt-test"; 58 ping-expect = <3>; 59 ping-add = <3>; 60 }; 61 62 some-bus { 63 #address-cells = <1>; 64 #size-cells = <0>; 65 compatible = "denx,u-boot-test-bus"; 66 reg = <3 1>; 67 ping-expect = <4>; 68 ping-add = <4>; 69 c-test@5 { 70 compatible = "denx,u-boot-fdt-test"; 71 reg = <5>; 72 ping-expect = <5>; 73 ping-add = <5>; 74 }; 75 c-test@0 { 76 compatible = "denx,u-boot-fdt-test"; 77 reg = <0>; 78 ping-expect = <6>; 79 ping-add = <6>; 80 }; 81 c-test@1 { 82 compatible = "denx,u-boot-fdt-test"; 83 reg = <1>; 84 ping-expect = <7>; 85 ping-add = <7>; 86 }; 87 }; 88 89 d-test { 90 reg = <3 1>; 91 ping-expect = <6>; 92 ping-add = <6>; 93 compatible = "google,another-fdt-test"; 94 }; 95 96 e-test { 97 reg = <3 1>; 98 ping-expect = <6>; 99 ping-add = <6>; 100 compatible = "google,another-fdt-test"; 101 }; 102 103 f-test { 104 compatible = "denx,u-boot-fdt-test"; 105 }; 106 107 g-test { 108 compatible = "denx,u-boot-fdt-test"; 109 }; 110 111 clk@0 { 112 compatible = "sandbox,clk"; 113 }; 114 115 eth@10002000 { 116 compatible = "sandbox,eth"; 117 reg = <0x10002000 0x1000>; 118 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>; 119 }; 120 121 eth_5: eth@10003000 { 122 compatible = "sandbox,eth"; 123 reg = <0x10003000 0x1000>; 124 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>; 125 }; 126 127 eth_3: sbe5 { 128 compatible = "sandbox,eth"; 129 reg = <0x10005000 0x1000>; 130 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>; 131 }; 132 133 eth@10004000 { 134 compatible = "sandbox,eth"; 135 reg = <0x10004000 0x1000>; 136 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; 137 }; 138 139 gpio_a: base-gpios { 140 compatible = "sandbox,gpio"; 141 gpio-controller; 142 #gpio-cells = <1>; 143 gpio-bank-name = "a"; 144 num-gpios = <20>; 145 }; 146 147 gpio_b: extra-gpios { 148 compatible = "sandbox,gpio"; 149 gpio-controller; 150 #gpio-cells = <5>; 151 gpio-bank-name = "b"; 152 num-gpios = <10>; 153 }; 154 155 i2c@0 { 156 #address-cells = <1>; 157 #size-cells = <0>; 158 reg = <0 1>; 159 compatible = "sandbox,i2c"; 160 clock-frequency = <100000>; 161 eeprom@2c { 162 reg = <0x2c>; 163 compatible = "i2c-eeprom"; 164 emul { 165 compatible = "sandbox,i2c-eeprom"; 166 sandbox,filename = "i2c.bin"; 167 sandbox,size = <256>; 168 }; 169 }; 170 171 rtc_0: rtc@43 { 172 reg = <0x43>; 173 compatible = "sandbox-rtc"; 174 emul { 175 compatible = "sandbox,i2c-rtc"; 176 }; 177 }; 178 179 rtc_1: rtc@61 { 180 reg = <0x61>; 181 compatible = "sandbox-rtc"; 182 emul { 183 compatible = "sandbox,i2c-rtc"; 184 }; 185 }; 186 187 sandbox_pmic: sandbox_pmic { 188 reg = <0x40>; 189 }; 190 }; 191 192 adc@0 { 193 compatible = "sandbox,adc"; 194 vdd-supply = <&buck2>; 195 vss-microvolts = <0>; 196 }; 197 198 lcd { 199 u-boot,dm-pre-reloc; 200 compatible = "sandbox,lcd-sdl"; 201 xres = <1366>; 202 yres = <768>; 203 }; 204 205 leds { 206 compatible = "gpio-leds"; 207 208 iracibble { 209 gpios = <&gpio_a 1 0>; 210 label = "sandbox:red"; 211 }; 212 213 martinet { 214 gpios = <&gpio_a 2 0>; 215 label = "sandbox:green"; 216 }; 217 }; 218 219 mbox: mbox { 220 compatible = "sandbox,mbox"; 221 #mbox-cells = <1>; 222 }; 223 224 mbox-test { 225 compatible = "sandbox,mbox-test"; 226 mboxes = <&mbox 100>, <&mbox 1>; 227 mbox-names = "other", "test"; 228 }; 229 230 mmc { 231 compatible = "sandbox,mmc"; 232 }; 233 234 pci: pci-controller { 235 compatible = "sandbox,pci"; 236 device_type = "pci"; 237 #address-cells = <3>; 238 #size-cells = <2>; 239 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 240 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 241 pci@1f,0 { 242 compatible = "pci-generic"; 243 reg = <0xf800 0 0 0 0>; 244 emul@1f,0 { 245 compatible = "sandbox,swap-case"; 246 }; 247 }; 248 }; 249 250 ram { 251 compatible = "sandbox,ram"; 252 }; 253 254 reset@0 { 255 compatible = "sandbox,warm-reset"; 256 }; 257 258 reset@1 { 259 compatible = "sandbox,reset"; 260 }; 261 262 resetc: reset-ctl { 263 compatible = "sandbox,reset-ctl"; 264 #reset-cells = <1>; 265 }; 266 267 reset-ctl-test { 268 compatible = "sandbox,reset-ctl-test"; 269 resets = <&resetc 100>, <&resetc 2>; 270 reset-names = "other", "test"; 271 }; 272 273 rproc_1: rproc@1 { 274 compatible = "sandbox,test-processor"; 275 remoteproc-name = "remoteproc-test-dev1"; 276 }; 277 278 rproc_2: rproc@2 { 279 compatible = "sandbox,test-processor"; 280 internal-memory-mapped; 281 remoteproc-name = "remoteproc-test-dev2"; 282 }; 283 284 spi@0 { 285 #address-cells = <1>; 286 #size-cells = <0>; 287 reg = <0 1>; 288 compatible = "sandbox,spi"; 289 cs-gpios = <0>, <&gpio_a 0>; 290 spi.bin@0 { 291 reg = <0>; 292 compatible = "spansion,m25p16", "spi-flash"; 293 spi-max-frequency = <40000000>; 294 sandbox,filename = "spi.bin"; 295 }; 296 }; 297 298 syscon@0 { 299 compatible = "sandbox,syscon0"; 300 reg = <0x10 4>; 301 }; 302 303 syscon@1 { 304 compatible = "sandbox,syscon1"; 305 reg = <0x20 5 306 0x28 6 307 0x30 7 308 0x38 8>; 309 }; 310 311 timer { 312 compatible = "sandbox,timer"; 313 clock-frequency = <1000000>; 314 }; 315 316 uart0: serial { 317 compatible = "sandbox,serial"; 318 u-boot,dm-pre-reloc; 319 }; 320 321 usb_0: usb@0 { 322 compatible = "sandbox,usb"; 323 status = "disabled"; 324 hub { 325 compatible = "sandbox,usb-hub"; 326 #address-cells = <1>; 327 #size-cells = <0>; 328 flash-stick { 329 reg = <0>; 330 compatible = "sandbox,usb-flash"; 331 }; 332 }; 333 }; 334 335 usb_1: usb@1 { 336 compatible = "sandbox,usb"; 337 hub { 338 compatible = "usb-hub"; 339 usb,device-class = <9>; 340 hub-emul { 341 compatible = "sandbox,usb-hub"; 342 #address-cells = <1>; 343 #size-cells = <0>; 344 flash-stick@0 { 345 reg = <0>; 346 compatible = "sandbox,usb-flash"; 347 sandbox,filepath = "testflash.bin"; 348 }; 349 350 flash-stick@1 { 351 reg = <1>; 352 compatible = "sandbox,usb-flash"; 353 sandbox,filepath = "testflash1.bin"; 354 }; 355 356 flash-stick@2 { 357 reg = <2>; 358 compatible = "sandbox,usb-flash"; 359 sandbox,filepath = "testflash2.bin"; 360 }; 361 362 keyb@3 { 363 reg = <3>; 364 compatible = "sandbox,usb-keyb"; 365 }; 366 367 }; 368 }; 369 }; 370 371 usb_2: usb@2 { 372 compatible = "sandbox,usb"; 373 status = "disabled"; 374 }; 375 376 spmi: spmi@0 { 377 compatible = "sandbox,spmi"; 378 #address-cells = <0x1>; 379 #size-cells = <0x1>; 380 pm8916@0 { 381 compatible = "qcom,spmi-pmic"; 382 reg = <0x0 0x1>; 383 #address-cells = <0x1>; 384 #size-cells = <0x1>; 385 386 spmi_gpios: gpios@c000 { 387 compatible = "qcom,pm8916-gpio"; 388 reg = <0xc000 0x400>; 389 gpio-controller; 390 gpio-count = <4>; 391 #gpio-cells = <2>; 392 gpio-bank-name="spmi"; 393 }; 394 }; 395 }; 396}; 397 398#include "sandbox_pmic.dtsi" 399