xref: /rk3399_rockchip-uboot/arch/sandbox/dts/test.dts (revision 201c29a2d6fe5d50bc731e51fd758b3ae1e028d6)
1/dts-v1/;
2
3/ {
4	model = "sandbox";
5	compatible = "sandbox";
6	#address-cells = <1>;
7	#size-cells = <0>;
8
9	aliases {
10		console = &uart0;
11		eth0 = "/eth@10002000";
12		eth5 = &eth_5;
13		i2c0 = "/i2c@0";
14		pci0 = &pci;
15		rtc0 = &rtc_0;
16		rtc1 = &rtc_1;
17		spi0 = "/spi@0";
18		testfdt6 = "/e-test";
19		testbus3 = "/some-bus";
20		testfdt0 = "/some-bus/c-test@0";
21		testfdt1 = "/some-bus/c-test@1";
22		testfdt3 = "/b-test";
23		testfdt5 = "/some-bus/c-test@5";
24		testfdt8 = "/a-test";
25		usb0 = &usb_0;
26		usb1 = &usb_1;
27		usb2 = &usb_2;
28	};
29
30	a-test {
31		reg = <0>;
32		compatible = "denx,u-boot-fdt-test";
33		ping-expect = <0>;
34		ping-add = <0>;
35		u-boot,dm-pre-reloc;
36		test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
37			<0>, <&gpio_a 12>;
38		test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
39			<&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
40			<&gpio_b 9 0xc 3 2 1>;
41	};
42
43	junk {
44		reg = <1>;
45		compatible = "not,compatible";
46	};
47
48	no-compatible {
49		reg = <2>;
50	};
51
52	b-test {
53		reg = <3>;
54		compatible = "denx,u-boot-fdt-test";
55		ping-expect = <3>;
56		ping-add = <3>;
57	};
58
59	some-bus {
60		#address-cells = <1>;
61		#size-cells = <0>;
62		compatible = "denx,u-boot-test-bus";
63		reg = <3>;
64		ping-expect = <4>;
65		ping-add = <4>;
66		c-test@5 {
67			compatible = "denx,u-boot-fdt-test";
68			reg = <5>;
69			ping-expect = <5>;
70			ping-add = <5>;
71		};
72		c-test@0 {
73			compatible = "denx,u-boot-fdt-test";
74			reg = <0>;
75			ping-expect = <6>;
76			ping-add = <6>;
77		};
78		c-test@1 {
79			compatible = "denx,u-boot-fdt-test";
80			reg = <1>;
81			ping-expect = <7>;
82			ping-add = <7>;
83		};
84	};
85
86	d-test {
87		reg = <3>;
88		ping-expect = <6>;
89		ping-add = <6>;
90		compatible = "google,another-fdt-test";
91	};
92
93	e-test {
94		reg = <3>;
95		ping-expect = <6>;
96		ping-add = <6>;
97		compatible = "google,another-fdt-test";
98	};
99
100	f-test {
101		compatible = "denx,u-boot-fdt-test";
102	};
103
104	g-test {
105		compatible = "denx,u-boot-fdt-test";
106	};
107
108	clk@0 {
109		compatible = "sandbox,clk";
110	};
111
112	eth@10002000 {
113		compatible = "sandbox,eth";
114		reg = <0x10002000 0x1000>;
115		fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
116	};
117
118	eth_5: eth@10003000 {
119		compatible = "sandbox,eth";
120		reg = <0x10003000 0x1000>;
121		fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
122	};
123
124	eth@10004000 {
125		compatible = "sandbox,eth";
126		reg = <0x10004000 0x1000>;
127		fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
128	};
129
130	gpio_a: base-gpios {
131		compatible = "sandbox,gpio";
132		gpio-controller;
133		#gpio-cells = <1>;
134		gpio-bank-name = "a";
135		num-gpios = <20>;
136	};
137
138	gpio_b: extra-gpios {
139		compatible = "sandbox,gpio";
140		gpio-controller;
141		#gpio-cells = <5>;
142		gpio-bank-name = "b";
143		num-gpios = <10>;
144	};
145
146	i2c@0 {
147		#address-cells = <1>;
148		#size-cells = <0>;
149		reg = <0>;
150		compatible = "sandbox,i2c";
151		clock-frequency = <100000>;
152		eeprom@2c {
153			reg = <0x2c>;
154			compatible = "i2c-eeprom";
155			emul {
156				compatible = "sandbox,i2c-eeprom";
157				sandbox,filename = "i2c.bin";
158				sandbox,size = <256>;
159			};
160		};
161
162		rtc_0: rtc@43 {
163			reg = <0x43>;
164			compatible = "sandbox-rtc";
165			emul {
166				compatible = "sandbox,i2c-rtc";
167			};
168		};
169
170		rtc_1: rtc@61 {
171			reg = <0x61>;
172			compatible = "sandbox-rtc";
173			emul {
174				compatible = "sandbox,i2c-rtc";
175			};
176		};
177
178		sandbox_pmic: sandbox_pmic {
179			reg = <0x40>;
180		};
181	};
182
183	pci: pci-controller {
184		compatible = "sandbox,pci";
185		device_type = "pci";
186		#address-cells = <3>;
187		#size-cells = <2>;
188		ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
189				0x01000000 0 0x20000000 0x20000000 0 0x2000>;
190		pci@1f,0 {
191			compatible = "pci-generic";
192			reg = <0xf800 0 0 0 0>;
193			emul@1f,0 {
194				compatible = "sandbox,swap-case";
195			};
196		};
197	};
198
199	reset@0 {
200		compatible = "sandbox,warm-reset";
201	};
202
203	reset@1 {
204		compatible = "sandbox,reset";
205	};
206
207	spi@0 {
208		#address-cells = <1>;
209		#size-cells = <0>;
210		reg = <0>;
211		compatible = "sandbox,spi";
212		cs-gpios = <0>, <&gpio_a 0>;
213		spi.bin@0 {
214			reg = <0>;
215			compatible = "spansion,m25p16", "spi-flash";
216			spi-max-frequency = <40000000>;
217			sandbox,filename = "spi.bin";
218		};
219	};
220
221	uart0: serial {
222		compatible = "sandbox,serial";
223		u-boot,dm-pre-reloc;
224	};
225
226	usb_0: usb@0 {
227		compatible = "sandbox,usb";
228		status = "disabled";
229		hub {
230			compatible = "sandbox,usb-hub";
231			#address-cells = <1>;
232			#size-cells = <0>;
233			flash-stick {
234				reg = <0>;
235				compatible = "sandbox,usb-flash";
236			};
237		};
238	};
239
240	usb_1: usb@1 {
241		compatible = "sandbox,usb";
242		hub {
243			compatible = "usb-hub";
244			usb,device-class = <9>;
245			hub-emul {
246				compatible = "sandbox,usb-hub";
247				#address-cells = <1>;
248				#size-cells = <0>;
249				flash-stick {
250					reg = <0>;
251					compatible = "sandbox,usb-flash";
252					sandbox,filepath = "testflash.bin";
253				};
254
255			};
256		};
257	};
258
259	usb_2: usb@2 {
260		compatible = "sandbox,usb";
261		status = "disabled";
262	};
263
264};
265
266#include "sandbox_pmic.dtsi"
267