ralink: bump to the target to v4.3
[openwrt.git] / target / linux / ramips / dts / mt7621.dtsi
1 / {
2         #address-cells = <1>;
3         #size-cells = <1>;
4         compatible = "mediatek,mtk7621-soc";
5
6         cpus {
7                 cpu@0 {
8                         compatible = "mips,mips1004Kc";
9                 };
10
11                 cpu@1 {
12                         compatible = "mips,mips1004Kc";
13                 };
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@1E000000 {
24                 compatible = "palmbus";
25                 reg = <0x1E000000 0x100000>;
26                 ranges = <0x0 0x1E000000 0x0FFFFF>;
27
28                 #address-cells = <1>;
29                 #size-cells = <1>;
30
31                 sysc@0 {
32                         compatible = "mtk,mt7621-sysc";
33                         reg = <0x0 0x100>;
34                 };
35
36                 wdt@100 {
37                         compatible = "mtk,mt7621-wdt";
38                         reg = <0x100 0x100>;
39                 };
40
41                 gpio@600 {
42                         #address-cells = <1>;
43                         #size-cells = <0>;
44
45                         compatible = "mtk,mt7621-gpio";
46                         reg = <0x600 0x100>;
47
48                         gpio0: bank@0 {
49                                 reg = <0>;
50                                 compatible = "mtk,mt7621-gpio-bank";
51                                 gpio-controller;
52                                 #gpio-cells = <2>;
53                         };
54
55                         gpio1: bank@1 {
56                                 reg = <1>;
57                                 compatible = "mtk,mt7621-gpio-bank";
58                                 gpio-controller;
59                                 #gpio-cells = <2>;
60                         };
61
62                         gpio2: bank@2 {
63                                 reg = <2>;
64                                 compatible = "mtk,mt7621-gpio-bank";
65                                 gpio-controller;
66                                 #gpio-cells = <2>;
67                         };
68                 };
69
70                 memc@5000 {
71                         compatible = "mtk,mt7621-memc";
72                         reg = <0x300 0x100>;
73                 };
74
75                 uartlite@c00 {
76                         compatible = "ns16550a";
77                         reg = <0xc00 0x100>;
78
79                         interrupt-parent = <&gic>;
80                         interrupts = <0 26 4>;
81
82                         reg-shift = <2>;
83                         reg-io-width = <4>;
84                         no-loopback-test;
85                 };
86
87                 spi@b00 {
88                         status = "okay";
89
90                         compatible = "ralink,mt7621-spi";
91                         reg = <0xb00 0x100>;
92
93                         resets = <&rstctrl 18>;
94                         reset-names = "spi";
95
96                         #address-cells = <1>;
97                         #size-cells = <0>;
98
99                         pinctrl-names = "default";
100                         pinctrl-0 = <&spi_pins>;
101
102                         m25p80@0 {
103                                 #address-cells = <1>;
104                                 #size-cells = <1>;
105                                 reg = <0 0>;
106                                 spi-max-frequency = <10000000>;
107                                 m25p,chunked-io = <32>;
108                         };
109                 };
110         };
111
112         pinctrl {
113                 compatible = "ralink,rt2880-pinmux";
114                 pinctrl-names = "default";
115                 pinctrl-0 = <&state_default>;
116
117                 state_default: pinctrl0 {
118                 };
119
120                 spi_pins: spi {
121                         spi {
122                                 ralink,group = "spi";
123                                 ralink,function = "spi";
124                         };
125                 };
126
127                 i2c_pins: i2c {
128                         i2c {
129                                 ralink,group = "i2c";
130                                 ralink,function = "i2c";
131                         };
132                 };
133
134                 uart1_pins: uart1 {
135                         uart1 {
136                                 ralink,group = "uart1";
137                                 ralink,function = "uart1";
138                         };
139                 };
140
141                 uart2_pins: uart2 {
142                         uart2 {
143                                 ralink,group = "uart2";
144                                 ralink,function = "uart2";
145                         };
146                 };
147
148                 uart3_pins: uart3 {
149                         uart3 {
150                                 ralink,group = "uart3";
151                                 ralink,function = "uart3";
152                         };
153                 };
154
155                 rgmii1_pins: rgmii1 {
156                         rgmii1 {
157                                 ralink,group = "rgmii1";
158                                 ralink,function = "rgmii1";
159                         };
160                 };
161
162                 rgmii2_pins: rgmii2 {
163                         rgmii2 {
164                                 ralink,group = "rgmii2";
165                                 ralink,function = "rgmii2";
166                         };
167                 };
168
169                 mdio_pins: mdio {
170                         mdio {
171                                 ralink,group = "mdio";
172                                 ralink,function = "mdio";
173                         };
174                 };
175
176                 pcie_pins: pcie {
177                         pcie {
178                                 ralink,group = "pcie";
179                                 ralink,function = "pcie rst";
180                         };
181                 };
182
183                 nand_pins: nand {
184                         spi-nand {
185                                 ralink,group = "spi";
186                                 ralink,function = "nand1";
187                         };
188
189                         sdhci-nand {
190                                 ralink,group = "sdhci";
191                                 ralink,function = "nand2";
192                         };
193                 };
194
195                 sdhci_pins: sdhci {
196                         sdhci {
197                                 ralink,group = "sdhci";
198                                 ralink,function = "sdhci";
199                         };
200                 };
201         };
202
203         rstctrl: rstctrl {
204                 compatible = "ralink,rt2880-reset";
205                 #reset-cells = <1>;
206         };
207
208         sdhci@1E130000 {
209                 compatible = "ralink,mt7620-sdhci";
210                 reg = <0x1E130000 4000>;
211
212                 interrupt-parent = <&gic>;
213                 interrupts = <0 20 4>;
214         };
215
216         xhci@1E1C0000 {
217                 status = "okay";
218
219                 compatible = "xhci-platform";
220                 reg = <0x1E1C0000 4000>;
221
222                 interrupt-parent = <&gic>;
223                 interrupts = <0 22 4>;
224         };
225
226         gic: interrupt-controller@1fbc0000 {
227                 compatible = "mti,gic";
228                 reg = <0x1fbc0000 0x80>;
229
230                 interrupt-controller;
231                 #interrupt-cells = <3>;
232
233                 mti,reserved-cpu-vectors = <7>;
234         };
235
236         nand@1e003000 {
237                 compatible = "mtk,mt7621-nand";
238                 bank-width = <2>;
239                 reg = <0x1e003000 0x800
240                         0x1e003800 0x800>;
241                 #address-cells = <1>;
242                 #size-cells = <1>;
243
244                 partition@0 {
245                         label = "uboot";
246                         reg = <0x00000 0x80000>; /* 64 KB */
247                 };
248
249                 partition@80000 {
250                         label = "uboot_env";
251                         reg = <0x80000 0x80000>; /* 64 KB */
252                 };
253
254                 partition@100000 {
255                         label = "factory";
256                         reg = <0x100000 0x40000>;
257                 };
258
259                 partition@140000 {
260                         label = "rootfs";
261                         reg = <0x140000 0xec0000>;
262                 };
263         };
264
265         ethernet@1e100000 {
266                 compatible = "ralink,mt7621-eth";
267                 reg = <0x1e100000 10000>;
268
269                 #address-cells = <1>;
270                 #size-cells = <0>;
271
272                 resets = <&rstctrl 6 &rstctrl 23>;
273                 reset-names = "fe", "eth";
274
275                 interrupt-parent = <&gic>;
276                 interrupts = <0 3 4>;
277
278                 mdio-bus {
279                         #address-cells = <1>;
280                         #size-cells = <0>;
281
282                         phy1f: ethernet-phy@1f {
283                                 reg = <0x1f>;
284                                 phy-mode = "rgmii";
285                         };
286                 };
287         };
288
289         gsw@1e110000 {
290                 compatible = "ralink,mt7620a-gsw";
291                 reg = <0x1e110000 8000>;
292                 interrupt-parent = <&gic>;
293                 interrupts = <0 23 4>;
294         };
295
296         pcie@1e140000 {
297                 compatible = "mediatek,mt7621-pci";
298                 reg = <0x1e140000 0x100
299                         0x1e142000 0x100>;
300
301                 #address-cells = <3>;
302                 #size-cells = <2>;
303
304                 pinctrl-names = "default";
305                 pinctrl-0 = <&pcie_pins>;
306
307                 device_type = "pci";
308
309                 bus-range = <0 255>;
310                 ranges = <
311                         0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
312                         0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
313                 >;
314
315                 interrupt-parent = <&gic>;
316                 interrupts = <0 4 4
317                                 0 24 4
318                                 0 25 4>;
319
320                 status = "okay";
321
322                 pcie0 {
323                         reg = <0x0000 0 0 0 0>;
324
325                         #address-cells = <3>;
326                         #size-cells = <2>;
327
328                         device_type = "pci";
329                 };
330
331                 pcie1 {
332                         reg = <0x0800 0 0 0 0>;
333
334                         #address-cells = <3>;
335                         #size-cells = <2>;
336
337                         device_type = "pci";
338                 };
339
340                 pcie2 {
341                         reg = <0x1000 0 0 0 0>;
342
343                         #address-cells = <3>;
344                         #size-cells = <2>;
345
346                         device_type = "pci";
347                 };
348         };
349 };