treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / of / unittest-data / tests-address.dtsi
blob3fe5d3987beb6099a85c3b4557f6fe9cede08ebd
1 // SPDX-License-Identifier: GPL-2.0
3 / {
4         #address-cells = <1>;
5         #size-cells = <1>;
7         testcase-data {
8                 #address-cells = <1>;
9                 #size-cells = <1>;
10                 ranges;
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 0x40000000>,
18                                  <0x00000000 0xd0000000 0x20000000>;
19                         dma-ranges = <0x0 0x20000000 0x40000000>;
21                         device@70000000 {
22                                 reg = <0x70000000 0x1000>;
23                         };
25                         bus@80000000 {
26                                 #address-cells = <1>;
27                                 #size-cells = <1>;
28                                 ranges = <0x0 0x80000000 0x100000>;
29                                 dma-ranges = <0x10000000 0x0 0x40000000>;
31                                 device@1000 {
32                                         reg = <0x1000 0x1000>;
33                                 };
34                         };
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                         };
46                 };
47         };