xref: /rk3399_rockchip-uboot/arch/sandbox/dts/test.dts (revision b5f6b28fa3454b1189d8fefe01a26dd09f2e3f1e)
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 = &eth_3;
13		eth5 = &eth_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	gpio_a: base-gpios {
176		compatible = "sandbox,gpio";
177		gpio-controller;
178		#gpio-cells = <1>;
179		gpio-bank-name = "a";
180		num-gpios = <20>;
181	};
182
183	gpio_b: extra-gpios {
184		compatible = "sandbox,gpio";
185		gpio-controller;
186		#gpio-cells = <5>;
187		gpio-bank-name = "b";
188		num-gpios = <10>;
189	};
190
191	i2c@0 {
192		#address-cells = <1>;
193		#size-cells = <0>;
194		reg = <0 1>;
195		compatible = "sandbox,i2c";
196		clock-frequency = <100000>;
197		eeprom@2c {
198			reg = <0x2c>;
199			compatible = "i2c-eeprom";
200			emul {
201				compatible = "sandbox,i2c-eeprom";
202				sandbox,filename = "i2c.bin";
203				sandbox,size = <256>;
204			};
205		};
206
207		rtc_0: rtc@43 {
208			reg = <0x43>;
209			compatible = "sandbox-rtc";
210			emul {
211				compatible = "sandbox,i2c-rtc";
212			};
213		};
214
215		rtc_1: rtc@61 {
216			reg = <0x61>;
217			compatible = "sandbox-rtc";
218			emul {
219				compatible = "sandbox,i2c-rtc";
220			};
221		};
222
223		sandbox_pmic: sandbox_pmic {
224			reg = <0x40>;
225		};
226	};
227
228	adc@0 {
229		compatible = "sandbox,adc";
230		vdd-supply = <&buck2>;
231		vss-microvolts = <0>;
232	};
233
234	lcd {
235		u-boot,dm-pre-reloc;
236		compatible = "sandbox,lcd-sdl";
237		xres = <1366>;
238		yres = <768>;
239	};
240
241	leds {
242		compatible = "gpio-leds";
243
244		iracibble {
245			gpios = <&gpio_a 1 0>;
246			label = "sandbox:red";
247		};
248
249		martinet {
250			gpios = <&gpio_a 2 0>;
251			label = "sandbox:green";
252		};
253	};
254
255	mbox: mbox {
256		compatible = "sandbox,mbox";
257		#mbox-cells = <1>;
258	};
259
260	mbox-test {
261		compatible = "sandbox,mbox-test";
262		mboxes = <&mbox 100>, <&mbox 1>;
263		mbox-names = "other", "test";
264	};
265
266	mmc2 {
267		compatible = "sandbox,mmc";
268	};
269
270	mmc1 {
271		compatible = "sandbox,mmc";
272	};
273
274	mmc0 {
275		compatible = "sandbox,mmc";
276	};
277
278	nop-test_0 {
279		compatible = "sandbox,nop_sandbox1";
280		nop-test_1 {
281			compatible = "sandbox,nop_sandbox2";
282			bind = "True";
283		};
284		nop-test_2 {
285			compatible = "sandbox,nop_sandbox2";
286			bind = "False";
287		};
288	};
289
290	pci: pci-controller {
291		compatible = "sandbox,pci";
292		device_type = "pci";
293		#address-cells = <3>;
294		#size-cells = <2>;
295		ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
296				0x01000000 0 0x20000000 0x20000000 0 0x2000>;
297		pci@1f,0 {
298			compatible = "pci-generic";
299			reg = <0xf800 0 0 0 0>;
300			emul@1f,0 {
301				compatible = "sandbox,swap-case";
302			};
303		};
304	};
305
306	probing {
307		compatible = "simple-bus";
308		test1 {
309			compatible = "denx,u-boot-probe-test";
310		};
311
312		test2 {
313			compatible = "denx,u-boot-probe-test";
314		};
315
316		test3 {
317			compatible = "denx,u-boot-probe-test";
318		};
319
320		test4 {
321			compatible = "denx,u-boot-probe-test";
322		};
323	};
324
325	pwrdom: power-domain {
326		compatible = "sandbox,power-domain";
327		#power-domain-cells = <1>;
328	};
329
330	power-domain-test {
331		compatible = "sandbox,power-domain-test";
332		power-domains = <&pwrdom 2>;
333	};
334
335	pwm {
336		compatible = "sandbox,pwm";
337	};
338
339	pwm2 {
340		compatible = "sandbox,pwm";
341	};
342
343	ram {
344		compatible = "sandbox,ram";
345	};
346
347	reset@0 {
348		compatible = "sandbox,warm-reset";
349	};
350
351	reset@1 {
352		compatible = "sandbox,reset";
353	};
354
355	resetc: reset-ctl {
356		compatible = "sandbox,reset-ctl";
357		#reset-cells = <1>;
358	};
359
360	reset-ctl-test {
361		compatible = "sandbox,reset-ctl-test";
362		resets = <&resetc 100>, <&resetc 2>;
363		reset-names = "other", "test";
364	};
365
366	rproc_1: rproc@1 {
367		compatible = "sandbox,test-processor";
368		remoteproc-name = "remoteproc-test-dev1";
369	};
370
371	rproc_2: rproc@2 {
372		compatible = "sandbox,test-processor";
373		internal-memory-mapped;
374		remoteproc-name = "remoteproc-test-dev2";
375	};
376
377	spi@0 {
378		#address-cells = <1>;
379		#size-cells = <0>;
380		reg = <0 1>;
381		compatible = "sandbox,spi";
382		cs-gpios = <0>, <&gpio_a 0>;
383		spi.bin@0 {
384			reg = <0>;
385			compatible = "spansion,m25p16", "spi-flash";
386			spi-max-frequency = <40000000>;
387			sandbox,filename = "spi.bin";
388		};
389	};
390
391	syscon@0 {
392		compatible = "sandbox,syscon0";
393		reg = <0x10 4>;
394	};
395
396	syscon@1 {
397		compatible = "sandbox,syscon1";
398		reg = <0x20 5
399			0x28 6
400			0x30 7
401			0x38 8>;
402	};
403
404	timer {
405		compatible = "sandbox,timer";
406		clock-frequency = <1000000>;
407	};
408
409	uart0: serial {
410		compatible = "sandbox,serial";
411		u-boot,dm-pre-reloc;
412	};
413
414	usb_0: usb@0 {
415		compatible = "sandbox,usb";
416		status = "disabled";
417		hub {
418			compatible = "sandbox,usb-hub";
419			#address-cells = <1>;
420			#size-cells = <0>;
421			flash-stick {
422				reg = <0>;
423				compatible = "sandbox,usb-flash";
424			};
425		};
426	};
427
428	usb_1: usb@1 {
429		compatible = "sandbox,usb";
430		hub {
431			compatible = "usb-hub";
432			usb,device-class = <9>;
433			hub-emul {
434				compatible = "sandbox,usb-hub";
435				#address-cells = <1>;
436				#size-cells = <0>;
437				flash-stick@0 {
438					reg = <0>;
439					compatible = "sandbox,usb-flash";
440					sandbox,filepath = "testflash.bin";
441				};
442
443				flash-stick@1 {
444					reg = <1>;
445					compatible = "sandbox,usb-flash";
446					sandbox,filepath = "testflash1.bin";
447				};
448
449				flash-stick@2 {
450					reg = <2>;
451					compatible = "sandbox,usb-flash";
452					sandbox,filepath = "testflash2.bin";
453				};
454
455				keyb@3 {
456					reg = <3>;
457					compatible = "sandbox,usb-keyb";
458				};
459
460			};
461		};
462	};
463
464	usb_2: usb@2 {
465		compatible = "sandbox,usb";
466		status = "disabled";
467	};
468
469	spmi: spmi@0 {
470		compatible = "sandbox,spmi";
471		#address-cells = <0x1>;
472		#size-cells = <0x1>;
473		pm8916@0 {
474			compatible = "qcom,spmi-pmic";
475			reg = <0x0 0x1>;
476			#address-cells = <0x1>;
477			#size-cells = <0x1>;
478
479			spmi_gpios: gpios@c000 {
480				compatible = "qcom,pm8916-gpio";
481				reg = <0xc000 0x400>;
482				gpio-controller;
483				gpio-count = <4>;
484				#gpio-cells = <2>;
485				gpio-bank-name="spmi";
486			};
487		};
488	};
489
490	wdt0: wdt@0 {
491		compatible = "sandbox,wdt";
492	};
493};
494
495#include "sandbox_pmic.dtsi"
496