rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / mt7620n.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "ralink,mtk7620n-soc";
5
6 cpus {
7 cpu@0 {
8 compatible = "mips,mips24KEc";
9 };
10 };
11
12 chosen {
13 bootargs = "console=ttyS0,57600";
14 };
15
16 cpuintc: cpuintc@0 {
17 #address-cells = <0>;
18 #interrupt-cells = <1>;
19 interrupt-controller;
20 compatible = "mti,cpu-interrupt-controller";
21 };
22
23 aliases {
24 spi0 = &spi0;
25 spi1 = &spi1;
26 serial0 = &uartlite;
27 };
28
29 palmbus@10000000 {
30 compatible = "palmbus";
31 reg = <0x10000000 0x200000>;
32 ranges = <0x0 0x10000000 0x1FFFFF>;
33
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 sysc@0 {
38 compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc";
39 reg = <0x0 0x100>;
40 };
41
42 timer@100 {
43 compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
44 reg = <0x100 0x20>;
45
46 interrupt-parent = <&intc>;
47 interrupts = <1>;
48 };
49
50 watchdog@120 {
51 compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt";
52 reg = <0x120 0x10>;
53
54 resets = <&rstctrl 8>;
55 reset-names = "wdt";
56
57 interrupt-parent = <&intc>;
58 interrupts = <1>;
59 };
60
61 intc: intc@200 {
62 compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
63 reg = <0x200 0x100>;
64
65 resets = <&rstctrl 19>;
66 reset-names = "intc";
67
68 interrupt-controller;
69 #interrupt-cells = <1>;
70
71 interrupt-parent = <&cpuintc>;
72 interrupts = <2>;
73 };
74
75 memc@300 {
76 compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
77 reg = <0x300 0x100>;
78
79 resets = <&rstctrl 20>;
80 reset-names = "mc";
81
82 interrupt-parent = <&intc>;
83 interrupts = <3>;
84 };
85
86 gpio0: gpio@600 {
87 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
88 reg = <0x600 0x34>;
89
90 resets = <&rstctrl 13>;
91 reset-names = "pio";
92
93 interrupt-parent = <&intc>;
94 interrupts = <6>;
95
96 gpio-controller;
97 #gpio-cells = <2>;
98
99 ralink,gpio-base = <0>;
100 ralink,num-gpios = <24>;
101 ralink,register-map = [ 00 04 08 0c
102 20 24 28 2c
103 30 34 ];
104 };
105
106 gpio1: gpio@638 {
107 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
108 reg = <0x638 0x24>;
109
110 interrupt-parent = <&intc>;
111 interrupts = <6>;
112
113 gpio-controller;
114 #gpio-cells = <2>;
115
116 ralink,gpio-base = <24>;
117 ralink,num-gpios = <16>;
118 ralink,register-map = [ 00 04 08 0c
119 10 14 18 1c
120 20 24 ];
121
122 status = "disabled";
123 };
124
125 gpio2: gpio@660 {
126 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
127 reg = <0x660 0x24>;
128
129 interrupt-parent = <&intc>;
130 interrupts = <6>;
131
132 gpio-controller;
133 #gpio-cells = <2>;
134
135 ralink,gpio-base = <40>;
136 ralink,num-gpios = <32>;
137 ralink,register-map = [ 00 04 08 0c
138 10 14 18 1c
139 20 24 ];
140
141 status = "disabled";
142 };
143
144 gpio3: gpio@688 {
145 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
146 reg = <0x688 0x24>;
147
148 interrupt-parent = <&intc>;
149 interrupts = <6>;
150
151 gpio-controller;
152 #gpio-cells = <2>;
153
154 ralink,gpio-base = <72>;
155 ralink,num-gpios = <1>;
156 ralink,register-map = [ 00 04 08 0c
157 10 14 18 1c
158 20 24 ];
159
160 status = "disabled";
161 };
162
163 spi0: spi@b00 {
164 compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
165 reg = <0xb00 0x40>;
166
167 resets = <&rstctrl 18>;
168 reset-names = "spi";
169
170 #address-cells = <1>;
171 #size-cells = <0>;
172
173 status = "disabled";
174
175 pinctrl-names = "default";
176 pinctrl-0 = <&spi_pins>;
177 };
178
179 spi1: spi@b40 {
180 compatible = "ralink,rt2880-spi";
181 reg = <0xb40 0x60>;
182
183 resets = <&rstctrl 18>;
184 reset-names = "spi";
185
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 status = "disabled";
190
191 pinctrl-names = "default";
192 pinctrl-0 = <&spi_cs1>;
193 };
194
195 uartlite: uartlite@c00 {
196 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
197 reg = <0xc00 0x100>;
198
199 resets = <&rstctrl 19>;
200 reset-names = "uartl";
201
202 interrupt-parent = <&intc>;
203 interrupts = <12>;
204
205 reg-shift = <2>;
206
207 pinctrl-names = "default";
208 pinctrl-0 = <&uartlite_pins>;
209 };
210
211 systick@d00 {
212 compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
213 reg = <0xd00 0x10>;
214
215 resets = <&rstctrl 28>;
216 reset-names = "intc";
217
218 interrupt-parent = <&cpuintc>;
219 interrupts = <7>;
220 };
221 };
222
223 pinctrl {
224 compatible = "ralink,rt2880-pinmux";
225 pinctrl-names = "default";
226 pinctrl-0 = <&state_default>;
227
228 state_default: pinctrl0 {
229 };
230
231 spi_pins: spi {
232 spi {
233 ralink,group = "spi";
234 ralink,function = "spi";
235 };
236 };
237
238 spi_cs1: spi1 {
239 spi1 {
240 ralink,group = "spi_cs1";
241 ralink,function = "spi_cs1";
242 };
243 };
244
245 uartlite_pins: uartlite {
246 uart {
247 ralink,group = "uartlite";
248 ralink,function = "uartlite";
249 };
250 };
251 };
252
253 rstctrl: rstctrl {
254 compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
255 #reset-cells = <1>;
256 };
257
258 usbphy: usbphy {
259 compatible = "mediatek,mt7620-usbphy";
260 #phy-cells = <1>;
261
262 resets = <&rstctrl 22 &rstctrl 25>;
263 reset-names = "host", "device";
264 };
265
266 ethernet@10100000 {
267 compatible = "mediatek,mt7620-eth";
268 reg = <0x10100000 0x10000>;
269
270 #address-cells = <1>;
271 #size-cells = <0>;
272
273 interrupt-parent = <&cpuintc>;
274 interrupts = <5>;
275
276 resets = <&rstctrl 21 &rstctrl 23>;
277 reset-names = "fe", "esw";
278
279 mediatek,switch = <&gsw>;
280
281 mdio-bus {
282 #address-cells = <1>;
283 #size-cells = <0>;
284
285 status = "disabled";
286 };
287 };
288
289 gsw: gsw@10110000 {
290 compatible = "mediatek,mt7620-gsw";
291 reg = <0x10110000 0x8000>;
292
293 resets = <&rstctrl 23>;
294 reset-names = "esw";
295
296 interrupt-parent = <&intc>;
297 interrupts = <17>;
298 mediatek,port4 = "gmac";
299 };
300
301 ehci@101c0000 {
302 compatible = "generic-ehci";
303 reg = <0x101c0000 0x1000>;
304
305 interrupt-parent = <&intc>;
306 interrupts = <18>;
307
308 phys = <&usbphy 1>;
309 phy-names = "usb";
310
311 status = "disabled";
312 };
313
314 ohci@101c1000 {
315 compatible = "generic-ohci";
316 reg = <0x101c1000 0x1000>;
317
318 phys = <&usbphy 1>;
319 phy-names = "usb";
320
321 interrupt-parent = <&intc>;
322 interrupts = <18>;
323
324 status = "disabled";
325 };
326
327 wmac@10180000 {
328 compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac";
329 reg = <0x10180000 0x40000>;
330
331 interrupt-parent = <&cpuintc>;
332 interrupts = <6>;
333
334 ralink,eeprom = "soc_wmac.eeprom";
335 };
336 };