]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - arch/sandbox/dts/test.dts
Merge git://git.denx.de/u-boot-samsung
[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                 sandbox_pmic: sandbox_pmic {
144                         reg = <0x40>;
145                 };
146         };
147
148         pci: pci-controller {
149                 compatible = "sandbox,pci";
150                 device_type = "pci";
151                 #address-cells = <3>;
152                 #size-cells = <2>;
153                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
154                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
155                 pci@1f,0 {
156                         compatible = "pci-generic";
157                         reg = <0xf800 0 0 0 0>;
158                         emul@1f,0 {
159                                 compatible = "sandbox,swap-case";
160                         };
161                 };
162         };
163
164         spi@0 {
165                 #address-cells = <1>;
166                 #size-cells = <0>;
167                 reg = <0>;
168                 compatible = "sandbox,spi";
169                 cs-gpios = <0>, <&gpio_a 0>;
170                 spi.bin@0 {
171                         reg = <0>;
172                         compatible = "spansion,m25p16", "spi-flash";
173                         spi-max-frequency = <40000000>;
174                         sandbox,filename = "spi.bin";
175                 };
176         };
177
178         eth@10002000 {
179                 compatible = "sandbox,eth";
180                 reg = <0x10002000 0x1000>;
181                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
182         };
183
184         eth_5: eth@10003000 {
185                 compatible = "sandbox,eth";
186                 reg = <0x10003000 0x1000>;
187                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
188         };
189
190         eth@10004000 {
191                 compatible = "sandbox,eth";
192                 reg = <0x10004000 0x1000>;
193                 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
194         };
195
196         usb_0: usb@0 {
197                 compatible = "sandbox,usb";
198                 status = "disabled";
199                 hub {
200                         compatible = "sandbox,usb-hub";
201                         #address-cells = <1>;
202                         #size-cells = <0>;
203                         flash-stick {
204                                 reg = <0>;
205                                 compatible = "sandbox,usb-flash";
206                         };
207                 };
208         };
209
210         usb_1: usb@1 {
211                 compatible = "sandbox,usb";
212                 hub {
213                         compatible = "usb-hub";
214                         usb,device-class = <9>;
215                         hub-emul {
216                                 compatible = "sandbox,usb-hub";
217                                 #address-cells = <1>;
218                                 #size-cells = <0>;
219                                 flash-stick {
220                                         reg = <0>;
221                                         compatible = "sandbox,usb-flash";
222                                         sandbox,filepath = "testflash.bin";
223                                 };
224
225                         };
226                 };
227         };
228
229         usb_2: usb@2 {
230                 compatible = "sandbox,usb";
231                 status = "disabled";
232         };
233
234 };
235
236 #include "sandbox_pmic.dtsi"