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