dada3bcff2e3fcaee700ac95c9a9a70040b1dc70
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / falcon.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "lantiq,falcon";
5
6 cpus {
7 #address-cells = <1>;
8 #size-cells = <0>;
9
10 cpu@0 {
11 compatible = "mips,mips34kc";
12 reg = <0>;
13 };
14 };
15
16 aliases {
17 serial0 = &serial0;
18 serial1 = &serial1;
19 gpio0 = &gpio0;
20 gpio1 = &gpio1;
21 gpio2 = &gpio2;
22 gpio3 = &gpio3;
23 gpio4 = &gpio4;
24 };
25
26 chosen {
27 stdout-path = "serial0:115200n8";
28 };
29
30 ebu_cs0: localbus@10000000 {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 compatible = "lantiq,localbus", "simple-bus";
34 reg = <0x10000000 0x4000000>;
35 ranges = <0x0 0x10000000 0x4000000>;
36 };
37 ebu_cs1: localbus@14000000 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "lantiq,localbus", "simple-bus";
41 reg = <0x14000000 0x4000000>;
42 ranges = <0x0 0x14000000 0x4000000>;
43 };
44
45 ebu@18000000 {
46 compatible = "lantiq,ebu-falcon";
47 reg = <0x18000000 0x100>;
48 };
49
50 sbs2@1d000000 {
51 #address-cells = <1>;
52 #size-cells = <1>;
53 compatible = "lantiq,sysb2", "simple-bus";
54 reg = <0x1d000000 0x1000000>;
55 ranges = <0x0 0x1d000000 0x1000000>;
56
57 clock_sysgpe: clock-controller@700000 {
58 compatible = "lantiq,sysgpe-falcon";
59 reg = <0x700000 0x100>;
60 #clock-cells = <1>;
61 };
62
63 mps@4000 {
64 compatible = "lantiq,mps-falcon", "lantiq,mps-xrx100";
65 reg = <0x4000 0x1000>;
66 interrupt-parent = <&icu0>;
67 interrupts = <154 155>;
68 lantiq,mbx = <&mpsmbx>;
69 };
70
71 gpio0: gpio@810000 {
72 compatible = "lantiq,falcon-gpio";
73 gpio-controller;
74 #gpio-cells = <2>;
75 interrupt-controller;
76 #interrupt-cells = <2>;
77 interrupt-parent = <&icu0>;
78 interrupts = <44>;
79 reg = <0x810000 0x80>;
80 clocks = <&clock_syseth 16>;
81 };
82
83 gpio2: gpio@810100 {
84 compatible = "lantiq,falcon-gpio";
85 gpio-controller;
86 #gpio-cells = <2>;
87 interrupt-controller;
88 #interrupt-cells = <2>;
89 interrupt-parent = <&icu0>;
90 interrupts = <46>;
91 reg = <0x810100 0x80>;
92 clocks = <&clock_syseth 17>;
93 };
94
95 clock_syseth: clock-controller@b00000 {
96 compatible = "lantiq,syseth-falcon";
97 reg = <0xb00000 0x100>;
98 #clock-cells = <1>;
99 };
100
101 pad@b01000 {
102 compatible = "lantiq,pad-falcon";
103 reg = <0xb01000 0x100>;
104 lantiq,bank = <0>;
105 clocks = <&clock_syseth 20>;
106 };
107
108 pad@b02000 {
109 compatible = "lantiq,pad-falcon";
110 reg = <0xb02000 0x100>;
111 lantiq,bank = <2>;
112 clocks = <&clock_syseth 21>;
113 };
114 };
115
116 fpi@1e000000 {
117 #address-cells = <1>;
118 #size-cells = <1>;
119 compatible = "lantiq,fpi", "simple-bus";
120 reg = <0x1e000000 0x1000000>;
121 ranges = <0x0 0x1e000000 0x1000000>;
122
123 serial1: serial@100b00 {
124 status = "disabled";
125 compatible = "lantiq,asc";
126 reg = <0x100b00 0x100>;
127 interrupt-parent = <&icu0>;
128 interrupts = <112 113 114>;
129 line = <1>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&asc1_pins>;
132 clocks = <&clock_sys1 11>;
133 };
134
135 serial0: serial@100c00 {
136 compatible = "lantiq,asc";
137 reg = <0x100c00 0x100>;
138 interrupt-parent = <&icu0>;
139 interrupts = <104 105 106>;
140 line = <0>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&asc0_pins>;
143 clocks = <&clock_sys1 12>;
144 };
145
146 spi: spi@100d00 {
147 status = "disabled";
148 compatible = "lantiq,falcon-spi", "lantiq,xrx100-spi", "lantiq,spi-lantiq-ssc";
149 interrupts = <22 23 24 25>;
150 interrupt-names = "spi_tx", "spi_rx", "spi_err", "spi_frm";
151 #address-cells = <1>;
152 #size-cells = <0>;
153 reg = <0x100d00 0x100>;
154 interrupt-parent = <&icu0>;
155 clocks = <&clock_sys1 13>;
156 base_cs = <1>;
157 num_cs = <2>;
158 };
159
160 gptc@100e00 {
161 compatible = "lantiq,gptc-falcon";
162 reg = <0x100e00 0x100>;
163 };
164
165 i2c: i2c@200000 {
166 status = "disabled";
167 #address-cells = <1>;
168 #size-cells = <0>;
169 compatible = "lantiq,lantiq-i2c";
170 reg = <0x200000 0x10000>;
171 interrupt-parent = <&icu0>;
172 interrupts = <18 19 20 21>;
173 gpios = <&gpio1 7 0 &gpio1 8 0>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&i2c_pins>;
176 clocks = <&clock_sys1 14>;
177 };
178
179 gpio1: gpio@800100 {
180 compatible = "lantiq,falcon-gpio";
181 gpio-controller;
182 #gpio-cells = <2>;
183 interrupt-controller;
184 #interrupt-cells = <2>;
185 interrupt-parent = <&icu0>;
186 interrupts = <45>;
187 reg = <0x800100 0x100>;
188 clocks = <&clock_sys1 16>;
189 };
190
191 gpio3: gpio@800200 {
192 compatible = "lantiq,falcon-gpio";
193 gpio-controller;
194 #gpio-cells = <2>;
195 interrupt-controller;
196 #interrupt-cells = <2>;
197 interrupt-parent = <&icu0>;
198 interrupts = <47>;
199 reg = <0x800200 0x100>;
200 clocks = <&clock_sys1 17>;
201 };
202
203 gpio4: gpio@800300 {
204 compatible = "lantiq,falcon-gpio";
205 gpio-controller;
206 #gpio-cells = <2>;
207 interrupt-controller;
208 #interrupt-cells = <2>;
209 interrupt-parent = <&icu0>;
210 interrupts = <48>;
211 reg = <0x800300 0x100>;
212 clocks = <&clock_sys1 18>;
213 };
214
215 pad@800400 {
216 compatible = "lantiq,pad-falcon";
217 reg = <0x800400 0x100>;
218 lantiq,bank = <1>;
219 clocks = <&clock_sys1 20>;
220 };
221
222 pad@800500 {
223 compatible = "lantiq,pad-falcon";
224 reg = <0x800500 0x100>;
225 lantiq,bank = <3>;
226 clocks = <&clock_sys1 21>;
227 };
228
229 pad@800600 {
230 compatible = "lantiq,pad-falcon";
231 reg = <0x800600 0x100>;
232 lantiq,bank = <4>;
233 clocks = <&clock_sys1 22>;
234 };
235
236 status@802000 {
237 compatible = "lantiq,status-falcon";
238 reg = <0x802000 0x80>;
239 };
240
241 clock_sys1: clock-controller@f00000 {
242 compatible = "lantiq,sys1-falcon";
243 reg = <0xf00000 0x100>;
244 #clock-cells = <1>;
245 };
246 };
247
248 sbs0@1f000000 {
249 #address-cells = <1>;
250 #size-cells = <1>;
251 compatible = "simple-bus";
252 reg = <0x1f000000 0x400000>;
253 ranges = <0x0 0x1f000000 0x400000>;
254
255 mpsmbx: mpsmbx@200000 {
256 reg = <0x200000 0x200>;
257 };
258 };
259
260 biu@1f800000 {
261 #address-cells = <1>;
262 #size-cells = <1>;
263 compatible = "lantiq,biu", "simple-bus";
264 reg = <0x1f800000 0x800000>;
265 ranges = <0x0 0x1f800000 0x800000>;
266
267 icu0: icu@80200 {
268 #interrupt-cells = <1>;
269 interrupt-controller;
270 compatible = "lantiq,icu";
271 reg = <0x80200 0x28
272 0x80228 0x28
273 0x80250 0x28
274 0x80278 0x28
275 0x802a0 0x28>;
276 };
277
278 watchdog@803f0 {
279 compatible = "lantiq,wdt";
280 reg = <0x803f0 0x10>;
281 };
282 };
283
284 pinctrl {
285 compatible = "lantiq,pinctrl-falcon";
286 pinctrl-names = "default";
287 pinctrl-0 = <&state_default>;
288
289 state_default: pinctrl0 {
290 /*ntr {
291 lantiq,groups = "ntr8k";
292 lantiq,function = "ntr";
293 };*/
294 hrst {
295 lantiq,groups = "hrst";
296 lantiq,function = "rst";
297 };
298 };
299
300 asc0_pins: asc0 {
301 asc0 {
302 lantiq,groups = "asc0";
303 lantiq,function = "asc";
304 };
305 };
306 asc1_pins: asc1 {
307 asc1 {
308 lantiq,groups = "asc1";
309 lantiq,function = "asc";
310 };
311 };
312 i2c_pins: i2c_pins {
313 i2c_pins {
314 lantiq,groups = "i2c";
315 lantiq,function = "i2c";
316 };
317 };
318 bootled_pins: bootled {
319 bootled {
320 lantiq,groups = "bootled";
321 lantiq,function = "led";
322 };
323 };
324 ntr_ntr8k: ntr8k {
325 ntr8k {
326 lantiq,groups = "ntr8k";
327 lantiq,function = "ntr";
328 };
329 };
330 ntr_pps: pps {
331 pps {
332 lantiq,groups = "pps";
333 lantiq,function = "ntr";
334 };
335 };
336 ntr_gpio: gpio {
337 gpio {
338 lantiq,pins = "io5";
339 lantiq,mux = <1>;
340 lantiq,output = <0>;
341 };
342 };
343 slic_pins: slic {
344 slic {
345 lantiq,groups = "slic";
346 lantiq,function = "slic";
347 };
348 };
349 };
350
351 pinselect-ntr {
352 compatible = "lantiq,onu-ntr","lantiq,pinselect-ntr";
353 pinctrl-names = "ntr8k", "pps", "gpio";
354 pinctrl-0 = <&ntr_ntr8k>;
355 pinctrl-1 = <&ntr_pps>;
356 pinctrl-2 = <&ntr_gpio>;
357 };
358
359 pinselect-asc1 {
360 compatible = "lantiq,onu-asc1","lantiq,pinselect-asc1";
361 pinctrl-names = "default", "asc1";
362 pinctrl-0 = <&slic_pins>;
363 pinctrl-1 = <&asc1_pins>;
364 };
365
366 };