blob: 686c215aea72ccadbe591aa0bda7313a9b915d92 [file] [log] [blame]
Simon Glass2e7d35d2014-02-26 15:59:21 -07001/dts-v1/;
2
3/ {
4 model = "sandbox";
5 compatible = "sandbox";
6 #address-cells = <1>;
Simon Glass0503e822015-07-06 12:54:36 -06007 #size-cells = <1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -07008
Simon Glass00606d72014-07-23 06:55:03 -06009 aliases {
10 console = &uart0;
Simon Glass171e9912015-05-22 15:42:15 -060011 eth0 = "/eth@10002000";
Bin Meng71d79712015-08-27 22:25:53 -070012 eth3 = &eth_3;
Simon Glass171e9912015-05-22 15:42:15 -060013 eth5 = &eth_5;
Simon Glass9cc36a22015-01-25 08:27:05 -070014 i2c0 = "/i2c@0";
Przemyslaw Marczakf64000c2015-05-13 13:38:34 +020015 pci0 = &pci;
Nishanth Menon52159402015-09-17 15:42:41 -050016 remoteproc1 = &rproc_1;
17 remoteproc2 = &rproc_2;
Simon Glass52d3bc52015-05-22 15:42:17 -060018 rtc0 = &rtc_0;
19 rtc1 = &rtc_1;
Simon Glass171e9912015-05-22 15:42:15 -060020 spi0 = "/spi@0";
Przemyslaw Marczakf64000c2015-05-13 13:38:34 +020021 testfdt6 = "/e-test";
Simon Glass9cc36a22015-01-25 08:27:05 -070022 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 Glasse00cb222015-03-25 12:23:05 -060028 usb0 = &usb_0;
29 usb1 = &usb_1;
30 usb2 = &usb_2;
Simon Glass00606d72014-07-23 06:55:03 -060031 };
32
Simon Glass2e7d35d2014-02-26 15:59:21 -070033 a-test {
Simon Glass0503e822015-07-06 12:54:36 -060034 reg = <0 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070035 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060036 ping-expect = <0>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070037 ping-add = <0>;
Simon Glass00606d72014-07-23 06:55:03 -060038 u-boot,dm-pre-reloc;
Simon Glass3669e0e2015-01-05 20:05:29 -070039 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 Glass2e7d35d2014-02-26 15:59:21 -070044 };
45
46 junk {
Simon Glass0503e822015-07-06 12:54:36 -060047 reg = <1 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070048 compatible = "not,compatible";
49 };
50
51 no-compatible {
Simon Glass0503e822015-07-06 12:54:36 -060052 reg = <2 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070053 };
54
55 b-test {
Simon Glass0503e822015-07-06 12:54:36 -060056 reg = <3 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070057 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -060058 ping-expect = <3>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070059 ping-add = <3>;
60 };
61
62 some-bus {
63 #address-cells = <1>;
64 #size-cells = <0>;
Simon Glass1ca7e202014-07-23 06:55:18 -060065 compatible = "denx,u-boot-test-bus";
Simon Glass0503e822015-07-06 12:54:36 -060066 reg = <3 1>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060067 ping-expect = <4>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070068 ping-add = <4>;
Simon Glass1ca7e202014-07-23 06:55:18 -060069 c-test@5 {
Simon Glass2e7d35d2014-02-26 15:59:21 -070070 compatible = "denx,u-boot-fdt-test";
71 reg = <5>;
Simon Glass1ca7e202014-07-23 06:55:18 -060072 ping-expect = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070073 ping-add = <5>;
74 };
Simon Glass1ca7e202014-07-23 06:55:18 -060075 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 Glass2e7d35d2014-02-26 15:59:21 -070087 };
88
89 d-test {
Simon Glass0503e822015-07-06 12:54:36 -060090 reg = <3 1>;
Simon Glass5a66a8f2014-07-23 06:55:12 -060091 ping-expect = <6>;
92 ping-add = <6>;
93 compatible = "google,another-fdt-test";
94 };
95
96 e-test {
Simon Glass0503e822015-07-06 12:54:36 -060097 reg = <3 1>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -060098 ping-expect = <6>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070099 ping-add = <6>;
100 compatible = "google,another-fdt-test";
101 };
102
Simon Glass9cc36a22015-01-25 08:27:05 -0700103 f-test {
104 compatible = "denx,u-boot-fdt-test";
105 };
106
107 g-test {
108 compatible = "denx,u-boot-fdt-test";
109 };
110
Simon Glass6a1c7ce2015-07-06 12:54:24 -0600111 clk@0 {
112 compatible = "sandbox,clk";
113 };
114
Simon Glass171e9912015-05-22 15:42:15 -0600115 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 Meng71d79712015-08-27 22:25:53 -0700127 eth_3: sbe5 {
128 compatible = "sandbox,eth";
129 reg = <0x10005000 0x1000>;
130 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
131 };
132
Simon Glass171e9912015-05-22 15:42:15 -0600133 eth@10004000 {
134 compatible = "sandbox,eth";
135 reg = <0x10004000 0x1000>;
136 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
137 };
138
Simon Glass0ae0cb72014-10-13 23:42:11 -0600139 gpio_a: base-gpios {
Simon Glass2e7d35d2014-02-26 15:59:21 -0700140 compatible = "sandbox,gpio";
Simon Glass3669e0e2015-01-05 20:05:29 -0700141 gpio-controller;
142 #gpio-cells = <1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700143 gpio-bank-name = "a";
144 num-gpios = <20>;
145 };
146
Simon Glass3669e0e2015-01-05 20:05:29 -0700147 gpio_b: extra-gpios {
Simon Glass2e7d35d2014-02-26 15:59:21 -0700148 compatible = "sandbox,gpio";
Simon Glass3669e0e2015-01-05 20:05:29 -0700149 gpio-controller;
150 #gpio-cells = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700151 gpio-bank-name = "b";
152 num-gpios = <10>;
153 };
Simon Glass0ae0cb72014-10-13 23:42:11 -0600154
Simon Glassecc2ed52014-12-10 08:55:55 -0700155 i2c@0 {
156 #address-cells = <1>;
157 #size-cells = <0>;
Simon Glass0503e822015-07-06 12:54:36 -0600158 reg = <0 1>;
Simon Glassecc2ed52014-12-10 08:55:55 -0700159 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 Marczak9038cd52015-05-13 13:38:35 +0200170
Simon Glass52d3bc52015-05-22 15:42:17 -0600171 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 Marczak9038cd52015-05-13 13:38:35 +0200187 sandbox_pmic: sandbox_pmic {
188 reg = <0x40>;
189 };
Simon Glassecc2ed52014-12-10 08:55:55 -0700190 };
191
Przemyslaw Marczak08d63002015-10-27 13:08:06 +0100192 adc@0 {
193 compatible = "sandbox,adc";
194 vdd-supply = <&buck2>;
195 vss-microvolts = <0>;
196 };
197
Simon Glass3c97c4f2016-01-18 19:52:26 -0700198 lcd {
199 u-boot,dm-pre-reloc;
200 compatible = "sandbox,lcd-sdl";
201 xres = <1366>;
202 yres = <768>;
203 };
204
Simon Glass3c43fba2015-07-06 12:54:34 -0600205 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
Stephen Warren8961b522016-05-16 17:41:37 -0600219 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
Simon Glass8e6cc462015-07-06 12:54:32 -0600230 mmc {
231 compatible = "sandbox,mmc";
232 };
233
Simon Glassd3b7ff12015-03-05 12:25:34 -0700234 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
Simon Glass64ce0ca2015-07-06 12:54:31 -0600250 ram {
251 compatible = "sandbox,ram";
252 };
253
Simon Glass5010d982015-07-06 12:54:29 -0600254 reset@0 {
255 compatible = "sandbox,warm-reset";
256 };
257
258 reset@1 {
259 compatible = "sandbox,reset";
260 };
261
Nishanth Menon52159402015-09-17 15:42:41 -0500262 rproc_1: rproc@1 {
263 compatible = "sandbox,test-processor";
264 remoteproc-name = "remoteproc-test-dev1";
265 };
266
267 rproc_2: rproc@2 {
268 compatible = "sandbox,test-processor";
269 internal-memory-mapped;
270 remoteproc-name = "remoteproc-test-dev2";
271 };
272
Simon Glass0ae0cb72014-10-13 23:42:11 -0600273 spi@0 {
274 #address-cells = <1>;
275 #size-cells = <0>;
Simon Glass0503e822015-07-06 12:54:36 -0600276 reg = <0 1>;
Simon Glass0ae0cb72014-10-13 23:42:11 -0600277 compatible = "sandbox,spi";
278 cs-gpios = <0>, <&gpio_a 0>;
279 spi.bin@0 {
280 reg = <0>;
281 compatible = "spansion,m25p16", "spi-flash";
282 spi-max-frequency = <40000000>;
283 sandbox,filename = "spi.bin";
284 };
285 };
286
Simon Glass04035fd2015-07-06 12:54:35 -0600287 syscon@0 {
288 compatible = "sandbox,syscon0";
Simon Glass0503e822015-07-06 12:54:36 -0600289 reg = <0x10 4>;
Simon Glass04035fd2015-07-06 12:54:35 -0600290 };
291
292 syscon@1 {
293 compatible = "sandbox,syscon1";
Simon Glass0503e822015-07-06 12:54:36 -0600294 reg = <0x20 5
295 0x28 6
296 0x30 7
297 0x38 8>;
Simon Glass04035fd2015-07-06 12:54:35 -0600298 };
299
Thomas Choue7cc8d12015-12-11 16:27:34 +0800300 timer {
301 compatible = "sandbox,timer";
302 clock-frequency = <1000000>;
303 };
304
Simon Glass171e9912015-05-22 15:42:15 -0600305 uart0: serial {
306 compatible = "sandbox,serial";
307 u-boot,dm-pre-reloc;
Joe Hershbergerbfacad72015-03-22 17:09:15 -0500308 };
309
Simon Glasse00cb222015-03-25 12:23:05 -0600310 usb_0: usb@0 {
311 compatible = "sandbox,usb";
312 status = "disabled";
313 hub {
314 compatible = "sandbox,usb-hub";
315 #address-cells = <1>;
316 #size-cells = <0>;
317 flash-stick {
318 reg = <0>;
319 compatible = "sandbox,usb-flash";
320 };
321 };
322 };
323
324 usb_1: usb@1 {
325 compatible = "sandbox,usb";
326 hub {
327 compatible = "usb-hub";
328 usb,device-class = <9>;
329 hub-emul {
330 compatible = "sandbox,usb-hub";
331 #address-cells = <1>;
332 #size-cells = <0>;
Simon Glass431cbd62015-11-08 23:48:01 -0700333 flash-stick@0 {
Simon Glasse00cb222015-03-25 12:23:05 -0600334 reg = <0>;
335 compatible = "sandbox,usb-flash";
336 sandbox,filepath = "testflash.bin";
337 };
338
Simon Glass431cbd62015-11-08 23:48:01 -0700339 flash-stick@1 {
340 reg = <1>;
341 compatible = "sandbox,usb-flash";
342 sandbox,filepath = "testflash1.bin";
343 };
344
345 flash-stick@2 {
346 reg = <2>;
347 compatible = "sandbox,usb-flash";
348 sandbox,filepath = "testflash2.bin";
349 };
350
Simon Glassbff1a712015-11-08 23:48:08 -0700351 keyb@3 {
352 reg = <3>;
353 compatible = "sandbox,usb-keyb";
354 };
355
Simon Glasse00cb222015-03-25 12:23:05 -0600356 };
357 };
358 };
359
360 usb_2: usb@2 {
361 compatible = "sandbox,usb";
362 status = "disabled";
363 };
364
Mateusz Kulikowskid33776e2016-03-31 23:12:28 +0200365 spmi: spmi@0 {
366 compatible = "sandbox,spmi";
367 #address-cells = <0x1>;
368 #size-cells = <0x1>;
369 pm8916@0 {
370 compatible = "qcom,spmi-pmic";
371 reg = <0x0 0x1>;
372 #address-cells = <0x1>;
373 #size-cells = <0x1>;
374
375 spmi_gpios: gpios@c000 {
376 compatible = "qcom,pm8916-gpio";
377 reg = <0xc000 0x400>;
378 gpio-controller;
379 gpio-count = <4>;
380 #gpio-cells = <2>;
381 gpio-bank-name="spmi";
382 };
383 };
384 };
Simon Glass2e7d35d2014-02-26 15:59:21 -0700385};
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200386
387#include "sandbox_pmic.dtsi"