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