]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - test/dm/test.dts
0ab0916858aaeab5a8c9af7ce1dee6c3ba8d2b2d
[karo-tx-uboot.git] / test / dm / test.dts
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                 i2c0 = "/i2c@0";
12                 spi0 = "/spi@0";
13                 pci0 = &pci;
14                 testfdt6 = "/e-test";
15                 testbus3 = "/some-bus";
16                 testfdt0 = "/some-bus/c-test@0";
17                 testfdt1 = "/some-bus/c-test@1";
18                 testfdt3 = "/b-test";
19                 testfdt5 = "/some-bus/c-test@5";
20                 testfdt8 = "/a-test";
21                 eth0 = "/eth@10002000";
22                 eth5 = &eth_5;
23         };
24
25         uart0: serial {
26                 compatible = "sandbox,serial";
27                 u-boot,dm-pre-reloc;
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         gpio_a: base-gpios {
109                 compatible = "sandbox,gpio";
110                 gpio-controller;
111                 #gpio-cells = <1>;
112                 gpio-bank-name = "a";
113                 num-gpios = <20>;
114         };
115
116         gpio_b: extra-gpios {
117                 compatible = "sandbox,gpio";
118                 gpio-controller;
119                 #gpio-cells = <5>;
120                 gpio-bank-name = "b";
121                 num-gpios = <10>;
122         };
123
124         i2c@0 {
125                 #address-cells = <1>;
126                 #size-cells = <0>;
127                 reg = <0>;
128                 compatible = "sandbox,i2c";
129                 clock-frequency = <100000>;
130                 eeprom@2c {
131                         reg = <0x2c>;
132                         compatible = "i2c-eeprom";
133                         emul {
134                                 compatible = "sandbox,i2c-eeprom";
135                                 sandbox,filename = "i2c.bin";
136                                 sandbox,size = <256>;
137                         };
138                 };
139         };
140
141         pci: pci-controller {
142                 compatible = "sandbox,pci";
143                 device_type = "pci";
144                 #address-cells = <3>;
145                 #size-cells = <2>;
146                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
147                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
148                 pci@1f,0 {
149                         compatible = "pci-generic";
150                         reg = <0xf800 0 0 0 0>;
151                         emul@1f,0 {
152                                 compatible = "sandbox,swap-case";
153                         };
154                 };
155         };
156
157         spi@0 {
158                 #address-cells = <1>;
159                 #size-cells = <0>;
160                 reg = <0>;
161                 compatible = "sandbox,spi";
162                 cs-gpios = <0>, <&gpio_a 0>;
163                 spi.bin@0 {
164                         reg = <0>;
165                         compatible = "spansion,m25p16", "spi-flash";
166                         spi-max-frequency = <40000000>;
167                         sandbox,filename = "spi.bin";
168                 };
169         };
170
171         eth@10002000 {
172                 compatible = "sandbox,eth";
173                 reg = <0x10002000 0x1000>;
174                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
175         };
176
177         eth_5: eth@10003000 {
178                 compatible = "sandbox,eth";
179                 reg = <0x10003000 0x1000>;
180                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
181         };
182
183         eth@10004000 {
184                 compatible = "sandbox,eth";
185                 reg = <0x10004000 0x1000>;
186                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
187         };
188
189 };