]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - arch/sandbox/dts/test.dts
test: dm: test.dts - move to sandbox dts directory
[karo-tx-uboot.git] / arch / sandbox / dts / 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                 usb0 = &usb_0;
24                 usb1 = &usb_1;
25                 usb2 = &usb_2;
26         };
27
28         uart0: serial {
29                 compatible = "sandbox,serial";
30                 u-boot,dm-pre-reloc;
31         };
32
33         a-test {
34                 reg = <0>;
35                 compatible = "denx,u-boot-fdt-test";
36                 ping-expect = <0>;
37                 ping-add = <0>;
38                 u-boot,dm-pre-reloc;
39                 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
40                         <0>, <&gpio_a 12>;
41                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
42                         <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
43                         <&gpio_b 9 0xc 3 2 1>;
44         };
45
46         junk {
47                 reg = <1>;
48                 compatible = "not,compatible";
49         };
50
51         no-compatible {
52                 reg = <2>;
53         };
54
55         b-test {
56                 reg = <3>;
57                 compatible = "denx,u-boot-fdt-test";
58                 ping-expect = <3>;
59                 ping-add = <3>;
60         };
61
62         some-bus {
63                 #address-cells = <1>;
64                 #size-cells = <0>;
65                 compatible = "denx,u-boot-test-bus";
66                 reg = <3>;
67                 ping-expect = <4>;
68                 ping-add = <4>;
69                 c-test@5 {
70                         compatible = "denx,u-boot-fdt-test";
71                         reg = <5>;
72                         ping-expect = <5>;
73                         ping-add = <5>;
74                 };
75                 c-test@0 {
76                         compatible = "denx,u-boot-fdt-test";
77                         reg = <0>;
78                         ping-expect = <6>;
79                         ping-add = <6>;
80                 };
81                 c-test@1 {
82                         compatible = "denx,u-boot-fdt-test";
83                         reg = <1>;
84                         ping-expect = <7>;
85                         ping-add = <7>;
86                 };
87         };
88
89         d-test {
90                 reg = <3>;
91                 ping-expect = <6>;
92                 ping-add = <6>;
93                 compatible = "google,another-fdt-test";
94         };
95
96         e-test {
97                 reg = <3>;
98                 ping-expect = <6>;
99                 ping-add = <6>;
100                 compatible = "google,another-fdt-test";
101         };
102
103         f-test {
104                 compatible = "denx,u-boot-fdt-test";
105         };
106
107         g-test {
108                 compatible = "denx,u-boot-fdt-test";
109         };
110
111         gpio_a: base-gpios {
112                 compatible = "sandbox,gpio";
113                 gpio-controller;
114                 #gpio-cells = <1>;
115                 gpio-bank-name = "a";
116                 num-gpios = <20>;
117         };
118
119         gpio_b: extra-gpios {
120                 compatible = "sandbox,gpio";
121                 gpio-controller;
122                 #gpio-cells = <5>;
123                 gpio-bank-name = "b";
124                 num-gpios = <10>;
125         };
126
127         i2c@0 {
128                 #address-cells = <1>;
129                 #size-cells = <0>;
130                 reg = <0>;
131                 compatible = "sandbox,i2c";
132                 clock-frequency = <100000>;
133                 eeprom@2c {
134                         reg = <0x2c>;
135                         compatible = "i2c-eeprom";
136                         emul {
137                                 compatible = "sandbox,i2c-eeprom";
138                                 sandbox,filename = "i2c.bin";
139                                 sandbox,size = <256>;
140                         };
141                 };
142         };
143
144         pci: pci-controller {
145                 compatible = "sandbox,pci";
146                 device_type = "pci";
147                 #address-cells = <3>;
148                 #size-cells = <2>;
149                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
150                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
151                 pci@1f,0 {
152                         compatible = "pci-generic";
153                         reg = <0xf800 0 0 0 0>;
154                         emul@1f,0 {
155                                 compatible = "sandbox,swap-case";
156                         };
157                 };
158         };
159
160         spi@0 {
161                 #address-cells = <1>;
162                 #size-cells = <0>;
163                 reg = <0>;
164                 compatible = "sandbox,spi";
165                 cs-gpios = <0>, <&gpio_a 0>;
166                 spi.bin@0 {
167                         reg = <0>;
168                         compatible = "spansion,m25p16", "spi-flash";
169                         spi-max-frequency = <40000000>;
170                         sandbox,filename = "spi.bin";
171                 };
172         };
173
174         eth@10002000 {
175                 compatible = "sandbox,eth";
176                 reg = <0x10002000 0x1000>;
177                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
178         };
179
180         eth_5: eth@10003000 {
181                 compatible = "sandbox,eth";
182                 reg = <0x10003000 0x1000>;
183                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
184         };
185
186         eth@10004000 {
187                 compatible = "sandbox,eth";
188                 reg = <0x10004000 0x1000>;
189                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
190         };
191
192         usb_0: usb@0 {
193                 compatible = "sandbox,usb";
194                 status = "disabled";
195                 hub {
196                         compatible = "sandbox,usb-hub";
197                         #address-cells = <1>;
198                         #size-cells = <0>;
199                         flash-stick {
200                                 reg = <0>;
201                                 compatible = "sandbox,usb-flash";
202                         };
203                 };
204         };
205
206         usb_1: usb@1 {
207                 compatible = "sandbox,usb";
208                 hub {
209                         compatible = "usb-hub";
210                         usb,device-class = <9>;
211                         hub-emul {
212                                 compatible = "sandbox,usb-hub";
213                                 #address-cells = <1>;
214                                 #size-cells = <0>;
215                                 flash-stick {
216                                         reg = <0>;
217                                         compatible = "sandbox,usb-flash";
218                                         sandbox,filepath = "testflash.bin";
219                                 };
220
221                         };
222                 };
223         };
224
225         usb_2: usb@2 {
226                 compatible = "sandbox,usb";
227                 status = "disabled";
228         };
229
230 };