ramips: mt7621: add TP-Link EAP613 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880.dtsi
1 /dts-v1/;
2
3 / {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "ralink,rt2880-soc";
7
8 aliases {
9 serial0 = &uartlite;
10 };
11
12 cpus {
13 #address-cells = <1>;
14 #size-cells = <0>;
15
16 cpu@0 {
17 compatible = "mips,mips24KEc";
18 reg = <0>;
19 };
20 };
21
22 chosen {
23 bootargs = "console=ttyS0,57600";
24 };
25
26 cpuintc: cpuintc {
27 #address-cells = <0>;
28 #interrupt-cells = <1>;
29 interrupt-controller;
30 compatible = "mti,cpu-interrupt-controller";
31 };
32
33 palmbus: palmbus@300000 {
34 compatible = "palmbus";
35 reg = <0x300000 0x200000>;
36 ranges = <0x0 0x300000 0x1FFFFF>;
37
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 sysc: sysc@0 {
42 compatible = "ralink,rt2880-sysc";
43 reg = <0x000 0x100>;
44 };
45
46 timer: timer@100 {
47 compatible = "ralink,rt2880-timer";
48 reg = <0x100 0x20>;
49
50 interrupt-parent = <&intc>;
51 interrupts = <1>;
52
53 status = "disabled";
54 };
55
56 watchdog: watchdog@120 {
57 compatible = "ralink,rt2880-wdt";
58 reg = <0x120 0x10>;
59 };
60
61 intc: intc@200 {
62 compatible = "ralink,rt2880-intc";
63 reg = <0x200 0x100>;
64
65 interrupt-controller;
66 #interrupt-cells = <1>;
67
68 interrupt-parent = <&cpuintc>;
69 interrupts = <2>;
70 };
71
72 memc: memc@300 {
73 compatible = "ralink,rt2880-memc";
74 reg = <0x300 0x100>;
75 };
76
77 gpio0: gpio@600 {
78 compatible = "ralink,rt2880-gpio";
79 reg = <0x600 0x34>;
80
81 gpio-controller;
82 #gpio-cells = <2>;
83
84 ngpios = <24>;
85 ralink,gpio-base = <0>;
86 ralink,register-map = [ 00 04 08 0c
87 20 24 28 2c
88 30 34 ];
89 };
90
91 gpio1: gpio@638 {
92 compatible = "ralink,rt2880-gpio";
93 reg = <0x638 0x24>;
94
95 gpio-controller;
96 #gpio-cells = <2>;
97
98 ngpios = <16>;
99 ralink,gpio-base = <24>;
100 ralink,register-map = [ 00 04 08 0c
101 10 14 18 1c
102 20 24 ];
103
104 status = "disabled";
105 };
106
107 gpio2: gpio@660 {
108 compatible = "ralink,rt2880-gpio";
109 reg = <0x660 0x24>;
110
111 gpio-controller;
112 #gpio-cells = <2>;
113
114 ngpios = <32>;
115 ralink,gpio-base = <40>;
116 ralink,register-map = [ 00 04 08 0c
117 10 14 18 1c
118 20 24 ];
119
120 status = "disabled";
121 };
122
123 i2c: i2c@900 {
124 compatible = "ralink,rt2880-i2c";
125 reg = <0x900 0x100>;
126
127 resets = <&rstctrl 9>;
128 reset-names = "i2c";
129
130 #address-cells = <1>;
131 #size-cells = <0>;
132
133 status = "disabled";
134
135 pinctrl-names = "default";
136 pinctrl-0 = <&i2c_pins>;
137 };
138
139 uartlite: uartlite@c00 {
140 compatible = "ralink,rt2880-uart", "ns16550a";
141 reg = <0xc00 0x100>;
142
143 interrupt-parent = <&intc>;
144 interrupts = <8>;
145
146 reg-shift = <2>;
147 };
148 };
149
150 pinctrl: pinctrl {
151 compatible = "ralink,rt2880-pinmux";
152
153 pinctrl-names = "default";
154 pinctrl-0 = <&state_default>;
155
156 state_default: pinctrl0 {
157 sdram {
158 groups = "sdram";
159 function = "sdram";
160 };
161 };
162
163 i2c_pins: i2c_pins {
164 i2c_pins {
165 groups = "i2c";
166 function = "i2c";
167 };
168 };
169
170 spi_pins: spi_pins {
171 spi_pins {
172 groups = "spi";
173 function = "spi";
174 };
175 };
176
177 uartlite_pins: uartlite {
178 uart {
179 groups = "uartlite";
180 function = "uartlite";
181 };
182 };
183 };
184
185 rstctrl: rstctrl {
186 compatible = "ralink,rt2880-reset";
187 #reset-cells = <1>;
188 };
189
190 clkctrl: clkctrl {
191 compatible = "ralink,rt2880-clock";
192 #clock-cells = <1>;
193 };
194
195 pci: pci@440000 {
196 compatible = "ralink,rt288x-pci";
197 reg = <0x00440000 0x20000>;
198 #address-cells = <3>;
199 #size-cells = <2>;
200 status = "disabled";
201 };
202
203 ethernet: ethernet@400000 {
204 compatible = "ralink,rt2880-eth";
205 reg = <0x00400000 0x10000>;
206
207 #address-cells = <1>;
208 #size-cells = <0>;
209
210 resets = <&rstctrl 18>;
211 reset-names = "fe";
212
213 interrupt-parent = <&cpuintc>;
214 interrupts = <5>;
215
216 status = "disabled";
217
218 port@0 {
219 compatible = "ralink,rt2880-port", "mediatek,eth-port";
220 reg = <0>;
221 };
222
223 mdio-bus {
224 #address-cells = <1>;
225 #size-cells = <0>;
226
227 status = "disabled";
228 };
229 };
230
231 wmac: wmac@480000 {
232 compatible = "ralink,rt2880-wmac";
233 reg = <0x480000 0x40000>;
234
235 interrupt-parent = <&cpuintc>;
236 interrupts = <6>;
237
238 ralink,eeprom = "soc_wmac.eeprom";
239 };
240 };