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