1// SPDX-License-Identifier: GPL-2.0
2
3/ {
4	#address-cells = <1>;
5	#size-cells = <1>;
6
7	testcase-data {
8		#address-cells = <1>;
9		#size-cells = <1>;
10		ranges;
11
12		address-tests {
13			#address-cells = <1>;
14			#size-cells = <1>;
15			/* ranges here is to make sure we don't use it for
16			 * dma-ranges translation */
17			ranges = <0x70000000 0x70000000 0x50000000>,
18				 <0x00000000 0xd0000000 0x20000000>;
19			dma-ranges = <0x0 0x20000000 0x40000000>;
20
21			device@70000000 {
22				reg = <0x70000000 0x1000>;
23			};
24
25			bus@80000000 {
26				#address-cells = <2>;
27				#size-cells = <2>;
28				ranges = <0x0 0x0 0x80000000 0x0 0x100000>;
29				dma-ranges = <0x1 0x0 0x0 0x20 0x0>;
30
31				device@1000 {
32					reg = <0x0 0x1000 0x0 0x1000>;
33				};
34			};
35
36			pci@90000000 {
37				device_type = "pci";
38				#address-cells = <3>;
39				#size-cells = <2>;
40				reg = <0x90000000 0x1000>;
41				ranges = <0x42000000 0x0 0x40000000 0x40000000 0x0 0x10000000>;
42				dma-ranges = <0x42000000 0x0 0x80000000 0x00000000 0x0 0x10000000>,
43					     <0x42000000 0x0 0xc0000000 0x20000000 0x0 0x10000000>;
44			};
45
46			bus@a0000000 {
47				#address-cells = <3>;
48				#size-cells = <2>;
49				ranges = <0xf00baa 0x0 0x0 0xa0000000 0x0 0x100000>,
50					 <0xf00bee 0x1 0x0 0xb0000000 0x0 0x200000>;
51			};
52
53		};
54	};
55};
56