ralink: add mt7621 support
[openwrt.git] / target / linux / ramips / dts / mt7621.dtsi
1 / {
2         #address-cells = <1>;
3         #size-cells = <1>;
4         compatible = "ralink,mtk7620a-soc";
5
6         cpus {
7                 cpu@0 {
8                         compatible = "mips,mips24KEc";
9                 };
10         };
11
12         cpuintc: cpuintc@0 {
13                 #address-cells = <0>;
14                 #interrupt-cells = <1>;
15                 interrupt-controller;
16                 compatible = "mti,cpu-interrupt-controller";
17         };
18
19         palmbus@1E000000 {
20                 compatible = "palmbus";
21                 reg = <0x1E000000 0x100000>;
22                 ranges = <0x0 0x1E000000 0x0FFFFF>;
23
24                 #address-cells = <1>;
25                 #size-cells = <1>;
26
27                 sysc@0 {
28                         compatible = "mtk,mt7621-sysc";
29                         reg = <0x0 0x100>;
30                 };
31
32                 wdt@100 {
33                         compatible = "mtk,mt7621-wdt";
34                         reg = <0x100 0x100>;
35                 };
36
37                 gpio@600 {
38                         #address-cells = <1>;
39                         #size-cells = <0>;
40
41                         compatible = "mtk,mt7621-gpio";
42                         reg = <0x600 0x100>;
43
44                         gpio0: bank@0 {
45                                 reg = <0>;
46                                 compatible = "mtk,mt7621-gpio-bank";
47                                 gpio-controller;
48                                 #gpio-cells = <2>;
49                         };
50
51                         gpio1: bank@1 {
52                                 reg = <1>;
53                                 compatible = "mtk,mt7621-gpio-bank";
54                                 gpio-controller;
55                                 #gpio-cells = <2>;
56                         };
57
58                         gpio2: bank@2 {
59                                 reg = <2>;
60                                 compatible = "mtk,mt7621-gpio-bank";
61                                 gpio-controller;
62                                 #gpio-cells = <2>;
63                         };
64                 };
65
66                 memc@5000 {
67                         compatible = "mtk,mt7621-memc";
68                         reg = <0x300 0x100>;
69                 };
70
71                 uartlite@c00 {
72                         compatible = "ns16550a";
73                         reg = <0xc00 0x100>;
74
75 /*                      interrupt-parent = <&gic>;
76                         interrupts = <26>;*/
77
78                         reg-shift = <2>;
79                         reg-io-width = <4>;
80                         no-loopback-test;
81                 };
82
83                 spi@b00 {
84                         status = "okay";
85
86                         compatible = "ralink,mt7621-spi";
87                         reg = <0xb00 0x100>;
88
89                         resets = <&rstctrl 18>;
90                         reset-names = "spi";
91
92                         #address-cells = <1>;
93                         #size-cells = <1>;
94
95 /*                      pinctrl-names = "default";
96                         pinctrl-0 = <&spi_pins>;*/
97
98                         m25p80@0 {
99                                 #address-cells = <1>;
100                                 #size-cells = <1>;
101                                 compatible = "en25q64";
102                                 reg = <0 0>;
103                                 linux,modalias = "m25p80", "en25q64";
104                                 spi-max-frequency = <10000000>;
105
106                                 m25p,chunked-io;
107
108                                 partition@0 {
109                                         label = "u-boot";
110                                         reg = <0x0 0x30000>;
111                                         read-only;
112                                 };
113
114                                 partition@30000 {
115                                         label = "u-boot-env";
116                                         reg = <0x30000 0x10000>;
117                                         read-only;
118                                 };
119
120                                 factory: partition@40000 {
121                                         label = "factory";
122                                         reg = <0x40000 0x10000>;
123                                         read-only;
124                                 };
125
126                                 partition@50000 {
127                                         label = "firmware";
128                                         reg = <0x50000 0x7a0000>;
129                                 };
130
131                                 partition@7f0000 {
132                                         label = "test";
133                                         reg = <0x7f0000 0x10000>;
134                                 };
135                         };
136                 };
137         };
138
139         rstctrl: rstctrl {
140                 compatible = "ralink,rt2880-reset";
141                 #reset-cells = <1>;
142         };
143
144         sdhci@1E130000 {
145                 compatible = "ralink,mt7620a-sdhci";
146                 reg = <0x1E130000 4000>;
147
148                 interrupt-parent = <&gic>;
149                 interrupts = <20>;
150         };
151
152         xhci@1E1C0000 {
153                 compatible = "xhci-platform1";
154                 reg = <0x1E1C0000 4000>;
155
156                 interrupt-parent = <&gic>;
157                 interrupts = <22>;
158         };
159
160         gic: gic@1fbc0000 {
161                 #address-cells = <0>;
162                 #interrupt-cells = <1>;
163                 interrupt-controller;
164                 compatible = "ralink,mt7621-gic";
165                 reg = < 0x1fbc0000 0x80 /* gic */
166                         0x1fbf0000 0x8000 /* cpc */
167                         0x1fbf8000 0x8000 /* gpmc */
168                 >;
169         };
170
171         nand@1e003000 {
172                 compatible = "mtk,mt7621-nand";
173                 bank-width = <2>;
174                 reg = <0x1e003000 0x800
175                         0x1e003800 0x800>;
176                 #address-cells = <1>;
177                 #size-cells = <1>;
178
179                 partition@0 {
180                         label = "uboot";
181                         reg = <0x00000 0x80000>; /* 64 KB */
182                 };
183                 partition@80000 {
184                         label = "uboot_env";
185                         reg = <0x80000 0x80000>; /* 64 KB */
186                 };
187                 partition@100000 {
188                         label = "factory";
189                         reg = <0x100000 0x40000>;
190                 };
191                 partition@140000 {
192                         label = "rootfs";
193                         reg = <0x140000 0xec0000>;
194                 };
195         };
196
197         ethernet@1e100000 {
198                 compatible = "ralink,mt7621-eth";
199                 reg = <0x1e100000 10000>;
200
201                 #address-cells = <1>;
202                 #size-cells = <0>;
203
204                 ralink,port-map = "llllw";
205                 
206                 interrupt-parent = <&gic>;
207                 interrupts = <3>;
208
209 /*              resets = <&rstctrl 21 &rstctrl 23>;
210                 reset-names = "fe", "esw";
211
212                 port@4 {
213                         compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
214                         reg = <4>;
215
216                         status = "disabled";
217                 };
218
219                 port@5 {
220                         compatible = "ralink,mt7620a-gsw-port", "ralink,eth-port";
221                         reg = <5>;
222
223                         status = "disabled";
224                 };
225 */
226                 mdio-bus {
227                         #address-cells = <1>;
228                         #size-cells = <0>;
229
230                         phy1f: ethernet-phy@1f {
231                                 reg = <0x1f>;
232                                 phy-mode = "rgmii";
233                 
234                                 interrupt-parent = <&gic>;
235                                 interrupts = <23>;
236                         };
237                 };
238         };
239
240         gsw@1e110000 {
241                 compatible = "ralink,mt7620a-gsw";
242                 reg = <0x1e110000 8000>;
243
244         };
245 };