]>
Commit | Line | Data |
---|---|---|
2e7d35d2 SG |
1 | /dts-v1/; |
2 | ||
3 | / { | |
4 | model = "sandbox"; | |
5 | compatible = "sandbox"; | |
6 | #address-cells = <1>; | |
0503e820 | 7 | #size-cells = <1>; |
2e7d35d2 | 8 | |
00606d7e SG |
9 | aliases { |
10 | console = &uart0; | |
171e991d | 11 | eth0 = "/eth@10002000"; |
71d7971f | 12 | eth3 = ð_3; |
171e991d | 13 | eth5 = ð_5; |
9cc36a2b | 14 | i2c0 = "/i2c@0"; |
f64000c3 | 15 | pci0 = &pci; |
5215940f NM |
16 | remoteproc1 = &rproc_1; |
17 | remoteproc2 = &rproc_2; | |
52d3bc5d SG |
18 | rtc0 = &rtc_0; |
19 | rtc1 = &rtc_1; | |
171e991d | 20 | spi0 = "/spi@0"; |
f64000c3 | 21 | testfdt6 = "/e-test"; |
9cc36a2b SG |
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"; | |
e00cb223 SG |
28 | usb0 = &usb_0; |
29 | usb1 = &usb_1; | |
30 | usb2 = &usb_2; | |
00606d7e SG |
31 | }; |
32 | ||
2e7d35d2 | 33 | a-test { |
0503e820 | 34 | reg = <0 1>; |
2e7d35d2 | 35 | compatible = "denx,u-boot-fdt-test"; |
eb9ef5fe | 36 | ping-expect = <0>; |
2e7d35d2 | 37 | ping-add = <0>; |
00606d7e | 38 | u-boot,dm-pre-reloc; |
3669e0e7 SG |
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>; | |
2e7d35d2 SG |
44 | }; |
45 | ||
46 | junk { | |
0503e820 | 47 | reg = <1 1>; |
2e7d35d2 SG |
48 | compatible = "not,compatible"; |
49 | }; | |
50 | ||
51 | no-compatible { | |
0503e820 | 52 | reg = <2 1>; |
2e7d35d2 SG |
53 | }; |
54 | ||
55 | b-test { | |
0503e820 | 56 | reg = <3 1>; |
2e7d35d2 | 57 | compatible = "denx,u-boot-fdt-test"; |
eb9ef5fe | 58 | ping-expect = <3>; |
2e7d35d2 SG |
59 | ping-add = <3>; |
60 | }; | |
61 | ||
62 | some-bus { | |
63 | #address-cells = <1>; | |
64 | #size-cells = <0>; | |
1ca7e206 | 65 | compatible = "denx,u-boot-test-bus"; |
0503e820 | 66 | reg = <3 1>; |
eb9ef5fe | 67 | ping-expect = <4>; |
2e7d35d2 | 68 | ping-add = <4>; |
1ca7e206 | 69 | c-test@5 { |
2e7d35d2 SG |
70 | compatible = "denx,u-boot-fdt-test"; |
71 | reg = <5>; | |
1ca7e206 | 72 | ping-expect = <5>; |
2e7d35d2 SG |
73 | ping-add = <5>; |
74 | }; | |
1ca7e206 SG |
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 | }; | |
2e7d35d2 SG |
87 | }; |
88 | ||
89 | d-test { | |
0503e820 | 90 | reg = <3 1>; |
5a66a8ff SG |
91 | ping-expect = <6>; |
92 | ping-add = <6>; | |
93 | compatible = "google,another-fdt-test"; | |
94 | }; | |
95 | ||
96 | e-test { | |
0503e820 | 97 | reg = <3 1>; |
eb9ef5fe | 98 | ping-expect = <6>; |
2e7d35d2 SG |
99 | ping-add = <6>; |
100 | compatible = "google,another-fdt-test"; | |
101 | }; | |
102 | ||
9cc36a2b SG |
103 | f-test { |
104 | compatible = "denx,u-boot-fdt-test"; | |
105 | }; | |
106 | ||
107 | g-test { | |
108 | compatible = "denx,u-boot-fdt-test"; | |
109 | }; | |
110 | ||
6a1c7cef SG |
111 | clk@0 { |
112 | compatible = "sandbox,clk"; | |
113 | }; | |
114 | ||
171e991d SG |
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 | ||
71d7971f BM |
127 | eth_3: sbe5 { |
128 | compatible = "sandbox,eth"; | |
129 | reg = <0x10005000 0x1000>; | |
130 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>; | |
131 | }; | |
132 | ||
171e991d SG |
133 | eth@10004000 { |
134 | compatible = "sandbox,eth"; | |
135 | reg = <0x10004000 0x1000>; | |
136 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; | |
137 | }; | |
138 | ||
0ae0cb7b | 139 | gpio_a: base-gpios { |
2e7d35d2 | 140 | compatible = "sandbox,gpio"; |
3669e0e7 SG |
141 | gpio-controller; |
142 | #gpio-cells = <1>; | |
2e7d35d2 SG |
143 | gpio-bank-name = "a"; |
144 | num-gpios = <20>; | |
145 | }; | |
146 | ||
3669e0e7 | 147 | gpio_b: extra-gpios { |
2e7d35d2 | 148 | compatible = "sandbox,gpio"; |
3669e0e7 SG |
149 | gpio-controller; |
150 | #gpio-cells = <5>; | |
2e7d35d2 SG |
151 | gpio-bank-name = "b"; |
152 | num-gpios = <10>; | |
153 | }; | |
0ae0cb7b | 154 | |
ecc2ed55 SG |
155 | i2c@0 { |
156 | #address-cells = <1>; | |
157 | #size-cells = <0>; | |
0503e820 | 158 | reg = <0 1>; |
ecc2ed55 SG |
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 | }; | |
9038cd53 | 170 | |
52d3bc5d SG |
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 | ||
9038cd53 PM |
187 | sandbox_pmic: sandbox_pmic { |
188 | reg = <0x40>; | |
189 | }; | |
ecc2ed55 SG |
190 | }; |
191 | ||
08d6300a PM |
192 | adc@0 { |
193 | compatible = "sandbox,adc"; | |
194 | vdd-supply = <&buck2>; | |
195 | vss-microvolts = <0>; | |
196 | }; | |
197 | ||
3c43fba3 SG |
198 | leds { |
199 | compatible = "gpio-leds"; | |
200 | ||
201 | iracibble { | |
202 | gpios = <&gpio_a 1 0>; | |
203 | label = "sandbox:red"; | |
204 | }; | |
205 | ||
206 | martinet { | |
207 | gpios = <&gpio_a 2 0>; | |
208 | label = "sandbox:green"; | |
209 | }; | |
210 | }; | |
211 | ||
8e6cc461 SG |
212 | mmc { |
213 | compatible = "sandbox,mmc"; | |
214 | }; | |
215 | ||
d3b7ff14 SG |
216 | pci: pci-controller { |
217 | compatible = "sandbox,pci"; | |
218 | device_type = "pci"; | |
219 | #address-cells = <3>; | |
220 | #size-cells = <2>; | |
221 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 | |
222 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; | |
223 | pci@1f,0 { | |
224 | compatible = "pci-generic"; | |
225 | reg = <0xf800 0 0 0 0>; | |
226 | emul@1f,0 { | |
227 | compatible = "sandbox,swap-case"; | |
228 | }; | |
229 | }; | |
230 | }; | |
231 | ||
64ce0cad SG |
232 | ram { |
233 | compatible = "sandbox,ram"; | |
234 | }; | |
235 | ||
5010d98f SG |
236 | reset@0 { |
237 | compatible = "sandbox,warm-reset"; | |
238 | }; | |
239 | ||
240 | reset@1 { | |
241 | compatible = "sandbox,reset"; | |
242 | }; | |
243 | ||
5215940f NM |
244 | rproc_1: rproc@1 { |
245 | compatible = "sandbox,test-processor"; | |
246 | remoteproc-name = "remoteproc-test-dev1"; | |
247 | }; | |
248 | ||
249 | rproc_2: rproc@2 { | |
250 | compatible = "sandbox,test-processor"; | |
251 | internal-memory-mapped; | |
252 | remoteproc-name = "remoteproc-test-dev2"; | |
253 | }; | |
254 | ||
0ae0cb7b SG |
255 | spi@0 { |
256 | #address-cells = <1>; | |
257 | #size-cells = <0>; | |
0503e820 | 258 | reg = <0 1>; |
0ae0cb7b SG |
259 | compatible = "sandbox,spi"; |
260 | cs-gpios = <0>, <&gpio_a 0>; | |
261 | spi.bin@0 { | |
262 | reg = <0>; | |
263 | compatible = "spansion,m25p16", "spi-flash"; | |
264 | spi-max-frequency = <40000000>; | |
265 | sandbox,filename = "spi.bin"; | |
266 | }; | |
267 | }; | |
268 | ||
04035fd3 SG |
269 | syscon@0 { |
270 | compatible = "sandbox,syscon0"; | |
0503e820 | 271 | reg = <0x10 4>; |
04035fd3 SG |
272 | }; |
273 | ||
274 | syscon@1 { | |
275 | compatible = "sandbox,syscon1"; | |
0503e820 SG |
276 | reg = <0x20 5 |
277 | 0x28 6 | |
278 | 0x30 7 | |
279 | 0x38 8>; | |
04035fd3 SG |
280 | }; |
281 | ||
171e991d SG |
282 | uart0: serial { |
283 | compatible = "sandbox,serial"; | |
284 | u-boot,dm-pre-reloc; | |
bfacad7d JH |
285 | }; |
286 | ||
e00cb223 SG |
287 | usb_0: usb@0 { |
288 | compatible = "sandbox,usb"; | |
289 | status = "disabled"; | |
290 | hub { | |
291 | compatible = "sandbox,usb-hub"; | |
292 | #address-cells = <1>; | |
293 | #size-cells = <0>; | |
294 | flash-stick { | |
295 | reg = <0>; | |
296 | compatible = "sandbox,usb-flash"; | |
297 | }; | |
298 | }; | |
299 | }; | |
300 | ||
301 | usb_1: usb@1 { | |
302 | compatible = "sandbox,usb"; | |
303 | hub { | |
304 | compatible = "usb-hub"; | |
305 | usb,device-class = <9>; | |
306 | hub-emul { | |
307 | compatible = "sandbox,usb-hub"; | |
308 | #address-cells = <1>; | |
309 | #size-cells = <0>; | |
431cbd6d | 310 | flash-stick@0 { |
e00cb223 SG |
311 | reg = <0>; |
312 | compatible = "sandbox,usb-flash"; | |
313 | sandbox,filepath = "testflash.bin"; | |
314 | }; | |
315 | ||
431cbd6d SG |
316 | flash-stick@1 { |
317 | reg = <1>; | |
318 | compatible = "sandbox,usb-flash"; | |
319 | sandbox,filepath = "testflash1.bin"; | |
320 | }; | |
321 | ||
322 | flash-stick@2 { | |
323 | reg = <2>; | |
324 | compatible = "sandbox,usb-flash"; | |
325 | sandbox,filepath = "testflash2.bin"; | |
326 | }; | |
327 | ||
bff1a71e SG |
328 | keyb@3 { |
329 | reg = <3>; | |
330 | compatible = "sandbox,usb-keyb"; | |
331 | }; | |
332 | ||
e00cb223 SG |
333 | }; |
334 | }; | |
335 | }; | |
336 | ||
337 | usb_2: usb@2 { | |
338 | compatible = "sandbox,usb"; | |
339 | status = "disabled"; | |
340 | }; | |
341 | ||
2e7d35d2 | 342 | }; |
9038cd53 PM |
343 | |
344 | #include "sandbox_pmic.dtsi" |