Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | / { |
| 4 | model = "sandbox"; |
| 5 | compatible = "sandbox"; |
| 6 | #address-cells = <1>; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 7 | #size-cells = <1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 8 | |
Simon Glass | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 9 | aliases { |
| 10 | console = &uart0; |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 11 | eth0 = "/eth@10002000"; |
Bin Meng | 71d7971 | 2015-08-27 22:25:53 -0700 | [diff] [blame] | 12 | eth3 = ð_3; |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 13 | eth5 = ð_5; |
Simon Glass | 9cc36a2 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 14 | i2c0 = "/i2c@0"; |
Przemyslaw Marczak | f64000c | 2015-05-13 13:38:34 +0200 | [diff] [blame] | 15 | pci0 = &pci; |
Nishanth Menon | 5215940 | 2015-09-17 15:42:41 -0500 | [diff] [blame] | 16 | remoteproc1 = &rproc_1; |
| 17 | remoteproc2 = &rproc_2; |
Simon Glass | 52d3bc5 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 18 | rtc0 = &rtc_0; |
| 19 | rtc1 = &rtc_1; |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 20 | spi0 = "/spi@0"; |
Przemyslaw Marczak | f64000c | 2015-05-13 13:38:34 +0200 | [diff] [blame] | 21 | testfdt6 = "/e-test"; |
Simon Glass | 9cc36a2 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 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"; |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 28 | usb0 = &usb_0; |
| 29 | usb1 = &usb_1; |
| 30 | usb2 = &usb_2; |
Simon Glass | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 31 | }; |
| 32 | |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 33 | a-test { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 34 | reg = <0 1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 35 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 36 | ping-expect = <0>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 37 | ping-add = <0>; |
Simon Glass | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 38 | u-boot,dm-pre-reloc; |
Simon Glass | 3669e0e | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 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>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | junk { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 47 | reg = <1 1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 48 | compatible = "not,compatible"; |
| 49 | }; |
| 50 | |
| 51 | no-compatible { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 52 | reg = <2 1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | b-test { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 56 | reg = <3 1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 57 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 58 | ping-expect = <3>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 59 | ping-add = <3>; |
| 60 | }; |
| 61 | |
| 62 | some-bus { |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 65 | compatible = "denx,u-boot-test-bus"; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 66 | reg = <3 1>; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 67 | ping-expect = <4>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 68 | ping-add = <4>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 69 | c-test@5 { |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 70 | compatible = "denx,u-boot-fdt-test"; |
| 71 | reg = <5>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 72 | ping-expect = <5>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 73 | ping-add = <5>; |
| 74 | }; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 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 | }; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | d-test { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 90 | reg = <3 1>; |
Simon Glass | 5a66a8f | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 91 | ping-expect = <6>; |
| 92 | ping-add = <6>; |
| 93 | compatible = "google,another-fdt-test"; |
| 94 | }; |
| 95 | |
| 96 | e-test { |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 97 | reg = <3 1>; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 98 | ping-expect = <6>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 99 | ping-add = <6>; |
| 100 | compatible = "google,another-fdt-test"; |
| 101 | }; |
| 102 | |
Simon Glass | 9cc36a2 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 103 | f-test { |
| 104 | compatible = "denx,u-boot-fdt-test"; |
| 105 | }; |
| 106 | |
| 107 | g-test { |
| 108 | compatible = "denx,u-boot-fdt-test"; |
| 109 | }; |
| 110 | |
Simon Glass | 6a1c7ce | 2015-07-06 12:54:24 -0600 | [diff] [blame] | 111 | clk@0 { |
| 112 | compatible = "sandbox,clk"; |
| 113 | }; |
| 114 | |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 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 | |
Bin Meng | 71d7971 | 2015-08-27 22:25:53 -0700 | [diff] [blame] | 127 | eth_3: sbe5 { |
| 128 | compatible = "sandbox,eth"; |
| 129 | reg = <0x10005000 0x1000>; |
| 130 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>; |
| 131 | }; |
| 132 | |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 133 | eth@10004000 { |
| 134 | compatible = "sandbox,eth"; |
| 135 | reg = <0x10004000 0x1000>; |
| 136 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; |
| 137 | }; |
| 138 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 139 | gpio_a: base-gpios { |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 140 | compatible = "sandbox,gpio"; |
Simon Glass | 3669e0e | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 141 | gpio-controller; |
| 142 | #gpio-cells = <1>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 143 | gpio-bank-name = "a"; |
| 144 | num-gpios = <20>; |
| 145 | }; |
| 146 | |
Simon Glass | 3669e0e | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 147 | gpio_b: extra-gpios { |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 148 | compatible = "sandbox,gpio"; |
Simon Glass | 3669e0e | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 149 | gpio-controller; |
| 150 | #gpio-cells = <5>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 151 | gpio-bank-name = "b"; |
| 152 | num-gpios = <10>; |
| 153 | }; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 154 | |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 155 | i2c@0 { |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <0>; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 158 | reg = <0 1>; |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 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 | }; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 170 | |
Simon Glass | 52d3bc5 | 2015-05-22 15:42:17 -0600 | [diff] [blame] | 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 | |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 187 | sandbox_pmic: sandbox_pmic { |
| 188 | reg = <0x40>; |
| 189 | }; |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 190 | }; |
| 191 | |
Przemyslaw Marczak | 08d6300 | 2015-10-27 13:08:06 +0100 | [diff] [blame] | 192 | adc@0 { |
| 193 | compatible = "sandbox,adc"; |
| 194 | vdd-supply = <&buck2>; |
| 195 | vss-microvolts = <0>; |
| 196 | }; |
| 197 | |
Simon Glass | 3c97c4f | 2016-01-18 19:52:26 -0700 | [diff] [blame] | 198 | lcd { |
| 199 | u-boot,dm-pre-reloc; |
| 200 | compatible = "sandbox,lcd-sdl"; |
| 201 | xres = <1366>; |
| 202 | yres = <768>; |
| 203 | }; |
| 204 | |
Simon Glass | 3c43fba | 2015-07-06 12:54:34 -0600 | [diff] [blame] | 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 | |
Simon Glass | 8e6cc46 | 2015-07-06 12:54:32 -0600 | [diff] [blame] | 219 | mmc { |
| 220 | compatible = "sandbox,mmc"; |
| 221 | }; |
| 222 | |
Simon Glass | d3b7ff1 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 223 | pci: pci-controller { |
| 224 | compatible = "sandbox,pci"; |
| 225 | device_type = "pci"; |
| 226 | #address-cells = <3>; |
| 227 | #size-cells = <2>; |
| 228 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 |
| 229 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; |
| 230 | pci@1f,0 { |
| 231 | compatible = "pci-generic"; |
| 232 | reg = <0xf800 0 0 0 0>; |
| 233 | emul@1f,0 { |
| 234 | compatible = "sandbox,swap-case"; |
| 235 | }; |
| 236 | }; |
| 237 | }; |
| 238 | |
Simon Glass | 64ce0ca | 2015-07-06 12:54:31 -0600 | [diff] [blame] | 239 | ram { |
| 240 | compatible = "sandbox,ram"; |
| 241 | }; |
| 242 | |
Simon Glass | 5010d98 | 2015-07-06 12:54:29 -0600 | [diff] [blame] | 243 | reset@0 { |
| 244 | compatible = "sandbox,warm-reset"; |
| 245 | }; |
| 246 | |
| 247 | reset@1 { |
| 248 | compatible = "sandbox,reset"; |
| 249 | }; |
| 250 | |
Nishanth Menon | 5215940 | 2015-09-17 15:42:41 -0500 | [diff] [blame] | 251 | rproc_1: rproc@1 { |
| 252 | compatible = "sandbox,test-processor"; |
| 253 | remoteproc-name = "remoteproc-test-dev1"; |
| 254 | }; |
| 255 | |
| 256 | rproc_2: rproc@2 { |
| 257 | compatible = "sandbox,test-processor"; |
| 258 | internal-memory-mapped; |
| 259 | remoteproc-name = "remoteproc-test-dev2"; |
| 260 | }; |
| 261 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 262 | spi@0 { |
| 263 | #address-cells = <1>; |
| 264 | #size-cells = <0>; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 265 | reg = <0 1>; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 266 | compatible = "sandbox,spi"; |
| 267 | cs-gpios = <0>, <&gpio_a 0>; |
| 268 | spi.bin@0 { |
| 269 | reg = <0>; |
| 270 | compatible = "spansion,m25p16", "spi-flash"; |
| 271 | spi-max-frequency = <40000000>; |
| 272 | sandbox,filename = "spi.bin"; |
| 273 | }; |
| 274 | }; |
| 275 | |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 276 | syscon@0 { |
| 277 | compatible = "sandbox,syscon0"; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 278 | reg = <0x10 4>; |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 279 | }; |
| 280 | |
| 281 | syscon@1 { |
| 282 | compatible = "sandbox,syscon1"; |
Simon Glass | 0503e82 | 2015-07-06 12:54:36 -0600 | [diff] [blame] | 283 | reg = <0x20 5 |
| 284 | 0x28 6 |
| 285 | 0x30 7 |
| 286 | 0x38 8>; |
Simon Glass | 04035fd | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 287 | }; |
| 288 | |
Thomas Chou | e7cc8d1 | 2015-12-11 16:27:34 +0800 | [diff] [blame] | 289 | timer { |
| 290 | compatible = "sandbox,timer"; |
| 291 | clock-frequency = <1000000>; |
| 292 | }; |
| 293 | |
Simon Glass | 171e991 | 2015-05-22 15:42:15 -0600 | [diff] [blame] | 294 | uart0: serial { |
| 295 | compatible = "sandbox,serial"; |
| 296 | u-boot,dm-pre-reloc; |
Joe Hershberger | bfacad7 | 2015-03-22 17:09:15 -0500 | [diff] [blame] | 297 | }; |
| 298 | |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 299 | usb_0: usb@0 { |
| 300 | compatible = "sandbox,usb"; |
| 301 | status = "disabled"; |
| 302 | hub { |
| 303 | compatible = "sandbox,usb-hub"; |
| 304 | #address-cells = <1>; |
| 305 | #size-cells = <0>; |
| 306 | flash-stick { |
| 307 | reg = <0>; |
| 308 | compatible = "sandbox,usb-flash"; |
| 309 | }; |
| 310 | }; |
| 311 | }; |
| 312 | |
| 313 | usb_1: usb@1 { |
| 314 | compatible = "sandbox,usb"; |
| 315 | hub { |
| 316 | compatible = "usb-hub"; |
| 317 | usb,device-class = <9>; |
| 318 | hub-emul { |
| 319 | compatible = "sandbox,usb-hub"; |
| 320 | #address-cells = <1>; |
| 321 | #size-cells = <0>; |
Simon Glass | 431cbd6 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 322 | flash-stick@0 { |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 323 | reg = <0>; |
| 324 | compatible = "sandbox,usb-flash"; |
| 325 | sandbox,filepath = "testflash.bin"; |
| 326 | }; |
| 327 | |
Simon Glass | 431cbd6 | 2015-11-08 23:48:01 -0700 | [diff] [blame] | 328 | flash-stick@1 { |
| 329 | reg = <1>; |
| 330 | compatible = "sandbox,usb-flash"; |
| 331 | sandbox,filepath = "testflash1.bin"; |
| 332 | }; |
| 333 | |
| 334 | flash-stick@2 { |
| 335 | reg = <2>; |
| 336 | compatible = "sandbox,usb-flash"; |
| 337 | sandbox,filepath = "testflash2.bin"; |
| 338 | }; |
| 339 | |
Simon Glass | bff1a71 | 2015-11-08 23:48:08 -0700 | [diff] [blame] | 340 | keyb@3 { |
| 341 | reg = <3>; |
| 342 | compatible = "sandbox,usb-keyb"; |
| 343 | }; |
| 344 | |
Simon Glass | e00cb22 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 345 | }; |
| 346 | }; |
| 347 | }; |
| 348 | |
| 349 | usb_2: usb@2 { |
| 350 | compatible = "sandbox,usb"; |
| 351 | status = "disabled"; |
| 352 | }; |
| 353 | |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 354 | }; |
Przemyslaw Marczak | 9038cd5 | 2015-05-13 13:38:35 +0200 | [diff] [blame] | 355 | |
| 356 | #include "sandbox_pmic.dtsi" |